@progress/kendo-angular-buttons 14.1.0-develop.9 → 14.1.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/chip/chip.component.d.ts
CHANGED
|
@@ -61,6 +61,24 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
61
61
|
* Specifies a custom remove SVG icon that will be rendered when the Chip is removable.
|
|
62
62
|
*/
|
|
63
63
|
removeSvgIcon: SVGIcon;
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*
|
|
67
|
+
* Determines whether the Chip has a menu.
|
|
68
|
+
*/
|
|
69
|
+
hasMenu: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @hidden
|
|
72
|
+
*
|
|
73
|
+
* Specifies a custom menu font icon class that will be rendered when the Chip has menu.
|
|
74
|
+
*/
|
|
75
|
+
menuIcon: string;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*
|
|
79
|
+
* Specifies a custom menu SVG icon that will be rendered when the Chip has menu.
|
|
80
|
+
*/
|
|
81
|
+
menuSvgIcon: SVGIcon;
|
|
64
82
|
/**
|
|
65
83
|
* If set to `true`, the Chip will be disabled.
|
|
66
84
|
* @default false
|
|
@@ -121,6 +139,12 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
121
139
|
* Fires each time the user clicks the remove icon of the Chip.
|
|
122
140
|
*/
|
|
123
141
|
remove: EventEmitter<ChipRemoveEvent>;
|
|
142
|
+
/**
|
|
143
|
+
* @hidden
|
|
144
|
+
*
|
|
145
|
+
* Fires each time the user clicks the menu icon of the Chip.
|
|
146
|
+
*/
|
|
147
|
+
menuToggle: EventEmitter<ChipRemoveEvent>;
|
|
124
148
|
/**
|
|
125
149
|
* Fires each time the user clicks the content of the Chip.
|
|
126
150
|
*/
|
|
@@ -139,6 +163,10 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
139
163
|
* @hidden
|
|
140
164
|
*/
|
|
141
165
|
defaultRemoveIcon: SVGIcon;
|
|
166
|
+
/**
|
|
167
|
+
* @hidden
|
|
168
|
+
*/
|
|
169
|
+
defaultMenuIcon: SVGIcon;
|
|
142
170
|
private _size;
|
|
143
171
|
private _rounded;
|
|
144
172
|
private _fillMode;
|
|
@@ -178,6 +206,10 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
178
206
|
* @hidden
|
|
179
207
|
*/
|
|
180
208
|
onRemoveClick(e: any): void;
|
|
209
|
+
/**
|
|
210
|
+
* @hidden
|
|
211
|
+
*/
|
|
212
|
+
onMenuClick(e: any): void;
|
|
181
213
|
private attachElementEventHandlers;
|
|
182
214
|
/**
|
|
183
215
|
* @hidden
|
|
@@ -187,5 +219,5 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
187
219
|
private handleThemeColor;
|
|
188
220
|
private keyDownHandler;
|
|
189
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
190
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "kendo-chip", never, { "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"; }, { "remove": "remove"; "contentClick": "contentClick"; }, never, ["*"]>;
|
|
222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "kendo-chip", never, { "label": "label"; "icon": "icon"; "svgIcon": "svgIcon"; "iconClass": "iconClass"; "avatarClass": "avatarClass"; "selected": "selected"; "removable": "removable"; "removeIcon": "removeIcon"; "removeSvgIcon": "removeSvgIcon"; "hasMenu": "hasMenu"; "menuIcon": "menuIcon"; "menuSvgIcon": "menuSvgIcon"; "disabled": "disabled"; "size": "size"; "rounded": "rounded"; "fillMode": "fillMode"; "themeColor": "themeColor"; }, { "remove": "remove"; "menuToggle": "menuToggle"; "contentClick": "contentClick"; }, never, ["*"]>;
|
|
191
223
|
}
|
|
@@ -9,7 +9,7 @@ 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
11
|
import { closest, getStylingClasses, getThemeColorClasses } from '../util';
|
|
12
|
-
import { xCircleIcon } from '@progress/kendo-svg-icons';
|
|
12
|
+
import { moreVerticalIcon, xCircleIcon } from '@progress/kendo-svg-icons';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
15
|
import * as i2 from "@progress/kendo-angular-icons";
|
|
@@ -38,6 +38,12 @@ export class ChipComponent {
|
|
|
38
38
|
* @default false
|
|
39
39
|
*/
|
|
40
40
|
this.removable = false;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*
|
|
44
|
+
* Determines whether the Chip has a menu.
|
|
45
|
+
*/
|
|
46
|
+
this.hasMenu = false;
|
|
41
47
|
/**
|
|
42
48
|
* If set to `true`, the Chip will be disabled.
|
|
43
49
|
* @default false
|
|
@@ -47,6 +53,12 @@ export class ChipComponent {
|
|
|
47
53
|
* Fires each time the user clicks the remove icon of the Chip.
|
|
48
54
|
*/
|
|
49
55
|
this.remove = new EventEmitter();
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*
|
|
59
|
+
* Fires each time the user clicks the menu icon of the Chip.
|
|
60
|
+
*/
|
|
61
|
+
this.menuToggle = new EventEmitter();
|
|
50
62
|
/**
|
|
51
63
|
* Fires each time the user clicks the content of the Chip.
|
|
52
64
|
*/
|
|
@@ -57,6 +69,10 @@ export class ChipComponent {
|
|
|
57
69
|
* @hidden
|
|
58
70
|
*/
|
|
59
71
|
this.defaultRemoveIcon = xCircleIcon;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
this.defaultMenuIcon = moreVerticalIcon;
|
|
60
76
|
this._size = 'medium';
|
|
61
77
|
this._rounded = 'medium';
|
|
62
78
|
this._fillMode = 'solid';
|
|
@@ -228,6 +244,14 @@ export class ChipComponent {
|
|
|
228
244
|
this.remove.emit({ sender: this, originalEvent: e });
|
|
229
245
|
}
|
|
230
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* @hidden
|
|
249
|
+
*/
|
|
250
|
+
onMenuClick(e) {
|
|
251
|
+
if (this.hasMenu) {
|
|
252
|
+
this.menuToggle.emit({ sender: this, originalEvent: e });
|
|
253
|
+
}
|
|
254
|
+
}
|
|
231
255
|
attachElementEventHandlers(chip) {
|
|
232
256
|
this.ngZone.runOutsideAngular(() => {
|
|
233
257
|
this.subs.add(this.renderer.listen(chip, 'focus', () => {
|
|
@@ -237,8 +261,8 @@ export class ChipComponent {
|
|
|
237
261
|
this.renderer.removeClass(chip, 'k-focus');
|
|
238
262
|
}));
|
|
239
263
|
this.subs.add(this.renderer.listen(chip, 'click', (e) => {
|
|
240
|
-
const
|
|
241
|
-
if (!
|
|
264
|
+
const isActionClicked = closest(e.target, '.k-chip-action');
|
|
265
|
+
if (!isActionClicked) {
|
|
242
266
|
this.ngZone.run(() => {
|
|
243
267
|
this.contentClick.emit({ sender: this, originalEvent: e });
|
|
244
268
|
});
|
|
@@ -302,7 +326,7 @@ export class ChipComponent {
|
|
|
302
326
|
}
|
|
303
327
|
}
|
|
304
328
|
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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.12", 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: [
|
|
329
|
+
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", 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: [
|
|
306
330
|
LocalizationService,
|
|
307
331
|
{
|
|
308
332
|
provide: L10N_PREFIX,
|
|
@@ -336,6 +360,15 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
336
360
|
</span>
|
|
337
361
|
|
|
338
362
|
<span class="k-chip-actions">
|
|
363
|
+
<span class="k-chip-action"
|
|
364
|
+
*ngIf="hasMenu"
|
|
365
|
+
(click)="onMenuClick($event)">
|
|
366
|
+
<kendo-icon-wrapper
|
|
367
|
+
name="more-vertical"
|
|
368
|
+
size="small"
|
|
369
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
370
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
371
|
+
</span>
|
|
339
372
|
<span class="k-chip-action k-chip-remove-action"
|
|
340
373
|
*ngIf="removable"
|
|
341
374
|
(click)="onRemoveClick($event)">
|
|
@@ -344,7 +377,6 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
344
377
|
size="small"
|
|
345
378
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
346
379
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
347
|
-
|
|
348
380
|
</span>
|
|
349
381
|
</span>
|
|
350
382
|
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
@@ -380,6 +412,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
380
412
|
</span>
|
|
381
413
|
|
|
382
414
|
<span class="k-chip-actions">
|
|
415
|
+
<span class="k-chip-action"
|
|
416
|
+
*ngIf="hasMenu"
|
|
417
|
+
(click)="onMenuClick($event)">
|
|
418
|
+
<kendo-icon-wrapper
|
|
419
|
+
name="more-vertical"
|
|
420
|
+
size="small"
|
|
421
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
422
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
423
|
+
</span>
|
|
383
424
|
<span class="k-chip-action k-chip-remove-action"
|
|
384
425
|
*ngIf="removable"
|
|
385
426
|
(click)="onRemoveClick($event)">
|
|
@@ -388,7 +429,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
388
429
|
size="small"
|
|
389
430
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
390
431
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
391
|
-
|
|
392
432
|
</span>
|
|
393
433
|
</span>
|
|
394
434
|
`,
|
|
@@ -418,6 +458,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
418
458
|
type: Input
|
|
419
459
|
}], removeSvgIcon: [{
|
|
420
460
|
type: Input
|
|
461
|
+
}], hasMenu: [{
|
|
462
|
+
type: Input
|
|
463
|
+
}], menuIcon: [{
|
|
464
|
+
type: Input
|
|
465
|
+
}], menuSvgIcon: [{
|
|
466
|
+
type: Input
|
|
421
467
|
}], disabled: [{
|
|
422
468
|
type: Input
|
|
423
469
|
}], size: [{
|
|
@@ -430,6 +476,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
430
476
|
type: Input
|
|
431
477
|
}], remove: [{
|
|
432
478
|
type: Output
|
|
479
|
+
}], menuToggle: [{
|
|
480
|
+
type: Output
|
|
433
481
|
}], contentClick: [{
|
|
434
482
|
type: Output
|
|
435
483
|
}], tabIndex: [{
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-buttons',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '14.1.
|
|
12
|
+
publishDate: 1699864765,
|
|
13
|
+
version: '14.1.1-develop.1',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
|
|
|
6
6
|
import { Injectable, EventEmitter, isDevMode, Component, Optional, Input, Output, HostBinding, HostListener, ContentChildren, NgModule, Directive, InjectionToken, Inject, forwardRef, ElementRef, ViewContainerRef, ContentChild, ViewChild } from '@angular/core';
|
|
7
7
|
import * as i9 from '@progress/kendo-angular-common';
|
|
8
8
|
import { isDocumentAvailable, isFirefox, Keys, isSafari, isChanged, hasObservers, guid, anyChanged, isPresent as isPresent$1, EventsModule } from '@progress/kendo-angular-common';
|
|
9
|
-
import { caretAltDownIcon, xCircleIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { caretAltDownIcon, xCircleIcon, moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { Subject, Subscription, fromEvent, merge } from 'rxjs';
|
|
@@ -28,8 +28,8 @@ const packageMetadata = {
|
|
|
28
28
|
name: '@progress/kendo-angular-buttons',
|
|
29
29
|
productName: 'Kendo UI for Angular',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
31
|
-
publishDate:
|
|
32
|
-
version: '14.1.
|
|
31
|
+
publishDate: 1699864765,
|
|
32
|
+
version: '14.1.1-develop.1',
|
|
33
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -3371,6 +3371,12 @@ class ChipComponent {
|
|
|
3371
3371
|
* @default false
|
|
3372
3372
|
*/
|
|
3373
3373
|
this.removable = false;
|
|
3374
|
+
/**
|
|
3375
|
+
* @hidden
|
|
3376
|
+
*
|
|
3377
|
+
* Determines whether the Chip has a menu.
|
|
3378
|
+
*/
|
|
3379
|
+
this.hasMenu = false;
|
|
3374
3380
|
/**
|
|
3375
3381
|
* If set to `true`, the Chip will be disabled.
|
|
3376
3382
|
* @default false
|
|
@@ -3380,6 +3386,12 @@ class ChipComponent {
|
|
|
3380
3386
|
* Fires each time the user clicks the remove icon of the Chip.
|
|
3381
3387
|
*/
|
|
3382
3388
|
this.remove = new EventEmitter();
|
|
3389
|
+
/**
|
|
3390
|
+
* @hidden
|
|
3391
|
+
*
|
|
3392
|
+
* Fires each time the user clicks the menu icon of the Chip.
|
|
3393
|
+
*/
|
|
3394
|
+
this.menuToggle = new EventEmitter();
|
|
3383
3395
|
/**
|
|
3384
3396
|
* Fires each time the user clicks the content of the Chip.
|
|
3385
3397
|
*/
|
|
@@ -3390,6 +3402,10 @@ class ChipComponent {
|
|
|
3390
3402
|
* @hidden
|
|
3391
3403
|
*/
|
|
3392
3404
|
this.defaultRemoveIcon = xCircleIcon;
|
|
3405
|
+
/**
|
|
3406
|
+
* @hidden
|
|
3407
|
+
*/
|
|
3408
|
+
this.defaultMenuIcon = moreVerticalIcon;
|
|
3393
3409
|
this._size = 'medium';
|
|
3394
3410
|
this._rounded = 'medium';
|
|
3395
3411
|
this._fillMode = 'solid';
|
|
@@ -3561,6 +3577,14 @@ class ChipComponent {
|
|
|
3561
3577
|
this.remove.emit({ sender: this, originalEvent: e });
|
|
3562
3578
|
}
|
|
3563
3579
|
}
|
|
3580
|
+
/**
|
|
3581
|
+
* @hidden
|
|
3582
|
+
*/
|
|
3583
|
+
onMenuClick(e) {
|
|
3584
|
+
if (this.hasMenu) {
|
|
3585
|
+
this.menuToggle.emit({ sender: this, originalEvent: e });
|
|
3586
|
+
}
|
|
3587
|
+
}
|
|
3564
3588
|
attachElementEventHandlers(chip) {
|
|
3565
3589
|
this.ngZone.runOutsideAngular(() => {
|
|
3566
3590
|
this.subs.add(this.renderer.listen(chip, 'focus', () => {
|
|
@@ -3570,8 +3594,8 @@ class ChipComponent {
|
|
|
3570
3594
|
this.renderer.removeClass(chip, 'k-focus');
|
|
3571
3595
|
}));
|
|
3572
3596
|
this.subs.add(this.renderer.listen(chip, 'click', (e) => {
|
|
3573
|
-
const
|
|
3574
|
-
if (!
|
|
3597
|
+
const isActionClicked = closest(e.target, '.k-chip-action');
|
|
3598
|
+
if (!isActionClicked) {
|
|
3575
3599
|
this.ngZone.run(() => {
|
|
3576
3600
|
this.contentClick.emit({ sender: this, originalEvent: e });
|
|
3577
3601
|
});
|
|
@@ -3635,7 +3659,7 @@ class ChipComponent {
|
|
|
3635
3659
|
}
|
|
3636
3660
|
}
|
|
3637
3661
|
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3638
|
-
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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: [
|
|
3662
|
+
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", 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: [
|
|
3639
3663
|
LocalizationService,
|
|
3640
3664
|
{
|
|
3641
3665
|
provide: L10N_PREFIX,
|
|
@@ -3669,6 +3693,15 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
3669
3693
|
</span>
|
|
3670
3694
|
|
|
3671
3695
|
<span class="k-chip-actions">
|
|
3696
|
+
<span class="k-chip-action"
|
|
3697
|
+
*ngIf="hasMenu"
|
|
3698
|
+
(click)="onMenuClick($event)">
|
|
3699
|
+
<kendo-icon-wrapper
|
|
3700
|
+
name="more-vertical"
|
|
3701
|
+
size="small"
|
|
3702
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
3703
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
3704
|
+
</span>
|
|
3672
3705
|
<span class="k-chip-action k-chip-remove-action"
|
|
3673
3706
|
*ngIf="removable"
|
|
3674
3707
|
(click)="onRemoveClick($event)">
|
|
@@ -3677,7 +3710,6 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
3677
3710
|
size="small"
|
|
3678
3711
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
3679
3712
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
3680
|
-
|
|
3681
3713
|
</span>
|
|
3682
3714
|
</span>
|
|
3683
3715
|
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
@@ -3713,6 +3745,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3713
3745
|
</span>
|
|
3714
3746
|
|
|
3715
3747
|
<span class="k-chip-actions">
|
|
3748
|
+
<span class="k-chip-action"
|
|
3749
|
+
*ngIf="hasMenu"
|
|
3750
|
+
(click)="onMenuClick($event)">
|
|
3751
|
+
<kendo-icon-wrapper
|
|
3752
|
+
name="more-vertical"
|
|
3753
|
+
size="small"
|
|
3754
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
3755
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
3756
|
+
</span>
|
|
3716
3757
|
<span class="k-chip-action k-chip-remove-action"
|
|
3717
3758
|
*ngIf="removable"
|
|
3718
3759
|
(click)="onRemoveClick($event)">
|
|
@@ -3721,7 +3762,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3721
3762
|
size="small"
|
|
3722
3763
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
3723
3764
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
3724
|
-
|
|
3725
3765
|
</span>
|
|
3726
3766
|
</span>
|
|
3727
3767
|
`,
|
|
@@ -3751,6 +3791,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3751
3791
|
type: Input
|
|
3752
3792
|
}], removeSvgIcon: [{
|
|
3753
3793
|
type: Input
|
|
3794
|
+
}], hasMenu: [{
|
|
3795
|
+
type: Input
|
|
3796
|
+
}], menuIcon: [{
|
|
3797
|
+
type: Input
|
|
3798
|
+
}], menuSvgIcon: [{
|
|
3799
|
+
type: Input
|
|
3754
3800
|
}], disabled: [{
|
|
3755
3801
|
type: Input
|
|
3756
3802
|
}], size: [{
|
|
@@ -3763,6 +3809,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3763
3809
|
type: Input
|
|
3764
3810
|
}], remove: [{
|
|
3765
3811
|
type: Output
|
|
3812
|
+
}], menuToggle: [{
|
|
3813
|
+
type: Output
|
|
3766
3814
|
}], contentClick: [{
|
|
3767
3815
|
type: Output
|
|
3768
3816
|
}], tabIndex: [{
|
|
@@ -7,7 +7,7 @@ import { Injectable, EventEmitter, isDevMode, Component, Optional, Input, Output
|
|
|
7
7
|
import { Subject, Subscription, fromEvent, merge } from 'rxjs';
|
|
8
8
|
import * as i9 from '@progress/kendo-angular-common';
|
|
9
9
|
import { isDocumentAvailable, isFirefox, Keys, isSafari, isChanged, hasObservers, guid, anyChanged, isPresent as isPresent$1, EventsModule } from '@progress/kendo-angular-common';
|
|
10
|
-
import { caretAltDownIcon, xCircleIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { caretAltDownIcon, xCircleIcon, moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
11
11
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
12
12
|
import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
13
13
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
@@ -46,8 +46,8 @@ const packageMetadata = {
|
|
|
46
46
|
name: '@progress/kendo-angular-buttons',
|
|
47
47
|
productName: 'Kendo UI for Angular',
|
|
48
48
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
49
|
-
publishDate:
|
|
50
|
-
version: '14.1.
|
|
49
|
+
publishDate: 1699864765,
|
|
50
|
+
version: '14.1.1-develop.1',
|
|
51
51
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -3364,6 +3364,12 @@ class ChipComponent {
|
|
|
3364
3364
|
* @default false
|
|
3365
3365
|
*/
|
|
3366
3366
|
this.removable = false;
|
|
3367
|
+
/**
|
|
3368
|
+
* @hidden
|
|
3369
|
+
*
|
|
3370
|
+
* Determines whether the Chip has a menu.
|
|
3371
|
+
*/
|
|
3372
|
+
this.hasMenu = false;
|
|
3367
3373
|
/**
|
|
3368
3374
|
* If set to `true`, the Chip will be disabled.
|
|
3369
3375
|
* @default false
|
|
@@ -3373,6 +3379,12 @@ class ChipComponent {
|
|
|
3373
3379
|
* Fires each time the user clicks the remove icon of the Chip.
|
|
3374
3380
|
*/
|
|
3375
3381
|
this.remove = new EventEmitter();
|
|
3382
|
+
/**
|
|
3383
|
+
* @hidden
|
|
3384
|
+
*
|
|
3385
|
+
* Fires each time the user clicks the menu icon of the Chip.
|
|
3386
|
+
*/
|
|
3387
|
+
this.menuToggle = new EventEmitter();
|
|
3376
3388
|
/**
|
|
3377
3389
|
* Fires each time the user clicks the content of the Chip.
|
|
3378
3390
|
*/
|
|
@@ -3383,6 +3395,10 @@ class ChipComponent {
|
|
|
3383
3395
|
* @hidden
|
|
3384
3396
|
*/
|
|
3385
3397
|
this.defaultRemoveIcon = xCircleIcon;
|
|
3398
|
+
/**
|
|
3399
|
+
* @hidden
|
|
3400
|
+
*/
|
|
3401
|
+
this.defaultMenuIcon = moreVerticalIcon;
|
|
3386
3402
|
this._size = 'medium';
|
|
3387
3403
|
this._rounded = 'medium';
|
|
3388
3404
|
this._fillMode = 'solid';
|
|
@@ -3554,6 +3570,14 @@ class ChipComponent {
|
|
|
3554
3570
|
this.remove.emit({ sender: this, originalEvent: e });
|
|
3555
3571
|
}
|
|
3556
3572
|
}
|
|
3573
|
+
/**
|
|
3574
|
+
* @hidden
|
|
3575
|
+
*/
|
|
3576
|
+
onMenuClick(e) {
|
|
3577
|
+
if (this.hasMenu) {
|
|
3578
|
+
this.menuToggle.emit({ sender: this, originalEvent: e });
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3557
3581
|
attachElementEventHandlers(chip) {
|
|
3558
3582
|
this.ngZone.runOutsideAngular(() => {
|
|
3559
3583
|
this.subs.add(this.renderer.listen(chip, 'focus', () => {
|
|
@@ -3563,8 +3587,8 @@ class ChipComponent {
|
|
|
3563
3587
|
this.renderer.removeClass(chip, 'k-focus');
|
|
3564
3588
|
}));
|
|
3565
3589
|
this.subs.add(this.renderer.listen(chip, 'click', (e) => {
|
|
3566
|
-
const
|
|
3567
|
-
if (!
|
|
3590
|
+
const isActionClicked = closest(e.target, '.k-chip-action');
|
|
3591
|
+
if (!isActionClicked) {
|
|
3568
3592
|
this.ngZone.run(() => {
|
|
3569
3593
|
this.contentClick.emit({ sender: this, originalEvent: e });
|
|
3570
3594
|
});
|
|
@@ -3628,7 +3652,7 @@ class ChipComponent {
|
|
|
3628
3652
|
}
|
|
3629
3653
|
}
|
|
3630
3654
|
ChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChipComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3631
|
-
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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: [
|
|
3655
|
+
ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChipComponent, selector: "kendo-chip", inputs: { label: "label", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", avatarClass: "avatarClass", selected: "selected", removable: "removable", removeIcon: "removeIcon", removeSvgIcon: "removeSvgIcon", hasMenu: "hasMenu", menuIcon: "menuIcon", menuSvgIcon: "menuSvgIcon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor" }, outputs: { remove: "remove", menuToggle: "menuToggle", 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: [
|
|
3632
3656
|
LocalizationService,
|
|
3633
3657
|
{
|
|
3634
3658
|
provide: L10N_PREFIX,
|
|
@@ -3662,6 +3686,15 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
3662
3686
|
</span>
|
|
3663
3687
|
|
|
3664
3688
|
<span class="k-chip-actions">
|
|
3689
|
+
<span class="k-chip-action"
|
|
3690
|
+
*ngIf="hasMenu"
|
|
3691
|
+
(click)="onMenuClick($event)">
|
|
3692
|
+
<kendo-icon-wrapper
|
|
3693
|
+
name="more-vertical"
|
|
3694
|
+
size="small"
|
|
3695
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
3696
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
3697
|
+
</span>
|
|
3665
3698
|
<span class="k-chip-action k-chip-remove-action"
|
|
3666
3699
|
*ngIf="removable"
|
|
3667
3700
|
(click)="onRemoveClick($event)">
|
|
@@ -3670,7 +3703,6 @@ ChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
3670
3703
|
size="small"
|
|
3671
3704
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
3672
3705
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
3673
|
-
|
|
3674
3706
|
</span>
|
|
3675
3707
|
</span>
|
|
3676
3708
|
`, isInline: true, components: [{ type: i2.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
@@ -3706,6 +3738,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3706
3738
|
</span>
|
|
3707
3739
|
|
|
3708
3740
|
<span class="k-chip-actions">
|
|
3741
|
+
<span class="k-chip-action"
|
|
3742
|
+
*ngIf="hasMenu"
|
|
3743
|
+
(click)="onMenuClick($event)">
|
|
3744
|
+
<kendo-icon-wrapper
|
|
3745
|
+
name="more-vertical"
|
|
3746
|
+
size="small"
|
|
3747
|
+
[svgIcon]="defaultMenuIcon || menuSvgIcon"
|
|
3748
|
+
[customFontClass]="menuIcon"></kendo-icon-wrapper>
|
|
3749
|
+
</span>
|
|
3709
3750
|
<span class="k-chip-action k-chip-remove-action"
|
|
3710
3751
|
*ngIf="removable"
|
|
3711
3752
|
(click)="onRemoveClick($event)">
|
|
@@ -3714,7 +3755,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3714
3755
|
size="small"
|
|
3715
3756
|
[svgIcon]="removeSvgIcon || defaultRemoveIcon"
|
|
3716
3757
|
[customFontClass]="removeIcon"></kendo-icon-wrapper>
|
|
3717
|
-
|
|
3718
3758
|
</span>
|
|
3719
3759
|
</span>
|
|
3720
3760
|
`,
|
|
@@ -3744,6 +3784,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3744
3784
|
type: Input
|
|
3745
3785
|
}], removeSvgIcon: [{
|
|
3746
3786
|
type: Input
|
|
3787
|
+
}], hasMenu: [{
|
|
3788
|
+
type: Input
|
|
3789
|
+
}], menuIcon: [{
|
|
3790
|
+
type: Input
|
|
3791
|
+
}], menuSvgIcon: [{
|
|
3792
|
+
type: Input
|
|
3747
3793
|
}], disabled: [{
|
|
3748
3794
|
type: Input
|
|
3749
3795
|
}], size: [{
|
|
@@ -3756,6 +3802,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
3756
3802
|
type: Input
|
|
3757
3803
|
}], remove: [{
|
|
3758
3804
|
type: Output
|
|
3805
|
+
}], menuToggle: [{
|
|
3806
|
+
type: Output
|
|
3759
3807
|
}], contentClick: [{
|
|
3760
3808
|
type: Output
|
|
3761
3809
|
}], tabIndex: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-buttons",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.1-develop.1",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@angular/core": "13 - 17",
|
|
26
26
|
"@angular/platform-browser": "13 - 17",
|
|
27
27
|
"@progress/kendo-licensing": "^1.0.2",
|
|
28
|
-
"@progress/kendo-angular-common": "14.1.
|
|
29
|
-
"@progress/kendo-angular-l10n": "14.1.
|
|
30
|
-
"@progress/kendo-angular-popup": "14.1.
|
|
31
|
-
"@progress/kendo-angular-icons": "14.1.
|
|
28
|
+
"@progress/kendo-angular-common": "14.1.1-develop.1",
|
|
29
|
+
"@progress/kendo-angular-l10n": "14.1.1-develop.1",
|
|
30
|
+
"@progress/kendo-angular-popup": "14.1.1-develop.1",
|
|
31
|
+
"@progress/kendo-angular-icons": "14.1.1-develop.1",
|
|
32
32
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tslib": "^2.3.1",
|
|
36
|
-
"@progress/kendo-angular-schematics": "14.1.
|
|
36
|
+
"@progress/kendo-angular-schematics": "14.1.1-develop.1",
|
|
37
37
|
"@progress/kendo-common": "^0.2.1"
|
|
38
38
|
},
|
|
39
39
|
"schematics": "./schematics/collection.json",
|