@dmsi/wedgekit-react 0.0.644 → 0.0.645
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/{chunk-XVWCVBVF.js → chunk-3MV3KMQH.js} +1 -1
- package/dist/{chunk-Z3Q7PLVD.js → chunk-3PBA2EZ5.js} +1 -1
- package/dist/{chunk-LN3HVXH5.js → chunk-B3T7KBDA.js} +1 -1
- package/dist/{chunk-VAARSN7U.js → chunk-EXCAOI2L.js} +3 -3
- package/dist/{chunk-OXOMO76M.js → chunk-FCGPQNS2.js} +1 -1
- package/dist/{chunk-J2QD64F2.js → chunk-FJXWYGB7.js} +5 -5
- package/dist/{chunk-V2GSI3ZX.js → chunk-HIGNJAQA.js} +2 -2
- package/dist/{chunk-NUFBAJ6L.js → chunk-ISRG77J6.js} +1 -1
- package/dist/{chunk-YXZRGZ2I.js → chunk-REC2XOPI.js} +1 -1
- package/dist/{chunk-K22B4L3G.js → chunk-ZSRTAMSW.js} +28 -1
- package/dist/components/CalendarRange.cjs +157 -154
- package/dist/components/CalendarRange.js +11 -11
- package/dist/components/CompactImagesPreview.cjs +6 -3
- package/dist/components/CompactImagesPreview.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +157 -154
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +11 -11
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +157 -154
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +11 -11
- package/dist/components/DataGrid/PinnedColumns.cjs +157 -154
- package/dist/components/DataGrid/PinnedColumns.js +11 -11
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +157 -154
- package/dist/components/DataGrid/TableBody/LoadingCell.js +11 -11
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +157 -154
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +11 -11
- package/dist/components/DataGrid/TableBody/index.cjs +157 -154
- package/dist/components/DataGrid/TableBody/index.js +11 -11
- package/dist/components/DataGrid/index.cjs +158 -155
- package/dist/components/DataGrid/index.js +11 -11
- package/dist/components/DataGrid/utils.cjs +157 -154
- package/dist/components/DataGrid/utils.js +11 -11
- package/dist/components/DataGridCell.cjs +61 -58
- package/dist/components/DataGridCell.js +5 -5
- package/dist/components/DateInput.cjs +150 -147
- package/dist/components/DateInput.js +11 -11
- package/dist/components/DateRangeInput.cjs +163 -160
- package/dist/components/DateRangeInput.js +11 -11
- package/dist/components/Menu.cjs +15 -12
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuOption.cjs +8 -5
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.js +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +161 -158
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +11 -11
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +161 -158
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +11 -11
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +19 -16
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +4 -4
- package/dist/components/MobileDataGrid/index.cjs +170 -167
- package/dist/components/MobileDataGrid/index.js +11 -11
- package/dist/components/Modal.cjs +15 -12
- package/dist/components/Modal.js +2 -2
- package/dist/components/NestedMenu.cjs +11 -8
- package/dist/components/NestedMenu.js +2 -2
- package/dist/components/PDFViewer/index.cjs +31 -28
- package/dist/components/PDFViewer/index.js +2 -2
- package/dist/components/ProductImagePreview/index.cjs +18 -15
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/ProjectBar.cjs +3 -0
- package/dist/components/ProjectBar.js +1 -1
- package/dist/components/index.cjs +218 -215
- package/dist/components/index.js +11 -11
- package/dist/components/useMenuSystem.cjs +22 -19
- package/dist/components/useMenuSystem.js +2 -2
- package/dist/hooks/index.cjs +28 -0
- package/dist/hooks/index.js +3 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Menu
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HIGNJAQA.js";
|
|
4
4
|
import {
|
|
5
5
|
useSubMenuSystem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ISRG77J6.js";
|
|
7
7
|
import {
|
|
8
8
|
MenuOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-REC2XOPI.js";
|
|
10
10
|
import {
|
|
11
11
|
Search
|
|
12
12
|
} from "./chunk-FHXCCVOG.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RowDetailModalProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3MV3KMQH.js";
|
|
4
4
|
import {
|
|
5
5
|
GridContextProvider
|
|
6
6
|
} from "./chunk-M7INAUAJ.js";
|
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
DataGridCell,
|
|
26
26
|
DragAlongCell,
|
|
27
27
|
DraggableCellHeader
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EXCAOI2L.js";
|
|
29
29
|
import {
|
|
30
30
|
Menu
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HIGNJAQA.js";
|
|
32
32
|
import {
|
|
33
33
|
MenuOption
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-REC2XOPI.js";
|
|
35
35
|
import {
|
|
36
36
|
Search
|
|
37
37
|
} from "./chunk-FHXCCVOG.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
useInfiniteScroll,
|
|
50
50
|
useTableLayout
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZSRTAMSW.js";
|
|
52
52
|
import {
|
|
53
53
|
findDocumentRoot
|
|
54
54
|
} from "./chunk-VXWSAIB5.js";
|
|
@@ -151,10 +151,37 @@ function useTableLayout(initialColumns, key, autosync = true) {
|
|
|
151
151
|
return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
// src/hooks/useEditCell.tsx
|
|
155
|
+
import { useRef as useRef2, useState as useState3 } from "react";
|
|
156
|
+
function useEditCell(initialValue) {
|
|
157
|
+
const [value, setValue] = useState3(initialValue);
|
|
158
|
+
const [isEdit, setIsEdit] = useState3(false);
|
|
159
|
+
const inputRef = useRef2(null);
|
|
160
|
+
function changeToEditMode() {
|
|
161
|
+
setIsEdit(true);
|
|
162
|
+
requestAnimationFrame(() => {
|
|
163
|
+
var _a;
|
|
164
|
+
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function changeToViewMode() {
|
|
168
|
+
setIsEdit(false);
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
value,
|
|
172
|
+
setValue,
|
|
173
|
+
isEdit,
|
|
174
|
+
inputRef,
|
|
175
|
+
changeToEditMode,
|
|
176
|
+
changeToViewMode
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
154
180
|
export {
|
|
155
181
|
useKeydown,
|
|
156
182
|
useInfiniteScroll,
|
|
157
183
|
useMatchesMedia,
|
|
158
184
|
useMatchesMobile,
|
|
159
|
-
useTableLayout
|
|
185
|
+
useTableLayout,
|
|
186
|
+
useEditCell
|
|
160
187
|
};
|