@progress/kendo-angular-buttons 8.2.2 → 11.0.0-develop.80
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,19 +1,22 @@
|
|
|
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 {
|
|
5
|
+
import { Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, Renderer2, Output, Optional, NgZone, isDevMode } from '@angular/core';
|
|
6
|
+
import { KendoButtonService } from './button.service';
|
|
6
7
|
import { isDocumentAvailable, isChanged, hasObservers, Keys } from '@progress/kendo-angular-common';
|
|
7
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
9
|
import { Subscription } from 'rxjs';
|
|
9
|
-
import { take } from 'rxjs/operators';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
12
|
import { getStylingClasses, getThemeColorClasses, isFirefox } from '../util';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "./button.service";
|
|
15
15
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
16
|
+
import * as i3 from "@progress/kendo-angular-icons";
|
|
17
|
+
import * as i4 from "@angular/common";
|
|
16
18
|
const SPAN_TAG_NAME = 'SPAN';
|
|
19
|
+
const KENDO_BUTTON_TAG_NAME = 'KENDO-BUTTON';
|
|
17
20
|
const DEFAULT_ROUNDED = 'medium';
|
|
18
21
|
const DEFAULT_SIZE = 'medium';
|
|
19
22
|
const DEFAULT_THEME_COLOR = 'base';
|
|
@@ -21,7 +24,7 @@ const DEFAULT_FILL_MODE = 'solid';
|
|
|
21
24
|
/**
|
|
22
25
|
* Represents the Kendo UI Button component for Angular.
|
|
23
26
|
*/
|
|
24
|
-
export class
|
|
27
|
+
export class ButtonComponent {
|
|
25
28
|
constructor(element, renderer, service, localization, ngZone) {
|
|
26
29
|
this.renderer = renderer;
|
|
27
30
|
this.service = service;
|
|
@@ -46,8 +49,6 @@ export class ButtonDirective {
|
|
|
46
49
|
*/
|
|
47
50
|
this.click = new EventEmitter();
|
|
48
51
|
this.isDisabled = false;
|
|
49
|
-
this.isIcon = false;
|
|
50
|
-
this.isIconClass = false;
|
|
51
52
|
this._size = DEFAULT_SIZE;
|
|
52
53
|
this._rounded = DEFAULT_ROUNDED;
|
|
53
54
|
this._fillMode = DEFAULT_FILL_MODE;
|
|
@@ -91,51 +92,31 @@ export class ButtonDirective {
|
|
|
91
92
|
get tabIndex() {
|
|
92
93
|
return this.element.tabIndex;
|
|
93
94
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Defines the name for an existing icon in a Kendo UI theme.
|
|
96
|
-
* The icon is rendered inside the Button by a `span.k-icon` element.
|
|
97
|
-
*/
|
|
98
|
-
set icon(icon) {
|
|
99
|
-
if (icon) {
|
|
100
|
-
this.iconSetter(icon, () => {
|
|
101
|
-
this.isIcon = true;
|
|
102
|
-
const classes = 'k-button-icon k-icon k-i-' + icon;
|
|
103
|
-
this.addIcon(classes);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
this.isIcon = false;
|
|
108
|
-
this.updateIconNode();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
95
|
/**
|
|
112
96
|
* Defines a CSS class—or multiple classes separated by spaces—
|
|
113
97
|
* which are applied to a `span` element inside the Button. Allows the usage of custom icons.
|
|
114
98
|
*/
|
|
115
|
-
set iconClass(
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
this.isIconClass = true;
|
|
119
|
-
const classes = 'k-button-icon ' + iconClassName;
|
|
120
|
-
this.addIcon(classes);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
this.isIconClass = false;
|
|
125
|
-
this.updateIconNode();
|
|
99
|
+
set iconClass(value) {
|
|
100
|
+
if (isDevMode() && value && (this.icon || this.svgIcon)) {
|
|
101
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
126
102
|
}
|
|
103
|
+
this._iconClass = value;
|
|
104
|
+
}
|
|
105
|
+
get iconClass() {
|
|
106
|
+
return this._iconClass;
|
|
127
107
|
}
|
|
128
108
|
/**
|
|
129
|
-
* Defines
|
|
130
|
-
* The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
|
|
109
|
+
* Defines the name for an existing font icon in the Kendo UI theme.
|
|
131
110
|
*/
|
|
132
|
-
set
|
|
133
|
-
if (
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.removeImageNode();
|
|
111
|
+
set icon(name) {
|
|
112
|
+
if (isDevMode() && name && this.iconClass) {
|
|
113
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
138
114
|
}
|
|
115
|
+
this._icon = name;
|
|
116
|
+
}
|
|
117
|
+
;
|
|
118
|
+
get icon() {
|
|
119
|
+
return this._icon;
|
|
139
120
|
}
|
|
140
121
|
/**
|
|
141
122
|
* If set to `true`, it disables the Button.
|
|
@@ -235,6 +216,18 @@ export class ButtonDirective {
|
|
|
235
216
|
get themeColor() {
|
|
236
217
|
return this._themeColor;
|
|
237
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Defines an SVGIcon to be rendered within the button.
|
|
221
|
+
*/
|
|
222
|
+
set svgIcon(icon) {
|
|
223
|
+
if (isDevMode() && icon && this.iconClass) {
|
|
224
|
+
throw new Error('Setting both icon/svgIcon and iconClass options at the same time is not supported.');
|
|
225
|
+
}
|
|
226
|
+
this._svgIcon = icon;
|
|
227
|
+
}
|
|
228
|
+
get svgIcon() {
|
|
229
|
+
return this._svgIcon;
|
|
230
|
+
}
|
|
238
231
|
set isFocused(isFocused) {
|
|
239
232
|
this.toggleClass('k-focus', isFocused);
|
|
240
233
|
this._focused = isFocused;
|
|
@@ -248,6 +241,10 @@ export class ButtonDirective {
|
|
|
248
241
|
get isToggleable() {
|
|
249
242
|
return this.toggleable;
|
|
250
243
|
}
|
|
244
|
+
get iconButtonClass() {
|
|
245
|
+
const hasIcon = this.icon || this.iconClass || this.imageUrl || this.svgIcon;
|
|
246
|
+
return hasIcon && !this.hasText;
|
|
247
|
+
}
|
|
251
248
|
get roleSetter() {
|
|
252
249
|
return this.role;
|
|
253
250
|
}
|
|
@@ -292,8 +289,8 @@ export class ButtonDirective {
|
|
|
292
289
|
}
|
|
293
290
|
}
|
|
294
291
|
ngOnInit() {
|
|
295
|
-
const
|
|
296
|
-
|
|
292
|
+
const elementTagName = this.element.tagName;
|
|
293
|
+
const isSpanOrKendoButton = elementTagName === SPAN_TAG_NAME || elementTagName === KENDO_BUTTON_TAG_NAME;
|
|
297
294
|
if (!this.element.hasAttribute('role') && this.togglable) {
|
|
298
295
|
this.toggleAriaPressed(this.toggleable);
|
|
299
296
|
}
|
|
@@ -304,7 +301,7 @@ export class ButtonDirective {
|
|
|
304
301
|
this.subs.add(this.renderer.listen(this.element, 'click', this._onButtonClick.bind(this)));
|
|
305
302
|
this.subs.add(this.renderer.listen(this.element, 'keydown', (event) => {
|
|
306
303
|
const isSpaceOrEnter = event.keyCode === Keys.Space || event.keyCode === Keys.Enter;
|
|
307
|
-
if (
|
|
304
|
+
if (isSpanOrKendoButton && isSpaceOrEnter) {
|
|
308
305
|
this.click.emit(event);
|
|
309
306
|
this._onButtonClick();
|
|
310
307
|
}
|
|
@@ -322,15 +319,14 @@ export class ButtonDirective {
|
|
|
322
319
|
this.handleClasses(this[input], input);
|
|
323
320
|
});
|
|
324
321
|
}
|
|
325
|
-
ngAfterViewChecked() {
|
|
326
|
-
this.setIconTextClasses();
|
|
327
|
-
}
|
|
328
322
|
ngOnDestroy() {
|
|
329
|
-
this.imageNode = null;
|
|
330
|
-
this.iconNode = null;
|
|
331
|
-
this.iconSpanNode = null;
|
|
332
323
|
this.subs.unsubscribe();
|
|
333
|
-
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @hidden
|
|
327
|
+
*/
|
|
328
|
+
get hasText() {
|
|
329
|
+
return isDocumentAvailable() && this.element.textContent.trim().length > 0;
|
|
334
330
|
}
|
|
335
331
|
/**
|
|
336
332
|
* Focuses the Button component.
|
|
@@ -389,95 +385,6 @@ export class ButtonDirective {
|
|
|
389
385
|
this.removeAttribute('aria-pressed');
|
|
390
386
|
}
|
|
391
387
|
}
|
|
392
|
-
hasText() {
|
|
393
|
-
return isDocumentAvailable() && this.element.textContent.trim().length > 0;
|
|
394
|
-
}
|
|
395
|
-
addImgIcon(imageUrl) {
|
|
396
|
-
let renderer = this.renderer;
|
|
397
|
-
if (!this.iconSpanNode) {
|
|
398
|
-
this.iconSpanNode = renderer.createElement('span');
|
|
399
|
-
renderer.setProperty(this.iconSpanNode, 'className', 'k-button-icon k-icon');
|
|
400
|
-
}
|
|
401
|
-
if (this.imageNode) {
|
|
402
|
-
renderer.setProperty(this.imageNode, 'src', imageUrl);
|
|
403
|
-
}
|
|
404
|
-
else if (isDocumentAvailable()) {
|
|
405
|
-
this.imageNode = renderer.createElement('img');
|
|
406
|
-
renderer.setProperty(this.imageNode, 'src', imageUrl);
|
|
407
|
-
renderer.setProperty(this.imageNode, 'className', 'k-image');
|
|
408
|
-
renderer.setAttribute(this.imageNode, 'role', 'presentation');
|
|
409
|
-
}
|
|
410
|
-
this.iconSpanNode.appendChild(this.imageNode);
|
|
411
|
-
this.prependChild(this.iconSpanNode);
|
|
412
|
-
}
|
|
413
|
-
addIcon(classNames) {
|
|
414
|
-
let renderer = this.renderer;
|
|
415
|
-
if (this.iconNode) {
|
|
416
|
-
renderer.setProperty(this.iconNode, 'className', classNames);
|
|
417
|
-
}
|
|
418
|
-
else if (isDocumentAvailable()) {
|
|
419
|
-
this.iconNode = renderer.createElement('span');
|
|
420
|
-
renderer.setProperty(this.iconNode, 'className', classNames);
|
|
421
|
-
renderer.setAttribute(this.iconNode, 'role', 'presentation');
|
|
422
|
-
this.prependChild(this.iconNode);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
addTextSpan() {
|
|
426
|
-
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
427
|
-
if (isDocumentAvailable() && this.hasText()) {
|
|
428
|
-
const span = this.renderer.createElement('span');
|
|
429
|
-
this.renderer.addClass(span, 'k-button-text');
|
|
430
|
-
const buttonContentNodes = Array.from(this.element.childNodes);
|
|
431
|
-
buttonContentNodes.forEach(node => this.renderer.appendChild(span, node));
|
|
432
|
-
this.renderer.appendChild(this.element, span);
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
prependChild(node) {
|
|
437
|
-
this.defer(() => {
|
|
438
|
-
if (this.renderer && node !== this.element.firstChild) {
|
|
439
|
-
this.renderer.insertBefore(this.element, node, this.element.firstChild);
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
defer(callback) {
|
|
444
|
-
this.ngZone.runOutsideAngular(() => {
|
|
445
|
-
this.deferTimeout = setTimeout(callback, 0);
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
iconSetter(icon, insertIcon) {
|
|
449
|
-
if (icon) {
|
|
450
|
-
insertIcon(icon);
|
|
451
|
-
}
|
|
452
|
-
this.setIconTextClasses();
|
|
453
|
-
}
|
|
454
|
-
removeImageNode() {
|
|
455
|
-
if (this.imageNode && this.renderer.parentNode(this.imageNode)) {
|
|
456
|
-
this.renderer.removeChild(this.element, this.imageNode);
|
|
457
|
-
this.renderer.removeChild(this.element, this.iconSpanNode);
|
|
458
|
-
this.imageNode = null;
|
|
459
|
-
this.iconSpanNode = null;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
removeIconNode() {
|
|
463
|
-
if (this.iconNode && this.renderer.parentNode(this.iconNode)) {
|
|
464
|
-
this.renderer.removeChild(this.element, this.iconNode);
|
|
465
|
-
this.iconNode = null;
|
|
466
|
-
}
|
|
467
|
-
if (this.iconSpanNode) {
|
|
468
|
-
this.renderer.removeChild(this.element, this.iconSpanNode);
|
|
469
|
-
this.iconSpanNode = null;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
updateIconNode() {
|
|
473
|
-
if (!this.isIcon && !this.isIconClass) {
|
|
474
|
-
this.removeIconNode();
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
setIconTextClasses() {
|
|
478
|
-
const hasIcon = this.isIcon || this.isIconClass || this.imageNode;
|
|
479
|
-
this.toggleClass('k-icon-button', hasIcon && !this.hasText());
|
|
480
|
-
}
|
|
481
388
|
toggleClass(className, add) {
|
|
482
389
|
if (add) {
|
|
483
390
|
this.renderer.addClass(this.element, className);
|
|
@@ -522,16 +429,27 @@ export class ButtonDirective {
|
|
|
522
429
|
}
|
|
523
430
|
}
|
|
524
431
|
}
|
|
525
|
-
|
|
526
|
-
|
|
432
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.KendoButtonService, optional: true }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
433
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: { toggleable: "toggleable", togglable: "togglable", selected: "selected", tabIndex: "tabIndex", imageUrl: "imageUrl", iconClass: "iconClass", icon: "icon", disabled: "disabled", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", svgIcon: "svgIcon", role: "role", primary: "primary", look: "look" }, outputs: { selectedChange: "selectedChange", click: "click" }, host: { listeners: { "focus": "onFocus()", "blur": "onBlur()" }, properties: { "class.k-button": "this.classButton", "class.k-toggle-button": "this.isToggleable", "class.k-icon-button": "this.iconButtonClass", "attr.role": "this.roleSetter", "attr.aria-disabled": "this.classDisabled", "class.k-disabled": "this.classDisabled", "class.k-selected": "this.classActive", "attr.dir": "this.getDirection" } }, providers: [
|
|
527
434
|
LocalizationService,
|
|
528
435
|
{
|
|
529
436
|
provide: L10N_PREFIX,
|
|
530
437
|
useValue: 'kendo.button'
|
|
531
438
|
}
|
|
532
|
-
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0
|
|
533
|
-
|
|
534
|
-
|
|
439
|
+
], exportAs: ["kendoButton"], usesOnChanges: true, ngImport: i0, template: `
|
|
440
|
+
<kendo-icon-wrapper
|
|
441
|
+
*ngIf="icon || svgIcon"
|
|
442
|
+
innerCssClass="k-button-icon"
|
|
443
|
+
[name]="icon"
|
|
444
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
445
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
446
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
447
|
+
</span>
|
|
448
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
449
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
450
|
+
`, isInline: true, components: [{ type: i3.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
452
|
+
type: Component,
|
|
535
453
|
args: [{
|
|
536
454
|
exportAs: 'kendoButton',
|
|
537
455
|
providers: [
|
|
@@ -541,7 +459,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
541
459
|
useValue: 'kendo.button'
|
|
542
460
|
}
|
|
543
461
|
],
|
|
544
|
-
selector: 'button[kendoButton], span[kendoButton]
|
|
462
|
+
selector: 'button[kendoButton], span[kendoButton], kendo-button',
|
|
463
|
+
template: `
|
|
464
|
+
<kendo-icon-wrapper
|
|
465
|
+
*ngIf="icon || svgIcon"
|
|
466
|
+
innerCssClass="k-button-icon"
|
|
467
|
+
[name]="icon"
|
|
468
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
469
|
+
<span *ngIf="imageUrl" class="k-button-icon k-icon">
|
|
470
|
+
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
471
|
+
</span>
|
|
472
|
+
<span *ngIf="iconClass" class="k-button-icon" [ngClass]="iconClass"></span>
|
|
473
|
+
<span class="k-button-text"><ng-content></ng-content></span>
|
|
474
|
+
`
|
|
545
475
|
}]
|
|
546
476
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.KendoButtonService, decorators: [{
|
|
547
477
|
type: Optional
|
|
@@ -553,11 +483,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
553
483
|
type: Input
|
|
554
484
|
}], tabIndex: [{
|
|
555
485
|
type: Input
|
|
556
|
-
}],
|
|
486
|
+
}], imageUrl: [{
|
|
557
487
|
type: Input
|
|
558
488
|
}], iconClass: [{
|
|
559
489
|
type: Input
|
|
560
|
-
}],
|
|
490
|
+
}], icon: [{
|
|
561
491
|
type: Input
|
|
562
492
|
}], disabled: [{
|
|
563
493
|
type: Input
|
|
@@ -569,6 +499,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
569
499
|
type: Input
|
|
570
500
|
}], themeColor: [{
|
|
571
501
|
type: Input
|
|
502
|
+
}], svgIcon: [{
|
|
503
|
+
type: Input
|
|
572
504
|
}], role: [{
|
|
573
505
|
type: Input
|
|
574
506
|
}], selectedChange: [{
|
|
@@ -581,6 +513,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
581
513
|
}], isToggleable: [{
|
|
582
514
|
type: HostBinding,
|
|
583
515
|
args: ['class.k-toggle-button']
|
|
516
|
+
}], iconButtonClass: [{
|
|
517
|
+
type: HostBinding,
|
|
518
|
+
args: ['class.k-icon-button']
|
|
584
519
|
}], roleSetter: [{
|
|
585
520
|
type: HostBinding,
|
|
586
521
|
args: ['attr.role']
|
|
@@ -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
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
7
|
+
import { ButtonComponent } from './button.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Represents the [NgModule](link:site.data.urls.angular['ngmodules'])
|
|
@@ -38,13 +39,14 @@ import * as i0 from "@angular/core";
|
|
|
38
39
|
*/
|
|
39
40
|
export class ButtonModule {
|
|
40
41
|
}
|
|
41
|
-
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
43
|
-
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
43
|
+
ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [IconsModule], exports: [ButtonComponent] });
|
|
44
|
+
ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonModule, imports: [[IconsModule]] });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonModule, decorators: [{
|
|
45
46
|
type: NgModule,
|
|
46
47
|
args: [{
|
|
47
|
-
declarations: [
|
|
48
|
-
|
|
48
|
+
declarations: [ButtonComponent],
|
|
49
|
+
imports: [IconsModule],
|
|
50
|
+
exports: [ButtonComponent]
|
|
49
51
|
}]
|
|
50
52
|
}] });
|
|
@@ -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 { Injectable } from '@angular/core';
|
|
@@ -17,8 +17,8 @@ export class KendoButtonService {
|
|
|
17
17
|
this.buttonClicked.next(button);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
KendoButtonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: KendoButtonService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
+
KendoButtonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: KendoButtonService });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: KendoButtonService, decorators: [{
|
|
23
23
|
type: Injectable
|
|
24
24
|
}] });
|
|
@@ -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 {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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 {
|
|
6
|
-
import { Component, EventEmitter, Output, Input, ContentChildren, HostBinding, isDevMode } from '@angular/core';
|
|
5
|
+
import { ButtonComponent } from '../button/button.component';
|
|
6
|
+
import { Component, EventEmitter, Output, Input, ContentChildren, QueryList, HostBinding, isDevMode, ElementRef } from '@angular/core';
|
|
7
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { isChanged, Keys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { KendoButtonService } from '../button/button.service';
|
|
@@ -133,7 +133,7 @@ export class ButtonGroupComponent {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
if (isChanged('navigable', changes)) {
|
|
136
|
-
if (changes
|
|
136
|
+
if (changes['navigable'].currentValue) {
|
|
137
137
|
this.setButtonsTabIndex();
|
|
138
138
|
this.currentTabIndex = 0;
|
|
139
139
|
}
|
|
@@ -162,7 +162,7 @@ export class ButtonGroupComponent {
|
|
|
162
162
|
this.verifySettings();
|
|
163
163
|
}
|
|
164
164
|
navigateFocus(event) {
|
|
165
|
-
|
|
165
|
+
const focusedIndex = this.buttons.toArray().findIndex(current => current.element.tabIndex !== -1);
|
|
166
166
|
const firstIndex = 0;
|
|
167
167
|
const lastIndex = this.buttons.length - 1;
|
|
168
168
|
const eventArgs = new PreventableEvent();
|
|
@@ -239,18 +239,18 @@ export class ButtonGroupComponent {
|
|
|
239
239
|
.subscribe(handler));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
243
|
-
ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
242
|
+
ButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupComponent, deps: [{ token: i1.KendoButtonService }, { token: i2.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
ButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: { disabled: "disabled", selection: "selection", width: "width", tabIndex: "tabIndex", navigable: "navigable" }, outputs: { navigate: "navigate" }, host: { properties: { "class.k-button-group": "this.wrapperClass", "class.k-disabled": "this.disabledClass", "class.k-button-group-stretched": "this.stretchedClass", "attr.role": "this.role", "attr.dir": "this.dir", "attr.aria-disabled": "this.ariaDisabled", "style.width": "this.wrapperWidth", "attr.tabindex": "this.wrapperTabIndex" } }, providers: [
|
|
244
244
|
KendoButtonService,
|
|
245
245
|
LocalizationService,
|
|
246
246
|
{
|
|
247
247
|
provide: L10N_PREFIX,
|
|
248
248
|
useValue: 'kendo.buttongroup'
|
|
249
249
|
}
|
|
250
|
-
], queries: [{ propertyName: "buttons", predicate:
|
|
250
|
+
], queries: [{ propertyName: "buttons", predicate: ButtonComponent }], exportAs: ["kendoButtonGroup"], usesOnChanges: true, ngImport: i0, template: `
|
|
251
251
|
<ng-content select="[kendoButton]"></ng-content>
|
|
252
252
|
`, isInline: true });
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupComponent, decorators: [{
|
|
254
254
|
type: Component,
|
|
255
255
|
args: [{
|
|
256
256
|
exportAs: 'kendoButtonGroup',
|
|
@@ -284,7 +284,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
284
284
|
type: Output
|
|
285
285
|
}], buttons: [{
|
|
286
286
|
type: ContentChildren,
|
|
287
|
-
args: [
|
|
287
|
+
args: [ButtonComponent]
|
|
288
288
|
}], wrapperClass: [{
|
|
289
289
|
type: HostBinding,
|
|
290
290
|
args: ['class.k-button-group']
|
package/{esm2015/buttongroup/buttongroup.module.js → esm2020/buttongroup/buttongroup.module.mjs}
RENAMED
|
@@ -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';
|
|
@@ -17,10 +17,10 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
*/
|
|
18
18
|
export class ButtonGroupModule {
|
|
19
19
|
}
|
|
20
|
-
ButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
ButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
22
|
-
ButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
ButtonGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
ButtonGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupModule, declarations: [ButtonGroupComponent], imports: [CommonModule, ButtonModule], exports: [ButtonGroupComponent] });
|
|
22
|
+
ButtonGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupModule, imports: [[CommonModule, ButtonModule]] });
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonGroupModule, decorators: [{
|
|
24
24
|
type: NgModule,
|
|
25
25
|
args: [{
|
|
26
26
|
declarations: [ButtonGroupComponent],
|
|
@@ -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';
|
|
@@ -43,10 +43,10 @@ import * as i0 from "@angular/core";
|
|
|
43
43
|
*/
|
|
44
44
|
export class ButtonsModule {
|
|
45
45
|
}
|
|
46
|
-
ButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
ButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
48
|
-
ButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
46
|
+
ButtonsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
ButtonsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonsModule, exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
|
|
48
|
+
ButtonsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonsModule, imports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule] });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ButtonsModule, decorators: [{
|
|
50
50
|
type: NgModule,
|
|
51
51
|
args: [{
|
|
52
52
|
exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
|
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -1,8 +1,8 @@
|
|
|
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, Input, HostBinding, ContentChildren, EventEmitter, Output, HostListener } from '@angular/core';
|
|
5
|
+
import { Component, Input, HostBinding, ContentChildren, QueryList, EventEmitter, Output, HostListener, Renderer2, ElementRef, NgZone } from '@angular/core';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { ChipComponent } from './chip.component';
|
|
@@ -176,8 +176,8 @@ export class ChipListComponent {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
ChipListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
180
|
-
ChipListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
179
|
+
ChipListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
180
|
+
ChipListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: { selection: "selection", size: "size" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.aria-orientation": "this.orientation", "attr.dir": "this.direction", "class.k-selection-single": "this.single", "attr.aria-multiselectable": "this.multiple", "class.k-selection-multiple": "this.multiple", "attr.role": "this.role" } }, providers: [
|
|
181
181
|
LocalizationService,
|
|
182
182
|
{
|
|
183
183
|
provide: L10N_PREFIX,
|
|
@@ -186,7 +186,7 @@ ChipListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
186
186
|
], queries: [{ propertyName: "chips", predicate: ChipComponent }], ngImport: i0, template: `
|
|
187
187
|
<ng-content></ng-content>
|
|
188
188
|
`, isInline: true });
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ChipListComponent, decorators: [{
|
|
190
190
|
type: Component,
|
|
191
191
|
args: [{
|
|
192
192
|
selector: 'kendo-chiplist, kendo-chip-list',
|
|
@@ -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 {};
|