@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.
- 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 +158 -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} +1015 -890
- 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} +24 -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 -653
- 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 -2677
- 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 -655
- 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
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
var ToolBarDropDownButtonComponent_1;
|
|
7
|
-
import { Component, ElementRef, TemplateRef, forwardRef, ViewChild, Input, EventEmitter, Output } from '@angular/core';
|
|
5
|
+
import { Component, ElementRef, forwardRef, ViewChild, Input, EventEmitter, Output } from '@angular/core';
|
|
8
6
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
9
7
|
import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
|
|
10
|
-
import { ToolBarButtonListComponent } from './toolbar-buttonlist.component';
|
|
11
8
|
import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-buttons";
|
|
11
|
+
import * as i2 from "./toolbar-buttonlist.component";
|
|
12
|
+
import * as i3 from "@angular/common";
|
|
12
13
|
/**
|
|
13
14
|
* Represents the [Kendo UI ToolBar DropDownButton for Angular]({% slug controltypes_toolbar %}#toc-dropdownbuttons).
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
export class ToolBarDropDownButtonComponent extends ToolBarToolComponent {
|
|
16
17
|
constructor() {
|
|
17
18
|
super();
|
|
18
19
|
// showText and showIcon showIcon should be declared first
|
|
@@ -209,118 +210,63 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
209
210
|
this.overflowButtons[index].nativeElement.focus();
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
]
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
]
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
]
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
]
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
Input(),
|
|
270
|
-
tslib_1.__metadata("design:type", String)
|
|
271
|
-
], ToolBarDropDownButtonComponent.prototype, "textField", void 0);
|
|
272
|
-
tslib_1.__decorate([
|
|
273
|
-
Input(),
|
|
274
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
275
|
-
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
276
|
-
tslib_1.__decorate([
|
|
277
|
-
Input(),
|
|
278
|
-
tslib_1.__metadata("design:type", Array),
|
|
279
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
280
|
-
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
281
|
-
tslib_1.__decorate([
|
|
282
|
-
Output(),
|
|
283
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
284
|
-
], ToolBarDropDownButtonComponent.prototype, "itemClick", void 0);
|
|
285
|
-
tslib_1.__decorate([
|
|
286
|
-
Output(),
|
|
287
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
288
|
-
], ToolBarDropDownButtonComponent.prototype, "open", void 0);
|
|
289
|
-
tslib_1.__decorate([
|
|
290
|
-
Output(),
|
|
291
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
292
|
-
], ToolBarDropDownButtonComponent.prototype, "close", void 0);
|
|
293
|
-
tslib_1.__decorate([
|
|
294
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
295
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
296
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
297
|
-
tslib_1.__decorate([
|
|
298
|
-
ViewChild('popupTemplate', { static: true }),
|
|
299
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
300
|
-
], ToolBarDropDownButtonComponent.prototype, "popupTemplate", void 0);
|
|
301
|
-
tslib_1.__decorate([
|
|
302
|
-
ViewChild('dropdownButton', { read: ElementRef, static: true }),
|
|
303
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
304
|
-
], ToolBarDropDownButtonComponent.prototype, "dropdownButton", void 0);
|
|
305
|
-
tslib_1.__decorate([
|
|
306
|
-
ViewChild(DropDownButtonComponent, { static: false }),
|
|
307
|
-
tslib_1.__metadata("design:type", DropDownButtonComponent)
|
|
308
|
-
], ToolBarDropDownButtonComponent.prototype, "dropDownButtonComponent", void 0);
|
|
309
|
-
tslib_1.__decorate([
|
|
310
|
-
ViewChild('toolbarDropDownButton', { static: false }),
|
|
311
|
-
tslib_1.__metadata("design:type", DropDownButtonComponent)
|
|
312
|
-
], ToolBarDropDownButtonComponent.prototype, "toolbarDropDownButton", void 0);
|
|
313
|
-
tslib_1.__decorate([
|
|
314
|
-
ViewChild('overflowDropDownButtonButtonList', { static: false }),
|
|
315
|
-
tslib_1.__metadata("design:type", ToolBarButtonListComponent)
|
|
316
|
-
], ToolBarDropDownButtonComponent.prototype, "overflowDropDownButtonButtonList", void 0);
|
|
317
|
-
ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__decorate([
|
|
318
|
-
Component({
|
|
319
|
-
exportAs: 'kendoToolBarDropDownButton',
|
|
320
|
-
// tslint:disable-next-line:no-forward-ref
|
|
321
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent_1) }],
|
|
322
|
-
selector: 'kendo-toolbar-dropdownbutton',
|
|
323
|
-
template: `
|
|
213
|
+
}
|
|
214
|
+
ToolBarDropDownButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
215
|
+
ToolBarDropDownButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarDropDownButtonComponent, selector: "kendo-toolbar-dropdownbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", popupSettings: "popupSettings", look: "look", primary: "primary", fillMode: "fillMode", themeColor: "themeColor", buttonClass: "buttonClass", textField: "textField", disabled: "disabled", data: "data" }, outputs: { itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "dropdownButton", first: true, predicate: ["dropdownButton"], descendants: true, read: ElementRef, static: true }, { propertyName: "dropDownButtonComponent", first: true, predicate: DropDownButtonComponent, descendants: true }, { propertyName: "toolbarDropDownButton", first: true, predicate: ["toolbarDropDownButton"], descendants: true }, { propertyName: "overflowDropDownButtonButtonList", first: true, predicate: ["overflowDropDownButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarDropDownButton"], usesInheritance: true, ngImport: i0, template: `
|
|
216
|
+
<ng-template #toolbarTemplate>
|
|
217
|
+
<kendo-dropdownbutton
|
|
218
|
+
#toolbarDropDownButton
|
|
219
|
+
[icon]="toolbarOptions.icon"
|
|
220
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
221
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
222
|
+
[buttonClass]="buttonClass"
|
|
223
|
+
[disabled]="disabled"
|
|
224
|
+
[tabIndex]="-1"
|
|
225
|
+
[data]="data"
|
|
226
|
+
[textField]="textField"
|
|
227
|
+
[popupSettings]="popupSettings"
|
|
228
|
+
[fillMode]="fillMode"
|
|
229
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
230
|
+
(open)="open.emit($event)"
|
|
231
|
+
(close)="close.emit($event)"
|
|
232
|
+
(itemClick)="itemClick.emit($event)"
|
|
233
|
+
>
|
|
234
|
+
{{ toolbarOptions.text }}
|
|
235
|
+
</kendo-dropdownbutton>
|
|
236
|
+
</ng-template>
|
|
237
|
+
<ng-template #popupTemplate>
|
|
238
|
+
<button
|
|
239
|
+
type="button"
|
|
240
|
+
tabindex="-1"
|
|
241
|
+
kendoButton
|
|
242
|
+
class="k-overflow-button"
|
|
243
|
+
[disabled]="true"
|
|
244
|
+
[icon]="overflowOptions.icon"
|
|
245
|
+
[iconClass]="overflowOptions.iconClass"
|
|
246
|
+
[imageUrl]="overflowOptions.imageUrl"
|
|
247
|
+
[ngClass]="buttonClass"
|
|
248
|
+
(click)="itemClick.emit($event)"
|
|
249
|
+
>
|
|
250
|
+
{{ overflowOptions.text }}
|
|
251
|
+
</button>
|
|
252
|
+
<kendo-toolbar-buttonlist
|
|
253
|
+
#overflowDropDownButtonButtonList
|
|
254
|
+
[data]="data"
|
|
255
|
+
[disabled]="disabled"
|
|
256
|
+
[textField]="textField"
|
|
257
|
+
(itemClick)="itemClick.emit($event)"
|
|
258
|
+
(click)="onButtonListClick($event)"
|
|
259
|
+
>
|
|
260
|
+
</kendo-toolbar-buttonlist>
|
|
261
|
+
</ng-template>
|
|
262
|
+
`, isInline: true, components: [{ type: i1.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "iconClass", "imageUrl", "popupSettings", "textField", "disabled", "data", "size", "rounded", "fillMode", "themeColor", "buttonClass", "tabIndex"], outputs: ["itemClick", "open", "close", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { type: i2.ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarDropDownButtonComponent, decorators: [{
|
|
264
|
+
type: Component,
|
|
265
|
+
args: [{
|
|
266
|
+
exportAs: 'kendoToolBarDropDownButton',
|
|
267
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarDropDownButtonComponent) }],
|
|
268
|
+
selector: 'kendo-toolbar-dropdownbutton',
|
|
269
|
+
template: `
|
|
324
270
|
<ng-template #toolbarTemplate>
|
|
325
271
|
<kendo-dropdownbutton
|
|
326
272
|
#toolbarDropDownButton
|
|
@@ -368,7 +314,59 @@ ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = tslib_1.__de
|
|
|
368
314
|
</kendo-toolbar-buttonlist>
|
|
369
315
|
</ng-template>
|
|
370
316
|
`
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
317
|
+
}]
|
|
318
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showText: [{
|
|
319
|
+
type: Input
|
|
320
|
+
}], showIcon: [{
|
|
321
|
+
type: Input
|
|
322
|
+
}], text: [{
|
|
323
|
+
type: Input
|
|
324
|
+
}], icon: [{
|
|
325
|
+
type: Input
|
|
326
|
+
}], iconClass: [{
|
|
327
|
+
type: Input
|
|
328
|
+
}], imageUrl: [{
|
|
329
|
+
type: Input
|
|
330
|
+
}], popupSettings: [{
|
|
331
|
+
type: Input
|
|
332
|
+
}], look: [{
|
|
333
|
+
type: Input
|
|
334
|
+
}], primary: [{
|
|
335
|
+
type: Input
|
|
336
|
+
}], fillMode: [{
|
|
337
|
+
type: Input
|
|
338
|
+
}], themeColor: [{
|
|
339
|
+
type: Input
|
|
340
|
+
}], buttonClass: [{
|
|
341
|
+
type: Input
|
|
342
|
+
}], textField: [{
|
|
343
|
+
type: Input
|
|
344
|
+
}], disabled: [{
|
|
345
|
+
type: Input
|
|
346
|
+
}], data: [{
|
|
347
|
+
type: Input
|
|
348
|
+
}], itemClick: [{
|
|
349
|
+
type: Output
|
|
350
|
+
}], open: [{
|
|
351
|
+
type: Output
|
|
352
|
+
}], close: [{
|
|
353
|
+
type: Output
|
|
354
|
+
}], toolbarTemplate: [{
|
|
355
|
+
type: ViewChild,
|
|
356
|
+
args: ['toolbarTemplate', { static: true }]
|
|
357
|
+
}], popupTemplate: [{
|
|
358
|
+
type: ViewChild,
|
|
359
|
+
args: ['popupTemplate', { static: true }]
|
|
360
|
+
}], dropdownButton: [{
|
|
361
|
+
type: ViewChild,
|
|
362
|
+
args: ['dropdownButton', { read: ElementRef, static: true }]
|
|
363
|
+
}], dropDownButtonComponent: [{
|
|
364
|
+
type: ViewChild,
|
|
365
|
+
args: [DropDownButtonComponent, { static: false }]
|
|
366
|
+
}], toolbarDropDownButton: [{
|
|
367
|
+
type: ViewChild,
|
|
368
|
+
args: ['toolbarDropDownButton', { static: false }]
|
|
369
|
+
}], overflowDropDownButtonButtonList: [{
|
|
370
|
+
type: ViewChild,
|
|
371
|
+
args: ['overflowDropDownButtonButtonList', { static: false }]
|
|
372
|
+
}] } });
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { Component, forwardRef, ViewChild } from '@angular/core';
|
|
6
|
+
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
10
|
+
*/
|
|
11
|
+
export class ToolBarSeparatorComponent extends ToolBarToolComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
canFocus() {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
focus() {
|
|
26
|
+
/* noop */
|
|
27
|
+
}
|
|
28
|
+
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
handleKey() {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
ngAfterViewInit() {
|
|
36
|
+
if (!this.popupTemplate) {
|
|
37
|
+
this.popupTemplate = this.toolbarTemplate;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
ToolBarSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
ToolBarSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSeparatorComponent, selector: "kendo-toolbar-separator", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "separator", first: true, predicate: ["separator"], descendants: true }], exportAs: ["kendoToolBarSeparator"], usesInheritance: true, ngImport: i0, template: `
|
|
43
|
+
<ng-template #toolbarTemplate>
|
|
44
|
+
<div class="k-separator"></div>
|
|
45
|
+
</ng-template>
|
|
46
|
+
`, isInline: true });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSeparatorComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
exportAs: 'kendoToolBarSeparator',
|
|
51
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent) }],
|
|
52
|
+
selector: 'kendo-toolbar-separator',
|
|
53
|
+
template: `
|
|
54
|
+
<ng-template #toolbarTemplate>
|
|
55
|
+
<div class="k-separator"></div>
|
|
56
|
+
</ng-template>
|
|
57
|
+
`
|
|
58
|
+
}]
|
|
59
|
+
}], ctorParameters: function () { return []; }, propDecorators: { toolbarTemplate: [{
|
|
60
|
+
type: ViewChild,
|
|
61
|
+
args: ['toolbarTemplate', { static: true }]
|
|
62
|
+
}], popupTemplate: [{
|
|
63
|
+
type: ViewChild,
|
|
64
|
+
args: ['popupTemplate', { static: true }]
|
|
65
|
+
}], separator: [{
|
|
66
|
+
type: ViewChild,
|
|
67
|
+
args: ['separator', { static: false }]
|
|
68
|
+
}] } });
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
var ToolBarSplitButtonComponent_1;
|
|
7
|
-
import { Component, TemplateRef, forwardRef, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
|
|
8
|
-
import { SplitButtonComponent } from '@progress/kendo-angular-buttons';
|
|
5
|
+
import { Component, forwardRef, ViewChild, Input, ElementRef, Output, EventEmitter } from '@angular/core';
|
|
9
6
|
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
10
|
-
import { ToolBarButtonListComponent } from './toolbar-buttonlist.component';
|
|
11
7
|
import { getValueForLocation, makePeeker, getIndexOfFocused, getPrevKey, getNextKey, seekFocusedIndex, areEqual } from '../util';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@progress/kendo-angular-buttons";
|
|
10
|
+
import * as i2 from "./toolbar-buttonlist.component";
|
|
11
|
+
import * as i3 from "@angular/common";
|
|
12
12
|
/**
|
|
13
13
|
* Represents the [Kendo UI ToolBar SplitButton for Angular]({% slug controltypes_toolbar %}#toc-splitbuttons).
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
export class ToolBarSplitButtonComponent extends ToolBarToolComponent {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
// showText and showIcon showIcon should be declared first
|
|
@@ -222,121 +222,72 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
222
222
|
this.overflowButtons[index].nativeElement.focus();
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
]
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
]
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
]
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
]
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
]
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
]
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
], ToolBarSplitButtonComponent.prototype, "textField", void 0);
|
|
292
|
-
tslib_1.__decorate([
|
|
293
|
-
Input(),
|
|
294
|
-
tslib_1.__metadata("design:type", Array),
|
|
295
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
296
|
-
], ToolBarSplitButtonComponent.prototype, "data", null);
|
|
297
|
-
tslib_1.__decorate([
|
|
298
|
-
Output(),
|
|
299
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
300
|
-
], ToolBarSplitButtonComponent.prototype, "buttonClick", void 0);
|
|
301
|
-
tslib_1.__decorate([
|
|
302
|
-
Output(),
|
|
303
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
304
|
-
], ToolBarSplitButtonComponent.prototype, "itemClick", void 0);
|
|
305
|
-
tslib_1.__decorate([
|
|
306
|
-
Output(),
|
|
307
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
308
|
-
], ToolBarSplitButtonComponent.prototype, "open", void 0);
|
|
309
|
-
tslib_1.__decorate([
|
|
310
|
-
Output(),
|
|
311
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
312
|
-
], ToolBarSplitButtonComponent.prototype, "close", void 0);
|
|
313
|
-
tslib_1.__decorate([
|
|
314
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
315
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
316
|
-
], ToolBarSplitButtonComponent.prototype, "toolbarTemplate", void 0);
|
|
317
|
-
tslib_1.__decorate([
|
|
318
|
-
ViewChild('popupTemplate', { static: true }),
|
|
319
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
320
|
-
], ToolBarSplitButtonComponent.prototype, "popupTemplate", void 0);
|
|
321
|
-
tslib_1.__decorate([
|
|
322
|
-
ViewChild('toolbarSplitButton', { static: false }),
|
|
323
|
-
tslib_1.__metadata("design:type", SplitButtonComponent)
|
|
324
|
-
], ToolBarSplitButtonComponent.prototype, "toolbarSplitButton", void 0);
|
|
325
|
-
tslib_1.__decorate([
|
|
326
|
-
ViewChild('overflowSplitButton', { read: ElementRef, static: false }),
|
|
327
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
328
|
-
], ToolBarSplitButtonComponent.prototype, "overflowSplitButton", void 0);
|
|
329
|
-
tslib_1.__decorate([
|
|
330
|
-
ViewChild('overflowSplitButtonButtonList', { static: false }),
|
|
331
|
-
tslib_1.__metadata("design:type", ToolBarButtonListComponent)
|
|
332
|
-
], ToolBarSplitButtonComponent.prototype, "overflowSplitButtonButtonList", void 0);
|
|
333
|
-
ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate([
|
|
334
|
-
Component({
|
|
335
|
-
exportAs: 'kendoToolBarSplitButton',
|
|
336
|
-
// tslint:disable-next-line:no-forward-ref
|
|
337
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent_1) }],
|
|
338
|
-
selector: 'kendo-toolbar-splitbutton',
|
|
339
|
-
template: `
|
|
225
|
+
}
|
|
226
|
+
ToolBarSplitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
227
|
+
ToolBarSplitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ToolBarSplitButtonComponent, selector: "kendo-toolbar-splitbutton", inputs: { showText: "showText", showIcon: "showIcon", text: "text", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", disabled: "disabled", popupSettings: "popupSettings", fillMode: "fillMode", themeColor: "themeColor", look: "look", buttonClass: "buttonClass", arrowButtonClass: "arrowButtonClass", arrowButtonIcon: "arrowButtonIcon", textField: "textField", data: "data" }, outputs: { buttonClick: "buttonClick", itemClick: "itemClick", open: "open", close: "close" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "toolbarSplitButton", first: true, predicate: ["toolbarSplitButton"], descendants: true }, { propertyName: "overflowSplitButton", first: true, predicate: ["overflowSplitButton"], descendants: true, read: ElementRef }, { propertyName: "overflowSplitButtonButtonList", first: true, predicate: ["overflowSplitButtonButtonList"], descendants: true }], exportAs: ["kendoToolBarSplitButton"], usesInheritance: true, ngImport: i0, template: `
|
|
228
|
+
<ng-template #toolbarTemplate>
|
|
229
|
+
<kendo-splitbutton
|
|
230
|
+
#toolbarSplitButton
|
|
231
|
+
[data]="data"
|
|
232
|
+
[text]="toolbarOptions.text"
|
|
233
|
+
[icon]="toolbarOptions.icon"
|
|
234
|
+
[iconClass]="toolbarOptions.iconClass"
|
|
235
|
+
[imageUrl]="toolbarOptions.imageUrl"
|
|
236
|
+
[buttonClass]="buttonClass"
|
|
237
|
+
[arrowButtonClass]="arrowButtonClass"
|
|
238
|
+
[arrowButtonIcon]="arrowButtonIcon"
|
|
239
|
+
[disabled]="disabled"
|
|
240
|
+
[tabIndex]="-1"
|
|
241
|
+
[textField]="textField"
|
|
242
|
+
[popupSettings]="popupSettings"
|
|
243
|
+
[fillMode]="fillMode"
|
|
244
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
245
|
+
(buttonClick)="buttonClick.emit($event)"
|
|
246
|
+
(open)="open.emit($event)"
|
|
247
|
+
(close)="close.emit($event)"
|
|
248
|
+
(itemClick)="itemClick.emit($event)"
|
|
249
|
+
>
|
|
250
|
+
</kendo-splitbutton>
|
|
251
|
+
</ng-template>
|
|
252
|
+
<ng-template #popupTemplate>
|
|
253
|
+
<button
|
|
254
|
+
#overflowSplitButton
|
|
255
|
+
type="button"
|
|
256
|
+
tabindex="-1"
|
|
257
|
+
[fillMode]="fillMode"
|
|
258
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
259
|
+
kendoButton
|
|
260
|
+
class="k-overflow-button"
|
|
261
|
+
[disabled]="disabled"
|
|
262
|
+
[icon]="overflowOptions.icon"
|
|
263
|
+
[iconClass]="overflowOptions.iconClass"
|
|
264
|
+
[imageUrl]="overflowOptions.imageUrl"
|
|
265
|
+
[ngClass]="buttonClass"
|
|
266
|
+
(click)="buttonClick.emit($event)"
|
|
267
|
+
(click)="onMainButtonClick($event)"
|
|
268
|
+
>
|
|
269
|
+
{{ overflowOptions.text }}
|
|
270
|
+
</button>
|
|
271
|
+
<kendo-toolbar-buttonlist
|
|
272
|
+
#overflowSplitButtonButtonList
|
|
273
|
+
[data]="data"
|
|
274
|
+
[disabled]="disabled"
|
|
275
|
+
[fillMode]="fillMode"
|
|
276
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
277
|
+
[textField]="textField"
|
|
278
|
+
(itemClick)="itemClick.emit($event)"
|
|
279
|
+
(click)="onButtonListClick($event)"
|
|
280
|
+
>
|
|
281
|
+
</kendo-toolbar-buttonlist>
|
|
282
|
+
</ng-template>
|
|
283
|
+
`, isInline: true, components: [{ type: i1.SplitButtonComponent, selector: "kendo-splitbutton", inputs: ["text", "icon", "iconClass", "type", "imageUrl", "size", "rounded", "fillMode", "themeColor", "disabled", "popupSettings", "tabIndex", "textField", "data", "buttonClass", "arrowButtonClass", "arrowButtonIcon"], outputs: ["buttonClick", "itemClick", "focus", "blur", "open", "close"], exportAs: ["kendoSplitButton"] }, { type: i2.ToolBarButtonListComponent, selector: "kendo-toolbar-buttonlist", inputs: ["data", "textField", "disabled", "fillMode", "themeColor"], outputs: ["itemClick"] }], directives: [{ type: i1.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ToolBarSplitButtonComponent, decorators: [{
|
|
285
|
+
type: Component,
|
|
286
|
+
args: [{
|
|
287
|
+
exportAs: 'kendoToolBarSplitButton',
|
|
288
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSplitButtonComponent) }],
|
|
289
|
+
selector: 'kendo-toolbar-splitbutton',
|
|
290
|
+
template: `
|
|
340
291
|
<ng-template #toolbarTemplate>
|
|
341
292
|
<kendo-splitbutton
|
|
342
293
|
#toolbarSplitButton
|
|
@@ -393,7 +344,60 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = tslib_1.__decorate
|
|
|
393
344
|
</kendo-toolbar-buttonlist>
|
|
394
345
|
</ng-template>
|
|
395
346
|
`
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
347
|
+
}]
|
|
348
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showText: [{
|
|
349
|
+
type: Input
|
|
350
|
+
}], showIcon: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], text: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}], icon: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], iconClass: [{
|
|
357
|
+
type: Input
|
|
358
|
+
}], imageUrl: [{
|
|
359
|
+
type: Input
|
|
360
|
+
}], disabled: [{
|
|
361
|
+
type: Input
|
|
362
|
+
}], popupSettings: [{
|
|
363
|
+
type: Input
|
|
364
|
+
}], fillMode: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], themeColor: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], look: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], buttonClass: [{
|
|
371
|
+
type: Input
|
|
372
|
+
}], arrowButtonClass: [{
|
|
373
|
+
type: Input
|
|
374
|
+
}], arrowButtonIcon: [{
|
|
375
|
+
type: Input
|
|
376
|
+
}], textField: [{
|
|
377
|
+
type: Input
|
|
378
|
+
}], data: [{
|
|
379
|
+
type: Input
|
|
380
|
+
}], buttonClick: [{
|
|
381
|
+
type: Output
|
|
382
|
+
}], itemClick: [{
|
|
383
|
+
type: Output
|
|
384
|
+
}], open: [{
|
|
385
|
+
type: Output
|
|
386
|
+
}], close: [{
|
|
387
|
+
type: Output
|
|
388
|
+
}], toolbarTemplate: [{
|
|
389
|
+
type: ViewChild,
|
|
390
|
+
args: ['toolbarTemplate', { static: true }]
|
|
391
|
+
}], popupTemplate: [{
|
|
392
|
+
type: ViewChild,
|
|
393
|
+
args: ['popupTemplate', { static: true }]
|
|
394
|
+
}], toolbarSplitButton: [{
|
|
395
|
+
type: ViewChild,
|
|
396
|
+
args: ['toolbarSplitButton', { static: false }]
|
|
397
|
+
}], overflowSplitButton: [{
|
|
398
|
+
type: ViewChild,
|
|
399
|
+
args: ['overflowSplitButton', { read: ElementRef, static: false }]
|
|
400
|
+
}], overflowSplitButtonButtonList: [{
|
|
401
|
+
type: ViewChild,
|
|
402
|
+
args: ['overflowSplitButtonButtonList', { static: false }]
|
|
403
|
+
}] } });
|