amotify 0.1.58 → 0.1.59

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 (191) hide show
  1. package/dist/@declaration/index.d.ts +10 -0
  2. package/dist/@declaration/index.js +1 -0
  3. package/dist/@declaration/module.d.ts +5 -0
  4. package/dist/@declaration/module.js +0 -0
  5. package/dist/@declaration/property.d.ts +139 -0
  6. package/dist/@declaration/property.js +0 -0
  7. package/dist/@styles/componentClasses/index.css +1502 -0
  8. package/dist/@styles/componentClasses/index.d.ts +23 -0
  9. package/dist/@styles/componentClasses/index.js +398 -0
  10. package/dist/@styles/index.css +1502 -0
  11. package/dist/@styles/index.d.ts +1 -0
  12. package/dist/@styles/index.js +398 -0
  13. package/dist/@styles/init.css +89 -0
  14. package/dist/@styles/init.d.ts +1 -0
  15. package/dist/@styles/init.js +0 -0
  16. package/dist/@styles/style.css +7407 -0
  17. package/dist/@styles/style.d.ts +4 -0
  18. package/dist/@styles/style.js +398 -0
  19. package/dist/@styles/var.css +1258 -0
  20. package/dist/@styles/var.d.ts +1 -0
  21. package/dist/@styles/var.js +0 -0
  22. package/dist/@utils/GenerateClassName.d.ts +11 -0
  23. package/dist/@utils/GenerateClassName.js +1 -0
  24. package/dist/@utils/LaunchReactApp.d.ts +20 -0
  25. package/dist/@utils/LaunchReactApp.js +1 -0
  26. package/dist/@utils/collectForm.d.ts +11 -0
  27. package/dist/@utils/collectForm.js +1 -0
  28. package/dist/@utils/color.d.ts +21 -0
  29. package/dist/@utils/color.js +1 -0
  30. package/dist/@utils/config.d.ts +43 -0
  31. package/dist/@utils/config.js +1 -0
  32. package/dist/@utils/fin.d.ts +1 -0
  33. package/dist/@utils/fin.js +1 -0
  34. package/dist/@utils/getElement.d.ts +6 -0
  35. package/dist/@utils/getElement.js +1 -0
  36. package/dist/@utils/index.d.ts +11 -0
  37. package/dist/@utils/index.js +1 -0
  38. package/dist/@utils/pageTransit.d.ts +11 -0
  39. package/dist/@utils/pageTransit.js +1 -0
  40. package/dist/@utils/useRecycle.d.ts +8 -0
  41. package/dist/@utils/useRecycle.js +1 -0
  42. package/dist/@utils/useStore.d.ts +18 -0
  43. package/dist/@utils/useStore.js +1 -0
  44. package/dist/atoms/Box.d.ts +9 -0
  45. package/dist/atoms/Box.js +1 -0
  46. package/dist/atoms/FAI.d.ts +18 -0
  47. package/dist/atoms/FAI.js +1 -0
  48. package/dist/atoms/Flex.d.ts +11 -0
  49. package/dist/atoms/Flex.js +1 -0
  50. package/dist/atoms/Grid.d.ts +4 -0
  51. package/dist/atoms/Grid.js +1 -0
  52. package/dist/atoms/Img.d.ts +11 -0
  53. package/dist/atoms/Img.js +1 -0
  54. package/dist/atoms/Logo.d.ts +40 -0
  55. package/dist/atoms/Logo.js +51 -0
  56. package/dist/atoms/P.d.ts +9 -0
  57. package/dist/atoms/P.js +1 -0
  58. package/dist/atoms/Placeholder.d.ts +9 -0
  59. package/dist/atoms/Placeholder.js +1 -0
  60. package/dist/atoms/Span.d.ts +9 -0
  61. package/dist/atoms/Span.js +1 -0
  62. package/dist/atoms/index.d.ts +9 -0
  63. package/dist/atoms/index.js +1 -0
  64. package/dist/chunk-VY3566IV.js +1 -0
  65. package/dist/fn/Button.d.ts +82 -0
  66. package/dist/fn/Button.js +1 -0
  67. package/dist/fn/Cropper.d.ts +26 -0
  68. package/dist/fn/Cropper.js +1 -0
  69. package/dist/fn/Effect/Fade.d.ts +17 -0
  70. package/dist/fn/Effect/Fade.js +1 -0
  71. package/dist/fn/Effect/Pudding.d.ts +8 -0
  72. package/dist/fn/Effect/Pudding.js +1 -0
  73. package/dist/fn/Effect/Ripple.d.ts +8 -0
  74. package/dist/fn/Effect/Ripple.js +3 -0
  75. package/dist/fn/Effect/index.d.ts +11 -0
  76. package/dist/fn/Effect/index.js +1 -0
  77. package/dist/fn/Input/AutoHeightText.d.ts +6 -0
  78. package/dist/fn/Input/AutoHeightText.js +1 -0
  79. package/dist/fn/Input/Checker.d.ts +17 -0
  80. package/dist/fn/Input/Checker.js +1 -0
  81. package/dist/fn/Input/Chips/Selector.d.ts +44 -0
  82. package/dist/fn/Input/Chips/Selector.js +1 -0
  83. package/dist/fn/Input/Chips/index.d.ts +60 -0
  84. package/dist/fn/Input/Chips/index.js +1 -0
  85. package/dist/fn/Input/Contenteditable.d.ts +17 -0
  86. package/dist/fn/Input/Contenteditable.js +1 -0
  87. package/dist/fn/Input/DigitCharacters.d.ts +17 -0
  88. package/dist/fn/Input/DigitCharacters.js +1 -0
  89. package/dist/fn/Input/Filer.d.ts +47 -0
  90. package/dist/fn/Input/Filer.js +1 -0
  91. package/dist/fn/Input/Hidden.d.ts +13 -0
  92. package/dist/fn/Input/Hidden.js +1 -0
  93. package/dist/fn/Input/List.d.ts +50 -0
  94. package/dist/fn/Input/List.js +1 -0
  95. package/dist/fn/Input/Parts.d.ts +22 -0
  96. package/dist/fn/Input/Parts.js +1 -0
  97. package/dist/fn/Input/Plain.d.ts +7 -0
  98. package/dist/fn/Input/Plain.js +1 -0
  99. package/dist/fn/Input/RichSelect.d.ts +32 -0
  100. package/dist/fn/Input/RichSelect.js +1 -0
  101. package/dist/fn/Input/Search.d.ts +6 -0
  102. package/dist/fn/Input/Search.js +1 -0
  103. package/dist/fn/Input/Segmented.d.ts +22 -0
  104. package/dist/fn/Input/Segmented.js +1 -0
  105. package/dist/fn/Input/Select.d.ts +28 -0
  106. package/dist/fn/Input/Select.js +1 -0
  107. package/dist/fn/Input/Slider.d.ts +31 -0
  108. package/dist/fn/Input/Slider.js +1 -0
  109. package/dist/fn/Input/Switch.d.ts +17 -0
  110. package/dist/fn/Input/Switch.js +1 -0
  111. package/dist/fn/Input/Text.d.ts +51 -0
  112. package/dist/fn/Input/Text.js +1 -0
  113. package/dist/fn/Input/TextArea.d.ts +19 -0
  114. package/dist/fn/Input/TextArea.js +1 -0
  115. package/dist/fn/Input/Time/Picker.d.ts +37 -0
  116. package/dist/fn/Input/Time/Picker.js +1 -0
  117. package/dist/fn/Input/Time/index.d.ts +78 -0
  118. package/dist/fn/Input/Time/index.js +1 -0
  119. package/dist/fn/Input/core.d.ts +54 -0
  120. package/dist/fn/Input/core.js +1 -0
  121. package/dist/fn/Input/index.d.ts +145 -0
  122. package/dist/fn/Input/index.js +1 -0
  123. package/dist/fn/Layout/PageNotFound.d.ts +6 -0
  124. package/dist/fn/Layout/PageNotFound.js +1 -0
  125. package/dist/fn/Layout/PageRouter.d.ts +27 -0
  126. package/dist/fn/Layout/PageRouter.js +1 -0
  127. package/dist/fn/Layout/PageViewController.d.ts +13 -0
  128. package/dist/fn/Layout/PageViewController.js +1 -0
  129. package/dist/fn/Layout/Plate.d.ts +9 -0
  130. package/dist/fn/Layout/Plate.js +1 -0
  131. package/dist/fn/Layout/RootViewController.d.ts +41 -0
  132. package/dist/fn/Layout/RootViewController.js +1 -0
  133. package/dist/fn/Layout/SwipeView.d.ts +40 -0
  134. package/dist/fn/Layout/SwipeView.js +1 -0
  135. package/dist/fn/Layout/TabBar.d.ts +16 -0
  136. package/dist/fn/Layout/TabBar.js +1 -0
  137. package/dist/fn/Layout/index.d.ts +27 -0
  138. package/dist/fn/Layout/index.js +1 -0
  139. package/dist/fn/Loader/corner.d.ts +1 -0
  140. package/dist/fn/Loader/corner.js +1 -0
  141. package/dist/fn/Loader/index.d.ts +47 -0
  142. package/dist/fn/Loader/index.js +1 -0
  143. package/dist/fn/Loader/mini.d.ts +6 -0
  144. package/dist/fn/Loader/mini.js +1 -0
  145. package/dist/fn/Loader/top.d.ts +2 -0
  146. package/dist/fn/Loader/top.js +1 -0
  147. package/dist/fn/Sheet.d.ts +76 -0
  148. package/dist/fn/Sheet.js +1 -0
  149. package/dist/fn/Snackbar.d.ts +24 -0
  150. package/dist/fn/Snackbar.js +1 -0
  151. package/dist/fn/Table/Data.d.ts +128 -0
  152. package/dist/fn/Table/Data.js +1 -0
  153. package/dist/fn/Table/Drag.d.ts +18 -0
  154. package/dist/fn/Table/Drag.js +1 -0
  155. package/dist/fn/Table/Normal.d.ts +16 -0
  156. package/dist/fn/Table/Normal.js +1 -0
  157. package/dist/fn/Table/Parts.d.ts +24 -0
  158. package/dist/fn/Table/Parts.js +1 -0
  159. package/dist/fn/Table/Wrapper.d.ts +10 -0
  160. package/dist/fn/Table/Wrapper.js +1 -0
  161. package/dist/fn/Table/cellStyling.d.ts +9 -0
  162. package/dist/fn/Table/cellStyling.js +1 -0
  163. package/dist/fn/Table/index.d.ts +42 -0
  164. package/dist/fn/Table/index.js +1 -0
  165. package/dist/fn/Tooltips.d.ts +31 -0
  166. package/dist/fn/Tooltips.js +1 -0
  167. package/dist/fn/index.d.ts +10 -0
  168. package/dist/fn/index.js +1 -0
  169. package/dist/index.d.ts +400 -0
  170. package/dist/index.js +1 -0
  171. package/dist/mols/Accordion.d.ts +25 -0
  172. package/dist/mols/Accordion.js +1 -0
  173. package/dist/mols/Column.d.ts +7 -0
  174. package/dist/mols/Column.js +1 -0
  175. package/dist/mols/LinkifyText.d.ts +10 -0
  176. package/dist/mols/LinkifyText.js +1 -0
  177. package/dist/mols/List.d.ts +11 -0
  178. package/dist/mols/List.js +1 -0
  179. package/dist/mols/Row.d.ts +16 -0
  180. package/dist/mols/Row.js +1 -0
  181. package/dist/mols/Text.d.ts +21 -0
  182. package/dist/mols/Text.js +1 -0
  183. package/dist/mols/index.d.ts +6 -0
  184. package/dist/mols/index.js +1 -0
  185. package/dist/orgs/index.d.ts +1 -0
  186. package/dist/orgs/index.js +0 -0
  187. package/dist/temps/designBook.d.ts +4 -0
  188. package/dist/temps/designBook.js +99 -0
  189. package/dist/temps/index.d.ts +1 -0
  190. package/dist/temps/index.js +1 -0
  191. package/package.json +1 -1
@@ -0,0 +1,128 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../../@declaration';
3
+ import { TableTypes } from '.';
4
+ import TableParts from './Parts';
5
+ declare namespace Data {
6
+ type Cell = TableParts.TableCell & {
7
+ type?: 'th' | 'td';
8
+ data: string | number;
9
+ option?: any;
10
+ orderIndex?: string | number;
11
+ };
12
+ type HeadRow = Cell[];
13
+ type BodyRow = Array<Cell> & ArrayObject;
14
+ type ArrayObject = {
15
+ rowID?: any;
16
+ __sys4SearchKey?: string;
17
+ checked?: boolean;
18
+ filtered?: boolean;
19
+ currentPage?: boolean;
20
+ };
21
+ type Input = TableTypes.UniInput & {
22
+ tableID?: string;
23
+ head: HeadRow;
24
+ rows: BodyRow[];
25
+ onRowClick?: TableTypes.OnRowClick;
26
+ eventID?: string;
27
+ checker?: boolean;
28
+ searchKeyword?: string;
29
+ filter?: boolean | boolean[];
30
+ order?: boolean | boolean[];
31
+ defaultOrder?: Order;
32
+ pageRowLength: number;
33
+ noRecords?: ReactElement;
34
+ onOrderChanged?: {
35
+ (order: Order): void;
36
+ };
37
+ };
38
+ type FNs = {
39
+ __memoryID: string;
40
+ useStatus(tableID: string): useStatusOutput;
41
+ getRowData(tableID: string): BodyRow[];
42
+ setPageIndex(tableID: string, pageIndex: number): void;
43
+ setRowLength(tableID: string, rowLength: number): void;
44
+ setSearchKeyword(tableID: string, keyword: string): void;
45
+ };
46
+ type Parts = {
47
+ SearchInput: React.FC<{
48
+ tableID: string;
49
+ }>;
50
+ Info: React.FC<{
51
+ tableID: string;
52
+ }>;
53
+ Paging: React.FC<{
54
+ tableID: string;
55
+ }>;
56
+ RowLength: React.FC<{
57
+ tableID: string;
58
+ lengthSelect: number[];
59
+ }>;
60
+ };
61
+ type useStatusOutput = {
62
+ tableComponentDidMount: boolean;
63
+ totalRows: number;
64
+ pageRows: number;
65
+ filteredRows: number;
66
+ searchKeyword: string;
67
+ filter: {
68
+ enabled: boolean;
69
+ column: boolean[];
70
+ current: (string[])[];
71
+ };
72
+ order: {
73
+ enabled: boolean;
74
+ column: boolean[];
75
+ current: Data.Order;
76
+ };
77
+ paging: {
78
+ rowLength: number;
79
+ pageLength: number;
80
+ currentPageIndex: number;
81
+ };
82
+ };
83
+ type FilterColumnsProps = {
84
+ index: number;
85
+ keyword: string;
86
+ enabled: boolean;
87
+ }[];
88
+ type Order = [number, 'ASC' | 'DESC'];
89
+ type Options = {
90
+ tableID: string;
91
+ componentID: string;
92
+ colLength: number;
93
+ checker: boolean;
94
+ searchKeyword: string;
95
+ filter: {
96
+ enabled: boolean;
97
+ column: boolean[];
98
+ current: (string[])[];
99
+ };
100
+ order: {
101
+ enabled: boolean;
102
+ column: boolean[];
103
+ current: Data.Order;
104
+ };
105
+ paging: {
106
+ rowLength: number;
107
+ pageLength: number;
108
+ currentPageIndex: number;
109
+ };
110
+ head: Data.HeadRow;
111
+ rows: Data.BodyRow[];
112
+ noRecords: ReactElement;
113
+ cellStyles?: TagProperty.Para;
114
+ cellClassName?: string;
115
+ cellStylesCallback?: {
116
+ (para: TableTypes.StylesCallbackInput): TagProperty.Para;
117
+ };
118
+ onRowClick?: TableTypes.OnRowClick;
119
+ onOrderChanged?: {
120
+ (args: Data.Order): void;
121
+ };
122
+ };
123
+ type Methods = {
124
+ (props: Data.Input): JSX.Element;
125
+ } & FNs & Parts;
126
+ }
127
+ declare const Data: Data.Methods;
128
+ export { Data, Data as default };
@@ -0,0 +1 @@
1
+ import{b as s,c as R,d as q}from"../../chunk-VY3566IV.js";import{Fragment as W,jsx as n,jsxs as x}from"react/jsx-runtime";import{useState as F,useEffect as G}from"react";import I from"@mingoo/jsmin";import{useStore as L}from"../../@utils";import B from"../../atoms/Box";import M from"../../atoms/Flex";import K from"../../atoms/FAI";import Y from"../../atoms/Span";import Z from"../../mols/Column";import A from"../../mols/Row";import E from"../Button";import U from"../Sheet";import O from"../Input";import{faArrowUp as ee}from"@fortawesome/free-solid-svg-icons/faArrowUp";import{faArrowDown as te}from"@fortawesome/free-solid-svg-icons/faArrowDown";import{faArrowRight as re}from"@fortawesome/free-solid-svg-icons/faArrowRight";import{faFilter as oe}from"@fortawesome/free-solid-svg-icons/faFilter";import P from"./Parts";import ne from"./Wrapper";import{DefaultCellSystemStyles as V}from"./cellStyling";import{TableClasses as m}from"../../@styles/componentClasses";const f={__memoryID:I.uuid.gen(),Header:t=>{let{val_status:e,set_status:r,KeywordFilterRows:i}=s({},t),{order:u,filter:o}=e,[w,S]=u.current,c=[],g=[...e.head];e.checker&&c.push(n(P.TH,R(s(s(R(s({},e.cellStyles),{fontWeight:"2.normal",position:"sticky",top:0,unitWidth:4,padding:0}),V({top:!0,bottom:!e.rows.length,left:!0,right:!e.colLength})),e.cellStylesCallback?e.cellStylesCallback({top:!0,bottom:!e.rows.length,left:!0,right:!e.colLength,rowIndex:0,colIndex:0,isBody:!1,isHeader:!0}):{}),{className:[m("Cell"),e.cellClassName].join(" "),freeCSS:{zIndex:2},children:n(B,{flexCenter:!0,children:n(O.Checker,{label:null,value:!1,onUpdateValidValue:({value:l})=>{let h=e.rows;h.forEach(C=>{C.checked=l}),r(R(s({},e),{rows:h}))}})})})));for(let l=0;l<e.colLength;l++){let h=g[l];if(!h)continue;let C=h.children||h.data,a=u.enabled&&u.column[l],d=o.enabled&&o.column[l],p=a?n(K,{fontSize:"1.mini",fontColor:l==w?"1.clear":"5.translucent",icon:l==w?S=="DESC"?te:ee:re}):null,_=n(W,{});if(d){let k=i.map(T=>{var N;return(N=T[l])==null?void 0:N.data});k=[...new Set(k)].order({direction:"ASC"});let v=o.current[l];if(v){let T=k.filter(y=>!v.includes(y)),N=[];k.forEach(y=>{y&&N.push({value:y,label:n(B,{flexSizing:"auto",children:y})})});let j="BUTTON-"+e.componentID+"-"+l,J=e.componentID+"-"+l,X={sheetID:J,parent:"#"+j,gravityPoint:23,type:"custom",content:x(M,{flexType:"col",border:!0,boxShadow:"3.remark",backgroundColor:"layer.1",borderRadius:1,freeCSS:{minWidth:12*20,maxWidth:12*30},children:[n(Z,{gap:"1/3",overflow:"auto",padding:"2/3",freeCSS:{maxHeight:12*30},children:n(O.Checkbox,{tone:"cloud",icon:!0,value:T,display:"flex",gap:"1/2",override:"force",options:N,hideInput:!0,name:"DTFilter-col-"+l+"-table-"+e.componentID,cellStyles:{flexSizing:"auto",padding:"2/3"},onUpdateValidValue:({value:y})=>{let H=k.filter(Q=>!y.includes(Q)),$=s({},e);$.filter.current[l]=H,r($)}})}),x(A.Separate,{gap:"2/3",padding:"2/3",horizontalAlign:"right",children:[n(E.Button.Border.S,{isRounded:!0,onClick:()=>{U.close(J)},children:"\u9589\u3058\u308B"}),n(E.Button.Prime.S,{color:"theme",isRounded:!0,ssEffectsOnActive:"shrink",onClick:()=>{let y=[];v.length||(y=k);let H=s({},e);H.filter.current[l]=y,r(H)},children:"\u5168\u9078\u629E"})]})]})};U.refresh(X,!0),_=n(B,{className:m("FilterRegion"),children:n(E.Button.Sub.S,{ssSphere:2.5,fontSize:"1.mini",className:m("Filtering_"+!!v.length),id:j,onClick:y=>{y.stopPropagation(),U.open(X)},children:n(K,{icon:oe})})})}}h=R(s(s(s(s({},e.cellStyles),h),V({top:!0,bottom:!e.rows.length,left:l==Number(e.checker),right:l==e.colLength-1})),e.cellStylesCallback?e.cellStylesCallback({top:!0,bottom:!e.rows.length,left:l==Number(e.checker),right:l==e.colLength-1,rowIndex:0,colIndex:l,isBody:!1,isHeader:!0}):{}),{ssPushable:a,className:[m("Cell"),e.cellClassName,h.className].join(" ")}),c.push(n(P.TH,R(s({fontWeight:"2.normal",position:"sticky",top:0},h),{freeCSS:s({zIndex:2},h.freeCSS),onClick:k=>{if(a){let v=s({},e),T=[l,w===l&&S=="ASC"?"DESC":"ASC"];v.order.current=T,r(v),e.onOrderChanged&&e.onOrderChanged(T)}},children:x(M,{flexType:"row-r",flexWrap:!1,height:1,borderRadius:"inherit",flexCenter:!0,children:[_,x(M,{flexSizing:0,position:"relative",borderRadius:"inherit",gap:"1/3",flexWrap:!1,horizontalAlign:"center",children:[p,C]})]})})))}return n(P.Row,{className:[m("Row"),m("HeadRow")].join(" "),children:c})},Body:t=>{let{val_status:e,PageRows:r}=t,i=[];if(r.forEach((u,o)=>{let w=[...u],S=[];e.checker&&S.push(n(P.TH,R(s(s(s({unitWidth:4,padding:0,borderRight:!0},e.cellStyles),V({top:o==0&&!e.head,bottom:o==r.length-1,left:!0,right:!e.colLength})),e.cellStylesCallback?e.cellStylesCallback({top:o==0&&!e.head,bottom:o==r.length-1,left:!0,right:!e.colLength,rowIndex:o,colIndex:0,isBody:!0,isHeader:!1}):{}),{className:[m("Cell"),e.cellClassName].join(" "),children:n(B,{flexCenter:!0,children:n(O.Checker,{label:null,value:u.checked,override:"force",onUpdateValidValue:({value:c})=>{let g=e.rows;g[o].checked=c,t.set_status(R(s({},e),{rows:g}))}})})}))),w.forEach((c,g)=>{if(!c)return;let a=c,{type:l="td"}=a,h=q(a,["type"]);h=R(s(s(s(s({},e.cellStyles),h),V({top:o==0&&!e.head,bottom:o==r.length-1,left:e.checker?!1:g==0,right:g==e.colLength-1})),e.cellStylesCallback?e.cellStylesCallback({top:o==0&&!e.head,bottom:o==r.length-1,left:e.checker?!1:g==0,right:g==e.colLength-1,rowIndex:o,colIndex:g,isBody:!0,isHeader:!1}):{}),{className:[m("Cell"),e.cellClassName,h.className].join(" ")});let C=P[l=="td"?"TD":"TH"];S.push(n(C,s({},h),g))}),i.push(n(P.Row,{className:[m("Row"),m("BodyRow")].join(" "),children:S,onClick:c=>{e.onRowClick&&e.onRowClick(JSON.parse(u.rowID),c)}},o))}),!r.length){let u=n(B,{padding:2,fontColor:"4.thin",freeCSS:{textAlign:"center"},borderTop:"1.thin",children:"\u30C6\u30FC\u30D6\u30EB\u304C\u3042\u308A\u307E\u305B\u3093"});e.noRecords&&(u=n(W,{children:e.noRecords})),i.push(n(P.Row,{className:[m("Row"),m("BodyRow"),m("DataNotFound")].join(" "),children:n(P.TD,{colSpan:e.colLength,className:m("Cell"),children:u})},"dataNotFound"))}return n(W,{children:i})},Core:t=>{let{val_status:e,set_status:r}=t,{searchKeyword:i,filter:u,order:o,paging:w}=e,S=[...e.rows],c=[...e.rows],g=[...e.rows],l=[...e.rows];if(i&&(c=S.filter(a=>(a.__sys4SearchKey||"").match(new RegExp(i,"i"))?1:0),g=[...c],l=[...c]),u.enabled)for(let a=0;a<e.colLength;a++){let d=u.column[a],p=u.current[a];d&&p&&p.length&&(g=g.filter(_=>!p.includes(_[a].data)),l=[...g])}o.enabled&&(g=g.order({direction:o.current[1],keys:[o.current[0],"orderIndex"]}),l=[...g]);{let{currentPageIndex:a,rowLength:d}=w;l=[...l].splice((a-1)*d,d)}let h=f.__memoryID+"_"+e.tableID,C={tableComponentDidMount:!0,totalRows:S.length,pageRows:l.length,filteredRows:g.length,filter:e.filter,order:e.order,paging:e.paging,searchKeyword:e.searchKeyword};return L.update({key:h,value:{status:C,updatePageIndex:a=>{let d=Math.min(Math.max(1,a),e.paging.pageLength),p=s({},e);p.paging.currentPageIndex=d,r(p)},updateRowLength:a=>{let d=s({},e);d.paging={rowLength:a,currentPageIndex:1,pageLength:Math.ceil(g.length/a)},r(d)},updateKeyword:a=>{I.interval.clear("InputSearchTime"),I.interval.standBy("InputSearchTime",200,()=>{let d=s({},e);d.searchKeyword=a,d.paging.currentPageIndex=1,d.filter.current=d.filter.current.map(()=>[]),r(d)})},getRowData:()=>{let a=[...S];return o.enabled&&(a=a.order({direction:o.current[1],keys:[o.current[0],"orderIndex"]})),a.forEach(d=>{d.currentPage=!1,d.filtered=!1}),l.forEach(d=>{let{rowID:p}=d;a.find(_=>_.rowID==p).currentPage=!0}),g.forEach(d=>{let{rowID:p}=d;a.find(_=>_.rowID==p).filtered=!0}),a}}}),G(()=>{let a=f.Propagations[e.tableID]||[];Object.keys(a).forEach(d=>{let p=L.get(d);p!=null&&p.refresh&&p.refresh()})}),n(B,{className:m("TableBase"),children:x(P.Table,{className:m("Table"),children:[n(f.Header,{val_status:e,set_status:r,KeywordFilterRows:c}),n(f.Body,{val_status:e,set_status:r,PageRows:l})]})})},Propagations:{},DataLeveler:t=>{var e,r;return t=s({},t),t.filter=(e=t.filter)!=null?e:!1,t.filter=Array.from({length:t.colLength}).map((i,u)=>{var o;return I.is.boolean(t.filter)?t.filter:(o=t.filter[u])!=null?o:!1}),t.order=(r=t.order)!=null?r:!0,t.order=Array.from({length:t.colLength}).map((i,u)=>{var o;return I.is.boolean(t.order)?t.order:(o=t.order[u])!=null?o:!0}),t=s({checker:!1,searchKeyword:"",filter:!1,order:!0,defaultOrder:[0,"ASC"]},t),t.rows.forEach((i,u)=>{i.rowID=JSON.stringify(i.rowID||u);let o=[];i.forEach((w,S)=>{let{data:c,children:g,orderIndex:l}=w;w.orderIndex=I.is.exist(l)?String(l):String(c),w.children=g||String(c),o.push(String(w.data))}),i.__sys4SearchKey=o.join("/")}),n(f.StateManager,s({eventID:I.uuid.gen()},t))},StateManager:t=>{let{colLength:e,eventID:r,checker:i=!1,searchKeyword:u="",filter:o,order:w,defaultOrder:S=[0,"ASC"],pageRowLength:c=30}=t,[g]=F(I.uuid.gen()),l={tableID:t.tableID||g,componentID:g,colLength:e,checker:i,searchKeyword:u,filter:{enabled:o!==!1,column:o,current:Array.from({length:e},()=>[])},order:{enabled:w!==!1,column:w,current:S},paging:{rowLength:c,pageLength:Math.ceil(t.rows.length/c),currentPageIndex:1},head:t.head,rows:t.rows,noRecords:t.noRecords,cellStyles:t.cellStyles||{},cellClassName:t.cellClassName||"",cellStylesCallback:t.cellStylesCallback,onRowClick:t.onRowClick,onOrderChanged:t.onOrderChanged},[h,C]=F(l),[a,d]=F(t.eventID);return a!=t.eventID&&(d(t.eventID),C(l)),n(f.Core,{val_status:h,set_status:C})}},b={__memoryID:f.__memoryID,useStatus:t=>{var o;let[e]=F(I.uuid.gen()),[r,i]=F(I.uuid.gen()),u=f.__memoryID+"_"+t;return G(()=>(f.Propagations[t]=R(s({},f.Propagations[t]),{[e]:1}),L.set({key:e,value:{refresh:()=>{i(I.uuid.gen())}}}),()=>{delete f.Propagations[t][e]}),[]),((o=L.get(u))==null?void 0:o.status)||{tableComponentDidMount:!1}},getRowData:t=>{let e=L.get(f.__memoryID+"_"+t);if(e!=null&&e.getRowData)return e.getRowData()},setPageIndex:(t,e)=>{let r=L.get(f.__memoryID+"_"+t);r!=null&&r.updatePageIndex&&r.updatePageIndex(e)},setRowLength:(t,e)=>{let r=L.get(f.__memoryID+"_"+t);r!=null&&r.updateRowLength&&r.updateRowLength(e)},setSearchKeyword:(t,e)=>{let r=L.get(f.__memoryID+"_"+t);r!=null&&r.updateKeyword&&r.updateKeyword(e)}},z={SearchInput:t=>{let e=b.useStatus(t.tableID);return e.tableComponentDidMount?n(O.Text.Normal,{placeholder:"\u691C\u7D22...",clearButton:!0,padding:"2/3",paddingRight:3,rightIcon:n(O.Comps.RightIcon,{fontColor:"5.translucent",right:"2/3",children:n(K.Search,{})}),override:"force",value:e.searchKeyword,onUpdateValidValue:({value:r})=>{b.setSearchKeyword(t.tableID,r)}}):null},Info:t=>{let e=b.useStatus(t.tableID);if(!e.tableComponentDidMount)return null;let r=e.filteredRows.ratio(e.totalRows)||0;return x(M,{verticalAlign:"baseline",gap:"1/2",fontSize:"1.mini",fontColor:"3.blur",children:[n(Y,{fontSize:"4.thirdTitle",fontColor:"theme",children:e.filteredRows.toLocaleString()}),"/ ",e.totalRows.toLocaleString(),"\u4EF6 (",r,"%)"]})},Paging:t=>{let e=b.useStatus(t.tableID);if(!e.tableComponentDidMount)return null;let r=[];for(let i=0;i<e.paging.pageLength;i++)r.push({value:i+1,label:(i+1).toString()});return x(A.Center,{children:[x(A.Center,{gap:"1/2",children:["\u30DA\u30FC\u30B8 :",n(O.Select,{enableUnSelected:!1,padding:["1/3","2/3"],rightIcon:!1,placeholder:"",override:"force",value:e.paging.currentPageIndex,options:r,onUpdateValidValue:({value:i})=>{b.setPageIndex(t.tableID,i)}}),"/ ",e.paging.pageLength]}),x(A.Right,{gap:"1/2",children:[n(E.Button.Sub.R,{ssSphere:3,onClick:()=>{if(e.paging.currentPageIndex==1){b.setPageIndex(t.tableID,e.paging.pageLength);return}b.setPageIndex(t.tableID,e.paging.currentPageIndex-1)},children:n(K.ChevronLeft,{})}),n(E.Button.Sub.R,{ssSphere:3,onClick:()=>{if(e.paging.currentPageIndex==e.paging.pageLength){b.setPageIndex(t.tableID,1);return}b.setPageIndex(t.tableID,e.paging.currentPageIndex+1)},children:n(K.ChevronRight,{})})]})]})},RowLength:t=>{let e=b.useStatus(t.tableID);if(!e.tableComponentDidMount)return null;let r=e.paging.rowLength,i=0,u=t.lengthSelect.map(o=>(i|=+(o==r),{value:o,label:o.toString()}));return i||u.push({value:r,label:r.toString()}),u=u.order({direction:"ASC",keys:["value"]}),x(A.Center,{gap:"1/2",children:["\u4EF6\u6570 :",n(O.Select,{enableUnSelected:!1,rightIcon:!1,placeholder:"\u9078\u629E",override:"force",padding:["1/3","2/3"],value:e.paging.rowLength,options:u,onUpdateValidValue:({value:o})=>{b.setRowLength(t.tableID,o)}})]})}},le=t=>n(ne,R(s({},t),{type:"data",JSXChildren:f.DataLeveler})),D=le;D.__memoryID=f.__memoryID,D.useStatus=b.useStatus,D.getRowData=b.getRowData,D.setPageIndex=b.setPageIndex,D.setRowLength=b.setRowLength,D.setSearchKeyword=b.setSearchKeyword,D.Info=z.Info,D.Paging=z.Paging,D.RowLength=z.RowLength,D.SearchInput=z.SearchInput;export{D as Data,D as default};
@@ -0,0 +1,18 @@
1
+ import { TableTypes } from '.';
2
+ import TableParts from './Parts';
3
+ declare namespace Drag {
4
+ type Cell = TableParts.Cell;
5
+ type HeadRow = Cell[];
6
+ type BodyRow = Cell[] & {
7
+ rowID?: any;
8
+ };
9
+ type Input = TableTypes.UniInput & {
10
+ head: HeadRow | false;
11
+ rows: BodyRow[];
12
+ onOrderChanged: {
13
+ (orderList: any[]): void;
14
+ };
15
+ };
16
+ }
17
+ declare const Drag: (para: Drag.Input) => import("react/jsx-runtime").JSX.Element;
18
+ export { Drag, Drag as default };
@@ -0,0 +1 @@
1
+ import{b as r,c as w,e as I}from"../../chunk-VY3566IV.js";import{Fragment as J,jsx as n,jsxs as j}from"react/jsx-runtime";import{useState as k,useEffect as x}from"react";import T from"@mingoo/jsmin";import{$$fromRoot as N,useStore as R}from"../../@utils";import v from"../../atoms/FAI";import M from"../Button";import L from"../Tooltips";import b from"./Parts";import z from"./Wrapper";import{faGripVertical as O}from"@fortawesome/free-solid-svg-icons/faGripVertical";import{DefaultCellSystemStyles as S}from"./cellStyling";import{TableClasses as g}from"../../@styles/componentClasses";const E={HeadRow:e=>{let{cellStyles:t={},cellClassName:m="",cellStylesCallback:a,colLength:s,head:o,rows:i}=e;if(!o)return null;let c=[];for(let p=0;p<s;p++){let u=o[p],D=b[u.type=="th"?"TH":"TD"];c.push(n(D,r(w(r(r(r({},t),S({top:!0,bottom:!i.length,left:p==0,right:p==s-1})),a?a({top:!0,bottom:!i.length,left:p==0,right:p==s-1,rowIndex:0,colIndex:p,isBody:!1,isHeader:!0}):{}),{className:[g("Cell"),m,u.className].join(" ")}),u)))}return n(b.Row,{className:[g("Row"),g("HeadRow")].join(" "),children:c})},BodyRows:e=>{let{cellStyles:t={},cellClassName:m="",cellStylesCallback:a,head:s,rows:o,colLength:i,onOrderChanged:c}=e,[p]=k(T.uuid.gen()),[u,D]=k({rows:o,origin:0,to:NaN}),B=[];if(u.rows.forEach((y,l)=>{let h=[];h.push(n(b.TH,w(r(r(r({padding:0,borderRight:!0},t),S({top:l==0&&!s,bottom:l==o.length-1,left:!0,right:!1})),a?a({top:l==0&&!s,bottom:l==o.length-1,left:!0,right:!1,rowIndex:l,colIndex:0,isBody:!0,isHeader:!1}):{}),{className:[g("Cell"),g("Draggable"),m].join(" "),children:n(M.Button.Clear.R,{className:g("DragableButton"),fontColor:"4.thin",fontSize:"3.paragraph",margin:"auto",tabIndex:-1,ssSphere:3,onMouseDown:d=>{C.Start(d,{id:p,index:l,rows:u.rows,maxLength:o.length})},onTouchStart:d=>{C.Start(d,{id:p,index:l,rows:u.rows,maxLength:o.length})},children:n(v,{icon:O})})}),"DragOrigin")),y.forEach((d,f)=>{d=r({},d);let H=b[d.type=="th"?"TH":"TD"];h.push(n(H,r(w(r(r(r({},t),S({top:!!s&&!s.length,bottom:l==o.length-1,left:!1,right:f==i-2})),a?a({top:!!s&&!s.length,bottom:l==o.length-1,left:!1,right:f==i-2,rowIndex:l,colIndex:f,isBody:!0,isHeader:!1}):{}),{className:[g("Cell"),m,d.className].join(" ")}),d)))}),B.push(n(b.Row,{id:"TableRow-"+p+"-"+l,"data-rowId":l,className:[g("Row"),g("BodyRow")].join(" "),children:h},l))}),!isNaN(u.to)){let{origin:y,to:l}=u,h=[];h.push(n(b.TH,{backgroundColor:"theme.opa.low",padding:0,borderRight:"2.normal",className:[g("Cell"),g("Draggable"),m].join(" "),children:n(v.ArrowRight,{fontColor:"theme"})},"dragButton")),u.rows[y].forEach((f,H)=>{f=r({},f);let $=b[f.type=="th"?"TH":"TD"];h.push(n($,r(w(r(r(r({},t),S({top:!1,bottom:!1,left:!1,right:!1})),a?a({top:!1,bottom:!1,left:!1,right:!1,rowIndex:-1,colIndex:-1,isBody:!0,isHeader:!1}):{}),{className:[g("Cell"),m,f.className].join(" "),backgroundColor:"theme.opa.low"}),f)))}),B.splice(l,0,n(b.Row,{className:[g("Row"),g("Pre")].join(" "),children:h},"preSet"))}return x(()=>{R.set({key:p,value:{swap:(y,l)=>{if(l||l==0){let h=u.rows[y],d=[...u.rows];d.splice(y,1),d.splice(l-(y<l?1:0),0,h),D({rows:d,origin:0,to:NaN}),c(d.map(f=>JSON.parse(f.rowID)))}},preSet:y=>{let{origin:l,index:h}=y;D({rows:u.rows,origin:l,to:h})}}})}),x(()=>()=>{R.delete(p)},[]),n(J,{children:B})},Drag:e=>(e=r({},e),e.colLength=e.colLength+1,e.head&&(e.head=[{children:n(M.Button.Clear.R,{ssSphere:3,fontSize:"3.paragraph",fontColor:"theme",onMouseOver:t=>{L.open({parent:t.currentTarget,content:j(L.Comps.Body,{children:[n(v,{icon:O}),"\u30DC\u30BF\u30F3\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u9806\u5E8F\u3092\u5909\u66F4"]})})},children:n(v.QuestionCircle,{})}),padding:[0,1],unitWidth:4},...e.head]),e.rows=e.rows.map((t,m)=>(t.rowID=JSON.stringify(t.rowID||m),t)),j(b.Table,{className:g("Table"),children:[n(E.HeadRow,r({},e)),n(E.BodyRows,r({},e))]}))},P=e=>n(z,w(r({type:"drag"},e),{JSXChildren:E.Drag})),C={Start:function(e,t){return I(this,null,function*(){e.stopPropagation(),e.preventDefault();let{id:m,index:a,rows:s,maxLength:o}=t;N("#TableRow-"+m+"-"+a).addClass(g("DraggerOrigin")),T(document).addEvent({eventID:"DragMouseMove",eventType:"mousemove",callback:i=>{C.Move(i,t)},options:{passive:!1}}).addEvent({eventID:"DragTouchMove",eventType:"touchmove",callback:i=>{C.Move(i,t)},options:{passive:!1}}).addEvent({eventID:"DragMouseUp",eventType:"mouseup",callback:i=>{C.End(i,t)}}).addEvent({eventID:"DragTouchEnd",eventType:"touchend",callback:i=>{C.End(i,t)}})})},Move:function(e,t){let{id:m,maxLength:a}=t,s=T.getCursor(e).y-T.getScreenSize().scrollY;for(let o=0;o<a;o++){let i=N("#TableRow-"+m+"-"+o),{top:c,bottom:p,height:u}=i.position();o==0&&s<c?t.insertIndex=0:o===a-1&&p<=s?t.insertIndex=a:s>=c&&s<p&&(t.insertIndex=o+1)}{let{index:o,insertIndex:i}=t,c=R.get(m);c&&c.preSet&&c.preSet({origin:o,index:i})}return e.stopPropagation(),e.preventDefault(),!1},End:function(e,t){let{id:m,index:a,insertIndex:s}=t,o=R.get(m);o&&o.swap&&o.swap(a,s),N("#TableRow-"+m+"-"+a).removeClass(g("DraggerOrigin")),T(document).removeEvent(["DragMouseMove","DragTouchMove","DragMouseUp","DragTouchEnd"])}};export{P as Drag,P as default};
@@ -0,0 +1,16 @@
1
+ import { TableTypes } from '.';
2
+ import TableParts from './Parts';
3
+ declare namespace Normal {
4
+ type Cell = TableParts.Cell;
5
+ type HeadRow = Cell[];
6
+ type BodyRow = Cell[] & {
7
+ rowID?: string | number;
8
+ };
9
+ type Input = TableTypes.UniInput & {
10
+ head: HeadRow | false;
11
+ rows: BodyRow[];
12
+ onRowClick?: TableTypes.OnRowClick;
13
+ };
14
+ }
15
+ declare const Normal: (para: Normal.Input) => import("react/jsx-runtime").JSX.Element;
16
+ export { Normal, Normal as default };
@@ -0,0 +1 @@
1
+ import{b as e,c as f}from"../../chunk-VY3566IV.js";import{Fragment as H,jsx as a,jsxs as B}from"react/jsx-runtime";import w from"./Parts";import d from"./Wrapper";import{DefaultCellSystemStyles as N}from"./cellStyling";import{TableClasses as r}from"../../@styles/componentClasses";const c={HeadRow:l=>{let{cellStyles:s={},cellClassName:i="",cellStylesCallback:n,colLength:y,head:m,rows:h}=l;if(!m)return null;let C=[];return m.forEach((p,t)=>{let o=w[p.type=="th"?"TH":"TD"];C.push(a(o,e(f(e(e(e({},s),N({top:!0,bottom:!h.length,left:t==0,right:t==y-1})),n?n({top:!0,bottom:!h.length,left:t==0,right:t==y-1,rowIndex:0,colIndex:t,isBody:!1,isHeader:!0}):{}),{className:[r("Cell"),i,p.className].join(" ")}),p)))}),a(w.Row,{className:[r("Row"),r("HeadRow")].join(" "),children:C})},BodyRows:l=>{let{cellStyles:s={},cellClassName:i="",cellStylesCallback:n,head:y,rows:m,colLength:h,onRowClick:C}=l,p=[];return m.forEach((t,o)=>{let b=[];t.forEach((R,u)=>{let g=w[R.type=="th"?"TH":"TD"];b.push(a(g,e(f(e(e(e({},s),N({top:o==0&&!y,bottom:o==m.length-1,left:u==0,right:u==h-1})),n?n({top:o==0&&!y,bottom:o==m.length-1,left:u==0,right:u==h-1,rowIndex:o,colIndex:u,isBody:!0,isHeader:!1}):{}),{className:[r("Cell"),i,R.className].join(" ")}),R)))}),p.push(a(w.Row,{className:[r("Row"),r("BodyRow")].join(" "),children:b,onClick:R=>{C&&C(t.rowID,R)}},o))}),a(H,{children:p})},Normal:l=>(l=e({},l),l.rows=l.rows.map((s,i)=>(s.rowID=s.rowID||i,s)),B(w.Table,{className:r("Table"),children:[a(c.HeadRow,e({},l)),a(c.BodyRows,e({},l))]}))},T=l=>a(d,f(e({type:"normal"},l),{JSXChildren:c.Normal}));export{T as Normal,T as default};
@@ -0,0 +1,24 @@
1
+ import { TagProperty } from '../../@declaration';
2
+ import React from 'react';
3
+ import { TableTypes } from '.';
4
+ declare namespace TableParts {
5
+ type Table = TagProperty.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableElement>;
6
+ type TableHead = TagProperty.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>;
7
+ type TableBody = TagProperty.BasicElement & TableTypes.customTableHTMLAttributes<HTMLTableSectionElement>;
8
+ type TR = TagProperty.BasicElement & React.HTMLAttributes<HTMLTableRowElement>;
9
+ type TableCell = TagProperty.BasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
10
+ type Cell = TableCell & {
11
+ type?: 'th' | 'td';
12
+ };
13
+ type Methods = {
14
+ Table: React.FC<Table>;
15
+ Head: React.FC<TableHead>;
16
+ Body: React.FC<TableBody>;
17
+ Row: React.FC<TR>;
18
+ TH: React.FC<TableCell>;
19
+ TD: React.FC<TableCell>;
20
+ RightIndicator: Cell;
21
+ };
22
+ }
23
+ declare const TableParts: TableParts.Methods;
24
+ export { TableParts, TableParts as default };
@@ -0,0 +1 @@
1
+ import{b as t,c as r}from"../../chunk-VY3566IV.js";import{jsx as a}from"react/jsx-runtime";import{GenerateClassName as l}from"../../@utils";import b from"../../atoms/FAI";const o={Table:e=>{let T=l(e);return a("table",r(t({},T),{border:T.border}))},Head:e=>a("thead",t({},l(e))),Body:e=>a("tbody",t({},l(e))),Row:e=>a("tr",t({},l(e))),TH:e=>a("th",t({},l(e))),TD:e=>a("td",t({},l(e))),RightIndicator:{type:"td",unitWidth:4,children:a(b.AngleRight,{fontColor:"theme",fontSize:"4.thirdTitle"})}};export{o as TableParts,o as default};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { TableTypes } from '.';
3
+ declare namespace Wrapper {
4
+ type Input = TableTypes.UniInput & {
5
+ type: TableTypes.Types;
6
+ JSXChildren: (para: any) => JSX.Element;
7
+ };
8
+ }
9
+ declare const Wrapper: React.FC<Wrapper.Input>;
10
+ export { Wrapper, Wrapper as default };
@@ -0,0 +1 @@
1
+ import{b as t,c as n,d as s}from"../../chunk-VY3566IV.js";import{jsx as a}from"react/jsx-runtime";import f from"@mingoo/jsmin";import{GenerateClassName as u}from"../../@utils";import C from"../../atoms/Box";import{DefaultCellStyles as c}from"./cellStyling";import{TableClasses as l}from"../../@styles/componentClasses";const y=e=>{let{JSXChildren:i}=e;(!e.tone||e.tone=="auto")&&(e.tone="border",e.type=="drag"&&(e.tone="rowBorder"));let o=n(t({tableID:e.tableID||f.uuid.gen(),tone:e.tone},e),{cellStyles:t(t({},c(e.type,e.tone)),e.cellStyles)});e.tone!="plain"&&(o.backgroundColor=o.backgroundColor||"layer.1",o.borderRadius=o.borderRadius||"1.tone.primary");let r=u(o),{className:m,style:p}=r,b=s(r,["className","style"]),d=[m,l("Wrap"),l("TableType_"+e.type),l("RowClickable_"+!!o.onRowClick)].join(" ");return a(C,{className:d,style:p,children:a(i,t({},b))})};export{y as Wrapper,y as default};
@@ -0,0 +1,9 @@
1
+ import { TagProperty } from '../../@declaration';
2
+ import { TableTypes } from '.';
3
+ export declare const DefaultCellStyles: (type: TableTypes.Types, tone: TableTypes.Tones) => TagProperty.Para;
4
+ export declare const DefaultCellSystemStyles: (args: {
5
+ top: boolean;
6
+ bottom: boolean;
7
+ left: boolean;
8
+ right: boolean;
9
+ }) => TagProperty.Para;
@@ -0,0 +1 @@
1
+ import{b as o}from"../../chunk-VY3566IV.js";const d=(r,e)=>{if(e=="plain")return{};let t={};return r=="drag"&&(t.padding=1),["border","rowBorder","cellBorder"].includes(e)&&(t.borderBottom="2.normal"),["border","cellBorder"].includes(e)&&(t.borderRight="2.normal"),o({padding:"3/4",backgroundColor:"layer.1",transition:"short",textAlign:"center"},t)},b=r=>{let e={};return r.right&&(e.borderRight="unset"),r.top&&(r.left&&(e.borderTopLeftRadius="inherit"),r.right&&(e.borderTopRightRadius="inherit")),r.bottom&&(e.borderBottom="unset",r.left&&(e.borderBottomLeftRadius="inherit"),r.right&&(e.borderBottomRightRadius="inherit")),e};export{d as DefaultCellStyles,b as DefaultCellSystemStyles};
@@ -0,0 +1,42 @@
1
+ import { TagProperty } from '../../@declaration';
2
+ import React from 'react';
3
+ export declare namespace TableTypes {
4
+ type customTableHTMLAttributes<T> = Omit<React.TableHTMLAttributes<T>, 'border'>;
5
+ type Types = 'normal' | 'data' | 'drag' | 'spread';
6
+ type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
7
+ type StylesCallbackInput = {
8
+ top: boolean;
9
+ bottom: boolean;
10
+ left: boolean;
11
+ right: boolean;
12
+ rowIndex: number;
13
+ colIndex: number;
14
+ isHeader: boolean;
15
+ isBody: boolean;
16
+ };
17
+ type UniInput = {
18
+ tableID?: string;
19
+ tone?: Tones;
20
+ colLength: number;
21
+ cellStyles?: TagProperty.Para;
22
+ cellClassName?: string;
23
+ cellStylesCallback?: {
24
+ (para: StylesCallbackInput): TagProperty.Para;
25
+ };
26
+ className?: string;
27
+ } & TagProperty.Para;
28
+ type OnRowClick = {
29
+ (rowIDOrIndex: any, event: React.MouseEvent<HTMLTableRowElement, MouseEvent>): void;
30
+ };
31
+ }
32
+ import _TableParts from './Parts';
33
+ import _Normal from './Normal';
34
+ import _Drag from './Drag';
35
+ import _Data from './Data';
36
+ declare namespace Table {
37
+ export import Normal = _Normal;
38
+ export import Data = _Data;
39
+ export import Drag = _Drag;
40
+ export import Parts = _TableParts;
41
+ }
42
+ export { Table, Table as default };
@@ -0,0 +1 @@
1
+ import"../../chunk-VY3566IV.js";import r from"./Parts";import o from"./Normal";import a from"./Drag";import p from"./Data";var t;(e=>(e.Normal=o,e.Data=p,e.Drag=a,e.Parts=r))(t||(t={}));export{t as Table,t as default};
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { TagProperty, ReactElement } from '../@declaration';
3
+ import $$ from '@mingoo/jsmin';
4
+ import Box from '../atoms/Box';
5
+ import Sheet from './Sheet';
6
+ declare namespace Tooltips {
7
+ type Methods = {
8
+ __memoryID: string;
9
+ open(para: Input): void;
10
+ close(tipsID: string): void;
11
+ closeALL(): void;
12
+ Comps: {
13
+ Body: React.FC<Box.Input>;
14
+ };
15
+ };
16
+ type Input = {
17
+ tipsID?: string;
18
+ tipsGroups?: string | string[];
19
+ parent: $$.Args;
20
+ gravityPoint?: number;
21
+ close_option?: Sheet.CloseOptions;
22
+ hold_state?: boolean;
23
+ content: ReactElement | {
24
+ (): JSX.Element;
25
+ };
26
+ openAfter?(): void;
27
+ closeAfter?(): void;
28
+ } & TagProperty.BasicElement;
29
+ }
30
+ declare const Tooltips: Tooltips.Methods;
31
+ export { Tooltips, Tooltips as default };
@@ -0,0 +1 @@
1
+ import{b as e,d as s}from"../chunk-VY3566IV.js";import{jsx as u}from"react/jsx-runtime";import p from"@mingoo/jsmin";import d from"../atoms/Box";import t from"./Sheet";const n={__memoryID:p.uuid.gen(),open:o=>{let r=o,{tipsID:i=p.uuid.gen(),tipsGroups:l=[]}=r,a=s(r,["tipsID","tipsGroups"]);t.open(e({sheetID:i,sheetGroups:["tooltips",...l],close_option:e({aroundClick:!0,parentBlur:!0,escapeKeyDown:!0,pageTransit:!0},o.close_option),type:"custom"},a))},close:o=>{o&&t.close(o)},closeALL:()=>{t.closeGroup("tooltips")},Comps:{Body:o=>u(d,e({padding:"1/2",backgroundColor:"dark",borderRadius:"2.tone.secondary",fontColor:"white",boxShadow:"0.normal"},o))}};export{n as Tooltips,n as default};
@@ -0,0 +1,10 @@
1
+ export * from './Effect';
2
+ export * from './Button';
3
+ export * from './Input';
4
+ export * from './Layout';
5
+ export * from './Table';
6
+ export * from './Sheet';
7
+ export * from './Snackbar';
8
+ export * from './Loader';
9
+ export * from './Tooltips';
10
+ export * from './Cropper';
@@ -0,0 +1 @@
1
+ export*from"./Effect";export*from"./Button";export*from"./Input";export*from"./Layout";export*from"./Table";export*from"./Sheet";export*from"./Snackbar";export*from"./Loader";export*from"./Tooltips";export*from"./Cropper";