@pisell/materials 1.0.4 → 1.0.6

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 (277) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +26 -4
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +26 -4
  11. package/es/components/DragSortList/index.d.ts +32 -0
  12. package/es/components/DragSortList/index.js +85 -0
  13. package/es/components/MultipleContainersSortList/index.d.ts +15 -0
  14. package/es/components/MultipleContainersSortList/index.js +156 -0
  15. package/es/components/date-picker/index.js +5 -0
  16. package/es/components/table/Actions/Filter/Dropdown/index.d.ts +14 -0
  17. package/es/components/table/Actions/Filter/Dropdown/index.js +99 -0
  18. package/es/components/table/Actions/Filter/Dropdown/index.less +74 -0
  19. package/es/components/table/Actions/Filter/FilterItem/index.d.ts +7 -6
  20. package/es/components/table/Actions/Filter/FilterItem/index.js +15 -12
  21. package/es/components/table/Actions/Filter/QuickFilter/index.d.ts +3 -0
  22. package/es/components/table/Actions/Filter/QuickFilter/index.js +25 -0
  23. package/es/components/table/Actions/Filter/index.d.ts +3 -8
  24. package/es/components/table/Actions/Filter/index.js +23 -12
  25. package/es/components/table/Actions/Sort/index.d.ts +12 -0
  26. package/es/components/table/Actions/Sort/index.js +23 -0
  27. package/es/components/table/Actions/index.d.ts +1 -1
  28. package/es/components/table/Actions/index.js +14 -10
  29. package/es/components/table/Actions/index.less +9 -1
  30. package/es/components/table/{Actions → Header}/Buttons/index.js +1 -1
  31. package/es/components/table/Header/index.d.ts +4 -0
  32. package/es/components/table/Header/index.js +20 -0
  33. package/es/components/table/Header/index.less +16 -0
  34. package/es/components/table/Pagination/index.d.ts +8 -2
  35. package/es/components/table/Pagination/index.js +32 -28
  36. package/es/components/table/Pagination/index.less +62 -7
  37. package/es/components/table/Summary/index.d.ts +4 -0
  38. package/es/components/table/Summary/index.js +12 -0
  39. package/es/components/table/Summary/index.less +5 -0
  40. package/es/components/table/Table/fields/date/Config/index.d.ts +3 -0
  41. package/es/components/table/Table/fields/date/Config/index.js +4 -0
  42. package/es/components/table/Table/fields/date/Edit/index.d.ts +4 -0
  43. package/es/components/table/Table/fields/date/Edit/index.js +42 -0
  44. package/es/components/table/Table/fields/date/Show/index.d.ts +4 -0
  45. package/es/components/table/Table/fields/{text/Preview → date/Show}/index.js +3 -5
  46. package/es/components/table/Table/fields/date/Sort/index.d.ts +3 -0
  47. package/es/components/table/Table/fields/date/Sort/index.js +4 -0
  48. package/es/components/table/Table/fields/date/index.d.ts +14 -0
  49. package/es/components/table/Table/fields/date/index.js +17 -0
  50. package/es/components/table/Table/fields/image/Config/index.d.ts +3 -0
  51. package/es/components/table/Table/fields/image/Config/index.js +4 -0
  52. package/es/components/table/Table/fields/image/Edit/index.d.ts +4 -0
  53. package/es/components/table/Table/fields/image/Edit/index.js +23 -0
  54. package/es/components/table/Table/fields/image/Show/index.d.ts +4 -0
  55. package/es/components/table/Table/fields/image/Show/index.js +19 -0
  56. package/es/components/table/Table/fields/image/Sort/index.d.ts +3 -0
  57. package/es/components/table/Table/fields/image/Sort/index.js +4 -0
  58. package/es/components/table/Table/fields/image/index.d.ts +14 -0
  59. package/es/components/table/Table/fields/image/index.js +17 -0
  60. package/es/components/table/Table/fields/index.d.ts +173 -8
  61. package/es/components/table/Table/fields/index.js +19 -3
  62. package/es/components/table/Table/fields/link/Config/index.d.ts +3 -0
  63. package/es/components/table/Table/fields/link/Config/index.js +4 -0
  64. package/es/components/table/Table/fields/link/Edit/index.d.ts +4 -0
  65. package/es/components/table/Table/fields/link/Edit/index.js +59 -0
  66. package/es/components/table/Table/fields/link/Show/index.d.ts +4 -0
  67. package/es/components/table/Table/fields/link/Show/index.js +29 -0
  68. package/es/components/table/Table/fields/link/Sort/index.d.ts +3 -0
  69. package/es/components/table/Table/fields/link/Sort/index.js +4 -0
  70. package/es/components/table/Table/fields/link/index.d.ts +4 -2
  71. package/es/components/table/Table/fields/link/index.js +8 -4
  72. package/es/components/table/Table/fields/number/Config/index.d.ts +3 -0
  73. package/es/components/table/Table/fields/number/Config/index.js +4 -0
  74. package/es/components/table/Table/fields/number/Edit/index.d.ts +4 -0
  75. package/es/components/table/Table/fields/number/Edit/index.js +24 -0
  76. package/es/components/table/Table/fields/number/Show/index.d.ts +4 -0
  77. package/es/components/table/Table/fields/{link/Preview → number/Show}/index.js +4 -5
  78. package/es/components/table/Table/fields/number/Sort/index.d.ts +3 -0
  79. package/es/components/table/Table/fields/number/Sort/index.js +4 -0
  80. package/es/components/table/Table/fields/number/index.d.ts +14 -0
  81. package/es/components/table/Table/fields/number/index.js +17 -0
  82. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +3 -0
  83. package/es/components/table/Table/fields/rangePicker/Config/index.js +4 -0
  84. package/es/components/table/Table/fields/rangePicker/Edit/index.d.ts +4 -0
  85. package/es/components/table/Table/fields/rangePicker/Edit/index.js +58 -0
  86. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +4 -0
  87. package/es/components/table/Table/fields/rangePicker/Show/index.js +16 -0
  88. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +3 -0
  89. package/es/components/table/Table/fields/rangePicker/Sort/index.js +4 -0
  90. package/es/components/table/Table/fields/rangePicker/index.d.ts +14 -0
  91. package/es/components/table/Table/fields/rangePicker/index.js +17 -0
  92. package/es/components/table/Table/fields/select/Config/index.d.ts +3 -0
  93. package/es/components/table/Table/fields/select/Config/index.js +4 -0
  94. package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  95. package/es/components/table/Table/fields/select/Edit/index.js +23 -0
  96. package/es/components/table/Table/fields/select/Show/index.d.ts +4 -0
  97. package/es/components/table/Table/fields/select/Show/index.js +27 -0
  98. package/es/components/table/Table/fields/select/Show/index.less +0 -0
  99. package/es/components/table/Table/fields/select/Sort/index.d.ts +3 -0
  100. package/es/components/table/Table/fields/select/Sort/index.js +4 -0
  101. package/es/components/table/Table/fields/select/index.d.ts +14 -0
  102. package/es/components/table/Table/fields/select/index.js +17 -0
  103. package/es/components/table/Table/fields/select/index.less +0 -0
  104. package/es/components/table/Table/fields/text/Config/index.d.ts +3 -0
  105. package/es/components/table/Table/fields/text/Config/index.js +4 -0
  106. package/es/components/table/Table/fields/text/Edit/index.d.ts +4 -0
  107. package/es/components/table/Table/fields/text/Edit/index.js +23 -0
  108. package/es/components/table/Table/fields/text/Edit/index.less +0 -0
  109. package/es/components/table/Table/fields/text/Show/index.d.ts +4 -0
  110. package/es/components/table/Table/fields/text/Show/index.js +16 -0
  111. package/es/components/table/Table/fields/text/Show/index.less +0 -0
  112. package/es/components/table/Table/fields/text/Sort/index.d.ts +3 -0
  113. package/es/components/table/Table/fields/text/Sort/index.js +4 -0
  114. package/es/components/table/Table/fields/text/index.d.ts +4 -2
  115. package/es/components/table/Table/fields/text/index.js +8 -4
  116. package/es/components/table/Table/fields/types/index.d.ts +27 -0
  117. package/es/components/table/Table/fields/types/index.js +1 -0
  118. package/es/components/table/Table/index.js +13 -30
  119. package/es/components/table/Table/index.less +1 -90
  120. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +21 -14
  121. package/es/components/table/Table/tableConfig/header/CellProvider/index.js +1 -6
  122. package/es/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
  123. package/es/components/table/index.d.ts +16 -3
  124. package/es/components/table/index.js +43 -9
  125. package/es/components/table/model.d.ts +3 -0
  126. package/es/components/table/model.js +19 -0
  127. package/es/utils/hoc.js +3 -2
  128. package/lib/components/DragSortList/index.d.ts +32 -0
  129. package/lib/components/DragSortList/index.js +119 -0
  130. package/lib/components/MultipleContainersSortList/index.d.ts +15 -0
  131. package/lib/components/MultipleContainersSortList/index.js +181 -0
  132. package/lib/components/date-picker/index.js +15 -0
  133. package/lib/components/table/Actions/Filter/Dropdown/index.d.ts +14 -0
  134. package/lib/components/table/Actions/Filter/Dropdown/index.js +128 -0
  135. package/lib/components/table/Actions/Filter/Dropdown/index.less +74 -0
  136. package/lib/components/table/Actions/Filter/FilterItem/index.d.ts +7 -6
  137. package/lib/components/table/Actions/Filter/FilterItem/index.js +8 -2
  138. package/lib/components/table/Actions/Filter/QuickFilter/index.d.ts +3 -0
  139. package/lib/components/table/Actions/Filter/QuickFilter/index.js +56 -0
  140. package/lib/components/table/Actions/Filter/index.d.ts +3 -8
  141. package/lib/components/table/Actions/Filter/index.js +16 -5
  142. package/lib/components/table/Actions/Sort/index.d.ts +12 -0
  143. package/lib/components/table/{Table/fields/text/Preview → Actions/Sort}/index.js +10 -18
  144. package/lib/components/table/Actions/Sort/index.less +0 -0
  145. package/lib/components/table/Actions/index.d.ts +1 -1
  146. package/lib/components/table/Actions/index.js +7 -3
  147. package/lib/components/table/Actions/index.less +9 -1
  148. package/lib/components/table/{Actions → Header}/Buttons/index.js +2 -2
  149. package/lib/components/table/Header/Buttons/index.less +0 -0
  150. package/lib/components/table/Header/index.d.ts +4 -0
  151. package/lib/components/table/Header/index.js +44 -0
  152. package/lib/components/table/Header/index.less +16 -0
  153. package/lib/components/table/Pagination/index.d.ts +8 -2
  154. package/lib/components/table/Pagination/index.js +27 -22
  155. package/lib/components/table/Pagination/index.less +62 -7
  156. package/lib/components/table/Summary/index.d.ts +4 -0
  157. package/lib/components/table/{Table/fields/text/Editor → Summary}/index.js +12 -9
  158. package/lib/components/table/Summary/index.less +5 -0
  159. package/lib/components/table/Table/fields/date/Config/index.d.ts +3 -0
  160. package/lib/components/table/Table/fields/date/Config/index.js +28 -0
  161. package/lib/components/table/Table/fields/date/Edit/index.d.ts +4 -0
  162. package/lib/components/table/Table/fields/date/Edit/index.js +67 -0
  163. package/lib/components/table/Table/fields/date/Show/index.d.ts +4 -0
  164. package/lib/components/table/Table/fields/{link/Preview → date/Show}/index.js +8 -9
  165. package/lib/components/table/Table/fields/date/Sort/index.d.ts +3 -0
  166. package/lib/components/table/Table/fields/date/Sort/index.js +28 -0
  167. package/lib/components/table/Table/fields/date/index.d.ts +14 -0
  168. package/lib/components/table/Table/fields/date/index.js +51 -0
  169. package/lib/components/table/Table/fields/image/Config/index.d.ts +3 -0
  170. package/lib/components/table/Table/fields/image/Config/index.js +28 -0
  171. package/lib/components/table/Table/fields/image/Edit/index.d.ts +4 -0
  172. package/lib/components/table/Table/fields/image/Edit/index.js +53 -0
  173. package/lib/components/table/Table/fields/image/Edit/index.less +0 -0
  174. package/lib/components/table/Table/fields/image/Show/index.d.ts +4 -0
  175. package/lib/components/table/Table/fields/{link/Editor → image/Show}/index.js +17 -9
  176. package/lib/components/table/Table/fields/image/Show/index.less +0 -0
  177. package/lib/components/table/Table/fields/image/Sort/index.d.ts +3 -0
  178. package/lib/components/table/Table/fields/image/Sort/index.js +28 -0
  179. package/lib/components/table/Table/fields/image/index.d.ts +14 -0
  180. package/lib/components/table/Table/fields/image/index.js +51 -0
  181. package/lib/components/table/Table/fields/image/index.less +0 -0
  182. package/lib/components/table/Table/fields/index.d.ts +173 -8
  183. package/lib/components/table/Table/fields/index.js +19 -3
  184. package/lib/components/table/Table/fields/link/Config/index.d.ts +3 -0
  185. package/lib/components/table/Table/fields/link/Config/index.js +28 -0
  186. package/lib/components/table/Table/fields/link/Edit/index.d.ts +4 -0
  187. package/lib/components/table/Table/fields/link/Edit/index.js +78 -0
  188. package/lib/components/table/Table/fields/link/Edit/index.less +0 -0
  189. package/lib/components/table/Table/fields/link/Show/index.d.ts +4 -0
  190. package/lib/components/table/Table/fields/link/Show/index.js +48 -0
  191. package/lib/components/table/Table/fields/link/Show/index.less +0 -0
  192. package/lib/components/table/Table/fields/link/Sort/index.d.ts +3 -0
  193. package/lib/components/table/Table/fields/link/Sort/index.js +28 -0
  194. package/lib/components/table/Table/fields/link/index.d.ts +4 -2
  195. package/lib/components/table/Table/fields/link/index.js +8 -4
  196. package/lib/components/table/Table/fields/number/Config/index.d.ts +3 -0
  197. package/lib/components/table/Table/fields/number/Config/index.js +28 -0
  198. package/lib/components/table/Table/fields/number/Edit/index.d.ts +4 -0
  199. package/lib/components/table/Table/fields/number/Edit/index.js +44 -0
  200. package/lib/components/table/Table/fields/number/Show/index.d.ts +4 -0
  201. package/lib/components/table/Table/fields/number/Show/index.js +37 -0
  202. package/lib/components/table/Table/fields/number/Sort/index.d.ts +3 -0
  203. package/lib/components/table/Table/fields/number/Sort/index.js +28 -0
  204. package/lib/components/table/Table/fields/number/index.d.ts +14 -0
  205. package/lib/components/table/Table/fields/number/index.js +51 -0
  206. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +3 -0
  207. package/lib/components/table/Table/fields/rangePicker/Config/index.js +28 -0
  208. package/lib/components/table/Table/fields/rangePicker/Edit/index.d.ts +4 -0
  209. package/lib/components/table/Table/fields/rangePicker/Edit/index.js +73 -0
  210. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +4 -0
  211. package/lib/components/table/Table/fields/rangePicker/Show/index.js +37 -0
  212. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +3 -0
  213. package/lib/components/table/Table/fields/rangePicker/Sort/index.js +28 -0
  214. package/lib/components/table/Table/fields/rangePicker/index.d.ts +14 -0
  215. package/lib/components/table/Table/fields/rangePicker/index.js +51 -0
  216. package/lib/components/table/Table/fields/select/Config/index.d.ts +3 -0
  217. package/lib/components/table/Table/fields/select/Config/index.js +28 -0
  218. package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  219. package/lib/components/table/Table/fields/select/Edit/index.js +53 -0
  220. package/lib/components/table/Table/fields/select/Edit/index.less +0 -0
  221. package/lib/components/table/Table/fields/select/Show/index.d.ts +4 -0
  222. package/lib/components/table/Table/fields/select/Show/index.js +46 -0
  223. package/lib/components/table/Table/fields/select/Show/index.less +0 -0
  224. package/lib/components/table/Table/fields/select/Sort/index.d.ts +3 -0
  225. package/lib/components/table/Table/fields/select/Sort/index.js +28 -0
  226. package/lib/components/table/Table/fields/select/index.d.ts +14 -0
  227. package/lib/components/table/Table/fields/select/index.js +51 -0
  228. package/lib/components/table/Table/fields/select/index.less +0 -0
  229. package/lib/components/table/Table/fields/text/Config/index.d.ts +3 -0
  230. package/lib/components/table/Table/fields/text/Config/index.js +28 -0
  231. package/lib/components/table/Table/fields/text/Edit/index.d.ts +4 -0
  232. package/lib/components/table/Table/fields/text/Edit/index.js +53 -0
  233. package/lib/components/table/Table/fields/text/Edit/index.less +0 -0
  234. package/lib/components/table/Table/fields/text/Show/index.d.ts +4 -0
  235. package/lib/components/table/Table/fields/text/Show/index.js +37 -0
  236. package/lib/components/table/Table/fields/text/Show/index.less +0 -0
  237. package/lib/components/table/Table/fields/text/Sort/index.d.ts +3 -0
  238. package/lib/components/table/Table/fields/text/Sort/index.js +28 -0
  239. package/lib/components/table/Table/fields/text/index.d.ts +4 -2
  240. package/lib/components/table/Table/fields/text/index.js +8 -4
  241. package/lib/components/table/Table/fields/types/index.d.ts +27 -0
  242. package/lib/components/table/Table/fields/types/index.js +17 -0
  243. package/lib/components/table/Table/index.js +19 -20
  244. package/lib/components/table/Table/index.less +1 -90
  245. package/lib/components/table/Table/tableConfig/body/CellProvider/index.js +19 -14
  246. package/lib/components/table/Table/tableConfig/header/CellProvider/index.js +1 -3
  247. package/lib/components/table/Table/tableConfig/header/CellProvider/index.less +1 -1
  248. package/lib/components/table/index.d.ts +16 -3
  249. package/lib/components/table/index.js +28 -6
  250. package/lib/components/table/model.d.ts +3 -0
  251. package/lib/components/table/model.js +14 -0
  252. package/lib/utils/hoc.js +3 -2
  253. package/lowcode/button/meta.ts +17 -87
  254. package/lowcode/table/meta.ts +146 -63
  255. package/package.json +11 -4
  256. package/es/components/table/Actions/Buttons/index.less +0 -30
  257. package/es/components/table/Table/fields/link/Editor/index.d.ts +0 -3
  258. package/es/components/table/Table/fields/link/Editor/index.js +0 -10
  259. package/es/components/table/Table/fields/link/Preview/index.d.ts +0 -3
  260. package/es/components/table/Table/fields/text/Editor/index.d.ts +0 -3
  261. package/es/components/table/Table/fields/text/Editor/index.js +0 -11
  262. package/es/components/table/Table/fields/text/Preview/index.d.ts +0 -3
  263. package/lib/components/table/Actions/Buttons/index.less +0 -30
  264. package/lib/components/table/Table/fields/link/Editor/index.d.ts +0 -3
  265. package/lib/components/table/Table/fields/link/Preview/index.d.ts +0 -3
  266. package/lib/components/table/Table/fields/text/Editor/index.d.ts +0 -3
  267. package/lib/components/table/Table/fields/text/Preview/index.d.ts +0 -3
  268. /package/es/components/table/{Table/fields/link/Editor → Actions/Sort}/index.less +0 -0
  269. /package/es/components/table/{Actions → Header}/Buttons/index.d.ts +0 -0
  270. /package/es/components/table/{Table/fields/link/Preview → Header/Buttons}/index.less +0 -0
  271. /package/es/components/table/Table/fields/{text/Editor → image/Edit}/index.less +0 -0
  272. /package/es/components/table/Table/fields/{text/Preview → image/Show}/index.less +0 -0
  273. /package/{lib/components/table/Table/fields/link/Editor → es/components/table/Table/fields/image}/index.less +0 -0
  274. /package/{lib/components/table/Table/fields/link/Preview → es/components/table/Table/fields/link/Edit}/index.less +0 -0
  275. /package/{lib/components/table/Table/fields/text/Editor → es/components/table/Table/fields/link/Show}/index.less +0 -0
  276. /package/{lib/components/table/Table/fields/text/Preview → es/components/table/Table/fields/select/Edit}/index.less +0 -0
  277. /package/lib/components/table/{Actions → Header}/Buttons/index.d.ts +0 -0
@@ -10,14 +10,56 @@
10
10
  border: 1px solid #f0f0f0;
11
11
  border-top: none;
12
12
  padding: 0 20px;
13
+ margin: 0 !important;
14
+
15
+ .ant-pagination-total-text {
16
+ margin-right: auto;
17
+ color: var(--gray-500, #667085);
18
+ /* Text sm/Medium */
19
+ font-family: Inter;
20
+ font-size: 14px;
21
+ font-style: normal;
22
+ font-weight: 500;
23
+ /* 142.857% */
24
+ }
13
25
 
14
26
  .ant-pagination-item {
15
27
  position: relative;
16
28
  border: none;
29
+ margin: 0;
30
+ border-radius: 0;
31
+ border: 1px solid #D0D5DD;
32
+ border-right: 0;
33
+ }
34
+
35
+ .ant-pagination-jump-prev {
36
+ border: 1px solid #D0D5DD;
37
+ margin: 0;
38
+ border-radius: 0;
39
+ border-right: none;
40
+ }
41
+
42
+ .ant-pagination-jump-next {
43
+ border: 1px solid #D0D5DD;
44
+ margin: 0;
45
+ border-radius: 0;
46
+ border-right: none;
47
+ }
48
+
49
+ .ant-pagination-item-link:hover {
50
+ font-weight: 450 !important;
51
+ color: rgba(0, 0, 0, 0.88) !important;
52
+
53
+ .ant-pagination-item-link-icon {
54
+ font-weight: 450 !important;
55
+ color: rgba(0, 0, 0, 0.88) !important;
56
+ }
17
57
  }
18
58
 
19
- .ant-pagination-disabled {
20
- opacity: 0.4;
59
+ .ant-pagination-disabled {}
60
+
61
+ .ant-pagination-item-active:hover {
62
+ border-color: #D0D5DD !important;
21
63
  }
22
64
 
23
65
  .ant-pagination-item-active {
@@ -34,18 +76,23 @@
34
76
  display: flex;
35
77
  align-items: center;
36
78
  justify-content: center;
37
- margin-right: auto;
38
79
  min-width: auto;
80
+ border: 1px solid #D0D5DD;
81
+ margin: 0;
82
+ border-radius: 8px 0 0 8px;
83
+ border-right: none;
39
84
  }
40
85
 
41
- .ant-pagination-item-active {}
42
86
 
43
87
  .ant-pagination-next {
44
88
  display: flex;
45
89
  align-items: center;
46
90
  justify-content: center;
47
- margin-left: auto;
48
91
  min-width: auto;
92
+ border: 1px solid #D0D5DD;
93
+ // border-left: none;
94
+ margin: 0;
95
+ border-radius: 0 8px 8px 0;
49
96
  }
50
97
  }
51
98
 
@@ -54,14 +101,22 @@
54
101
  align-items: center;
55
102
  justify-content: center;
56
103
  border-radius: 4px 4px 4px 4px;
57
- padding: 0 4px;
58
104
  transition: 0.2s;
59
105
  font-size: 12px;
60
106
  font-weight: 400;
61
107
  color: #6f6f6f;
62
108
  cursor: pointer;
63
109
  user-select: none;
64
- height: 20px;
110
+ padding: 10px 16px;
111
+
112
+ .paginator-page-btn-left-icon,
113
+ .paginator-page-btn-right-icon {
114
+ font-size: 20px;
115
+ }
116
+
117
+ .paginator-page-btn-left-icon {}
118
+
119
+ .paginator-page-btn-right-icon {}
65
120
 
66
121
  &:hover {
67
122
  // background: #f2f2f2;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const Summary: ({ summary }: any) => JSX.Element | null;
4
+ export default Summary;
@@ -26,15 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // src/components/table/Table/fields/text/Editor/index.tsx
30
- var Editor_exports = {};
31
- __export(Editor_exports, {
32
- default: () => Editor_default
29
+ // src/components/table/Summary/index.tsx
30
+ var Summary_exports = {};
31
+ __export(Summary_exports, {
32
+ default: () => Summary_default
33
33
  });
34
- module.exports = __toCommonJS(Editor_exports);
35
- var import_antd = require("antd");
34
+ module.exports = __toCommonJS(Summary_exports);
36
35
  var import_react = __toESM(require("react"));
37
- var Text = () => {
38
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: "Default value", name: "default_value" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, null)));
36
+ var import_index = require("./index.less");
37
+ var Summary = ({ summary }) => {
38
+ const showSummary = (0, import_react.useMemo)(() => {
39
+ return !!summary;
40
+ }, [summary]);
41
+ return showSummary ? /* @__PURE__ */ import_react.default.createElement("div", { className: "materials-grid-summary" }, summary()) : null;
39
42
  };
40
- var Editor_default = Text;
43
+ var Summary_default = Summary;
@@ -0,0 +1,5 @@
1
+ .materials-grid-summary {
2
+
3
+ margin-bottom: 16px;
4
+
5
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Config: () => JSX.Element;
3
+ export default Config;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/table/Table/fields/date/Config/index.tsx
20
+ var Config_exports = {};
21
+ __export(Config_exports, {
22
+ default: () => Config_default
23
+ });
24
+ module.exports = __toCommonJS(Config_exports);
25
+ var Config = () => {
26
+ return /* @__PURE__ */ React.createElement("div", null);
27
+ };
28
+ var Config_default = Config;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { EditPropsType } from "../../types";
3
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<EditPropsType, "ref"> & import("react").RefAttributes<any>>;
4
+ export default _default;
@@ -0,0 +1,67 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Table/fields/date/Edit/index.tsx
30
+ var Edit_exports = {};
31
+ __export(Edit_exports, {
32
+ default: () => Edit_default
33
+ });
34
+ module.exports = __toCommonJS(Edit_exports);
35
+ var import_utils = require("@pisell/utils");
36
+ var import_dayjs = __toESM(require("dayjs"));
37
+ var import_react = require("react");
38
+ var import_date_picker = __toESM(require("../../../../../date-picker"));
39
+ var Edit = (props, ref) => {
40
+ const { value, onChange, onPressEnter, onBlur, style, bordered } = props;
41
+ const dayjsVal = (0, import_react.useMemo)(() => {
42
+ if (value && (0, import_utils.isString)(value)) {
43
+ return (0, import_dayjs.default)(value);
44
+ }
45
+ return value;
46
+ }, [value]);
47
+ return /* @__PURE__ */ React.createElement(
48
+ import_date_picker.default,
49
+ {
50
+ controls: false,
51
+ ref,
52
+ value: dayjsVal,
53
+ onChange: (date, dateStr) => {
54
+ onChange == null ? void 0 : onChange(dateStr);
55
+ },
56
+ onPressEnter,
57
+ onBlur,
58
+ style,
59
+ bordered,
60
+ onClick: (e) => e.stopPropagation(),
61
+ panelRender: (dom) => {
62
+ return /* @__PURE__ */ React.createElement("div", { onClick: (e) => e.stopPropagation() }, dom);
63
+ }
64
+ }
65
+ );
66
+ };
67
+ var Edit_default = (0, import_react.forwardRef)(Edit);
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FieldPropsType } from "../../types";
3
+ declare const Show: (props: FieldPropsType) => JSX.Element;
4
+ export default Show;
@@ -16,23 +16,22 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/components/table/Table/fields/link/Preview/index.tsx
20
- var Preview_exports = {};
21
- __export(Preview_exports, {
22
- default: () => Preview_default
19
+ // src/components/table/Table/fields/date/Show/index.tsx
20
+ var Show_exports = {};
21
+ __export(Show_exports, {
22
+ default: () => Show_default
23
23
  });
24
- module.exports = __toCommonJS(Preview_exports);
25
- var Text = (props) => {
24
+ module.exports = __toCommonJS(Show_exports);
25
+ var Show = (props) => {
26
26
  const {
27
27
  title,
28
28
  editable,
29
- children,
30
29
  dataIndex,
31
30
  field_type,
32
31
  record,
33
32
  handleSave,
34
33
  ...restProps
35
34
  } = props;
36
- return /* @__PURE__ */ React.createElement("a", { className: "" }, record[dataIndex]);
35
+ return /* @__PURE__ */ React.createElement("div", { className: "" }, record[dataIndex]);
37
36
  };
38
- var Preview_default = Text;
37
+ var Show_default = Show;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Sort: () => JSX.Element;
3
+ export default Sort;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/table/Table/fields/date/Sort/index.tsx
20
+ var Sort_exports = {};
21
+ __export(Sort_exports, {
22
+ default: () => Sort_default
23
+ });
24
+ module.exports = __toCommonJS(Sort_exports);
25
+ var Sort = () => {
26
+ return /* @__PURE__ */ React.createElement("div", null);
27
+ };
28
+ var Sort_default = Sort;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ field: {
4
+ field_icon: string;
5
+ field_name: string;
6
+ field_type: string;
7
+ default_value: string;
8
+ };
9
+ config: () => JSX.Element;
10
+ edit: import("react").ForwardRefExoticComponent<Omit<import("../types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
11
+ sort: () => JSX.Element;
12
+ show: (props: import("../types").FieldPropsType) => JSX.Element;
13
+ };
14
+ export default _default;
@@ -0,0 +1,51 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Table/fields/date/index.tsx
30
+ var date_exports = {};
31
+ __export(date_exports, {
32
+ default: () => date_default
33
+ });
34
+ module.exports = __toCommonJS(date_exports);
35
+ var import_Config = __toESM(require("./Config"));
36
+ var import_Edit = __toESM(require("./Edit"));
37
+ var import_Show = __toESM(require("./Show"));
38
+ var import_Sort = __toESM(require("./Sort"));
39
+ var field = {
40
+ field_icon: "pi-a-Property3Singlelinetext",
41
+ field_name: "Date",
42
+ field_type: "date",
43
+ default_value: "Date"
44
+ };
45
+ var date_default = {
46
+ field,
47
+ config: import_Config.default,
48
+ edit: import_Edit.default,
49
+ sort: import_Sort.default,
50
+ show: import_Show.default
51
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Config: () => JSX.Element;
3
+ export default Config;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/table/Table/fields/image/Config/index.tsx
20
+ var Config_exports = {};
21
+ __export(Config_exports, {
22
+ default: () => Config_default
23
+ });
24
+ module.exports = __toCommonJS(Config_exports);
25
+ var Config = () => {
26
+ return /* @__PURE__ */ React.createElement("div", null);
27
+ };
28
+ var Config_default = Config;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { EditPropsType } from "../../types";
3
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<EditPropsType, "ref"> & import("react").RefAttributes<any>>;
4
+ export default _default;
@@ -0,0 +1,53 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Table/fields/image/Edit/index.tsx
30
+ var Edit_exports = {};
31
+ __export(Edit_exports, {
32
+ default: () => Edit_default
33
+ });
34
+ module.exports = __toCommonJS(Edit_exports);
35
+ var import_react = require("react");
36
+ var import_input = __toESM(require("../../../../../input"));
37
+ var Edit = (props, ref) => {
38
+ const { value, onChange, onPressEnter, onBlur, style, bordered } = props;
39
+ return /* @__PURE__ */ React.createElement(
40
+ import_input.default,
41
+ {
42
+ bordered,
43
+ ref,
44
+ value,
45
+ onChange,
46
+ style,
47
+ onBlur,
48
+ onPressEnter,
49
+ onClick: (e) => e.stopPropagation()
50
+ }
51
+ );
52
+ };
53
+ var Edit_default = (0, import_react.forwardRef)(Edit);
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FieldPropsType } from "../../types";
3
+ declare const Show: (props: FieldPropsType) => JSX.Element;
4
+ export default Show;
@@ -16,14 +16,22 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/components/table/Table/fields/link/Editor/index.tsx
20
- var Editor_exports = {};
21
- __export(Editor_exports, {
22
- default: () => Editor_default
19
+ // src/components/table/Table/fields/image/Show/index.tsx
20
+ var Show_exports = {};
21
+ __export(Show_exports, {
22
+ default: () => Show_default
23
23
  });
24
- module.exports = __toCommonJS(Editor_exports);
25
- var import_antd = require("antd");
26
- var Text = () => {
27
- return /* @__PURE__ */ React.createElement("div", { className: "" }, /* @__PURE__ */ React.createElement(import_antd.Form.Item, { label: "Default value", name: "default_value" }, /* @__PURE__ */ React.createElement(import_antd.Input, null)));
24
+ module.exports = __toCommonJS(Show_exports);
25
+ var Show = (props) => {
26
+ const {
27
+ title,
28
+ editable,
29
+ dataIndex,
30
+ field_type,
31
+ record,
32
+ handleSave,
33
+ ...restProps
34
+ } = props;
35
+ return /* @__PURE__ */ React.createElement("div", { className: "" }, /* @__PURE__ */ React.createElement("img", { src: record[dataIndex], alt: "" }));
28
36
  };
29
- var Editor_default = Text;
37
+ var Show_default = Show;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Sort: () => JSX.Element;
3
+ export default Sort;
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/table/Table/fields/image/Sort/index.tsx
20
+ var Sort_exports = {};
21
+ __export(Sort_exports, {
22
+ default: () => Sort_default
23
+ });
24
+ module.exports = __toCommonJS(Sort_exports);
25
+ var Sort = () => {
26
+ return /* @__PURE__ */ React.createElement("div", null);
27
+ };
28
+ var Sort_default = Sort;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ field: {
4
+ field_icon: string;
5
+ field_name: string;
6
+ field_type: string;
7
+ default_value: string;
8
+ };
9
+ config: () => JSX.Element;
10
+ edit: import("react").ForwardRefExoticComponent<Omit<import("../types").EditPropsType, "ref"> & import("react").RefAttributes<any>>;
11
+ sort: () => JSX.Element;
12
+ show: (props: import("../types").FieldPropsType) => JSX.Element;
13
+ };
14
+ export default _default;
@@ -0,0 +1,51 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/table/Table/fields/image/index.tsx
30
+ var image_exports = {};
31
+ __export(image_exports, {
32
+ default: () => image_default
33
+ });
34
+ module.exports = __toCommonJS(image_exports);
35
+ var import_Config = __toESM(require("./Config"));
36
+ var import_Edit = __toESM(require("./Edit"));
37
+ var import_Show = __toESM(require("./Show"));
38
+ var import_Sort = __toESM(require("./Sort"));
39
+ var field = {
40
+ field_icon: "pi-a-Property3Singlelinetext",
41
+ field_name: "Image",
42
+ field_type: "image",
43
+ default_value: "image"
44
+ };
45
+ var image_default = {
46
+ field,
47
+ config: import_Config.default,
48
+ edit: import_Edit.default,
49
+ sort: import_Sort.default,
50
+ show: import_Show.default
51
+ };