@linzjs/step-ag-grid 8.4.3 → 9.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 (32) hide show
  1. package/README.md +4 -4
  2. package/dist/index.css +3 -0
  3. package/dist/src/components/gridForm/GridFormMultiSelect.d.ts +5 -4
  4. package/dist/src/utils/textMatcher.d.ts +1 -1
  5. package/dist/src/utils/textMatcher.test.d.ts +1 -0
  6. package/dist/step-ag-grid.esm.js +464 -689
  7. package/dist/step-ag-grid.esm.js.map +1 -1
  8. package/package.json +42 -42
  9. package/src/components/Grid.tsx +29 -27
  10. package/src/components/gridForm/GridFormDropDown.tsx +2 -2
  11. package/src/components/gridForm/GridFormMultiSelect.tsx +12 -6
  12. package/src/components/gridForm/GridFormSubComponentTextArea.tsx +0 -1
  13. package/src/components/gridForm/GridFormSubComponentTextInput.tsx +0 -1
  14. package/src/lui/TextAreaInput.tsx +1 -1
  15. package/src/lui/TextInputFormatted.tsx +1 -1
  16. package/src/react-menu3/components/ControlledMenu.tsx +19 -6
  17. package/src/stories/grid/GridKeyboardInteractions.stories.tsx +261 -0
  18. package/src/stories/grid/{GridPopoutBearing.stories.tsx → GridPopoverEditBearing.stories.tsx} +4 -4
  19. package/src/stories/grid/{GridPopoutEditDropDown.stories.tsx → GridPopoverEditDropDown.stories.tsx} +0 -0
  20. package/src/stories/grid/{GridPopoutEditMultiSelect.stories.tsx → GridPopoverEditMultiSelect.stories.tsx} +0 -0
  21. package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +10 -1
  22. package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +1 -1
  23. package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +1 -1
  24. package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +153 -0
  25. package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +1 -1
  26. package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +1 -1
  27. package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +1 -1
  28. package/src/stories/react-menu/ReactMenu.stories.tsx +66 -3
  29. package/src/styles/Grid.scss +3 -0
  30. package/src/utils/testUtil.ts +1 -0
  31. package/src/utils/textMatcher.test.ts +38 -0
  32. package/src/utils/textMatcher.ts +9 -2
package/README.md CHANGED
@@ -81,8 +81,8 @@ const GridDemo = () => {
81
81
  initialWidth: 65,
82
82
  maxWidth: 150,
83
83
  cellRendererParams: {
84
- warning: (props) => props.value === "Tester" && "Testers are testing",
85
- info: (props) => props.value === "Developer" && "Developers are awesome",
84
+ warning: ({value}) => value === "Tester" && "Testers are testing",
85
+ info: ({value}) => value === "Developer" && "Developers are awesome",
86
86
  },
87
87
  }),
88
88
  GridPopoverEditDropDown(
@@ -107,8 +107,8 @@ const GridDemo = () => {
107
107
  {
108
108
  multiEdit: true,
109
109
  editorParams: {
110
- message: async (formParams) => {
111
- return `There are ${formParams.selectedRows.length} row(s) selected`;
110
+ message: async ({selectedRows}) => {
111
+ return `There are ${selectedRows.length} row(s) selected`;
112
112
  },
113
113
  },
114
114
  },
package/dist/index.css CHANGED
@@ -320,6 +320,8 @@
320
320
  .Grid-container {
321
321
  flex: 1;
322
322
  width: 100%;
323
+ display: flex;
324
+ flex-direction: column;
323
325
  }
324
326
 
325
327
  .Grid-sortIsStale span.ag-icon.ag-icon-desc::after {
@@ -332,6 +334,7 @@
332
334
  .Grid-quickFilter {
333
335
  width: 100%;
334
336
  margin-bottom: 16px;
337
+ flex: 0;
335
338
  }
336
339
 
337
340
  .Grid-quickFilterBox {
@@ -14,6 +14,10 @@ export interface GridFormMultiSelectGroup {
14
14
  header: string;
15
15
  filter?: string;
16
16
  }
17
+ export interface GridFormMultiSelectSaveProps<RowType extends GridBaseRow> {
18
+ selectedRows: RowType[];
19
+ selectedOptions: MultiSelectOption[];
20
+ }
17
21
  export interface GridFormMultiSelectProps<RowType extends GridBaseRow> extends CellEditorCommon {
18
22
  className?: "GridMultiSelect-containerSmall" | "GridMultiSelect-containerMedium" | "GridMultiSelect-containerLarge" | "GridMultiSelect-containerUnlimited" | string | undefined;
19
23
  filtered?: boolean;
@@ -24,10 +28,7 @@ export interface GridFormMultiSelectProps<RowType extends GridBaseRow> extends C
24
28
  filter: string;
25
29
  options: MultiSelectOption[];
26
30
  }) => void;
27
- onSave?: (props: {
28
- selectedRows: RowType[];
29
- selectedOptions: MultiSelectOption[];
30
- }) => Promise<boolean>;
31
+ onSave?: (props: GridFormMultiSelectSaveProps<RowType>) => Promise<boolean>;
31
32
  headers?: GridFormMultiSelectGroup[];
32
33
  options: MultiSelectOption[] | ((selectedRows: RowType[]) => Promise<MultiSelectOption[]> | MultiSelectOption[]);
33
34
  invalid?: (selectedRows: RowType[], selectedOptions: MultiSelectOption[]) => boolean;
@@ -2,7 +2,7 @@
2
2
  * Text matching with wildcards and multiple matchers.
3
3
  *
4
4
  * "L" => L*
5
- * "L*" => L*
5
+ * "=L" => L
6
6
  * "*L*" => *L*
7
7
  * "*L" => *L
8
8
  * "A B" => A* and B*
@@ -0,0 +1 @@
1
+ export {};