@linzjs/step-ag-grid 7.13.1 → 7.15.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/dist/src/components/gridRender/GridRenderGenericCell.d.ts +10 -1
- package/dist/src/utils/testUtil.d.ts +1 -0
- package/dist/step-ag-grid.esm.js +17 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridRender/GridRenderGenericCell.tsx +17 -1
- package/src/stories/grid/GridPopoutEditDropDown.stories.tsx +0 -7
- package/src/utils/testUtil.ts +7 -0
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
import { ICellRendererParams } from "ag-grid-community";
|
|
3
3
|
import { GridBaseRow } from "../Grid";
|
|
4
4
|
import { ColDefT } from "../GridCell";
|
|
5
|
-
import { EditableCallbackParams, SuppressKeyboardEventParams } from "ag-grid-community/dist/lib/entities/colDef";
|
|
5
|
+
import { EditableCallbackParams, SuppressKeyboardEventParams, ValueFormatterParams, ValueGetterParams } from "ag-grid-community/dist/lib/entities/colDef";
|
|
6
6
|
export interface RowICellRendererParams<RowType extends GridBaseRow> extends ICellRendererParams {
|
|
7
7
|
data: RowType;
|
|
8
8
|
}
|
|
9
9
|
export interface RowEditableCallbackParams<RowType extends GridBaseRow> extends EditableCallbackParams {
|
|
10
10
|
data: RowType;
|
|
11
11
|
}
|
|
12
|
+
export interface RowValueFormatterParams<RowType extends GridBaseRow> extends ValueFormatterParams {
|
|
13
|
+
data: RowType;
|
|
14
|
+
}
|
|
15
|
+
export interface RowValueGetterParams<RowType extends GridBaseRow> extends ValueGetterParams {
|
|
16
|
+
data: RowType;
|
|
17
|
+
}
|
|
12
18
|
export interface GenericCellColDef<RowType extends GridBaseRow> extends ColDefT<RowType> {
|
|
19
|
+
cellRenderer?: (params: RowICellRendererParams<RowType>) => any;
|
|
13
20
|
cellRendererParams?: GenericCellRendererParams<RowType>;
|
|
21
|
+
valueGetter?: string | ((params: RowValueGetterParams<RowType>) => any);
|
|
22
|
+
valueFormatter?: string | ((params: RowValueFormatterParams<RowType>) => string);
|
|
14
23
|
editable?: boolean | ((params: RowEditableCallbackParams<RowType>) => boolean);
|
|
15
24
|
}
|
|
16
25
|
export interface GenericCellRendererParams<RowType extends GridBaseRow> {
|
|
@@ -17,6 +17,7 @@ export declare const getMultiSelectOptions: () => Promise<{
|
|
|
17
17
|
}[]>;
|
|
18
18
|
export declare const findMultiSelectOption: (value: string) => Promise<HTMLElement>;
|
|
19
19
|
export declare const clickMultiSelectOption: (value: string) => Promise<void>;
|
|
20
|
+
export declare const typeInput: (value: string) => Promise<void>;
|
|
20
21
|
export declare const typeOtherInput: (value: string) => Promise<void>;
|
|
21
22
|
export declare const typeOtherTextArea: (value: string) => Promise<void>;
|
|
22
23
|
export declare const closeMenu: () => void;
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -24735,6 +24735,22 @@ var clickMultiSelectOption = function (value) { return __awaiter(void 0, void 0,
|
|
|
24735
24735
|
}
|
|
24736
24736
|
});
|
|
24737
24737
|
}); };
|
|
24738
|
+
var typeInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24739
|
+
var openMenu, input;
|
|
24740
|
+
return __generator(this, function (_a) {
|
|
24741
|
+
switch (_a.label) {
|
|
24742
|
+
case 0: return [4 /*yield*/, findOpenMenu()];
|
|
24743
|
+
case 1:
|
|
24744
|
+
openMenu = _a.sent();
|
|
24745
|
+
return [4 /*yield*/, findQuick({ child: { tagName: "input[type='text']" } }, openMenu)];
|
|
24746
|
+
case 2:
|
|
24747
|
+
input = _a.sent();
|
|
24748
|
+
userEvent.clear(input);
|
|
24749
|
+
userEvent.type(input, value);
|
|
24750
|
+
return [2 /*return*/];
|
|
24751
|
+
}
|
|
24752
|
+
});
|
|
24753
|
+
}); };
|
|
24738
24754
|
var typeOtherInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
|
|
24739
24755
|
var openMenu, otherInput;
|
|
24740
24756
|
return __generator(this, function (_a) {
|
|
@@ -24795,5 +24811,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
|
|
|
24795
24811
|
});
|
|
24796
24812
|
}); };
|
|
24797
24813
|
|
|
24798
|
-
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, GenericCellEditorComponentWrapper, Grid, GridCell, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridPopoutEditMultiSelect, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionValueFormatter, bearingNumberParser, bearingStringValidator, bearingValueFormatter, clickActionButton, clickMenuOption, clickMultiSelectOption, closeMenu, convertDDToDMS, countRows, deselectRow, editCell, findActionButton, findCell, findCellContains, findMenuOption, findMultiSelectOption, findParentWithClass, findRow, fnOrVar, getMultiSelectOptions, hasParentClass, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait$2 as wait };
|
|
24814
|
+
export { ActionButton, ComponentLoadingWrapper, ControlledMenu, Editor, FocusableItem, GenericCellEditorComponentWrapper, Grid, GridCell, GridCellMultiEditor, GridCellMultiSelectClassRules, GridCellRenderer, GridContext, GridContextProvider, GridFormDropDown, GridFormEditBearing, GridFormMessage, GridFormMultiSelect, GridFormPopoverMenu, GridFormSubComponentTextArea, GridFormSubComponentTextInput, GridFormTextArea, GridFormTextInput, GridHeaderSelect, GridIcon, GridLoadableCell, GridPopoutEditMultiSelect, GridPopoverContext, GridPopoverContextProvider, GridPopoverEditBearing, GridPopoverEditBearingCorrection, GridPopoverEditDropDown, GridPopoverMenu, GridPopoverMessage, GridPopoverTextArea, GridPopoverTextInput, GridRenderPopoutMenuCell, GridSubComponentContext, GridUpdatingContext, GridUpdatingContextProvider, Menu, MenuButton, MenuDivider, MenuGroup, MenuHeader, MenuHeaderItem, MenuHeaderString, MenuItem, MenuRadioGroup, MenuSeparator, MenuSeparatorString, PopoutMenuSeparator, SubMenu, TextAreaInput, TextInputFormatted, bearingCorrectionValueFormatter, bearingNumberParser, bearingStringValidator, bearingValueFormatter, clickActionButton, clickMenuOption, clickMultiSelectOption, closeMenu, convertDDToDMS, countRows, deselectRow, editCell, findActionButton, findCell, findCellContains, findMenuOption, findMultiSelectOption, findParentWithClass, findRow, fnOrVar, getMultiSelectOptions, hasParentClass, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, wait$2 as wait };
|
|
24799
24815
|
//# sourceMappingURL=step-ag-grid.esm.js.map
|