@addev-be/ui 0.2.5 → 0.2.7

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 (166) hide show
  1. package/assets/icons/arrow-down-1-9.svg +1 -0
  2. package/assets/icons/arrow-down-a-z.svg +1 -1
  3. package/assets/icons/arrow-down-big-small.svg +1 -0
  4. package/assets/icons/arrow-up-9-1.svg +1 -0
  5. package/assets/icons/arrow-up-big-small.svg +1 -0
  6. package/assets/icons/arrow-up-z-a.svg +1 -1
  7. package/assets/icons/check.svg +1 -1
  8. package/assets/icons/chevron-down.svg +1 -0
  9. package/assets/icons/down.svg +1 -1
  10. package/assets/icons/ellipsis.svg +1 -0
  11. package/assets/icons/filter-full.svg +1 -1
  12. package/assets/icons/filter.svg +1 -1
  13. package/assets/icons/hashtag.svg +1 -1
  14. package/assets/icons/image-slash.svg +1 -1
  15. package/assets/icons/left.svg +1 -1
  16. package/assets/icons/magnifier.svg +1 -1
  17. package/assets/icons/phone.svg +1 -1
  18. package/assets/icons/right.svg +1 -1
  19. package/assets/icons/sigma.svg +1 -0
  20. package/assets/icons/spinner-third.svg +1 -1
  21. package/assets/icons/table-columns.svg +1 -1
  22. package/assets/icons/table-footer-slash.svg +5 -0
  23. package/assets/icons/table-footer.svg +4 -0
  24. package/assets/icons/table.svg +1 -0
  25. package/assets/icons/tally.svg +1 -0
  26. package/assets/icons/up.svg +1 -1
  27. package/assets/icons/user-tie.svg +1 -1
  28. package/assets/icons/x-bar.svg +4 -0
  29. package/dist/Icons.d.ts +13 -1
  30. package/dist/Icons.js +25 -1
  31. package/dist/components/data/AdvancedRequestDataGrid/index.js +3 -3
  32. package/dist/components/data/DataGrid/AdvancedRequestDataGrid.d.ts +1 -2
  33. package/dist/components/data/DataGrid/AdvancedRequestDataGrid.js +3 -5
  34. package/dist/components/data/DataGrid/DataGridCell.d.ts +1 -1
  35. package/dist/components/data/DataGrid/DataGridCell.js +5 -5
  36. package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.js +2 -1
  37. package/dist/components/data/DataGrid/DataGridEditableCell.js +2 -7
  38. package/dist/components/data/DataGrid/DataGridFilterMenu/index.js +90 -10
  39. package/dist/components/data/DataGrid/DataGridFilterMenu/styles.d.ts +3 -9
  40. package/dist/components/data/DataGrid/DataGridFilterMenu/styles.js +10 -37
  41. package/dist/components/data/DataGrid/DataGridFooter.d.ts +1 -1
  42. package/dist/components/data/DataGrid/DataGridFooter.js +35 -22
  43. package/dist/components/data/DataGrid/DataGridHeader.js +1 -3
  44. package/dist/components/data/DataGrid/DataGridHeaderCell.js +8 -23
  45. package/dist/components/data/DataGrid/FilterModalContent/index.d.ts +5 -5
  46. package/dist/components/data/DataGrid/FilterModalContent/index.js +11 -9
  47. package/dist/components/data/DataGrid/FilterValuesScroller.d.ts +8 -7
  48. package/dist/components/data/DataGrid/FilterValuesScroller.js +5 -6
  49. package/dist/components/data/DataGrid/helpers/columns.d.ts +1 -1
  50. package/dist/components/data/DataGrid/helpers/columns.js +72 -20
  51. package/dist/components/data/DataGrid/helpers/filters.d.ts +4 -3
  52. package/dist/components/data/DataGrid/helpers/filters.js +13 -5
  53. package/dist/components/data/DataGrid/hooks/useDataGrid.d.ts +1 -1
  54. package/dist/components/data/DataGrid/hooks/useDataGrid.js +60 -30
  55. package/dist/components/data/DataGrid/hooks/useDataGridCopy.d.ts +2 -2
  56. package/dist/components/data/DataGrid/hooks/useDataGridCopy.js +41 -40
  57. package/dist/components/data/DataGrid/hooks/useDataGridSettings.js +0 -1
  58. package/dist/components/data/DataGrid/index.d.ts +4 -2
  59. package/dist/components/data/DataGrid/index.js +38 -17
  60. package/dist/components/data/DataGrid/styles.d.ts +12 -5
  61. package/dist/components/data/DataGrid/styles.js +31 -18
  62. package/dist/components/data/DataGrid/types.d.ts +28 -16
  63. package/dist/components/data/SqlRequestDataGrid/helpers/columns.d.ts +1 -1
  64. package/dist/components/data/SqlRequestDataGrid/helpers/columns.js +30 -19
  65. package/dist/components/data/SqlRequestDataGrid/index.js +125 -37
  66. package/dist/components/data/SqlRequestDataGrid/types.d.ts +1 -0
  67. package/dist/components/data/index.d.ts +2 -0
  68. package/dist/components/data/index.js +2 -0
  69. package/dist/components/ui/ContextMenu/index.d.ts +11 -0
  70. package/dist/components/ui/ContextMenu/index.js +58 -0
  71. package/dist/components/ui/ContextMenu/styles.d.ts +18 -0
  72. package/dist/components/ui/ContextMenu/styles.js +56 -0
  73. package/dist/helpers/dates.d.ts +2 -0
  74. package/dist/helpers/dates.js +13 -0
  75. package/dist/services/advancedRequests.d.ts +1 -1
  76. package/dist/services/sqlRequests.d.ts +9 -4
  77. package/dist/services/sqlRequests.js +1 -0
  78. package/package.json +1 -1
  79. package/src/Icons.tsx +104 -80
  80. package/src/components/data/AdvancedRequestDataGrid/helpers/advancedRequests.ts +93 -93
  81. package/src/components/data/AdvancedRequestDataGrid/helpers/columns.tsx +262 -262
  82. package/src/components/data/AdvancedRequestDataGrid/helpers/index.ts +2 -2
  83. package/src/components/data/AdvancedRequestDataGrid/index.tsx +267 -269
  84. package/src/components/data/AdvancedRequestDataGrid/types.ts +47 -47
  85. package/src/components/data/DataGrid/DataGridCell.tsx +73 -73
  86. package/src/components/data/DataGrid/DataGridColumnsModal/helpers.ts +14 -14
  87. package/src/components/data/DataGrid/DataGridColumnsModal/hooks.tsx +59 -58
  88. package/src/components/data/DataGrid/DataGridColumnsModal/index.tsx +181 -181
  89. package/src/components/data/DataGrid/DataGridColumnsModal/styles.ts +104 -104
  90. package/src/components/data/DataGrid/DataGridEditableCell.tsx +43 -54
  91. package/src/components/data/DataGrid/DataGridFilterMenu/hooks.tsx +75 -75
  92. package/src/components/data/DataGrid/DataGridFilterMenu/index.tsx +364 -190
  93. package/src/components/data/DataGrid/DataGridFilterMenu/styles.ts +49 -100
  94. package/src/components/data/DataGrid/DataGridFooter.tsx +42 -64
  95. package/src/components/data/DataGrid/DataGridHeader.tsx +126 -126
  96. package/src/components/data/DataGrid/DataGridHeaderCell.tsx +132 -167
  97. package/src/components/data/DataGrid/FilterModalContent/index.tsx +124 -125
  98. package/src/components/data/DataGrid/FilterModalContent/styles.ts +22 -22
  99. package/src/components/data/DataGrid/FilterValuesScroller.tsx +133 -131
  100. package/src/components/data/DataGrid/VirtualScroller.tsx +46 -46
  101. package/src/components/data/DataGrid/helpers/columns.tsx +287 -196
  102. package/src/components/data/DataGrid/helpers/filters.ts +220 -207
  103. package/src/components/data/DataGrid/helpers/index.ts +2 -2
  104. package/src/components/data/DataGrid/hooks/index.ts +30 -30
  105. package/src/components/data/DataGrid/hooks/useDataGrid.tsx +305 -264
  106. package/src/components/data/DataGrid/hooks/useDataGridCopy.ts +170 -165
  107. package/src/components/data/DataGrid/hooks/useDataGridSettings.ts +48 -48
  108. package/src/components/data/DataGrid/index.tsx +139 -132
  109. package/src/components/data/DataGrid/styles.ts +347 -326
  110. package/src/components/data/DataGrid/types.ts +260 -240
  111. package/src/components/data/SqlRequestDataGrid/helpers/columns.tsx +259 -224
  112. package/src/components/data/SqlRequestDataGrid/helpers/index.ts +2 -2
  113. package/src/components/data/SqlRequestDataGrid/helpers/sqlRequests.ts +16 -16
  114. package/src/components/data/SqlRequestDataGrid/index.tsx +347 -252
  115. package/src/components/data/SqlRequestDataGrid/types.ts +47 -47
  116. package/src/components/data/index.ts +8 -8
  117. package/src/components/forms/Button.tsx +99 -99
  118. package/src/components/forms/IconButton.tsx +56 -56
  119. package/src/components/forms/IndeterminateCheckbox.tsx +46 -46
  120. package/src/components/forms/Select.tsx +40 -40
  121. package/src/components/forms/index.ts +5 -5
  122. package/src/components/forms/styles.ts +20 -20
  123. package/src/components/index.ts +3 -3
  124. package/src/components/layout/Dropdown/index.tsx +79 -79
  125. package/src/components/layout/Dropdown/styles.ts +44 -44
  126. package/src/components/layout/Loading/index.tsx +29 -29
  127. package/src/components/layout/Loading/styles.ts +29 -29
  128. package/src/components/layout/Modal/index.tsx +51 -51
  129. package/src/components/layout/Modal/styles.ts +110 -110
  130. package/src/components/layout/index.ts +3 -3
  131. package/src/components/ui/ContextMenu/index.tsx +73 -0
  132. package/src/components/ui/ContextMenu/styles.ts +115 -0
  133. package/src/config/index.ts +14 -14
  134. package/src/helpers/dates.ts +9 -9
  135. package/src/helpers/getScrollbarSize.ts +14 -14
  136. package/src/helpers/numbers.ts +20 -20
  137. package/src/hooks/index.ts +2 -2
  138. package/src/hooks/useElementSize.ts +24 -24
  139. package/src/hooks/useWindowSize.ts +20 -20
  140. package/src/index.ts +7 -7
  141. package/src/providers/PortalsProvider/index.tsx +54 -54
  142. package/src/providers/PortalsProvider/styles.ts +27 -27
  143. package/src/providers/SettingsProvider/index.tsx +70 -70
  144. package/src/providers/ThemeProvider/ThemeProvider.ts +55 -55
  145. package/src/providers/ThemeProvider/defaultTheme.ts +444 -444
  146. package/src/providers/ThemeProvider/index.ts +3 -3
  147. package/src/providers/ThemeProvider/types.ts +123 -123
  148. package/src/providers/UiProviders/index.tsx +65 -65
  149. package/src/providers/UiProviders/styles.ts +10 -10
  150. package/src/providers/hooks.ts +8 -8
  151. package/src/providers/index.ts +5 -5
  152. package/src/services/HttpService.ts +80 -80
  153. package/src/services/WebSocketService.ts +147 -147
  154. package/src/services/advancedRequests.ts +101 -101
  155. package/src/services/base.ts +31 -31
  156. package/src/services/hooks.ts +23 -23
  157. package/src/services/index.ts +2 -2
  158. package/src/services/sqlRequests.ts +110 -99
  159. package/src/styles/animations.scss +30 -30
  160. package/src/styles/index.scss +42 -42
  161. package/src/typings.d.ts +6 -6
  162. package/tsconfig.tsbuildinfo +1 -1
  163. package/dist/components/data/DataGrid/helpers.d.ts +0 -28
  164. package/dist/components/data/DataGrid/helpers.js +0 -436
  165. package/dist/config/types.d.ts +0 -11
  166. package/dist/config/types.js +0 -2
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M456 56c0-7.7-3.7-15-10-19.5s-14.3-5.7-21.6-3.3l-48 16C363.8 53.4 357 67 361.2 79.6S379 99 391.6 94.8L408 89.3V128v48H384c-13.3 0-24 10.7-24 24s10.7 24 24 24h48 48c13.3 0 24-10.7 24-24s-10.7-24-24-24H456V128 56zM143 473c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96zm281-89a40 40 0 1 1 0-80 40 40 0 1 1 0 80zm-17.9 46.2l-8.7 10.6c-8.4 10.3-6.9 25.4 3.4 33.8s25.4 6.9 33.8-3.4l56.8-69.4C504.7 385.5 512 365.1 512 344c0-48.6-39.4-88-88-88s-88 39.4-88 88c0 42.5 30.1 77.9 70.1 86.2z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24h74.6L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480H480c13.3 0 24-10.7 24-24s-10.7-24-24-24H405.4l92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288H352zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200H456c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152H394.8z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M47 377l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1L81 343c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9zm305-89c-13.3 0-24 10.7-24 24s10.7 24 24 24h74.6L334.1 440.1c-6.3 7.1-7.8 17.2-4 25.8S342.6 480 352 480H480c13.3 0 24-10.7 24-24s-10.7-24-24-24H405.4l92.5-104.1c6.3-7.1 7.8-17.2 4-25.8S489.4 288 480 288H352zM416 32c-9.1 0-17.4 5.1-21.5 13.3l-80 160c-5.9 11.9-1.1 26.3 10.7 32.2s26.3 1.1 32.2-10.7L370.8 200H456c1.7 0 3.3-.2 4.9-.5l13.6 27.2c5.9 11.9 20.3 16.7 32.2 10.7s16.7-20.3 10.7-32.2l-80-160C433.4 37.1 425.1 32 416 32zM394.8 152L416 109.7 437.2 152H394.8z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M143 473L47 377c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l55 55V56c0-13.3 10.7-24 24-24s24 10.7 24 24V398.1l55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-96 96c-9.4 9.4-24.6 9.4-33.9 0zM368 368v64h64V368H368zm-48 0c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H368c-26.5 0-48-21.5-48-48V368zm48-160H496V80L368 80V208zm-48 0V80c0-26.5 21.5-48 48-48H496c26.5 0 48 21.5 48 48V208c0 26.5-21.5 48-48 48H368c-26.5 0-48-21.5-48-48z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M424 80a40 40 0 1 0 0 80 40 40 0 1 0 0-80zm88 40c0 .8 0 1.6 0 2.5c-.6 20.2-7.9 39.7-20.9 55.3l-64.6 77.6c-8.5 10.2-23.6 11.6-33.8 3.1s-11.6-23.6-3.1-33.8L405.1 206c-39.5-8.6-69.1-43.8-69.1-86c0-48.6 39.4-88 88-88s88 39.4 88 88zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55V456c0 13.3-10.7 24-24 24s-24-10.7-24-24V113.9L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM456 312V432h24c13.3 0 24 10.7 24 24s-10.7 24-24 24H432 384c-13.3 0-24-10.7-24-24s10.7-24 24-24h24V345.3l-16.4 5.5c-12.6 4.2-26.2-2.6-30.4-15.2s2.6-26.2 15.2-30.4l48-16c7.3-2.4 15.4-1.2 21.6 3.3s10 11.8 10 19.5z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M368 208V80l128 0V208H368zm-48 0c0 26.5 21.5 48 48 48H496c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H368c-26.5 0-48 21.5-48 48V208zM177 39c-9.4-9.4-24.6-9.4-33.9 0L47 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55V456c0 13.3 10.7 24 24 24s24-10.7 24-24V113.9l55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L177 39zM368 368h64v64H368V368zm-48 0v64c0 26.5 21.5 48 48 48h64c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H368c-26.5 0-48 21.5-48 48z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M352 32H480c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176H480c13.3 0 24 10.7 24 24s-10.7 24-24 24H352c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80H352c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55V456c0 13.3-10.7 24-24 24s-24-10.7-24-24V113.9L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5H370.8l-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392h42.3L416 349.7 394.8 392z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M352 32H480c9.4 0 18 5.5 21.9 14.2s2.3 18.7-4 25.8L405.4 176H480c13.3 0 24 10.7 24 24s-10.7 24-24 24H352c-9.4 0-18-5.5-21.9-14.2s-2.3-18.7 4-25.8L426.6 80H352c-13.3 0-24-10.7-24-24s10.7-24 24-24zM143 39c9.4-9.4 24.6-9.4 33.9 0l96 96c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55V456c0 13.3-10.7 24-24 24s-24-10.7-24-24V113.9L81 169c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l96-96zM416 272c9.1 0 17.4 5.1 21.5 13.3l80 160c5.9 11.9 1.1 26.3-10.7 32.2s-26.3 1.1-32.2-10.7l-13.6-27.2c-1.6 .3-3.2 .5-4.9 .5H370.8l-13.4 26.7c-5.9 11.9-20.3 16.7-32.2 10.7s-16.7-20.3-10.7-32.2l80-160c4.1-8.1 12.4-13.3 21.5-13.3zM394.8 392h42.3L416 349.7 394.8 392z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l96 0 0-184c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 184 96 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-160 160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l96 0 0-184c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 184 96 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-160 160z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M432 256a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zm-160 0a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128l95.1 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0L325.8 320l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7-95.1 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 21.3-128L64 192c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320l95.1 0 21.3-128-95.1 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M181.3 32.4c17.4 2.9 29.2 19.4 26.3 36.8L197.8 128l95.1 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3s29.2 19.4 26.3 36.8L357.8 128l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0L325.8 320l58.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-68.9 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8l9.8-58.7-95.1 0-11.5 69.3c-2.9 17.4-19.4 29.2-36.8 26.3s-29.2-19.4-26.3-36.8L90.2 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 21.3-128L64 192c-17.7 0-32-14.3-32-32s14.3-32 32-32l68.9 0 11.5-69.3c2.9-17.4 19.4-29.2 36.8-26.3zM187.1 192L165.8 320l95.1 0 21.3-128-95.1 0z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-55.5-43.5c.5-3.1 .7-6.3 .7-9.6l0-320c0-35.3-28.7-64-64-64L128 32c-14.4 0-27.8 4.8-38.5 12.9L38.8 5.1zM134.4 80L512 80c8.8 0 16 7.2 16 16l0 292.5-53.4-41.9L387 233.3c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3l-7.2 9.3L256 175.3c-.4-26.2-21.7-47.3-48-47.3c-3.7 0-7.4 .4-10.8 1.2L134.4 80zm353 400L282.9 318.9 266 340.7l-30.5-42.7C231 291.7 223.8 288 216 288s-15 3.7-19.5 10.1l-80 112-4.5 6.3 0-.3 0-231.8L64 146.4 64 416c0 35.3 28.7 64 64 64l359.4 0z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Pro 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7l-55.5-43.5c.5-3.1 .7-6.3 .7-9.6l0-320c0-35.3-28.7-64-64-64L128 32c-14.4 0-27.8 4.8-38.5 12.9L38.8 5.1zM134.4 80L512 80c8.8 0 16 7.2 16 16l0 292.5-53.4-41.9L387 233.3c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3l-7.2 9.3L256 175.3c-.4-26.2-21.7-47.3-48-47.3c-3.7 0-7.4 .4-10.8 1.2L134.4 80zm353 400L282.9 318.9 266 340.7l-30.5-42.7C231 291.7 223.8 288 216 288s-15 3.7-19.5 10.1l-80 112-4.5 6.3 0-.3 0-231.8L64 146.4 64 416c0 35.3 28.7 64 64 64l359.4 0z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 96 184 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-184 0 0 96c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-160-160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M9.4 278.6c-12.5-12.5-12.5-32.8 0-45.3l160-160c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 96 184 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-184 0 0 96c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-160-160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M368 208A160 160 0 1 0 48 208a160 160 0 1 0 320 0zM337.1 371.1C301.7 399.2 256.8 416 208 416C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208c0 48.8-16.8 93.7-44.9 129.1L505 471c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L337.1 371.1z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-96L40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l184 0 0-96c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l160 160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-96L40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l184 0 0-96c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l160 160z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M1.8 46.8C5.5 37.8 14.3 32 24 32H328c30.9 0 56 25.1 56 56v48c0 13.3-10.7 24-24 24s-24-10.7-24-24V88c0-4.4-3.6-8-8-8H81.9L241 239c9.4 9.4 9.4 24.6 0 33.9L81.9 432H328c4.4 0 8-3.6 8-8V376c0-13.3 10.7-24 24-24s24 10.7 24 24v48c0 30.9-25.1 56-56 56H24c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l183-183L7 73C.2 66.1-1.9 55.8 1.8 46.8z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path opacity="1" d="M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24s10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path opacity="1" d="M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24s10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M48 416V160H232V432H64c-8.8 0-16-7.2-16-16zm232 16V160H464V416c0 8.8-7.2 16-16 16H280zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M48 416V160H232V432H64c-8.8 0-16-7.2-16-16zm232 16V160H464V416c0 8.8-7.2 16-16 16H280zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M 280 248 L 280 313.318 L 232 265.357 L 232 248 L 214.63 248 L 166.591 200 L 232 200 L 232 80 L 64 80 C 59.22 80 54.913 82.124 51.974 85.475 L 18.005 51.532 C 29.648 39.494 45.962 32 64 32 L 448 32 C 483.3 32 512 60.7 512 96 L 512 416 C 512 451.3 483.3 480 448 480 L 446.815 480 L 318.713 352 L 464 352 L 464 248 L 280 248 Z M 464 96 C 464 87.2 456.8 80 448 80 L 280 80 L 280 200 L 464 200 L 464 96 Z M 48 200 L 99.161 200 L 147.199 248 L 48 248 L 48 352 L 232 352 L 232 332.733 L 379.385 480 L 64 480 C 28.7 480 0 451.3 0 416 L 0 100.918 L 48 148.88 L 48 200 Z" style=""/>
4
+ <path d="M 38.259 4.794 C 27.859 -3.406 12.759 -1.506 4.559 8.894 C -3.641 19.294 -1.741 34.394 8.659 42.594 L 473.724 507.288 C 484.124 515.488 499.224 513.588 507.424 503.188 C 515.624 492.788 513.724 477.688 503.324 469.488 L 38.259 4.794 Z"/>
5
+ </svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M 48 248 L 48 352 L 232 352 L 232 248 L 48 248 Z M 48 200 L 232 200 L 232 80 L 64 80 C 55.2 80 48 87.2 48 96 L 48 200 Z M 280 80 L 280 200 L 464 200 L 464 96 C 464 87.2 456.8 80 448 80 L 280 80 Z M 464 248 L 280 248 L 280 352 L 464 352 L 464 248 Z M 64 480 C 28.7 480 0 451.3 0 416 L 0 96 C 0 60.7 28.7 32 64 32 L 448 32 C 483.3 32 512 60.7 512 96 L 512 416 C 512 451.3 483.3 480 448 480 L 64 480 Z" style=""/>
4
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M48 264V160H232V264H48zm0 48H232V432H64c-8.8 0-16-7.2-16-16V312zM280 432V312H464V416c0 8.8-7.2 16-16 16H280zM464 264H280V160H464V264zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M128 40c13.3 0 24 10.7 24 24V286.7L232 260V64c0-13.3 10.7-24 24-24s24 10.7 24 24V244l80-26.7V64c0-13.3 10.7-24 24-24s24 10.7 24 24V201.4l80-26.7V64c0-13.3 10.7-24 24-24s24 10.7 24 24v94.7l64.4-21.5c12.6-4.2 26.2 2.6 30.4 15.2s-2.6 26.2-15.2 30.4L536 209.3V448c0 13.3-10.7 24-24 24s-24-10.7-24-24V225.3L408 252V448c0 13.3-10.7 24-24 24s-24-10.7-24-24V268l-80 26.7V448c0 13.3-10.7 24-24 24s-24-10.7-24-24V310.6l-80 26.7V448c0 13.3-10.7 24-24 24s-24-10.7-24-24V353.3L39.6 374.8C27 379 13.4 372.2 9.2 359.6S11.8 333.4 24.4 329.2L104 302.7V64c0-13.3 10.7-24 24-24z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M169.4 41.4c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H256V440c0 22.1-17.9 40-40 40H168c-22.1 0-40-17.9-40-40V256H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l160-160z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path d="M169.4 41.4c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H256V440c0 22.1-17.9 40-40 40H168c-22.1 0-40-17.9-40-40V256H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l160-160z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"/></svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg class="svg-icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 710 710" version="1.1" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M 533.71 203.895 C 481.754 277.349 428.007 365.733 372.468 469.047 C 386.801 522.197 405.015 565.494 427.111 598.937 C 449.207 632.379 469.511 649.101 488.024 649.101 C 492.204 649.101 496.385 648.354 500.565 646.861 C 504.745 645.368 509.075 642.382 513.555 637.903 C 518.033 633.424 522.96 627.005 528.335 618.643 C 533.71 610.283 539.98 599.533 547.146 586.396 L 557 595.353 C 546.848 636.56 536.397 665.971 525.647 683.588 C 514.898 701.206 499.67 710.014 479.962 710.014 C 453.089 710.014 429.5 690.307 409.195 650.892 C 399.64 631.782 390.085 610.432 380.53 586.843 C 370.975 563.254 361.121 536.53 350.969 506.67 C 338.955 528.892 326.712 550.99 314.242 572.959 C 301.9 594.7 289.657 616.498 277.514 638.351 C 269.751 652.684 262.884 664.18 256.911 672.839 C 250.939 681.499 245.565 688.217 240.787 692.994 C 232.427 700.758 218.99 704.639 200.477 704.639 C 182.561 704.639 173.603 701.056 173.603 693.89 C 173.603 690.904 175.693 687.022 179.873 682.245 C 206.747 646.413 233.173 606.999 259.151 564.001 C 285.129 521.003 309.165 478.005 331.261 435.007 C 312.749 371.705 293.788 322.885 274.379 288.547 C 254.97 254.207 235.711 237.039 216.601 237.039 C 213.045 237.033 209.531 237.797 206.299 239.278 C 203.015 240.771 199.432 243.906 195.549 248.684 C 191.669 253.461 187.189 260.03 182.113 268.391 C 177.037 276.751 170.916 287.501 163.749 300.639 L 153 290.786 C 160.764 264.509 167.482 243.757 173.155 228.529 C 178.829 213.3 184.353 201.954 189.727 194.489 C 195.102 187.024 200.925 182.097 207.195 179.709 C 213.465 177.319 221.677 176.125 231.829 176.125 C 244.968 176.125 256.911 181.5 267.661 192.249 C 273.036 198.819 279.157 208.075 286.024 220.019 C 292.892 231.962 299.909 246.295 307.075 263.016 C 314.242 280.335 321.557 299.893 329.022 321.69 C 336.487 343.488 344.102 368.122 351.865 395.593 C 373.364 356.775 391.429 324.527 406.06 298.848 C 420.691 273.168 431.888 253.461 439.652 239.726 C 448.012 225.99 454.88 214.793 460.255 206.134 C 465.63 197.474 469.81 192.249 472.796 190.458 C 479.962 184.486 492.205 181.5 509.523 181.5 C 528.633 181.5 538.188 185.083 538.188 192.25 C 538.188 195.832 536.696 199.714 533.71 203.894 L 533.71 203.895 Z M 127 70 L 583 70 C 602.33 70 618 54.33 618 35 C 618 15.67 602.33 0 583 0 L 127 0 C 107.67 0 92 15.67 92 35 C 92 54.33 107.67 70 127 70 Z" style="fill: rgba(0, 0, 0, 0.9);"/>
4
+ </svg>
package/dist/Icons.d.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  import { FC, SVGProps } from 'react';
2
+ import ArrowDown19Icon from '../assets/icons/arrow-down-1-9.svg?react';
2
3
  import ArrowDownAZIcon from '../assets/icons/arrow-down-a-z.svg?react';
4
+ import ArrowDownBigSmallIcon from '../assets/icons/arrow-down-big-small.svg?react';
5
+ import ArrowUp91Icon from '../assets/icons/arrow-up-9-1.svg?react';
6
+ import ArrowUpBigSmallIcon from '../assets/icons/arrow-up-big-small.svg?react';
3
7
  import ArrowUpZAIcon from '../assets/icons/arrow-up-z-a.svg?react';
4
8
  import ArrowsRotateIcon from '../assets/icons/arrows-rotate.svg?react';
5
9
  import ArrowsUpDownIcon from '../assets/icons/arrows-up-down.svg?react';
6
10
  import CheckIcon from '../assets/icons/check.svg?react';
11
+ import ChevronDownIcon from '../assets/icons/chevron-down.svg?react';
7
12
  import CopyIcon from '../assets/icons/copy.svg?react';
8
13
  import DownIcon from '../assets/icons/down.svg?react';
14
+ import EllipsisIcon from '../assets/icons/ellipsis.svg?react';
9
15
  import FilterFullIcon from '../assets/icons/filter-full.svg?react';
10
16
  import FilterIcon from '../assets/icons/filter.svg?react';
11
17
  import FilterSlashIcon from '../assets/icons/filter-slash.svg?react';
@@ -16,10 +22,16 @@ import MagnifierIcon from '../assets/icons/magnifier.svg?react';
16
22
  import PhoneIcon from '../assets/icons/phone.svg?react';
17
23
  import PlusIcon from '../assets/icons/plus.svg?react';
18
24
  import RightIcon from '../assets/icons/right.svg?react';
25
+ import SigmaIcon from '../assets/icons/sigma.svg?react';
19
26
  import SpinnerIcon from '../assets/icons/spinner-third.svg?react';
20
27
  import TableColumnsIcon from '../assets/icons/table-columns.svg?react';
28
+ import TableFooterIcon from '../assets/icons/table-footer.svg?react';
29
+ import TableFooterSlashIcon from '../assets/icons/table-footer-slash.svg?react';
30
+ import TableIcon from '../assets/icons/table.svg?react';
31
+ import TallyIcon from '../assets/icons/tally.svg?react';
21
32
  import UpIcon from '../assets/icons/up.svg?react';
22
33
  import UserTieIcon from '../assets/icons/user-tie.svg?react';
34
+ import XBarIcon from '../assets/icons/x-bar.svg?react';
23
35
  type IconFCProps = SVGProps<SVGSVGElement>;
24
36
  export type IconFC = FC<IconFCProps>;
25
37
  type AnimatedIconProps = {
@@ -28,4 +40,4 @@ type AnimatedIconProps = {
28
40
  };
29
41
  export declare const AnimatedIcon: FC<AnimatedIconProps & IconFCProps>;
30
42
  export declare const LoadingIcon: FC<IconFCProps>;
31
- export { ArrowDownAZIcon, ArrowUpZAIcon, ArrowsRotateIcon, ArrowsUpDownIcon, CheckIcon, CopyIcon, DownIcon, FilterFullIcon, FilterIcon, FilterSlashIcon, HashtagIcon, ImageSlashIcon, LeftIcon, MagnifierIcon, PhoneIcon, PlusIcon, RightIcon, SpinnerIcon, TableColumnsIcon, UpIcon, UserTieIcon, };
43
+ export { ArrowDownAZIcon, ArrowDown19Icon, ArrowDownBigSmallIcon, ArrowUpZAIcon, ArrowUpBigSmallIcon, ArrowUp91Icon, ArrowsRotateIcon, ArrowsUpDownIcon, CheckIcon, ChevronDownIcon, CopyIcon, DownIcon, EllipsisIcon, FilterFullIcon, FilterIcon, FilterSlashIcon, HashtagIcon, ImageSlashIcon, LeftIcon, MagnifierIcon, PhoneIcon, PlusIcon, RightIcon, SigmaIcon, SpinnerIcon, TableColumnsIcon, TableFooterIcon, TableFooterSlashIcon, TableIcon, TallyIcon, UpIcon, UserTieIcon, XBarIcon, };
package/dist/Icons.js CHANGED
@@ -25,11 +25,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.UserTieIcon = exports.UpIcon = exports.TableColumnsIcon = exports.SpinnerIcon = exports.RightIcon = exports.PlusIcon = exports.PhoneIcon = exports.MagnifierIcon = exports.LeftIcon = exports.ImageSlashIcon = exports.HashtagIcon = exports.FilterSlashIcon = exports.FilterIcon = exports.FilterFullIcon = exports.DownIcon = exports.CopyIcon = exports.CheckIcon = exports.ArrowsUpDownIcon = exports.ArrowsRotateIcon = exports.ArrowUpZAIcon = exports.ArrowDownAZIcon = exports.LoadingIcon = exports.AnimatedIcon = void 0;
28
+ exports.XBarIcon = exports.UserTieIcon = exports.UpIcon = exports.TallyIcon = exports.TableIcon = exports.TableFooterSlashIcon = exports.TableFooterIcon = exports.TableColumnsIcon = exports.SpinnerIcon = exports.SigmaIcon = exports.RightIcon = exports.PlusIcon = exports.PhoneIcon = exports.MagnifierIcon = exports.LeftIcon = exports.ImageSlashIcon = exports.HashtagIcon = exports.FilterSlashIcon = exports.FilterIcon = exports.FilterFullIcon = exports.EllipsisIcon = exports.DownIcon = exports.CopyIcon = exports.ChevronDownIcon = exports.CheckIcon = exports.ArrowsUpDownIcon = exports.ArrowsRotateIcon = exports.ArrowUp91Icon = exports.ArrowUpBigSmallIcon = exports.ArrowUpZAIcon = exports.ArrowDownBigSmallIcon = exports.ArrowDown19Icon = exports.ArrowDownAZIcon = exports.LoadingIcon = exports.AnimatedIcon = void 0;
29
29
  var jsx_runtime_1 = require("react/jsx-runtime");
30
30
  var react_1 = require("react");
31
+ var arrow_down_1_9_svg_react_1 = __importDefault(require("../assets/icons/arrow-down-1-9.svg?react"));
32
+ exports.ArrowDown19Icon = arrow_down_1_9_svg_react_1.default;
31
33
  var arrow_down_a_z_svg_react_1 = __importDefault(require("../assets/icons/arrow-down-a-z.svg?react"));
32
34
  exports.ArrowDownAZIcon = arrow_down_a_z_svg_react_1.default;
35
+ var arrow_down_big_small_svg_react_1 = __importDefault(require("../assets/icons/arrow-down-big-small.svg?react"));
36
+ exports.ArrowDownBigSmallIcon = arrow_down_big_small_svg_react_1.default;
37
+ var arrow_up_9_1_svg_react_1 = __importDefault(require("../assets/icons/arrow-up-9-1.svg?react"));
38
+ exports.ArrowUp91Icon = arrow_up_9_1_svg_react_1.default;
39
+ var arrow_up_big_small_svg_react_1 = __importDefault(require("../assets/icons/arrow-up-big-small.svg?react"));
40
+ exports.ArrowUpBigSmallIcon = arrow_up_big_small_svg_react_1.default;
33
41
  var arrow_up_z_a_svg_react_1 = __importDefault(require("../assets/icons/arrow-up-z-a.svg?react"));
34
42
  exports.ArrowUpZAIcon = arrow_up_z_a_svg_react_1.default;
35
43
  var arrows_rotate_svg_react_1 = __importDefault(require("../assets/icons/arrows-rotate.svg?react"));
@@ -38,10 +46,14 @@ var arrows_up_down_svg_react_1 = __importDefault(require("../assets/icons/arrows
38
46
  exports.ArrowsUpDownIcon = arrows_up_down_svg_react_1.default;
39
47
  var check_svg_react_1 = __importDefault(require("../assets/icons/check.svg?react"));
40
48
  exports.CheckIcon = check_svg_react_1.default;
49
+ var chevron_down_svg_react_1 = __importDefault(require("../assets/icons/chevron-down.svg?react"));
50
+ exports.ChevronDownIcon = chevron_down_svg_react_1.default;
41
51
  var copy_svg_react_1 = __importDefault(require("../assets/icons/copy.svg?react"));
42
52
  exports.CopyIcon = copy_svg_react_1.default;
43
53
  var down_svg_react_1 = __importDefault(require("../assets/icons/down.svg?react"));
44
54
  exports.DownIcon = down_svg_react_1.default;
55
+ var ellipsis_svg_react_1 = __importDefault(require("../assets/icons/ellipsis.svg?react"));
56
+ exports.EllipsisIcon = ellipsis_svg_react_1.default;
45
57
  var filter_full_svg_react_1 = __importDefault(require("../assets/icons/filter-full.svg?react"));
46
58
  exports.FilterFullIcon = filter_full_svg_react_1.default;
47
59
  var filter_svg_react_1 = __importDefault(require("../assets/icons/filter.svg?react"));
@@ -62,14 +74,26 @@ var plus_svg_react_1 = __importDefault(require("../assets/icons/plus.svg?react")
62
74
  exports.PlusIcon = plus_svg_react_1.default;
63
75
  var right_svg_react_1 = __importDefault(require("../assets/icons/right.svg?react"));
64
76
  exports.RightIcon = right_svg_react_1.default;
77
+ var sigma_svg_react_1 = __importDefault(require("../assets/icons/sigma.svg?react"));
78
+ exports.SigmaIcon = sigma_svg_react_1.default;
65
79
  var spinner_third_svg_react_1 = __importDefault(require("../assets/icons/spinner-third.svg?react"));
66
80
  exports.SpinnerIcon = spinner_third_svg_react_1.default;
67
81
  var table_columns_svg_react_1 = __importDefault(require("../assets/icons/table-columns.svg?react"));
68
82
  exports.TableColumnsIcon = table_columns_svg_react_1.default;
83
+ var table_footer_svg_react_1 = __importDefault(require("../assets/icons/table-footer.svg?react"));
84
+ exports.TableFooterIcon = table_footer_svg_react_1.default;
85
+ var table_footer_slash_svg_react_1 = __importDefault(require("../assets/icons/table-footer-slash.svg?react"));
86
+ exports.TableFooterSlashIcon = table_footer_slash_svg_react_1.default;
87
+ var table_svg_react_1 = __importDefault(require("../assets/icons/table.svg?react"));
88
+ exports.TableIcon = table_svg_react_1.default;
89
+ var tally_svg_react_1 = __importDefault(require("../assets/icons/tally.svg?react"));
90
+ exports.TallyIcon = tally_svg_react_1.default;
69
91
  var up_svg_react_1 = __importDefault(require("../assets/icons/up.svg?react"));
70
92
  exports.UpIcon = up_svg_react_1.default;
71
93
  var user_tie_svg_react_1 = __importDefault(require("../assets/icons/user-tie.svg?react"));
72
94
  exports.UserTieIcon = user_tie_svg_react_1.default;
95
+ var x_bar_svg_react_1 = __importDefault(require("../assets/icons/x-bar.svg?react"));
96
+ exports.XBarIcon = x_bar_svg_react_1.default;
73
97
  var AnimatedIcon = function (_a) {
74
98
  var icons = _a.icons, _b = _a.speed, speed = _b === void 0 ? 150 : _b, props = __rest(_a, ["icons", "speed"]);
75
99
  var _c = (0, react_1.useState)(0), currentIcon = _c[0], setCurrentIcon = _c[1];
@@ -108,9 +108,9 @@ var AdvancedRequestDataGrid = function (_a) {
108
108
  var _a;
109
109
  var _b;
110
110
  if (getTotal) {
111
- currentRows.current = Array(response.total).fill(null);
111
+ currentRows.current = Array(response.count).fill(null);
112
112
  if (getTotal)
113
- setTotal((_b = response.total) !== null && _b !== void 0 ? _b : 0);
113
+ setTotal((_b = response.count) !== null && _b !== void 0 ? _b : 0);
114
114
  }
115
115
  var parsedRows = (0, helpers_1.parseJsonObjectFields)(response.data, columns, props.parser);
116
116
  (_a = currentRows.current).splice.apply(_a, __spreadArray([start, length], parsedRows, false));
@@ -125,7 +125,7 @@ var AdvancedRequestDataGrid = function (_a) {
125
125
  fieldName: columnKey,
126
126
  },
127
127
  ],
128
- conditions: __spreadArray(__spreadArray([], ((_b = props.conditions) !== null && _b !== void 0 ? _b : []), true), Object.values(lodash_1.default.pickBy(conditions, function (condition, key) { return key !== columnKey; })), true).filter(function (condition) { return condition.field !== columnKey; }),
128
+ conditions: __spreadArray(__spreadArray([], ((_b = props.conditions) !== null && _b !== void 0 ? _b : []), true), Object.values(lodash_1.default.pickBy(conditions, function (_, key) { return key !== columnKey; })), true).filter(function (condition) { return condition.field !== columnKey; }),
129
129
  orderBy: [
130
130
  {
131
131
  field: (_g = (_e = (_c = props.columns[columnKey].filterField) !== null && _c !== void 0 ? _c : (_d = props.columns[columnKey].field) === null || _d === void 0 ? void 0 : _d.fieldAlias) !== null && _e !== void 0 ? _e : (_f = props.columns[columnKey].field) === null || _f === void 0 ? void 0 : _f.fieldName) !== null && _g !== void 0 ? _g : columnKey,
@@ -1,10 +1,9 @@
1
- import { AdvancedRequestRow, ConditionDTO, OrderByDTO } from '../../../services/advancedRequests';
1
+ import { ConditionDTO, OrderByDTO } from '../../../services/advancedRequests';
2
2
  import { DataGridProps } from './types';
3
3
  export type AdvancedRequestDataGridProps<R> = Omit<DataGridProps<R>, 'rows'> & {
4
4
  type: string;
5
5
  orderBy?: OrderByDTO[];
6
6
  conditions?: ConditionDTO[];
7
7
  addIdColumn?: boolean;
8
- parser?: (row: AdvancedRequestRow<R>) => R;
9
8
  };
10
9
  export declare const AdvancedRequestDataGrid: <R>(props: AdvancedRequestDataGridProps<R>) => import("react/jsx-runtime").JSX.Element;
@@ -93,14 +93,13 @@ var AdvancedRequestDataGrid = function (props) {
93
93
  getTotal: getTotal,
94
94
  })).then(function (response) {
95
95
  var _a;
96
- var _b, _c;
96
+ var _b;
97
97
  if (getTotal) {
98
98
  currentRows.current = Array(response.total).fill(null);
99
99
  if (getTotal)
100
100
  setTotal((_b = response.total) !== null && _b !== void 0 ? _b : 0);
101
101
  }
102
- var parsedRows = response.data.map((_c = props.parser) !== null && _c !== void 0 ? _c : (function (row) { return row; }));
103
- (_a = currentRows.current).splice.apply(_a, __spreadArray([start, length], parsedRows, false));
102
+ (_a = currentRows.current).splice.apply(_a, __spreadArray([start, length], response.data, false));
104
103
  setRows(__spreadArray([], currentRows.current, true));
105
104
  });
106
105
  }, 100));
@@ -151,14 +150,13 @@ var AdvancedRequestDataGrid = function (props) {
151
150
  orderBy: orderBy,
152
151
  start: 0,
153
152
  length: total,
154
- })).then(function (response) { var _a; return response.data.map((_a = props.parser) !== null && _a !== void 0 ? _a : (function (row) { return row; })); });
153
+ })).then(function (response) { return response.data; });
155
154
  }, [
156
155
  advancedRequest,
157
156
  conditions,
158
157
  orderBy,
159
158
  props.columns,
160
159
  props.conditions,
161
- props.parser,
162
160
  props.type,
163
161
  total,
164
162
  ]);
@@ -1,2 +1,2 @@
1
1
  import { DataGridCellProps } from './types';
2
- export declare const DataGridCell: <R>({ row, rowIndex, columnKey, columnIndex, column, context, className, style, }: DataGridCellProps<R>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DataGridCell: <R>({ row, rowIndex, columnKey, columnIndex, column, context, style, }: DataGridCellProps<R>) => import("react/jsx-runtime").JSX.Element;
@@ -30,18 +30,18 @@ var jsx_runtime_1 = require("react/jsx-runtime");
30
30
  var styles = __importStar(require("./styles"));
31
31
  var react_1 = require("react");
32
32
  var DataGridEditableCell_1 = require("./DataGridEditableCell");
33
- var lodash_1 = require("lodash");
34
33
  var hooks_1 = require("./hooks");
35
34
  var defaultRender = function (row, col) {
36
35
  var value = col.propertyName ? row[col.propertyName] : '';
37
36
  return !value ? '' : String(value);
38
37
  };
39
38
  var DataGridCell = function (_a) {
40
- var _b;
41
- var row = _a.row, rowIndex = _a.rowIndex, columnKey = _a.columnKey, columnIndex = _a.columnIndex, column = _a.column, context = _a.context, className = _a.className, style = _a.style;
42
- var _c = (0, hooks_1.useDataGridContext)(context), name = _c.name, editable = _c.editable, _d = _c.editingCell, editingCell = _d === void 0 ? [-1, -1] : _d, setEditingCell = _c.setEditingCell, onRowDoubleClick = _c.onRowDoubleClick;
39
+ var _b, _c;
40
+ var row = _a.row, rowIndex = _a.rowIndex, columnKey = _a.columnKey, columnIndex = _a.columnIndex, column = _a.column, context = _a.context, style = _a.style;
41
+ var _d = (0, hooks_1.useDataGridContext)(context), name = _d.name, editable = _d.editable, _e = _d.editingCell, editingCell = _e === void 0 ? [-1, -1] : _e, setEditingCell = _d.setEditingCell, onRowDoubleClick = _d.onRowDoubleClick;
43
42
  var isEditable = !!editable && !!column.editable && column.type && column.getter;
44
43
  var isEditing = isEditable && editingCell[0] === rowIndex && editingCell[1] === columnIndex;
44
+ var DataGridCellComponent = (_b = column.component) !== null && _b !== void 0 ? _b : styles.DataGridCell;
45
45
  var onDoubleClick = (0, react_1.useCallback)(function (e) {
46
46
  e.stopPropagation();
47
47
  e.preventDefault();
@@ -54,6 +54,6 @@ var DataGridCell = function (_a) {
54
54
  if (isEditing) {
55
55
  return ((0, jsx_runtime_1.jsx)(DataGridEditableCell_1.DataGridEditableCell, { row: row, rowIndex: rowIndex, columnKey: columnKey, columnIndex: columnIndex, column: column, context: context }, "".concat(name, "-").concat(rowIndex, "-").concat(columnIndex)));
56
56
  }
57
- return ((0, jsx_runtime_1.jsx)(styles.DataGridCell, { className: (0, lodash_1.join)([className, column.className, column.bodyClassName], ' '), onDoubleClick: onDoubleClick, style: style, children: ((_b = column.render) !== null && _b !== void 0 ? _b : defaultRender)(row, column) }, "".concat(name, "-").concat(rowIndex, "-").concat(columnIndex)));
57
+ return ((0, jsx_runtime_1.jsx)(DataGridCellComponent, { onDoubleClick: onDoubleClick, style: style, children: ((_c = column.render) !== null && _c !== void 0 ? _c : defaultRender)(row, column) }, "".concat(name, "-").concat(rowIndex, "-").concat(columnIndex)));
58
58
  };
59
59
  exports.DataGridCell = DataGridCell;
@@ -12,8 +12,9 @@ var useDataGridColumnsModal = function (context) {
12
12
  var _b = (0, react_1.useContext)(context), columns = _b.columns, setSettings = _b.setSettings, saveSettings = _b.saveSettings;
13
13
  var _c = (0, react_1.useState)(columns), currentColumns = _c[0], setCurrentColumns = _c[1];
14
14
  var openModal = (0, react_1.useCallback)(function () {
15
+ setCurrentColumns(columns);
15
16
  setIsVisible(true);
16
- }, []);
17
+ }, [columns]);
17
18
  var closeModal = (0, react_1.useCallback)(function () {
18
19
  setIsVisible(false);
19
20
  }, []);
@@ -5,7 +5,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
6
  /* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */
7
7
  var react_1 = require("react");
8
- var lodash_1 = require("lodash");
9
8
  var hooks_1 = require("./hooks");
10
9
  var DataGridEditableCell = function (_a) {
11
10
  var row = _a.row, columnKey = _a.columnKey, column = _a.column, context = _a.context;
@@ -19,13 +18,9 @@ var DataGridEditableCell = function (_a) {
19
18
  onCellEdited === null || onCellEdited === void 0 ? void 0 : onCellEdited(row, columnKey, value);
20
19
  setEditingCell([-1, -1]);
21
20
  }, [columnKey, onCellEdited, row, setEditingCell, value]);
22
- return ((0, jsx_runtime_1.jsxs)("td", { className: (0, lodash_1.join)([
23
- // 'whitespace-nowrap py-1 text-sm',
24
- column.className,
25
- column.bodyClassName,
26
- ], ' '), children: [(0, jsx_runtime_1.jsx)("input", { type: "text",
21
+ return ((0, jsx_runtime_1.jsxs)("td", { children: [(0, jsx_runtime_1.jsx)("input", { type: "text",
27
22
  // className="relative z-10 block text-normal w-full border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-sky-600 sm:text-sm sm:leading-6"
28
- value: value, onChange: function (e) { return setValue(e.target.value); } }), (0, jsx_runtime_1.jsx)("div", {
23
+ value: String(value), onChange: function (e) { return setValue(e.target.value); } }), (0, jsx_runtime_1.jsx)("div", {
29
24
  // className="fixed inset-0 bg-black bg-opacity-10"
30
25
  onClick: onClose })] }, columnKey));
31
26
  };
@@ -33,6 +33,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
33
33
  __setModuleDefault(result, mod);
34
34
  return result;
35
35
  };
36
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
36
47
  var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
37
48
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
38
49
  if (ar || !(i in from)) {
@@ -52,18 +63,43 @@ var Icons_1 = require("../../../../Icons");
52
63
  var helpers_1 = require("../helpers");
53
64
  var lodash_1 = require("lodash");
54
65
  var react_1 = require("react");
66
+ var ContextMenu_1 = require("../../../ui/ContextMenu");
55
67
  var FilterValuesScroller_1 = require("../FilterValuesScroller");
56
68
  var forms_1 = require("../../../forms");
57
69
  var hooks_1 = require("./hooks");
70
+ var sortAsc = {
71
+ number: ['Trier du plus petit au plus grand', Icons_1.ArrowDown19Icon],
72
+ text: ['Trier de A à Z', Icons_1.ArrowDownAZIcon],
73
+ // date: 'Trier du plus ancien au plus récent',
74
+ };
75
+ var sortDesc = {
76
+ number: ['Trier du plus grand au plus petit', Icons_1.ArrowUp91Icon],
77
+ text: ['Trier de Z à A', Icons_1.ArrowUpZAIcon],
78
+ // date: 'Trier du plus récent au plus ancien',
79
+ };
80
+ var footerFunctionsTexts = {
81
+ average: 'Moyenne',
82
+ count: 'Nombre',
83
+ max: 'Maximum',
84
+ min: 'Minimum',
85
+ sum: 'Somme',
86
+ };
87
+ var footerFunctionsIcons = {
88
+ average: Icons_1.XBarIcon,
89
+ count: Icons_1.TallyIcon,
90
+ max: Icons_1.ArrowUpBigSmallIcon,
91
+ min: Icons_1.ArrowDownBigSmallIcon,
92
+ sum: Icons_1.SigmaIcon,
93
+ };
58
94
  var DataGridFilterMenu = function (_a) {
59
- var _b, _c;
95
+ var _b, _c, _d, _e, _f, _g, _h, _j;
60
96
  var columnKey = _a.columnKey, context = _a.context, onClose = _a.onClose;
61
- var _d = (0, hooks_1.useFilterModal)({ columnKey: columnKey, context: context }), openModal = _d.openModal, modal = _d.modal;
62
- var _e = (0, react_1.useContext)(context), _f = _e.filters, filters = _f === void 0 ? {} : _f, rows = _e.rows, columns = _e.columns, setFilters = _e.setFilters, filterValuesLoader = _e.filterValuesLoader;
97
+ var _k = (0, hooks_1.useFilterModal)({ columnKey: columnKey, context: context }), openModal = _k.openModal, modal = _k.modal;
98
+ var _l = (0, react_1.useContext)(context), _m = _l.filters, filters = _m === void 0 ? {} : _m, _o = _l.footers, footers = _o === void 0 ? {} : _o, rows = _l.rows, columns = _l.columns, setFilters = _l.setFilters, filterValuesLoader = _l.filterValuesLoader, setSorts = _l.setSorts, setFooters = _l.setFooters;
63
99
  var column = (_b = columns[columnKey]) !== null && _b !== void 0 ? _b : {};
64
100
  var textFilterInputRef = (0, react_1.useRef)(null);
65
- var _g = (0, react_1.useState)(''), textFilter = _g[0], setTextFilter = _g[1];
66
- var _h = (0, react_1.useState)([]), availableValues = _h[0], setAvailableValues = _h[1];
101
+ var _p = (0, react_1.useState)(''), textFilter = _p[0], setTextFilter = _p[1];
102
+ var _q = (0, react_1.useState)([]), availableValues = _q[0], setAvailableValues = _q[1];
67
103
  (0, react_1.useEffect)(function () {
68
104
  if (filterValuesLoader) {
69
105
  filterValuesLoader(columnKey).then(function (values) {
@@ -82,7 +118,12 @@ var DataGridFilterMenu = function (_a) {
82
118
  });
83
119
  var availableRows = (0, helpers_1.applyFilters)(rows, otherFilters);
84
120
  var values_1 = availableRows.map(function (row) { return column.filter.getter(row); });
85
- setAvailableValues(function () { return (0, lodash_1.uniq)(values_1).sort(); });
121
+ setAvailableValues(function () {
122
+ var _a;
123
+ return (0, lodash_1.uniq)(values_1).sort(((_a = column.filter) === null || _a === void 0 ? void 0 : _a.type) === 'number'
124
+ ? function (a, b) { return a - b; }
125
+ : function (a, b) { return a.localeCompare(b); });
126
+ });
86
127
  }
87
128
  }, [column.filter, columnKey, filterValuesLoader, filters, rows]);
88
129
  var selectedValues = (0, react_1.useMemo)(function () { var _a, _b; return (_b = (_a = filters === null || filters === void 0 ? void 0 : filters[columnKey]) === null || _a === void 0 ? void 0 : _a.values) !== null && _b !== void 0 ? _b : []; }, [columnKey, filters]);
@@ -111,7 +152,8 @@ var DataGridFilterMenu = function (_a) {
111
152
  var checked = (0, lodash_1.intersection)(selectedValues, values).length === values.length;
112
153
  setValuesChecked(values, !checked);
113
154
  }, [setValuesChecked, selectedValues]);
114
- var formatter = (0, react_1.useMemo)(function () { var _a, _b; return (_b = (_a = column.filter) === null || _a === void 0 ? void 0 : _a.formatter) !== null && _b !== void 0 ? _b : (function (v) { return (v === null ? null : String(v)); }); }, [(_c = column.filter) === null || _c === void 0 ? void 0 : _c.formatter]);
155
+ var formatter = (0, react_1.useMemo)(function () { var _a, _b; return (_b = (_a = column.filter) === null || _a === void 0 ? void 0 : _a.formatter) !== null && _b !== void 0 ? _b : helpers_1.defaultRendererAndFormatter; }, [(_c = column.filter) === null || _c === void 0 ? void 0 : _c.formatter]);
156
+ var renderer = (0, react_1.useMemo)(function () { var _a, _b; return (_b = (_a = column.filter) === null || _a === void 0 ? void 0 : _a.renderer) !== null && _b !== void 0 ? _b : helpers_1.defaultRendererAndFormatter; }, [(_d = column.filter) === null || _d === void 0 ? void 0 : _d.renderer]);
115
157
  var filteredAvailableValues = (0, react_1.useMemo)(function () {
116
158
  return !textFilter
117
159
  ? availableValues
@@ -125,16 +167,54 @@ var DataGridFilterMenu = function (_a) {
125
167
  var checkboxesComponent = (0, react_1.useMemo)(function () {
126
168
  if (column.type === 'date') {
127
169
  var groups = (0, helpers_1.getDateGroups)(filteredAvailableValues);
128
- return ((0, jsx_runtime_1.jsx)(FilterValuesScroller_1.FilterValuesScroller, { values: filteredAvailableValues, selectedValues: selectedValues, onToggle: toggleValues, formatter: formatter, groups: groups }));
170
+ return ((0, jsx_runtime_1.jsx)(FilterValuesScroller_1.FilterValuesScroller, { values: filteredAvailableValues, selectedValues: selectedValues, onToggle: toggleValues, formatter: formatter, renderer: renderer, groups: groups }));
129
171
  }
130
- return ((0, jsx_runtime_1.jsx)(FilterValuesScroller_1.FilterValuesScroller, { values: filteredAvailableValues, selectedValues: selectedValues, onToggle: toggleValues, formatter: formatter }));
172
+ return ((0, jsx_runtime_1.jsx)(FilterValuesScroller_1.FilterValuesScroller, { values: filteredAvailableValues, selectedValues: selectedValues, onToggle: toggleValues, formatter: formatter, renderer: renderer }));
131
173
  }, [
132
174
  column.type,
133
175
  filteredAvailableValues,
134
176
  formatter,
177
+ renderer,
135
178
  selectedValues,
136
179
  toggleValues,
137
180
  ]);
138
- return ((0, jsx_runtime_1.jsxs)(styles.Menu, { onClick: function (e) { return e.stopPropagation(); }, children: [modal, (0, jsx_runtime_1.jsxs)(styles.MenuItem, { onClick: openModal, children: [(0, jsx_runtime_1.jsx)(Icons_1.FilterIcon, {}), "Filtrer ..."] }), (0, jsx_runtime_1.jsxs)(styles.MenuItem, { "$color": "danger", onClick: clearFilter, children: [(0, jsx_runtime_1.jsx)(Icons_1.FilterSlashIcon, {}), "Supprimer le filtre"] }), (0, jsx_runtime_1.jsxs)(styles.InputContainer, { children: [(0, jsx_runtime_1.jsx)(Icons_1.MagnifierIcon, {}), (0, jsx_runtime_1.jsx)(forms_1.Input, { ref: textFilterInputRef, type: "text", name: "search", id: "search", placeholder: "Rechercher ...", value: textFilter, onChange: function (e) { return setTextFilter(e.target.value); } })] }), (0, jsx_runtime_1.jsx)(styles.CheckboxesContainer, { children: checkboxesComponent })] }));
181
+ var onSortAscClicked = (0, react_1.useCallback)(function () {
182
+ var _a;
183
+ setSorts((_a = {}, _a[columnKey] = 'asc', _a));
184
+ onClose === null || onClose === void 0 ? void 0 : onClose();
185
+ }, [columnKey, onClose, setSorts]);
186
+ var onSortDescClicked = (0, react_1.useCallback)(function () {
187
+ var _a;
188
+ setSorts((_a = {}, _a[columnKey] = 'desc', _a));
189
+ onClose === null || onClose === void 0 ? void 0 : onClose();
190
+ }, [columnKey, onClose, setSorts]);
191
+ var hasFilters = ((_e = filters[columnKey]) === null || _e === void 0 ? void 0 : _e.values.length) > 0;
192
+ var _r = [
193
+ sortAsc[(_g = (_f = column.filter) === null || _f === void 0 ? void 0 : _f.type) !== null && _g !== void 0 ? _g : 'text'],
194
+ sortDesc[(_j = (_h = column.filter) === null || _h === void 0 ? void 0 : _h.type) !== null && _j !== void 0 ? _j : 'text'],
195
+ ], _s = _r[0], sortAscText = _s[0], SortAscIcon = _s[1], _t = _r[1], sortDescText = _t[0], SortDescIcon = _t[1];
196
+ var isFooterVisible = columnKey in footers && footers[columnKey] !== undefined;
197
+ var showFooter = (0, react_1.useCallback)(function (key) {
198
+ setFooters(function (prevFooters) {
199
+ var _a;
200
+ return (__assign(__assign({}, prevFooters), (_a = {}, _a[columnKey] = key, _a)));
201
+ });
202
+ onClose === null || onClose === void 0 ? void 0 : onClose();
203
+ }, [columnKey, onClose, setFooters]);
204
+ var hideFooter = (0, react_1.useCallback)(function () {
205
+ setFooters(function (prevFooters) {
206
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
207
+ var _a = prevFooters, _b = columnKey, _ = _a[_b], newFooters = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
208
+ return newFooters;
209
+ });
210
+ onClose === null || onClose === void 0 ? void 0 : onClose();
211
+ }, [columnKey, onClose, setFooters]);
212
+ return ((0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu, { children: [modal, column.sortGetter && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: onSortAscClicked, children: [(0, jsx_runtime_1.jsx)(SortAscIcon, {}), sortAscText] }), (0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: onSortDescClicked, children: [(0, jsx_runtime_1.jsx)(SortDescIcon, {}), sortDescText] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {})] })), isFooterVisible && typeof column.footer === 'function' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: hideFooter, children: [(0, jsx_runtime_1.jsx)(Icons_1.TableFooterSlashIcon, {}), "Masquer le total"] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {})] })), !isFooterVisible && typeof column.footer === 'function' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: function () { return showFooter('count'); }, children: [(0, jsx_runtime_1.jsx)(Icons_1.TableFooterIcon, {}), "Afficher le total"] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {})] })), typeof column.footer === 'object' && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.ParentItem, { children: [(0, jsx_runtime_1.jsx)(Icons_1.TableFooterIcon, {}), "Afficher le total", (0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.SubMenu, { children: [Object.keys(column.footer).map(function (key) {
213
+ var _a;
214
+ var TotalIcon = (_a = footerFunctionsIcons[key]) !== null && _a !== void 0 ? _a : Icons_1.TableFooterIcon;
215
+ return ((0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: function () { return showFooter(key); }, children: [(0, jsx_runtime_1.jsx)(TotalIcon, {}), key in footerFunctionsTexts
216
+ ? footerFunctionsTexts[key]
217
+ : key] }, key));
218
+ }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {}), (0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: hideFooter, disabled: !isFooterVisible, children: [(0, jsx_runtime_1.jsx)(Icons_1.TableFooterSlashIcon, {}), "Masquer le total"] })] })] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {})] })), (0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { onClick: openModal, children: [(0, jsx_runtime_1.jsx)(Icons_1.FilterIcon, {}), "Filtrer ..."] }), (0, jsx_runtime_1.jsxs)(ContextMenu_1.ContextMenu.Item, { "$color": "danger", onClick: clearFilter, disabled: !hasFilters, children: [(0, jsx_runtime_1.jsx)(Icons_1.FilterSlashIcon, {}), "Supprimer le filtre"] }), (0, jsx_runtime_1.jsx)(ContextMenu_1.ContextMenu.Divider, {}), (0, jsx_runtime_1.jsxs)(styles.InputContainer, { children: [(0, jsx_runtime_1.jsx)(Icons_1.MagnifierIcon, {}), (0, jsx_runtime_1.jsx)(forms_1.Input, { ref: textFilterInputRef, type: "text", name: "search", id: "search", placeholder: "Rechercher ...", value: textFilter, onChange: function (e) { return setTextFilter(e.target.value); } })] }), (0, jsx_runtime_1.jsx)(styles.CheckboxesContainer, { children: checkboxesComponent })] }));
139
219
  };
140
220
  exports.DataGridFilterMenu = DataGridFilterMenu;