@linzjs/step-ag-grid 20.0.0 → 21.0.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.
Files changed (180) hide show
  1. package/dist/src/components/ComponentLoadingWrapper.d.ts +9 -9
  2. package/dist/src/components/Grid.d.ts +80 -80
  3. package/dist/src/components/GridCell.d.ts +63 -27
  4. package/dist/src/components/GridCell.test.d.ts +1 -1
  5. package/dist/src/components/GridCellFiller.d.ts +5 -4
  6. package/dist/src/components/GridCellMultiEditor.d.ts +18 -18
  7. package/dist/src/components/GridCellMultiSelectClassRules.d.ts +2 -2
  8. package/dist/src/components/GridIcon.d.ts +9 -9
  9. package/dist/src/components/GridLoadableCell.d.ts +1 -1
  10. package/dist/src/components/GridNoRowsOverlay.d.ts +9 -9
  11. package/dist/src/components/GridPopoverHook.d.ts +12 -12
  12. package/dist/src/components/GridWrapper.d.ts +5 -5
  13. package/dist/src/components/PostSortRowsHook.d.ts +11 -11
  14. package/dist/src/components/gridFilter/GridFilterButtons.d.ts +16 -16
  15. package/dist/src/components/gridFilter/GridFilterColumnsToggle.d.ts +5 -5
  16. package/dist/src/components/gridFilter/GridFilterDownloadCsvButton.d.ts +2 -2
  17. package/dist/src/components/gridFilter/GridFilterHeaderIconButton.d.ts +11 -11
  18. package/dist/src/components/gridFilter/GridFilterQuick.d.ts +5 -5
  19. package/dist/src/components/gridFilter/GridFilters.d.ts +2 -2
  20. package/dist/src/components/gridFilter/index.d.ts +7 -7
  21. package/dist/src/components/gridFilter/useGridFilter.d.ts +3 -3
  22. package/dist/src/components/gridForm/GridFormDropDown.d.ts +37 -37
  23. package/dist/src/components/gridForm/GridFormEditBearing.d.ts +12 -12
  24. package/dist/src/components/gridForm/GridFormMessage.d.ts +7 -7
  25. package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +36 -36
  26. package/dist/src/components/gridForm/GridFormMultiSelectGrid.d.ts +24 -24
  27. package/dist/src/components/gridForm/GridFormPopoverMenu.d.ts +36 -36
  28. package/dist/src/components/gridForm/GridFormSubComponentTextArea.d.ts +12 -12
  29. package/dist/src/components/gridForm/GridFormSubComponentTextInput.d.ts +11 -11
  30. package/dist/src/components/gridForm/GridFormTextArea.d.ts +14 -14
  31. package/dist/src/components/gridForm/GridFormTextInput.d.ts +14 -14
  32. package/dist/src/components/gridForm/index.d.ts +10 -10
  33. package/dist/src/components/gridHeader/GridHeaderSelect.d.ts +7 -7
  34. package/dist/src/components/gridHeader/index.d.ts +1 -1
  35. package/dist/src/components/gridHook/index.d.ts +1 -1
  36. package/dist/src/components/gridHook/useGridContextMenu.d.ts +19 -19
  37. package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.d.ts +5 -5
  38. package/dist/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.d.ts +5 -5
  39. package/dist/src/components/gridPopoverEdit/GridPopoverEditBearing.d.ts +16 -16
  40. package/dist/src/components/gridPopoverEdit/GridPopoverEditDropDown.d.ts +5 -5
  41. package/dist/src/components/gridPopoverEdit/GridPopoverMenu.d.ts +8 -8
  42. package/dist/src/components/gridPopoverEdit/GridPopoverMessage.d.ts +5 -5
  43. package/dist/src/components/gridPopoverEdit/GridPopoverTextArea.d.ts +5 -5
  44. package/dist/src/components/gridPopoverEdit/GridPopoverTextInput.d.ts +5 -5
  45. package/dist/src/components/gridPopoverEdit/index.d.ts +9 -9
  46. package/dist/src/components/gridRender/GridRenderGenericCell.d.ts +16 -37
  47. package/dist/src/components/gridRender/GridRenderPopoutMenuCell.d.ts +2 -2
  48. package/dist/src/components/gridRender/index.d.ts +2 -2
  49. package/dist/src/components/gridUtil.d.ts +3 -3
  50. package/dist/src/components/index.d.ts +18 -18
  51. package/dist/src/contexts/GridContext.d.ts +67 -67
  52. package/dist/src/contexts/GridContextProvider.d.ts +15 -15
  53. package/dist/src/contexts/GridContextProvider.test.d.ts +1 -1
  54. package/dist/src/contexts/GridPopoverContext.d.ts +15 -15
  55. package/dist/src/contexts/GridPopoverContextProvider.d.ts +7 -7
  56. package/dist/src/contexts/GridSubComponentContext.d.ts +10 -10
  57. package/dist/src/contexts/GridUpdatingContext.d.ts +8 -8
  58. package/dist/src/contexts/GridUpdatingContextProvider.d.ts +3 -3
  59. package/dist/src/index.d.ts +17 -17
  60. package/dist/src/lui/ActionButton.d.ts +20 -20
  61. package/dist/src/lui/FormError.d.ts +7 -7
  62. package/dist/src/lui/TextAreaInput.d.ts +11 -11
  63. package/dist/src/lui/TextInputFormatted.d.ts +10 -10
  64. package/dist/src/lui/reactUtils.d.ts +6 -6
  65. package/dist/src/lui/reactUtils.test.d.ts +1 -1
  66. package/dist/src/lui/stateDeferredHook.d.ts +4 -4
  67. package/dist/src/lui/timeoutHook.d.ts +14 -14
  68. package/dist/src/lui/timeoutHook.test.d.ts +1 -1
  69. package/dist/src/react-menu3/components/ControlledMenu.d.ts +8 -8
  70. package/dist/src/react-menu3/components/FocusableItem.d.ts +9 -9
  71. package/dist/src/react-menu3/components/Menu.d.ts +16 -16
  72. package/dist/src/react-menu3/components/MenuButton.d.ts +8 -8
  73. package/dist/src/react-menu3/components/MenuDivider.d.ts +3 -3
  74. package/dist/src/react-menu3/components/MenuGroup.d.ts +12 -12
  75. package/dist/src/react-menu3/components/MenuHeader.d.ts +4 -4
  76. package/dist/src/react-menu3/components/MenuItem.d.ts +59 -59
  77. package/dist/src/react-menu3/components/MenuList.d.ts +2 -2
  78. package/dist/src/react-menu3/components/MenuRadioGroup.d.ts +25 -25
  79. package/dist/src/react-menu3/components/SubMenu.d.ts +110 -110
  80. package/dist/src/react-menu3/contexts/EventHandlersContext.d.ts +7 -7
  81. package/dist/src/react-menu3/contexts/HoverItemContext.d.ts +2 -2
  82. package/dist/src/react-menu3/contexts/ItemSettingsContext.d.ts +5 -5
  83. package/dist/src/react-menu3/contexts/MenuListContext.d.ts +9 -9
  84. package/dist/src/react-menu3/contexts/MenuListItemContext.d.ts +11 -11
  85. package/dist/src/react-menu3/contexts/RadioGroupContext.d.ts +7 -7
  86. package/dist/src/react-menu3/contexts/SettingsContext.d.ts +20 -20
  87. package/dist/src/react-menu3/hooks/index.d.ts +9 -9
  88. package/dist/src/react-menu3/hooks/useBEM.d.ts +10 -10
  89. package/dist/src/react-menu3/hooks/useCombinedRef.d.ts +2 -2
  90. package/dist/src/react-menu3/hooks/useIsomorphicLayoutEffect.d.ts +3 -3
  91. package/dist/src/react-menu3/hooks/useItemEffect.d.ts +2 -2
  92. package/dist/src/react-menu3/hooks/useItemState.d.ts +7 -7
  93. package/dist/src/react-menu3/hooks/useItems.d.ts +7 -7
  94. package/dist/src/react-menu3/hooks/useMenuChange.d.ts +2 -2
  95. package/dist/src/react-menu3/hooks/useMenuState.d.ts +23 -14
  96. package/dist/src/react-menu3/hooks/useMenuStateAndFocus.d.ts +2 -2
  97. package/dist/src/react-menu3/index.d.ts +11 -11
  98. package/dist/src/react-menu3/positionUtils/getPositionHelpers.d.ts +11 -11
  99. package/dist/src/react-menu3/positionUtils/index.d.ts +3 -3
  100. package/dist/src/react-menu3/positionUtils/placeArrowHorizontal.d.ts +8 -8
  101. package/dist/src/react-menu3/positionUtils/placeArrowVertical.d.ts +8 -8
  102. package/dist/src/react-menu3/positionUtils/placeLeftorRight.d.ts +19 -19
  103. package/dist/src/react-menu3/positionUtils/placeToporBottom.d.ts +19 -19
  104. package/dist/src/react-menu3/positionUtils/positionContextMenu.d.ts +13 -13
  105. package/dist/src/react-menu3/positionUtils/positionMenu.d.ts +26 -26
  106. package/dist/src/react-menu3/style-utils/index.d.ts +11 -11
  107. package/dist/src/react-menu3/types.d.ts +401 -401
  108. package/dist/src/react-menu3/utils/constants.d.ts +54 -54
  109. package/dist/src/react-menu3/utils/index.d.ts +3 -3
  110. package/dist/src/react-menu3/utils/propTypes2.d.ts +56 -56
  111. package/dist/src/react-menu3/utils/utils.d.ts +37 -37
  112. package/dist/src/react-menu3/utils/withHovering.d.ts +7 -7
  113. package/dist/src/utils/bearing.d.ts +19 -19
  114. package/dist/src/utils/bearing.test.d.ts +1 -1
  115. package/dist/src/utils/deferredPromise.d.ts +5 -5
  116. package/dist/src/utils/storybookTestUtil.d.ts +3 -3
  117. package/dist/src/utils/testQuick.d.ts +62 -62
  118. package/dist/src/utils/testUtil.d.ts +46 -45
  119. package/dist/src/utils/textMatcher.d.ts +13 -13
  120. package/dist/src/utils/textMatcher.test.d.ts +1 -1
  121. package/dist/src/utils/textValidator.d.ts +18 -18
  122. package/dist/src/utils/textValidator.test.d.ts +1 -1
  123. package/dist/src/utils/util.d.ts +8 -8
  124. package/dist/src/utils/util.test.d.ts +1 -1
  125. package/dist/step-ag-grid.cjs.js +4652 -4651
  126. package/dist/step-ag-grid.cjs.js.map +1 -1
  127. package/dist/step-ag-grid.esm.js +4652 -4651
  128. package/dist/step-ag-grid.esm.js.map +1 -1
  129. package/dist/vite.config.d.ts +2 -0
  130. package/package.json +21 -20
  131. package/src/components/Grid.tsx +4 -4
  132. package/src/components/GridCell.test.tsx +2 -3
  133. package/src/components/GridCell.tsx +75 -23
  134. package/src/components/GridCellFiller.tsx +2 -1
  135. package/src/components/GridCellMultiEditor.tsx +9 -9
  136. package/src/components/GridCellMultiSelectClassRules.tsx +4 -4
  137. package/src/components/GridPopoverHook.tsx +4 -4
  138. package/src/components/PostSortRowsHook.ts +2 -2
  139. package/src/components/gridFilter/GridFilterButtons.tsx +6 -6
  140. package/src/components/gridFilter/GridFilterColumnsToggle.tsx +2 -5
  141. package/src/components/gridFilter/GridFilterDownloadCsvButton.tsx +1 -1
  142. package/src/components/gridFilter/useGridFilter.ts +1 -1
  143. package/src/components/gridForm/GridFormDropDown.tsx +9 -9
  144. package/src/components/gridForm/GridFormEditBearing.tsx +5 -5
  145. package/src/components/gridForm/GridFormMessage.tsx +4 -4
  146. package/src/components/gridForm/GridFormMultiSelect.tsx +9 -9
  147. package/src/components/gridForm/GridFormMultiSelectGrid.tsx +11 -11
  148. package/src/components/gridForm/GridFormPopoverMenu.tsx +13 -13
  149. package/src/components/gridForm/GridFormSubComponentTextArea.tsx +4 -4
  150. package/src/components/gridForm/GridFormSubComponentTextInput.tsx +4 -4
  151. package/src/components/gridForm/GridFormTextArea.tsx +6 -6
  152. package/src/components/gridForm/GridFormTextInput.tsx +7 -7
  153. package/src/components/gridHook/useGridContextMenu.tsx +8 -8
  154. package/src/components/gridPopoverEdit/GridPopoutEditMultiSelect.ts +6 -6
  155. package/src/components/gridPopoverEdit/GridPopoutEditMultiSelectGrid.ts +6 -6
  156. package/src/components/gridPopoverEdit/GridPopoverEditBearing.ts +16 -16
  157. package/src/components/gridPopoverEdit/GridPopoverEditDropDown.ts +6 -6
  158. package/src/components/gridPopoverEdit/GridPopoverMenu.tsx +5 -5
  159. package/src/components/gridPopoverEdit/GridPopoverMessage.ts +5 -5
  160. package/src/components/gridPopoverEdit/GridPopoverTextArea.ts +5 -4
  161. package/src/components/gridPopoverEdit/GridPopoverTextInput.ts +5 -5
  162. package/src/components/gridRender/GridRenderGenericCell.tsx +6 -36
  163. package/src/contexts/GridContext.tsx +7 -7
  164. package/src/contexts/GridContextProvider.test.tsx +1 -1
  165. package/src/contexts/GridContextProvider.tsx +10 -10
  166. package/src/contexts/GridPopoverContext.tsx +6 -6
  167. package/src/stories/grid/GridDragRow.stories.tsx +4 -4
  168. package/src/stories/grid/GridNonEditableRow.stories.tsx +2 -3
  169. package/src/stories/grid/GridPopoutContextMenu.stories.tsx +2 -2
  170. package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +1 -1
  171. package/src/stories/grid/GridPopoverEditBearing.stories.tsx +2 -2
  172. package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +3 -3
  173. package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +2 -2
  174. package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +2 -2
  175. package/src/stories/grid/GridReadOnly.stories.tsx +6 -6
  176. package/src/stories/grid/GridViewList.stories.tsx +5 -7
  177. package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +3 -3
  178. package/src/utils/testUtil.ts +49 -7
  179. package/src/utils/textValidator.ts +5 -5
  180. package/src/utils/util.ts +1 -1
@@ -1,54 +1,54 @@
1
- import { MenuState } from "../types";
2
- export declare const menuContainerClass = "szh-menu-container";
3
- export declare const menuClass = "szh-menu";
4
- export declare const menuButtonClass = "szh-menu-button";
5
- export declare const menuArrowClass = "arrow";
6
- export declare const menuItemClass = "item";
7
- export declare const menuDividerClass = "divider";
8
- export declare const menuHeaderClass = "header";
9
- export declare const menuGroupClass = "group";
10
- export declare const subMenuClass = "submenu";
11
- export declare const radioGroupClass = "radio-group";
12
- export interface RMEvent {
13
- value: any;
14
- syntheticEvent: any;
15
- checked?: boolean;
16
- name?: string;
17
- key?: string;
18
- shiftKey?: boolean;
19
- }
20
- export declare const Keys: Readonly<{
21
- ENTER: "Enter";
22
- TAB: "Tab";
23
- ESC: "Escape";
24
- SPACE: " ";
25
- HOME: "Home";
26
- END: "End";
27
- LEFT: "ArrowLeft";
28
- RIGHT: "ArrowRight";
29
- UP: "ArrowUp";
30
- DOWN: "ArrowDown";
31
- }>;
32
- export declare const HoverActionTypes: Readonly<{
33
- RESET: 0;
34
- SET: 1;
35
- UNSET: 2;
36
- INCREASE: 3;
37
- DECREASE: 4;
38
- FIRST: 5;
39
- LAST: 6;
40
- SET_INDEX: 7;
41
- }>;
42
- export declare const CloseReason: Readonly<{
43
- CLICK: "click";
44
- CANCEL: "cancel";
45
- BLUR: "blur";
46
- SCROLL: "scroll";
47
- TAB_FORWARD: "tab_forward";
48
- TAB_BACKWARD: "tab_backward";
49
- }>;
50
- export declare const FocusPositions: Readonly<{
51
- FIRST: "first";
52
- LAST: "last";
53
- }>;
54
- export declare const MenuStateMap: Record<string, MenuState>;
1
+ import { MenuState } from "../types";
2
+ export declare const menuContainerClass = "szh-menu-container";
3
+ export declare const menuClass = "szh-menu";
4
+ export declare const menuButtonClass = "szh-menu-button";
5
+ export declare const menuArrowClass = "arrow";
6
+ export declare const menuItemClass = "item";
7
+ export declare const menuDividerClass = "divider";
8
+ export declare const menuHeaderClass = "header";
9
+ export declare const menuGroupClass = "group";
10
+ export declare const subMenuClass = "submenu";
11
+ export declare const radioGroupClass = "radio-group";
12
+ export interface RMEvent {
13
+ value: any;
14
+ syntheticEvent: any;
15
+ checked?: boolean;
16
+ name?: string;
17
+ key?: string;
18
+ shiftKey?: boolean;
19
+ }
20
+ export declare const Keys: Readonly<{
21
+ ENTER: "Enter";
22
+ TAB: "Tab";
23
+ ESC: "Escape";
24
+ SPACE: " ";
25
+ HOME: "Home";
26
+ END: "End";
27
+ LEFT: "ArrowLeft";
28
+ RIGHT: "ArrowRight";
29
+ UP: "ArrowUp";
30
+ DOWN: "ArrowDown";
31
+ }>;
32
+ export declare const HoverActionTypes: Readonly<{
33
+ RESET: 0;
34
+ SET: 1;
35
+ UNSET: 2;
36
+ INCREASE: 3;
37
+ DECREASE: 4;
38
+ FIRST: 5;
39
+ LAST: 6;
40
+ SET_INDEX: 7;
41
+ }>;
42
+ export declare const CloseReason: Readonly<{
43
+ CLICK: "click";
44
+ CANCEL: "cancel";
45
+ BLUR: "blur";
46
+ SCROLL: "scroll";
47
+ TAB_FORWARD: "tab_forward";
48
+ TAB_BACKWARD: "tab_backward";
49
+ }>;
50
+ export declare const FocusPositions: Readonly<{
51
+ FIRST: "first";
52
+ LAST: "last";
53
+ }>;
54
+ export declare const MenuStateMap: Record<string, MenuState>;
@@ -1,3 +1,3 @@
1
- export * from "./constants";
2
- export * from "./utils";
3
- export { withHovering } from "./withHovering";
1
+ export * from "./constants";
2
+ export * from "./utils";
3
+ export { withHovering } from "./withHovering";
@@ -1,56 +1,56 @@
1
- export declare const stylePropTypes: (name?: string) => {
2
- [x: string]: import("prop-types").Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
3
- };
4
- export declare const Direction: import("prop-types").Requireable<string>;
5
- export declare const menuPropTypes: {
6
- menuStyle: import("prop-types").Requireable<object>;
7
- arrowStyle: import("prop-types").Requireable<object>;
8
- arrow: import("prop-types").Requireable<boolean>;
9
- setDownOverflow: import("prop-types").Requireable<boolean>;
10
- offsetX: import("prop-types").Requireable<number>;
11
- offsetY: import("prop-types").Requireable<number>;
12
- align: import("prop-types").Requireable<string>;
13
- direction: import("prop-types").Requireable<string>;
14
- position: import("prop-types").Requireable<string>;
15
- overflow: import("prop-types").Requireable<string>;
16
- className: import("prop-types").Requireable<string>;
17
- };
18
- export declare const rootMenuPropTypes: {
19
- containerProps: import("prop-types").Requireable<object>;
20
- initialMounted: import("prop-types").Requireable<boolean>;
21
- unmountOnClose: import("prop-types").Requireable<boolean>;
22
- transition: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
23
- open: import("prop-types").Requireable<boolean>;
24
- close: import("prop-types").Requireable<boolean>;
25
- item: import("prop-types").Requireable<boolean>;
26
- }>> | null | undefined>>;
27
- transitionTimeout: import("prop-types").Requireable<number>;
28
- boundingBoxRef: import("prop-types").Requireable<object>;
29
- boundingBoxPadding: import("prop-types").Requireable<string>;
30
- reposition: import("prop-types").Requireable<string>;
31
- repositionFlag: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
32
- viewScroll: import("prop-types").Requireable<string>;
33
- submenuOpenDelay: import("prop-types").Requireable<number>;
34
- submenuCloseDelay: import("prop-types").Requireable<number>;
35
- portal: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
36
- target: import("prop-types").Requireable<object>;
37
- stablePosition: import("prop-types").Requireable<boolean>;
38
- }>> | null | undefined>>;
39
- theming: import("prop-types").Requireable<string>;
40
- onItemClick: import("prop-types").Requireable<(...args: any[]) => any>;
41
- menuStyle: import("prop-types").Requireable<object>;
42
- arrowStyle: import("prop-types").Requireable<object>;
43
- arrow: import("prop-types").Requireable<boolean>;
44
- setDownOverflow: import("prop-types").Requireable<boolean>;
45
- offsetX: import("prop-types").Requireable<number>;
46
- offsetY: import("prop-types").Requireable<number>;
47
- align: import("prop-types").Requireable<string>;
48
- direction: import("prop-types").Requireable<string>;
49
- position: import("prop-types").Requireable<string>;
50
- overflow: import("prop-types").Requireable<string>;
51
- className: import("prop-types").Requireable<string>;
52
- };
53
- export declare const uncontrolledMenuPropTypes: {
54
- instanceRef: import("prop-types").Requireable<object>;
55
- onMenuChange: import("prop-types").Requireable<(...args: any[]) => any>;
56
- };
1
+ export declare const stylePropTypes: (name?: string) => {
2
+ [x: string]: import("prop-types").Requireable<NonNullable<string | ((...args: any[]) => any) | null | undefined>>;
3
+ };
4
+ export declare const Direction: import("prop-types").Requireable<string>;
5
+ export declare const menuPropTypes: {
6
+ menuStyle: import("prop-types").Requireable<object>;
7
+ arrowStyle: import("prop-types").Requireable<object>;
8
+ arrow: import("prop-types").Requireable<boolean>;
9
+ setDownOverflow: import("prop-types").Requireable<boolean>;
10
+ offsetX: import("prop-types").Requireable<number>;
11
+ offsetY: import("prop-types").Requireable<number>;
12
+ align: import("prop-types").Requireable<string>;
13
+ direction: import("prop-types").Requireable<string>;
14
+ position: import("prop-types").Requireable<string>;
15
+ overflow: import("prop-types").Requireable<string>;
16
+ className: import("prop-types").Requireable<string>;
17
+ };
18
+ export declare const rootMenuPropTypes: {
19
+ containerProps: import("prop-types").Requireable<object>;
20
+ initialMounted: import("prop-types").Requireable<boolean>;
21
+ unmountOnClose: import("prop-types").Requireable<boolean>;
22
+ transition: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
23
+ open: import("prop-types").Requireable<boolean>;
24
+ close: import("prop-types").Requireable<boolean>;
25
+ item: import("prop-types").Requireable<boolean>;
26
+ }>> | null | undefined>>;
27
+ transitionTimeout: import("prop-types").Requireable<number>;
28
+ boundingBoxRef: import("prop-types").Requireable<object>;
29
+ boundingBoxPadding: import("prop-types").Requireable<string>;
30
+ reposition: import("prop-types").Requireable<string>;
31
+ repositionFlag: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
32
+ viewScroll: import("prop-types").Requireable<string>;
33
+ submenuOpenDelay: import("prop-types").Requireable<number>;
34
+ submenuCloseDelay: import("prop-types").Requireable<number>;
35
+ portal: import("prop-types").Requireable<NonNullable<boolean | Required<import("prop-types").InferProps<{
36
+ target: import("prop-types").Requireable<object>;
37
+ stablePosition: import("prop-types").Requireable<boolean>;
38
+ }>> | null | undefined>>;
39
+ theming: import("prop-types").Requireable<string>;
40
+ onItemClick: import("prop-types").Requireable<(...args: any[]) => any>;
41
+ menuStyle: import("prop-types").Requireable<object>;
42
+ arrowStyle: import("prop-types").Requireable<object>;
43
+ arrow: import("prop-types").Requireable<boolean>;
44
+ setDownOverflow: import("prop-types").Requireable<boolean>;
45
+ offsetX: import("prop-types").Requireable<number>;
46
+ offsetY: import("prop-types").Requireable<number>;
47
+ align: import("prop-types").Requireable<string>;
48
+ direction: import("prop-types").Requireable<string>;
49
+ position: import("prop-types").Requireable<string>;
50
+ overflow: import("prop-types").Requireable<string>;
51
+ className: import("prop-types").Requireable<string>;
52
+ };
53
+ export declare const uncontrolledMenuPropTypes: {
54
+ instanceRef: import("prop-types").Requireable<object>;
55
+ onMenuChange: import("prop-types").Requireable<(...args: any[]) => any>;
56
+ };
@@ -1,37 +1,37 @@
1
- /// <reference types="react" />
2
- import { unstable_batchedUpdates } from "react-dom";
3
- import { MenuButtonProps } from "../components/MenuButton";
4
- import { MenuState, MenuStateOptions } from "../types";
5
- export declare const isMenuOpen: (state?: MenuState) => boolean;
6
- export declare const batchedUpdates: typeof unstable_batchedUpdates;
7
- export declare const values: {
8
- <T>(o: {
9
- [s: string]: T;
10
- } | ArrayLike<T>): T[];
11
- (o: {}): any[];
12
- };
13
- export declare const floatEqual: (a: number, b: number, diff?: number) => boolean;
14
- export type TransitionMap = {
15
- open?: boolean;
16
- close?: boolean;
17
- item?: boolean;
18
- };
19
- export declare const getTransition: (transition: MenuStateOptions["transition"], name: keyof TransitionMap) => boolean;
20
- export declare function safeCall<T, R>(fn: (arg?: T) => R, arg?: T): R;
21
- export declare function safeCall<T, R>(fn: T, arg: R): T;
22
- export declare const getName: (component: Record<string, any | undefined>) => any;
23
- export declare const defineName: (name: string, component: React.ForwardRefExoticComponent<React.PropsWithoutRef<MenuButtonProps> & React.RefAttributes<unknown>>) => import("react").ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & import("react").RefAttributes<unknown>>;
24
- export declare const mergeProps: (target: any, source: any) => any;
25
- export declare const parsePadding: (paddingStr: string | undefined) => {
26
- top: number;
27
- right: number;
28
- bottom: number;
29
- left: number;
30
- };
31
- export declare const getScrollAncestor: (node: Node | null) => Element | null;
32
- export declare function commonProps(isDisabled?: boolean, isHovering?: boolean): {
33
- "aria-disabled": true | undefined;
34
- tabIndex: number;
35
- };
36
- export declare const indexOfNode: (nodeList: NodeListOf<Node>, node: Node) => number;
37
- export declare const focusFirstInput: (container: any) => boolean;
1
+ /// <reference types="react" />
2
+ import { unstable_batchedUpdates } from "react-dom";
3
+ import { MenuButtonProps } from "../components/MenuButton";
4
+ import { MenuState, MenuStateOptions } from "../types";
5
+ export declare const isMenuOpen: (state?: MenuState) => boolean;
6
+ export declare const batchedUpdates: typeof unstable_batchedUpdates;
7
+ export declare const values: {
8
+ <T>(o: {
9
+ [s: string]: T;
10
+ } | ArrayLike<T>): T[];
11
+ (o: {}): any[];
12
+ };
13
+ export declare const floatEqual: (a: number, b: number, diff?: number) => boolean;
14
+ export type TransitionMap = {
15
+ open?: boolean;
16
+ close?: boolean;
17
+ item?: boolean;
18
+ };
19
+ export declare const getTransition: (transition: MenuStateOptions["transition"], name: keyof TransitionMap) => boolean;
20
+ export declare function safeCall<T, R>(fn: (arg?: T) => R, arg?: T): R;
21
+ export declare function safeCall<T, R>(fn: T, arg: R): T;
22
+ export declare const getName: (component: Record<string, any | undefined>) => any;
23
+ export declare const defineName: (name: string, component: React.ForwardRefExoticComponent<React.PropsWithoutRef<MenuButtonProps> & React.RefAttributes<unknown>>) => import("react").ForwardRefExoticComponent<Omit<MenuButtonProps, "ref"> & import("react").RefAttributes<unknown>>;
24
+ export declare const mergeProps: (target: any, source: any) => any;
25
+ export declare const parsePadding: (paddingStr: string | undefined) => {
26
+ top: number;
27
+ right: number;
28
+ bottom: number;
29
+ left: number;
30
+ };
31
+ export declare const getScrollAncestor: (node: Node | null) => Element | null;
32
+ export declare function commonProps(isDisabled?: boolean, isHovering?: boolean): {
33
+ "aria-disabled": true | undefined;
34
+ tabIndex: number;
35
+ };
36
+ export declare const indexOfNode: (nodeList: NodeListOf<Node>, node: Node) => number;
37
+ export declare const focusFirstInput: (container: any) => boolean;
@@ -1,7 +1,7 @@
1
- import { MutableRefObject, PropsWithRef, ReactElement } from "react";
2
- export interface withHoveringResultProps {
3
- isHovering?: boolean;
4
- externalRef?: MutableRefObject<any>;
5
- menuItemRef?: MutableRefObject<HTMLLIElement>;
6
- }
7
- export declare const withHovering: <T>(name: string, WrappedComponent: (props: T) => ReactElement) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<PropsWithRef<T>> & import("react").RefAttributes<unknown>>;
1
+ import { MutableRefObject, PropsWithRef, ReactElement } from "react";
2
+ export interface withHoveringResultProps {
3
+ isHovering?: boolean;
4
+ externalRef?: MutableRefObject<any>;
5
+ menuItemRef?: MutableRefObject<HTMLLIElement>;
6
+ }
7
+ export declare const withHovering: <T>(name: string, WrappedComponent: (props: T) => ReactElement) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<PropsWithRef<T>> & import("react").RefAttributes<unknown>>;
@@ -1,19 +1,19 @@
1
- export declare const bearingValueFormatter: (value: any) => string;
2
- export declare const bearingCorrectionValueFormatter: (value: any) => string;
3
- export declare const bearingNumberParser: (value: string) => number | null;
4
- export declare const bearingStringValidator: (value: string, customInvalid?: ((value: number | null) => string | null) | undefined) => string | null;
5
- /**
6
- *Decimal-ish degrees to Degrees Minutes Seconds converter
7
- *
8
- * @param dd Decimal-ish degrees
9
- * @param showPositiveSymbol whether the + sign appears before the number
10
- * @param trailingZeroDp 2 | 4 | 5
11
- * Example:
12
- * 2 = 300° 00'
13
- * 4 = 300° 00' 00"
14
- * 5 = 300° 00' 00.0"
15
- * @returns Degrees Minutes Seconds
16
- */
17
- export declare const convertDDToDMS: (dd: number | null, showPositiveSymbol?: boolean, trailingZeroDp?: 2 | 4 | 5) => string;
18
- export declare const bearingRangeValidator: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
19
- export declare const bearingCorrectionRangeValidator: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;
1
+ export declare const bearingValueFormatter: (value: any) => string;
2
+ export declare const bearingCorrectionValueFormatter: (value: any) => string;
3
+ export declare const bearingNumberParser: (value: string) => number | null;
4
+ export declare const bearingStringValidator: (value: string, customInvalid?: (value: number | null) => string | null) => string | null;
5
+ /**
6
+ *Decimal-ish degrees to Degrees Minutes Seconds converter
7
+ *
8
+ * @param dd Decimal-ish degrees
9
+ * @param showPositiveSymbol whether the + sign appears before the number
10
+ * @param trailingZeroDp 2 | 4 | 5
11
+ * Example:
12
+ * 2 = 300° 00'
13
+ * 4 = 300° 00' 00"
14
+ * 5 = 300° 00' 00.0"
15
+ * @returns Degrees Minutes Seconds
16
+ */
17
+ export declare const convertDDToDMS: (dd: number | null, showPositiveSymbol?: boolean, trailingZeroDp?: 2 | 4 | 5) => string;
18
+ export declare const bearingRangeValidator: (value: number | null) => "Bearing is required" | "Bearing must be less than 360 degrees" | "Bearing must not be negative" | null;
19
+ export declare const bearingCorrectionRangeValidator: (value: number | null) => "Bearing correction is required" | "Bearing correction must be less than 360 degrees" | "Bearing correction must be greater then -180 degrees" | null;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,5 +1,5 @@
1
- export declare const useDeferredPromise: <T>() => {
2
- invoke: () => Promise<T>;
3
- resolve: (value: T) => void;
4
- reject: () => void;
5
- };
1
+ export declare const useDeferredPromise: <T>() => {
2
+ invoke: () => Promise<T>;
3
+ resolve: (value: T) => void;
4
+ reject: () => void;
5
+ };
@@ -1,3 +1,3 @@
1
- export declare const waitForGridReady: ({ canvasElement }: {
2
- canvasElement: HTMLElement;
3
- }) => Promise<void>;
1
+ export declare const waitForGridReady: ({ canvasElement }: {
2
+ canvasElement: HTMLElement;
3
+ }) => Promise<void>;
@@ -1,62 +1,62 @@
1
- /**
2
- * General query all by selected. Internal use, use quick operations instead.
3
- *
4
- * @param selector Selector to use
5
- * @param container Optional container
6
- * @return HTMLElement array
7
- */
8
- import { IconName } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
9
- /**
10
- * Filters for query quick operations.
11
- */
12
- export interface IQueryQuick {
13
- testId?: string;
14
- tagName?: "button" | "span" | "div" | "input" | "textarea" | any;
15
- text?: string | RegExp;
16
- icon?: IconName;
17
- ariaLabel?: string;
18
- role?: string;
19
- classes?: string;
20
- child?: IQueryQuick;
21
- }
22
- export declare const getMatcher: (matcherText: string | RegExp) => (e: HTMLElement) => boolean;
23
- /**
24
- * Query by filter.
25
- *
26
- * @param filter Filter
27
- * @param container Optional container to look in
28
- * @return HTMLElement if found else null
29
- */
30
- export declare const queryQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T | null;
31
- /**
32
- * Query all by filter.
33
- *
34
- * @param filter Filter
35
- * @param container Optional container to look in
36
- * @return HTMLElement array
37
- */
38
- export declare const queryAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
39
- /**
40
- * Get all by filter.
41
- *
42
- * @param filter Filter
43
- * @param container Optional container to look in
44
- * @return HTMLElement array. Throws exception if nothing is found.
45
- */
46
- export declare const getAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
47
- /**
48
- * Get by filter.
49
- *
50
- * @param filter Filter
51
- * @param container Optional container to look in
52
- * @return HTMLElement. Throws exception if not found.
53
- */
54
- export declare const getQuick: (filter: IQueryQuick, container?: HTMLElement) => HTMLElement;
55
- /**
56
- * Find by filter. Waits up to 5 seconds to find filter.
57
- *
58
- * @param filter Filter
59
- * @param container Optional container to look in
60
- * @return HTMLElement. Throws exception if not found.
61
- */
62
- export declare const findQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => Promise<T>;
1
+ /**
2
+ * General query all by selected. Internal use, use quick operations instead.
3
+ *
4
+ * @param selector Selector to use
5
+ * @param container Optional container
6
+ * @return HTMLElement array
7
+ */
8
+ import { IconName } from "@linzjs/lui/dist/components/LuiIcon/LuiIcon";
9
+ /**
10
+ * Filters for query quick operations.
11
+ */
12
+ export interface IQueryQuick {
13
+ testId?: string;
14
+ tagName?: "button" | "span" | "div" | "input" | "textarea" | any;
15
+ text?: string | RegExp;
16
+ icon?: IconName;
17
+ ariaLabel?: string;
18
+ role?: string;
19
+ classes?: string;
20
+ child?: IQueryQuick;
21
+ }
22
+ export declare const getMatcher: (matcherText: string | RegExp) => (e: HTMLElement) => boolean;
23
+ /**
24
+ * Query by filter.
25
+ *
26
+ * @param filter Filter
27
+ * @param container Optional container to look in
28
+ * @return HTMLElement if found else null
29
+ */
30
+ export declare const queryQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T | null;
31
+ /**
32
+ * Query all by filter.
33
+ *
34
+ * @param filter Filter
35
+ * @param container Optional container to look in
36
+ * @return HTMLElement array
37
+ */
38
+ export declare const queryAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
39
+ /**
40
+ * Get all by filter.
41
+ *
42
+ * @param filter Filter
43
+ * @param container Optional container to look in
44
+ * @return HTMLElement array. Throws exception if nothing is found.
45
+ */
46
+ export declare const getAllQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => T[];
47
+ /**
48
+ * Get by filter.
49
+ *
50
+ * @param filter Filter
51
+ * @param container Optional container to look in
52
+ * @return HTMLElement. Throws exception if not found.
53
+ */
54
+ export declare const getQuick: (filter: IQueryQuick, container?: HTMLElement) => HTMLElement;
55
+ /**
56
+ * Find by filter. Waits up to 5 seconds to find filter.
57
+ *
58
+ * @param filter Filter
59
+ * @param container Optional container to look in
60
+ * @return HTMLElement. Throws exception if not found.
61
+ */
62
+ export declare const findQuick: <T extends HTMLElement>(filter: IQueryQuick, container?: HTMLElement) => Promise<T>;
@@ -1,45 +1,46 @@
1
- /**
2
- * allow external userEvent to be used
3
- * @param customisedUserEvent
4
- */
5
- export declare const setUpUserEvent: (customisedUserEvent: any) => void;
6
- export declare const countRows: (within?: HTMLElement) => Promise<number>;
7
- export declare const findRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement>;
8
- export declare const queryRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement | null>;
9
- export declare const selectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
10
- export declare const deselectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
11
- export declare const findCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<HTMLElement>;
12
- export declare const findCellContains: (rowId: number | string, colId: string, text: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
13
- export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
14
- export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
15
- export declare const isCellReadOnly: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<boolean>;
16
- export declare const findOpenPopover: () => Promise<HTMLElement>;
17
- export declare const queryMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement | null>;
18
- export declare const findMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement>;
19
- export declare const validateMenuOptions: (rowId: number | string, colId: string, expectedMenuOptions: Array<string>) => Promise<boolean>;
20
- export declare const clickMenuOption: (menuOptionText: string | RegExp) => Promise<void>;
21
- export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<void>;
22
- export declare const openAndFindMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
23
- export declare const getMultiSelectOptions: () => Promise<{
24
- v: string;
25
- c: boolean;
26
- }[]>;
27
- export declare const findMultiSelectOption: (value: string) => Promise<HTMLElement>;
28
- export declare const clickMultiSelectOption: (value: string) => Promise<void>;
29
- export declare const typeOnlyInput: (value: string) => Promise<void>;
30
- export declare const typeInputByLabel: (value: string, labelText: string) => Promise<void>;
31
- export declare const typeInputByPlaceholder: (value: string, placeholder: string) => Promise<void>;
32
- export declare const typeOtherInput: (value: string) => Promise<void>;
33
- export declare const typeOtherTextArea: (value: string) => Promise<void>;
34
- export declare const closeMenu: () => Promise<void>;
35
- export declare const closePopover: () => Promise<void>;
36
- export declare const findActionButton: (text: string, container?: HTMLElement) => Promise<HTMLElement>;
37
- export declare const clickActionButton: (text: string, container?: HTMLElement) => Promise<void>;
38
- export declare const waitForGridReady: (props?: {
39
- grid?: HTMLElement;
40
- timeout?: number;
41
- }) => Promise<void>;
42
- export declare const waitForGridRows: (props?: {
43
- grid?: HTMLElement;
44
- timeout?: number;
45
- }) => Promise<void>;
1
+ /**
2
+ * allow external userEvent to be used
3
+ * @param customisedUserEvent
4
+ */
5
+ export declare const setUpUserEvent: (customisedUserEvent: any) => void;
6
+ export declare const countRows: (within?: HTMLElement) => Promise<number>;
7
+ export declare const findRowByIndex: (rowIndex: number | string, within?: HTMLElement) => Promise<HTMLDivElement>;
8
+ export declare const findRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement>;
9
+ export declare const queryRow: (rowId: number | string, within?: HTMLElement) => Promise<HTMLDivElement | null>;
10
+ export declare const selectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
11
+ export declare const deselectRow: (rowId: string | number, within?: HTMLElement) => Promise<void>;
12
+ export declare const findCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<HTMLElement>;
13
+ export declare const findCellContains: (rowId: number | string, colId: string, text: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
14
+ export declare const selectCell: (rowId: string | number, colId: string, within?: HTMLElement) => Promise<void>;
15
+ export declare const editCell: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<void>;
16
+ export declare const isCellReadOnly: (rowId: number | string, colId: string, within?: HTMLElement) => Promise<boolean>;
17
+ export declare const findOpenPopover: () => Promise<HTMLElement>;
18
+ export declare const queryMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement | null>;
19
+ export declare const findMenuOption: (menuOptionText: string | RegExp) => Promise<HTMLElement>;
20
+ export declare const validateMenuOptions: (rowId: number | string, colId: string, expectedMenuOptions: Array<string>) => Promise<boolean>;
21
+ export declare const clickMenuOption: (menuOptionText: string | RegExp) => Promise<void>;
22
+ export declare const openAndClickMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<void>;
23
+ export declare const openAndFindMenuOption: (rowId: number | string, colId: string, menuOptionText: string | RegExp, within?: HTMLElement) => Promise<HTMLElement>;
24
+ export declare const getMultiSelectOptions: () => Promise<{
25
+ v: string;
26
+ c: boolean;
27
+ }[]>;
28
+ export declare const findMultiSelectOption: (value: string) => Promise<HTMLElement>;
29
+ export declare const clickMultiSelectOption: (value: string) => Promise<void>;
30
+ export declare const typeOnlyInput: (value: string) => Promise<void>;
31
+ export declare const typeInputByLabel: (value: string, labelText: string) => Promise<void>;
32
+ export declare const typeInputByPlaceholder: (value: string, placeholder: string) => Promise<void>;
33
+ export declare const typeOtherInput: (value: string) => Promise<void>;
34
+ export declare const typeOtherTextArea: (value: string) => Promise<void>;
35
+ export declare const closeMenu: () => Promise<void>;
36
+ export declare const closePopover: () => Promise<void>;
37
+ export declare const findActionButton: (text: string, container?: HTMLElement) => Promise<HTMLElement>;
38
+ export declare const clickActionButton: (text: string, container?: HTMLElement) => Promise<void>;
39
+ export declare const waitForGridReady: (props?: {
40
+ grid?: HTMLElement;
41
+ timeout?: number;
42
+ }) => Promise<void>;
43
+ export declare const waitForGridRows: (props?: {
44
+ grid?: HTMLElement;
45
+ timeout?: number;
46
+ }) => Promise<void>;
@@ -1,13 +1,13 @@
1
- /**
2
- * Text matching with wildcards and multiple matchers.
3
- *
4
- * "L" => L*
5
- * "=L" => L
6
- * "*L*" => *L*
7
- * "*L" => *L
8
- * "A B" => A* and B*
9
- * "A B, C" => (A* and B*) or C*
10
- * "!A" => all values must not match A
11
- * Returns true if there's a text match.
12
- */
13
- export declare const textMatch: (text: string | undefined | null, filter: string) => boolean;
1
+ /**
2
+ * Text matching with wildcards and multiple matchers.
3
+ *
4
+ * "L" => L*
5
+ * "=L" => L
6
+ * "*L*" => *L*
7
+ * "*L" => *L
8
+ * "A B" => A* and B*
9
+ * "A B, C" => (A* and B*) or C*
10
+ * "!A" => all values must not match A
11
+ * Returns true if there's a text match.
12
+ */
13
+ export declare const textMatch: (text: string | undefined | null, filter: string) => boolean;