@progress/kendo-angular-buttons 6.4.0 → 7.0.0-next.202111120840
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/bundles/kendo-angular-buttons.umd.js +5 -0
- package/{dist/es2015/button → button}/button.directive.d.ts +29 -21
- package/{dist/es2015/button → button}/button.module.d.ts +5 -0
- package/{dist/es2015/button → button}/button.service.d.ts +3 -0
- package/{dist/es2015/button → button}/selection-settings.d.ts +0 -0
- package/{dist/es2015/button-look.d.ts → button-look.d.ts} +0 -0
- package/{dist/es2015/buttongroup → buttongroup}/buttongroup.component.d.ts +16 -12
- package/buttongroup/buttongroup.module.d.ts +21 -0
- package/{dist/es2015/buttons.module.d.ts → buttons.module.d.ts} +10 -0
- package/{dist/es2015/chip → chip}/chip-content-click-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip-list-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip-list.component.d.ts +5 -2
- package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip.component.d.ts +15 -14
- package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
- package/{dist/es2015/buttongroup/buttongroup.module.d.ts → chip/models/chip-look.d.ts} +10 -6
- package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
- package/{dist/es2015/chip → chip}/models/type.d.ts +0 -0
- package/{dist/es2015/common → common}/models/shape.d.ts +0 -0
- package/{dist/es2015/common → common}/models/size.d.ts +0 -0
- package/{dist/es2015/common → common}/models/theme-color.d.ts +0 -0
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +24 -17
- package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
- package/{dist/es2015 → esm2015}/button/button.directive.js +97 -151
- package/{dist/es → esm2015}/button/button.module.js +13 -13
- package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
- package/{dist/es → esm2015}/button/selection-settings.js +1 -0
- package/{dist/es2015 → esm2015}/button-look.js +1 -0
- package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +93 -125
- package/esm2015/buttongroup/buttongroup.module.js +30 -0
- package/{dist/es → esm2015}/buttons.module.js +12 -12
- package/{dist/es2015 → esm2015}/chip/chip-content-click-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip-list-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip-list.component.js +56 -63
- package/{dist/es → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip.component.js +121 -128
- package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
- package/{dist/es → esm2015}/chip/models/chip-look.js +1 -0
- package/{dist/es → esm2015}/chip/models/selection.js +1 -0
- package/{dist/es → esm2015}/chip/models/type.js +1 -0
- package/{dist/es → esm2015}/common/models/shape.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
- package/{dist/es → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +162 -180
- package/esm2015/dropdownbutton/dropdownbutton.module.js +32 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/animations/animations.js +0 -0
- package/esm2015/floatingactionbutton/dial-item.component.js +126 -0
- package/esm2015/floatingactionbutton/dial-list.component.js +89 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +150 -150
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.module.js +19 -11
- package/{dist/es → esm2015}/floatingactionbutton/models/align.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item-animation.interface.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item-click.event.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/item.interface.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/offset.js +1 -0
- package/{dist/es → esm2015}/floatingactionbutton/models/position-mode.js +1 -0
- package/esm2015/floatingactionbutton/templates/dial-item-template.directive.js +27 -0
- package/esm2015/floatingactionbutton/templates/fab-template.directive.js +27 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/utils.js +0 -0
- package/{dist/es2015 → esm2015}/focusable/focus.service.js +8 -10
- package/{dist/es2015 → esm2015}/focusable/focusable.directive.js +15 -16
- package/{dist/es2015/listbutton/list.module.d.ts → esm2015/kendo-angular-buttons.js} +2 -3
- package/{dist/es2015 → esm2015}/listbutton/button-item-template.directive.js +13 -12
- package/{dist/es2015 → esm2015}/listbutton/list-button.js +15 -2
- package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
- package/esm2015/listbutton/list.component.js +120 -0
- package/esm2015/listbutton/list.module.js +39 -0
- package/{dist/es → esm2015}/listbutton/popup-settings.js +1 -0
- package/esm2015/listbutton/template-context.directive.js +33 -0
- package/{dist/es2015 → esm2015}/main.js +5 -1
- package/{dist/es → esm2015}/navigation/key-events.js +0 -0
- package/{dist/es → esm2015}/navigation/navigation-action.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-config.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation.service.js +11 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
- package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +186 -192
- package/esm2015/splitbutton/splitbutton.module.js +32 -0
- package/{dist/es2015 → esm2015}/util.js +2 -6
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1613 -1723
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/animations/animations.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-item.component.d.ts +8 -5
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/dial-list.component.d.ts +5 -2
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.component.d.ts +28 -19
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/floatingactionbutton.module.d.ts +13 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/align.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-animation.interface.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item-click.event.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/item.interface.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/offset.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/models/position-mode.d.ts +0 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/dial-item-template.directive.d.ts +3 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/templates/fab-template.directive.d.ts +3 -0
- package/{dist/es2015/floatingactionbutton → floatingactionbutton}/utils.d.ts +0 -0
- package/{dist/es2015/focusable → focusable}/focus.service.d.ts +5 -1
- package/{dist/es2015/focusable → focusable}/focusable.directive.d.ts +3 -0
- package/kendo-angular-buttons.d.ts +9 -0
- package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
- package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +6 -2
- package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
- package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +3 -0
- package/listbutton/list.module.d.ts +18 -0
- package/{dist/es2015/listbutton → listbutton}/popup-settings.d.ts +0 -0
- package/{dist/es2015/listbutton → listbutton}/template-context.directive.d.ts +4 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +5 -1
- package/{dist/es2015/navigation → navigation}/key-events.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-action.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-config.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -105
- package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +26 -19
- package/splitbutton/splitbutton.module.d.ts +23 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -4
- package/dist/cdn/js/kendo-angular-buttons.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/button/button.directive.js +0 -630
- package/dist/es/button/button.service.js +0 -28
- package/dist/es/button-look.js +0 -4
- package/dist/es/buttongroup/buttongroup.component.js +0 -402
- package/dist/es/buttongroup/buttongroup.module.js +0 -30
- package/dist/es/chip/chip-content-click-event-args.interface.js +0 -4
- package/dist/es/chip/chip-list-remove-event-args.interface.js +0 -4
- package/dist/es/chip/chip-list.component.js +0 -164
- package/dist/es/chip/chip.component.js +0 -360
- package/dist/es/chip/chip.module.js +0 -55
- package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -652
- package/dist/es/dropdownbutton/dropdownbutton.module.js +0 -32
- package/dist/es/floatingactionbutton/animations/animations.js +0 -33
- package/dist/es/floatingactionbutton/dial-item.component.js +0 -143
- package/dist/es/floatingactionbutton/dial-list.component.js +0 -76
- package/dist/es/floatingactionbutton/floatingactionbutton.component.js +0 -878
- package/dist/es/floatingactionbutton/floatingactionbutton.module.js +0 -65
- package/dist/es/floatingactionbutton/templates/dial-item-template.directive.js +0 -26
- package/dist/es/floatingactionbutton/templates/fab-template.directive.js +0 -26
- package/dist/es/floatingactionbutton/utils.js +0 -38
- package/dist/es/focusable/focus.service.js +0 -43
- package/dist/es/focusable/focusable.directive.js +0 -68
- package/dist/es/index.js +0 -22
- package/dist/es/listbutton/button-item-template.directive.js +0 -68
- package/dist/es/listbutton/list-button.js +0 -240
- package/dist/es/listbutton/list.component.js +0 -66
- package/dist/es/listbutton/list.module.js +0 -33
- package/dist/es/listbutton/template-context.directive.js +0 -40
- package/dist/es/main.js +0 -22
- package/dist/es/navigation/navigation-config.js +0 -9
- package/dist/es/navigation/navigation.service.js +0 -114
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-event.js +0 -29
- package/dist/es/splitbutton/localization/custom-messages.component.js +0 -44
- package/dist/es/splitbutton/localization/localized-messages.directive.js +0 -35
- package/dist/es/splitbutton/localization/messages.js +0 -22
- package/dist/es/splitbutton/splitbutton.component.js +0 -761
- package/dist/es/splitbutton/splitbutton.module.js +0 -34
- package/dist/es/util.js +0 -45
- package/dist/es2015/button/button.module.js +0 -47
- package/dist/es2015/button/selection-settings.js +0 -4
- package/dist/es2015/buttongroup/buttongroup.module.js +0 -27
- package/dist/es2015/buttons.module.js +0 -51
- package/dist/es2015/chip/chip-remove-event-args.interface.js +0 -4
- package/dist/es2015/chip/models/chip-look.d.ts +0 -20
- package/dist/es2015/chip/models/chip-look.js +0 -4
- package/dist/es2015/chip/models/selection.js +0 -4
- package/dist/es2015/chip/models/type.js +0 -4
- package/dist/es2015/common/models/shape.js +0 -4
- package/dist/es2015/common/models/size.js +0 -4
- package/dist/es2015/common/models/theme-color.js +0 -4
- package/dist/es2015/direction.js +0 -4
- package/dist/es2015/dropdownbutton/dropdownbutton.module.d.ts +0 -14
- package/dist/es2015/dropdownbutton/dropdownbutton.module.js +0 -29
- package/dist/es2015/floatingactionbutton/dial-item.component.js +0 -133
- package/dist/es2015/floatingactionbutton/dial-list.component.js +0 -81
- package/dist/es2015/floatingactionbutton/models/align.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item-animation.interface.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item-click.event.js +0 -4
- package/dist/es2015/floatingactionbutton/models/item.interface.js +0 -4
- package/dist/es2015/floatingactionbutton/models/offset.js +0 -4
- package/dist/es2015/floatingactionbutton/models/position-mode.js +0 -4
- package/dist/es2015/floatingactionbutton/templates/dial-item-template.directive.js +0 -25
- package/dist/es2015/floatingactionbutton/templates/fab-template.directive.js +0 -25
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/listbutton/list-item-model.js +0 -4
- package/dist/es2015/listbutton/list.component.js +0 -96
- package/dist/es2015/listbutton/list.module.js +0 -30
- package/dist/es2015/listbutton/popup-settings.js +0 -4
- package/dist/es2015/listbutton/template-context.directive.js +0 -35
- package/dist/es2015/navigation/key-events.js +0 -13
- package/dist/es2015/navigation/navigation-action.js +0 -19
- package/dist/es2015/splitbutton/localization/custom-messages.component.d.ts +0 -15
- package/dist/es2015/splitbutton/localization/custom-messages.component.js +0 -36
- package/dist/es2015/splitbutton/localization/localized-messages.directive.d.ts +0 -13
- package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/splitbutton/localization/messages.d.ts +0 -32
- package/dist/es2015/splitbutton/localization/messages.js +0 -16
- package/dist/es2015/splitbutton/splitbutton.module.d.ts +0 -14
- package/dist/es2015/splitbutton/splitbutton.module.js +0 -31
- package/dist/fesm5/index.js +0 -5123
- package/dist/npm/button/button.directive.js +0 -632
- package/dist/npm/button/button.module.js +0 -52
- package/dist/npm/button/button.service.js +0 -30
- package/dist/npm/button/selection-settings.js +0 -6
- package/dist/npm/button-look.js +0 -6
- package/dist/npm/buttongroup/buttongroup.component.js +0 -404
- package/dist/npm/buttongroup/buttongroup.module.js +0 -32
- package/dist/npm/buttons.module.js +0 -56
- package/dist/npm/chip/chip-content-click-event-args.interface.js +0 -6
- package/dist/npm/chip/chip-list-remove-event-args.interface.js +0 -6
- package/dist/npm/chip/chip-list.component.js +0 -166
- package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
- package/dist/npm/chip/chip.component.js +0 -362
- package/dist/npm/chip/chip.module.js +0 -57
- package/dist/npm/chip/models/chip-look.js +0 -6
- package/dist/npm/chip/models/selection.js +0 -6
- package/dist/npm/chip/models/type.js +0 -6
- package/dist/npm/common/models/shape.js +0 -6
- package/dist/npm/common/models/size.js +0 -6
- package/dist/npm/common/models/theme-color.js +0 -6
- package/dist/npm/direction.js +0 -6
- package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -654
- package/dist/npm/dropdownbutton/dropdownbutton.module.js +0 -34
- package/dist/npm/floatingactionbutton/animations/animations.js +0 -37
- package/dist/npm/floatingactionbutton/dial-item.component.js +0 -145
- package/dist/npm/floatingactionbutton/dial-list.component.js +0 -78
- package/dist/npm/floatingactionbutton/floatingactionbutton.component.js +0 -880
- package/dist/npm/floatingactionbutton/floatingactionbutton.module.js +0 -67
- package/dist/npm/floatingactionbutton/models/align.js +0 -6
- package/dist/npm/floatingactionbutton/models/item-animation.interface.js +0 -6
- package/dist/npm/floatingactionbutton/models/item-click.event.js +0 -6
- package/dist/npm/floatingactionbutton/models/item.interface.js +0 -6
- package/dist/npm/floatingactionbutton/models/offset.js +0 -6
- package/dist/npm/floatingactionbutton/models/position-mode.js +0 -6
- package/dist/npm/floatingactionbutton/templates/dial-item-template.directive.js +0 -28
- package/dist/npm/floatingactionbutton/templates/fab-template.directive.js +0 -28
- package/dist/npm/floatingactionbutton/utils.js +0 -42
- package/dist/npm/focusable/focus.service.js +0 -45
- package/dist/npm/focusable/focusable.directive.js +0 -70
- package/dist/npm/index.js +0 -39
- package/dist/npm/listbutton/button-item-template.directive.js +0 -70
- package/dist/npm/listbutton/list-button.js +0 -242
- package/dist/npm/listbutton/list-item-model.js +0 -6
- package/dist/npm/listbutton/list.component.js +0 -68
- package/dist/npm/listbutton/list.module.js +0 -35
- package/dist/npm/listbutton/popup-settings.js +0 -6
- package/dist/npm/listbutton/template-context.directive.js +0 -42
- package/dist/npm/main.js +0 -45
- package/dist/npm/navigation/key-events.js +0 -15
- package/dist/npm/navigation/navigation-action.js +0 -21
- package/dist/npm/navigation/navigation-config.js +0 -11
- package/dist/npm/navigation/navigation.service.js +0 -116
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-event.js +0 -31
- package/dist/npm/splitbutton/localization/custom-messages.component.js +0 -46
- package/dist/npm/splitbutton/localization/localized-messages.directive.js +0 -37
- package/dist/npm/splitbutton/localization/messages.js +0 -24
- package/dist/npm/splitbutton/splitbutton.component.js +0 -763
- package/dist/npm/splitbutton/splitbutton.module.js +0 -36
- package/dist/npm/util.js +0 -48
- package/dist/systemjs/kendo-angular-buttons.js +0 -5
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* Copyright © 2021 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
|
-
|
|
6
|
-
|
|
7
|
-
import { Component, ElementRef, TemplateRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
/* eslint-disable no-access-missing-member */
|
|
6
|
+
import { Component, ElementRef, Input, Output, HostBinding, HostListener, EventEmitter, ContentChild, ViewChild, ViewContainerRef } from '@angular/core';
|
|
8
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
10
8
|
import { ListButton } from './../listbutton/list-button';
|
|
11
9
|
import { ButtonItemTemplateDirective } from './../listbutton/button-item-template.directive';
|
|
12
10
|
import { FocusService } from './../focusable/focus.service';
|
|
@@ -16,14 +14,20 @@ import { isDocumentAvailable, guid, isChanged } from '@progress/kendo-angular-co
|
|
|
16
14
|
import { isPresent, tick } from './../util';
|
|
17
15
|
import { PreventableEvent } from '../preventable-event';
|
|
18
16
|
import { Keys } from '@progress/kendo-angular-common';
|
|
19
|
-
import
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
import * as i1 from "./../focusable/focus.service";
|
|
19
|
+
import * as i2 from "./../navigation/navigation.service";
|
|
20
|
+
import * as i3 from "@progress/kendo-angular-popup";
|
|
21
|
+
import * as i4 from "@progress/kendo-angular-l10n";
|
|
22
|
+
import * as i5 from "../listbutton/list.component";
|
|
23
|
+
import * as i6 from "../button/button.directive";
|
|
24
|
+
import * as i7 from "@angular/common";
|
|
20
25
|
const NAVIGATION_SETTINGS = {
|
|
21
26
|
useLeftRightArrows: true
|
|
22
27
|
};
|
|
23
|
-
const ɵ0 = NAVIGATION_SETTINGS;
|
|
24
28
|
const NAVIGATION_SETTINGS_PROVIDER = {
|
|
25
29
|
provide: NAVIGATION_CONFIG,
|
|
26
|
-
useValue:
|
|
30
|
+
useValue: NAVIGATION_SETTINGS
|
|
27
31
|
};
|
|
28
32
|
/**
|
|
29
33
|
* Represents the Kendo UI SplitButton component for Angular.
|
|
@@ -66,12 +70,11 @@ const NAVIGATION_SETTINGS_PROVIDER = {
|
|
|
66
70
|
* }
|
|
67
71
|
* ```
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
export class SplitButtonComponent extends ListButton {
|
|
70
74
|
constructor(focusService, navigationService, wrapperRef, zone, popupService, elRef, localization, cdr) {
|
|
71
75
|
super(focusService, navigationService, wrapperRef, zone, localization, cdr);
|
|
72
76
|
this.popupService = popupService;
|
|
73
77
|
this.elRef = elRef;
|
|
74
|
-
this.localization = localization;
|
|
75
78
|
/**
|
|
76
79
|
* Sets the text of the SplitButton.
|
|
77
80
|
*/
|
|
@@ -165,11 +168,11 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
165
168
|
/**
|
|
166
169
|
* Fires each time the SplitButton gets focused.
|
|
167
170
|
*/
|
|
168
|
-
this.onFocus = new EventEmitter(); //
|
|
171
|
+
this.onFocus = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
169
172
|
/**
|
|
170
173
|
* Fires each time the SplitButton gets blurred.
|
|
171
174
|
*/
|
|
172
|
-
this.onBlur = new EventEmitter(); //
|
|
175
|
+
this.onBlur = new EventEmitter(); //eslint-disable-line no-output-rename
|
|
173
176
|
/**
|
|
174
177
|
* Fires each time the popup is about to open.
|
|
175
178
|
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
@@ -291,8 +294,7 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
291
294
|
* @hidden
|
|
292
295
|
*/
|
|
293
296
|
get ariaLabel() {
|
|
294
|
-
|
|
295
|
-
return replaceMessagePlaceholder(localizationMsg, 'buttonText', this.buttonText);
|
|
297
|
+
return `${this.buttonText} splitbutton`;
|
|
296
298
|
}
|
|
297
299
|
/**
|
|
298
300
|
* @hidden
|
|
@@ -514,176 +516,94 @@ let SplitButtonComponent = class SplitButtonComponent extends ListButton {
|
|
|
514
516
|
this.popupRef = null;
|
|
515
517
|
}
|
|
516
518
|
}
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
], SplitButtonComponent.prototype, "iconClass", void 0);
|
|
530
|
-
tslib_1.__decorate([
|
|
531
|
-
Input(),
|
|
532
|
-
tslib_1.__metadata("design:type", String)
|
|
533
|
-
], SplitButtonComponent.prototype, "type", void 0);
|
|
534
|
-
tslib_1.__decorate([
|
|
535
|
-
Input(),
|
|
536
|
-
tslib_1.__metadata("design:type", String)
|
|
537
|
-
], SplitButtonComponent.prototype, "imageUrl", void 0);
|
|
538
|
-
tslib_1.__decorate([
|
|
539
|
-
Input(),
|
|
540
|
-
tslib_1.__metadata("design:type", String)
|
|
541
|
-
], SplitButtonComponent.prototype, "look", void 0);
|
|
542
|
-
tslib_1.__decorate([
|
|
543
|
-
Input(),
|
|
544
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
545
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
546
|
-
], SplitButtonComponent.prototype, "disabled", null);
|
|
547
|
-
tslib_1.__decorate([
|
|
548
|
-
Input(),
|
|
549
|
-
tslib_1.__metadata("design:type", Object),
|
|
550
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
551
|
-
], SplitButtonComponent.prototype, "popupSettings", null);
|
|
552
|
-
tslib_1.__decorate([
|
|
553
|
-
Input(),
|
|
554
|
-
tslib_1.__metadata("design:type", Number)
|
|
555
|
-
], SplitButtonComponent.prototype, "tabIndex", void 0);
|
|
556
|
-
tslib_1.__decorate([
|
|
557
|
-
Input(),
|
|
558
|
-
tslib_1.__metadata("design:type", String)
|
|
559
|
-
], SplitButtonComponent.prototype, "textField", void 0);
|
|
560
|
-
tslib_1.__decorate([
|
|
561
|
-
Input(),
|
|
562
|
-
tslib_1.__metadata("design:type", Object),
|
|
563
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
564
|
-
], SplitButtonComponent.prototype, "data", null);
|
|
565
|
-
tslib_1.__decorate([
|
|
566
|
-
Input(),
|
|
567
|
-
tslib_1.__metadata("design:type", Object)
|
|
568
|
-
], SplitButtonComponent.prototype, "buttonClass", void 0);
|
|
569
|
-
tslib_1.__decorate([
|
|
570
|
-
Input(),
|
|
571
|
-
tslib_1.__metadata("design:type", Object)
|
|
572
|
-
], SplitButtonComponent.prototype, "arrowButtonClass", void 0);
|
|
573
|
-
tslib_1.__decorate([
|
|
574
|
-
Input(),
|
|
575
|
-
tslib_1.__metadata("design:type", String)
|
|
576
|
-
], SplitButtonComponent.prototype, "arrowButtonIcon", void 0);
|
|
577
|
-
tslib_1.__decorate([
|
|
578
|
-
Output(),
|
|
579
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
580
|
-
], SplitButtonComponent.prototype, "buttonClick", void 0);
|
|
581
|
-
tslib_1.__decorate([
|
|
582
|
-
Output(),
|
|
583
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
584
|
-
], SplitButtonComponent.prototype, "itemClick", void 0);
|
|
585
|
-
tslib_1.__decorate([
|
|
586
|
-
Output('focus'),
|
|
587
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
588
|
-
], SplitButtonComponent.prototype, "onFocus", void 0);
|
|
589
|
-
tslib_1.__decorate([
|
|
590
|
-
Output('blur'),
|
|
591
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
592
|
-
], SplitButtonComponent.prototype, "onBlur", void 0);
|
|
593
|
-
tslib_1.__decorate([
|
|
594
|
-
Output(),
|
|
595
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
596
|
-
], SplitButtonComponent.prototype, "open", void 0);
|
|
597
|
-
tslib_1.__decorate([
|
|
598
|
-
Output(),
|
|
599
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
600
|
-
], SplitButtonComponent.prototype, "close", void 0);
|
|
601
|
-
tslib_1.__decorate([
|
|
602
|
-
ContentChild(ButtonItemTemplateDirective, { static: false }),
|
|
603
|
-
tslib_1.__metadata("design:type", ButtonItemTemplateDirective)
|
|
604
|
-
], SplitButtonComponent.prototype, "itemTemplate", void 0);
|
|
605
|
-
tslib_1.__decorate([
|
|
606
|
-
ViewChild('button', { static: true }),
|
|
607
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
608
|
-
], SplitButtonComponent.prototype, "button", void 0);
|
|
609
|
-
tslib_1.__decorate([
|
|
610
|
-
ViewChild('arrowButton', { static: true, read: ElementRef }),
|
|
611
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
612
|
-
], SplitButtonComponent.prototype, "arrowButton", void 0);
|
|
613
|
-
tslib_1.__decorate([
|
|
614
|
-
ViewChild('popupTemplate', { static: true }),
|
|
615
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
616
|
-
], SplitButtonComponent.prototype, "popupTemplate", void 0);
|
|
617
|
-
tslib_1.__decorate([
|
|
618
|
-
ViewChild('container', { read: ViewContainerRef, static: true }),
|
|
619
|
-
tslib_1.__metadata("design:type", ViewContainerRef)
|
|
620
|
-
], SplitButtonComponent.prototype, "containerRef", void 0);
|
|
621
|
-
tslib_1.__decorate([
|
|
622
|
-
HostBinding('class.k-state-focused'),
|
|
623
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
624
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
625
|
-
], SplitButtonComponent.prototype, "isFocused", null);
|
|
626
|
-
tslib_1.__decorate([
|
|
627
|
-
HostBinding('class.k-flat'),
|
|
628
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
629
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
630
|
-
], SplitButtonComponent.prototype, "isFlat", null);
|
|
631
|
-
tslib_1.__decorate([
|
|
632
|
-
HostBinding('class.k-outline'),
|
|
633
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
634
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
635
|
-
], SplitButtonComponent.prototype, "isOutline", null);
|
|
636
|
-
tslib_1.__decorate([
|
|
637
|
-
HostBinding('class.k-split-button'),
|
|
638
|
-
HostBinding('class.k-button-group'),
|
|
639
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
640
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
641
|
-
], SplitButtonComponent.prototype, "widgetClasses", null);
|
|
642
|
-
tslib_1.__decorate([
|
|
643
|
-
HostBinding('attr.dir'),
|
|
644
|
-
tslib_1.__metadata("design:type", String),
|
|
645
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
646
|
-
], SplitButtonComponent.prototype, "dir", null);
|
|
647
|
-
tslib_1.__decorate([
|
|
648
|
-
HostListener('keydown', ['$event']),
|
|
649
|
-
tslib_1.__metadata("design:type", Function),
|
|
650
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
651
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
652
|
-
], SplitButtonComponent.prototype, "keydown", null);
|
|
653
|
-
tslib_1.__decorate([
|
|
654
|
-
HostListener('keypress', ['$event']),
|
|
655
|
-
tslib_1.__metadata("design:type", Function),
|
|
656
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
657
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
658
|
-
], SplitButtonComponent.prototype, "keypress", null);
|
|
659
|
-
tslib_1.__decorate([
|
|
660
|
-
HostListener('keyup', ['$event']),
|
|
661
|
-
tslib_1.__metadata("design:type", Function),
|
|
662
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
663
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
664
|
-
], SplitButtonComponent.prototype, "keyup", null);
|
|
665
|
-
SplitButtonComponent = tslib_1.__decorate([
|
|
666
|
-
Component({
|
|
667
|
-
exportAs: 'kendoSplitButton',
|
|
668
|
-
providers: [
|
|
669
|
-
FocusService,
|
|
670
|
-
NavigationService,
|
|
671
|
-
NAVIGATION_SETTINGS_PROVIDER,
|
|
672
|
-
LocalizationService,
|
|
673
|
-
{
|
|
674
|
-
provide: L10N_PREFIX,
|
|
675
|
-
useValue: 'kendo.splitbutton'
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
selector: 'kendo-splitbutton',
|
|
679
|
-
template: `
|
|
680
|
-
<ng-container kendoSplitButtonLocalizedMessages
|
|
681
|
-
i18n-splitButtonLabel="kendo.splitbutton.splitButtonLabel|The text for the SplitButton aria-label"
|
|
682
|
-
splitButtonLabel="{{ '{buttonText} splitbutton' }}">
|
|
683
|
-
</ng-container>
|
|
519
|
+
}
|
|
520
|
+
SplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
521
|
+
SplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SplitButtonComponent, selector: "kendo-splitbutton", inputs: { text: "text", icon: "icon", iconClass: "iconClass", type: "type", imageUrl: "imageUrl", look: "look", disabled: "disabled", popupSettings: "popupSettings", tabIndex: "tabIndex", textField: "textField", data: "data", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", onFocus: "focus", onBlur: "blur", open: "open", close: "close" }, host: { listeners: { "keydown": "keydown($event)", "keypress": "keypress($event)", "keyup": "keyup($event)" }, properties: { "class.k-state-focused": "this.isFocused", "class.k-flat": "this.isFlat", "class.k-outline": "this.isOutline", "class.k-split-button": "this.widgetClasses", "class.k-button-group": "this.widgetClasses", "attr.dir": "this.dir" } }, providers: [
|
|
522
|
+
FocusService,
|
|
523
|
+
NavigationService,
|
|
524
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
525
|
+
LocalizationService,
|
|
526
|
+
{
|
|
527
|
+
provide: L10N_PREFIX,
|
|
528
|
+
useValue: 'kendo.splitbutton'
|
|
529
|
+
}
|
|
530
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ButtonItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true, static: true }, { propertyName: "arrowButton", first: true, predicate: ["arrowButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], exportAs: ["kendoSplitButton"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
684
531
|
<button
|
|
685
532
|
kendoButton
|
|
686
533
|
#button
|
|
534
|
+
role="listbox"
|
|
535
|
+
[type]="type"
|
|
536
|
+
[look]="look"
|
|
537
|
+
[tabindex]="componentTabIndex"
|
|
538
|
+
[disabled]="disabled"
|
|
539
|
+
[icon]="icon"
|
|
540
|
+
[class.k-state-active]="active"
|
|
541
|
+
[iconClass]="iconClass"
|
|
542
|
+
[imageUrl]="imageUrl"
|
|
543
|
+
[ngClass]="buttonClass"
|
|
544
|
+
(focus)="onButtonFocus()"
|
|
545
|
+
(click)="onButtonClick()"
|
|
546
|
+
(blur)="onButtonBlur()"
|
|
547
|
+
(mousedown)="toggleButtonActiveState(true)"
|
|
548
|
+
(mouseup)="toggleButtonActiveState(false)"
|
|
549
|
+
[attr.aria-disabled]="disabled"
|
|
550
|
+
[attr.aria-expanded]="openState"
|
|
551
|
+
[attr.aria-haspopup]="true"
|
|
552
|
+
[attr.aria-owns]="listId"
|
|
553
|
+
[attr.aria-label]="ariaLabel"
|
|
554
|
+
>
|
|
555
|
+
{{ text }}<ng-content></ng-content>
|
|
556
|
+
</button>
|
|
557
|
+
<button
|
|
558
|
+
kendoButton
|
|
559
|
+
#arrowButton
|
|
560
|
+
type="button"
|
|
561
|
+
[class.k-state-active]="activeArrow"
|
|
562
|
+
[disabled]="disabled"
|
|
563
|
+
[icon]="arrowButtonIcon"
|
|
564
|
+
[look]="look"
|
|
565
|
+
[tabindex]="-1"
|
|
566
|
+
[ngClass]="arrowButtonClass"
|
|
567
|
+
(click)="onArrowButtonClick()"
|
|
568
|
+
(mousedown)="toggleArrowButtonActiveState(true)"
|
|
569
|
+
(mouseup)="toggleArrowButtonActiveState(false)"
|
|
570
|
+
></button>
|
|
571
|
+
<ng-template #popupTemplate>
|
|
572
|
+
<kendo-button-list
|
|
573
|
+
[id]="listId"
|
|
574
|
+
[data]="data"
|
|
575
|
+
[textField]="textField"
|
|
576
|
+
[itemTemplate]="itemTemplate"
|
|
577
|
+
(onItemClick)="onItemClick($event)"
|
|
578
|
+
(keydown)="keyDownHandler($event)"
|
|
579
|
+
(keypress)="keyPressHandler($event)"
|
|
580
|
+
(keyup)="keyUpHandler($event)"
|
|
581
|
+
[attr.dir]="dir"
|
|
582
|
+
>
|
|
583
|
+
</kendo-button-list>
|
|
584
|
+
</ng-template>
|
|
585
|
+
<ng-container #container></ng-container>
|
|
586
|
+
`, isInline: true, components: [{ type: i5.ListComponent, selector: "kendo-button-list", inputs: ["data", "textField", "itemTemplate"], outputs: ["onItemClick", "onItemBlur"] }], directives: [{ type: i6.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "primary", "look", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "role"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SplitButtonComponent, decorators: [{
|
|
588
|
+
type: Component,
|
|
589
|
+
args: [{
|
|
590
|
+
exportAs: 'kendoSplitButton',
|
|
591
|
+
providers: [
|
|
592
|
+
FocusService,
|
|
593
|
+
NavigationService,
|
|
594
|
+
NAVIGATION_SETTINGS_PROVIDER,
|
|
595
|
+
LocalizationService,
|
|
596
|
+
{
|
|
597
|
+
provide: L10N_PREFIX,
|
|
598
|
+
useValue: 'kendo.splitbutton'
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
selector: 'kendo-splitbutton',
|
|
602
|
+
template: `
|
|
603
|
+
<button
|
|
604
|
+
kendoButton
|
|
605
|
+
#button
|
|
606
|
+
role="listbox"
|
|
687
607
|
[type]="type"
|
|
688
608
|
[look]="look"
|
|
689
609
|
[tabindex]="componentTabIndex"
|
|
@@ -736,15 +656,89 @@ SplitButtonComponent = tslib_1.__decorate([
|
|
|
736
656
|
</ng-template>
|
|
737
657
|
<ng-container #container></ng-container>
|
|
738
658
|
`
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
],
|
|
749
|
-
|
|
750
|
-
|
|
659
|
+
}]
|
|
660
|
+
}], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i2.NavigationService }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i3.PopupService }, { type: i0.ElementRef }, { type: i4.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
661
|
+
type: Input
|
|
662
|
+
}], icon: [{
|
|
663
|
+
type: Input
|
|
664
|
+
}], iconClass: [{
|
|
665
|
+
type: Input
|
|
666
|
+
}], type: [{
|
|
667
|
+
type: Input
|
|
668
|
+
}], imageUrl: [{
|
|
669
|
+
type: Input
|
|
670
|
+
}], look: [{
|
|
671
|
+
type: Input
|
|
672
|
+
}], disabled: [{
|
|
673
|
+
type: Input
|
|
674
|
+
}], popupSettings: [{
|
|
675
|
+
type: Input
|
|
676
|
+
}], tabIndex: [{
|
|
677
|
+
type: Input
|
|
678
|
+
}], textField: [{
|
|
679
|
+
type: Input
|
|
680
|
+
}], data: [{
|
|
681
|
+
type: Input
|
|
682
|
+
}], buttonClass: [{
|
|
683
|
+
type: Input
|
|
684
|
+
}], arrowButtonClass: [{
|
|
685
|
+
type: Input
|
|
686
|
+
}], arrowButtonIcon: [{
|
|
687
|
+
type: Input
|
|
688
|
+
}], buttonClick: [{
|
|
689
|
+
type: Output
|
|
690
|
+
}], itemClick: [{
|
|
691
|
+
type: Output
|
|
692
|
+
}], onFocus: [{
|
|
693
|
+
type: Output,
|
|
694
|
+
args: ['focus']
|
|
695
|
+
}], onBlur: [{
|
|
696
|
+
type: Output,
|
|
697
|
+
args: ['blur']
|
|
698
|
+
}], open: [{
|
|
699
|
+
type: Output
|
|
700
|
+
}], close: [{
|
|
701
|
+
type: Output
|
|
702
|
+
}], itemTemplate: [{
|
|
703
|
+
type: ContentChild,
|
|
704
|
+
args: [ButtonItemTemplateDirective, { static: false }]
|
|
705
|
+
}], button: [{
|
|
706
|
+
type: ViewChild,
|
|
707
|
+
args: ['button', { static: true }]
|
|
708
|
+
}], arrowButton: [{
|
|
709
|
+
type: ViewChild,
|
|
710
|
+
args: ['arrowButton', { static: true, read: ElementRef }]
|
|
711
|
+
}], popupTemplate: [{
|
|
712
|
+
type: ViewChild,
|
|
713
|
+
args: ['popupTemplate', { static: true }]
|
|
714
|
+
}], containerRef: [{
|
|
715
|
+
type: ViewChild,
|
|
716
|
+
args: ['container', { read: ViewContainerRef, static: true }]
|
|
717
|
+
}], isFocused: [{
|
|
718
|
+
type: HostBinding,
|
|
719
|
+
args: ['class.k-state-focused']
|
|
720
|
+
}], isFlat: [{
|
|
721
|
+
type: HostBinding,
|
|
722
|
+
args: ['class.k-flat']
|
|
723
|
+
}], isOutline: [{
|
|
724
|
+
type: HostBinding,
|
|
725
|
+
args: ['class.k-outline']
|
|
726
|
+
}], widgetClasses: [{
|
|
727
|
+
type: HostBinding,
|
|
728
|
+
args: ['class.k-split-button']
|
|
729
|
+
}, {
|
|
730
|
+
type: HostBinding,
|
|
731
|
+
args: ['class.k-button-group']
|
|
732
|
+
}], dir: [{
|
|
733
|
+
type: HostBinding,
|
|
734
|
+
args: ['attr.dir']
|
|
735
|
+
}], keydown: [{
|
|
736
|
+
type: HostListener,
|
|
737
|
+
args: ['keydown', ['$event']]
|
|
738
|
+
}], keypress: [{
|
|
739
|
+
type: HostListener,
|
|
740
|
+
args: ['keypress', ['$event']]
|
|
741
|
+
}], keyup: [{
|
|
742
|
+
type: HostListener,
|
|
743
|
+
args: ['keyup', ['$event']]
|
|
744
|
+
}] } });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { ButtonModule } from './../button/button.module';
|
|
9
|
+
import { ListModule } from './../listbutton/list.module';
|
|
10
|
+
import { SplitButtonComponent } from './splitbutton.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*
|
|
15
|
+
* The exported package module.
|
|
16
|
+
*
|
|
17
|
+
* The package exports:
|
|
18
|
+
* - `SplitButtonComponent`—The SplitButtonComponent component class.
|
|
19
|
+
*/
|
|
20
|
+
export class SplitButtonModule {
|
|
21
|
+
}
|
|
22
|
+
SplitButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
SplitButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SplitButtonModule, declarations: [SplitButtonComponent], imports: [CommonModule, PopupModule, ButtonModule, ListModule], exports: [SplitButtonComponent, ListModule] });
|
|
24
|
+
SplitButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SplitButtonModule, imports: [[CommonModule, PopupModule, ButtonModule, ListModule], ListModule] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
26
|
+
type: NgModule,
|
|
27
|
+
args: [{
|
|
28
|
+
declarations: [SplitButtonComponent],
|
|
29
|
+
exports: [SplitButtonComponent, ListModule],
|
|
30
|
+
imports: [CommonModule, PopupModule, ButtonModule, ListModule]
|
|
31
|
+
}]
|
|
32
|
+
}] });
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright © 2021 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
|
-
/*
|
|
6
|
-
/*
|
|
5
|
+
/* eslint-disable no-null-keyword */
|
|
6
|
+
/* eslint-disable no-bitwise */
|
|
7
7
|
const resolvedPromise = Promise.resolve(null);
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
@@ -37,7 +37,3 @@ export function closest(element, selector) {
|
|
|
37
37
|
node = node.parentNode;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export const replaceMessagePlaceholder = (message, name, value) => message.replace(new RegExp(`\{\\s*${name}\\s*\}`, 'g'), value);
|