@progress/kendo-angular-toolbar 4.1.3 → 5.0.1-dev.202202251425
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/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dist/cdn/js/kendo-angular-toolbar.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tools/toolbar-button.component.js +47 -14
- package/dist/es/tools/toolbar-buttongroup.component.js +16 -13
- package/dist/es/tools/toolbar-buttonlist.component.js +8 -3
- package/dist/es/tools/toolbar-dropdownbutton.component.js +64 -14
- package/dist/es/tools/toolbar-splitbutton.component.js +50 -9
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/tools/toolbar-button.component.d.ts +31 -11
- package/dist/es2015/tools/toolbar-button.component.js +46 -17
- package/dist/es2015/tools/toolbar-buttongroup.component.d.ts +3 -9
- package/dist/es2015/tools/toolbar-buttongroup.component.js +15 -16
- package/dist/es2015/tools/toolbar-buttonlist.component.d.ts +3 -2
- package/dist/es2015/tools/toolbar-buttonlist.component.js +9 -3
- package/dist/es2015/tools/toolbar-dropdownbutton.component.d.ts +40 -14
- package/dist/es2015/tools/toolbar-dropdownbutton.component.js +57 -15
- package/dist/es2015/tools/toolbar-splitbutton.component.d.ts +34 -10
- package/dist/es2015/tools/toolbar-splitbutton.component.js +51 -11
- package/dist/fesm2015/index.js +179 -63
- package/dist/fesm5/index.js +186 -54
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tools/toolbar-button.component.js +47 -14
- package/dist/npm/tools/toolbar-buttongroup.component.js +16 -13
- package/dist/npm/tools/toolbar-buttonlist.component.js +8 -3
- package/dist/npm/tools/toolbar-dropdownbutton.component.js +64 -14
- package/dist/npm/tools/toolbar-splitbutton.component.js +50 -9
- package/dist/systemjs/kendo-angular-toolbar.js +1 -1
- package/package.json +11 -11
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-toolbar',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1645799035,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -29,24 +29,40 @@ var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
|
29
29
|
*/
|
|
30
30
|
_this.toggleable = false;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
32
|
+
* Sets the selected state of the Button.
|
|
34
33
|
*/
|
|
35
|
-
_this.
|
|
34
|
+
_this.selected = false;
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
38
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
36
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
39
37
|
*
|
|
40
38
|
* The available values are:
|
|
41
|
-
* * `
|
|
39
|
+
* * `solid` (default)
|
|
42
40
|
* * `flat`
|
|
43
41
|
* * `outline`
|
|
42
|
+
* * `link`
|
|
43
|
+
* * `null`
|
|
44
44
|
*/
|
|
45
|
-
_this.
|
|
45
|
+
_this.fillMode = 'solid';
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* The Button allows you to specify predefined theme colors.
|
|
48
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
49
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
50
|
+
*
|
|
51
|
+
* The possible values are:
|
|
52
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
53
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
54
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
55
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
56
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
57
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
58
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
59
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
60
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
61
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
62
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
63
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
48
64
|
*/
|
|
49
|
-
_this.
|
|
65
|
+
_this.themeColor = 'base';
|
|
50
66
|
/**
|
|
51
67
|
* Fires each time the Button is clicked.
|
|
52
68
|
*/
|
|
@@ -86,6 +102,18 @@ var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
|
86
102
|
enumerable: true,
|
|
87
103
|
configurable: true
|
|
88
104
|
});
|
|
105
|
+
Object.defineProperty(ToolBarButtonComponent.prototype, "look", {
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
109
|
+
set: function (look) {
|
|
110
|
+
if (look) {
|
|
111
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
enumerable: true,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
89
117
|
Object.defineProperty(ToolBarButtonComponent.prototype, "togglable", {
|
|
90
118
|
/**
|
|
91
119
|
* @hidden
|
|
@@ -202,6 +230,11 @@ var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
|
202
230
|
Input(),
|
|
203
231
|
tslib_1.__metadata("design:type", Boolean)
|
|
204
232
|
], ToolBarButtonComponent.prototype, "toggleable", void 0);
|
|
233
|
+
tslib_1.__decorate([
|
|
234
|
+
Input(),
|
|
235
|
+
tslib_1.__metadata("design:type", String),
|
|
236
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
237
|
+
], ToolBarButtonComponent.prototype, "look", null);
|
|
205
238
|
tslib_1.__decorate([
|
|
206
239
|
Input(),
|
|
207
240
|
tslib_1.__metadata("design:type", Boolean),
|
|
@@ -210,15 +243,15 @@ var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
|
210
243
|
tslib_1.__decorate([
|
|
211
244
|
Input(),
|
|
212
245
|
tslib_1.__metadata("design:type", Boolean)
|
|
213
|
-
], ToolBarButtonComponent.prototype, "
|
|
246
|
+
], ToolBarButtonComponent.prototype, "selected", void 0);
|
|
214
247
|
tslib_1.__decorate([
|
|
215
248
|
Input(),
|
|
216
249
|
tslib_1.__metadata("design:type", String)
|
|
217
|
-
], ToolBarButtonComponent.prototype, "
|
|
250
|
+
], ToolBarButtonComponent.prototype, "fillMode", void 0);
|
|
218
251
|
tslib_1.__decorate([
|
|
219
252
|
Input(),
|
|
220
|
-
tslib_1.__metadata("design:type",
|
|
221
|
-
], ToolBarButtonComponent.prototype, "
|
|
253
|
+
tslib_1.__metadata("design:type", String)
|
|
254
|
+
], ToolBarButtonComponent.prototype, "themeColor", void 0);
|
|
222
255
|
tslib_1.__decorate([
|
|
223
256
|
Input(),
|
|
224
257
|
tslib_1.__metadata("design:type", String),
|
|
@@ -268,7 +301,7 @@ var ToolBarButtonComponent = /** @class */ (function (_super) {
|
|
|
268
301
|
// tslint:disable-next-line:no-forward-ref
|
|
269
302
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarButtonComponent_1; }) }],
|
|
270
303
|
selector: 'kendo-toolbar-button',
|
|
271
|
-
template: "\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]=\"tabIndex\"\n type=\"button\"\n kendoButton\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n [
|
|
304
|
+
template: "\n <ng-template #toolbarTemplate>\n <button\n #toolbarButton\n [tabindex]=\"tabIndex\"\n type=\"button\"\n kendoButton\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n [selected]=\"selected\"\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n (click)=\"click.emit($event)\"\n (pointerdown)=\"pointerdown.emit($event)\"\n (selectedChange)=\"selectedChange.emit($event)\"\n (blur)=\"onBlur()\"\n >\n {{ toolbarOptions.text }}\n </button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowButton\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n class=\"k-overflow-button\"\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [toggleable]=\"toggleable\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n [selected]=\"selected\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n (click)=\"click.emit($event)\"\n (selectedChange)=\"selectedChange.emit($event)\"\n >\n {{ overflowOptions.text }}\n </button>\n </ng-template>\n "
|
|
272
305
|
}),
|
|
273
306
|
tslib_1.__metadata("design:paramtypes", [])
|
|
274
307
|
], ToolBarButtonComponent);
|
|
@@ -21,22 +21,24 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
|
|
|
21
21
|
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
22
22
|
*/
|
|
23
23
|
_this.selection = 'multiple';
|
|
24
|
-
/**
|
|
25
|
-
* Changes the visual appearance by using alternative styling options.
|
|
26
|
-
* Setting the `look` property on individual buttons inside the ToolBarButtonGroupComponent is not supported.
|
|
27
|
-
*
|
|
28
|
-
* The available values are:
|
|
29
|
-
* * `bare`
|
|
30
|
-
* * `flat`
|
|
31
|
-
* * `outline`
|
|
32
|
-
*/
|
|
33
|
-
_this.look = 'default';
|
|
34
24
|
_this.focusedIndex = -1;
|
|
35
25
|
_this.getNextKey = getNextKey(_this.localization.rtl);
|
|
36
26
|
_this.getPrevKey = getPrevKey(_this.localization.rtl);
|
|
37
27
|
return _this;
|
|
38
28
|
}
|
|
39
29
|
ToolBarButtonGroupComponent_1 = ToolBarButtonGroupComponent;
|
|
30
|
+
Object.defineProperty(ToolBarButtonGroupComponent.prototype, "look", {
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
set: function (look) {
|
|
35
|
+
if (look) {
|
|
36
|
+
this.buttonComponents.forEach(function (b) { return b.fillMode = look === 'default' ? 'solid' : look; });
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
enumerable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
});
|
|
40
42
|
Object.defineProperty(ToolBarButtonGroupComponent.prototype, "buttonElements", {
|
|
41
43
|
get: function () {
|
|
42
44
|
return this.getButtonGroup()
|
|
@@ -125,8 +127,9 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
|
|
|
125
127
|
], ToolBarButtonGroupComponent.prototype, "width", void 0);
|
|
126
128
|
tslib_1.__decorate([
|
|
127
129
|
Input(),
|
|
128
|
-
tslib_1.__metadata("design:type", String)
|
|
129
|
-
|
|
130
|
+
tslib_1.__metadata("design:type", String),
|
|
131
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
132
|
+
], ToolBarButtonGroupComponent.prototype, "look", null);
|
|
130
133
|
tslib_1.__decorate([
|
|
131
134
|
ViewChild('toolbarTemplate', { static: true }),
|
|
132
135
|
tslib_1.__metadata("design:type", TemplateRef)
|
|
@@ -153,7 +156,7 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
|
|
|
153
156
|
// tslint:disable-next-line:no-forward-ref
|
|
154
157
|
providers: [LocalizationService, { provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarButtonGroupComponent_1; }) }],
|
|
155
158
|
selector: 'kendo-toolbar-buttongroup',
|
|
156
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [
|
|
159
|
+
template: "\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [width]=\"width\"\n (navigate)=\"onNavigate($event)\"\n (focus)=\"onFocus()\"\n >\n <span\n kendoButton\n *ngFor=\"let button of buttonComponents\"\n [ngStyle]=\"button.style\"\n [ngClass]=\"button.className\"\n [attr.title]=\"button.title\"\n [disabled]=\"button.disabled\"\n [togglable]=\"button.togglable\"\n [selected]=\"button.selected\"\n [fillMode]=\"button.fillMode\"\n [themeColor]=\"button.fillMode ? button.themeColor : null\"\n [icon]=\"button.toolbarOptions.icon\"\n [iconClass]=\"button.toolbarOptions.iconClass\"\n [imageUrl]=\"button.toolbarOptions.imageUrl\"\n (click)=\"button.click.emit($event); onButtonClick($event)\"\n (pointerdown)=\"button.pointerdown.emit($event)\"\n (selectedChange)=\"selectedChangeHandler($event, button)\"\n >\n {{ button.toolbarOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n <ng-template #popupTemplate>\n <kendo-buttongroup\n #overflowButtonGroup\n class=\"k-overflow-button\"\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [width]=\"width\"\n >\n <span\n kendoButton\n class=\"k-overflow-button\"\n *ngFor=\"let button of buttonComponents\"\n [ngStyle]=\"button.style\"\n [ngClass]=\"button.className\"\n [attr.title]=\"button.title\"\n [disabled]=\"button.disabled\"\n [togglable]=\"button.togglable\"\n [selected]=\"button.selected\"\n [fillMode]=\"button.fillMode\"\n [themeColor]=\"button.fillMode ? button.themeColor : null\"\n [icon]=\"button.overflowOptions.icon\"\n [iconClass]=\"button.overflowOptions.iconClass\"\n [imageUrl]=\"button.overflowOptions.imageUrl\"\n (click)=\"button.click.emit($event); onButtonClick($event)\"\n (selectedChange)=\"selectedChangeHandler($event, button)\"\n >\n {{ button.overflowOptions.text }}\n </span>\n </kendo-buttongroup>\n </ng-template>\n "
|
|
157
160
|
}),
|
|
158
161
|
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
159
162
|
], ToolBarButtonGroupComponent);
|
|
@@ -10,7 +10,8 @@ import { Component, Input, Output, EventEmitter, ViewChildren, QueryList } from
|
|
|
10
10
|
var ToolBarButtonListComponent = /** @class */ (function () {
|
|
11
11
|
function ToolBarButtonListComponent() {
|
|
12
12
|
this.disabled = false;
|
|
13
|
-
this.
|
|
13
|
+
this.fillMode = 'solid';
|
|
14
|
+
this.themeColor = 'base';
|
|
14
15
|
this.itemClick = new EventEmitter();
|
|
15
16
|
}
|
|
16
17
|
ToolBarButtonListComponent.prototype.getText = function (dataItem) {
|
|
@@ -41,7 +42,11 @@ var ToolBarButtonListComponent = /** @class */ (function () {
|
|
|
41
42
|
tslib_1.__decorate([
|
|
42
43
|
Input(),
|
|
43
44
|
tslib_1.__metadata("design:type", String)
|
|
44
|
-
], ToolBarButtonListComponent.prototype, "
|
|
45
|
+
], ToolBarButtonListComponent.prototype, "fillMode", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
Input(),
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
|
+
], ToolBarButtonListComponent.prototype, "themeColor", void 0);
|
|
45
50
|
tslib_1.__decorate([
|
|
46
51
|
Output(),
|
|
47
52
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -53,7 +58,7 @@ var ToolBarButtonListComponent = /** @class */ (function () {
|
|
|
53
58
|
ToolBarButtonListComponent = tslib_1.__decorate([
|
|
54
59
|
Component({
|
|
55
60
|
selector: 'kendo-toolbar-buttonlist',
|
|
56
|
-
template: "\n <button\n #button\n type=\"button\"\n tabindex=\"-1\"\n kendoButton\n style=\"padding-left: 16px\"\n class=\"k-overflow-button\"\n *ngFor=\"let item of data; let i = index\"\n [disabled]=\"disabled || item.disabled\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [
|
|
61
|
+
template: "\n <button\n #button\n type=\"button\"\n tabindex=\"-1\"\n kendoButton\n style=\"padding-left: 16px\"\n class=\"k-overflow-button\"\n *ngFor=\"let item of data; let i = index\"\n [disabled]=\"disabled || item.disabled\"\n [icon]=\"item.icon\"\n [iconClass]=\"item.iconClass\"\n [imageUrl]=\"item.imageUrl\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n (click)=\"onClick(item, i)\"\n >\n {{ getText(item) }}\n </button>\n "
|
|
57
62
|
})
|
|
58
63
|
], ToolBarButtonListComponent);
|
|
59
64
|
return ToolBarButtonListComponent;
|
|
@@ -25,18 +25,36 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
25
25
|
*/
|
|
26
26
|
_this.showIcon = 'both';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
28
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
30
29
|
*
|
|
31
30
|
* The available values are:
|
|
31
|
+
* * `solid` (default)
|
|
32
32
|
* * `flat`
|
|
33
33
|
* * `outline`
|
|
34
|
+
* * `link`
|
|
35
|
+
* * `null`
|
|
34
36
|
*/
|
|
35
|
-
_this.
|
|
37
|
+
_this.fillMode = 'solid';
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
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).
|
|
38
56
|
*/
|
|
39
|
-
_this.
|
|
57
|
+
_this.themeColor = 'base';
|
|
40
58
|
/**
|
|
41
59
|
* Fires each time the user clicks a DropDownButton item.
|
|
42
60
|
* The event data contains the data item that is bound to the clicked list item.
|
|
@@ -133,6 +151,28 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
133
151
|
enumerable: true,
|
|
134
152
|
configurable: true
|
|
135
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
|
+
});
|
|
136
176
|
Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "data", {
|
|
137
177
|
get: function () {
|
|
138
178
|
if (!this._data) {
|
|
@@ -242,6 +282,24 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
242
282
|
tslib_1.__metadata("design:type", Object),
|
|
243
283
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
244
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);
|
|
245
303
|
tslib_1.__decorate([
|
|
246
304
|
Input(),
|
|
247
305
|
tslib_1.__metadata("design:type", String)
|
|
@@ -254,19 +312,11 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
254
312
|
Input(),
|
|
255
313
|
tslib_1.__metadata("design:type", Boolean)
|
|
256
314
|
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
257
|
-
tslib_1.__decorate([
|
|
258
|
-
Input(),
|
|
259
|
-
tslib_1.__metadata("design:type", String)
|
|
260
|
-
], ToolBarDropDownButtonComponent.prototype, "look", void 0);
|
|
261
315
|
tslib_1.__decorate([
|
|
262
316
|
Input(),
|
|
263
317
|
tslib_1.__metadata("design:type", Array),
|
|
264
318
|
tslib_1.__metadata("design:paramtypes", [Array])
|
|
265
319
|
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
266
|
-
tslib_1.__decorate([
|
|
267
|
-
Input(),
|
|
268
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
269
|
-
], ToolBarDropDownButtonComponent.prototype, "primary", void 0);
|
|
270
320
|
tslib_1.__decorate([
|
|
271
321
|
Output(),
|
|
272
322
|
tslib_1.__metadata("design:type", EventEmitter)
|
|
@@ -309,7 +359,7 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
|
|
|
309
359
|
// tslint:disable-next-line:no-forward-ref
|
|
310
360
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarDropDownButtonComponent_1; }) }],
|
|
311
361
|
selector: 'kendo-toolbar-dropdownbutton',
|
|
312
|
-
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 [
|
|
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 "
|
|
313
363
|
}),
|
|
314
364
|
tslib_1.__metadata("design:paramtypes", [])
|
|
315
365
|
], ToolBarDropDownButtonComponent);
|
|
@@ -25,15 +25,35 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
|
|
|
25
25
|
*/
|
|
26
26
|
_this.showIcon = 'both';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
29
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
28
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
30
29
|
*
|
|
31
30
|
* The available values are:
|
|
32
|
-
* * `default
|
|
31
|
+
* * `solid` (default)
|
|
33
32
|
* * `flat`
|
|
34
33
|
* * `outline`
|
|
34
|
+
* * `link`
|
|
35
|
+
* * `null`
|
|
35
36
|
*/
|
|
36
|
-
_this.
|
|
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
|
+
*
|
|
42
|
+
* The possible values are:
|
|
43
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
44
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
45
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
46
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
47
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
48
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
49
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
50
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
51
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
52
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
53
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
54
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
55
|
+
*/
|
|
56
|
+
_this.themeColor = 'base';
|
|
37
57
|
/**
|
|
38
58
|
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
|
|
39
59
|
* be rendered for the button which opens the popup.
|
|
@@ -146,6 +166,18 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
|
|
|
146
166
|
enumerable: true,
|
|
147
167
|
configurable: true
|
|
148
168
|
});
|
|
169
|
+
Object.defineProperty(ToolBarSplitButtonComponent.prototype, "look", {
|
|
170
|
+
/**
|
|
171
|
+
* @hidden
|
|
172
|
+
*/
|
|
173
|
+
set: function (look) {
|
|
174
|
+
if (look) {
|
|
175
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
enumerable: true,
|
|
179
|
+
configurable: true
|
|
180
|
+
});
|
|
149
181
|
Object.defineProperty(ToolBarSplitButtonComponent.prototype, "data", {
|
|
150
182
|
get: function () {
|
|
151
183
|
if (!this._data) {
|
|
@@ -258,15 +290,24 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
|
|
|
258
290
|
Input(),
|
|
259
291
|
tslib_1.__metadata("design:type", Boolean)
|
|
260
292
|
], ToolBarSplitButtonComponent.prototype, "disabled", void 0);
|
|
261
|
-
tslib_1.__decorate([
|
|
262
|
-
Input(),
|
|
263
|
-
tslib_1.__metadata("design:type", String)
|
|
264
|
-
], ToolBarSplitButtonComponent.prototype, "look", void 0);
|
|
265
293
|
tslib_1.__decorate([
|
|
266
294
|
Input(),
|
|
267
295
|
tslib_1.__metadata("design:type", Object),
|
|
268
296
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
269
297
|
], ToolBarSplitButtonComponent.prototype, "popupSettings", null);
|
|
298
|
+
tslib_1.__decorate([
|
|
299
|
+
Input(),
|
|
300
|
+
tslib_1.__metadata("design:type", String)
|
|
301
|
+
], ToolBarSplitButtonComponent.prototype, "fillMode", void 0);
|
|
302
|
+
tslib_1.__decorate([
|
|
303
|
+
Input(),
|
|
304
|
+
tslib_1.__metadata("design:type", String)
|
|
305
|
+
], ToolBarSplitButtonComponent.prototype, "themeColor", void 0);
|
|
306
|
+
tslib_1.__decorate([
|
|
307
|
+
Input(),
|
|
308
|
+
tslib_1.__metadata("design:type", String),
|
|
309
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
310
|
+
], ToolBarSplitButtonComponent.prototype, "look", null);
|
|
270
311
|
tslib_1.__decorate([
|
|
271
312
|
Input(),
|
|
272
313
|
tslib_1.__metadata("design:type", String)
|
|
@@ -330,7 +371,7 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
|
|
|
330
371
|
// tslint:disable-next-line:no-forward-ref
|
|
331
372
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(function () { return ToolBarSplitButtonComponent_1; }) }],
|
|
332
373
|
selector: 'kendo-toolbar-splitbutton',
|
|
333
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]=\"data\"\n [text]=\"toolbarOptions.text\"\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n [buttonClass]=\"buttonClass\"\n [arrowButtonClass]=\"arrowButtonClass\"\n [arrowButtonIcon]=\"arrowButtonIcon\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n [textField]=\"textField\"\n [popupSettings]=\"popupSettings\"\n [
|
|
374
|
+
template: "\n <ng-template #toolbarTemplate>\n <kendo-splitbutton\n #toolbarSplitButton\n [data]=\"data\"\n [text]=\"toolbarOptions.text\"\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n [buttonClass]=\"buttonClass\"\n [arrowButtonClass]=\"arrowButtonClass\"\n [arrowButtonIcon]=\"arrowButtonIcon\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n [textField]=\"textField\"\n [popupSettings]=\"popupSettings\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n (buttonClick)=\"buttonClick.emit($event)\"\n (open)=\"open.emit($event)\"\n (close)=\"close.emit($event)\"\n (itemClick)=\"itemClick.emit($event)\"\n >\n </kendo-splitbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #overflowSplitButton\n type=\"button\"\n tabindex=\"-1\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n kendoButton\n class=\"k-overflow-button\"\n [disabled]=\"disabled\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n [ngClass]=\"buttonClass\"\n (click)=\"buttonClick.emit($event)\"\n (click)=\"onMainButtonClick($event)\"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowSplitButtonButtonList\n [data]=\"data\"\n [disabled]=\"disabled\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n [textField]=\"textField\"\n (itemClick)=\"itemClick.emit($event)\"\n (click)=\"onButtonListClick($event)\"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n "
|
|
334
375
|
}),
|
|
335
376
|
tslib_1.__metadata("design:paramtypes", [])
|
|
336
377
|
], ToolBarSplitButtonComponent);
|