@pdg/react-table 1.1.2 → 1.1.3
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.esm.js +4 -4
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import React__default,{useMemo,useRef,useState,useCallback,useEffect,createContext,useContext,useLayoutEffect,useId}from'react';import {styled,Box,IconButton,Grid,Stack,TableRow,lighten,TableCell,Pagination,Checkbox,useTheme,TableHead,Tooltip,TableBody,Icon,TableFooter,Paper,Table,Popper,Grow,ClickAwayListener}from'@mui/material';import {notEmpty,empty,ifUndefined,equal}from'@pdg/compare';import {formatPersonalNo,formatBusinessNo,formatTelNo,formatNumber}from'@pdg/formatting';import {PIcon,PCopyToClipboard,PButton}from'@pdg/react-component';import {PSearch,PSearchGroup,PFormHidden}from'@pdg/react-form';import {
|
|
1
|
+
import*as React from'react';import React__default,{useMemo,useRef,useState,useCallback,useEffect,createContext,useContext,useLayoutEffect,useId}from'react';import {styled,Box,IconButton,Grid,Stack,TableRow,lighten,TableCell,Pagination,Checkbox,useTheme,TableHead,Tooltip,TableBody,Icon,TableFooter,Paper,Table,Popper,Grow,ClickAwayListener}from'@mui/material';import {notEmpty,empty,ifUndefined,equal}from'@pdg/compare';import {formatPersonalNo,formatBusinessNo,formatTelNo,formatNumber}from'@pdg/formatting';import {PIcon,PCopyToClipboard,PButton}from'@pdg/react-component';import {PSearch,PSearchGroup,PFormHidden}from'@pdg/react-form';import {useAutoUpdateState,useForwardLayoutRef}from'@pdg/react-hook';import {useSensors,useSensor,MouseSensor,TouchSensor,KeyboardSensor,DndContext,closestCenter}from'@dnd-kit/core';import {useSortable,SortableContext,verticalListSortingStrategy,sortableKeyboardCoordinates,arrayMove}from'@dnd-kit/sortable';import {v4}from'uuid';import {useInView}from'react-intersection-observer';function insertStyle(css) {
|
|
2
2
|
if (typeof window === 'undefined')
|
|
3
3
|
return;
|
|
4
4
|
const style = document.createElement('style');
|
|
@@ -3610,11 +3610,11 @@ var PTable = React__default.forwardRef(function (_a, ref) {
|
|
|
3610
3610
|
* ******************************************************************************************************************/
|
|
3611
3611
|
var _e = useState(false), menuOpen = _e[0], setMenuOpen = _e[1];
|
|
3612
3612
|
var _f = useState(undefined), openMenuId = _f[0], setOpenMenuId = _f[1];
|
|
3613
|
-
var _g =
|
|
3613
|
+
var _g = useAutoUpdateState(initColumns), columns = _g[0], setColumns = _g[1];
|
|
3614
3614
|
var _h = useState(), finalColumns = _h[0], setFinalColumns = _h[1];
|
|
3615
|
-
var _j =
|
|
3615
|
+
var _j = useAutoUpdateState(initItems), items = _j[0], setItems = _j[1];
|
|
3616
3616
|
var _k = useState(), sortableItems = _k[0], setSortableItems = _k[1];
|
|
3617
|
-
var _l =
|
|
3617
|
+
var _l = useAutoUpdateState(initPaging), paging = _l[0], setPaging = _l[1];
|
|
3618
3618
|
/********************************************************************************************************************
|
|
3619
3619
|
* containerHeight
|
|
3620
3620
|
* ******************************************************************************************************************/
|
package/dist/index.js
CHANGED
|
@@ -3610,11 +3610,11 @@ var PTable = React.forwardRef(function (_a, ref) {
|
|
|
3610
3610
|
* ******************************************************************************************************************/
|
|
3611
3611
|
var _e = React.useState(false), menuOpen = _e[0], setMenuOpen = _e[1];
|
|
3612
3612
|
var _f = React.useState(undefined), openMenuId = _f[0], setOpenMenuId = _f[1];
|
|
3613
|
-
var _g = reactHook.
|
|
3613
|
+
var _g = reactHook.useAutoUpdateState(initColumns), columns = _g[0], setColumns = _g[1];
|
|
3614
3614
|
var _h = React.useState(), finalColumns = _h[0], setFinalColumns = _h[1];
|
|
3615
|
-
var _j = reactHook.
|
|
3615
|
+
var _j = reactHook.useAutoUpdateState(initItems), items = _j[0], setItems = _j[1];
|
|
3616
3616
|
var _k = React.useState(), sortableItems = _k[0], setSortableItems = _k[1];
|
|
3617
|
-
var _l = reactHook.
|
|
3617
|
+
var _l = reactHook.useAutoUpdateState(initPaging), paging = _l[0], setPaging = _l[1];
|
|
3618
3618
|
/********************************************************************************************************************
|
|
3619
3619
|
* containerHeight
|
|
3620
3620
|
* ******************************************************************************************************************/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-table",
|
|
3
3
|
"title": "React Table",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "React Table",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@pdg/compare": "^1.0.6",
|
|
60
60
|
"@pdg/formatting": "^1.0.5",
|
|
61
61
|
"@pdg/react-component": "^1.1.0",
|
|
62
|
-
"@pdg/react-form": "^1.1.
|
|
63
|
-
"@pdg/react-hook": "^1.0.
|
|
62
|
+
"@pdg/react-form": "^1.1.2",
|
|
63
|
+
"@pdg/react-hook": "^1.0.32",
|
|
64
64
|
"@pdg/types": "^1.0.2",
|
|
65
65
|
"@types/uuid": "^10.0.0",
|
|
66
66
|
"react-intersection-observer": "^9.16.0",
|