@progress/kendo-angular-toolbar 4.1.2 → 5.0.0

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 (33) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-toolbar.js +2 -2
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/package-metadata.js +1 -1
  7. package/dist/es/tools/toolbar-button.component.js +47 -14
  8. package/dist/es/tools/toolbar-buttongroup.component.js +16 -13
  9. package/dist/es/tools/toolbar-buttonlist.component.js +8 -3
  10. package/dist/es/tools/toolbar-dropdownbutton.component.js +64 -14
  11. package/dist/es/tools/toolbar-splitbutton.component.js +50 -9
  12. package/dist/es2015/index.metadata.json +1 -1
  13. package/dist/es2015/package-metadata.js +1 -1
  14. package/dist/es2015/tools/toolbar-button.component.d.ts +31 -11
  15. package/dist/es2015/tools/toolbar-button.component.js +46 -17
  16. package/dist/es2015/tools/toolbar-buttongroup.component.d.ts +3 -9
  17. package/dist/es2015/tools/toolbar-buttongroup.component.js +15 -16
  18. package/dist/es2015/tools/toolbar-buttonlist.component.d.ts +3 -2
  19. package/dist/es2015/tools/toolbar-buttonlist.component.js +9 -3
  20. package/dist/es2015/tools/toolbar-dropdownbutton.component.d.ts +40 -14
  21. package/dist/es2015/tools/toolbar-dropdownbutton.component.js +57 -15
  22. package/dist/es2015/tools/toolbar-splitbutton.component.d.ts +34 -10
  23. package/dist/es2015/tools/toolbar-splitbutton.component.js +51 -11
  24. package/dist/fesm2015/index.js +179 -63
  25. package/dist/fesm5/index.js +186 -54
  26. package/dist/npm/package-metadata.js +1 -1
  27. package/dist/npm/tools/toolbar-button.component.js +47 -14
  28. package/dist/npm/tools/toolbar-buttongroup.component.js +16 -13
  29. package/dist/npm/tools/toolbar-buttonlist.component.js +8 -3
  30. package/dist/npm/tools/toolbar-dropdownbutton.component.js +64 -14
  31. package/dist/npm/tools/toolbar-splitbutton.component.js +50 -9
  32. package/dist/systemjs/kendo-angular-toolbar.js +1 -1
  33. package/package.json +13 -13
@@ -23,22 +23,24 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
23
23
  * By default, the selection mode of the ButtonGroup is set to `multiple`.
24
24
  */
25
25
  _this.selection = 'multiple';
26
- /**
27
- * Changes the visual appearance by using alternative styling options.
28
- * Setting the `look` property on individual buttons inside the ToolBarButtonGroupComponent is not supported.
29
- *
30
- * The available values are:
31
- * * `bare`
32
- * * `flat`
33
- * * `outline`
34
- */
35
- _this.look = 'default';
36
26
  _this.focusedIndex = -1;
37
27
  _this.getNextKey = util_1.getNextKey(_this.localization.rtl);
38
28
  _this.getPrevKey = util_1.getPrevKey(_this.localization.rtl);
39
29
  return _this;
40
30
  }
41
31
  ToolBarButtonGroupComponent_1 = ToolBarButtonGroupComponent;
32
+ Object.defineProperty(ToolBarButtonGroupComponent.prototype, "look", {
33
+ /**
34
+ * @hidden
35
+ */
36
+ set: function (look) {
37
+ if (look) {
38
+ this.buttonComponents.forEach(function (b) { return b.fillMode = look === 'default' ? 'solid' : look; });
39
+ }
40
+ },
41
+ enumerable: true,
42
+ configurable: true
43
+ });
42
44
  Object.defineProperty(ToolBarButtonGroupComponent.prototype, "buttonElements", {
43
45
  get: function () {
44
46
  return this.getButtonGroup()
@@ -127,8 +129,9 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
127
129
  ], ToolBarButtonGroupComponent.prototype, "width", void 0);
128
130
  tslib_1.__decorate([
129
131
  core_1.Input(),
130
- tslib_1.__metadata("design:type", String)
131
- ], ToolBarButtonGroupComponent.prototype, "look", void 0);
132
+ tslib_1.__metadata("design:type", String),
133
+ tslib_1.__metadata("design:paramtypes", [String])
134
+ ], ToolBarButtonGroupComponent.prototype, "look", null);
132
135
  tslib_1.__decorate([
133
136
  core_1.ViewChild('toolbarTemplate', { static: true }),
134
137
  tslib_1.__metadata("design:type", core_1.TemplateRef)
@@ -155,7 +158,7 @@ var ToolBarButtonGroupComponent = /** @class */ (function (_super) {
155
158
  // tslint:disable-next-line:no-forward-ref
156
159
  providers: [kendo_angular_l10n_1.LocalizationService, { provide: toolbar_tool_component_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return ToolBarButtonGroupComponent_1; }) }],
157
160
  selector: 'kendo-toolbar-buttongroup',
158
- template: "\n <ng-template #toolbarTemplate>\n <kendo-buttongroup\n #toolbarButtonGroup\n [tabIndex]=\"-1\"\n [selection]=\"selection\"\n [disabled]=\"disabled\"\n [look]=\"look\"\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 [primary]=\"button.primary\"\n [selected]=\"button.selected\"\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 [look]=\"look\"\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 [primary]=\"button.primary\"\n [selected]=\"button.selected\"\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 "
161
+ 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 "
159
162
  }),
160
163
  tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
161
164
  ], ToolBarButtonGroupComponent);
@@ -12,7 +12,8 @@ var core_1 = require("@angular/core");
12
12
  var ToolBarButtonListComponent = /** @class */ (function () {
13
13
  function ToolBarButtonListComponent() {
14
14
  this.disabled = false;
15
- this.look = 'default';
15
+ this.fillMode = 'solid';
16
+ this.themeColor = 'base';
16
17
  this.itemClick = new core_1.EventEmitter();
17
18
  }
18
19
  ToolBarButtonListComponent.prototype.getText = function (dataItem) {
@@ -43,7 +44,11 @@ var ToolBarButtonListComponent = /** @class */ (function () {
43
44
  tslib_1.__decorate([
44
45
  core_1.Input(),
45
46
  tslib_1.__metadata("design:type", String)
46
- ], ToolBarButtonListComponent.prototype, "look", void 0);
47
+ ], ToolBarButtonListComponent.prototype, "fillMode", void 0);
48
+ tslib_1.__decorate([
49
+ core_1.Input(),
50
+ tslib_1.__metadata("design:type", String)
51
+ ], ToolBarButtonListComponent.prototype, "themeColor", void 0);
47
52
  tslib_1.__decorate([
48
53
  core_1.Output(),
49
54
  tslib_1.__metadata("design:type", core_1.EventEmitter)
@@ -55,7 +60,7 @@ var ToolBarButtonListComponent = /** @class */ (function () {
55
60
  ToolBarButtonListComponent = tslib_1.__decorate([
56
61
  core_1.Component({
57
62
  selector: 'kendo-toolbar-buttonlist',
58
- 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 [look]=\"look\"\n (click)=\"onClick(item, i)\"\n >\n {{ getText(item) }}\n </button>\n "
63
+ 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 "
59
64
  })
60
65
  ], ToolBarButtonListComponent);
61
66
  return ToolBarButtonListComponent;
@@ -27,18 +27,36 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
27
27
  */
28
28
  _this.showIcon = 'both';
29
29
  /**
30
- * Changes the visual appearance by using alternative styling options.
31
- * ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
30
+ * The fillMode property specifies the background and border styles of the Button.
32
31
  *
33
32
  * The available values are:
33
+ * * `solid` (default)
34
34
  * * `flat`
35
35
  * * `outline`
36
+ * * `link`
37
+ * * `null`
36
38
  */
37
- _this.look = 'default';
39
+ _this.fillMode = 'solid';
38
40
  /**
39
- * Adds visual weight to the default button and makes it primary.
41
+ * The Button allows you to specify predefined theme colors.
42
+ * The theme color will be applied as a background and border color while also amending the text color accordingly
43
+ * ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
44
+ *
45
+ * The possible values are:
46
+ * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
47
+ * * `primary` &mdash;Applies coloring based on the `primary` theme color.
48
+ * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
49
+ * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
50
+ * * `info`&mdash;Applies coloring based on the `info` theme color.
51
+ * * `success`&mdash; Applies coloring based on the `success` theme color.
52
+ * * `warning`&mdash; Applies coloring based on the `warning` theme color.
53
+ * * `error`&mdash; Applies coloring based on the `error` theme color.
54
+ * * `dark`&mdash; Applies coloring based on the `dark` theme color.
55
+ * * `light`&mdash; Applies coloring based on the `light` theme color.
56
+ * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
57
+ * * `null` &mdash;Removes the default CSS class (no class would be rendered).
40
58
  */
41
- _this.primary = false;
59
+ _this.themeColor = 'base';
42
60
  /**
43
61
  * Fires each time the user clicks a DropDownButton item.
44
62
  * The event data contains the data item that is bound to the clicked list item.
@@ -135,6 +153,28 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
135
153
  enumerable: true,
136
154
  configurable: true
137
155
  });
156
+ Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "look", {
157
+ /**
158
+ * @hidden
159
+ */
160
+ set: function (look) {
161
+ if (look) {
162
+ this.fillMode = look === 'default' ? 'solid' : look;
163
+ }
164
+ },
165
+ enumerable: true,
166
+ configurable: true
167
+ });
168
+ Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "primary", {
169
+ /**
170
+ * @hidden
171
+ */
172
+ set: function (primary) {
173
+ this.themeColor = primary ? 'primary' : 'base';
174
+ },
175
+ enumerable: true,
176
+ configurable: true
177
+ });
138
178
  Object.defineProperty(ToolBarDropDownButtonComponent.prototype, "data", {
139
179
  get: function () {
140
180
  if (!this._data) {
@@ -244,6 +284,24 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
244
284
  tslib_1.__metadata("design:type", Object),
245
285
  tslib_1.__metadata("design:paramtypes", [Object])
246
286
  ], ToolBarDropDownButtonComponent.prototype, "popupSettings", null);
287
+ tslib_1.__decorate([
288
+ core_1.Input(),
289
+ tslib_1.__metadata("design:type", String),
290
+ tslib_1.__metadata("design:paramtypes", [String])
291
+ ], ToolBarDropDownButtonComponent.prototype, "look", null);
292
+ tslib_1.__decorate([
293
+ core_1.Input(),
294
+ tslib_1.__metadata("design:type", Boolean),
295
+ tslib_1.__metadata("design:paramtypes", [Boolean])
296
+ ], ToolBarDropDownButtonComponent.prototype, "primary", null);
297
+ tslib_1.__decorate([
298
+ core_1.Input(),
299
+ tslib_1.__metadata("design:type", String)
300
+ ], ToolBarDropDownButtonComponent.prototype, "fillMode", void 0);
301
+ tslib_1.__decorate([
302
+ core_1.Input(),
303
+ tslib_1.__metadata("design:type", String)
304
+ ], ToolBarDropDownButtonComponent.prototype, "themeColor", void 0);
247
305
  tslib_1.__decorate([
248
306
  core_1.Input(),
249
307
  tslib_1.__metadata("design:type", String)
@@ -256,19 +314,11 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
256
314
  core_1.Input(),
257
315
  tslib_1.__metadata("design:type", Boolean)
258
316
  ], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
259
- tslib_1.__decorate([
260
- core_1.Input(),
261
- tslib_1.__metadata("design:type", String)
262
- ], ToolBarDropDownButtonComponent.prototype, "look", void 0);
263
317
  tslib_1.__decorate([
264
318
  core_1.Input(),
265
319
  tslib_1.__metadata("design:type", Array),
266
320
  tslib_1.__metadata("design:paramtypes", [Array])
267
321
  ], ToolBarDropDownButtonComponent.prototype, "data", null);
268
- tslib_1.__decorate([
269
- core_1.Input(),
270
- tslib_1.__metadata("design:type", Boolean)
271
- ], ToolBarDropDownButtonComponent.prototype, "primary", void 0);
272
322
  tslib_1.__decorate([
273
323
  core_1.Output(),
274
324
  tslib_1.__metadata("design:type", core_1.EventEmitter)
@@ -311,7 +361,7 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
311
361
  // tslint:disable-next-line:no-forward-ref
312
362
  providers: [{ provide: toolbar_tool_component_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return ToolBarDropDownButtonComponent_1; }) }],
313
363
  selector: 'kendo-toolbar-dropdownbutton',
314
- 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 [look]=\"look\"\n [primary]=\"primary\"\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 "
364
+ template: "\n <ng-template #toolbarTemplate>\n <kendo-dropdownbutton\n #toolbarDropDownButton\n [icon]=\"toolbarOptions.icon\"\n [iconClass]=\"toolbarOptions.iconClass\"\n [imageUrl]=\"toolbarOptions.imageUrl\"\n [buttonClass]=\"buttonClass\"\n [disabled]=\"disabled\"\n [tabIndex]=\"-1\"\n [data]=\"data\"\n [textField]=\"textField\"\n [popupSettings]=\"popupSettings\"\n [fillMode]=\"fillMode\"\n [themeColor]=\"fillMode ? themeColor : null\"\n (open)=\"open.emit($event)\"\n (close)=\"close.emit($event)\"\n (itemClick)=\"itemClick.emit($event)\"\n >\n {{ toolbarOptions.text }}\n </kendo-dropdownbutton>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n type=\"button\"\n tabindex=\"-1\"\n kendoButton\n class=\"k-overflow-button\"\n [disabled]=\"true\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n [ngClass]=\"buttonClass\"\n (click)=\"itemClick.emit($event)\"\n >\n {{ overflowOptions.text }}\n </button>\n <kendo-toolbar-buttonlist\n #overflowDropDownButtonButtonList\n [data]=\"data\"\n [disabled]=\"disabled\"\n [textField]=\"textField\"\n (itemClick)=\"itemClick.emit($event)\"\n (click)=\"onButtonListClick($event)\"\n >\n </kendo-toolbar-buttonlist>\n </ng-template>\n "
315
365
  }),
316
366
  tslib_1.__metadata("design:paramtypes", [])
317
367
  ], ToolBarDropDownButtonComponent);
@@ -27,15 +27,35 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
27
27
  */
28
28
  _this.showIcon = 'both';
29
29
  /**
30
- * Changes the visual appearance by using alternative styling options
31
- * ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
30
+ * The fillMode property specifies the background and border styles of the Button.
32
31
  *
33
32
  * The available values are:
34
- * * `default`
33
+ * * `solid` (default)
35
34
  * * `flat`
36
35
  * * `outline`
36
+ * * `link`
37
+ * * `null`
37
38
  */
38
- _this.look = 'default';
39
+ _this.fillMode = 'solid';
40
+ /**
41
+ * The Button allows you to specify predefined theme colors.
42
+ * The theme color will be applied as a background and border color while also amending the text color accordingly.
43
+ *
44
+ * The possible values are:
45
+ * * `base` &mdash;Applies coloring based on the `base` theme color. (default)
46
+ * * `primary` &mdash;Applies coloring based on the `primary` theme color.
47
+ * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
48
+ * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
49
+ * * `info`&mdash;Applies coloring based on the `info` theme color.
50
+ * * `success`&mdash; Applies coloring based on the `success` theme color.
51
+ * * `warning`&mdash; Applies coloring based on the `warning` theme color.
52
+ * * `error`&mdash; Applies coloring based on the `error` theme color.
53
+ * * `dark`&mdash; Applies coloring based on the `dark` theme color.
54
+ * * `light`&mdash; Applies coloring based on the `light` theme color.
55
+ * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
56
+ * * `null` &mdash;Removes the default CSS class (no class would be rendered).
57
+ */
58
+ _this.themeColor = 'base';
39
59
  /**
40
60
  * Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
41
61
  * be rendered for the button which opens the popup.
@@ -148,6 +168,18 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
148
168
  enumerable: true,
149
169
  configurable: true
150
170
  });
171
+ Object.defineProperty(ToolBarSplitButtonComponent.prototype, "look", {
172
+ /**
173
+ * @hidden
174
+ */
175
+ set: function (look) {
176
+ if (look) {
177
+ this.fillMode = look === 'default' ? 'solid' : look;
178
+ }
179
+ },
180
+ enumerable: true,
181
+ configurable: true
182
+ });
151
183
  Object.defineProperty(ToolBarSplitButtonComponent.prototype, "data", {
152
184
  get: function () {
153
185
  if (!this._data) {
@@ -260,15 +292,24 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
260
292
  core_1.Input(),
261
293
  tslib_1.__metadata("design:type", Boolean)
262
294
  ], ToolBarSplitButtonComponent.prototype, "disabled", void 0);
263
- tslib_1.__decorate([
264
- core_1.Input(),
265
- tslib_1.__metadata("design:type", String)
266
- ], ToolBarSplitButtonComponent.prototype, "look", void 0);
267
295
  tslib_1.__decorate([
268
296
  core_1.Input(),
269
297
  tslib_1.__metadata("design:type", Object),
270
298
  tslib_1.__metadata("design:paramtypes", [Object])
271
299
  ], ToolBarSplitButtonComponent.prototype, "popupSettings", null);
300
+ tslib_1.__decorate([
301
+ core_1.Input(),
302
+ tslib_1.__metadata("design:type", String)
303
+ ], ToolBarSplitButtonComponent.prototype, "fillMode", void 0);
304
+ tslib_1.__decorate([
305
+ core_1.Input(),
306
+ tslib_1.__metadata("design:type", String)
307
+ ], ToolBarSplitButtonComponent.prototype, "themeColor", void 0);
308
+ tslib_1.__decorate([
309
+ core_1.Input(),
310
+ tslib_1.__metadata("design:type", String),
311
+ tslib_1.__metadata("design:paramtypes", [String])
312
+ ], ToolBarSplitButtonComponent.prototype, "look", null);
272
313
  tslib_1.__decorate([
273
314
  core_1.Input(),
274
315
  tslib_1.__metadata("design:type", String)
@@ -332,7 +373,7 @@ var ToolBarSplitButtonComponent = /** @class */ (function (_super) {
332
373
  // tslint:disable-next-line:no-forward-ref
333
374
  providers: [{ provide: toolbar_tool_component_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return ToolBarSplitButtonComponent_1; }) }],
334
375
  selector: 'kendo-toolbar-splitbutton',
335
- 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 [look]=\"look\"\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 kendoButton\n class=\"k-overflow-button\"\n [disabled]=\"disabled\"\n [icon]=\"overflowOptions.icon\"\n [iconClass]=\"overflowOptions.iconClass\"\n [imageUrl]=\"overflowOptions.imageUrl\"\n [look]=\"look\"\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 [look]=\"look\"\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 "
376
+ 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 "
336
377
  }),
337
378
  tslib_1.__metadata("design:paramtypes", [])
338
379
  ], ToolBarSplitButtonComponent);