@linzjs/step-ag-grid 7.16.5 → 7.17.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.
@@ -7,6 +7,7 @@ export declare const findCell: (rowId: number | string, colId: string, within?:
7
7
  export declare const findCellContains: (rowId: number | string, colId: string, text: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
8
8
  export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
9
9
  export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
10
+ export declare const isCellReadOnly: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<boolean>;
10
11
  export declare const queryMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement | null>;
11
12
  export declare const findMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement>;
12
13
  export declare const validateMenuOptions: (rowId: number | string, colId: string, expectedMenuOptions: Array<string>) => Promise<boolean>;
@@ -24632,6 +24632,17 @@ var editCell = function (rowId, colId, within) { return __awaiter(void 0, void 0
24632
24632
  }
24633
24633
  });
24634
24634
  }); };
24635
+ var isCellReadOnly = function (rowId, colId, within) { return __awaiter(void 0, void 0, void 0, function () {
24636
+ var cell;
24637
+ return __generator(this, function (_a) {
24638
+ switch (_a.label) {
24639
+ case 0: return [4 /*yield*/, findCell(rowId, colId, within)];
24640
+ case 1:
24641
+ cell = _a.sent();
24642
+ return [2 /*return*/, cell.className.includes("GridCell-reaonly")];
24643
+ }
24644
+ });
24645
+ }); };
24635
24646
  var findOpenMenu = function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
24636
24647
  return [2 /*return*/, findQuick({ classes: ".szh-menu--state-open" })];
24637
24648
  }); }); };
@@ -24791,7 +24802,7 @@ var typeInput = function (value, filter) { return __awaiter(void 0, void 0, void
24791
24802
  var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0, function () {
24792
24803
  return __generator(this, function (_a) {
24793
24804
  switch (_a.label) {
24794
- case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[type='text']" } })];
24805
+ case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[type='text'], textarea" } })];
24795
24806
  case 1:
24796
24807
  _a.sent();
24797
24808
  return [2 /*return*/];
@@ -24799,7 +24810,7 @@ var typeOnlyInput = function (value) { return __awaiter(void 0, void 0, void 0,
24799
24810
  });
24800
24811
  }); };
24801
24812
  var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, void 0, void 0, function () {
24802
- var labels;
24813
+ var labels, inputId;
24803
24814
  return __generator(this, function (_a) {
24804
24815
  switch (_a.label) {
24805
24816
  case 0:
@@ -24810,7 +24821,8 @@ var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, vo
24810
24821
  if (labels.length > 1) {
24811
24822
  throw Error("Multiple labels found for text: ".concat(labelText));
24812
24823
  }
24813
- return [4 /*yield*/, typeInput(value, { child: { tagName: "input[id='".concat(labels[0].getAttribute("for"), "']") } })];
24824
+ inputId = labels[0].getAttribute("for");
24825
+ return [4 /*yield*/, typeInput(value, { child: { tagName: "input[id='".concat(inputId, "'], textarea[id='").concat(inputId, "']") } })];
24814
24826
  case 1:
24815
24827
  _a.sent();
24816
24828
  return [2 /*return*/];
@@ -24820,7 +24832,9 @@ var typeInputByLabel = function (value, labelText) { return __awaiter(void 0, vo
24820
24832
  var typeInputByPlaceholder = function (value, placeholder) { return __awaiter(void 0, void 0, void 0, function () {
24821
24833
  return __generator(this, function (_a) {
24822
24834
  switch (_a.label) {
24823
- case 0: return [4 /*yield*/, typeInput(value, { child: { tagName: "input[placeholder='".concat(placeholder, "']") } })];
24835
+ case 0: return [4 /*yield*/, typeInput(value, {
24836
+ child: { tagName: "input[placeholder='".concat(placeholder, "'], textarea[placeholder='").concat(placeholder, "']") }
24837
+ })];
24824
24838
  case 1:
24825
24839
  _a.sent();
24826
24840
  return [2 /*return*/];
@@ -24875,5 +24889,5 @@ var clickActionButton = function (text, container) { return __awaiter(void 0, vo
24875
24889
  });
24876
24890
  }); };
24877
24891
 
24878
- 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, typeInputByLabel, typeInputByPlaceholder, typeOnlyInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, validateMenuOptions, wait$2 as wait };
24892
+ 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, isCellReadOnly, isFloat, isNotEmpty, openAndClickMenuOption, queryMenuOption, queryRow, selectCell, selectRow, stringByteLengthIsInvalid, suppressCellKeyboardEvents, typeInputByLabel, typeInputByPlaceholder, typeOnlyInput, typeOtherInput, typeOtherTextArea, useDeferredPromise, useGridPopoverContext, useGridPopoverHook, useMenuState, usePostSortRowsHook, validateMenuOptions, wait$2 as wait };
24879
24893
  //# sourceMappingURL=step-ag-grid.esm.js.map