@skyux/ag-grid 7.21.1 → 7.21.2

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.
@@ -1229,6 +1229,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
1229
1229
  args: ['inlineHelpContainer', { read: ElementRef, static: true }]
1230
1230
  }] } });
1231
1231
 
1232
+ const iconMap = {
1233
+ sortDescending: {
1234
+ faIcon: 'caret-down',
1235
+ skyIcon: 'chevron-down',
1236
+ },
1237
+ sortAscending: {
1238
+ faIcon: 'caret-up',
1239
+ skyIcon: 'chevron-up',
1240
+ },
1241
+ columnMoveMove: {
1242
+ faIcon: 'arrows',
1243
+ },
1244
+ columnMoveHide: {
1245
+ faIcon: 'eye-slash',
1246
+ skyIcon: 'hide',
1247
+ },
1248
+ columnMoveLeft: {
1249
+ faIcon: 'arrows',
1250
+ },
1251
+ columnMoveRight: {
1252
+ faIcon: 'arrows',
1253
+ },
1254
+ columnMoveGroup: {
1255
+ faIcon: 'arrows',
1256
+ },
1257
+ columnMovePin: {
1258
+ faIcon: 'arrows',
1259
+ },
1260
+ columnGroupOpened: {
1261
+ faIcon: 'caret-right',
1262
+ skyIcon: 'double-chevron-right',
1263
+ },
1264
+ columnGroupClosed: {
1265
+ faIcon: 'caret-left',
1266
+ skyIcon: 'double-chevron-left',
1267
+ },
1268
+ dropNotAllowed: {
1269
+ faIcon: 'ban',
1270
+ skyIcon: 'ban',
1271
+ },
1272
+ menu: {
1273
+ faIcon: 'menu',
1274
+ skyIcon: 'bars-2',
1275
+ },
1276
+ filter: {
1277
+ faIcon: 'filter',
1278
+ skyIcon: 'filter',
1279
+ },
1280
+ columns: {
1281
+ faIcon: 'columns',
1282
+ skyIcon: 'columns',
1283
+ },
1284
+ last: {
1285
+ faIcon: 'step-forward',
1286
+ skyIcon: 'double-chevron-right',
1287
+ },
1288
+ next: {
1289
+ faIcon: 'caret-right',
1290
+ skyIcon: 'chevron-right',
1291
+ },
1292
+ previous: {
1293
+ faIcon: 'caret-left',
1294
+ skyIcon: 'chevron-left',
1295
+ },
1296
+ first: {
1297
+ faIcon: 'step-backward',
1298
+ skyIcon: 'double-chevron-left',
1299
+ },
1300
+ };
1301
+
1232
1302
  /**
1233
1303
  * @internal
1234
1304
  */
@@ -1651,13 +1721,13 @@ _SkyAgGridService_keyMap = new WeakMap(), _SkyAgGridService_ngUnsubscribe = new
1651
1721
  },
1652
1722
  headerHeight: this.getHeaderHeight(),
1653
1723
  icons: {
1654
- sortDescending: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'caret-down'),
1655
- sortAscending: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'caret-up'),
1656
- columnMoveMove: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'arrows'),
1657
- columnMoveHide: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'arrows'),
1658
- columnMoveLeft: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'arrows'),
1659
- columnMoveRight: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'arrows'),
1660
- columnMovePin: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'arrows'),
1724
+ sortDescending: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'sortDescending'),
1725
+ sortAscending: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'sortAscending'),
1726
+ columnMoveMove: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'columnMoveMove'),
1727
+ columnMoveHide: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'columnMoveHide'),
1728
+ columnMoveLeft: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'columnMoveLeft'),
1729
+ columnMoveRight: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'columnMoveRight'),
1730
+ columnMovePin: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getIconTemplate).call(this, 'columnMovePin'),
1661
1731
  },
1662
1732
  onCellFocused: () => __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_onCellFocused).call(this),
1663
1733
  rowHeight: __classPrivateFieldGet(this, _SkyAgGridService_instances, "m", _SkyAgGridService_getRowHeight).call(this),
@@ -1735,7 +1805,15 @@ _SkyAgGridService_keyMap = new WeakMap(), _SkyAgGridService_ngUnsubscribe = new
1735
1805
  }
1736
1806
  return '';
1737
1807
  }, _SkyAgGridService_getIconTemplate = function _SkyAgGridService_getIconTemplate(iconName) {
1738
- return `<i class="fa fa-${iconName}"></i>`;
1808
+ return () => {
1809
+ const icon = iconMap[iconName];
1810
+ if (__classPrivateFieldGet(this, _SkyAgGridService_currentTheme, "f")?.theme.name === 'modern' && icon.skyIcon) {
1811
+ return `<i aria-hidden="true" class="sky-i-${icon.skyIcon}"></i>`;
1812
+ }
1813
+ else {
1814
+ return `<i aria-hidden="true" class="fa fa-${icon.faIcon}"></i>`;
1815
+ }
1816
+ };
1739
1817
  }, _SkyAgGridService_suppressTab = function _SkyAgGridService_suppressTab(params) {
1740
1818
  if (params.event.code === 'Tab') {
1741
1819
  if (params.editing) {