@progress/kendo-angular-buttons 7.0.6 → 8.0.0-dev.202204190655
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 +64 -62
- 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/buttongroup → buttongroup}/buttongroup.component.d.ts +14 -11
- package/{dist/es2015/buttongroup → buttongroup}/buttongroup.module.d.ts +7 -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 +8 -4
- package/{dist/es2015/chip → chip}/chip-remove-event-args.interface.d.ts +0 -0
- package/{dist/es2015/chip → chip}/chip.component.d.ts +39 -33
- package/{dist/es2015/chip → chip}/chip.module.d.ts +7 -0
- package/{dist/es2015/chip → chip}/models/selection.d.ts +0 -0
- package/{dist/es2015/common → common}/models/fillmode.d.ts +2 -2
- package/{dist/es2015/common → common}/models/rounded.d.ts +2 -2
- package/{dist/es2015/common → common}/models/size.d.ts +3 -3
- package/{dist/es2015/common → common}/models/styling-classes.d.ts +0 -0
- package/{dist/es2015/common → common}/models/theme-color.d.ts +3 -3
- package/{dist/es2015/common → common}/models.d.ts +0 -1
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/dropdownbutton → dropdownbutton}/dropdownbutton.component.d.ts +37 -38
- package/dropdownbutton/dropdownbutton.module.d.ts +23 -0
- package/{dist/es2015 → esm2015}/button/button.directive.js +145 -215
- package/{dist/es2015 → esm2015}/button/button.module.js +13 -10
- package/{dist/es2015 → esm2015}/button/button.service.js +8 -10
- package/{dist/es → esm2015}/button/selection-settings.js +1 -0
- package/{dist/es2015 → esm2015}/buttongroup/buttongroup.component.js +88 -111
- 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 +62 -73
- package/{dist/es2015 → esm2015}/chip/chip-remove-event-args.interface.js +1 -0
- package/{dist/es2015 → esm2015}/chip/chip.component.js +171 -167
- package/{dist/es2015 → esm2015}/chip/chip.module.js +16 -11
- package/{dist/es → esm2015}/chip/models/selection.js +1 -0
- package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
- package/{dist/es → esm2015}/common/models/rounded.js +1 -0
- package/{dist/es → esm2015}/common/models/size.js +1 -0
- package/{dist/es → esm2015}/common/models/styling-classes.js +1 -0
- package/{dist/es → esm2015}/common/models/theme-color.js +1 -0
- package/{dist/es → esm2015}/common/models.js +5 -0
- package/{dist/es → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/dropdownbutton/dropdownbutton.component.js +185 -214
- 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 +127 -0
- package/esm2015/floatingactionbutton/dial-list.component.js +90 -0
- package/{dist/es2015 → esm2015}/floatingactionbutton/floatingactionbutton.component.js +205 -210
- 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 +20 -27
- 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 +12 -12
- package/{dist/es2015 → esm2015}/listbutton/list-button.js +30 -37
- package/{dist/es → esm2015}/listbutton/list-item-model.js +1 -0
- package/esm2015/listbutton/list.component.js +140 -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 +34 -0
- package/{dist/es2015 → esm2015}/main.js +7 -0
- package/{dist/es → esm2015}/navigation/key-events.js +0 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-action.js +1 -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/esm2015/splitbutton/localization/custom-messages.component.js +37 -0
- package/esm2015/splitbutton/localization/localized-messages.directive.js +36 -0
- package/esm2015/splitbutton/localization/messages.js +23 -0
- package/{dist/es2015 → esm2015}/splitbutton/splitbutton.component.js +221 -209
- package/esm2015/splitbutton/splitbutton.module.js +34 -0
- package/{dist/es2015 → esm2015}/util.js +7 -7
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-buttons.js} +1885 -1941
- 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 +50 -51
- 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 +4 -2
- package/{dist/es2015/common/models/shape.d.ts → kendo-angular-buttons.d.ts} +3 -3
- package/{dist/es2015/listbutton → listbutton}/button-item-template.directive.d.ts +3 -0
- package/{dist/es2015/listbutton → listbutton}/list-button.d.ts +7 -13
- package/{dist/es2015/listbutton → listbutton}/list-item-model.d.ts +0 -0
- package/{dist/es2015/listbutton → listbutton}/list.component.d.ts +4 -1
- 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} +7 -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 +38 -113
- 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}/localization/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/splitbutton → splitbutton}/localization/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/splitbutton → splitbutton}/localization/messages.d.ts +3 -0
- package/{dist/es2015/splitbutton → splitbutton}/splitbutton.component.d.ts +39 -27
- package/splitbutton/splitbutton.module.d.ts +25 -0
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- 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 -775
- package/dist/es/button/button.module.js +0 -50
- package/dist/es/button/button.service.js +0 -24
- package/dist/es/buttongroup/buttongroup.component.js +0 -353
- 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 -214
- package/dist/es/chip/chip-remove-event-args.interface.js +0 -4
- package/dist/es/chip/chip.component.js +0 -449
- package/dist/es/chip/chip.module.js +0 -55
- package/dist/es/common/models/shape.js +0 -4
- package/dist/es/dropdownbutton/dropdownbutton.component.js +0 -704
- 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 -903
- 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 -243
- package/dist/es/listbutton/list.component.js +0 -85
- 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-action.js +0 -19
- 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 -830
- package/dist/es/splitbutton/splitbutton.module.js +0 -34
- package/dist/es/util.js +0 -108
- 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/models/selection.js +0 -4
- package/dist/es2015/common/models/fillmode.js +0 -4
- package/dist/es2015/common/models/rounded.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/styling-classes.js +0 -4
- package/dist/es2015/common/models/theme-color.js +0 -4
- package/dist/es2015/common/models.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 -115
- 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/splitbutton/localization/custom-messages.component.js +0 -36
- package/dist/es2015/splitbutton/localization/localized-messages.directive.js +0 -31
- 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 -5577
- package/dist/npm/button/button.directive.js +0 -777
- package/dist/npm/button/button.module.js +0 -52
- package/dist/npm/button/button.service.js +0 -26
- package/dist/npm/button/selection-settings.js +0 -6
- package/dist/npm/buttongroup/buttongroup.component.js +0 -355
- 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 -216
- package/dist/npm/chip/chip-remove-event-args.interface.js +0 -6
- package/dist/npm/chip/chip.component.js +0 -451
- package/dist/npm/chip/chip.module.js +0 -57
- package/dist/npm/chip/models/selection.js +0 -6
- package/dist/npm/common/models/fillmode.js +0 -6
- package/dist/npm/common/models/rounded.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/styling-classes.js +0 -6
- package/dist/npm/common/models/theme-color.js +0 -6
- package/dist/npm/common/models.js +0 -6
- package/dist/npm/direction.js +0 -6
- package/dist/npm/dropdownbutton/dropdownbutton.component.js +0 -706
- 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 -905
- 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 -245
- package/dist/npm/listbutton/list-item-model.js +0 -6
- package/dist/npm/listbutton/list.component.js +0 -87
- 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 -832
- package/dist/npm/splitbutton/splitbutton.module.js +0 -36
- package/dist/npm/util.js +0 -111
- package/dist/systemjs/kendo-angular-buttons.js +0 -5
|
@@ -1,34 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { ButtonModule } from './../button/button.module';
|
|
10
|
-
import { ListModule } from './../listbutton/list.module';
|
|
11
|
-
import { SplitButtonComponent } from './splitbutton.component';
|
|
12
|
-
import { LocalizedSplitButtonMessagesDirective } from './localization/localized-messages.directive';
|
|
13
|
-
import { SplitButtonCustomMessagesComponent } from './localization/custom-messages.component';
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*
|
|
17
|
-
* The exported package module.
|
|
18
|
-
*
|
|
19
|
-
* The package exports:
|
|
20
|
-
* - `SplitButtonComponent`—The SplitButtonComponent component class.
|
|
21
|
-
*/
|
|
22
|
-
var SplitButtonModule = /** @class */ (function () {
|
|
23
|
-
function SplitButtonModule() {
|
|
24
|
-
}
|
|
25
|
-
SplitButtonModule = tslib_1.__decorate([
|
|
26
|
-
NgModule({
|
|
27
|
-
declarations: [SplitButtonComponent, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
28
|
-
exports: [SplitButtonComponent, ListModule, LocalizedSplitButtonMessagesDirective, SplitButtonCustomMessagesComponent],
|
|
29
|
-
imports: [CommonModule, PopupModule, ButtonModule, ListModule]
|
|
30
|
-
})
|
|
31
|
-
], SplitButtonModule);
|
|
32
|
-
return SplitButtonModule;
|
|
33
|
-
}());
|
|
34
|
-
export { SplitButtonModule };
|
package/dist/es/util.js
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
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
|
-
/* tslint:disable:no-null-keyword */
|
|
6
|
-
/* tslint:disable:no-bitwise */
|
|
7
|
-
import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
|
|
8
|
-
var resolvedPromise = Promise.resolve(null);
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export var isPresent = function (value) { return value !== null && value !== undefined; };
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export var tick = function (f) { return (resolvedPromise.then(f)); };
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
function isDocumentNode(container) {
|
|
21
|
-
return container.nodeType === 9;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export function closest(element, selector) {
|
|
27
|
-
if (element.closest) {
|
|
28
|
-
return element.closest(selector);
|
|
29
|
-
}
|
|
30
|
-
var matches = Element.prototype.matches ?
|
|
31
|
-
function (el, sel) { return el.matches(sel); }
|
|
32
|
-
: function (el, sel) { return el.msMatchesSelector(sel); };
|
|
33
|
-
var node = element;
|
|
34
|
-
while (node && !isDocumentNode(node)) {
|
|
35
|
-
if (matches(node, selector)) {
|
|
36
|
-
return node;
|
|
37
|
-
}
|
|
38
|
-
node = node.parentNode;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export var replaceMessagePlaceholder = function (message, name, value) {
|
|
45
|
-
return message.replace(new RegExp("{\\s*" + name + "\\s*}", 'g'), value);
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
export var SIZES = {
|
|
51
|
-
small: 'sm',
|
|
52
|
-
medium: 'md',
|
|
53
|
-
large: 'lg'
|
|
54
|
-
};
|
|
55
|
-
var ROUNDNESS = {
|
|
56
|
-
small: 'sm',
|
|
57
|
-
medium: 'md',
|
|
58
|
-
large: 'lg',
|
|
59
|
-
full: 'full'
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*
|
|
64
|
-
* Returns the styling classes to be added and removed
|
|
65
|
-
*/
|
|
66
|
-
export var getStylingClasses = function (componentType, stylingOption, previousValue, newValue) {
|
|
67
|
-
switch (stylingOption) {
|
|
68
|
-
case 'size':
|
|
69
|
-
return {
|
|
70
|
-
toRemove: "k-" + componentType + "-" + SIZES[previousValue],
|
|
71
|
-
toAdd: newValue ? "k-" + componentType + "-" + SIZES[newValue] : null
|
|
72
|
-
};
|
|
73
|
-
case 'rounded':
|
|
74
|
-
return {
|
|
75
|
-
toRemove: "k-rounded-" + ROUNDNESS[previousValue],
|
|
76
|
-
toAdd: newValue ? "k-rounded-" + ROUNDNESS[newValue] : null
|
|
77
|
-
};
|
|
78
|
-
case 'fillMode':
|
|
79
|
-
case 'shape':
|
|
80
|
-
return {
|
|
81
|
-
toRemove: "k-" + componentType + "-" + previousValue,
|
|
82
|
-
toAdd: newValue ? "k-" + componentType + "-" + newValue : null
|
|
83
|
-
};
|
|
84
|
-
default:
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* @hidden
|
|
90
|
-
*
|
|
91
|
-
* Returns the themeColor classes to be added and removed
|
|
92
|
-
*/
|
|
93
|
-
export var getThemeColorClasses = function (componentType, prevFillMode, fillMode, previousValue, newValue) {
|
|
94
|
-
return {
|
|
95
|
-
toRemove: "k-" + componentType + "-" + prevFillMode + "-" + previousValue,
|
|
96
|
-
toAdd: newValue ? "k-" + componentType + "-" + fillMode + "-" + newValue : null
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* @hidden
|
|
101
|
-
*
|
|
102
|
-
* Returns true if the used browser is Firefox.
|
|
103
|
-
*/
|
|
104
|
-
export var isFirefox = function (userAgent) {
|
|
105
|
-
var desktopBrowser = detectDesktopBrowser(userAgent);
|
|
106
|
-
var mobileOS = detectMobileOS(userAgent);
|
|
107
|
-
return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
|
|
108
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,27 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { ButtonModule } from '../button/button.module';
|
|
9
|
-
import { ButtonGroupComponent } from './buttongroup.component';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*
|
|
13
|
-
* The exported package module.
|
|
14
|
-
*
|
|
15
|
-
* The package exports:
|
|
16
|
-
* - `ButtonGroupComponent`—The ButtonGroupComponent component class.
|
|
17
|
-
*/
|
|
18
|
-
let ButtonGroupModule = class ButtonGroupModule {
|
|
19
|
-
};
|
|
20
|
-
ButtonGroupModule = tslib_1.__decorate([
|
|
21
|
-
NgModule({
|
|
22
|
-
declarations: [ButtonGroupComponent],
|
|
23
|
-
exports: [ButtonGroupComponent],
|
|
24
|
-
imports: [CommonModule, ButtonModule]
|
|
25
|
-
})
|
|
26
|
-
], ButtonGroupModule);
|
|
27
|
-
export { ButtonGroupModule };
|
|
@@ -1,51 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { ButtonModule } from './button/button.module';
|
|
8
|
-
import { ButtonGroupModule } from './buttongroup/buttongroup.module';
|
|
9
|
-
import { SplitButtonModule } from './splitbutton/splitbutton.module';
|
|
10
|
-
import { DropDownButtonModule } from './dropdownbutton/dropdownbutton.module';
|
|
11
|
-
import { ChipModule } from './chip/chip.module';
|
|
12
|
-
import { FloatingActionButtonModule } from './floatingactionbutton/floatingactionbutton.module';
|
|
13
|
-
/**
|
|
14
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
|
|
15
|
-
* definition for the Buttons components.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
*
|
|
19
|
-
* ```ts-no-run
|
|
20
|
-
* // Import the Buttons module
|
|
21
|
-
* import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
22
|
-
*
|
|
23
|
-
* // The browser platform with a compiler
|
|
24
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
25
|
-
*
|
|
26
|
-
* import { NgModule } from '@angular/core';
|
|
27
|
-
*
|
|
28
|
-
* // Import the app component
|
|
29
|
-
* import { AppComponent } from './app.component';
|
|
30
|
-
*
|
|
31
|
-
* // Define the app module
|
|
32
|
-
* _@NgModule({
|
|
33
|
-
* declarations: [AppComponent], // declare app component
|
|
34
|
-
* imports: [BrowserModule, ButtonsModule], // import Buttons module
|
|
35
|
-
* bootstrap: [AppComponent]
|
|
36
|
-
* })
|
|
37
|
-
* export class AppModule {}
|
|
38
|
-
*
|
|
39
|
-
* // Compile and launch the module
|
|
40
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
41
|
-
*
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
let ButtonsModule = class ButtonsModule {
|
|
45
|
-
};
|
|
46
|
-
ButtonsModule = tslib_1.__decorate([
|
|
47
|
-
NgModule({
|
|
48
|
-
exports: [ButtonGroupModule, ButtonModule, SplitButtonModule, DropDownButtonModule, ChipModule, FloatingActionButtonModule]
|
|
49
|
-
})
|
|
50
|
-
], ButtonsModule);
|
|
51
|
-
export { ButtonsModule };
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
package/dist/es2015/direction.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*
|
|
8
|
-
* The exported package module.
|
|
9
|
-
*
|
|
10
|
-
* The package exports:
|
|
11
|
-
* - `DropDownButtonComponent`—The DropDownButtonComponent component class.
|
|
12
|
-
*/
|
|
13
|
-
export declare class DropDownButtonModule {
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { ListModule } from '../listbutton/list.module';
|
|
10
|
-
import { ButtonModule } from '../button/button.module';
|
|
11
|
-
import { DropDownButtonComponent } from './dropdownbutton.component';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*
|
|
15
|
-
* The exported package module.
|
|
16
|
-
*
|
|
17
|
-
* The package exports:
|
|
18
|
-
* - `DropDownButtonComponent`—The DropDownButtonComponent component class.
|
|
19
|
-
*/
|
|
20
|
-
let DropDownButtonModule = class DropDownButtonModule {
|
|
21
|
-
};
|
|
22
|
-
DropDownButtonModule = tslib_1.__decorate([
|
|
23
|
-
NgModule({
|
|
24
|
-
declarations: [DropDownButtonComponent],
|
|
25
|
-
exports: [DropDownButtonComponent, ListModule],
|
|
26
|
-
imports: [CommonModule, PopupModule, ListModule, ButtonModule]
|
|
27
|
-
})
|
|
28
|
-
], DropDownButtonModule);
|
|
29
|
-
export { DropDownButtonModule };
|
|
@@ -1,133 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, ElementRef, HostBinding, Input, Renderer2, TemplateRef } from "@angular/core";
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
let DialItemComponent = class DialItemComponent {
|
|
12
|
-
constructor(element, renderer, localisationService) {
|
|
13
|
-
this.element = element;
|
|
14
|
-
this.renderer = renderer;
|
|
15
|
-
this.localisationService = localisationService;
|
|
16
|
-
this.hostClass = true;
|
|
17
|
-
this.role = 'menuitem';
|
|
18
|
-
}
|
|
19
|
-
get disabledClass() {
|
|
20
|
-
return this.item.disabled;
|
|
21
|
-
}
|
|
22
|
-
get title() {
|
|
23
|
-
const label = this.item.label;
|
|
24
|
-
return label ? label : this.itemTitle;
|
|
25
|
-
}
|
|
26
|
-
get indexAttr() {
|
|
27
|
-
return this.index;
|
|
28
|
-
}
|
|
29
|
-
get iconClasses() {
|
|
30
|
-
const classes = [];
|
|
31
|
-
if (this.item.iconClass) {
|
|
32
|
-
classes.push(`${this.item.iconClass}`);
|
|
33
|
-
}
|
|
34
|
-
if (this.item.icon) {
|
|
35
|
-
classes.push(`k-fab-item-icon k-icon k-i-${this.item.icon}`);
|
|
36
|
-
}
|
|
37
|
-
return classes;
|
|
38
|
-
}
|
|
39
|
-
get itemTitle() {
|
|
40
|
-
const icon = this.item.icon;
|
|
41
|
-
const itemTitle = this.item.itemTitle;
|
|
42
|
-
return (icon && itemTitle) ? itemTitle : icon;
|
|
43
|
-
}
|
|
44
|
-
ngAfterViewInit() {
|
|
45
|
-
const element = this.element.nativeElement;
|
|
46
|
-
const rtl = this.localisationService.rtl;
|
|
47
|
-
const hAlign = this.align.horizontal;
|
|
48
|
-
this.renderer.addClass(element, this.getTextDirectionClass(rtl, hAlign));
|
|
49
|
-
}
|
|
50
|
-
getTextDirectionClass(rtl, hAlign) {
|
|
51
|
-
const dir = rtl ? 'rtl' : 'ltr';
|
|
52
|
-
const align = hAlign === 'end' ? 'end' : 'start';
|
|
53
|
-
const directions = {
|
|
54
|
-
rtl: { end: 'k-text-left', start: 'k-text-right' },
|
|
55
|
-
ltr: { start: 'k-text-left', end: 'k-text-right' }
|
|
56
|
-
};
|
|
57
|
-
return directions[dir][align];
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
tslib_1.__decorate([
|
|
61
|
-
HostBinding('class.k-fab-item'),
|
|
62
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
63
|
-
], DialItemComponent.prototype, "hostClass", void 0);
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
HostBinding('attr.role'),
|
|
66
|
-
tslib_1.__metadata("design:type", String)
|
|
67
|
-
], DialItemComponent.prototype, "role", void 0);
|
|
68
|
-
tslib_1.__decorate([
|
|
69
|
-
HostBinding('attr.aria-disabled'),
|
|
70
|
-
HostBinding('class.k-disabled'),
|
|
71
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
72
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
73
|
-
], DialItemComponent.prototype, "disabledClass", null);
|
|
74
|
-
tslib_1.__decorate([
|
|
75
|
-
HostBinding('attr.title'),
|
|
76
|
-
HostBinding('attr.aria-label'),
|
|
77
|
-
tslib_1.__metadata("design:type", String),
|
|
78
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
79
|
-
], DialItemComponent.prototype, "title", null);
|
|
80
|
-
tslib_1.__decorate([
|
|
81
|
-
HostBinding('attr.data-fab-item-index'),
|
|
82
|
-
tslib_1.__metadata("design:type", String),
|
|
83
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
84
|
-
], DialItemComponent.prototype, "indexAttr", null);
|
|
85
|
-
tslib_1.__decorate([
|
|
86
|
-
Input(),
|
|
87
|
-
tslib_1.__metadata("design:type", Object)
|
|
88
|
-
], DialItemComponent.prototype, "cssClass", void 0);
|
|
89
|
-
tslib_1.__decorate([
|
|
90
|
-
Input(),
|
|
91
|
-
tslib_1.__metadata("design:type", Object)
|
|
92
|
-
], DialItemComponent.prototype, "cssStyle", void 0);
|
|
93
|
-
tslib_1.__decorate([
|
|
94
|
-
Input(),
|
|
95
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
96
|
-
], DialItemComponent.prototype, "isFocused", void 0);
|
|
97
|
-
tslib_1.__decorate([
|
|
98
|
-
Input(),
|
|
99
|
-
tslib_1.__metadata("design:type", Object)
|
|
100
|
-
], DialItemComponent.prototype, "index", void 0);
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
Input(),
|
|
103
|
-
tslib_1.__metadata("design:type", Object)
|
|
104
|
-
], DialItemComponent.prototype, "item", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
Input(),
|
|
107
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
108
|
-
], DialItemComponent.prototype, "dialItemTemplate", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
Input(),
|
|
111
|
-
tslib_1.__metadata("design:type", Object)
|
|
112
|
-
], DialItemComponent.prototype, "align", void 0);
|
|
113
|
-
DialItemComponent = tslib_1.__decorate([
|
|
114
|
-
Component({
|
|
115
|
-
selector: '[kendoDialItem]',
|
|
116
|
-
template: `
|
|
117
|
-
<ng-template *ngIf="dialItemTemplate"
|
|
118
|
-
[ngTemplateOutlet]="dialItemTemplate"
|
|
119
|
-
[ngTemplateOutletContext]="{ $implicit: item, index: index, isFocused: isFocused }"
|
|
120
|
-
>
|
|
121
|
-
</ng-template>
|
|
122
|
-
|
|
123
|
-
<ng-container *ngIf="!dialItemTemplate">
|
|
124
|
-
<span *ngIf="item.label" class="k-fab-item-text">{{ item.label }}</span>
|
|
125
|
-
<span *ngIf="item.icon || item.iconClass" [ngClass]="iconClasses"></span>
|
|
126
|
-
</ng-container>
|
|
127
|
-
`
|
|
128
|
-
}),
|
|
129
|
-
tslib_1.__metadata("design:paramtypes", [ElementRef,
|
|
130
|
-
Renderer2,
|
|
131
|
-
LocalizationService])
|
|
132
|
-
], DialItemComponent);
|
|
133
|
-
export { DialItemComponent };
|
|
@@ -1,81 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { ChangeDetectorRef, Component, HostBinding, Input, TemplateRef } from "@angular/core";
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { FocusService } from '../focusable/focus.service';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
let DialListComponent = class DialListComponent {
|
|
13
|
-
constructor(focusService, cdr) {
|
|
14
|
-
this.focusService = focusService;
|
|
15
|
-
this.cdr = cdr;
|
|
16
|
-
this.hostClass = true;
|
|
17
|
-
this.subscriptions = new Subscription();
|
|
18
|
-
this.subscriptions.add(this.focusService.onFocus.subscribe(() => this.cdr.detectChanges()));
|
|
19
|
-
}
|
|
20
|
-
get bottomClass() {
|
|
21
|
-
return this.align.vertical === 'top' || this.align.vertical === 'middle';
|
|
22
|
-
}
|
|
23
|
-
get topClass() {
|
|
24
|
-
return this.align.vertical === 'bottom';
|
|
25
|
-
}
|
|
26
|
-
isFocused(index) {
|
|
27
|
-
return this.focusService.isFocused(index);
|
|
28
|
-
}
|
|
29
|
-
ngOnDestroy() {
|
|
30
|
-
this.subscriptions.unsubscribe();
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
tslib_1.__decorate([
|
|
34
|
-
HostBinding('class.k-fab-items'),
|
|
35
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
36
|
-
], DialListComponent.prototype, "hostClass", void 0);
|
|
37
|
-
tslib_1.__decorate([
|
|
38
|
-
HostBinding('class.k-fab-items-bottom'),
|
|
39
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
41
|
-
], DialListComponent.prototype, "bottomClass", null);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
HostBinding('class.k-fab-items-top'),
|
|
44
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
45
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
46
|
-
], DialListComponent.prototype, "topClass", null);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
Input(),
|
|
49
|
-
tslib_1.__metadata("design:type", Array)
|
|
50
|
-
], DialListComponent.prototype, "dialItems", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
Input(),
|
|
53
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
54
|
-
], DialListComponent.prototype, "dialItemTemplate", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
Input(),
|
|
57
|
-
tslib_1.__metadata("design:type", Object)
|
|
58
|
-
], DialListComponent.prototype, "align", void 0);
|
|
59
|
-
DialListComponent = tslib_1.__decorate([
|
|
60
|
-
Component({
|
|
61
|
-
selector: '[kendoDialList]',
|
|
62
|
-
template: `
|
|
63
|
-
<ng-container *ngFor='let item of dialItems; let idx = index'>
|
|
64
|
-
<li
|
|
65
|
-
kendoButtonFocusable
|
|
66
|
-
kendoDialItem
|
|
67
|
-
[item]="dialItems[idx]"
|
|
68
|
-
[index]="idx"
|
|
69
|
-
[dialItemTemplate]="dialItemTemplate"
|
|
70
|
-
[isFocused]="isFocused(idx)"
|
|
71
|
-
[ngClass]='item.cssClass'
|
|
72
|
-
[ngStyle]='item.cssStyle'
|
|
73
|
-
[align]="align"
|
|
74
|
-
>
|
|
75
|
-
</li>
|
|
76
|
-
</ng-container>
|
|
77
|
-
`
|
|
78
|
-
}),
|
|
79
|
-
tslib_1.__metadata("design:paramtypes", [FocusService, ChangeDetectorRef])
|
|
80
|
-
], DialListComponent);
|
|
81
|
-
export { DialListComponent };
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,25 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the whole dial item.
|
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
|
10
|
-
* with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
11
|
-
* ([see example]({% slug templates_floatingactionbutton %}#toc-dial-item-template)).
|
|
12
|
-
*/
|
|
13
|
-
let DialItemTemplateDirective = class DialItemTemplateDirective {
|
|
14
|
-
constructor(templateRef) {
|
|
15
|
-
this.templateRef = templateRef;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
DialItemTemplateDirective = tslib_1.__decorate([
|
|
19
|
-
Directive({
|
|
20
|
-
selector: '[kendoDialItemTemplate]'
|
|
21
|
-
}),
|
|
22
|
-
tslib_1.__param(0, Optional()),
|
|
23
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
24
|
-
], DialItemTemplateDirective);
|
|
25
|
-
export { DialItemTemplateDirective };
|
|
@@ -1,25 +0,0 @@
|
|
|
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 * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Optional, TemplateRef } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* Represents a template that defines the content of the FloatingActionButton.
|
|
9
|
-
* To define the template, nest an `<ng-template>` tag
|
|
10
|
-
* with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
|
|
11
|
-
* ([see example]({% slug templates_floatingactionbutton %}#toc-floatingactionbutton-template)).
|
|
12
|
-
*/
|
|
13
|
-
let FloatingActionButtonTemplateDirective = class FloatingActionButtonTemplateDirective {
|
|
14
|
-
constructor(templateRef) {
|
|
15
|
-
this.templateRef = templateRef;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
FloatingActionButtonTemplateDirective = tslib_1.__decorate([
|
|
19
|
-
Directive({
|
|
20
|
-
selector: '[kendoFloatingActionButtonTemplate]'
|
|
21
|
-
}),
|
|
22
|
-
tslib_1.__param(0, Optional()),
|
|
23
|
-
tslib_1.__metadata("design:paramtypes", [TemplateRef])
|
|
24
|
-
], FloatingActionButtonTemplateDirective);
|
|
25
|
-
export { FloatingActionButtonTemplateDirective };
|
package/dist/es2015/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { KendoButtonService } from './button/button.service';
|
|
10
|
-
export { DialItemComponent } from './floatingactionbutton/dial-item.component';
|
|
11
|
-
export { DialListComponent } from './floatingactionbutton/dial-list.component';
|
|
12
|
-
export { FocusService } from './focusable/focus.service';
|
|
13
|
-
export { FocusableDirective } from './focusable/focusable.directive';
|
|
14
|
-
export { ButtonItemTemplateDirective } from './listbutton/button-item-template.directive';
|
|
15
|
-
export { ListButton } from './listbutton/list-button';
|
|
16
|
-
export { ListComponent } from './listbutton/list.component';
|
|
17
|
-
export { ListModule } from './listbutton/list.module';
|
|
18
|
-
export { TemplateContextDirective } from './listbutton/template-context.directive';
|
|
19
|
-
export { NAVIGATION_CONFIG, NavigationConfig } from './navigation/navigation-config';
|
|
20
|
-
export { NavigationService } from './navigation/navigation.service';
|
|
21
|
-
export { LocalizedSplitButtonMessagesDirective } from './splitbutton/localization/localized-messages.directive';
|
|
22
|
-
export { Messages } from './splitbutton/localization/messages';
|