@linzjs/step-ag-grid 2.1.3 → 2.2.1
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/index.js +123 -20
- package/dist/index.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/lui/ActionButton.d.ts +15 -0
- package/dist/src/lui/reactUtils.d.ts +6 -0
- package/dist/src/lui/reactUtils.test.d.ts +1 -0
- package/dist/src/lui/stateDeferredHook.d.ts +4 -0
- package/dist/src/lui/timeoutHook.d.ts +8 -0
- package/dist/src/lui/timeoutHook.test.d.ts +1 -0
- package/dist/src/react-menu3/components/ControlledMenu.d.ts +2 -2
- package/dist/src/react-menu3/types.d.ts +4 -0
- package/dist/step-ag-grid.esm.js +116 -22
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/components/GridPopoverHook.tsx +1 -0
- package/src/index.ts +5 -0
- package/src/lui/ActionButton.scss +32 -0
- package/src/lui/ActionButton.tsx +76 -0
- package/src/lui/reactUtils.test.tsx +47 -0
- package/src/lui/reactUtils.tsx +14 -0
- package/src/lui/stateDeferredHook.tsx +29 -0
- package/src/lui/timeoutHook.test.tsx +38 -0
- package/src/lui/timeoutHook.tsx +40 -0
- package/src/react-menu3/components/ControlledMenu.tsx +7 -4
- package/src/react-menu3/types.ts +5 -0
- package/src/stories/components/ActionButton.stories.tsx +33 -0
- package/src/stories/{components → grid}/FormTest.scss +0 -0
- package/src/stories/{components → grid}/FormTest.tsx +0 -0
- package/src/stories/{components → grid}/GridPopoutBearing.stories.tsx +7 -10
- package/src/stories/{components → grid}/GridPopoutEditDropDown.stories.tsx +20 -23
- package/src/stories/{components → grid}/GridPopoutEditGeneric.stories.tsx +6 -9
- package/src/stories/{components → grid}/GridPopoutEditGenericTextArea.stories.tsx +57 -18
- package/src/stories/{components → grid}/GridPopoutEditMultiSelect.stories.tsx +6 -9
- package/src/stories/{components → grid}/GridReadOnly.stories.tsx +6 -8
- /package/src/stories/{components → react-menu}/ReactMenu.stories.tsx +0 -0
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
},
|
|
25
25
|
decorators: [
|
|
26
26
|
(Story) => (
|
|
27
|
-
<div style={{ width:
|
|
27
|
+
<div style={{ width: 1024, height: 400 }}>
|
|
28
28
|
<GridUpdatingContextProvider>
|
|
29
29
|
<GridContextProvider>
|
|
30
30
|
<Story />
|
|
@@ -119,14 +119,10 @@ const GridEditMultiSelectTemplate: ComponentStory<typeof Grid> = (props: GridPro
|
|
|
119
119
|
];
|
|
120
120
|
}, []);
|
|
121
121
|
|
|
122
|
-
const rowData =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
{ id: 1001, position: "Developer", position2: "2", position3: "Developer" },
|
|
127
|
-
] as ITestRow[],
|
|
128
|
-
[],
|
|
129
|
-
);
|
|
122
|
+
const [rowData, setRowData] = useState([
|
|
123
|
+
{ id: 1000, position: "Tester", position2: "1", position3: "Tester" },
|
|
124
|
+
{ id: 1001, position: "Developer", position2: "2", position3: "Developer" },
|
|
125
|
+
] as ITestRow[]);
|
|
130
126
|
|
|
131
127
|
return (
|
|
132
128
|
<Grid
|
|
@@ -135,6 +131,7 @@ const GridEditMultiSelectTemplate: ComponentStory<typeof Grid> = (props: GridPro
|
|
|
135
131
|
setExternalSelectedItems={setExternalSelectedItems}
|
|
136
132
|
columnDefs={columnDefs}
|
|
137
133
|
rowData={rowData}
|
|
134
|
+
domLayout={"autoHeight"}
|
|
138
135
|
/>
|
|
139
136
|
);
|
|
140
137
|
};
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
},
|
|
25
25
|
decorators: [
|
|
26
26
|
(Story) => (
|
|
27
|
-
<div style={{ width:
|
|
27
|
+
<div style={{ width: 1024, height: 400 }}>
|
|
28
28
|
<GridUpdatingContextProvider>
|
|
29
29
|
<GridContextProvider>
|
|
30
30
|
<Story />
|
|
@@ -151,13 +151,10 @@ const GridReadOnlyTemplate: ComponentStory<typeof Grid> = (props: GridProps) =>
|
|
|
151
151
|
[],
|
|
152
152
|
);
|
|
153
153
|
|
|
154
|
-
const rowData
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
],
|
|
159
|
-
[],
|
|
160
|
-
);
|
|
154
|
+
const [rowData, setRowData] = useState([
|
|
155
|
+
{ id: 1000, position: "Tester", age: 30, desc: "Tests application", dd: "1" },
|
|
156
|
+
{ id: 1001, position: "Developer", age: 12, desc: "Develops application", dd: "2" },
|
|
157
|
+
]);
|
|
161
158
|
|
|
162
159
|
return (
|
|
163
160
|
<Grid
|
|
@@ -166,6 +163,7 @@ const GridReadOnlyTemplate: ComponentStory<typeof Grid> = (props: GridProps) =>
|
|
|
166
163
|
setExternalSelectedItems={setExternalSelectedItems}
|
|
167
164
|
columnDefs={columnDefs}
|
|
168
165
|
rowData={rowData}
|
|
166
|
+
domLayout={"autoHeight"}
|
|
169
167
|
/>
|
|
170
168
|
);
|
|
171
169
|
};
|
|
File without changes
|