zs_library 0.4.1 → 0.4.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.
@@ -6,7 +6,7 @@ interface ContextMenu {
6
6
  pageX?: number;
7
7
  pageY?: number;
8
8
  }
9
- type ListStatus = 'onMove';
9
+ type ListStatus = "onMove";
10
10
  export interface SortableState {
11
11
  list: SortItem[];
12
12
  setList: any;
package/dist/index.es.js CHANGED
@@ -1257,7 +1257,9 @@ const Nr = Qo({
1257
1257
  setMoveItemId: b,
1258
1258
  setMoveTargetId: g,
1259
1259
  addItem: y
1260
- } = bt(), { pagingDotBuilder: C, pagingDotsBuilder: O, itemBuilder: k } = it(), I = pt(() => e === !1 ? {} : {
1260
+ } = bt();
1261
+ console.log("🚀 ~ list:", a);
1262
+ const { pagingDotBuilder: C, pagingDotsBuilder: O, itemBuilder: k } = it(), I = pt(() => e === !1 ? {} : {
1261
1263
  top: S`
1262
1264
  display: flex;
1263
1265
  flex-direction: column;
package/dist/index.umd.js CHANGED
@@ -316,7 +316,7 @@
316
316
  grid-template-columns: repeat(auto-fill, 96px);
317
317
  grid-auto-flow: dense;
318
318
  grid-auto-rows: 96px;
319
- `,group:{name:"nested",pull:!0,put:!1},animation:150,fallbackOnBody:!0,list:(e==null?void 0:e.children)??[],setList:g=>{var E,k;const x=g.map(P=>P.id),S=(k=(E=o.find(P=>P.id===(e==null?void 0:e.id)))==null?void 0:E.children)==null?void 0:k.map(P=>P.id);x.length===(S==null?void 0:S.length)&&x.every((P,I)=>P===S[I])||x.length<((S==null?void 0:S.length)??0)||s(g,[...(e==null?void 0:e.parentIds)??[],e==null?void 0:e.id])},onMove:()=>(a(null),i("onMove"),!0),onStart:g=>{const x=g.item.dataset;x!=null&&x.id&&l(x.id),i("onMove")},onEnd:()=>{l(null),a(null),i(null)},ghostClass:cr,children:y.map((g,x)=>h.jsx(ln,{data:g,itemIndex:x,onClick:r},g.id))})})})},Ys=n=>{var r;const{data:e,onClose:t}=n;return h.jsx(Rn,{visible:!!e,onClose:()=>{t()},animation:"zoom",maskAnimation:"fade",mousePosition:e!=null&&e.pageX&&(e!=null&&e.pageY)?{x:e==null?void 0:e.pageX,y:e==null?void 0:e.pageY}:null,footer:null,title:((r=e==null?void 0:e.data)==null?void 0:r.name)??"信息",children:e&&h.jsxs("div",{children:[h.jsx("div",{className:"mb-2",children:"开发者信息"}),h.jsx("div",{className:"p-2 rounded-md bg-[#272822]",children:h.jsx(xs,{src:e,theme:"monokai"})})]})})},Gs=n=>{const{pagination:e={position:"bottom"},className:t,sliderProps:r,sliderRef:o,onItemClick:s}=n,i=D.useRef(null),l=D.useRef(null),{list:a,setList:c,setListStatus:d,showInfoItemData:u,setShowInfoItemData:f,openGroupItemData:m,setOpenGroupItemData:p,setMoveItemId:y,setMoveTargetId:g,addItem:x}=lt(),{pagingDotBuilder:S,pagingDotsBuilder:E,itemBuilder:k}=Ye(),P=D.useMemo(()=>e===!1?{}:{top:b.css`
319
+ `,group:{name:"nested",pull:!0,put:!1},animation:150,fallbackOnBody:!0,list:(e==null?void 0:e.children)??[],setList:g=>{var E,k;const x=g.map(P=>P.id),S=(k=(E=o.find(P=>P.id===(e==null?void 0:e.id)))==null?void 0:E.children)==null?void 0:k.map(P=>P.id);x.length===(S==null?void 0:S.length)&&x.every((P,I)=>P===S[I])||x.length<((S==null?void 0:S.length)??0)||s(g,[...(e==null?void 0:e.parentIds)??[],e==null?void 0:e.id])},onMove:()=>(a(null),i("onMove"),!0),onStart:g=>{const x=g.item.dataset;x!=null&&x.id&&l(x.id),i("onMove")},onEnd:()=>{l(null),a(null),i(null)},ghostClass:cr,children:y.map((g,x)=>h.jsx(ln,{data:g,itemIndex:x,onClick:r},g.id))})})})},Ys=n=>{var r;const{data:e,onClose:t}=n;return h.jsx(Rn,{visible:!!e,onClose:()=>{t()},animation:"zoom",maskAnimation:"fade",mousePosition:e!=null&&e.pageX&&(e!=null&&e.pageY)?{x:e==null?void 0:e.pageX,y:e==null?void 0:e.pageY}:null,footer:null,title:((r=e==null?void 0:e.data)==null?void 0:r.name)??"信息",children:e&&h.jsxs("div",{children:[h.jsx("div",{className:"mb-2",children:"开发者信息"}),h.jsx("div",{className:"p-2 rounded-md bg-[#272822]",children:h.jsx(xs,{src:e,theme:"monokai"})})]})})},Gs=n=>{const{pagination:e={position:"bottom"},className:t,sliderProps:r,sliderRef:o,onItemClick:s}=n,i=D.useRef(null),l=D.useRef(null),{list:a,setList:c,setListStatus:d,showInfoItemData:u,setShowInfoItemData:f,openGroupItemData:m,setOpenGroupItemData:p,setMoveItemId:y,setMoveTargetId:g,addItem:x}=lt();console.log("🚀 ~ list:",a);const{pagingDotBuilder:S,pagingDotsBuilder:E,itemBuilder:k}=Ye(),P=D.useMemo(()=>e===!1?{}:{top:b.css`
320
320
  display: flex;
321
321
  flex-direction: column;
322
322
  .slick-list {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zs_library",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "homepage": "https://zs-library.virs.xyz/",
5
5
  "bugs": {
6
6
  "url": "https://github.com/virzs/zs_library/issues"