@progress/kendo-angular-toolbar 5.0.4 → 6.0.0-dev.202204190531
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 +164 -131
- 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 +128 -126
- 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} +1012 -879
- 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} +26 -17
- 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 -648
- 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 -2672
- 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 -650
- 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,370 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var toolbar_tool_component_1 = require("./toolbar-tool.component");
|
|
10
|
-
var kendo_angular_buttons_1 = require("@progress/kendo-angular-buttons");
|
|
11
|
-
var toolbar_buttonlist_component_1 = require("./toolbar-buttonlist.component");
|
|
12
|
-
var util_1 = require("../util");
|
|
13
|
-
/**
|
|
14
|
-
* Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
15
|
-
*/
|
|
16
|
-
var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(ToolBarDropDownButtonComponent, _super);
|
|
18
|
-
function ToolBarDropDownButtonComponent() {
|
|
19
|
-
var _this = _super.call(this) || this;
|
|
20
|
-
// showText and showIcon showIcon should be declared first
|
|
21
|
-
/**
|
|
22
|
-
* Defines the location of the button text that will be displayed.
|
|
23
|
-
*/
|
|
24
|
-
_this.showText = 'both';
|
|
25
|
-
/**
|
|
26
|
-
* Defines the location of the button icon that will be displayed.
|
|
27
|
-
*/
|
|
28
|
-
_this.showIcon = 'both';
|
|
29
|
-
/**
|
|
30
|
-
* The fillMode property specifies the background and border styles of the Button.
|
|
31
|
-
*
|
|
32
|
-
* The available values are:
|
|
33
|
-
* * `solid` (default)
|
|
34
|
-
* * `flat`
|
|
35
|
-
* * `outline`
|
|
36
|
-
* * `link`
|
|
37
|
-
* * `null`
|
|
38
|
-
*/
|
|
39
|
-
_this.fillMode = 'solid';
|
|
40
|
-
/**
|
|
41
|
-
* The Button allows you to specify predefined theme colors.
|
|
42
|
-
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
43
|
-
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
44
|
-
*
|
|
45
|
-
* The possible values are:
|
|
46
|
-
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
47
|
-
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
48
|
-
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
49
|
-
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
50
|
-
* * `info`—Applies coloring based on the `info` theme color.
|
|
51
|
-
* * `success`— Applies coloring based on the `success` theme color.
|
|
52
|
-
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
53
|
-
* * `error`— Applies coloring based on the `error` theme color.
|
|
54
|
-
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
55
|
-
* * `light`— Applies coloring based on the `light` theme color.
|
|
56
|
-
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
57
|
-
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
58
|
-
*/
|
|
59
|
-
_this.themeColor = 'base';
|
|
60
|
-
/**
|
|
61
|
-
* Fires each time the user clicks a DropDownButton item.
|
|
62
|
-
* The event data contains the data item that is bound to the clicked list item.
|
|
63
|
-
*/
|
|
64
|
-
_this.itemClick = new core_1.EventEmitter();
|
|
65
|
-
/**
|
|
66
|
-
* Fires each time the popup is about to open.
|
|
67
|
-
* This event is preventable. If you cancel the event, the popup will remain closed.
|
|
68
|
-
*/
|
|
69
|
-
_this.open = new core_1.EventEmitter();
|
|
70
|
-
/**
|
|
71
|
-
* Fires each time the popup is about to close.
|
|
72
|
-
* This event is preventable. If you cancel the event, the popup will remain open.
|
|
73
|
-
*/
|
|
74
|
-
_this.close = new core_1.EventEmitter();
|
|
75
|
-
_this.toolbarOptions = {
|
|
76
|
-
text: '',
|
|
77
|
-
icon: '',
|
|
78
|
-
iconClass: '',
|
|
79
|
-
imageUrl: ''
|
|
80
|
-
};
|
|
81
|
-
_this.overflowOptions = {
|
|
82
|
-
text: '',
|
|
83
|
-
icon: '',
|
|
84
|
-
iconClass: '',
|
|
85
|
-
imageUrl: ''
|
|
86
|
-
};
|
|
87
|
-
_this._popupSettings = { animate: true, popupClass: '' };
|
|
88
|
-
_this.focusedIndex = -1;
|
|
89
|
-
_this.getNextKey = util_1.getNextKey();
|
|
90
|
-
_this.getPrevKey = util_1.getPrevKey();
|
|
91
|
-
return _this;
|
|
92
|
-
}
|
|
93
|
-
ToolBarDropDownButtonComponent_1 = ToolBarDropDownButtonComponent;
|
|
94
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "text", {
|
|
95
|
-
/**
|
|
96
|
-
* Sets the text of the DropDownButton
|
|
97
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
98
|
-
*/
|
|
99
|
-
set: function (text) {
|
|
100
|
-
this.toolbarOptions.text = util_1.getValueForLocation(text, this.showText, false);
|
|
101
|
-
this.overflowOptions.text = util_1.getValueForLocation(text, this.showText, true);
|
|
102
|
-
},
|
|
103
|
-
enumerable: true,
|
|
104
|
-
configurable: true
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "icon", {
|
|
107
|
-
/**
|
|
108
|
-
* Defines an icon that will be rendered next to the button text.
|
|
109
|
-
*/
|
|
110
|
-
set: function (icon) {
|
|
111
|
-
this.toolbarOptions.icon = util_1.getValueForLocation(icon, this.showIcon, false);
|
|
112
|
-
this.overflowOptions.icon = util_1.getValueForLocation(icon, this.showIcon, true);
|
|
113
|
-
},
|
|
114
|
-
enumerable: true,
|
|
115
|
-
configurable: true
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "iconClass", {
|
|
118
|
-
/**
|
|
119
|
-
* Defines an icon with a custom CSS class that will be rendered next to the button text.
|
|
120
|
-
*/
|
|
121
|
-
set: function (iconClass) {
|
|
122
|
-
this.toolbarOptions.iconClass = util_1.getValueForLocation(iconClass, this.showIcon, false);
|
|
123
|
-
this.overflowOptions.iconClass = util_1.getValueForLocation(iconClass, this.showIcon, true);
|
|
124
|
-
},
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "imageUrl", {
|
|
129
|
-
/**
|
|
130
|
-
* Defines the location of an image that will be displayed next to the button text.
|
|
131
|
-
*/
|
|
132
|
-
set: function (imageUrl) {
|
|
133
|
-
this.toolbarOptions.imageUrl = util_1.getValueForLocation(imageUrl, this.showIcon, false);
|
|
134
|
-
this.overflowOptions.imageUrl = util_1.getValueForLocation(imageUrl, this.showIcon, true);
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "popupSettings", {
|
|
140
|
-
get: function () {
|
|
141
|
-
return this._popupSettings;
|
|
142
|
-
},
|
|
143
|
-
/**
|
|
144
|
-
* Configures the popup of the DropDownButton.
|
|
145
|
-
*
|
|
146
|
-
* The available options are:
|
|
147
|
-
* - `animate:Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
|
|
148
|
-
* - `popupClass:String`—Specifies a list of CSS classes that are used to style the popup.
|
|
149
|
-
*/
|
|
150
|
-
set: function (settings) {
|
|
151
|
-
this._popupSettings = Object.assign({ animate: true, popupClass: '' }, settings);
|
|
152
|
-
},
|
|
153
|
-
enumerable: true,
|
|
154
|
-
configurable: true
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "look", {
|
|
157
|
-
/**
|
|
158
|
-
* @hidden
|
|
159
|
-
*/
|
|
160
|
-
set: function (look) {
|
|
161
|
-
if (look) {
|
|
162
|
-
this.fillMode = look === 'default' ? 'solid' : look;
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
enumerable: true,
|
|
166
|
-
configurable: true
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "primary", {
|
|
169
|
-
/**
|
|
170
|
-
* @hidden
|
|
171
|
-
*/
|
|
172
|
-
set: function (primary) {
|
|
173
|
-
this.themeColor = primary ? 'primary' : 'base';
|
|
174
|
-
},
|
|
175
|
-
enumerable: true,
|
|
176
|
-
configurable: true
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "data", {
|
|
179
|
-
get: function () {
|
|
180
|
-
if (!this._data) {
|
|
181
|
-
this.data = [];
|
|
182
|
-
}
|
|
183
|
-
return this._data;
|
|
184
|
-
},
|
|
185
|
-
/**
|
|
186
|
-
* Sets the data of the DropDownButton
|
|
187
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
188
|
-
*
|
|
189
|
-
* > The data has to be provided in an array-like list.
|
|
190
|
-
*/
|
|
191
|
-
set: function (data) {
|
|
192
|
-
this._data = data || [];
|
|
193
|
-
},
|
|
194
|
-
enumerable: true,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "overflowButtons", {
|
|
198
|
-
get: function () {
|
|
199
|
-
return this.overflowDropDownButtonButtonList.buttons.toArray().filter(function (b) { return !b.nativeElement.disabled; }).slice();
|
|
200
|
-
},
|
|
201
|
-
enumerable: true,
|
|
202
|
-
configurable: true
|
|
203
|
-
});
|
|
204
|
-
/**
|
|
205
|
-
* @hidden
|
|
206
|
-
*/
|
|
207
|
-
ToolBarDropDownButtonComponent.prototype.onButtonListClick = function (ev) {
|
|
208
|
-
this.focusedIndex = this.overflowDropDownButtonButtonList.buttons
|
|
209
|
-
.toArray()
|
|
210
|
-
.findIndex(function (b) { return b.nativeElement.contains(ev.target); });
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* @hidden
|
|
214
|
-
*/
|
|
215
|
-
ToolBarDropDownButtonComponent.prototype.canFocus = function () {
|
|
216
|
-
return !this.disabled;
|
|
217
|
-
};
|
|
218
|
-
/**
|
|
219
|
-
* @hidden
|
|
220
|
-
*/
|
|
221
|
-
ToolBarDropDownButtonComponent.prototype.focus = function (ev) {
|
|
222
|
-
if (ev === void 0) { ev = {}; }
|
|
223
|
-
if (!this.overflows) {
|
|
224
|
-
if (ev.type === 'focus' || ev.type === 'keydown') {
|
|
225
|
-
this.toolbarDropDownButton.focus();
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
else if (this.overflowButtons.length > 0) {
|
|
229
|
-
this.focusedIndex = util_1.getIndexOfFocused(this.getPrevKey(), this.getNextKey(), this.overflowButtons.map(function (ob) { return ob.nativeElement; }))(ev);
|
|
230
|
-
this.focusButton(this.focusedIndex, ev);
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* @hidden
|
|
235
|
-
*/
|
|
236
|
-
ToolBarDropDownButtonComponent.prototype.handleKey = function (ev) {
|
|
237
|
-
if (!this.overflows && (ev.keyCode === this.getPrevKey(this.overflows) || ev.keyCode === this.getNextKey(this.overflows))) {
|
|
238
|
-
return false;
|
|
239
|
-
}
|
|
240
|
-
if (this.overflows) {
|
|
241
|
-
var peekAtIndex = util_1.makePeeker(this.overflowButtons);
|
|
242
|
-
var isUnmodified = util_1.areEqual(this.focusedIndex);
|
|
243
|
-
this.focusedIndex = util_1.seekFocusedIndex(this.getPrevKey(), this.getNextKey(), peekAtIndex)(this.focusedIndex, ev);
|
|
244
|
-
this.focusButton(this.focusedIndex, ev);
|
|
245
|
-
return !isUnmodified(this.focusedIndex);
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
ToolBarDropDownButtonComponent.prototype.focusButton = function (index, ev) {
|
|
249
|
-
if (!ev.type || ev.type === 'focus' || ev.type === 'keydown') {
|
|
250
|
-
this.overflowButtons[index].nativeElement.focus();
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
var ToolBarDropDownButtonComponent_1;
|
|
254
|
-
tslib_1.__decorate([
|
|
255
|
-
core_1.Input(),
|
|
256
|
-
tslib_1.__metadata("design:type", String)
|
|
257
|
-
], ToolBarDropDownButtonComponent.prototype, "showText", void 0);
|
|
258
|
-
tslib_1.__decorate([
|
|
259
|
-
core_1.Input(),
|
|
260
|
-
tslib_1.__metadata("design:type", String)
|
|
261
|
-
], ToolBarDropDownButtonComponent.prototype, "showIcon", void 0);
|
|
262
|
-
tslib_1.__decorate([
|
|
263
|
-
core_1.Input(),
|
|
264
|
-
tslib_1.__metadata("design:type", String),
|
|
265
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
266
|
-
], ToolBarDropDownButtonComponent.prototype, "text", null);
|
|
267
|
-
tslib_1.__decorate([
|
|
268
|
-
core_1.Input(),
|
|
269
|
-
tslib_1.__metadata("design:type", String),
|
|
270
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
271
|
-
], ToolBarDropDownButtonComponent.prototype, "icon", null);
|
|
272
|
-
tslib_1.__decorate([
|
|
273
|
-
core_1.Input(),
|
|
274
|
-
tslib_1.__metadata("design:type", String),
|
|
275
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
276
|
-
], ToolBarDropDownButtonComponent.prototype, "iconClass", null);
|
|
277
|
-
tslib_1.__decorate([
|
|
278
|
-
core_1.Input(),
|
|
279
|
-
tslib_1.__metadata("design:type", String),
|
|
280
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
281
|
-
], ToolBarDropDownButtonComponent.prototype, "imageUrl", null);
|
|
282
|
-
tslib_1.__decorate([
|
|
283
|
-
core_1.Input(),
|
|
284
|
-
tslib_1.__metadata("design:type", Object),
|
|
285
|
-
tslib_1.__metadata("design:paramtypes", [Object])
|
|
286
|
-
], ToolBarDropDownButtonComponent.prototype, "popupSettings", null);
|
|
287
|
-
tslib_1.__decorate([
|
|
288
|
-
core_1.Input(),
|
|
289
|
-
tslib_1.__metadata("design:type", String),
|
|
290
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
291
|
-
], ToolBarDropDownButtonComponent.prototype, "look", null);
|
|
292
|
-
tslib_1.__decorate([
|
|
293
|
-
core_1.Input(),
|
|
294
|
-
tslib_1.__metadata("design:type", Boolean),
|
|
295
|
-
tslib_1.__metadata("design:paramtypes", [Boolean])
|
|
296
|
-
], ToolBarDropDownButtonComponent.prototype, "primary", null);
|
|
297
|
-
tslib_1.__decorate([
|
|
298
|
-
core_1.Input(),
|
|
299
|
-
tslib_1.__metadata("design:type", String)
|
|
300
|
-
], ToolBarDropDownButtonComponent.prototype, "fillMode", void 0);
|
|
301
|
-
tslib_1.__decorate([
|
|
302
|
-
core_1.Input(),
|
|
303
|
-
tslib_1.__metadata("design:type", String)
|
|
304
|
-
], ToolBarDropDownButtonComponent.prototype, "themeColor", void 0);
|
|
305
|
-
tslib_1.__decorate([
|
|
306
|
-
core_1.Input(),
|
|
307
|
-
tslib_1.__metadata("design:type", String)
|
|
308
|
-
], ToolBarDropDownButtonComponent.prototype, "buttonClass", void 0);
|
|
309
|
-
tslib_1.__decorate([
|
|
310
|
-
core_1.Input(),
|
|
311
|
-
tslib_1.__metadata("design:type", String)
|
|
312
|
-
], ToolBarDropDownButtonComponent.prototype, "textField", void 0);
|
|
313
|
-
tslib_1.__decorate([
|
|
314
|
-
core_1.Input(),
|
|
315
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
316
|
-
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
317
|
-
tslib_1.__decorate([
|
|
318
|
-
core_1.Input(),
|
|
319
|
-
tslib_1.__metadata("design:type", Array),
|
|
320
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
321
|
-
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
322
|
-
tslib_1.__decorate([
|
|
323
|
-
core_1.Output(),
|
|
324
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
325
|
-
], ToolBarDropDownButtonComponent.prototype, "itemClick", void 0);
|
|
326
|
-
tslib_1.__decorate([
|
|
327
|
-
core_1.Output(),
|
|
328
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
329
|
-
], ToolBarDropDownButtonComponent.prototype, "open", void 0);
|
|
330
|
-
tslib_1.__decorate([
|
|
331
|
-
core_1.Output(),
|
|
332
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
333
|
-
], ToolBarDropDownButtonComponent.prototype, "close", void 0);
|
|
334
|
-
tslib_1.__decorate([
|
|
335
|
-
core_1.ViewChild('toolbarTemplate', { static: true }),
|
|
336
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
337
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
338
|
-
tslib_1.__decorate([
|
|
339
|
-
core_1.ViewChild('popupTemplate', { static: true }),
|
|
340
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
341
|
-
], ToolBarDropDownButtonComponent.prototype, "popupTemplate", void 0);
|
|
342
|
-
tslib_1.__decorate([
|
|
343
|
-
core_1.ViewChild('dropdownButton', { read: core_1.ElementRef, static: true }),
|
|
344
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
345
|
-
], ToolBarDropDownButtonComponent.prototype, "dropdownButton", void 0);
|
|
346
|
-
tslib_1.__decorate([
|
|
347
|
-
core_1.ViewChild(kendo_angular_buttons_1.DropDownButtonComponent, { static: false }),
|
|
348
|
-
tslib_1.__metadata("design:type", kendo_angular_buttons_1.DropDownButtonComponent)
|
|
349
|
-
], ToolBarDropDownButtonComponent.prototype, "dropDownButtonComponent", void 0);
|
|
350
|
-
tslib_1.__decorate([
|
|
351
|
-
core_1.ViewChild('toolbarDropDownButton', { static: false }),
|
|
352
|
-
tslib_1.__metadata("design:type", kendo_angular_buttons_1.DropDownButtonComponent)
|
|
353
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarDropDownButton", void 0);
|
|
354
|
-
tslib_1.__decorate([
|
|
355
|
-
core_1.ViewChild('overflowDropDownButtonButtonList', { static: false }),
|
|
356
|
-
tslib_1.__metadata("design:type", toolbar_buttonlist_component_1.ToolBarButtonListComponent)
|
|
357
|
-
], ToolBarDropDownButtonComponent.prototype, "overflowDropDownButtonButtonList", void 0);
|
|
358
|
-
ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__decorate([
|
|
359
|
-
core_1.Component({
|
|
360
|
-
exportAs: 'kendoToolBarDropDownButton',
|
|
361
|
-
// tslint:disable-next-line:no-forward-ref
|
|
362
|
-
providers: [{ provide: toolbar_tool_component_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return ToolBarDropDownButtonComponent_1; }) }],
|
|
363
|
-
selector: 'kendo-toolbar-dropdownbutton',
|
|
364
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n [buttonClass]=\"buttonClass\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n [data]=\"data\"\n [textField]=\"textField\"\n [popupSettings]=\"popupSettings\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n (open)=\"open.emit($event)\"\n (close)=\"close.emit($event)\"\n (itemClick)=\"itemClick.emit($event)\"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type=\"button\"\n tabindex=\"-1\"\n kendoButton\n class=\"k-overflow-button\"\n [disabled]=\"true\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n [ngClass]=\"buttonClass\"\n (click)=\"itemClick.emit($event)\"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]=\"data\"\n [disabled]=\"disabled\"\n [textField]=\"textField\"\n (itemClick)=\"itemClick.emit($event)\"\n (click)=\"onButtonListClick($event)\"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n "
|
|
365
|
-
}),
|
|
366
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
367
|
-
], ToolBarDropDownButtonComponent);
|
|
368
|
-
return ToolBarDropDownButtonComponent;
|
|
369
|
-
}(toolbar_tool_component_1.ToolBarToolComponent));
|
|
370
|
-
exports.ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent;
|
|
@@ -1,69 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var toolbar_tool_component_1 = require("./toolbar-tool.component");
|
|
10
|
-
/**
|
|
11
|
-
* Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
12
|
-
*/
|
|
13
|
-
var ToolBarSeparatorComponent = /** @class */ (function (_super) {
|
|
14
|
-
tslib_1.__extends(ToolBarSeparatorComponent, _super);
|
|
15
|
-
function ToolBarSeparatorComponent() {
|
|
16
|
-
return _super.call(this) || this;
|
|
17
|
-
}
|
|
18
|
-
ToolBarSeparatorComponent_1 = ToolBarSeparatorComponent;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
ToolBarSeparatorComponent.prototype.canFocus = function () {
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
25
|
-
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
ToolBarSeparatorComponent.prototype.focus = function () {
|
|
30
|
-
/* noop */
|
|
31
|
-
};
|
|
32
|
-
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
ToolBarSeparatorComponent.prototype.handleKey = function () {
|
|
37
|
-
return false;
|
|
38
|
-
};
|
|
39
|
-
ToolBarSeparatorComponent.prototype.ngAfterViewInit = function () {
|
|
40
|
-
if (!this.popupTemplate) {
|
|
41
|
-
this.popupTemplate = this.toolbarTemplate;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var ToolBarSeparatorComponent_1;
|
|
45
|
-
tslib_1.__decorate([
|
|
46
|
-
core_1.ViewChild('toolbarTemplate', { static: true }),
|
|
47
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
48
|
-
], ToolBarSeparatorComponent.prototype, "toolbarTemplate", void 0);
|
|
49
|
-
tslib_1.__decorate([
|
|
50
|
-
core_1.ViewChild('popupTemplate', { static: true }),
|
|
51
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
52
|
-
], ToolBarSeparatorComponent.prototype, "popupTemplate", void 0);
|
|
53
|
-
tslib_1.__decorate([
|
|
54
|
-
core_1.ViewChild('separator', { static: false }),
|
|
55
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
56
|
-
], ToolBarSeparatorComponent.prototype, "separator", void 0);
|
|
57
|
-
ToolBarSeparatorComponent = ToolBarSeparatorComponent_1 = tslib_1.__decorate([
|
|
58
|
-
core_1.Component({
|
|
59
|
-
exportAs: 'kendoToolBarSeparator',
|
|
60
|
-
// tslint:disable-next-line:no-forward-ref
|
|
61
|
-
providers: [{ provide: toolbar_tool_component_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return ToolBarSeparatorComponent_1; }) }],
|
|
62
|
-
selector: 'kendo-toolbar-separator',
|
|
63
|
-
template: "\n <ng-template #toolbarTemplate>\n <div class=\"k-separator\"></div>\n </ng-template>\n "
|
|
64
|
-
}),
|
|
65
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
66
|
-
], ToolBarSeparatorComponent);
|
|
67
|
-
return ToolBarSeparatorComponent;
|
|
68
|
-
}(toolbar_tool_component_1.ToolBarToolComponent));
|
|
69
|
-
exports.ToolBarSeparatorComponent = ToolBarSeparatorComponent;
|