@adaptabletools/adaptable 11.1.16 → 11.2.1-canary.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.
- package/bundle.cjs.js +78 -78
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- package/src/Api/AlertApi.d.ts +3 -1
- package/src/Api/ConditionalStyleApi.d.ts +3 -1
- package/src/Api/CustomSortApi.d.ts +3 -1
- package/src/Api/EventApi.d.ts +13 -0
- package/src/Api/FlashingCellApi.d.ts +3 -1
- package/src/Api/FormatColumnApi.d.ts +3 -1
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -1
- package/src/Api/Implementation/AlertApiImpl.js +3 -2
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -2
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +3 -2
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +3 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -2
- package/src/Api/Implementation/EventApiImpl.js +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -2
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +3 -2
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -0
- package/src/Api/Implementation/InternalApiImpl.js +12 -2
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +3 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -2
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +15 -5
- package/src/Api/Implementation/ScheduleApiImpl.js +15 -10
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +3 -0
- package/src/Api/PlusMinusApi.d.ts +3 -1
- package/src/Api/ScheduleApi.d.ts +15 -5
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/ToolPanelApi.d.ts +1 -2
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -1
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/SystemState.d.ts +1 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +11 -1
- package/src/Strategy/AdaptableModuleBase.d.ts +5 -0
- package/src/Strategy/AdaptableModuleBase.js +9 -0
- package/src/Strategy/AlertModule.d.ts +4 -1
- package/src/Strategy/AlertModule.js +9 -4
- package/src/Strategy/ConditionalStyleModule.d.ts +4 -1
- package/src/Strategy/ConditionalStyleModule.js +8 -3
- package/src/Strategy/CustomSortModule.d.ts +4 -1
- package/src/Strategy/CustomSortModule.js +8 -3
- package/src/Strategy/FlashingCellModule.d.ts +4 -1
- package/src/Strategy/FlashingCellModule.js +8 -5
- package/src/Strategy/FormatColumnModule.d.ts +4 -1
- package/src/Strategy/FormatColumnModule.js +8 -3
- package/src/Strategy/Interface/IModule.d.ts +1 -0
- package/src/Strategy/PlusMinusModule.d.ts +4 -1
- package/src/Strategy/PlusMinusModule.js +8 -3
- package/src/Strategy/ScheduleModule.d.ts +4 -1
- package/src/Strategy/ScheduleModule.js +12 -7
- package/src/Strategy/ShortcutModule.d.ts +4 -1
- package/src/Strategy/ShortcutModule.js +8 -3
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -2
- package/src/Utilities/Emitter.js +5 -0
- package/src/Utilities/Services/AlertService.d.ts +1 -1
- package/src/Utilities/Services/AlertService.js +7 -5
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +13 -3
- package/src/Utilities/Services/DataService.d.ts +2 -2
- package/src/Utilities/Services/DataService.js +11 -4
- package/src/Utilities/Services/ValidationService.js +5 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -4
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -0
- package/src/View/Components/Popups/AdaptableToaster.js +11 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -2
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/agGrid/Adaptable.d.ts +3 -2
- package/src/agGrid/Adaptable.js +114 -81
- package/src/agGrid/agGridHelper.js +2 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.js +13 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,6 +10,9 @@ const icons_1 = require("../../../../components/icons");
|
|
|
10
10
|
const AdaptableObjectList_1 = require("../../AdaptableObjectList");
|
|
11
11
|
const ButtonNew_1 = require("../../Buttons/ButtonNew");
|
|
12
12
|
const PopupPanel_1 = require("./PopupPanel");
|
|
13
|
+
const rebass_1 = require("rebass");
|
|
14
|
+
const CheckBox_1 = require("../../../../components/CheckBox");
|
|
15
|
+
const SystemRedux_1 = require("../../../../Redux/ActionsReducers/SystemRedux");
|
|
13
16
|
exports.AdaptablePopupModuleView = (props) => {
|
|
14
17
|
var _a, _b, _c, _d, _e;
|
|
15
18
|
/**
|
|
@@ -83,7 +86,26 @@ exports.AdaptablePopupModuleView = (props) => {
|
|
|
83
86
|
props.onClosePopup();
|
|
84
87
|
}
|
|
85
88
|
};
|
|
89
|
+
const adaptableModule = props.api.internalApi
|
|
90
|
+
.getModuleService()
|
|
91
|
+
.getModuleById(props.module.moduleInfo.ModuleName);
|
|
92
|
+
const dispatch = react_redux_1.useDispatch();
|
|
93
|
+
const showLayoutNotAssociatedObjects = react_redux_1.useSelector((state) => state.System.ShowLayoutNotAssociatedObjects);
|
|
94
|
+
const toggleButtonShowLayoutAssociatedObjects = () => {
|
|
95
|
+
if (!(adaptableModule === null || adaptableModule === void 0 ? void 0 : adaptableModule.canBeAssociatedWithLayouts())) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (!props.api.internalApi.hasLayoutSpecificObjects()) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
return (React.createElement(rebass_1.Flex, { justifyContent: "flex-start" },
|
|
102
|
+
React.createElement(CheckBox_1.CheckBox, { padding: 0, margin: 0, checked: showLayoutNotAssociatedObjects, onChange: (checked) => dispatch(SystemRedux_1.SystemLayoutShowNotAssociatedObjects(checked)) },
|
|
103
|
+
"Show ",
|
|
104
|
+
moduleInfo.FriendlyName,
|
|
105
|
+
"s not available in current Layout")));
|
|
106
|
+
};
|
|
86
107
|
return (React.createElement(PopupPanel_1.PopupPanel, { glyphicon: moduleInfo.Glyph, infoLink: moduleInfo.HelpPage, headerText: moduleInfo.FriendlyName, button: newButton, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
108
|
+
!!(items === null || items === void 0 ? void 0 : items.length) && toggleButtonShowLayoutAssociatedObjects(),
|
|
87
109
|
(items === null || items === void 0 ? void 0 : items.length) ? (React.createElement(AdaptableObjectList_1.AdaptableObjectList, { module: props.module, items: items })) : (React.createElement(EmptyContent_1.default, null, emptyContent !== null && emptyContent !== void 0 ? emptyContent : `Click 'New' to create a new ${moduleInfo.FriendlyName}`)),
|
|
88
110
|
isWizardOpen && EditWizard && (React.createElement(EditWizard, { abObjectType: abObjectType, moduleInfo: moduleInfo, data: null, popupParams: props.popupParams, configEntities: null, onCloseWizard: handleWizardClose, onFinishWizard: handleWizardClose }))));
|
|
89
111
|
};
|
|
@@ -7,10 +7,19 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
7
7
|
const AdaptablePopupAlert_1 = require("./AdaptablePopupAlert");
|
|
8
8
|
const react_toastify_1 = require("react-toastify");
|
|
9
9
|
exports.showToast = (props) => {
|
|
10
|
+
// we're doing this hack and not simply using props.api in order not to have a memory
|
|
11
|
+
// leak where the api is still kept around in memory by the toaster
|
|
12
|
+
let api = props.api;
|
|
13
|
+
const off = api.eventApi.on('AdaptableDestroy', () => {
|
|
14
|
+
api = null;
|
|
15
|
+
});
|
|
10
16
|
const toastProps = ObjectFactory_1.default.CreateToastOptions(props.api.internalApi.getAdaptableOptions().notificationsOptions, {
|
|
11
17
|
onClose: () => {
|
|
12
|
-
if (
|
|
13
|
-
|
|
18
|
+
if (api) {
|
|
19
|
+
off();
|
|
20
|
+
if (!api.isDestroyed()) {
|
|
21
|
+
api.internalApi.hidePopupAlert();
|
|
22
|
+
}
|
|
14
23
|
}
|
|
15
24
|
},
|
|
16
25
|
});
|
|
@@ -194,11 +194,11 @@ const AdaptableToolPanelComponent = (props) => {
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
const renderToolPanelConfigureButton = (initialTab) => {
|
|
197
|
-
const
|
|
197
|
+
const moduleParams = initialTab
|
|
198
198
|
? { source: 'Other', config: { initialTab } }
|
|
199
199
|
: undefined;
|
|
200
200
|
return (React.createElement(ButtonConfigure_1.ButtonConfigure, { iconSize: 16, tone: "none", marginLeft: 2, className: "ab-ToolPanel__configure-button", tooltip: 'Configure ToolPanels', onClick: () => {
|
|
201
|
-
props.api.
|
|
201
|
+
props.api.internalApi.showSettingsPanel('ToolPanel', moduleParams);
|
|
202
202
|
} }));
|
|
203
203
|
};
|
|
204
204
|
const toolPanelButtons = renderToolPanelButtons();
|
|
@@ -31,7 +31,7 @@ exports.SpecialColumnSettingsWizardStep = (props) => {
|
|
|
31
31
|
React.createElement(Tabs_1.Tabs, { marginTop: 2, autoFocus: false },
|
|
32
32
|
React.createElement(Tabs_1.Tabs.Tab, null, "Column Properties"),
|
|
33
33
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
34
|
-
React.createElement(rebass_1.Flex, { flexDirection: "
|
|
34
|
+
React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
35
35
|
React.createElement(FormLayout_1.default, { style: { width: '100%' }, columns: [
|
|
36
36
|
{ name: 'first', size: '30%' },
|
|
37
37
|
{ size: '30%', name: 'second' },
|
|
@@ -103,7 +103,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
103
103
|
*/
|
|
104
104
|
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig?: RuntimeConfig): Promise<AdaptableApi>;
|
|
105
105
|
private static collectInstance;
|
|
106
|
-
|
|
106
|
+
static forEachAdaptable(fn: (adaptable: Adaptable) => void): void;
|
|
107
107
|
private static dismissInstance;
|
|
108
108
|
constructor();
|
|
109
109
|
init(adaptableOptions: AdaptableOptions, runtimeConfig?: RuntimeConfig, _staticInit?: boolean): Promise<AdaptableApi>;
|
|
@@ -231,6 +231,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
231
231
|
enablePivot: boolean;
|
|
232
232
|
suppressMenu: boolean;
|
|
233
233
|
suppressMovable: boolean;
|
|
234
|
+
headerTooltip: string;
|
|
234
235
|
cellEditor: string | typeof AdaptableNumberEditor | typeof AdaptableDateEditor;
|
|
235
236
|
type: string[];
|
|
236
237
|
valueSetter: (params: ValueSetterParams) => any;
|
|
@@ -282,7 +283,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
282
283
|
setupColumnValueSetter({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
283
284
|
setupColumnComparator({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
284
285
|
private applyCurrentTheme;
|
|
285
|
-
private
|
|
286
|
+
private getInitialGroupOrderComparator;
|
|
286
287
|
private applyFinalRendering;
|
|
287
288
|
private isModulePresent;
|
|
288
289
|
private getPreviousColDefInfo;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -84,6 +84,43 @@ const assignColId = (colDef) => {
|
|
|
84
84
|
const RowNodeProto = all_modules_1.RowNode.prototype;
|
|
85
85
|
const RowNode_dispatchLocalEvent = RowNodeProto.dispatchLocalEvent;
|
|
86
86
|
const GridApi_setColumnDefs = all_modules_1.GridApi.prototype.setColumnDefs;
|
|
87
|
+
/**
|
|
88
|
+
* AgGrid does not expose Events.EVENT_ROW_DATA_CHANGED
|
|
89
|
+
* so we have to override `dispatchLocalEvent`
|
|
90
|
+
* and hook our own functionality into it
|
|
91
|
+
*/
|
|
92
|
+
RowNodeProto.dispatchLocalEvent = function (event) {
|
|
93
|
+
const node = event.node;
|
|
94
|
+
const result = RowNode_dispatchLocalEvent.apply(this, arguments);
|
|
95
|
+
const extractGridApiFromRowNode = (rowNode) => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
98
|
+
const rowNodeApi = (_b = (_a = rowNode) === null || _a === void 0 ? void 0 : _a.beans) === null || _b === void 0 ? void 0 : _b.gridApi;
|
|
99
|
+
if (!rowNodeApi) {
|
|
100
|
+
LoggingHelper_1.LogAdaptableWarning(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
101
|
+
}
|
|
102
|
+
return rowNodeApi;
|
|
103
|
+
};
|
|
104
|
+
// we don't know from which instance of aggrid this is coming,
|
|
105
|
+
// as this fn is shared by all instances
|
|
106
|
+
if (node) {
|
|
107
|
+
Adaptable.forEachAdaptable((adaptable) => {
|
|
108
|
+
if (extractGridApiFromRowNode(node) !== adaptable.gridOptions.api) {
|
|
109
|
+
// the event is coming from another aggrid instance
|
|
110
|
+
// so IGNORE IT
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
// we're on the correct instance, so do this
|
|
114
|
+
//@ts-ignore
|
|
115
|
+
const fn = adaptable.rowListeners ? adaptable.rowListeners[event.type] : null;
|
|
116
|
+
if (fn) {
|
|
117
|
+
console.log('fire event', event);
|
|
118
|
+
fn(event);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
};
|
|
87
124
|
/**
|
|
88
125
|
* Since column definitions can be nested and have groups
|
|
89
126
|
* we use this forEachColumn function to call the passed-in `fn`
|
|
@@ -336,9 +373,9 @@ class Adaptable {
|
|
|
336
373
|
this.agGridMenuHelper = new agGridMenuHelper_1.agGridMenuHelper(this, this.gridOptions);
|
|
337
374
|
// Build the default group sort comparator - will get custom sort values (but not functions) in real time
|
|
338
375
|
// TODO: if a custom 'aggFunc' property is defined (see setupColumnAggFunc()), it won't be evaluated
|
|
339
|
-
if (!this.
|
|
376
|
+
if (!this.getInitialGroupOrderComparator(this.gridOptions) &&
|
|
340
377
|
this.adaptableOptions.generalOptions.autoOrderGroupedColumns) {
|
|
341
|
-
this.gridOptions.
|
|
378
|
+
this.gridOptions.initialGroupOrderComparator =
|
|
342
379
|
this.agGridHelper.runAdaptableGroupComparerFunction();
|
|
343
380
|
}
|
|
344
381
|
// we prefer the grid to be NOT instantiated so that we can do it
|
|
@@ -704,6 +741,7 @@ class Adaptable {
|
|
|
704
741
|
this._emit('GridFiltered');
|
|
705
742
|
this.setSelectedCells();
|
|
706
743
|
this.setSelectedRows();
|
|
744
|
+
this.updateColumnFilterActiveState();
|
|
707
745
|
}
|
|
708
746
|
isGroupRowNode(rowNode) {
|
|
709
747
|
if (!rowNode) {
|
|
@@ -1159,7 +1197,7 @@ class Adaptable {
|
|
|
1159
1197
|
}
|
|
1160
1198
|
}
|
|
1161
1199
|
setLayout(layout) {
|
|
1162
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1200
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1163
1201
|
if (!layout) {
|
|
1164
1202
|
layout = this.api.layoutApi.getCurrentLayout();
|
|
1165
1203
|
}
|
|
@@ -1195,14 +1233,9 @@ class Adaptable {
|
|
|
1195
1233
|
}, {});
|
|
1196
1234
|
let pivotedColumnsIndexesMap = {};
|
|
1197
1235
|
const aggregationFunctionsColumnsMap = layout.AggregationColumns || {};
|
|
1198
|
-
const
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
];
|
|
1202
|
-
const columnsToShow = !layout.EnablePivot ? layout.Columns : columnsInPivot || [];
|
|
1203
|
-
if (columnsInPivot.length && layout.RowGroupedColumns) {
|
|
1204
|
-
columnsInPivot.push(...layout.RowGroupedColumns);
|
|
1205
|
-
}
|
|
1236
|
+
const columnsToShow = !layout.EnablePivot
|
|
1237
|
+
? layout.Columns
|
|
1238
|
+
: ((_b = this.gridOptions.columnApi.getSecondaryColumns()) === null || _b === void 0 ? void 0 : _b.map((column) => column.getColId())) || [];
|
|
1206
1239
|
let isChanged = false;
|
|
1207
1240
|
const colsToAutoSize = {};
|
|
1208
1241
|
let newColState = this.getSortedColumnStateForVisibleColumns(columnsToShow, columnsState);
|
|
@@ -1211,7 +1244,9 @@ class Adaptable {
|
|
|
1211
1244
|
var _a, _b, _c, _d;
|
|
1212
1245
|
const { colId } = colState;
|
|
1213
1246
|
const oldColState = columnsStateMap[colId];
|
|
1214
|
-
const hide =
|
|
1247
|
+
const hide = this.api.columnApi.isAutoPivotColumn(colId)
|
|
1248
|
+
? colState.hide
|
|
1249
|
+
: !layoutColumnsMap[colId];
|
|
1215
1250
|
const newColState = Object.assign(Object.assign({}, oldColState), { hide });
|
|
1216
1251
|
if (layout.ColumnWidthMap && layout.ColumnWidthMap[colId] != null) {
|
|
1217
1252
|
newColState.width = layout.ColumnWidthMap[colId];
|
|
@@ -1337,7 +1372,7 @@ class Adaptable {
|
|
|
1337
1372
|
// this.updateColumnsIntoStore();// no longer needed
|
|
1338
1373
|
}
|
|
1339
1374
|
const colsToAutoSizeArray = Object.keys(colsToAutoSize);
|
|
1340
|
-
if (pivoted && ((
|
|
1375
|
+
if (pivoted && ((_d = (_c = this.adaptableOptions) === null || _c === void 0 ? void 0 : _c.layoutOptions) === null || _d === void 0 ? void 0 : _d.autoSizeColumnsInPivotLayout)) {
|
|
1341
1376
|
// when a pivoted layout loads, autosize all cols
|
|
1342
1377
|
requestAnimationFrame(() => {
|
|
1343
1378
|
this.gridOptions.columnApi.autoSizeAllColumns();
|
|
@@ -1354,9 +1389,9 @@ class Adaptable {
|
|
|
1354
1389
|
}, 100);
|
|
1355
1390
|
return;
|
|
1356
1391
|
}
|
|
1357
|
-
if (((
|
|
1392
|
+
if (((_f = (_e = this.adaptableOptions) === null || _e === void 0 ? void 0 : _e.layoutOptions) === null || _f === void 0 ? void 0 : _f.autoSizeColumnsInLayout) &&
|
|
1358
1393
|
colsToAutoSizeArray.length) {
|
|
1359
|
-
(
|
|
1394
|
+
(_g = this.gridOptions.columnApi) === null || _g === void 0 ? void 0 : _g.autoSizeColumns(colsToAutoSizeArray);
|
|
1360
1395
|
}
|
|
1361
1396
|
this.forPlugins((plugin) => {
|
|
1362
1397
|
if (plugin.afterSetLayout) {
|
|
@@ -2063,6 +2098,7 @@ class Adaptable {
|
|
|
2063
2098
|
enablePivot: freeTextColumnSettings.Pivotable,
|
|
2064
2099
|
suppressMenu: freeTextColumnSettings.SuppressMenu,
|
|
2065
2100
|
suppressMovable: freeTextColumnSettings.SuppressMovable,
|
|
2101
|
+
headerTooltip: freeTextColumnSettings.HeaderToolTip,
|
|
2066
2102
|
cellEditor: dataTypeEditor !== null && dataTypeEditor !== void 0 ? dataTypeEditor : (freeTextColumn.TextEditor && freeTextColumn.TextEditor == 'Large'
|
|
2067
2103
|
? 'agLargeTextCellEditor'
|
|
2068
2104
|
: 'agTextCellEditor'),
|
|
@@ -2254,6 +2290,9 @@ class Adaptable {
|
|
|
2254
2290
|
return this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query);
|
|
2255
2291
|
};
|
|
2256
2292
|
}
|
|
2293
|
+
if (calculatedColumnSettings.HeaderToolTip) {
|
|
2294
|
+
newColDef.headerTooltip = calculatedColumnSettings.HeaderToolTip;
|
|
2295
|
+
}
|
|
2257
2296
|
LoggingHelper_1.LogAdaptableInfo('Setting up Calculated Column: ' + calculatedColumn.ColumnId);
|
|
2258
2297
|
return newColDef;
|
|
2259
2298
|
});
|
|
@@ -2364,16 +2403,27 @@ class Adaptable {
|
|
|
2364
2403
|
this.gridOptions = null;
|
|
2365
2404
|
this.adaptableOptions = null;
|
|
2366
2405
|
(_b = this.CalculatedColumnExpressionService) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
2406
|
+
this.CalculatedColumnExpressionService = null;
|
|
2367
2407
|
(_c = this.DataService) === null || _c === void 0 ? void 0 : _c.destroy();
|
|
2408
|
+
this.DataService = null;
|
|
2368
2409
|
(_d = this.EntitlementService) === null || _d === void 0 ? void 0 : _d.destroy();
|
|
2410
|
+
this.EntitlementService = null;
|
|
2369
2411
|
(_e = this.ReportService) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
2412
|
+
this.ReportService = null;
|
|
2370
2413
|
(_f = this.ModuleService) === null || _f === void 0 ? void 0 : _f.destroy();
|
|
2414
|
+
this.ModuleService = null;
|
|
2371
2415
|
(_g = this.ValidationService) === null || _g === void 0 ? void 0 : _g.destroy();
|
|
2416
|
+
this.ValidationService = null;
|
|
2372
2417
|
(_h = this.QueryLanguageService) === null || _h === void 0 ? void 0 : _h.destroy();
|
|
2418
|
+
this.QueryLanguageService = null;
|
|
2373
2419
|
(_j = this.AlertService) === null || _j === void 0 ? void 0 : _j.destroy();
|
|
2420
|
+
this.AlertService = null;
|
|
2374
2421
|
(_k = this.TeamSharingService) === null || _k === void 0 ? void 0 : _k.destroy();
|
|
2422
|
+
this.TeamSharingService = null;
|
|
2375
2423
|
(_l = this.MetamodelService) === null || _l === void 0 ? void 0 : _l.destroy();
|
|
2424
|
+
this.MetamodelService = null;
|
|
2376
2425
|
(_m = this.LicenseService) === null || _m === void 0 ? void 0 : _m.destroy();
|
|
2426
|
+
this.LicenseService = null;
|
|
2377
2427
|
this.isDestroyed = true;
|
|
2378
2428
|
}
|
|
2379
2429
|
// really really need to do this properly but as a temp fix lets create a default style for when no data
|
|
@@ -2658,68 +2708,27 @@ class Adaptable {
|
|
|
2658
2708
|
}
|
|
2659
2709
|
},
|
|
2660
2710
|
};
|
|
2661
|
-
/**
|
|
2662
|
-
* AgGrid does not expose Events.EVENT_ROW_DATA_CHANGED
|
|
2663
|
-
* so we have to override `dispatchLocalEvent`
|
|
2664
|
-
* and hook our own functionality into it
|
|
2665
|
-
*/
|
|
2666
|
-
RowNodeProto.dispatchLocalEvent = function (event) {
|
|
2667
|
-
const node = event.node;
|
|
2668
|
-
const result = RowNode_dispatchLocalEvent.apply(this, arguments);
|
|
2669
|
-
const extractGridApiFromRowNode = (rowNode) => {
|
|
2670
|
-
var _a, _b;
|
|
2671
|
-
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
2672
|
-
const rowNodeApi = (_b = (_a = rowNode) === null || _a === void 0 ? void 0 : _a.beans) === null || _b === void 0 ? void 0 : _b.gridApi;
|
|
2673
|
-
if (!rowNodeApi) {
|
|
2674
|
-
LoggingHelper_1.LogAdaptableWarning(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
2675
|
-
}
|
|
2676
|
-
return rowNodeApi;
|
|
2677
|
-
};
|
|
2678
|
-
// we don't know from which instance of aggrid this is coming,
|
|
2679
|
-
// as this fn is shared by all instances
|
|
2680
|
-
if (node) {
|
|
2681
|
-
Adaptable.forEachAdaptable((adaptable) => {
|
|
2682
|
-
if (extractGridApiFromRowNode(node) !== adaptable.gridOptions.api) {
|
|
2683
|
-
// the event is coming from another aggrid instance
|
|
2684
|
-
// so IGNORE IT
|
|
2685
|
-
return;
|
|
2686
|
-
}
|
|
2687
|
-
// we're on the correct instance, so do this
|
|
2688
|
-
const fn = adaptable.rowListeners ? adaptable.rowListeners[event.type] : null;
|
|
2689
|
-
if (fn) {
|
|
2690
|
-
fn(event);
|
|
2691
|
-
}
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
return result;
|
|
2695
|
-
};
|
|
2696
2711
|
// We plug our filter mechanism and if there is already something like external widgets... we save ref to the function
|
|
2697
|
-
const
|
|
2698
|
-
this.gridOptions.isExternalFilterPresent = () => {
|
|
2712
|
+
const original_isExternalFilterPresent = this.gridOptions.isExternalFilterPresent;
|
|
2713
|
+
this.gridOptions.isExternalFilterPresent = (params) => {
|
|
2714
|
+
if (this.isDestroyed) {
|
|
2715
|
+
return true;
|
|
2716
|
+
}
|
|
2699
2717
|
const columnFilters = this.api.filterApi.getAllColumnFilter();
|
|
2700
2718
|
const isFilterActive = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
2701
2719
|
const isQueryActive = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.api.queryApi.getCurrentQuery());
|
|
2702
|
-
/**
|
|
2703
|
-
* Changing the column filterState sync breaks the rendering of the custom filter component.
|
|
2704
|
-
* I think that changing the column definition while ag-grid determines if a column is filtered
|
|
2705
|
-
* breaks the logic of the custom component.
|
|
2706
|
-
*
|
|
2707
|
-
* Result:
|
|
2708
|
-
* - custom filters in sate
|
|
2709
|
-
* - refresh page, the ag-grid filter is rendered instead of adaptable custom-filter-component.
|
|
2710
|
-
*/
|
|
2711
|
-
requestAnimationFrame(() => {
|
|
2712
|
-
this.updateColumnFilterActiveState();
|
|
2713
|
-
});
|
|
2714
2720
|
return (isFilterActive ||
|
|
2715
2721
|
isQueryActive ||
|
|
2716
2722
|
// it means that originaldoesExternalFilterPass will be called so we reinit that collection
|
|
2717
|
-
(
|
|
2723
|
+
(original_isExternalFilterPresent ? original_isExternalFilterPresent(params) : false));
|
|
2718
2724
|
};
|
|
2719
2725
|
const originaldoesExternalFilterPass = this.gridOptions.doesExternalFilterPass;
|
|
2720
2726
|
const evaluateQueryOnClient = this.api.internalApi.runModuleInAdaptableQL('Query');
|
|
2721
2727
|
const evaluateFilterOnClient = this.api.internalApi.runModuleInAdaptableQL('Filter');
|
|
2722
2728
|
this.gridOptions.doesExternalFilterPass = (node) => {
|
|
2729
|
+
if (this.isDestroyed) {
|
|
2730
|
+
return true;
|
|
2731
|
+
}
|
|
2723
2732
|
// first we assess Query (if its running locally)
|
|
2724
2733
|
if (evaluateQueryOnClient && !this.isGroupRowNode(node)) {
|
|
2725
2734
|
const currentQuery = this.api.queryApi.getCurrentQuery();
|
|
@@ -2768,22 +2777,32 @@ class Adaptable {
|
|
|
2768
2777
|
updateColumnFilterActiveState() {
|
|
2769
2778
|
const columnFilters = this.api.filterApi.getAllColumnFilter();
|
|
2770
2779
|
const isFilterActive = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
2780
|
+
const columnsWithActiveFilters = {};
|
|
2771
2781
|
if (isFilterActive) {
|
|
2772
2782
|
// used in particular at init time to show the filter icon correctly
|
|
2773
2783
|
for (const colFilter of columnFilters) {
|
|
2774
2784
|
const agGridCol = this.gridOptions.columnApi.getColumn(colFilter.ColumnId);
|
|
2775
|
-
if (agGridCol
|
|
2776
|
-
agGridCol.
|
|
2785
|
+
if (agGridCol) {
|
|
2786
|
+
columnsWithActiveFilters[agGridCol.getColId()] = true;
|
|
2787
|
+
if (!agGridCol.isFilterActive()) {
|
|
2788
|
+
agGridCol.setFilterActive(true);
|
|
2789
|
+
}
|
|
2777
2790
|
}
|
|
2778
2791
|
}
|
|
2779
2792
|
}
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2793
|
+
const agFilterModel = this.gridOptions.api.getFilterModel();
|
|
2794
|
+
(this.gridOptions.columnApi.getAllColumns() || []).forEach((col) => {
|
|
2795
|
+
/**
|
|
2796
|
+
* When ag-grid filters are used active state should not be removed for all columns.
|
|
2797
|
+
* Need to check if the column has a filter model.
|
|
2798
|
+
*/
|
|
2799
|
+
const isColumnInFilterModel = agFilterModel && agFilterModel[col.getColId()];
|
|
2800
|
+
if (!isColumnInFilterModel &&
|
|
2801
|
+
!columnsWithActiveFilters[col.getColId()] &&
|
|
2802
|
+
col.isFilterActive()) {
|
|
2803
|
+
col.setFilterActive(false);
|
|
2804
|
+
}
|
|
2805
|
+
});
|
|
2787
2806
|
}
|
|
2788
2807
|
buildStandaloneColumnHeader(adaptableColumn) {
|
|
2789
2808
|
return this.agGridMenuHelper.buildStandaloneColumnHeader(adaptableColumn);
|
|
@@ -2854,7 +2873,15 @@ class Adaptable {
|
|
|
2854
2873
|
this.gridOptionsPropertyCache.set(userKey, value);
|
|
2855
2874
|
}
|
|
2856
2875
|
const userValue = this.gridOptionsPropertyCache.get(userKey);
|
|
2857
|
-
const adaptableValue =
|
|
2876
|
+
const adaptableValue = (...args) => {
|
|
2877
|
+
if (this.isDestroyed) {
|
|
2878
|
+
return;
|
|
2879
|
+
}
|
|
2880
|
+
if (propertyGetter) {
|
|
2881
|
+
return propertyGetter(userValue)(...args);
|
|
2882
|
+
}
|
|
2883
|
+
return undefined;
|
|
2884
|
+
};
|
|
2858
2885
|
if (adaptableValue != null) {
|
|
2859
2886
|
this.gridOptionsPropertyCache.set(adaptableKey, adaptableValue);
|
|
2860
2887
|
}
|
|
@@ -3211,7 +3238,14 @@ class Adaptable {
|
|
|
3211
3238
|
if (cellDataChangedInfo.oldValue === cellDataChangedInfo.newValue) {
|
|
3212
3239
|
return true;
|
|
3213
3240
|
}
|
|
3214
|
-
|
|
3241
|
+
/**
|
|
3242
|
+
* Validate on the future row, with the new value.
|
|
3243
|
+
* structuredClone fails, it contains functions.
|
|
3244
|
+
*/
|
|
3245
|
+
const newRow = Object.assign(Object.assign({}, params.node), { data: Object.assign({}, params.node.data) });
|
|
3246
|
+
newRow.data[field] = params.newValue;
|
|
3247
|
+
const cellDataChangeInfoForSyncValidation = Object.assign(Object.assign({}, cellDataChangedInfo), { rowNode: newRow });
|
|
3248
|
+
if (!this.ValidationService.performValidation(cellDataChangeInfoForSyncValidation)) {
|
|
3215
3249
|
return false;
|
|
3216
3250
|
}
|
|
3217
3251
|
const onServerValidationCompleted = () => { };
|
|
@@ -3249,10 +3283,10 @@ class Adaptable {
|
|
|
3249
3283
|
applyCurrentTheme() {
|
|
3250
3284
|
this.api.themeApi.applyCurrentTheme();
|
|
3251
3285
|
}
|
|
3252
|
-
|
|
3253
|
-
var _a;
|
|
3254
|
-
// fallback to deprecated
|
|
3255
|
-
return (_a = gridOptions.
|
|
3286
|
+
getInitialGroupOrderComparator(gridOptions) {
|
|
3287
|
+
var _a, _b;
|
|
3288
|
+
// fallback to deprecated forms
|
|
3289
|
+
return ((_b = (_a = gridOptions.initialGroupOrderComparator) !== null && _a !== void 0 ? _a : gridOptions.defaultGroupOrderComparator) !== null && _b !== void 0 ? _b : gridOptions.defaultGroupSortComparator);
|
|
3256
3290
|
}
|
|
3257
3291
|
applyFinalRendering() {
|
|
3258
3292
|
this.embedColumnMenu = this.isModulePresent('menu');
|
|
@@ -4178,7 +4212,6 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4178
4212
|
data: node.data,
|
|
4179
4213
|
value: this.getRawValueFromRowNode(node, column.getId()),
|
|
4180
4214
|
rowIndex,
|
|
4181
|
-
$scope: {},
|
|
4182
4215
|
api: this.gridOptions.api,
|
|
4183
4216
|
columnApi: this.gridOptions.columnApi,
|
|
4184
4217
|
context: {},
|
|
@@ -526,7 +526,8 @@ class agGridHelper {
|
|
|
526
526
|
}
|
|
527
527
|
runAdaptableGroupComparerFunction() {
|
|
528
528
|
const adaptable = this.adaptable;
|
|
529
|
-
return function compareItemsOfCustomSort(
|
|
529
|
+
return function compareItemsOfCustomSort(params) {
|
|
530
|
+
const { nodeA, nodeB } = params;
|
|
530
531
|
let firstGroupedColumn = adaptable.getFirstGroupedColumn();
|
|
531
532
|
if (firstGroupedColumn) {
|
|
532
533
|
const definedColumnComparator = adaptable.getActiveColumnComparator(firstGroupedColumn.columnId, adaptable.api.customSortApi.getCustomSortByColumn(firstGroupedColumn.columnId), adaptable.api.internalApi.getCustomSortComparer(firstGroupedColumn));
|
|
@@ -15,4 +15,4 @@ export declare type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'def
|
|
|
15
15
|
showWeekNumber?: boolean;
|
|
16
16
|
showOutsideDays?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "
|
|
18
|
+
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "showClearButton" | "showOutsideDays" | "showWeekNumber" | "onHide" | "datepickerButtons" | "dateProps"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -8,5 +8,5 @@ export declare type InputProps = HTMLProps<HTMLInputElement> & {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
list?: any;
|
|
10
10
|
} & BoxProps;
|
|
11
|
-
declare const Input: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "
|
|
11
|
+
declare const Input: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export default Input;
|
|
@@ -8,5 +8,5 @@ declare type TypeProps = HTMLProps<HTMLElement> & {
|
|
|
8
8
|
index?: number;
|
|
9
9
|
selectionId?: string | number;
|
|
10
10
|
};
|
|
11
|
-
declare const ListGroupItem: React.ForwardRefExoticComponent<Pick<TypeProps, "max" | "required" | "default" | "high" | "low" | "active" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "height" | "translate" | "width" | "children" | "key" | "list" | "step" | "
|
|
11
|
+
declare const ListGroupItem: React.ForwardRefExoticComponent<Pick<TypeProps, "max" | "required" | "default" | "high" | "low" | "active" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "height" | "translate" | "width" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "index" | "factory" | "noZebra" | "selectionId"> & React.RefAttributes<unknown>>;
|
|
12
12
|
export default ListGroupItem;
|