@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
package/{esm2015/navigation/navigation.service.js → esm2020/navigation/navigation.service.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 { Injectable, Inject, EventEmitter } from '@angular/core';
|
|
@@ -100,9 +100,9 @@ export class NavigationService {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
104
|
-
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
103
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, deps: [{ token: NAVIGATION_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
104
|
+
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NavigationService, decorators: [{
|
|
106
106
|
type: Injectable
|
|
107
107
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
108
108
|
type: Inject,
|
|
@@ -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
|
/**
|
|
@@ -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:
|
|
12
|
+
publishDate: 1672394482,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -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
|
/**
|
|
@@ -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
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
|
@@ -1,8 +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
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
7
|
import { Messages } from './messages';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -19,12 +20,12 @@ export class SplitButtonCustomMessagesComponent extends Messages {
|
|
|
19
20
|
return true;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
SplitButtonCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
SplitButtonCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
23
|
+
SplitButtonCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
SplitButtonCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SplitButtonCustomMessagesComponent, selector: "kendo-splitbutton-messages", providers: [{
|
|
24
25
|
provide: Messages,
|
|
25
26
|
useExisting: forwardRef(() => SplitButtonCustomMessagesComponent)
|
|
26
27
|
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonCustomMessagesComponent, decorators: [{
|
|
28
29
|
type: Component,
|
|
29
30
|
args: [{
|
|
30
31
|
providers: [{
|
|
@@ -1,8 +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
5
|
import { Directive, forwardRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
7
|
import { Messages } from './messages';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
@@ -15,14 +16,14 @@ export class LocalizedSplitButtonMessagesDirective extends Messages {
|
|
|
15
16
|
this.service = service;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
LocalizedSplitButtonMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
LocalizedSplitButtonMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
19
|
+
LocalizedSplitButtonMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
LocalizedSplitButtonMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]", providers: [
|
|
20
21
|
{
|
|
21
22
|
provide: Messages,
|
|
22
23
|
useExisting: forwardRef(() => LocalizedSplitButtonMessagesDirective)
|
|
23
24
|
}
|
|
24
25
|
], usesInheritance: true, ngImport: i0 });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LocalizedSplitButtonMessagesDirective, decorators: [{
|
|
26
27
|
type: Directive,
|
|
27
28
|
args: [{
|
|
28
29
|
providers: [
|
|
@@ -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 { Directive, Input } from '@angular/core';
|
|
@@ -10,9 +10,9 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class Messages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
|
-
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: Messages, selector: "kendo-splitbutton-messages-base", inputs: { splitButtonLabel: "splitButtonLabel" }, usesInheritance: true, ngImport: i0 });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: Messages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
18
18
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1,28 +1,30 @@
|
|
|
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, ElementRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, TemplateRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef, NgZone, ChangeDetectorRef, Renderer2 } 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 { ListButton } from './../listbutton/list-button';
|
|
8
9
|
import { ButtonItemTemplateDirective } from './../listbutton/button-item-template.directive';
|
|
9
10
|
import { FocusService } from './../focusable/focus.service';
|
|
10
11
|
import { NavigationService } from './../navigation/navigation.service';
|
|
11
12
|
import { NAVIGATION_CONFIG } from './../navigation/navigation-config';
|
|
12
|
-
import { isDocumentAvailable, guid, isChanged } from '@progress/kendo-angular-common';
|
|
13
|
+
import { isDocumentAvailable, guid, isChanged, anyChanged } from '@progress/kendo-angular-common';
|
|
13
14
|
import { closest, isPresent } from './../util';
|
|
14
15
|
import { Keys } from '@progress/kendo-angular-common';
|
|
15
16
|
import { replaceMessagePlaceholder, getStylingClasses } from '../util';
|
|
16
17
|
import { PopupContainerService } from '../listbutton/container.service';
|
|
18
|
+
import { arrowDownIcon } from '@progress/kendo-svg-icons';
|
|
17
19
|
import * as i0 from "@angular/core";
|
|
18
20
|
import * as i1 from "./../focusable/focus.service";
|
|
19
21
|
import * as i2 from "./../navigation/navigation.service";
|
|
20
22
|
import * as i3 from "@progress/kendo-angular-popup";
|
|
21
23
|
import * as i4 from "@progress/kendo-angular-l10n";
|
|
22
24
|
import * as i5 from "../listbutton/container.service";
|
|
23
|
-
import * as i6 from "../
|
|
24
|
-
import * as i7 from "
|
|
25
|
-
import * as i8 from "
|
|
25
|
+
import * as i6 from "../button/button.component";
|
|
26
|
+
import * as i7 from "../listbutton/list.component";
|
|
27
|
+
import * as i8 from "./localization/localized-messages.directive";
|
|
26
28
|
import * as i9 from "@angular/common";
|
|
27
29
|
const NAVIGATION_SETTINGS = {
|
|
28
30
|
useLeftRightArrows: true
|
|
@@ -84,15 +86,10 @@ export class SplitButtonComponent extends ListButton {
|
|
|
84
86
|
*/
|
|
85
87
|
this.text = '';
|
|
86
88
|
/**
|
|
87
|
-
* Defines an icon to be rendered next to the button text
|
|
89
|
+
* Defines an icon to be rendered next to the button text.
|
|
88
90
|
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
89
91
|
*/
|
|
90
92
|
this.icon = '';
|
|
91
|
-
/**
|
|
92
|
-
* Defines an icon with a custom CSS class to be rendered next to the button text
|
|
93
|
-
* ([see example]({% slug databinding_splitbutton %}#toc-arrays-of-complex-data)).
|
|
94
|
-
*/
|
|
95
|
-
this.iconClass = '';
|
|
96
93
|
/**
|
|
97
94
|
* Defines the type attribute of the main button
|
|
98
95
|
*/
|
|
@@ -142,6 +139,11 @@ export class SplitButtonComponent extends ListButton {
|
|
|
142
139
|
* be rendered for the button which opens the popup.
|
|
143
140
|
*/
|
|
144
141
|
this.arrowButtonIcon = 'caret-alt-down';
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the [`SVGIcon`](slug:api_icons_svgicon) that will
|
|
144
|
+
* be rendered for the button which opens the popup.
|
|
145
|
+
*/
|
|
146
|
+
this.arrowButtonSvgIcon = arrowDownIcon;
|
|
145
147
|
/**
|
|
146
148
|
* Fires each time the user clicks the main button.
|
|
147
149
|
*
|
|
@@ -300,6 +302,12 @@ export class SplitButtonComponent extends ListButton {
|
|
|
300
302
|
}
|
|
301
303
|
return this._data;
|
|
302
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* @hidden
|
|
307
|
+
*/
|
|
308
|
+
get hasContent() {
|
|
309
|
+
return this.button?.nativeElement.childElementCount > 0;
|
|
310
|
+
}
|
|
303
311
|
/**
|
|
304
312
|
* @hidden
|
|
305
313
|
*/
|
|
@@ -414,9 +422,12 @@ export class SplitButtonComponent extends ListButton {
|
|
|
414
422
|
if (changes.hasOwnProperty('text')) {
|
|
415
423
|
this.updateButtonText();
|
|
416
424
|
}
|
|
417
|
-
if (
|
|
425
|
+
if (anyChanged(['text', 'icon', 'svgIcon', 'iconClass', 'imageUrl'], changes)) {
|
|
426
|
+
this.toggleButtonIconClass();
|
|
427
|
+
}
|
|
428
|
+
if (isChanged('popupSettings', changes) && isPresent(this.popupRef)) {
|
|
418
429
|
const popup = this.popupRef.popup.instance;
|
|
419
|
-
const newSettings = changes
|
|
430
|
+
const newSettings = changes['popupSettings'].currentValue;
|
|
420
431
|
popup.popupClass = newSettings.popupClass;
|
|
421
432
|
popup.animate = newSettings.animate;
|
|
422
433
|
popup.popupAlign = this.popupAlign;
|
|
@@ -449,7 +460,7 @@ export class SplitButtonComponent extends ListButton {
|
|
|
449
460
|
* @hidden
|
|
450
461
|
*/
|
|
451
462
|
get anchorAlign() {
|
|
452
|
-
|
|
463
|
+
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'bottom' };
|
|
453
464
|
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
454
465
|
align.horizontal = 'right';
|
|
455
466
|
}
|
|
@@ -459,12 +470,20 @@ export class SplitButtonComponent extends ListButton {
|
|
|
459
470
|
* @hidden
|
|
460
471
|
*/
|
|
461
472
|
get popupAlign() {
|
|
462
|
-
|
|
473
|
+
const align = { horizontal: this.popupSettings.align || 'left', vertical: 'top' };
|
|
463
474
|
if (this.direction === 'rtl' && !isPresent(this.popupSettings.align)) {
|
|
464
475
|
align.horizontal = 'right';
|
|
465
476
|
}
|
|
466
477
|
return align;
|
|
467
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* @hidden
|
|
481
|
+
*/
|
|
482
|
+
get isIconButton() {
|
|
483
|
+
const hasIcon = this.icon || this.svgIcon || this.iconClass || this.imageUrl;
|
|
484
|
+
const hasTextContent = isDocumentAvailable() && this.button?.nativeElement.textContent.trim().length > 0;
|
|
485
|
+
return hasIcon && !hasTextContent;
|
|
486
|
+
}
|
|
468
487
|
/**
|
|
469
488
|
* Focuses the SplitButton component.
|
|
470
489
|
*/
|
|
@@ -490,7 +509,7 @@ export class SplitButtonComponent extends ListButton {
|
|
|
490
509
|
}
|
|
491
510
|
updateButtonText() {
|
|
492
511
|
if (isDocumentAvailable()) {
|
|
493
|
-
|
|
512
|
+
const innerText = this.wrapper.innerText
|
|
494
513
|
.split('\n')
|
|
495
514
|
.join('')
|
|
496
515
|
.trim();
|
|
@@ -508,9 +527,12 @@ export class SplitButtonComponent extends ListButton {
|
|
|
508
527
|
this.renderer.addClass(elem, classes.toAdd);
|
|
509
528
|
}
|
|
510
529
|
}
|
|
530
|
+
toggleButtonIconClass() {
|
|
531
|
+
this.button.nativeElement.classList[this.isIconButton ? 'add' : 'remove']('k-button-icon');
|
|
532
|
+
}
|
|
511
533
|
}
|
|
512
|
-
SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
513
|
-
SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
534
|
+
SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonComponent, 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: i0.Renderer2 }, { token: i5.PopupContainerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
535
|
+
SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", svgIcon: "svgIcon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", size: "size", rounded: "rounded", fillMode: "fillMode", themeColor: "themeColor", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", arrowButtonSvgIcon: "arrowButtonSvgIcon" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keyup": "keyup($event)" }, properties: { "class.k-focus": "this.isFocused", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
|
|
514
536
|
FocusService,
|
|
515
537
|
NavigationService,
|
|
516
538
|
NAVIGATION_SETTINGS_PROVIDER,
|
|
@@ -520,7 +542,7 @@ SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
520
542
|
useValue: 'kendo.splitbutton'
|
|
521
543
|
},
|
|
522
544
|
PopupContainerService
|
|
523
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }, { propertyName: "arrowButton", first: true, predicate: ["arrowButton"], descendants: true, read: ElementRef }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
545
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, read: ElementRef }, { propertyName: "arrowButton", first: true, predicate: ["arrowButton"], descendants: true, read: ElementRef }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
524
546
|
<ng-container kendoSplitButtonLocalizedMessages
|
|
525
547
|
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
526
548
|
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
@@ -536,8 +558,8 @@ SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
536
558
|
[fillMode]="fillMode"
|
|
537
559
|
[themeColor]="themeColor"
|
|
538
560
|
[icon]="icon"
|
|
561
|
+
[svgIcon]="svgIcon"
|
|
539
562
|
[class.k-active]="active"
|
|
540
|
-
[class.k-icon-button]="!text && icon"
|
|
541
563
|
[iconClass]="iconClass"
|
|
542
564
|
[imageUrl]="imageUrl"
|
|
543
565
|
[ngClass]="buttonClass"
|
|
@@ -562,11 +584,13 @@ SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
562
584
|
[ngClass]="arrowButtonClass"
|
|
563
585
|
[disabled]="disabled"
|
|
564
586
|
[icon]="arrowButtonIcon"
|
|
587
|
+
[svgIcon]="arrowButtonSvgIcon"
|
|
565
588
|
[size]="size"
|
|
566
589
|
[rounded]="rounded"
|
|
567
590
|
[fillMode]="fillMode"
|
|
568
591
|
[themeColor]="themeColor"
|
|
569
592
|
[tabindex]="-1"
|
|
593
|
+
aria-hidden="true"
|
|
570
594
|
(click)="onArrowButtonClick()"
|
|
571
595
|
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
572
596
|
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
@@ -586,8 +610,8 @@ SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
586
610
|
</kendo-button-list>
|
|
587
611
|
</ng-template>
|
|
588
612
|
<ng-container #container></ng-container>
|
|
589
|
-
`, isInline: true, components: [{ type: i6.
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
613
|
+
`, 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.LocalizedSplitButtonMessagesDirective, selector: "[kendoSplitButtonLocalizedMessages]" }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
591
615
|
type: Component,
|
|
592
616
|
args: [{
|
|
593
617
|
exportAs: 'kendoSplitButton',
|
|
@@ -619,8 +643,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
619
643
|
[fillMode]="fillMode"
|
|
620
644
|
[themeColor]="themeColor"
|
|
621
645
|
[icon]="icon"
|
|
646
|
+
[svgIcon]="svgIcon"
|
|
622
647
|
[class.k-active]="active"
|
|
623
|
-
[class.k-icon-button]="!text && icon"
|
|
624
648
|
[iconClass]="iconClass"
|
|
625
649
|
[imageUrl]="imageUrl"
|
|
626
650
|
[ngClass]="buttonClass"
|
|
@@ -645,11 +669,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
645
669
|
[ngClass]="arrowButtonClass"
|
|
646
670
|
[disabled]="disabled"
|
|
647
671
|
[icon]="arrowButtonIcon"
|
|
672
|
+
[svgIcon]="arrowButtonSvgIcon"
|
|
648
673
|
[size]="size"
|
|
649
674
|
[rounded]="rounded"
|
|
650
675
|
[fillMode]="fillMode"
|
|
651
676
|
[themeColor]="themeColor"
|
|
652
677
|
[tabindex]="-1"
|
|
678
|
+
aria-hidden="true"
|
|
653
679
|
(click)="onArrowButtonClick()"
|
|
654
680
|
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
655
681
|
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
@@ -675,6 +701,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
675
701
|
type: Input
|
|
676
702
|
}], icon: [{
|
|
677
703
|
type: Input
|
|
704
|
+
}], svgIcon: [{
|
|
705
|
+
type: Input
|
|
678
706
|
}], iconClass: [{
|
|
679
707
|
type: Input
|
|
680
708
|
}], type: [{
|
|
@@ -705,6 +733,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
705
733
|
type: Input
|
|
706
734
|
}], arrowButtonIcon: [{
|
|
707
735
|
type: Input
|
|
736
|
+
}], arrowButtonSvgIcon: [{
|
|
737
|
+
type: Input
|
|
708
738
|
}], buttonClick: [{
|
|
709
739
|
type: Output
|
|
710
740
|
}], itemClick: [{
|
|
@@ -724,7 +754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
724
754
|
args: [ButtonItemTemplateDirective]
|
|
725
755
|
}], button: [{
|
|
726
756
|
type: ViewChild,
|
|
727
|
-
args: ['button']
|
|
757
|
+
args: ['button', { read: ElementRef }]
|
|
728
758
|
}], arrowButton: [{
|
|
729
759
|
type: ViewChild,
|
|
730
760
|
args: ['arrowButton', { read: ElementRef }]
|
package/{esm2015/splitbutton/splitbutton.module.js → esm2020/splitbutton/splitbutton.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';
|
|
@@ -21,10 +21,10 @@ import * as i0 from "@angular/core";
|
|
|
21
21
|
*/
|
|
22
22
|
export class SplitButtonModule {
|
|
23
23
|
}
|
|
24
|
-
SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
SplitButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
26
|
-
SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
+
SplitButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent], imports: [CommonModule, PopupModule, ButtonModule, ListModule], exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent] });
|
|
26
|
+
SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
28
28
|
type: NgModule,
|
|
29
29
|
args: [{
|
|
30
30
|
declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
@@ -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 { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
|