@progress/kendo-angular-toolbar 5.0.2 → 6.0.0-dev.202204131416
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-toolbar.umd.js +5 -0
- package/{dist/es2015/common → common}/constants.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +0 -0
- package/{dist/es2015/common → common}/renderer-click.d.ts +0 -0
- package/{dist/es2015/direction.d.ts → direction.d.ts} +0 -0
- package/{dist/es2015/display-mode.d.ts → display-mode.d.ts} +0 -0
- package/{dist/es2015 → esm2015}/common/constants.js +0 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +0 -0
- package/{dist/es → esm2015}/common/renderer-click.js +1 -0
- package/{dist/es2015 → esm2015}/direction.js +1 -0
- package/{dist/es2015 → esm2015}/display-mode.js +1 -0
- package/{dist/es2015 → esm2015}/group-selection-settings.js +1 -0
- package/{dist/es/common/constants.js → esm2015/kendo-angular-toolbar.js} +2 -2
- package/esm2015/localization/custom-messages.component.js +40 -0
- package/esm2015/localization/localized-toolbar-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +23 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/popup-settings.js +1 -0
- package/{dist/es2015 → esm2015}/refresh.service.js +8 -10
- package/{dist/es → esm2015}/render-location.js +1 -0
- package/{dist/es2015 → esm2015}/renderer.component.js +36 -41
- package/{dist/es2015 → esm2015}/renderer.service.js +8 -7
- package/{dist/es → esm2015}/tool-options.js +1 -0
- package/{dist/es2015 → esm2015}/toolbar.component.js +166 -135
- package/{dist/es2015 → esm2015}/toolbar.module.js +27 -11
- package/{dist/es2015 → esm2015}/tools/toolbar-button.component.js +117 -114
- package/esm2015/tools/toolbar-buttongroup.component.js +267 -0
- package/esm2015/tools/toolbar-buttonlist.component.js +94 -0
- package/{dist/es2015 → esm2015}/tools/toolbar-dropdownbutton.component.js +119 -121
- package/esm2015/tools/toolbar-separator.component.js +68 -0
- package/{dist/es2015 → esm2015}/tools/toolbar-splitbutton.component.js +129 -125
- package/{dist/es2015 → esm2015}/tools/toolbar-tool.component.js +15 -19
- package/{dist/es2015 → esm2015}/util.js +0 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-toolbar.js} +1019 -886
- package/{dist/es2015/group-selection-settings.d.ts → group-selection-settings.d.ts} +0 -0
- package/kendo-angular-toolbar.d.ts +9 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/localized-toolbar-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation.service.d.ts → navigation.service.d.ts} +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +34 -102
- package/{dist/es2015/popup-settings.d.ts → popup-settings.d.ts} +0 -0
- package/{dist/es2015/refresh.service.d.ts → refresh.service.d.ts} +3 -0
- package/{dist/es2015/render-location.d.ts → render-location.d.ts} +0 -0
- package/{dist/es2015/renderer.component.d.ts → renderer.component.d.ts} +4 -1
- package/{dist/es2015/renderer.service.d.ts → renderer.service.d.ts} +3 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/tool-options.d.ts → tool-options.d.ts} +0 -0
- package/{dist/es2015/toolbar.component.d.ts → toolbar.component.d.ts} +30 -18
- package/toolbar.module.d.ts +37 -0
- package/{dist/es2015/tools → tools}/toolbar-button.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/toolbar-buttongroup.component.d.ts +7 -5
- package/{dist/es2015/tools → tools}/toolbar-buttonlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/toolbar-dropdownbutton.component.d.ts +15 -10
- package/{dist/es2015/tools → tools}/toolbar-separator.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/toolbar-splitbutton.component.d.ts +14 -9
- package/{dist/es2015/tools → tools}/toolbar-tool.component.d.ts +5 -2
- package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
- package/dist/cdn/js/kendo-angular-toolbar.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/direction.js +0 -4
- package/dist/es/display-mode.js +0 -4
- package/dist/es/group-selection-settings.js +0 -4
- package/dist/es/index.js +0 -14
- package/dist/es/localization/custom-messages.component.js +0 -43
- package/dist/es/localization/localized-toolbar-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -22
- package/dist/es/navigation.service.js +0 -130
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/refresh.service.js +0 -22
- package/dist/es/renderer.component.js +0 -132
- package/dist/es/renderer.service.js +0 -52
- package/dist/es/toolbar.component.js +0 -641
- package/dist/es/toolbar.module.js +0 -60
- package/dist/es/tools/toolbar-button.component.js +0 -310
- package/dist/es/tools/toolbar-buttongroup.component.js +0 -165
- package/dist/es/tools/toolbar-buttonlist.component.js +0 -66
- package/dist/es/tools/toolbar-dropdownbutton.component.js +0 -368
- package/dist/es/tools/toolbar-separator.component.js +0 -67
- package/dist/es/tools/toolbar-splitbutton.component.js +0 -380
- package/dist/es/tools/toolbar-tool.component.js +0 -76
- package/dist/es/util.js +0 -204
- package/dist/es2015/common/renderer-click.js +0 -4
- package/dist/es2015/index.d.ts +0 -14
- package/dist/es2015/index.js +0 -14
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -35
- package/dist/es2015/localization/localized-toolbar-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.js +0 -16
- package/dist/es2015/main.js +0 -14
- package/dist/es2015/popup-settings.js +0 -4
- package/dist/es2015/render-location.js +0 -4
- package/dist/es2015/tool-options.js +0 -4
- package/dist/es2015/toolbar.module.d.ts +0 -18
- package/dist/es2015/tools/toolbar-buttongroup.component.js +0 -216
- package/dist/es2015/tools/toolbar-buttonlist.component.js +0 -87
- package/dist/es2015/tools/toolbar-separator.component.js +0 -68
- package/dist/fesm5/index.js +0 -2665
- package/dist/npm/common/constants.js +0 -10
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/renderer-click.js +0 -6
- package/dist/npm/direction.js +0 -6
- package/dist/npm/display-mode.js +0 -6
- package/dist/npm/group-selection-settings.js +0 -6
- package/dist/npm/index.js +0 -23
- package/dist/npm/localization/custom-messages.component.js +0 -45
- package/dist/npm/localization/localized-toolbar-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -24
- package/dist/npm/main.js +0 -26
- package/dist/npm/navigation.service.js +0 -132
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/popup-settings.js +0 -6
- package/dist/npm/refresh.service.js +0 -24
- package/dist/npm/render-location.js +0 -6
- package/dist/npm/renderer.component.js +0 -134
- package/dist/npm/renderer.service.js +0 -54
- package/dist/npm/tool-options.js +0 -6
- package/dist/npm/toolbar.component.js +0 -643
- package/dist/npm/toolbar.module.js +0 -62
- package/dist/npm/tools/toolbar-button.component.js +0 -312
- package/dist/npm/tools/toolbar-buttongroup.component.js +0 -167
- package/dist/npm/tools/toolbar-buttonlist.component.js +0 -68
- package/dist/npm/tools/toolbar-dropdownbutton.component.js +0 -370
- package/dist/npm/tools/toolbar-separator.component.js +0 -69
- package/dist/npm/tools/toolbar-splitbutton.component.js +0 -382
- package/dist/npm/tools/toolbar-tool.component.js +0 -78
- package/dist/npm/util.js +0 -209
- package/dist/systemjs/kendo-angular-toolbar.js +0 -5
|
@@ -1,60 +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 { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
9
|
-
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
10
|
-
import { ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
11
|
-
import { ToolBarComponent } from './toolbar.component';
|
|
12
|
-
import { ToolBarToolComponent } from './tools/toolbar-tool.component';
|
|
13
|
-
import { ToolBarButtonComponent } from './tools/toolbar-button.component';
|
|
14
|
-
import { ToolBarButtonGroupComponent } from './tools/toolbar-buttongroup.component';
|
|
15
|
-
import { ToolBarDropDownButtonComponent } from './tools/toolbar-dropdownbutton.component';
|
|
16
|
-
import { ToolBarSplitButtonComponent } from './tools/toolbar-splitbutton.component';
|
|
17
|
-
import { ToolBarSeparatorComponent } from './tools/toolbar-separator.component';
|
|
18
|
-
import { ToolBarRendererComponent } from './renderer.component';
|
|
19
|
-
import { ToolBarButtonListComponent } from './tools/toolbar-buttonlist.component';
|
|
20
|
-
import { LocalizedToolbarMessagesDirective } from './localization/localized-toolbar-messages.directive';
|
|
21
|
-
import { ToolbarCustomMessagesComponent } from './localization/custom-messages.component';
|
|
22
|
-
var TOOLBAR_TOOLS = [
|
|
23
|
-
ToolBarToolComponent,
|
|
24
|
-
ToolBarButtonComponent,
|
|
25
|
-
ToolBarButtonGroupComponent,
|
|
26
|
-
ToolBarDropDownButtonComponent,
|
|
27
|
-
ToolBarSplitButtonComponent,
|
|
28
|
-
ToolBarSeparatorComponent
|
|
29
|
-
];
|
|
30
|
-
var TOOLBAR_COMMON = [
|
|
31
|
-
ToolBarRendererComponent,
|
|
32
|
-
ToolBarButtonListComponent,
|
|
33
|
-
ToolbarCustomMessagesComponent,
|
|
34
|
-
LocalizedToolbarMessagesDirective
|
|
35
|
-
];
|
|
36
|
-
/**
|
|
37
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the ToolBar component.
|
|
38
|
-
*
|
|
39
|
-
* The package exports:
|
|
40
|
-
* - `ToolBarComponent`—The ToolBarComponent class.
|
|
41
|
-
* - `ToolBarToolComponent`—The base Tool component class.
|
|
42
|
-
* - `ToolBarButtonComponent`—The Button Tool component class.
|
|
43
|
-
* - `ToolBarButtonGroupComponent`—The ButtonGroup Tool component class.
|
|
44
|
-
* - `ToolBarDropDownButtonComponent`—The DropDownButton Tool component class.
|
|
45
|
-
* - `ToolBarSplitButtonComponent`—The SplitButton Tool component class.
|
|
46
|
-
* - `ToolBarSeparatorComponent`—The Separator Tool component class.
|
|
47
|
-
*/
|
|
48
|
-
var ToolBarModule = /** @class */ (function () {
|
|
49
|
-
function ToolBarModule() {
|
|
50
|
-
}
|
|
51
|
-
ToolBarModule = tslib_1.__decorate([
|
|
52
|
-
NgModule({
|
|
53
|
-
declarations: [ToolBarComponent, TOOLBAR_TOOLS, TOOLBAR_COMMON],
|
|
54
|
-
exports: [ToolBarComponent, TOOLBAR_TOOLS, ToolbarCustomMessagesComponent, LocalizedToolbarMessagesDirective],
|
|
55
|
-
imports: [CommonModule, ButtonsModule, PopupModule, ResizeSensorModule]
|
|
56
|
-
})
|
|
57
|
-
], ToolBarModule);
|
|
58
|
-
return ToolBarModule;
|
|
59
|
-
}());
|
|
60
|
-
export { ToolBarModule };
|
|
@@ -1,310 +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, TemplateRef, forwardRef, ViewChild, Input, Output, EventEmitter, ElementRef } from '@angular/core';
|
|
7
|
-
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
8
|
-
import { getValueForLocation } from '../util';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the [Kendo UI ToolBar Button tool for Angular]({% slug controltypes_toolbar %}#toc-buttons).
|
|
11
|
-
*/
|
|
12
|
-
var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
13
|
-
tslib_1.__extends(ToolBarButtonComponent, _super);
|
|
14
|
-
function ToolBarButtonComponent() {
|
|
15
|
-
var _this = _super.call(this) || this;
|
|
16
|
-
// showText and showIcon showIcon should be declared first
|
|
17
|
-
/**
|
|
18
|
-
* Specifies where button text should be displayed
|
|
19
|
-
*/
|
|
20
|
-
_this.showText = 'both';
|
|
21
|
-
/**
|
|
22
|
-
* Specifies where button icon should be displayed
|
|
23
|
-
*/
|
|
24
|
-
_this.showIcon = 'both';
|
|
25
|
-
/**
|
|
26
|
-
* Provides visual styling that indicates if the Button is active
|
|
27
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-toggle-buttons)).
|
|
28
|
-
* By default, `toggleable` is set to `false`.
|
|
29
|
-
*/
|
|
30
|
-
_this.toggleable = false;
|
|
31
|
-
/**
|
|
32
|
-
* Sets the selected state of the Button.
|
|
33
|
-
*/
|
|
34
|
-
_this.selected = false;
|
|
35
|
-
/**
|
|
36
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
37
|
-
*
|
|
38
|
-
* The available values are:
|
|
39
|
-
* * `solid` (default)
|
|
40
|
-
* * `flat`
|
|
41
|
-
* * `outline`
|
|
42
|
-
* * `link`
|
|
43
|
-
* * `null`
|
|
44
|
-
*/
|
|
45
|
-
_this.fillMode = 'solid';
|
|
46
|
-
/**
|
|
47
|
-
* The Button allows you to specify predefined theme colors.
|
|
48
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
49
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
50
|
-
*
|
|
51
|
-
* The possible values are:
|
|
52
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
53
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
54
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
55
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
56
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
57
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
58
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
59
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
60
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
61
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
62
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
63
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
64
|
-
*/
|
|
65
|
-
_this.themeColor = 'base';
|
|
66
|
-
/**
|
|
67
|
-
* Fires each time the Button is clicked.
|
|
68
|
-
*/
|
|
69
|
-
_this.click = new EventEmitter();
|
|
70
|
-
/**
|
|
71
|
-
* Fires when the Button [pointerdown](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/pointerdown_event) event is triggered.
|
|
72
|
-
*/
|
|
73
|
-
_this.pointerdown = new EventEmitter();
|
|
74
|
-
/**
|
|
75
|
-
* Fires each time the selected state of a Toggle Button is changed.
|
|
76
|
-
* The event argument is the new selected state (Boolean).
|
|
77
|
-
*/
|
|
78
|
-
_this.selectedChange = new EventEmitter();
|
|
79
|
-
_this.toolbarOptions = {
|
|
80
|
-
text: '',
|
|
81
|
-
icon: '',
|
|
82
|
-
iconClass: '',
|
|
83
|
-
imageUrl: ''
|
|
84
|
-
};
|
|
85
|
-
_this.overflowOptions = {
|
|
86
|
-
text: '',
|
|
87
|
-
icon: '',
|
|
88
|
-
iconClass: '',
|
|
89
|
-
imageUrl: ''
|
|
90
|
-
};
|
|
91
|
-
return _this;
|
|
92
|
-
}
|
|
93
|
-
ToolBarButtonComponent_1 = ToolBarButtonComponent;
|
|
94
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "text", {
|
|
95
|
-
/**
|
|
96
|
-
* Specifies the text of the Button ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
97
|
-
*/
|
|
98
|
-
set: function (text) {
|
|
99
|
-
this.toolbarOptions.text = getValueForLocation(text, this.showText, false);
|
|
100
|
-
this.overflowOptions.text = getValueForLocation(text, this.showText, true);
|
|
101
|
-
},
|
|
102
|
-
enumerable: true,
|
|
103
|
-
configurable: true
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "look", {
|
|
106
|
-
/**
|
|
107
|
-
* @hidden
|
|
108
|
-
*/
|
|
109
|
-
set: function (look) {
|
|
110
|
-
if (look) {
|
|
111
|
-
this.fillMode = look === 'default' ? 'solid' : look;
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
enumerable: true,
|
|
115
|
-
configurable: true
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "togglable", {
|
|
118
|
-
/**
|
|
119
|
-
* @hidden
|
|
120
|
-
*/
|
|
121
|
-
get: function () {
|
|
122
|
-
return this.toggleable;
|
|
123
|
-
},
|
|
124
|
-
set: function (value) {
|
|
125
|
-
this.toggleable = value;
|
|
126
|
-
},
|
|
127
|
-
enumerable: true,
|
|
128
|
-
configurable: true
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "icon", {
|
|
131
|
-
/**
|
|
132
|
-
* Defines the name for an existing icon in a Kendo UI theme
|
|
133
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
134
|
-
* The icon is rendered inside the Button by a `span.k-icon` element.
|
|
135
|
-
*/
|
|
136
|
-
set: function (icon) {
|
|
137
|
-
this.toolbarOptions.icon = getValueForLocation(icon, this.showIcon, false);
|
|
138
|
-
this.overflowOptions.icon = getValueForLocation(icon, this.showIcon, true);
|
|
139
|
-
},
|
|
140
|
-
enumerable: true,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "iconClass", {
|
|
144
|
-
/**
|
|
145
|
-
* Defines a CSS class—or multiple classes separated by spaces—
|
|
146
|
-
* which are applied to a `span` element inside the Button. Allows the usage of custom icons.
|
|
147
|
-
*/
|
|
148
|
-
set: function (iconClass) {
|
|
149
|
-
this.toolbarOptions.iconClass = getValueForLocation(iconClass, this.showIcon, false);
|
|
150
|
-
this.overflowOptions.iconClass = getValueForLocation(iconClass, this.showIcon, true);
|
|
151
|
-
},
|
|
152
|
-
enumerable: true,
|
|
153
|
-
configurable: true
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(ToolBarButtonComponent.prototype, "imageUrl", {
|
|
156
|
-
/**
|
|
157
|
-
* Defines a URL which is used for an `img` element inside the Button.
|
|
158
|
-
* The URL can be relative or absolute. If relative, it is evaluated with relation to the web page URL.
|
|
159
|
-
*/
|
|
160
|
-
set: function (imageUrl) {
|
|
161
|
-
this.toolbarOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, false);
|
|
162
|
-
this.overflowOptions.imageUrl = getValueForLocation(imageUrl, this.showIcon, true);
|
|
163
|
-
},
|
|
164
|
-
enumerable: true,
|
|
165
|
-
configurable: true
|
|
166
|
-
});
|
|
167
|
-
/**
|
|
168
|
-
* @hidden
|
|
169
|
-
*/
|
|
170
|
-
ToolBarButtonComponent.prototype.onBlur = function () {
|
|
171
|
-
this.getButton().tabIndex = -1;
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* @hidden
|
|
175
|
-
*/
|
|
176
|
-
ToolBarButtonComponent.prototype.canFocus = function () {
|
|
177
|
-
return !this.disabled;
|
|
178
|
-
};
|
|
179
|
-
/**
|
|
180
|
-
* @hidden
|
|
181
|
-
*/
|
|
182
|
-
ToolBarButtonComponent.prototype.focus = function (ev) {
|
|
183
|
-
// guard against focusing twice on mousedown.
|
|
184
|
-
if (!ev || ev.type === 'focus' || ev.type === 'keydown') {
|
|
185
|
-
this.getButton().focus();
|
|
186
|
-
}
|
|
187
|
-
this.getButton().tabIndex = 0;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* @hidden
|
|
191
|
-
*/
|
|
192
|
-
ToolBarButtonComponent.prototype.handleKey = function () {
|
|
193
|
-
this.getButton().tabIndex = -1;
|
|
194
|
-
return false;
|
|
195
|
-
};
|
|
196
|
-
ToolBarButtonComponent.prototype.getButton = function () {
|
|
197
|
-
return (this.overflows ? this.overflowButtonElement : this.toolbarButtonElement).nativeElement;
|
|
198
|
-
};
|
|
199
|
-
var ToolBarButtonComponent_1;
|
|
200
|
-
tslib_1.__decorate([
|
|
201
|
-
Input(),
|
|
202
|
-
tslib_1.__metadata("design:type", String)
|
|
203
|
-
], ToolBarButtonComponent.prototype, "showText", void 0);
|
|
204
|
-
tslib_1.__decorate([
|
|
205
|
-
Input(),
|
|
206
|
-
tslib_1.__metadata("design:type", String)
|
|
207
|
-
], ToolBarButtonComponent.prototype, "showIcon", void 0);
|
|
208
|
-
tslib_1.__decorate([
|
|
209
|
-
Input(),
|
|
210
|
-
tslib_1.__metadata("design:type", String),
|
|
211
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
212
|
-
], ToolBarButtonComponent.prototype, "text", null);
|
|
213
|
-
tslib_1.__decorate([
|
|
214
|
-
Input(),
|
|
215
|
-
tslib_1.__metadata("design:type", Object)
|
|
216
|
-
], ToolBarButtonComponent.prototype, "style", void 0);
|
|
217
|
-
tslib_1.__decorate([
|
|
218
|
-
Input(),
|
|
219
|
-
tslib_1.__metadata("design:type", Object)
|
|
220
|
-
], ToolBarButtonComponent.prototype, "className", void 0);
|
|
221
|
-
tslib_1.__decorate([
|
|
222
|
-
Input(),
|
|
223
|
-
tslib_1.__metadata("design:type", String)
|
|
224
|
-
], ToolBarButtonComponent.prototype, "title", void 0);
|
|
225
|
-
tslib_1.__decorate([
|
|
226
|
-
Input(),
|
|
227
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
228
|
-
], ToolBarButtonComponent.prototype, "disabled", void 0);
|
|
229
|
-
tslib_1.__decorate([
|
|
230
|
-
Input(),
|
|
231
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
232
|
-
], ToolBarButtonComponent.prototype, "toggleable", void 0);
|
|
233
|
-
tslib_1.__decorate([
|
|
234
|
-
Input(),
|
|
235
|
-
tslib_1.__metadata("design:type", String),
|
|
236
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
237
|
-
], ToolBarButtonComponent.prototype, "look", null);
|
|
238
|
-
tslib_1.__decorate([
|
|
239
|
-
Input(),
|
|
240
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
241
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
242
|
-
], ToolBarButtonComponent.prototype, "togglable", null);
|
|
243
|
-
tslib_1.__decorate([
|
|
244
|
-
Input(),
|
|
245
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
246
|
-
], ToolBarButtonComponent.prototype, "selected", void 0);
|
|
247
|
-
tslib_1.__decorate([
|
|
248
|
-
Input(),
|
|
249
|
-
tslib_1.__metadata("design:type", String)
|
|
250
|
-
], ToolBarButtonComponent.prototype, "fillMode", void 0);
|
|
251
|
-
tslib_1.__decorate([
|
|
252
|
-
Input(),
|
|
253
|
-
tslib_1.__metadata("design:type", String)
|
|
254
|
-
], ToolBarButtonComponent.prototype, "themeColor", void 0);
|
|
255
|
-
tslib_1.__decorate([
|
|
256
|
-
Input(),
|
|
257
|
-
tslib_1.__metadata("design:type", String),
|
|
258
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
259
|
-
], ToolBarButtonComponent.prototype, "icon", null);
|
|
260
|
-
tslib_1.__decorate([
|
|
261
|
-
Input(),
|
|
262
|
-
tslib_1.__metadata("design:type", String),
|
|
263
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
264
|
-
], ToolBarButtonComponent.prototype, "iconClass", null);
|
|
265
|
-
tslib_1.__decorate([
|
|
266
|
-
Input(),
|
|
267
|
-
tslib_1.__metadata("design:type", String),
|
|
268
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
269
|
-
], ToolBarButtonComponent.prototype, "imageUrl", null);
|
|
270
|
-
tslib_1.__decorate([
|
|
271
|
-
Output(),
|
|
272
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
273
|
-
], ToolBarButtonComponent.prototype, "click", void 0);
|
|
274
|
-
tslib_1.__decorate([
|
|
275
|
-
Output(),
|
|
276
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
277
|
-
], ToolBarButtonComponent.prototype, "pointerdown", void 0);
|
|
278
|
-
tslib_1.__decorate([
|
|
279
|
-
Output(),
|
|
280
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
281
|
-
], ToolBarButtonComponent.prototype, "selectedChange", void 0);
|
|
282
|
-
tslib_1.__decorate([
|
|
283
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
284
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
285
|
-
], ToolBarButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
286
|
-
tslib_1.__decorate([
|
|
287
|
-
ViewChild('popupTemplate', { static: true }),
|
|
288
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
289
|
-
], ToolBarButtonComponent.prototype, "popupTemplate", void 0);
|
|
290
|
-
tslib_1.__decorate([
|
|
291
|
-
ViewChild('toolbarButton', { read: ElementRef, static: false }),
|
|
292
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
293
|
-
], ToolBarButtonComponent.prototype, "toolbarButtonElement", void 0);
|
|
294
|
-
tslib_1.__decorate([
|
|
295
|
-
ViewChild('overflowButton', { read: ElementRef, static: false }),
|
|
296
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
297
|
-
], ToolBarButtonComponent.prototype, "overflowButtonElement", void 0);
|
|
298
|
-
ToolBarButtonComponent = ToolBarButtonComponent_1 = tslib_1.__decorate([
|
|
299
|
-
Component({
|
|
300
|
-
exportAs: 'kendoToolBarButton',
|
|
301
|
-
// tslint:disable-next-line:no-forward-ref
|
|
302
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarButtonComponent_1; }) }],
|
|
303
|
-
selector: 'kendo-toolbar-button',
|
|
304
|
-
template: "\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]=\"tabIndex\"\n type=\"button\"\n kendoButton\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n [selected]=\"selected\"\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n (click)=\"click.emit($event)\"\n (pointerdown)=\"pointerdown.emit($event)\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (blur)=\"onBlur()\"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n class=\"k-overflow-button\"\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n [selected]=\"selected\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n (click)=\"click.emit($event)\"\n (selectedChange)=\"selectedChange.emit($event)\"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n "
|
|
305
|
-
}),
|
|
306
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
307
|
-
], ToolBarButtonComponent);
|
|
308
|
-
return ToolBarButtonComponent;
|
|
309
|
-
}(ToolBarToolComponent));
|
|
310
|
-
export { ToolBarButtonComponent };
|
|
@@ -1,165 +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, TemplateRef, forwardRef, ViewChild, ContentChildren, QueryList, Input } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
9
|
-
import { ToolBarButtonComponent } from './toolbar-button.component';
|
|
10
|
-
import { ButtonGroupComponent } from '@progress/kendo-angular-buttons';
|
|
11
|
-
import { makePeeker, getIndexOfFocused, seekFocusedIndex, getNextKey, getPrevKey, areEqual } from '../util';
|
|
12
|
-
/**
|
|
13
|
-
* Represents the Kendo UI Toolbar ButtonGroup for Angular.
|
|
14
|
-
*/
|
|
15
|
-
var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
|
|
16
|
-
tslib_1.__extends(ToolBarButtonGroupComponent, _super);
|
|
17
|
-
function ToolBarButtonGroupComponent(localization) {
|
|
18
|
-
var _this = _super.call(this) || this;
|
|
19
|
-
_this.localization = localization;
|
|
20
|
-
/**
|
|
21
|
-
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
22
|
-
*/
|
|
23
|
-
_this.selection = 'multiple';
|
|
24
|
-
_this.focusedIndex = -1;
|
|
25
|
-
_this.getNextKey = getNextKey(_this.localization.rtl);
|
|
26
|
-
_this.getPrevKey = getPrevKey(_this.localization.rtl);
|
|
27
|
-
return _this;
|
|
28
|
-
}
|
|
29
|
-
ToolBarButtonGroupComponent_1 = ToolBarButtonGroupComponent;
|
|
30
|
-
Object.defineProperty(ToolBarButtonGroupComponent.prototype, "look", {
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
set: function (look) {
|
|
35
|
-
if (look) {
|
|
36
|
-
this.buttonComponents.forEach(function (b) { return b.fillMode = look === 'default' ? 'solid' : look; });
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(ToolBarButtonGroupComponent.prototype, "buttonElements", {
|
|
43
|
-
get: function () {
|
|
44
|
-
return this.getButtonGroup()
|
|
45
|
-
.buttons.filter(function (b) { return !b.isDisabled; })
|
|
46
|
-
.map(function (b) { return b.element; });
|
|
47
|
-
},
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true
|
|
50
|
-
});
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
ToolBarButtonGroupComponent.prototype.onFocus = function () {
|
|
55
|
-
// triggered on tabin
|
|
56
|
-
this.focusedIndex = 0;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* @hidden
|
|
60
|
-
*/
|
|
61
|
-
ToolBarButtonGroupComponent.prototype.onNavigate = function (ev) {
|
|
62
|
-
ev.preventDefault();
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
ToolBarButtonGroupComponent.prototype.selectedChangeHandler = function (state, button) {
|
|
68
|
-
button.selected = state;
|
|
69
|
-
button.selectedChange.emit(state);
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
ToolBarButtonGroupComponent.prototype.onButtonClick = function (ev) {
|
|
75
|
-
this.focusedIndex = this.buttonElements.findIndex(function (be) { return be === ev.target || be.contains(ev.target); });
|
|
76
|
-
this.focusButton(this.focusedIndex, ev);
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
ToolBarButtonGroupComponent.prototype.canFocus = function () {
|
|
82
|
-
return !(this.disabled || this.buttonElements.length === 0);
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* @hidden
|
|
86
|
-
*/
|
|
87
|
-
ToolBarButtonGroupComponent.prototype.focus = function (ev) {
|
|
88
|
-
if (ev === void 0) { ev = {}; }
|
|
89
|
-
var nextKey = this.getNextKey(this.overflows);
|
|
90
|
-
var prevKey = this.getPrevKey(this.overflows);
|
|
91
|
-
this.focusedIndex = getIndexOfFocused(prevKey, nextKey, this.buttonElements)(ev);
|
|
92
|
-
this.focusButton(this.focusedIndex, ev);
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
|
-
ToolBarButtonGroupComponent.prototype.handleKey = function (ev) {
|
|
98
|
-
var nextKey = this.getNextKey(this.overflows);
|
|
99
|
-
var prevKey = this.getPrevKey(this.overflows);
|
|
100
|
-
var peekAtIndex = makePeeker(this.buttonElements);
|
|
101
|
-
var isUnmodified = areEqual(this.focusedIndex);
|
|
102
|
-
this.focusedIndex = seekFocusedIndex(prevKey, nextKey, peekAtIndex)(this.focusedIndex, ev);
|
|
103
|
-
this.focusButton(this.focusedIndex, ev);
|
|
104
|
-
return !isUnmodified(this.focusedIndex);
|
|
105
|
-
};
|
|
106
|
-
ToolBarButtonGroupComponent.prototype.getButtonGroup = function () {
|
|
107
|
-
return this.overflows ? this.overflowButtonGroup : this.toolbarButtonGroup;
|
|
108
|
-
};
|
|
109
|
-
ToolBarButtonGroupComponent.prototype.focusButton = function (index, ev) {
|
|
110
|
-
// Guard against focusing twice on mousedown.
|
|
111
|
-
if (!ev.type || ev.type === 'focus' || ev.type === 'keydown') {
|
|
112
|
-
this.buttonElements[index].focus();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
var ToolBarButtonGroupComponent_1;
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
Input(),
|
|
118
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
119
|
-
], ToolBarButtonGroupComponent.prototype, "disabled", void 0);
|
|
120
|
-
tslib_1.__decorate([
|
|
121
|
-
Input(),
|
|
122
|
-
tslib_1.__metadata("design:type", String)
|
|
123
|
-
], ToolBarButtonGroupComponent.prototype, "selection", void 0);
|
|
124
|
-
tslib_1.__decorate([
|
|
125
|
-
Input(),
|
|
126
|
-
tslib_1.__metadata("design:type", String)
|
|
127
|
-
], ToolBarButtonGroupComponent.prototype, "width", void 0);
|
|
128
|
-
tslib_1.__decorate([
|
|
129
|
-
Input(),
|
|
130
|
-
tslib_1.__metadata("design:type", String),
|
|
131
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
132
|
-
], ToolBarButtonGroupComponent.prototype, "look", null);
|
|
133
|
-
tslib_1.__decorate([
|
|
134
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
135
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
136
|
-
], ToolBarButtonGroupComponent.prototype, "toolbarTemplate", void 0);
|
|
137
|
-
tslib_1.__decorate([
|
|
138
|
-
ViewChild('popupTemplate', { static: true }),
|
|
139
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
140
|
-
], ToolBarButtonGroupComponent.prototype, "popupTemplate", void 0);
|
|
141
|
-
tslib_1.__decorate([
|
|
142
|
-
ContentChildren(forwardRef(function () { return ToolBarButtonComponent; })),
|
|
143
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
144
|
-
], ToolBarButtonGroupComponent.prototype, "buttonComponents", void 0);
|
|
145
|
-
tslib_1.__decorate([
|
|
146
|
-
ViewChild('toolbarButtonGroup', { static: false }),
|
|
147
|
-
tslib_1.__metadata("design:type", ButtonGroupComponent)
|
|
148
|
-
], ToolBarButtonGroupComponent.prototype, "toolbarButtonGroup", void 0);
|
|
149
|
-
tslib_1.__decorate([
|
|
150
|
-
ViewChild('overflowButtonGroup', { static: false }),
|
|
151
|
-
tslib_1.__metadata("design:type", ButtonGroupComponent)
|
|
152
|
-
], ToolBarButtonGroupComponent.prototype, "overflowButtonGroup", void 0);
|
|
153
|
-
ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = tslib_1.__decorate([
|
|
154
|
-
Component({
|
|
155
|
-
exportAs: 'kendoToolBarButtonGroup',
|
|
156
|
-
// tslint:disable-next-line:no-forward-ref
|
|
157
|
-
providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarButtonGroupComponent_1; }) }],
|
|
158
|
-
selector: 'kendo-toolbar-buttongroup',
|
|
159
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [width]=\"width\"\n (navigate)=\"onNavigate($event)\"\n (focus)=\"onFocus()\"\n >\n <span\n kendoButton\n *ngFor=\"let button of buttonComponents\"\n [ngStyle]=\"button.style\"\n [ngClass]=\"button.className\"\n [attr.title]=\"button.title\"\n [disabled]=\"button.disabled\"\n [togglable]=\"button.togglable\"\n [selected]=\"button.selected\"\n [fillMode]=\"button.fillMode\"\n [themeColor]=\"button.fillMode ? button.themeColor : null\"\n [icon]=\"button.toolbarOptions.icon\"\n [iconClass]=\"button.toolbarOptions.iconClass\"\n [imageUrl]=\"button.toolbarOptions.imageUrl\"\n (click)=\"button.click.emit($event); onButtonClick($event)\"\n (pointerdown)=\"button.pointerdown.emit($event)\"\n (selectedChange)=\"selectedChangeHandler($event, button)\"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class=\"k-overflow-button\"\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [width]=\"width\"\n >\n <span\n kendoButton\n class=\"k-overflow-button\"\n *ngFor=\"let button of buttonComponents\"\n [ngStyle]=\"button.style\"\n [ngClass]=\"button.className\"\n [attr.title]=\"button.title\"\n [disabled]=\"button.disabled\"\n [togglable]=\"button.togglable\"\n [selected]=\"button.selected\"\n [fillMode]=\"button.fillMode\"\n [themeColor]=\"button.fillMode ? button.themeColor : null\"\n [icon]=\"button.overflowOptions.icon\"\n [iconClass]=\"button.overflowOptions.iconClass\"\n [imageUrl]=\"button.overflowOptions.imageUrl\"\n (click)=\"button.click.emit($event); onButtonClick($event)\"\n (selectedChange)=\"selectedChangeHandler($event, button)\"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n "
|
|
160
|
-
}),
|
|
161
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
162
|
-
], ToolBarButtonGroupComponent);
|
|
163
|
-
return ToolBarButtonGroupComponent;
|
|
164
|
-
}(ToolBarToolComponent));
|
|
165
|
-
export { ToolBarButtonGroupComponent };
|
|
@@ -1,66 +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, Input, Output, EventEmitter, ViewChildren, QueryList } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var ToolBarButtonListComponent = /** @class */ (function () {
|
|
11
|
-
function ToolBarButtonListComponent() {
|
|
12
|
-
this.disabled = false;
|
|
13
|
-
this.fillMode = 'solid';
|
|
14
|
-
this.themeColor = 'base';
|
|
15
|
-
this.itemClick = new EventEmitter();
|
|
16
|
-
}
|
|
17
|
-
ToolBarButtonListComponent.prototype.getText = function (dataItem) {
|
|
18
|
-
if (dataItem) {
|
|
19
|
-
return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
|
|
20
|
-
}
|
|
21
|
-
return undefined;
|
|
22
|
-
};
|
|
23
|
-
ToolBarButtonListComponent.prototype.onClick = function (item, index) {
|
|
24
|
-
var dataItem = this.data[index];
|
|
25
|
-
if (item.click) {
|
|
26
|
-
item.click(dataItem);
|
|
27
|
-
}
|
|
28
|
-
this.itemClick.emit(dataItem);
|
|
29
|
-
};
|
|
30
|
-
tslib_1.__decorate([
|
|
31
|
-
Input(),
|
|
32
|
-
tslib_1.__metadata("design:type", Array)
|
|
33
|
-
], ToolBarButtonListComponent.prototype, "data", void 0);
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
Input(),
|
|
36
|
-
tslib_1.__metadata("design:type", String)
|
|
37
|
-
], ToolBarButtonListComponent.prototype, "textField", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
Input(),
|
|
40
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
41
|
-
], ToolBarButtonListComponent.prototype, "disabled", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
Input(),
|
|
44
|
-
tslib_1.__metadata("design:type", String)
|
|
45
|
-
], ToolBarButtonListComponent.prototype, "fillMode", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
tslib_1.__metadata("design:type", String)
|
|
49
|
-
], ToolBarButtonListComponent.prototype, "themeColor", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
Output(),
|
|
52
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
53
|
-
], ToolBarButtonListComponent.prototype, "itemClick", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
ViewChildren('button'),
|
|
56
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
57
|
-
], ToolBarButtonListComponent.prototype, "buttons", void 0);
|
|
58
|
-
ToolBarButtonListComponent = tslib_1.__decorate([
|
|
59
|
-
Component({
|
|
60
|
-
selector: 'kendo-toolbar-buttonlist',
|
|
61
|
-
template: "\n <button\n #button\n type=\"button\"\n tabindex=\"-1\"\n kendoButton\n style=\"padding-left: 16px\"\n class=\"k-overflow-button\"\n *ngFor=\"let item of data; let i = index\"\n [disabled]=\"disabled || item.disabled\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n (click)=\"onClick(item, i)\"\n >\n {{ getText(item) }}\n </button>\n "
|
|
62
|
-
})
|
|
63
|
-
], ToolBarButtonListComponent);
|
|
64
|
-
return ToolBarButtonListComponent;
|
|
65
|
-
}());
|
|
66
|
-
export { ToolBarButtonListComponent };
|