@progress/kendo-angular-toolbar 4.1.3 → 5.0.0-dev.202201190923

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 +10 -10
@@ -25,18 +25,36 @@ var ToolBarDropDownButtonComponent = /** @class */ (function (_super) {
25
25
  */
26
26
  _this.showIcon = 'both';
27
27
  /**
28
- * Changes the visual appearance by using alternative styling options.
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.look = 'default';
37
+ _this.fillMode = 'solid';
36
38
  /**
37
- * Adds visual weight to the default button and makes it primary.
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.primary = false;
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 [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 "
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
- * Changes the visual appearance by using alternative styling options
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.look = 'default';
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` &mdash;Applies coloring based on the `base` theme color. (default)
44
+ * * `primary` &mdash;Applies coloring based on the `primary` theme color.
45
+ * * `secondary`&mdash;Applies coloring based on the `secondary` theme color.
46
+ * * `tertiary`&mdash; Applies coloring based on the `tertiary` theme color.
47
+ * * `info`&mdash;Applies coloring based on the `info` theme color.
48
+ * * `success`&mdash; Applies coloring based on the `success` theme color.
49
+ * * `warning`&mdash; Applies coloring based on the `warning` theme color.
50
+ * * `error`&mdash; Applies coloring based on the `error` theme color.
51
+ * * `dark`&mdash; Applies coloring based on the `dark` theme color.
52
+ * * `light`&mdash; Applies coloring based on the `light` theme color.
53
+ * * `inverse`&mdash; Applies coloring based on the `inverse` theme color.
54
+ * * `null` &mdash;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 [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 "
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);