@adaptabletools/adaptable 16.0.0-canary.2 → 16.0.0-canary.3
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/base.css +31 -31
- package/base.css.map +1 -1
- package/bundle.cjs.js +155 -155
- package/index.css +39 -39
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -1
- package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +15 -5
- package/src/Api/ColumnApi.d.ts +18 -7
- package/src/Api/DataChangeHistoryApi.d.ts +6 -0
- package/src/Api/EventApi.d.ts +19 -6
- package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
- package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
- package/src/Api/Events/ScheduleTriggered.js +2 -0
- package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ColumnApiImpl.js +22 -3
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
- package/src/Api/Implementation/PredicateApiImpl.js +8 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
- package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +7 -2
- package/src/Api/Internal/FilterInternalApi.js +8 -4
- package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
- package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
- package/src/Api/Internal/ScheduleInternalApi.js +20 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
- package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
- package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
- package/src/Api/OptionsApi.d.ts +1 -1
- package/src/Api/PredicateApi.d.ts +5 -5
- package/src/Api/StyledColumnApi.d.ts +0 -14
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +1 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
- package/src/Strategy/FlashingCellModule.js +6 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/ScheduleModule.js +3 -2
- package/src/Strategy/StyledColumnModule.js +24 -15
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -2
- package/src/Utilities/MenuItem.d.ts +4 -4
- package/src/Utilities/Services/MetamodelService.js +5 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/Utilities/Services/RowEditService.js +1 -1
- package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
- package/src/Utilities/Services/TeamSharingService.js +60 -3
- package/src/Utilities/Services/ValidationService.js +6 -2
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableButton/index.d.ts +3 -0
- package/src/View/Components/AdaptableButton/index.js +18 -0
- package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
- package/src/View/Components/AdaptableIconComponent/index.js +16 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
- package/src/{components → View/Components}/Badge/index.d.ts +1 -1
- package/src/{components → View/Components}/Badge/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
- package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
- package/src/View/Dashboard/Dashboard.js +3 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
- package/src/View/UIHelper.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
- package/src/agGrid/ActionColumnRenderer.js +20 -5
- package/src/agGrid/Adaptable.d.ts +5 -2
- package/src/agGrid/Adaptable.js +61 -25
- package/src/agGrid/BadgeRenderer.js +19 -20
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/agGridMenuHelper.js +11 -4
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
- package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/Icon/index.d.ts +11 -0
- package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
- package/src/components/IconSelector/IconSelector.js +3 -3
- package/src/components/SimpleButton/index.js +10 -10
- package/src/components/Toggle/Toggle.d.ts +2 -2
- package/src/components/Toggle/Toggle.js +2 -2
- package/src/components/icons/index.d.ts +4 -4
- package/src/components/icons/index.js +6 -6
- package/src/metamodel/adaptable.metamodel.d.ts +72 -31
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +6 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
- package/src/View/Components/AdaptableViewIcon/index.js +0 -18
- package/src/components/AdaptableIconComponent/index.d.ts +0 -11
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1256,7 +1256,8 @@ class Adaptable {
|
|
|
1256
1256
|
if (!params.node) {
|
|
1257
1257
|
return false;
|
|
1258
1258
|
}
|
|
1259
|
-
if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
|
|
1259
|
+
if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
|
|
1260
|
+
params.node.group) {
|
|
1260
1261
|
return false;
|
|
1261
1262
|
}
|
|
1262
1263
|
let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
|
|
@@ -1352,11 +1353,11 @@ class Adaptable {
|
|
|
1352
1353
|
}
|
|
1353
1354
|
const perfSetLayout = this.logger.beginPerf(`setLayout(${layout.Name})`);
|
|
1354
1355
|
layout.Columns = layout.Columns || [];
|
|
1355
|
-
const
|
|
1356
|
-
if (
|
|
1357
|
-
layout.Columns.push(
|
|
1356
|
+
const actionRowColumn = this.getColDefsForActionRowColumns()[0];
|
|
1357
|
+
if (actionRowColumn) {
|
|
1358
|
+
layout.Columns.push(actionRowColumn.colId);
|
|
1358
1359
|
layout.PinnedColumnsMap = layout.PinnedColumnsMap || {};
|
|
1359
|
-
layout.PinnedColumnsMap[
|
|
1360
|
+
layout.PinnedColumnsMap[actionRowColumn.colId] = actionRowColumn.pinned;
|
|
1360
1361
|
}
|
|
1361
1362
|
const layoutColumnsMap = layout.Columns.reduce((acc, colId) => {
|
|
1362
1363
|
acc[colId] = true;
|
|
@@ -1409,6 +1410,9 @@ class Adaptable {
|
|
|
1409
1410
|
// autosize only the columns which are part of the selected layout
|
|
1410
1411
|
colsToAutoSize[colId] = true;
|
|
1411
1412
|
}
|
|
1413
|
+
if (actionRowColumn && actionRowColumn.colId === colId) {
|
|
1414
|
+
newColState.width = actionRowColumn.width;
|
|
1415
|
+
}
|
|
1412
1416
|
newColState.rowGroupIndex =
|
|
1413
1417
|
groupedColumnsIndexesMap[colId] != null ? groupedColumnsIndexesMap[colId] : null;
|
|
1414
1418
|
const previousRowGroup = newColState.rowGroup;
|
|
@@ -1700,7 +1704,10 @@ class Adaptable {
|
|
|
1700
1704
|
}
|
|
1701
1705
|
layout.EnablePivot = this.gridOptions.columnApi.isPivotMode();
|
|
1702
1706
|
layout.PivotColumns = pivotColumns;
|
|
1703
|
-
if (
|
|
1707
|
+
if (
|
|
1708
|
+
// check first row node for presence of data without iterating over whole grid
|
|
1709
|
+
this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1710
|
+
this.api.gridApi.getFirstRowNode()) {
|
|
1704
1711
|
layout.ExpandedRowGroupValues = this.getExpandRowGroupsKeys();
|
|
1705
1712
|
}
|
|
1706
1713
|
this.persistLayout(layout);
|
|
@@ -1887,13 +1894,16 @@ class Adaptable {
|
|
|
1887
1894
|
});
|
|
1888
1895
|
}
|
|
1889
1896
|
}
|
|
1890
|
-
|
|
1897
|
+
let uniqueVals = (0, uniqBy_1.default)(returnValues, (dataItem) => {
|
|
1891
1898
|
const value = dataItem.rawValue;
|
|
1892
1899
|
if (value instanceof Date) {
|
|
1893
1900
|
return value.toISOString();
|
|
1894
1901
|
}
|
|
1895
1902
|
return value;
|
|
1896
1903
|
});
|
|
1904
|
+
if (column.dataType == 'String' && this.api.internalApi.isTextComparisonCaseSensitive()) {
|
|
1905
|
+
uniqueVals = (0, uniqBy_1.default)(uniqueVals, (d) => d.displayValue.toLowerCase());
|
|
1906
|
+
}
|
|
1897
1907
|
return uniqueVals.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
|
|
1898
1908
|
}
|
|
1899
1909
|
async getDistinctFilterValuesForColumn(column, visibleRowsOnly, filter, skipRowNode) {
|
|
@@ -2326,7 +2336,7 @@ class Adaptable {
|
|
|
2326
2336
|
...this.getColDefsForCalculatedColumns(),
|
|
2327
2337
|
...this.getColDefsForActionColumns(),
|
|
2328
2338
|
...this.getColDefsForFreeTextColumns(),
|
|
2329
|
-
...this.
|
|
2339
|
+
...this.getColDefsForActionRowColumns(),
|
|
2330
2340
|
];
|
|
2331
2341
|
}
|
|
2332
2342
|
getColDefsForFreeTextColumns() {
|
|
@@ -2386,12 +2396,12 @@ class Adaptable {
|
|
|
2386
2396
|
return userValue;
|
|
2387
2397
|
});
|
|
2388
2398
|
}
|
|
2389
|
-
|
|
2399
|
+
getActionRowButtonDefs() {
|
|
2390
2400
|
const actionRowButtons = this.api.actionRowApi.getActionRowButtons();
|
|
2391
2401
|
if (!(actionRowButtons === null || actionRowButtons === void 0 ? void 0 : actionRowButtons.length)) {
|
|
2392
2402
|
return [];
|
|
2393
2403
|
}
|
|
2394
|
-
const
|
|
2404
|
+
const defaultActionRowButtonConfiguration = {
|
|
2395
2405
|
create: {
|
|
2396
2406
|
icon: {
|
|
2397
2407
|
name: 'add',
|
|
@@ -2438,10 +2448,10 @@ class Adaptable {
|
|
|
2438
2448
|
},
|
|
2439
2449
|
},
|
|
2440
2450
|
};
|
|
2441
|
-
const
|
|
2451
|
+
const actionButtons = actionRowButtons
|
|
2442
2452
|
.map((actionRowButtonType) => {
|
|
2443
2453
|
var _a, _b;
|
|
2444
|
-
const defaultButtonConfig =
|
|
2454
|
+
const defaultButtonConfig = defaultActionRowButtonConfiguration[actionRowButtonType];
|
|
2445
2455
|
if (!defaultButtonConfig) {
|
|
2446
2456
|
// should NOT happen unless the user sent some invalid button type in the predefined config
|
|
2447
2457
|
return;
|
|
@@ -2458,12 +2468,20 @@ class Adaptable {
|
|
|
2458
2468
|
return Object.assign(Object.assign({}, defaultButtonConfig), customButtonConfig);
|
|
2459
2469
|
})
|
|
2460
2470
|
.filter(Boolean);
|
|
2461
|
-
|
|
2471
|
+
return actionButtons;
|
|
2472
|
+
}
|
|
2473
|
+
getColDefsForActionRowColumns() {
|
|
2474
|
+
const actionRowButtons = this.api.actionRowApi.getActionRowButtons();
|
|
2475
|
+
if (!(actionRowButtons === null || actionRowButtons === void 0 ? void 0 : actionRowButtons.length)) {
|
|
2462
2476
|
return [];
|
|
2463
2477
|
}
|
|
2464
|
-
const
|
|
2478
|
+
const actionButtons = this.getActionRowButtonDefs();
|
|
2479
|
+
if (!actionButtons.length) {
|
|
2480
|
+
return [];
|
|
2481
|
+
}
|
|
2482
|
+
const actionRowColumn = {
|
|
2465
2483
|
columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2466
|
-
actionColumnButton:
|
|
2484
|
+
actionColumnButton: actionButtons,
|
|
2467
2485
|
};
|
|
2468
2486
|
return [
|
|
2469
2487
|
{
|
|
@@ -2472,7 +2490,7 @@ class Adaptable {
|
|
|
2472
2490
|
hide: false,
|
|
2473
2491
|
editable: false,
|
|
2474
2492
|
// 15px is the icon width + left&right padding + left&right border
|
|
2475
|
-
width:
|
|
2493
|
+
width: actionButtons.length * (UIHelper_1.default.getSimpleButtonPaddingWidth() * 2 + 15) + 2,
|
|
2476
2494
|
resizable: false,
|
|
2477
2495
|
lockVisible: true,
|
|
2478
2496
|
suppressColumnsToolPanel: true,
|
|
@@ -2486,9 +2504,6 @@ class Adaptable {
|
|
|
2486
2504
|
? 'right'
|
|
2487
2505
|
: 'left',
|
|
2488
2506
|
cellRenderer: this.variant === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
|
|
2489
|
-
cellRendererParams: {
|
|
2490
|
-
actionColumn: rowEditActionColumn,
|
|
2491
|
-
},
|
|
2492
2507
|
cellClass: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2493
2508
|
type: [GeneralConstants_1.AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2494
2509
|
},
|
|
@@ -2873,7 +2888,10 @@ class Adaptable {
|
|
|
2873
2888
|
}
|
|
2874
2889
|
const gridContainerElement = this.getAgGridContainerElement();
|
|
2875
2890
|
if (gridContainerElement) {
|
|
2876
|
-
gridContainerElement.addEventListener('keydown', (this.listenerKeydown = (event) => this._emit('KeyDown', event))
|
|
2891
|
+
gridContainerElement.addEventListener('keydown', (this.listenerKeydown = (event) => this._emit('KeyDown', event)),
|
|
2892
|
+
// This is needed to be able to prevent the editor to be opened
|
|
2893
|
+
// in bubling phase the opening is not prevented with ag-grid v30
|
|
2894
|
+
true);
|
|
2877
2895
|
}
|
|
2878
2896
|
/*********************
|
|
2879
2897
|
* AG Grid EVENTS
|
|
@@ -3769,22 +3787,28 @@ class Adaptable {
|
|
|
3769
3787
|
if (standardAgGridRegistrationCheck) {
|
|
3770
3788
|
return true;
|
|
3771
3789
|
}
|
|
3790
|
+
const allAgGridRegisteredModules = this.getAllAgGridRegisteredModules();
|
|
3791
|
+
return !!allAgGridRegisteredModules[moduleName];
|
|
3792
|
+
}
|
|
3793
|
+
getAllAgGridRegisteredModules() {
|
|
3772
3794
|
// as of AG Grid 30.0.3 the ModuleRegistry gets an dynamic grid ID for the framework versions
|
|
3773
3795
|
// because of that we have to check ALL grid IDs to see if the module is registered
|
|
3774
3796
|
// TODO AFL: we should recheck this later, it seems AG Grid is already refactoring this faulty registration process
|
|
3775
3797
|
// @ts-ignore
|
|
3776
3798
|
const gridModulesMap = core_1.ModuleRegistry.gridModulesMap;
|
|
3777
|
-
let
|
|
3799
|
+
let allModulesMap = {};
|
|
3778
3800
|
Object.keys(gridModulesMap).forEach((gridId) => {
|
|
3779
|
-
|
|
3801
|
+
allModulesMap = Object.assign(Object.assign({}, allModulesMap), gridModulesMap[gridId]);
|
|
3780
3802
|
});
|
|
3781
|
-
return
|
|
3803
|
+
return allModulesMap;
|
|
3782
3804
|
}
|
|
3783
3805
|
getAgGridRegisteredModules() {
|
|
3784
|
-
|
|
3806
|
+
// see comment from getAllAgGridRegisteredModules()
|
|
3807
|
+
// return ModuleRegistry.__getRegisteredModules(this.gridOptions.gridId);
|
|
3808
|
+
return Object.values(this.getAllAgGridRegisteredModules());
|
|
3785
3809
|
}
|
|
3786
3810
|
getAgGridRegisteredModuleNames() {
|
|
3787
|
-
return
|
|
3811
|
+
return this.getAgGridRegisteredModules().map((module) => module.moduleName);
|
|
3788
3812
|
}
|
|
3789
3813
|
onRowDataChanged({ rowNode, oldData, newData, }) {
|
|
3790
3814
|
if (oldData == null || oldData == undefined) {
|
|
@@ -4983,6 +5007,18 @@ class Adaptable {
|
|
|
4983
5007
|
this.api.chartingApi.editChartDefinition(Object.assign(Object.assign({}, chartDefinition), { Model: chartModel }));
|
|
4984
5008
|
return chartRef;
|
|
4985
5009
|
}
|
|
5010
|
+
updateChart(chart) {
|
|
5011
|
+
const upgradableProperties = {
|
|
5012
|
+
// Only Range charts are supported to be created at run time
|
|
5013
|
+
// the other two are pivot & cross-filter
|
|
5014
|
+
type: 'rangeChartUpdate',
|
|
5015
|
+
chartId: chart.Model.chartId,
|
|
5016
|
+
unlinkChart: Boolean(chart.Model.unlinkChart),
|
|
5017
|
+
suppressChartRanges: Boolean(chart.Model.suppressChartRanges),
|
|
5018
|
+
aggFunc: chart.Model.aggFunc,
|
|
5019
|
+
};
|
|
5020
|
+
this.gridOptions.api.updateChart(upgradableProperties);
|
|
5021
|
+
}
|
|
4986
5022
|
getChartRef(chartId) {
|
|
4987
5023
|
return this.gridOptions.api.getChartRef(chartId);
|
|
4988
5024
|
}
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBadgeRendererForColumn = void 0;
|
|
4
|
-
const Badge_1 = require("../
|
|
4
|
+
const Badge_1 = require("../View/Components/Badge");
|
|
5
|
+
const renderWithAdaptableContext_1 = require("../View/renderWithAdaptableContext");
|
|
5
6
|
const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
|
|
6
7
|
if (!styledColumn.BadgeStyle) {
|
|
7
8
|
return;
|
|
8
9
|
}
|
|
9
10
|
return class BadgetRenderer {
|
|
11
|
+
getAdaptableInstance(params) {
|
|
12
|
+
const adaptable = params.api.__adaptable;
|
|
13
|
+
return adaptable;
|
|
14
|
+
}
|
|
10
15
|
init(params) {
|
|
11
|
-
var _a, _b, _c, _d
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
const adaptable = this.getAdaptableInstance(params);
|
|
18
|
+
const adapatableApi = adaptable.api;
|
|
12
19
|
this.eGui = document.createElement('div');
|
|
13
20
|
this.eGui.className = 'ab-Badge__wrapper';
|
|
14
21
|
const formattedValue = (_c = (_b = (_a = params.formatValue) === null || _a === void 0 ? void 0 : _a.call(params, params.value)) !== null && _b !== void 0 ? _b : params.value) !== null && _c !== void 0 ? _c : '';
|
|
15
|
-
const
|
|
22
|
+
const predicateDefHandlerContext = {
|
|
16
23
|
value: params.value,
|
|
17
24
|
oldValue: null,
|
|
18
25
|
displayValue: params.formatValue,
|
|
19
26
|
node: params.node,
|
|
20
27
|
column: abColumn,
|
|
21
|
-
|
|
28
|
+
adaptableApi: adapatableApi,
|
|
29
|
+
userName: adapatableApi.optionsApi.getUserName(),
|
|
30
|
+
adaptableId: adapatableApi.optionsApi.getAdaptableId(),
|
|
31
|
+
};
|
|
32
|
+
const badge = api.styledColumnApi.internalApi.getApplicableBadge(styledColumn, predicateDefHandlerContext);
|
|
22
33
|
const isGrouped = params.node.group;
|
|
23
34
|
const includeGrouped = Boolean(styledColumn.IncludeGroupedRows);
|
|
24
35
|
const isNullValue = formattedValue === '' || formattedValue === null || formattedValue === undefined;
|
|
@@ -32,24 +43,12 @@ const getBadgeRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
32
43
|
this.eGui.innerHTML = formattedValue;
|
|
33
44
|
return;
|
|
34
45
|
}
|
|
35
|
-
|
|
36
|
-
if (icon && 'name' in icon && icon.size === undefined) {
|
|
37
|
-
icon.size = 14;
|
|
38
|
-
}
|
|
39
|
-
const userInterfaceOptions = (_d = api.optionsApi.getAdaptableOptions()) === null || _d === void 0 ? void 0 : _d.userInterfaceOptions;
|
|
40
|
-
const customDefinedIcons = (_e = userInterfaceOptions.customIcons) !== null && _e !== void 0 ? _e : [];
|
|
41
|
-
let customIcon = badge.Icon && 'name' in badge.Icon
|
|
42
|
-
? api.userInterfaceApi.getCustomIconDefinition(badge.Icon.name)
|
|
43
|
-
: null;
|
|
44
|
-
if (customIcon) {
|
|
45
|
-
icon = customIcon;
|
|
46
|
-
}
|
|
47
|
-
this.unmountReactRoot = api.internalApi.getAdaptableInstance().renderReactRoot((0, Badge_1.Badge)({
|
|
46
|
+
this.unmountReactRoot = api.internalApi.getAdaptableInstance().renderReactRoot((0, renderWithAdaptableContext_1.renderWithAdaptableContext)((0, Badge_1.Badge)({
|
|
48
47
|
adaptableStyle: badge.Style,
|
|
49
48
|
children: formattedValue,
|
|
50
|
-
icon,
|
|
51
|
-
iconPosition: (
|
|
52
|
-
}), this.eGui);
|
|
49
|
+
icon: badge.Icon,
|
|
50
|
+
iconPosition: (_d = badge.IconPosition) !== null && _d !== void 0 ? _d : 'start',
|
|
51
|
+
}), adaptable), this.eGui);
|
|
53
52
|
}
|
|
54
53
|
getGui() {
|
|
55
54
|
return this.eGui;
|
|
@@ -30,7 +30,7 @@ const getCheckboxRendererForColumn = (columnId, isColumnReadOnly, api) => {
|
|
|
30
30
|
CheckboxRenderer.prototype.checkedHandler = function (e) {
|
|
31
31
|
let checked = e.target.checked;
|
|
32
32
|
this.params.node.setDataValue(columnId, checked);
|
|
33
|
-
api.styledColumnApi.fireCheckboxColumnClickedEvent(columnId, this.params.node.data, api.gridApi.getPrimaryKeyValueForRowNode(this.params.node), checked);
|
|
33
|
+
api.styledColumnApi.internalApi.fireCheckboxColumnClickedEvent(columnId, this.params.node.data, api.gridApi.getPrimaryKeyValueForRowNode(this.params.node), checked);
|
|
34
34
|
};
|
|
35
35
|
CheckboxRenderer.prototype.suppressEditEvent = function (event) {
|
|
36
36
|
if (event.target === this.eGui) {
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
6
6
|
const icons_1 = require("../components/icons");
|
|
7
7
|
const flatten_1 = tslib_1.__importDefault(require("lodash/flatten"));
|
|
8
|
-
const
|
|
8
|
+
const Icon_1 = require("../components/Icon");
|
|
9
9
|
// tslint:disable-next-line: class-name
|
|
10
10
|
class agGridMenuHelper {
|
|
11
11
|
constructor(adaptable, gridOptions) {
|
|
@@ -168,11 +168,18 @@ class agGridMenuHelper {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
mapAdaptableIconToAgGridIcon(adaptableIcon, style) {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
const icon = this.adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(adaptableIcon);
|
|
172
|
+
if ((0, Icon_1.isAdaptableElementIcon)(icon)) {
|
|
173
|
+
let element = icon.element;
|
|
174
|
+
if (typeof element === 'string') {
|
|
175
|
+
return element;
|
|
176
|
+
}
|
|
177
|
+
// THe element neets to be cloned.
|
|
178
|
+
// when it is used in more than one plce the element is removed from the DOM
|
|
179
|
+
return element.cloneNode(true);
|
|
173
180
|
}
|
|
174
181
|
else {
|
|
175
|
-
return (0, icons_1.iconToString)(
|
|
182
|
+
return (0, icons_1.iconToString)(icon, {
|
|
176
183
|
fill: 'var(--ab-color-text-on-primary)',
|
|
177
184
|
});
|
|
178
185
|
}
|
|
@@ -9,6 +9,7 @@ export declare const attachColumnTypes: (gridOptions: GridOptions) => {
|
|
|
9
9
|
abColDefDate: import("@ag-grid-community/core").ColDef<any, any>;
|
|
10
10
|
abColDefObject: import("@ag-grid-community/core").ColDef<any, any>;
|
|
11
11
|
abColDefCustom: import("@ag-grid-community/core").ColDef<any, any>;
|
|
12
|
+
abColDefStringArray: import("@ag-grid-community/core").ColDef<any, any>;
|
|
12
13
|
abColDefNumberArray: import("@ag-grid-community/core").ColDef<any, any>;
|
|
13
14
|
abColDefTupleNumberArray: import("@ag-grid-community/core").ColDef<any, any>;
|
|
14
15
|
abColDefObjectNumberArray: import("@ag-grid-community/core").ColDef<any, any>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.attachColumnTypes = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
5
5
|
const attachColumnTypes = (gridOptions) => {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7
7
|
gridOptions.columnTypes = (_a = gridOptions.columnTypes) !== null && _a !== void 0 ? _a : {};
|
|
8
8
|
return Object.assign(gridOptions.columnTypes, {
|
|
9
9
|
[GeneralConstants_1.AB_SPECIAL_COLUMN]: {},
|
|
@@ -13,9 +13,10 @@ const attachColumnTypes = (gridOptions) => {
|
|
|
13
13
|
abColDefDate: (_e = gridOptions.columnTypes.abColDefDate) !== null && _e !== void 0 ? _e : {},
|
|
14
14
|
abColDefObject: (_f = gridOptions.columnTypes.abColDefObject) !== null && _f !== void 0 ? _f : {},
|
|
15
15
|
abColDefCustom: (_g = gridOptions.columnTypes.abColDefCustom) !== null && _g !== void 0 ? _g : {},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
abColDefStringArray: (_h = gridOptions.columnTypes.abColDefStringArray) !== null && _h !== void 0 ? _h : {},
|
|
17
|
+
abColDefNumberArray: (_j = gridOptions.columnTypes.abColDefNumberArray) !== null && _j !== void 0 ? _j : {},
|
|
18
|
+
abColDefTupleNumberArray: (_k = gridOptions.columnTypes.abColDefTupleNumberArray) !== null && _k !== void 0 ? _k : {},
|
|
19
|
+
abColDefObjectNumberArray: (_l = gridOptions.columnTypes.abColDefObjectNumberArray) !== null && _l !== void 0 ? _l : {},
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
exports.attachColumnTypes = attachColumnTypes;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AdaptableElementIcon, AdaptableCustomIcon, AdaptableIcon, AdaptableSystemIcon } from '../../PredefinedConfig/Common/AdaptableIcon';
|
|
3
|
+
export interface IconComponentProps {
|
|
4
|
+
icon: AdaptableIcon;
|
|
5
|
+
iconClassName?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const IconComponent: (props: IconComponentProps) => JSX.Element;
|
|
8
|
+
export declare const isAdaptableSystemIcon: (icon: unknown) => icon is AdaptableSystemIcon;
|
|
9
|
+
export declare const isAdaptableCustomIcon: (icon: unknown) => icon is AdaptableCustomIcon;
|
|
10
|
+
export declare const isAdaptableElementIcon: (icon: unknown) => icon is AdaptableElementIcon;
|
|
11
|
+
export declare const isAdaptableIcon: (icon: unknown) => icon is AdaptableIcon;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isAdaptableIcon = exports.isAdaptableElementIcon = exports.
|
|
3
|
+
exports.isAdaptableIcon = exports.isAdaptableElementIcon = exports.isAdaptableCustomIcon = exports.isAdaptableSystemIcon = exports.IconComponent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const icons_1 = tslib_1.__importStar(require("../icons"));
|
|
7
7
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
const
|
|
9
|
+
const IconComponent = (props) => {
|
|
10
10
|
var _a, _b, _c, _d, _e;
|
|
11
11
|
const { icon, iconClassName } = props;
|
|
12
12
|
if (!icon) {
|
|
@@ -38,10 +38,10 @@ const AdaptableIconComponent = (props) => {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}, [icon]);
|
|
41
|
-
if ((0, exports.
|
|
41
|
+
if ((0, exports.isAdaptableSystemIcon)(icon) && icon.name in icons_1.default) {
|
|
42
42
|
return (React.createElement(icons_1.Icon, { name: icon.name, size: icon.size, style: icon.style, className: className }));
|
|
43
43
|
}
|
|
44
|
-
if ((0, exports.
|
|
44
|
+
if ((0, exports.isAdaptableCustomIcon)(icon)) {
|
|
45
45
|
let width = (_b = (_a = icon.style) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : 'var(--ab-cmp-icon__width)';
|
|
46
46
|
let height = (_d = (_c = icon.style) === null || _c === void 0 ? void 0 : _c.height) !== null && _d !== void 0 ? _d : 'var(--ab-cmp-icon__height)';
|
|
47
47
|
const iconStyle = (_e = icon.style) !== null && _e !== void 0 ? _e : {};
|
|
@@ -52,15 +52,15 @@ const AdaptableIconComponent = (props) => {
|
|
|
52
52
|
}
|
|
53
53
|
return null;
|
|
54
54
|
};
|
|
55
|
-
exports.
|
|
56
|
-
const
|
|
55
|
+
exports.IconComponent = IconComponent;
|
|
56
|
+
const isAdaptableSystemIcon = (icon) => {
|
|
57
57
|
return typeof (icon === null || icon === void 0 ? void 0 : icon.name) === 'string';
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
60
|
-
const
|
|
59
|
+
exports.isAdaptableSystemIcon = isAdaptableSystemIcon;
|
|
60
|
+
const isAdaptableCustomIcon = (icon) => {
|
|
61
61
|
return typeof (icon === null || icon === void 0 ? void 0 : icon.src) === 'string';
|
|
62
62
|
};
|
|
63
|
-
exports.
|
|
63
|
+
exports.isAdaptableCustomIcon = isAdaptableCustomIcon;
|
|
64
64
|
const isAdaptableElementIcon = (icon) => {
|
|
65
65
|
return ((typeof HTMLElement === 'function' &&
|
|
66
66
|
(icon === null || icon === void 0 ? void 0 : icon.element) instanceof HTMLElement) ||
|
|
@@ -68,6 +68,6 @@ const isAdaptableElementIcon = (icon) => {
|
|
|
68
68
|
};
|
|
69
69
|
exports.isAdaptableElementIcon = isAdaptableElementIcon;
|
|
70
70
|
const isAdaptableIcon = (icon) => {
|
|
71
|
-
return ((0, exports.
|
|
71
|
+
return ((0, exports.isAdaptableSystemIcon)(icon) || (0, exports.isAdaptableCustomIcon)(icon) || (0, exports.isAdaptableElementIcon)(icon));
|
|
72
72
|
};
|
|
73
73
|
exports.isAdaptableIcon = isAdaptableIcon;
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../../View/Components/AdaptableInput"));
|
|
8
|
-
const
|
|
8
|
+
const Icon_1 = require("../Icon");
|
|
9
9
|
const icons_1 = tslib_1.__importStar(require("../icons"));
|
|
10
10
|
const OverlayTrigger_1 = tslib_1.__importDefault(require("../OverlayTrigger"));
|
|
11
11
|
const SimpleButton_1 = tslib_1.__importDefault(require("../SimpleButton"));
|
|
@@ -27,7 +27,7 @@ const IconSelector = (props) => {
|
|
|
27
27
|
});
|
|
28
28
|
const customIconsElements = (_a = props.customIcons) === null || _a === void 0 ? void 0 : _a.map((def) => {
|
|
29
29
|
return (react_1.default.createElement(IconButton, { key: def.name, active: false, onClick: () => props.onChange(def.name) },
|
|
30
|
-
react_1.default.createElement(
|
|
30
|
+
react_1.default.createElement(Icon_1.IconComponent, { key: def.name, icon: def.icon })));
|
|
31
31
|
});
|
|
32
32
|
const popup = (react_1.default.createElement(rebass_1.Box, { className: "ab-IconSelector__Popup" },
|
|
33
33
|
react_1.default.createElement(rebass_1.Box, { mb: 2 },
|
|
@@ -44,7 +44,7 @@ const IconSelector = (props) => {
|
|
|
44
44
|
else {
|
|
45
45
|
const icon = (_b = props.customIcons) === null || _b === void 0 ? void 0 : _b.find((def) => def.name === props.value);
|
|
46
46
|
if (icon)
|
|
47
|
-
value = react_1.default.createElement(
|
|
47
|
+
value = react_1.default.createElement(Icon_1.IconComponent, { icon: icon.icon });
|
|
48
48
|
}
|
|
49
49
|
return (react_1.default.createElement(rebass_1.Flex, { className: "ab-IconSelector" },
|
|
50
50
|
react_1.default.createElement(OverlayTrigger_1.default, { preventPortalEventPropagation: false, render: () => popup, showEvent: "mouseenter", hideEvent: "mouseleave", hideDelay: 300 },
|
|
@@ -8,21 +8,21 @@ const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
|
8
8
|
const icons_1 = tslib_1.__importDefault(require("../icons"));
|
|
9
9
|
const Tooltip_1 = tslib_1.__importDefault(require("../Tooltip"));
|
|
10
10
|
const theme_1 = tslib_1.__importDefault(require("../../theme"));
|
|
11
|
-
const
|
|
11
|
+
const Icon_1 = require("../Icon");
|
|
12
12
|
exports.baseClassName = 'ab-SimpleButton';
|
|
13
13
|
const SimpleButton = React.forwardRef((props, theRef) => {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
let { children, disabled, variant = 'outlined', tone = 'neutral', iconPosition = 'start', iconSize, className, icon, tooltip, accessLevel: accessLevel, type } = props, buttonProps = tslib_1.__rest(props, ["children", "disabled", "variant", "tone", "iconPosition", "iconSize", "className", "icon", "tooltip", "accessLevel", "type"]);
|
|
16
|
-
let
|
|
17
|
-
if ((0,
|
|
18
|
-
|
|
16
|
+
let adaptableSystemIcon;
|
|
17
|
+
if ((0, Icon_1.isAdaptableSystemIcon)(icon)) {
|
|
18
|
+
adaptableSystemIcon = icon;
|
|
19
19
|
}
|
|
20
20
|
if (typeof icon === 'string' && icons_1.default[icon]) {
|
|
21
|
-
|
|
21
|
+
adaptableSystemIcon = { name: icon };
|
|
22
22
|
}
|
|
23
|
-
if (
|
|
23
|
+
if (adaptableSystemIcon) {
|
|
24
24
|
const iconProps = {
|
|
25
|
-
icon:
|
|
25
|
+
icon: adaptableSystemIcon,
|
|
26
26
|
};
|
|
27
27
|
if (iconSize) {
|
|
28
28
|
iconProps.icon = Object.assign(Object.assign({}, iconProps.icon), { size: iconSize });
|
|
@@ -30,10 +30,10 @@ const SimpleButton = React.forwardRef((props, theRef) => {
|
|
|
30
30
|
if (typeof buttonProps.color === 'string') {
|
|
31
31
|
iconProps.icon = Object.assign(Object.assign({}, iconProps.icon), { style: { color: buttonProps.color } });
|
|
32
32
|
}
|
|
33
|
-
icon = React.createElement(
|
|
33
|
+
icon = React.createElement(Icon_1.IconComponent, Object.assign({}, iconProps));
|
|
34
34
|
}
|
|
35
|
-
if ((0,
|
|
36
|
-
icon = React.createElement(
|
|
35
|
+
if ((0, Icon_1.isAdaptableCustomIcon)(icon) || (0, Icon_1.isAdaptableElementIcon)(icon)) {
|
|
36
|
+
icon = React.createElement(Icon_1.IconComponent, { icon: icon });
|
|
37
37
|
}
|
|
38
38
|
if (icon) {
|
|
39
39
|
children =
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AdaptableSystemIconName } from '../../types';
|
|
3
3
|
export declare type ToggleProps = {
|
|
4
4
|
onPressedChange: (pressed: boolean) => void;
|
|
5
5
|
pressed?: boolean;
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: AdaptableSystemIconName;
|
|
7
7
|
};
|
|
8
8
|
export declare const Toggle: React.FunctionComponent<React.PropsWithChildren<ToggleProps>>;
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Toggle = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
6
|
+
const Icon_1 = require("../Icon");
|
|
7
7
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
8
8
|
const Toggle = (_a) => {
|
|
9
9
|
var { onPressedChange, pressed, icon, children } = _a, rest = tslib_1.__rest(_a, ["onPressedChange", "pressed", "icon", "children"]);
|
|
10
10
|
const baseClassName = 'ab-Toggle';
|
|
11
11
|
return (React.createElement("button", Object.assign({}, rest, { className: (0, join_1.default)(baseClassName, pressed && `${baseClassName}--pressed`), onClick: () => onPressedChange(!pressed) }),
|
|
12
|
-
icon && React.createElement(
|
|
12
|
+
icon && React.createElement(Icon_1.IconComponent, { icon: { name: icon } }),
|
|
13
13
|
children));
|
|
14
14
|
};
|
|
15
15
|
exports.Toggle = Toggle;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
import { IconProps } from './DefaultIcon';
|
|
4
|
-
import {
|
|
5
|
-
declare const allIcons: Record<
|
|
4
|
+
import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptableSystemIconName } from '../../PredefinedConfig/Common/AdaptableIcon';
|
|
5
|
+
declare const allIcons: Record<AdaptableSystemIconName, React.FunctionComponent<IconProps>>;
|
|
6
6
|
export declare const Icon: ({ name, style, className, tabIndex, ...props }: {
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
|
-
name:
|
|
8
|
+
name: AdaptableSystemIconName;
|
|
9
9
|
size?: number;
|
|
10
10
|
className?: string;
|
|
11
11
|
tabIndex?: number;
|
|
12
12
|
props?: React.SVGProps<SVGElement>;
|
|
13
13
|
}) => JSX.Element;
|
|
14
|
-
export declare const iconToString: (icon:
|
|
14
|
+
export declare const iconToString: (icon: AdaptableSystemIcon | AdaptableCustomIcon, style?: CSSProperties) => string;
|
|
15
15
|
export default allIcons;
|
|
@@ -144,7 +144,7 @@ const instrument_1 = tslib_1.__importDefault(require("./instrument"));
|
|
|
144
144
|
const analysis_1 = tslib_1.__importDefault(require("./analysis"));
|
|
145
145
|
const visibility_1 = tslib_1.__importDefault(require("./visibility"));
|
|
146
146
|
const visibility_off_1 = tslib_1.__importDefault(require("./visibility-off"));
|
|
147
|
-
const
|
|
147
|
+
const Icon_1 = require("../Icon");
|
|
148
148
|
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
149
149
|
const allIcons = {
|
|
150
150
|
search: query_1.default,
|
|
@@ -187,8 +187,8 @@ const allIcons = {
|
|
|
187
187
|
assignment: state_management_1.default,
|
|
188
188
|
clipboard: tool_panel_1.default,
|
|
189
189
|
'traffic-lights': system_status_1.default,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
add: add_row_1.default,
|
|
191
|
+
downloaded: updated_row_1.default,
|
|
192
192
|
// others
|
|
193
193
|
edit: edit_1.default,
|
|
194
194
|
undo: undo_1.default,
|
|
@@ -226,7 +226,7 @@ const allIcons = {
|
|
|
226
226
|
'sort-desc': sort_desc_1.default,
|
|
227
227
|
logout: logout_1.default,
|
|
228
228
|
'import-export': import_export_1.default,
|
|
229
|
-
|
|
229
|
+
paperclip: attach_file_1.default,
|
|
230
230
|
info: info_1.default,
|
|
231
231
|
'cloud-upload': cloud_upload_1.default,
|
|
232
232
|
upload: upload_1.default,
|
|
@@ -265,7 +265,7 @@ const allIcons = {
|
|
|
265
265
|
'not-contains': not_contains_1.default,
|
|
266
266
|
contains: contains_1.default,
|
|
267
267
|
regex: regex_1.default,
|
|
268
|
-
|
|
268
|
+
target: track_changes_1.default,
|
|
269
269
|
menu: menu_1.default,
|
|
270
270
|
statusbar: statusbar_1.default,
|
|
271
271
|
dashboard: dashboard_1.default,
|
|
@@ -307,7 +307,7 @@ const iconToString = (icon, style) => {
|
|
|
307
307
|
if (!icon) {
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
|
-
return ReactDOMServer.renderToString(React.createElement(
|
|
310
|
+
return ReactDOMServer.renderToString(React.createElement(Icon_1.IconComponent, { icon: Object.assign(Object.assign({}, icon), { style: Object.assign(Object.assign({}, icon.style), style) }) }));
|
|
311
311
|
};
|
|
312
312
|
exports.iconToString = iconToString;
|
|
313
313
|
exports.default = allIcons;
|