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