@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
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, Input, Output, EventEmitter, ViewChildren, QueryList } from '@angular/core';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
let ToolBarButtonListComponent = class ToolBarButtonListComponent {
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
constructor() {
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
this.fillMode = 'solid';
|
|
17
|
-
this.themeColor = 'base';
|
|
18
|
-
this.itemClick = new EventEmitter();
|
|
19
|
-
}
|
|
20
|
-
getText(dataItem) {
|
|
21
|
-
if (dataItem) {
|
|
22
|
-
return this.textField ? dataItem[this.textField] : dataItem.text || dataItem;
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
onClick(item, index) {
|
|
27
|
-
const dataItem = this.data[index];
|
|
28
|
-
if (item.click) {
|
|
29
|
-
item.click(dataItem);
|
|
30
|
-
}
|
|
31
|
-
this.itemClick.emit(dataItem);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
tslib_1.__decorate([
|
|
35
|
-
Input(),
|
|
36
|
-
tslib_1.__metadata("design:type", Array)
|
|
37
|
-
], ToolBarButtonListComponent.prototype, "data", void 0);
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
Input(),
|
|
40
|
-
tslib_1.__metadata("design:type", String)
|
|
41
|
-
], ToolBarButtonListComponent.prototype, "textField", void 0);
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
Input(),
|
|
44
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
45
|
-
], ToolBarButtonListComponent.prototype, "disabled", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
tslib_1.__metadata("design:type", String)
|
|
49
|
-
], ToolBarButtonListComponent.prototype, "fillMode", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", String)
|
|
53
|
-
], ToolBarButtonListComponent.prototype, "themeColor", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
Output(),
|
|
56
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
57
|
-
], ToolBarButtonListComponent.prototype, "itemClick", void 0);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
ViewChildren('button'),
|
|
60
|
-
tslib_1.__metadata("design:type", QueryList)
|
|
61
|
-
], ToolBarButtonListComponent.prototype, "buttons", void 0);
|
|
62
|
-
ToolBarButtonListComponent = tslib_1.__decorate([
|
|
63
|
-
Component({
|
|
64
|
-
selector: 'kendo-toolbar-buttonlist',
|
|
65
|
-
template: `
|
|
66
|
-
<button
|
|
67
|
-
#button
|
|
68
|
-
type="button"
|
|
69
|
-
tabindex="-1"
|
|
70
|
-
kendoButton
|
|
71
|
-
style="padding-left: 16px"
|
|
72
|
-
class="k-overflow-button"
|
|
73
|
-
*ngFor="let item of data; let i = index"
|
|
74
|
-
[disabled]="disabled || item.disabled"
|
|
75
|
-
[icon]="item.icon"
|
|
76
|
-
[iconClass]="item.iconClass"
|
|
77
|
-
[imageUrl]="item.imageUrl"
|
|
78
|
-
[fillMode]="fillMode"
|
|
79
|
-
[themeColor]="fillMode ? themeColor : null"
|
|
80
|
-
(click)="onClick(item, i)"
|
|
81
|
-
>
|
|
82
|
-
{{ getText(item) }}
|
|
83
|
-
</button>
|
|
84
|
-
`
|
|
85
|
-
})
|
|
86
|
-
], ToolBarButtonListComponent);
|
|
87
|
-
export { ToolBarButtonListComponent };
|
|
@@ -1,68 +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
|
-
var ToolBarSeparatorComponent_1;
|
|
7
|
-
import { Component, TemplateRef, forwardRef, ViewChild, ElementRef } from '@angular/core';
|
|
8
|
-
import { ToolBarToolComponent } from './toolbar-tool.component';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the [Kendo UI ToolBar Separator for Angular]({% slug controltypes_toolbar %}#toc-separators).
|
|
11
|
-
*/
|
|
12
|
-
let ToolBarSeparatorComponent = ToolBarSeparatorComponent_1 = class ToolBarSeparatorComponent extends ToolBarToolComponent {
|
|
13
|
-
constructor() {
|
|
14
|
-
super();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
canFocus() {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
focus() {
|
|
27
|
-
/* noop */
|
|
28
|
-
}
|
|
29
|
-
// If this is not here, the docs display info from its parent(ToolBarToolComponent).
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
handleKey() {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
ngAfterViewInit() {
|
|
37
|
-
if (!this.popupTemplate) {
|
|
38
|
-
this.popupTemplate = this.toolbarTemplate;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
tslib_1.__decorate([
|
|
43
|
-
ViewChild('toolbarTemplate', { static: true }),
|
|
44
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
45
|
-
], ToolBarSeparatorComponent.prototype, "toolbarTemplate", void 0);
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
ViewChild('popupTemplate', { static: true }),
|
|
48
|
-
tslib_1.__metadata("design:type", TemplateRef)
|
|
49
|
-
], ToolBarSeparatorComponent.prototype, "popupTemplate", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
ViewChild('separator', { static: false }),
|
|
52
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
53
|
-
], ToolBarSeparatorComponent.prototype, "separator", void 0);
|
|
54
|
-
ToolBarSeparatorComponent = ToolBarSeparatorComponent_1 = tslib_1.__decorate([
|
|
55
|
-
Component({
|
|
56
|
-
exportAs: 'kendoToolBarSeparator',
|
|
57
|
-
// tslint:disable-next-line:no-forward-ref
|
|
58
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSeparatorComponent_1) }],
|
|
59
|
-
selector: 'kendo-toolbar-separator',
|
|
60
|
-
template: `
|
|
61
|
-
<ng-template #toolbarTemplate>
|
|
62
|
-
<div class="k-separator"></div>
|
|
63
|
-
</ng-template>
|
|
64
|
-
`
|
|
65
|
-
}),
|
|
66
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
67
|
-
], ToolBarSeparatorComponent);
|
|
68
|
-
export { ToolBarSeparatorComponent };
|