@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
package/dist/fesm2015/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const packageMetadata = {
|
|
|
20
20
|
name: '@progress/kendo-angular-toolbar',
|
|
21
21
|
productName: 'Kendo UI for Angular',
|
|
22
22
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
23
|
-
publishDate:
|
|
23
|
+
publishDate: 1645799035,
|
|
24
24
|
version: '',
|
|
25
25
|
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'
|
|
26
26
|
};
|
|
@@ -1021,24 +1021,40 @@ let ToolBarButtonComponent = ToolBarButtonComponent_1 = class ToolBarButtonCompo
|
|
|
1021
1021
|
*/
|
|
1022
1022
|
this.toggleable = false;
|
|
1023
1023
|
/**
|
|
1024
|
-
*
|
|
1025
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
1024
|
+
* Sets the selected state of the Button.
|
|
1026
1025
|
*/
|
|
1027
|
-
this.
|
|
1026
|
+
this.selected = false;
|
|
1028
1027
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-buttons)).
|
|
1028
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
1031
1029
|
*
|
|
1032
1030
|
* The available values are:
|
|
1033
|
-
* * `
|
|
1031
|
+
* * `solid` (default)
|
|
1034
1032
|
* * `flat`
|
|
1035
1033
|
* * `outline`
|
|
1034
|
+
* * `link`
|
|
1035
|
+
* * `null`
|
|
1036
1036
|
*/
|
|
1037
|
-
this.
|
|
1037
|
+
this.fillMode = 'solid';
|
|
1038
1038
|
/**
|
|
1039
|
-
*
|
|
1039
|
+
* The Button allows you to specify predefined theme colors.
|
|
1040
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
1041
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
1042
|
+
*
|
|
1043
|
+
* The possible values are:
|
|
1044
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
1045
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
1046
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
1047
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
1048
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
1049
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
1050
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
1051
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
1052
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
1053
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
1054
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
1055
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
1040
1056
|
*/
|
|
1041
|
-
this.
|
|
1057
|
+
this.themeColor = 'base';
|
|
1042
1058
|
/**
|
|
1043
1059
|
* Fires each time the Button is clicked.
|
|
1044
1060
|
*/
|
|
@@ -1072,6 +1088,14 @@ let ToolBarButtonComponent = ToolBarButtonComponent_1 = class ToolBarButtonCompo
|
|
|
1072
1088
|
this.toolbarOptions.text = getValueForLocation(text, this.showText, false);
|
|
1073
1089
|
this.overflowOptions.text = getValueForLocation(text, this.showText, true);
|
|
1074
1090
|
}
|
|
1091
|
+
/**
|
|
1092
|
+
* @hidden
|
|
1093
|
+
*/
|
|
1094
|
+
set look(look) {
|
|
1095
|
+
if (look) {
|
|
1096
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1075
1099
|
/**
|
|
1076
1100
|
* @hidden
|
|
1077
1101
|
*/
|
|
@@ -1172,6 +1196,11 @@ __decorate([
|
|
|
1172
1196
|
Input(),
|
|
1173
1197
|
__metadata("design:type", Boolean)
|
|
1174
1198
|
], ToolBarButtonComponent.prototype, "toggleable", void 0);
|
|
1199
|
+
__decorate([
|
|
1200
|
+
Input(),
|
|
1201
|
+
__metadata("design:type", String),
|
|
1202
|
+
__metadata("design:paramtypes", [String])
|
|
1203
|
+
], ToolBarButtonComponent.prototype, "look", null);
|
|
1175
1204
|
__decorate([
|
|
1176
1205
|
Input(),
|
|
1177
1206
|
__metadata("design:type", Boolean),
|
|
@@ -1180,15 +1209,15 @@ __decorate([
|
|
|
1180
1209
|
__decorate([
|
|
1181
1210
|
Input(),
|
|
1182
1211
|
__metadata("design:type", Boolean)
|
|
1183
|
-
], ToolBarButtonComponent.prototype, "
|
|
1212
|
+
], ToolBarButtonComponent.prototype, "selected", void 0);
|
|
1184
1213
|
__decorate([
|
|
1185
1214
|
Input(),
|
|
1186
1215
|
__metadata("design:type", String)
|
|
1187
|
-
], ToolBarButtonComponent.prototype, "
|
|
1216
|
+
], ToolBarButtonComponent.prototype, "fillMode", void 0);
|
|
1188
1217
|
__decorate([
|
|
1189
1218
|
Input(),
|
|
1190
|
-
__metadata("design:type",
|
|
1191
|
-
], ToolBarButtonComponent.prototype, "
|
|
1219
|
+
__metadata("design:type", String)
|
|
1220
|
+
], ToolBarButtonComponent.prototype, "themeColor", void 0);
|
|
1192
1221
|
__decorate([
|
|
1193
1222
|
Input(),
|
|
1194
1223
|
__metadata("design:type", String),
|
|
@@ -1250,12 +1279,12 @@ ToolBarButtonComponent = ToolBarButtonComponent_1 = __decorate([
|
|
|
1250
1279
|
[attr.title]="title"
|
|
1251
1280
|
[disabled]="disabled"
|
|
1252
1281
|
[toggleable]="toggleable"
|
|
1253
|
-
[
|
|
1282
|
+
[fillMode]="fillMode"
|
|
1283
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1254
1284
|
[selected]="selected"
|
|
1255
1285
|
[icon]="toolbarOptions.icon"
|
|
1256
1286
|
[iconClass]="toolbarOptions.iconClass"
|
|
1257
1287
|
[imageUrl]="toolbarOptions.imageUrl"
|
|
1258
|
-
[look]="look"
|
|
1259
1288
|
(click)="click.emit($event)"
|
|
1260
1289
|
(pointerdown)="pointerdown.emit($event)"
|
|
1261
1290
|
(selectedChange)="selectedChange.emit($event)"
|
|
@@ -1276,12 +1305,12 @@ ToolBarButtonComponent = ToolBarButtonComponent_1 = __decorate([
|
|
|
1276
1305
|
[attr.title]="title"
|
|
1277
1306
|
[disabled]="disabled"
|
|
1278
1307
|
[toggleable]="toggleable"
|
|
1279
|
-
[
|
|
1308
|
+
[fillMode]="fillMode"
|
|
1309
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1280
1310
|
[selected]="selected"
|
|
1281
1311
|
[icon]="overflowOptions.icon"
|
|
1282
1312
|
[iconClass]="overflowOptions.iconClass"
|
|
1283
1313
|
[imageUrl]="overflowOptions.imageUrl"
|
|
1284
|
-
[look]="look"
|
|
1285
1314
|
(click)="click.emit($event)"
|
|
1286
1315
|
(selectedChange)="selectedChange.emit($event)"
|
|
1287
1316
|
>
|
|
@@ -1305,20 +1334,18 @@ let ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = class ToolBarB
|
|
|
1305
1334
|
* By default, the selection mode of the ButtonGroup is set to `multiple`.
|
|
1306
1335
|
*/
|
|
1307
1336
|
this.selection = 'multiple';
|
|
1308
|
-
/**
|
|
1309
|
-
* Changes the visual appearance by using alternative styling options.
|
|
1310
|
-
* Setting the `look` property on individual buttons inside the ToolBarButtonGroupComponent is not supported.
|
|
1311
|
-
*
|
|
1312
|
-
* The available values are:
|
|
1313
|
-
* * `bare`
|
|
1314
|
-
* * `flat`
|
|
1315
|
-
* * `outline`
|
|
1316
|
-
*/
|
|
1317
|
-
this.look = 'default';
|
|
1318
1337
|
this.focusedIndex = -1;
|
|
1319
1338
|
this.getNextKey = getNextKey(this.localization.rtl);
|
|
1320
1339
|
this.getPrevKey = getPrevKey(this.localization.rtl);
|
|
1321
1340
|
}
|
|
1341
|
+
/**
|
|
1342
|
+
* @hidden
|
|
1343
|
+
*/
|
|
1344
|
+
set look(look) {
|
|
1345
|
+
if (look) {
|
|
1346
|
+
this.buttonComponents.forEach(b => b.fillMode = look === 'default' ? 'solid' : look);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1322
1349
|
get buttonElements() {
|
|
1323
1350
|
return this.getButtonGroup()
|
|
1324
1351
|
.buttons.filter(b => !b.isDisabled)
|
|
@@ -1402,8 +1429,9 @@ __decorate([
|
|
|
1402
1429
|
], ToolBarButtonGroupComponent.prototype, "width", void 0);
|
|
1403
1430
|
__decorate([
|
|
1404
1431
|
Input(),
|
|
1405
|
-
__metadata("design:type", String)
|
|
1406
|
-
|
|
1432
|
+
__metadata("design:type", String),
|
|
1433
|
+
__metadata("design:paramtypes", [String])
|
|
1434
|
+
], ToolBarButtonGroupComponent.prototype, "look", null);
|
|
1407
1435
|
__decorate([
|
|
1408
1436
|
ViewChild('toolbarTemplate', { static: true }),
|
|
1409
1437
|
__metadata("design:type", TemplateRef)
|
|
@@ -1437,7 +1465,6 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = __decorate([
|
|
|
1437
1465
|
[tabIndex]="-1"
|
|
1438
1466
|
[selection]="selection"
|
|
1439
1467
|
[disabled]="disabled"
|
|
1440
|
-
[look]="look"
|
|
1441
1468
|
[width]="width"
|
|
1442
1469
|
(navigate)="onNavigate($event)"
|
|
1443
1470
|
(focus)="onFocus()"
|
|
@@ -1450,8 +1477,9 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = __decorate([
|
|
|
1450
1477
|
[attr.title]="button.title"
|
|
1451
1478
|
[disabled]="button.disabled"
|
|
1452
1479
|
[togglable]="button.togglable"
|
|
1453
|
-
[primary]="button.primary"
|
|
1454
1480
|
[selected]="button.selected"
|
|
1481
|
+
[fillMode]="button.fillMode"
|
|
1482
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
1455
1483
|
[icon]="button.toolbarOptions.icon"
|
|
1456
1484
|
[iconClass]="button.toolbarOptions.iconClass"
|
|
1457
1485
|
[imageUrl]="button.toolbarOptions.imageUrl"
|
|
@@ -1470,7 +1498,6 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = __decorate([
|
|
|
1470
1498
|
[tabIndex]="-1"
|
|
1471
1499
|
[selection]="selection"
|
|
1472
1500
|
[disabled]="disabled"
|
|
1473
|
-
[look]="look"
|
|
1474
1501
|
[width]="width"
|
|
1475
1502
|
>
|
|
1476
1503
|
<span
|
|
@@ -1482,8 +1509,9 @@ ToolBarButtonGroupComponent = ToolBarButtonGroupComponent_1 = __decorate([
|
|
|
1482
1509
|
[attr.title]="button.title"
|
|
1483
1510
|
[disabled]="button.disabled"
|
|
1484
1511
|
[togglable]="button.togglable"
|
|
1485
|
-
[primary]="button.primary"
|
|
1486
1512
|
[selected]="button.selected"
|
|
1513
|
+
[fillMode]="button.fillMode"
|
|
1514
|
+
[themeColor]="button.fillMode ? button.themeColor : null"
|
|
1487
1515
|
[icon]="button.overflowOptions.icon"
|
|
1488
1516
|
[iconClass]="button.overflowOptions.iconClass"
|
|
1489
1517
|
[imageUrl]="button.overflowOptions.imageUrl"
|
|
@@ -1508,7 +1536,8 @@ let ToolBarButtonListComponent = class ToolBarButtonListComponent {
|
|
|
1508
1536
|
*/
|
|
1509
1537
|
constructor() {
|
|
1510
1538
|
this.disabled = false;
|
|
1511
|
-
this.
|
|
1539
|
+
this.fillMode = 'solid';
|
|
1540
|
+
this.themeColor = 'base';
|
|
1512
1541
|
this.itemClick = new EventEmitter();
|
|
1513
1542
|
}
|
|
1514
1543
|
getText(dataItem) {
|
|
@@ -1540,7 +1569,11 @@ __decorate([
|
|
|
1540
1569
|
__decorate([
|
|
1541
1570
|
Input(),
|
|
1542
1571
|
__metadata("design:type", String)
|
|
1543
|
-
], ToolBarButtonListComponent.prototype, "
|
|
1572
|
+
], ToolBarButtonListComponent.prototype, "fillMode", void 0);
|
|
1573
|
+
__decorate([
|
|
1574
|
+
Input(),
|
|
1575
|
+
__metadata("design:type", String)
|
|
1576
|
+
], ToolBarButtonListComponent.prototype, "themeColor", void 0);
|
|
1544
1577
|
__decorate([
|
|
1545
1578
|
Output(),
|
|
1546
1579
|
__metadata("design:type", EventEmitter)
|
|
@@ -1565,7 +1598,8 @@ ToolBarButtonListComponent = __decorate([
|
|
|
1565
1598
|
[icon]="item.icon"
|
|
1566
1599
|
[iconClass]="item.iconClass"
|
|
1567
1600
|
[imageUrl]="item.imageUrl"
|
|
1568
|
-
[
|
|
1601
|
+
[fillMode]="fillMode"
|
|
1602
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1569
1603
|
(click)="onClick(item, i)"
|
|
1570
1604
|
>
|
|
1571
1605
|
{{ getText(item) }}
|
|
@@ -1591,18 +1625,36 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
1591
1625
|
*/
|
|
1592
1626
|
this.showIcon = 'both';
|
|
1593
1627
|
/**
|
|
1594
|
-
*
|
|
1595
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
1628
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
1596
1629
|
*
|
|
1597
1630
|
* The available values are:
|
|
1631
|
+
* * `solid` (default)
|
|
1598
1632
|
* * `flat`
|
|
1599
1633
|
* * `outline`
|
|
1634
|
+
* * `link`
|
|
1635
|
+
* * `null`
|
|
1600
1636
|
*/
|
|
1601
|
-
this.
|
|
1637
|
+
this.fillMode = 'solid';
|
|
1602
1638
|
/**
|
|
1603
|
-
*
|
|
1639
|
+
* The Button allows you to specify predefined theme colors.
|
|
1640
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly
|
|
1641
|
+
* ([see example]({% slug api_buttons_dropdownbuttoncomponent %}#toc-themeColor)).
|
|
1642
|
+
*
|
|
1643
|
+
* The possible values are:
|
|
1644
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
1645
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
1646
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
1647
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
1648
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
1649
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
1650
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
1651
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
1652
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
1653
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
1654
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
1655
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
1604
1656
|
*/
|
|
1605
|
-
this.
|
|
1657
|
+
this.themeColor = 'base';
|
|
1606
1658
|
/**
|
|
1607
1659
|
* Fires each time the user clicks a DropDownButton item.
|
|
1608
1660
|
* The event data contains the data item that is bound to the clicked list item.
|
|
@@ -1677,6 +1729,20 @@ let ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = class To
|
|
|
1677
1729
|
get popupSettings() {
|
|
1678
1730
|
return this._popupSettings;
|
|
1679
1731
|
}
|
|
1732
|
+
/**
|
|
1733
|
+
* @hidden
|
|
1734
|
+
*/
|
|
1735
|
+
set look(look) {
|
|
1736
|
+
if (look) {
|
|
1737
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* @hidden
|
|
1742
|
+
*/
|
|
1743
|
+
set primary(primary) {
|
|
1744
|
+
this.themeColor = primary ? 'primary' : 'base';
|
|
1745
|
+
}
|
|
1680
1746
|
/**
|
|
1681
1747
|
* Sets the data of the DropDownButton
|
|
1682
1748
|
* ([see example]({% slug controltypes_toolbar %}#toc-dropdownbuttons)).
|
|
@@ -1777,6 +1843,24 @@ __decorate([
|
|
|
1777
1843
|
__metadata("design:type", Object),
|
|
1778
1844
|
__metadata("design:paramtypes", [Object])
|
|
1779
1845
|
], ToolBarDropDownButtonComponent.prototype, "popupSettings", null);
|
|
1846
|
+
__decorate([
|
|
1847
|
+
Input(),
|
|
1848
|
+
__metadata("design:type", String),
|
|
1849
|
+
__metadata("design:paramtypes", [String])
|
|
1850
|
+
], ToolBarDropDownButtonComponent.prototype, "look", null);
|
|
1851
|
+
__decorate([
|
|
1852
|
+
Input(),
|
|
1853
|
+
__metadata("design:type", Boolean),
|
|
1854
|
+
__metadata("design:paramtypes", [Boolean])
|
|
1855
|
+
], ToolBarDropDownButtonComponent.prototype, "primary", null);
|
|
1856
|
+
__decorate([
|
|
1857
|
+
Input(),
|
|
1858
|
+
__metadata("design:type", String)
|
|
1859
|
+
], ToolBarDropDownButtonComponent.prototype, "fillMode", void 0);
|
|
1860
|
+
__decorate([
|
|
1861
|
+
Input(),
|
|
1862
|
+
__metadata("design:type", String)
|
|
1863
|
+
], ToolBarDropDownButtonComponent.prototype, "themeColor", void 0);
|
|
1780
1864
|
__decorate([
|
|
1781
1865
|
Input(),
|
|
1782
1866
|
__metadata("design:type", String)
|
|
@@ -1789,19 +1873,11 @@ __decorate([
|
|
|
1789
1873
|
Input(),
|
|
1790
1874
|
__metadata("design:type", Boolean)
|
|
1791
1875
|
], ToolBarDropDownButtonComponent.prototype, "disabled", void 0);
|
|
1792
|
-
__decorate([
|
|
1793
|
-
Input(),
|
|
1794
|
-
__metadata("design:type", String)
|
|
1795
|
-
], ToolBarDropDownButtonComponent.prototype, "look", void 0);
|
|
1796
1876
|
__decorate([
|
|
1797
1877
|
Input(),
|
|
1798
1878
|
__metadata("design:type", Array),
|
|
1799
1879
|
__metadata("design:paramtypes", [Array])
|
|
1800
1880
|
], ToolBarDropDownButtonComponent.prototype, "data", null);
|
|
1801
|
-
__decorate([
|
|
1802
|
-
Input(),
|
|
1803
|
-
__metadata("design:type", Boolean)
|
|
1804
|
-
], ToolBarDropDownButtonComponent.prototype, "primary", void 0);
|
|
1805
1881
|
__decorate([
|
|
1806
1882
|
Output(),
|
|
1807
1883
|
__metadata("design:type", EventEmitter)
|
|
@@ -1857,8 +1933,8 @@ ToolBarDropDownButtonComponent = ToolBarDropDownButtonComponent_1 = __decorate([
|
|
|
1857
1933
|
[data]="data"
|
|
1858
1934
|
[textField]="textField"
|
|
1859
1935
|
[popupSettings]="popupSettings"
|
|
1860
|
-
[
|
|
1861
|
-
[
|
|
1936
|
+
[fillMode]="fillMode"
|
|
1937
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
1862
1938
|
(open)="open.emit($event)"
|
|
1863
1939
|
(close)="close.emit($event)"
|
|
1864
1940
|
(itemClick)="itemClick.emit($event)"
|
|
@@ -1913,15 +1989,35 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
1913
1989
|
*/
|
|
1914
1990
|
this.showIcon = 'both';
|
|
1915
1991
|
/**
|
|
1916
|
-
*
|
|
1917
|
-
* ([see example]({% slug controltypes_toolbar %}#toc-split-buttons)).
|
|
1992
|
+
* The fillMode property specifies the background and border styles of the Button.
|
|
1918
1993
|
*
|
|
1919
1994
|
* The available values are:
|
|
1920
|
-
* * `default
|
|
1995
|
+
* * `solid` (default)
|
|
1921
1996
|
* * `flat`
|
|
1922
1997
|
* * `outline`
|
|
1998
|
+
* * `link`
|
|
1999
|
+
* * `null`
|
|
1923
2000
|
*/
|
|
1924
|
-
this.
|
|
2001
|
+
this.fillMode = 'solid';
|
|
2002
|
+
/**
|
|
2003
|
+
* The Button allows you to specify predefined theme colors.
|
|
2004
|
+
* The theme color will be applied as a background and border color while also amending the text color accordingly.
|
|
2005
|
+
*
|
|
2006
|
+
* The possible values are:
|
|
2007
|
+
* * `base` —Applies coloring based on the `base` theme color. (default)
|
|
2008
|
+
* * `primary` —Applies coloring based on the `primary` theme color.
|
|
2009
|
+
* * `secondary`—Applies coloring based on the `secondary` theme color.
|
|
2010
|
+
* * `tertiary`— Applies coloring based on the `tertiary` theme color.
|
|
2011
|
+
* * `info`—Applies coloring based on the `info` theme color.
|
|
2012
|
+
* * `success`— Applies coloring based on the `success` theme color.
|
|
2013
|
+
* * `warning`— Applies coloring based on the `warning` theme color.
|
|
2014
|
+
* * `error`— Applies coloring based on the `error` theme color.
|
|
2015
|
+
* * `dark`— Applies coloring based on the `dark` theme color.
|
|
2016
|
+
* * `light`— Applies coloring based on the `light` theme color.
|
|
2017
|
+
* * `inverse`— Applies coloring based on the `inverse` theme color.
|
|
2018
|
+
* * `null` —Removes the default CSS class (no class would be rendered).
|
|
2019
|
+
*/
|
|
2020
|
+
this.themeColor = 'base';
|
|
1925
2021
|
/**
|
|
1926
2022
|
* Specifies the name of the [font icon]({% slug icons %}#toc-list-of-font-icons) that will
|
|
1927
2023
|
* be rendered for the button which opens the popup.
|
|
@@ -2012,6 +2108,14 @@ let ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = class ToolBarS
|
|
|
2012
2108
|
}
|
|
2013
2109
|
return this._popupSettings;
|
|
2014
2110
|
}
|
|
2111
|
+
/**
|
|
2112
|
+
* @hidden
|
|
2113
|
+
*/
|
|
2114
|
+
set look(look) {
|
|
2115
|
+
if (look) {
|
|
2116
|
+
this.fillMode = look === 'default' ? 'solid' : look;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2015
2119
|
/**
|
|
2016
2120
|
* Sets the data of the SplitButton ([see example]({% slug controltypes_toolbar %}#toc-splitbuttons)).
|
|
2017
2121
|
*
|
|
@@ -2115,15 +2219,24 @@ __decorate([
|
|
|
2115
2219
|
Input(),
|
|
2116
2220
|
__metadata("design:type", Boolean)
|
|
2117
2221
|
], ToolBarSplitButtonComponent.prototype, "disabled", void 0);
|
|
2118
|
-
__decorate([
|
|
2119
|
-
Input(),
|
|
2120
|
-
__metadata("design:type", String)
|
|
2121
|
-
], ToolBarSplitButtonComponent.prototype, "look", void 0);
|
|
2122
2222
|
__decorate([
|
|
2123
2223
|
Input(),
|
|
2124
2224
|
__metadata("design:type", Object),
|
|
2125
2225
|
__metadata("design:paramtypes", [Object])
|
|
2126
2226
|
], ToolBarSplitButtonComponent.prototype, "popupSettings", null);
|
|
2227
|
+
__decorate([
|
|
2228
|
+
Input(),
|
|
2229
|
+
__metadata("design:type", String)
|
|
2230
|
+
], ToolBarSplitButtonComponent.prototype, "fillMode", void 0);
|
|
2231
|
+
__decorate([
|
|
2232
|
+
Input(),
|
|
2233
|
+
__metadata("design:type", String)
|
|
2234
|
+
], ToolBarSplitButtonComponent.prototype, "themeColor", void 0);
|
|
2235
|
+
__decorate([
|
|
2236
|
+
Input(),
|
|
2237
|
+
__metadata("design:type", String),
|
|
2238
|
+
__metadata("design:paramtypes", [String])
|
|
2239
|
+
], ToolBarSplitButtonComponent.prototype, "look", null);
|
|
2127
2240
|
__decorate([
|
|
2128
2241
|
Input(),
|
|
2129
2242
|
__metadata("design:type", String)
|
|
@@ -2203,7 +2316,8 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = __decorate([
|
|
|
2203
2316
|
[tabIndex]="-1"
|
|
2204
2317
|
[textField]="textField"
|
|
2205
2318
|
[popupSettings]="popupSettings"
|
|
2206
|
-
[
|
|
2319
|
+
[fillMode]="fillMode"
|
|
2320
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2207
2321
|
(buttonClick)="buttonClick.emit($event)"
|
|
2208
2322
|
(open)="open.emit($event)"
|
|
2209
2323
|
(close)="close.emit($event)"
|
|
@@ -2216,13 +2330,14 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = __decorate([
|
|
|
2216
2330
|
#overflowSplitButton
|
|
2217
2331
|
type="button"
|
|
2218
2332
|
tabindex="-1"
|
|
2333
|
+
[fillMode]="fillMode"
|
|
2334
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2219
2335
|
kendoButton
|
|
2220
2336
|
class="k-overflow-button"
|
|
2221
2337
|
[disabled]="disabled"
|
|
2222
2338
|
[icon]="overflowOptions.icon"
|
|
2223
2339
|
[iconClass]="overflowOptions.iconClass"
|
|
2224
2340
|
[imageUrl]="overflowOptions.imageUrl"
|
|
2225
|
-
[look]="look"
|
|
2226
2341
|
[ngClass]="buttonClass"
|
|
2227
2342
|
(click)="buttonClick.emit($event)"
|
|
2228
2343
|
(click)="onMainButtonClick($event)"
|
|
@@ -2231,9 +2346,10 @@ ToolBarSplitButtonComponent = ToolBarSplitButtonComponent_1 = __decorate([
|
|
|
2231
2346
|
</button>
|
|
2232
2347
|
<kendo-toolbar-buttonlist
|
|
2233
2348
|
#overflowSplitButtonButtonList
|
|
2234
|
-
[look]="look"
|
|
2235
2349
|
[data]="data"
|
|
2236
2350
|
[disabled]="disabled"
|
|
2351
|
+
[fillMode]="fillMode"
|
|
2352
|
+
[themeColor]="fillMode ? themeColor : null"
|
|
2237
2353
|
[textField]="textField"
|
|
2238
2354
|
(itemClick)="itemClick.emit($event)"
|
|
2239
2355
|
(click)="onButtonListClick($event)"
|