@etsoo/materialui 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/lib/cjs/AddresSelector.d.ts +1 -1
  2. package/lib/cjs/AddresSelector.js +4 -3
  3. package/lib/cjs/AuditDisplay.d.ts +1 -1
  4. package/lib/cjs/AuditDisplay.js +8 -5
  5. package/lib/cjs/AutocompleteExtendedProps.d.ts +1 -1
  6. package/lib/cjs/BackButton.d.ts +1 -1
  7. package/lib/cjs/BackButton.js +4 -3
  8. package/lib/cjs/BridgeCloseButton.d.ts +2 -1
  9. package/lib/cjs/BridgeCloseButton.js +3 -2
  10. package/lib/cjs/ButtonLink.d.ts +1 -1
  11. package/lib/cjs/ButtonLink.js +7 -4
  12. package/lib/cjs/ButtonPopover.d.ts +1 -1
  13. package/lib/cjs/ButtonPopover.js +2 -2
  14. package/lib/cjs/ComboBox.js +6 -4
  15. package/lib/cjs/ComboBoxMultiple.js +4 -3
  16. package/lib/cjs/ComboBoxPro.d.ts +1 -1
  17. package/lib/cjs/ComboBoxPro.js +2 -2
  18. package/lib/cjs/CountdownButton.d.ts +1 -1
  19. package/lib/cjs/CountdownButton.js +4 -3
  20. package/lib/cjs/DataGridEx.js +15 -11
  21. package/lib/cjs/DataGridRenderers.js +2 -2
  22. package/lib/cjs/DataSteps.d.ts +1 -1
  23. package/lib/cjs/DataSteps.js +9 -6
  24. package/lib/cjs/DataTable.d.ts +1 -1
  25. package/lib/cjs/DataTable.js +2 -2
  26. package/lib/cjs/DialogButton.d.ts +2 -1
  27. package/lib/cjs/DialogButton.js +9 -3
  28. package/lib/cjs/DnDList.d.ts +2 -2
  29. package/lib/cjs/DnDList.js +4 -3
  30. package/lib/cjs/DraggablePaperComponent.d.ts +1 -1
  31. package/lib/cjs/DraggablePaperComponent.js +2 -2
  32. package/lib/cjs/EmailInput.d.ts +1 -1
  33. package/lib/cjs/EmailInput.js +7 -6
  34. package/lib/cjs/ErrorAlert.d.ts +1 -1
  35. package/lib/cjs/ErrorAlert.js +5 -2
  36. package/lib/cjs/FabBox.d.ts +2 -1
  37. package/lib/cjs/FabBox.js +6 -4
  38. package/lib/cjs/FieldSetEx.d.ts +1 -1
  39. package/lib/cjs/FieldSetEx.js +5 -3
  40. package/lib/cjs/FileUploadButton.d.ts +1 -1
  41. package/lib/cjs/FileUploadButton.js +5 -2
  42. package/lib/cjs/FlexBox.d.ts +1 -1
  43. package/lib/cjs/FlexBox.js +7 -4
  44. package/lib/cjs/GridDataFormat.js +3 -0
  45. package/lib/cjs/HiSelector.d.ts +2 -1
  46. package/lib/cjs/HiSelector.js +3 -2
  47. package/lib/cjs/HiSelectorTL.d.ts +2 -1
  48. package/lib/cjs/HiSelectorTL.js +3 -2
  49. package/lib/cjs/IconButtonLink.d.ts +1 -1
  50. package/lib/cjs/IconButtonLink.js +5 -2
  51. package/lib/cjs/InputField.d.ts +4 -4
  52. package/lib/cjs/InputField.js +2 -2
  53. package/lib/cjs/InputTipField.js +8 -5
  54. package/lib/cjs/IntInputField.d.ts +1 -1
  55. package/lib/cjs/IntInputField.js +8 -6
  56. package/lib/cjs/ItemList.js +10 -4
  57. package/lib/cjs/LineChart.js +2 -2
  58. package/lib/cjs/ListChooser.d.ts +2 -1
  59. package/lib/cjs/ListChooser.js +8 -4
  60. package/lib/cjs/ListItemRightIcon.d.ts +1 -1
  61. package/lib/cjs/ListItemRightIcon.js +6 -2
  62. package/lib/cjs/ListMoreDisplay.d.ts +1 -1
  63. package/lib/cjs/ListMoreDisplay.js +7 -3
  64. package/lib/cjs/LoadingButton.d.ts +2 -1
  65. package/lib/cjs/LoadingButton.js +4 -3
  66. package/lib/cjs/MUGlobal.d.ts +2 -1
  67. package/lib/cjs/MaskInput.d.ts +1 -1
  68. package/lib/cjs/MaskInput.js +2 -2
  69. package/lib/cjs/MenuButton.d.ts +2 -1
  70. package/lib/cjs/MenuButton.js +5 -3
  71. package/lib/cjs/MobileListItemRenderer.js +14 -5
  72. package/lib/cjs/MoreFab.d.ts +2 -1
  73. package/lib/cjs/MoreFab.js +10 -4
  74. package/lib/cjs/NotifierMU.js +45 -22
  75. package/lib/cjs/NotifierPopupProps.d.ts +1 -1
  76. package/lib/cjs/NumberInputField.js +15 -13
  77. package/lib/cjs/OptionGroup.d.ts +1 -1
  78. package/lib/cjs/OptionGroup.js +15 -7
  79. package/lib/cjs/OptionGroupFlag.d.ts +1 -1
  80. package/lib/cjs/OptionGroupFlag.js +12 -6
  81. package/lib/cjs/PercentCircularProgress.d.ts +2 -1
  82. package/lib/cjs/PercentCircularProgress.js +8 -3
  83. package/lib/cjs/PercentLinearProgress.d.ts +2 -1
  84. package/lib/cjs/PercentLinearProgress.js +7 -2
  85. package/lib/cjs/ProgressCount.js +7 -4
  86. package/lib/cjs/QuickList.d.ts +3 -1
  87. package/lib/cjs/QuickList.js +6 -2
  88. package/lib/cjs/ResponsibleContainer.d.ts +1 -1
  89. package/lib/cjs/ResponsibleContainer.js +8 -6
  90. package/lib/cjs/ResponsiveStyleValue.d.ts +1 -1
  91. package/lib/cjs/ScrollTopFab.js +5 -3
  92. package/lib/cjs/ScrollerListEx.js +2 -2
  93. package/lib/cjs/SearchBar.js +9 -5
  94. package/lib/cjs/SearchField.d.ts +1 -1
  95. package/lib/cjs/SearchField.js +2 -2
  96. package/lib/cjs/SelectEx.d.ts +1 -1
  97. package/lib/cjs/SelectEx.js +18 -9
  98. package/lib/cjs/ShowDataComparison.js +9 -2
  99. package/lib/cjs/Switch.d.ts +1 -1
  100. package/lib/cjs/Switch.js +2 -2
  101. package/lib/cjs/SwitchAnt.js +5 -4
  102. package/lib/cjs/SwitchField.d.ts +1 -1
  103. package/lib/cjs/SwitchField.js +6 -3
  104. package/lib/cjs/TabBox.d.ts +3 -1
  105. package/lib/cjs/TabBox.js +5 -3
  106. package/lib/cjs/TableEx.d.ts +1 -1
  107. package/lib/cjs/TableEx.js +20 -10
  108. package/lib/cjs/TagList.d.ts +1 -1
  109. package/lib/cjs/TagList.js +5 -3
  110. package/lib/cjs/TagListPro.d.ts +1 -1
  111. package/lib/cjs/TagListPro.js +5 -3
  112. package/lib/cjs/TextFieldEx.d.ts +4 -4
  113. package/lib/cjs/TextFieldEx.js +7 -4
  114. package/lib/cjs/Tiplist.js +2 -2
  115. package/lib/cjs/TiplistPro.d.ts +1 -1
  116. package/lib/cjs/TiplistPro.js +2 -2
  117. package/lib/cjs/TooltipClick.d.ts +1 -1
  118. package/lib/cjs/TooltipClick.js +3 -2
  119. package/lib/cjs/TwoFieldInput.js +4 -3
  120. package/lib/cjs/UserAvatar.js +5 -2
  121. package/lib/cjs/UserAvatarEditor.js +8 -3
  122. package/lib/cjs/ViewContainer.d.ts +5 -4
  123. package/lib/cjs/ViewContainer.js +6 -3
  124. package/lib/cjs/custom/CustomFieldUtils.d.ts +1 -1
  125. package/lib/cjs/custom/CustomFieldUtils.js +5 -4
  126. package/lib/cjs/custom/CustomFieldViewer.d.ts +3 -2
  127. package/lib/cjs/custom/CustomFieldViewer.js +7 -3
  128. package/lib/cjs/custom/CustomFieldWindow.d.ts +2 -2
  129. package/lib/cjs/custom/CustomFieldWindow.js +3 -2
  130. package/lib/cjs/custom/FieldAmountLabel.js +3 -2
  131. package/lib/cjs/custom/FieldCheckbox.js +2 -2
  132. package/lib/cjs/custom/FieldCombobox.js +2 -2
  133. package/lib/cjs/custom/FieldDateInput.js +2 -2
  134. package/lib/cjs/custom/FieldDivider.js +2 -2
  135. package/lib/cjs/custom/FieldInput.js +2 -2
  136. package/lib/cjs/custom/FieldJson.js +2 -2
  137. package/lib/cjs/custom/FieldNumberInput.js +2 -2
  138. package/lib/cjs/custom/FieldRadio.js +2 -2
  139. package/lib/cjs/custom/FieldSelect.js +2 -2
  140. package/lib/cjs/custom/FieldSwitch.js +2 -2
  141. package/lib/cjs/custom/FieldTexarea.js +2 -2
  142. package/lib/cjs/pages/CommonPage.d.ts +2 -1
  143. package/lib/cjs/pages/CommonPage.js +6 -4
  144. package/lib/cjs/pages/DataGridPage.js +3 -2
  145. package/lib/cjs/pages/DrawerHeader.d.ts +1 -1
  146. package/lib/cjs/pages/DrawerHeader.js +2 -2
  147. package/lib/cjs/pages/EditPage.js +4 -3
  148. package/lib/cjs/pages/FixedListPage.js +4 -3
  149. package/lib/cjs/pages/LeftDrawer.js +8 -3
  150. package/lib/cjs/pages/ListPage.js +3 -2
  151. package/lib/cjs/pages/TablePage.js +3 -2
  152. package/lib/cjs/pages/UserMenu.js +3 -2
  153. package/lib/cjs/pages/ViewPage.js +4 -3
  154. package/lib/cjs/texts/DateText.d.ts +1 -1
  155. package/lib/cjs/texts/DateText.js +5 -2
  156. package/lib/cjs/texts/MoneyText.js +5 -2
  157. package/lib/cjs/texts/NumberText.d.ts +1 -1
  158. package/lib/cjs/texts/NumberText.js +5 -2
  159. package/lib/cjs/useCurrentBreakpoint.d.ts +1 -1
  160. package/lib/cjs/useCurrentBreakpoint.js +11 -7
  161. package/lib/mjs/AddresSelector.d.ts +1 -1
  162. package/lib/mjs/AddresSelector.js +4 -3
  163. package/lib/mjs/AuditDisplay.d.ts +1 -1
  164. package/lib/mjs/AuditDisplay.js +4 -1
  165. package/lib/mjs/AutocompleteExtendedProps.d.ts +1 -1
  166. package/lib/mjs/BackButton.d.ts +1 -1
  167. package/lib/mjs/BackButton.js +2 -1
  168. package/lib/mjs/BridgeCloseButton.d.ts +2 -1
  169. package/lib/mjs/BridgeCloseButton.js +2 -1
  170. package/lib/mjs/ButtonLink.d.ts +1 -1
  171. package/lib/mjs/ButtonLink.js +2 -2
  172. package/lib/mjs/ButtonPopover.d.ts +1 -1
  173. package/lib/mjs/ButtonPopover.js +1 -1
  174. package/lib/mjs/ComboBox.js +4 -2
  175. package/lib/mjs/ComboBoxMultiple.js +2 -1
  176. package/lib/mjs/ComboBoxPro.d.ts +1 -1
  177. package/lib/mjs/ComboBoxPro.js +1 -1
  178. package/lib/mjs/CountdownButton.d.ts +1 -1
  179. package/lib/mjs/CountdownButton.js +2 -1
  180. package/lib/mjs/DataGridEx.js +5 -1
  181. package/lib/mjs/DataGridRenderers.js +1 -1
  182. package/lib/mjs/DataSteps.d.ts +1 -1
  183. package/lib/mjs/DataSteps.js +4 -1
  184. package/lib/mjs/DataTable.d.ts +1 -1
  185. package/lib/mjs/DataTable.js +1 -1
  186. package/lib/mjs/DialogButton.d.ts +2 -1
  187. package/lib/mjs/DialogButton.js +7 -1
  188. package/lib/mjs/DnDList.d.ts +2 -2
  189. package/lib/mjs/DnDList.js +2 -1
  190. package/lib/mjs/DraggablePaperComponent.d.ts +1 -1
  191. package/lib/mjs/DraggablePaperComponent.js +1 -1
  192. package/lib/mjs/EmailInput.d.ts +1 -1
  193. package/lib/mjs/EmailInput.js +4 -6
  194. package/lib/mjs/ErrorAlert.d.ts +1 -1
  195. package/lib/mjs/ErrorAlert.js +1 -1
  196. package/lib/mjs/FabBox.d.ts +2 -1
  197. package/lib/mjs/FabBox.js +3 -1
  198. package/lib/mjs/FieldSetEx.d.ts +1 -1
  199. package/lib/mjs/FieldSetEx.js +3 -1
  200. package/lib/mjs/FileUploadButton.d.ts +1 -1
  201. package/lib/mjs/FileUploadButton.js +1 -1
  202. package/lib/mjs/FlexBox.d.ts +1 -1
  203. package/lib/mjs/FlexBox.js +1 -1
  204. package/lib/mjs/GridDataFormat.js +3 -0
  205. package/lib/mjs/HiSelector.d.ts +2 -1
  206. package/lib/mjs/HiSelector.js +3 -2
  207. package/lib/mjs/HiSelectorTL.d.ts +2 -1
  208. package/lib/mjs/HiSelectorTL.js +3 -2
  209. package/lib/mjs/IconButtonLink.d.ts +1 -1
  210. package/lib/mjs/IconButtonLink.js +1 -1
  211. package/lib/mjs/InputField.d.ts +1 -1
  212. package/lib/mjs/InputField.js +1 -1
  213. package/lib/mjs/InputTipField.js +4 -1
  214. package/lib/mjs/IntInputField.d.ts +1 -1
  215. package/lib/mjs/IntInputField.js +3 -1
  216. package/lib/mjs/ItemList.js +7 -1
  217. package/lib/mjs/LineChart.js +1 -1
  218. package/lib/mjs/ListChooser.d.ts +2 -1
  219. package/lib/mjs/ListChooser.js +6 -2
  220. package/lib/mjs/ListItemRightIcon.d.ts +1 -1
  221. package/lib/mjs/ListItemRightIcon.js +2 -1
  222. package/lib/mjs/ListMoreDisplay.d.ts +1 -1
  223. package/lib/mjs/ListMoreDisplay.js +5 -1
  224. package/lib/mjs/LoadingButton.d.ts +2 -1
  225. package/lib/mjs/LoadingButton.js +2 -1
  226. package/lib/mjs/MUGlobal.d.ts +2 -1
  227. package/lib/mjs/MaskInput.d.ts +1 -1
  228. package/lib/mjs/MaskInput.js +1 -1
  229. package/lib/mjs/MenuButton.d.ts +2 -1
  230. package/lib/mjs/MenuButton.js +3 -1
  231. package/lib/mjs/MobileListItemRenderer.js +8 -2
  232. package/lib/mjs/MoreFab.d.ts +2 -1
  233. package/lib/mjs/MoreFab.js +7 -1
  234. package/lib/mjs/NotifierMU.js +32 -9
  235. package/lib/mjs/NotifierPopupProps.d.ts +1 -1
  236. package/lib/mjs/NumberInputField.js +15 -13
  237. package/lib/mjs/OptionGroup.d.ts +1 -1
  238. package/lib/mjs/OptionGroup.js +9 -1
  239. package/lib/mjs/OptionGroupFlag.d.ts +1 -1
  240. package/lib/mjs/OptionGroupFlag.js +7 -1
  241. package/lib/mjs/PercentCircularProgress.d.ts +2 -1
  242. package/lib/mjs/PercentCircularProgress.js +3 -1
  243. package/lib/mjs/PercentLinearProgress.d.ts +2 -1
  244. package/lib/mjs/PercentLinearProgress.js +3 -1
  245. package/lib/mjs/ProgressCount.js +4 -1
  246. package/lib/mjs/QuickList.d.ts +3 -1
  247. package/lib/mjs/QuickList.js +5 -1
  248. package/lib/mjs/ResponsibleContainer.d.ts +1 -1
  249. package/lib/mjs/ResponsibleContainer.js +3 -1
  250. package/lib/mjs/ResponsiveStyleValue.d.ts +1 -1
  251. package/lib/mjs/ScrollTopFab.js +3 -1
  252. package/lib/mjs/ScrollerListEx.js +1 -1
  253. package/lib/mjs/SearchBar.js +5 -1
  254. package/lib/mjs/SearchField.d.ts +1 -1
  255. package/lib/mjs/SearchField.js +1 -1
  256. package/lib/mjs/SelectEx.d.ts +1 -1
  257. package/lib/mjs/SelectEx.js +11 -2
  258. package/lib/mjs/ShowDataComparison.js +5 -1
  259. package/lib/mjs/Switch.d.ts +1 -1
  260. package/lib/mjs/Switch.js +1 -1
  261. package/lib/mjs/SwitchAnt.js +3 -2
  262. package/lib/mjs/SwitchField.d.ts +1 -1
  263. package/lib/mjs/SwitchField.js +4 -1
  264. package/lib/mjs/TabBox.d.ts +3 -1
  265. package/lib/mjs/TabBox.js +3 -1
  266. package/lib/mjs/TableEx.d.ts +1 -1
  267. package/lib/mjs/TableEx.js +11 -1
  268. package/lib/mjs/TagList.d.ts +1 -1
  269. package/lib/mjs/TagList.js +3 -1
  270. package/lib/mjs/TagListPro.d.ts +1 -1
  271. package/lib/mjs/TagListPro.js +3 -1
  272. package/lib/mjs/TextFieldEx.d.ts +1 -1
  273. package/lib/mjs/TextFieldEx.js +6 -3
  274. package/lib/mjs/Tiplist.js +1 -1
  275. package/lib/mjs/TiplistPro.d.ts +1 -1
  276. package/lib/mjs/TiplistPro.js +1 -1
  277. package/lib/mjs/TooltipClick.d.ts +1 -1
  278. package/lib/mjs/TooltipClick.js +2 -1
  279. package/lib/mjs/TwoFieldInput.js +2 -1
  280. package/lib/mjs/UserAvatar.js +1 -1
  281. package/lib/mjs/UserAvatarEditor.js +6 -1
  282. package/lib/mjs/ViewContainer.d.ts +5 -4
  283. package/lib/mjs/ViewContainer.js +6 -3
  284. package/lib/mjs/custom/CustomFieldUtils.d.ts +1 -1
  285. package/lib/mjs/custom/CustomFieldUtils.js +4 -3
  286. package/lib/mjs/custom/CustomFieldViewer.d.ts +3 -2
  287. package/lib/mjs/custom/CustomFieldViewer.js +4 -3
  288. package/lib/mjs/custom/CustomFieldWindow.d.ts +2 -2
  289. package/lib/mjs/custom/CustomFieldWindow.js +3 -2
  290. package/lib/mjs/custom/FieldAmountLabel.js +2 -1
  291. package/lib/mjs/custom/FieldCheckbox.js +1 -1
  292. package/lib/mjs/custom/FieldCombobox.js +1 -1
  293. package/lib/mjs/custom/FieldDateInput.js +1 -1
  294. package/lib/mjs/custom/FieldDivider.js +1 -1
  295. package/lib/mjs/custom/FieldInput.js +1 -1
  296. package/lib/mjs/custom/FieldJson.js +1 -1
  297. package/lib/mjs/custom/FieldNumberInput.js +1 -1
  298. package/lib/mjs/custom/FieldRadio.js +1 -1
  299. package/lib/mjs/custom/FieldSelect.js +1 -1
  300. package/lib/mjs/custom/FieldSwitch.js +1 -1
  301. package/lib/mjs/custom/FieldTexarea.js +1 -1
  302. package/lib/mjs/pages/CommonPage.d.ts +2 -1
  303. package/lib/mjs/pages/CommonPage.js +3 -1
  304. package/lib/mjs/pages/DataGridPage.js +2 -1
  305. package/lib/mjs/pages/DrawerHeader.js +1 -1
  306. package/lib/mjs/pages/EditPage.js +3 -2
  307. package/lib/mjs/pages/FixedListPage.js +2 -1
  308. package/lib/mjs/pages/LeftDrawer.js +6 -1
  309. package/lib/mjs/pages/ListPage.js +2 -1
  310. package/lib/mjs/pages/TablePage.js +2 -1
  311. package/lib/mjs/pages/UserMenu.js +2 -1
  312. package/lib/mjs/pages/ViewPage.js +2 -1
  313. package/lib/mjs/texts/DateText.d.ts +1 -1
  314. package/lib/mjs/texts/DateText.js +1 -1
  315. package/lib/mjs/texts/MoneyText.js +1 -1
  316. package/lib/mjs/texts/NumberText.d.ts +1 -1
  317. package/lib/mjs/texts/NumberText.js +1 -1
  318. package/lib/mjs/useCurrentBreakpoint.d.ts +1 -1
  319. package/lib/mjs/useCurrentBreakpoint.js +2 -1
  320. package/package.json +9 -9
  321. package/src/AddresSelector.tsx +12 -11
  322. package/src/AuditDisplay.tsx +4 -1
  323. package/src/AutocompleteExtendedProps.ts +1 -1
  324. package/src/BackButton.tsx +2 -1
  325. package/src/BridgeCloseButton.tsx +2 -1
  326. package/src/ButtonLink.tsx +3 -3
  327. package/src/ButtonPopover.tsx +1 -1
  328. package/src/ComboBox.tsx +6 -7
  329. package/src/ComboBoxMultiple.tsx +4 -6
  330. package/src/ComboBoxPro.tsx +1 -1
  331. package/src/CountdownButton.tsx +2 -1
  332. package/src/CultureDataTable.tsx +1 -1
  333. package/src/DataGridEx.tsx +5 -8
  334. package/src/DataGridRenderers.tsx +1 -1
  335. package/src/DataSteps.tsx +4 -7
  336. package/src/DataTable.tsx +4 -7
  337. package/src/DialogButton.tsx +8 -11
  338. package/src/DnDList.tsx +9 -10
  339. package/src/DraggablePaperComponent.tsx +1 -1
  340. package/src/EmailInput.tsx +4 -8
  341. package/src/ErrorAlert.tsx +1 -1
  342. package/src/FabBox.tsx +3 -1
  343. package/src/FieldSetEx.tsx +3 -6
  344. package/src/FileUploadButton.tsx +1 -1
  345. package/src/FlexBox.tsx +1 -1
  346. package/src/GridDataFormat.tsx +3 -0
  347. package/src/HiSelector.tsx +13 -11
  348. package/src/HiSelectorTL.tsx +16 -17
  349. package/src/IconButtonLink.tsx +1 -2
  350. package/src/InputField.tsx +1 -1
  351. package/src/InputTipField.tsx +4 -1
  352. package/src/IntInputField.tsx +3 -1
  353. package/src/ItemList.tsx +7 -9
  354. package/src/LineChart.tsx +1 -1
  355. package/src/ListChooser.tsx +8 -10
  356. package/src/ListItemRightIcon.tsx +2 -1
  357. package/src/ListMoreDisplay.tsx +5 -8
  358. package/src/LoadingButton.tsx +3 -5
  359. package/src/MUGlobal.ts +2 -1
  360. package/src/MaskInput.tsx +1 -1
  361. package/src/MenuButton.tsx +3 -1
  362. package/src/MobileListItemRenderer.tsx +8 -3
  363. package/src/MoreFab.tsx +9 -11
  364. package/src/NotifierMU.tsx +34 -34
  365. package/src/NotifierPopupProps.ts +1 -1
  366. package/src/NumberInputField.tsx +21 -20
  367. package/src/OptionGroup.tsx +9 -12
  368. package/src/OptionGroupFlag.tsx +7 -10
  369. package/src/PercentCircularProgress.tsx +5 -8
  370. package/src/PercentLinearProgress.tsx +5 -8
  371. package/src/ProgressCount.tsx +4 -6
  372. package/src/QuickList.tsx +8 -10
  373. package/src/ResponsibleContainer.tsx +4 -1
  374. package/src/ResponsiveStyleValue.ts +1 -1
  375. package/src/ScrollTopFab.tsx +3 -1
  376. package/src/ScrollerListEx.tsx +1 -1
  377. package/src/SearchBar.tsx +5 -8
  378. package/src/SearchField.tsx +1 -1
  379. package/src/SearchOptionGroup.tsx +0 -1
  380. package/src/SelectEx.tsx +11 -15
  381. package/src/ShowDataComparison.tsx +5 -7
  382. package/src/Switch.tsx +3 -1
  383. package/src/SwitchAnt.tsx +3 -2
  384. package/src/SwitchField.tsx +4 -7
  385. package/src/TabBox.tsx +3 -1
  386. package/src/TableEx.tsx +11 -15
  387. package/src/TagList.tsx +3 -1
  388. package/src/TagListPro.tsx +3 -1
  389. package/src/TextFieldEx.tsx +7 -9
  390. package/src/Tiplist.tsx +3 -1
  391. package/src/TiplistPro.tsx +1 -1
  392. package/src/TooltipClick.tsx +2 -1
  393. package/src/TwoFieldInput.tsx +2 -1
  394. package/src/UserAvatar.tsx +1 -1
  395. package/src/UserAvatarEditor.tsx +6 -8
  396. package/src/ViewContainer.tsx +17 -14
  397. package/src/custom/CustomFieldUtils.tsx +6 -6
  398. package/src/custom/CustomFieldViewer.tsx +7 -6
  399. package/src/custom/CustomFieldWindow.tsx +5 -4
  400. package/src/custom/FieldAmountLabel.tsx +2 -1
  401. package/src/custom/FieldCheckbox.tsx +1 -1
  402. package/src/custom/FieldCombobox.tsx +1 -1
  403. package/src/custom/FieldDateInput.tsx +1 -1
  404. package/src/custom/FieldDivider.tsx +1 -1
  405. package/src/custom/FieldInput.tsx +1 -1
  406. package/src/custom/FieldJson.tsx +1 -1
  407. package/src/custom/FieldNumberInput.tsx +1 -1
  408. package/src/custom/FieldRadio.tsx +1 -1
  409. package/src/custom/FieldSelect.tsx +1 -1
  410. package/src/custom/FieldSwitch.tsx +1 -1
  411. package/src/custom/FieldTexarea.tsx +1 -1
  412. package/src/pages/CommonPage.tsx +3 -1
  413. package/src/pages/DataGridPage.tsx +2 -1
  414. package/src/pages/DrawerHeader.tsx +1 -1
  415. package/src/pages/EditPage.tsx +6 -10
  416. package/src/pages/FixedListPage.tsx +2 -1
  417. package/src/pages/LeftDrawer.tsx +6 -8
  418. package/src/pages/ListPage.tsx +2 -1
  419. package/src/pages/TablePage.tsx +2 -1
  420. package/src/pages/UserMenu.tsx +2 -1
  421. package/src/pages/ViewPage.tsx +2 -1
  422. package/src/texts/DateText.tsx +1 -2
  423. package/src/texts/MoneyText.tsx +1 -2
  424. package/src/texts/NumberText.tsx +1 -2
  425. package/src/useCurrentBreakpoint.ts +2 -1
@@ -6,8 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OptionGroup = OptionGroup;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const shared_1 = require("@etsoo/shared");
9
- const material_1 = require("@mui/material");
9
+ const Box_1 = __importDefault(require("@mui/material/Box"));
10
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
11
+ const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
12
+ const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
13
+ const FormGroup_1 = __importDefault(require("@mui/material/FormGroup"));
14
+ const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
15
+ const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
10
16
  const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
17
+ const Radio_1 = __importDefault(require("@mui/material/Radio"));
18
+ const RadioGroup_1 = __importDefault(require("@mui/material/RadioGroup"));
11
19
  const react_1 = __importDefault(require("react"));
12
20
  /**
13
21
  * OptionGroup
@@ -60,7 +68,7 @@ function OptionGroup(props) {
60
68
  // Value
61
69
  const ov = getOptionValue(option);
62
70
  // Control
63
- const control = multiple ? ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
71
+ const control = multiple ? ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
64
72
  if (firstOptionValue == null)
65
73
  return;
66
74
  const typeValue = shared_1.Utils.parseString(event.target.value, firstOptionValue);
@@ -76,16 +84,16 @@ function OptionGroup(props) {
76
84
  if (onValueChange)
77
85
  onValueChange(changedValues);
78
86
  setValues(changedValues);
79
- } })) : ((0, jsx_runtime_1.jsx)(material_1.Radio, { disabled: disabledIds?.includes(ov), size: itemSize, readOnly: readOnly }));
87
+ } })) : ((0, jsx_runtime_1.jsx)(Radio_1.default, { disabled: disabledIds?.includes(ov), size: itemSize, readOnly: readOnly }));
80
88
  // Label
81
89
  const label = getOptionLabel == null ? `${option[labelField]}` : getOptionLabel(option);
82
90
  // Value, convert to string
83
91
  // Will fail when type is number
84
92
  const value = getOptionValue(option);
85
- return ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: control, value: value, label: label }, value));
93
+ return ((0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, value: value, label: label }, value));
86
94
  });
87
95
  // Group
88
- const group = multiple ? ((0, jsx_runtime_1.jsx)(material_1.FormGroup, { row: row, children: list })) : ((0, jsx_runtime_1.jsx)(material_1.RadioGroup, { row: row, name: name, value: values[0] ?? "", onChange: (_event, value) => {
96
+ const group = multiple ? ((0, jsx_runtime_1.jsx)(FormGroup_1.default, { row: row, children: list })) : ((0, jsx_runtime_1.jsx)(RadioGroup_1.default, { row: row, name: name, value: values[0] ?? "", onChange: (_event, value) => {
89
97
  if (firstOptionValue == null)
90
98
  return;
91
99
  const typeValue = shared_1.Utils.parseString(value, firstOptionValue);
@@ -94,7 +102,7 @@ function OptionGroup(props) {
94
102
  setValues([typeValue]);
95
103
  }, children: list }));
96
104
  // Layout
97
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
105
+ return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
98
106
  cursor: "default",
99
107
  display: "flex",
100
108
  gap: 1,
@@ -104,5 +112,5 @@ function OptionGroup(props) {
104
112
  "& input": {
105
113
  display: "none"
106
114
  }
107
- } })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(material_1.FormHelperText, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
115
+ } })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
108
116
  }
@@ -1,5 +1,5 @@
1
1
  import { DataTypes, IdDefaultType, LabelDefaultType, ListType } from "@etsoo/shared";
2
- import { FormControlProps } from "@mui/material";
2
+ import { FormControlProps } from "@mui/material/FormControl";
3
3
  import React from "react";
4
4
  /**
5
5
  * OptionGroupFlag methods ref
@@ -6,7 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OptionGroupFlag = OptionGroupFlag;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const shared_1 = require("@etsoo/shared");
9
- const material_1 = require("@mui/material");
9
+ const Box_1 = __importDefault(require("@mui/material/Box"));
10
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
11
+ const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
12
+ const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
13
+ const FormGroup_1 = __importDefault(require("@mui/material/FormGroup"));
14
+ const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
15
+ const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
10
16
  const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
11
17
  const react_1 = __importDefault(require("react"));
12
18
  /**
@@ -56,7 +62,7 @@ function OptionGroupFlag(props) {
56
62
  if (ov == null)
57
63
  return;
58
64
  // Control
59
- const control = ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
65
+ const control = ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
60
66
  if (firstOptionValue == null)
61
67
  return;
62
68
  const typeValue = shared_1.Utils.parseString(event.target.value, firstOptionValue);
@@ -73,12 +79,12 @@ function OptionGroupFlag(props) {
73
79
  } }));
74
80
  // Label
75
81
  const label = getOptionLabel == null ? `${option[labelField]}` : getOptionLabel(option);
76
- return ((0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: control, value: ov, label: label }, ov));
82
+ return ((0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, value: ov, label: label }, ov));
77
83
  });
78
84
  // Group
79
- const group = (0, jsx_runtime_1.jsx)(material_1.FormGroup, { row: row, children: list });
85
+ const group = (0, jsx_runtime_1.jsx)(FormGroup_1.default, { row: row, children: list });
80
86
  // Layout
81
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { fullWidth: fullWidth, sx: sx, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(material_1.InputLabel, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
87
+ return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, sx: sx, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
82
88
  cursor: "default",
83
89
  display: "flex",
84
90
  gap: 1,
@@ -88,5 +94,5 @@ function OptionGroupFlag(props) {
88
94
  "& input": {
89
95
  display: "none"
90
96
  }
91
- } })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(material_1.FormHelperText, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
97
+ } })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
92
98
  }
@@ -1,4 +1,5 @@
1
- import { CircularProgressProps, TypographyProps } from "@mui/material";
1
+ import { CircularProgressProps } from "@mui/material/CircularProgress";
2
+ import { TypographyProps } from "@mui/material/Typography";
2
3
  export type PercentCircularProgressProps = CircularProgressProps & {
3
4
  value: number;
4
5
  valueUnit?: string;
@@ -1,13 +1,18 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.PercentCircularProgress = PercentCircularProgress;
4
7
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
8
+ const Box_1 = __importDefault(require("@mui/material/Box"));
9
+ const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
10
+ const Typography_1 = __importDefault(require("@mui/material/Typography"));
6
11
  function PercentCircularProgress(props) {
7
12
  // Destruct
8
13
  const { textProps, valueUnit = "%", ...rest } = props;
9
14
  // Component
10
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { variant: "determinate", ...rest }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
15
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(CircularProgress_1.default, { variant: "determinate", ...rest }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
11
16
  top: 0,
12
17
  left: 0,
13
18
  bottom: 0,
@@ -16,5 +21,5 @@ function PercentCircularProgress(props) {
16
21
  display: "flex",
17
22
  alignItems: "center",
18
23
  justifyContent: "center"
19
- }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", component: "div", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
24
+ }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", component: "div", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
20
25
  }
@@ -1,4 +1,5 @@
1
- import { LinearProgressProps, TypographyProps } from "@mui/material";
1
+ import { LinearProgressProps } from "@mui/material/LinearProgress";
2
+ import { TypographyProps } from "@mui/material/Typography";
2
3
  export type PercentLinearProgressProps = LinearProgressProps & {
3
4
  value: number;
4
5
  valueUnit?: string;
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.PercentLinearProgress = PercentLinearProgress;
4
7
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
8
+ const Box_1 = __importDefault(require("@mui/material/Box"));
9
+ const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
10
+ const Typography_1 = __importDefault(require("@mui/material/Typography"));
6
11
  function PercentLinearProgress(props) {
7
12
  // Destruct
8
13
  const { textProps, valueUnit = "%", ...rest } = props;
9
14
  // Component
10
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", flexGrow: 2 }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(material_1.LinearProgress, { variant: "determinate", ...rest }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minWidth: 35 }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
15
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex", alignItems: "center", flexGrow: 2 }, children: [(0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { variant: "determinate", ...rest }) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { minWidth: 35 }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
11
16
  }
@@ -5,7 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ProgressCount = ProgressCount;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
8
+ const Box_1 = __importDefault(require("@mui/material/Box"));
9
+ const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
10
+ const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
11
+ const Typography_1 = __importDefault(require("@mui/material/Typography"));
9
12
  const react_1 = __importDefault(require("react"));
10
13
  /**
11
14
  * Progress count
@@ -65,8 +68,8 @@ function ProgressCount(props) {
65
68
  };
66
69
  }, []);
67
70
  if (linear)
68
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { display: "flex", alignItems: "center", width: "100%" }, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(material_1.LinearProgress, { variant: variant, value: progressValue }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minWidth }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
69
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, { variant: variant, value: progressValue }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
71
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex", alignItems: "center", width: "100%" }, children: [(0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { variant: variant, value: progressValue }) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { minWidth }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "body2", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
72
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(CircularProgress_1.default, { variant: variant, value: progressValue }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
70
73
  top: 0,
71
74
  left: 0,
72
75
  bottom: 0,
@@ -75,5 +78,5 @@ function ProgressCount(props) {
75
78
  display: "flex",
76
79
  alignItems: "center",
77
80
  justifyContent: "center"
78
- }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", component: "div", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
81
+ }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", component: "div", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
79
82
  }
@@ -1,7 +1,9 @@
1
1
  import { ListType2 } from "@etsoo/shared";
2
- import { ListItemButtonProps, ListItemProps, StackProps } from "@mui/material";
3
2
  import React from "react";
4
3
  import { InputFieldProps } from "./InputField";
4
+ import { StackProps } from "@mui/material/Stack";
5
+ import { ListItemButtonProps } from "@mui/material/ListItemButton";
6
+ import { ListItemProps } from "@mui/material/ListItem";
5
7
  /**
6
8
  * Quick list props
7
9
  */
@@ -6,11 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.QuickList = QuickList;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const shared_1 = require("@etsoo/shared");
9
- const material_1 = require("@mui/material");
10
9
  const react_1 = __importDefault(require("react"));
11
10
  const InputField_1 = require("./InputField");
12
11
  const FlexBox_1 = require("./FlexBox");
13
12
  const ReactApp_1 = require("./app/ReactApp");
13
+ const ListItemButton_1 = __importDefault(require("@mui/material/ListItemButton"));
14
+ const ListItem_1 = __importDefault(require("@mui/material/ListItem"));
15
+ const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
16
+ const Typography_1 = __importDefault(require("@mui/material/Typography"));
17
+ const List_1 = __importDefault(require("@mui/material/List"));
14
18
  /**
15
19
  * Quick list
16
20
  * @param props Props
@@ -41,7 +45,7 @@ function QuickList(props) {
41
45
  event.preventDefault();
42
46
  event.stopPropagation();
43
47
  loadDataLocal(event.target.value);
44
- }, fullWidth: true, ...inputProps }), loading ? ((0, jsx_runtime_1.jsx)(material_1.LinearProgress, {})) : items.length === 0 ? ((0, jsx_runtime_1.jsx)(material_1.Typography, { textAlign: "center", children: noMatchesLabel })) : ((0, jsx_runtime_1.jsx)(material_1.List, { children: items.map((item) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { disablePadding: true, ...itemProps, children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, { onClick: (event) => {
48
+ }, fullWidth: true, ...inputProps }), loading ? ((0, jsx_runtime_1.jsx)(LinearProgress_1.default, {})) : items.length === 0 ? ((0, jsx_runtime_1.jsx)(Typography_1.default, { textAlign: "center", children: noMatchesLabel })) : ((0, jsx_runtime_1.jsx)(List_1.default, { children: items.map((item) => ((0, jsx_runtime_1.jsx)(ListItem_1.default, { disablePadding: true, ...itemProps, children: (0, jsx_runtime_1.jsx)(ListItemButton_1.default, { onClick: (event) => {
45
49
  if (onClick)
46
50
  onClick(event);
47
51
  if (!event.defaultPrevented && onItemClick)
@@ -1,9 +1,9 @@
1
- import { SxProps, Theme } from "@mui/material";
2
1
  import React from "react";
3
2
  import { ListChildComponentProps } from "react-window";
4
3
  import { GridColumn, GridJsonData, GridMethodRef, GridTemplateType } from "@etsoo/react";
5
4
  import { DataGridExProps } from "./DataGridEx";
6
5
  import { ScrollerListExInnerItemRendererProps, ScrollerListExItemSize } from "./ScrollerListEx";
6
+ import { SxProps, Theme } from "@mui/material/styles";
7
7
  /**
8
8
  * ResponsibleContainer props
9
9
  */
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ResponsibleContainer = ResponsibleContainer;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const react_1 = __importDefault(require("react"));
10
9
  const react_2 = require("@etsoo/react");
11
10
  const DataGridEx_1 = require("./DataGridEx");
@@ -15,6 +14,9 @@ const ScrollerListEx_1 = require("./ScrollerListEx");
15
14
  const SearchBar_1 = require("./SearchBar");
16
15
  const Labels_1 = require("./app/Labels");
17
16
  const GridUtils_1 = require("./GridUtils");
17
+ const useMediaQuery_1 = __importDefault(require("@mui/material/useMediaQuery"));
18
+ const Box_1 = __importDefault(require("@mui/material/Box"));
19
+ const Stack_1 = __importDefault(require("@mui/material/Stack"));
18
20
  function defaultContainerBoxSx(paddings, hasField, _dataGrid) {
19
21
  const half = typeof paddings == "number" ? paddings / 2 : MUGlobal_1.MUGlobal.half(paddings);
20
22
  return {
@@ -42,7 +44,7 @@ function ResponsibleContainer(props) {
42
44
  state.ref = ref;
43
45
  });
44
46
  // Screen size detection
45
- const showDataGrid = (0, material_1.useMediaQuery)("(min-width:600px)");
47
+ const showDataGrid = (0, useMediaQuery_1.default)("(min-width:600px)");
46
48
  // Update mounted state
47
49
  react_1.default.useEffect(() => {
48
50
  return () => {
@@ -150,7 +152,7 @@ function ResponsibleContainer(props) {
150
152
  if (showDataGrid) {
151
153
  // Delete
152
154
  delete rest.itemRenderer;
153
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: "DataGridBox", children: (0, jsx_runtime_1.jsx)(DataGridEx_1.DataGridEx, { autoLoad: !hasFields, height: heightLocal, width: rect.width, loadData: localLoadData, mRef: mRefs, onDoubleClick: (_, data) => quickAction && quickAction(data), outerRef: (element) => {
155
+ return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridBox", children: (0, jsx_runtime_1.jsx)(DataGridEx_1.DataGridEx, { autoLoad: !hasFields, height: heightLocal, width: rect.width, loadData: localLoadData, mRef: mRefs, onDoubleClick: (_, data) => quickAction && quickAction(data), outerRef: (element) => {
154
156
  if (element != null && elementReady)
155
157
  elementReady(element, true);
156
158
  }, onScroll: onGridScroll, columns: columns, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, ...rest }) }));
@@ -164,7 +166,7 @@ function ResponsibleContainer(props) {
164
166
  delete rest.hideFooter;
165
167
  delete rest.hoverColor;
166
168
  delete rest.selectable;
167
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: "ListBox", sx: { height: heightLocal }, children: (0, jsx_runtime_1.jsx)(ScrollerListEx_1.ScrollerListEx, { autoLoad: !hasFields, height: heightLocal, loadData: localLoadData, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, mRef: mRefs, onClick: (event, data) => quickAction && react_2.ReactUtils.isSafeClick(event) && quickAction(data), oRef: (element) => {
169
+ return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "ListBox", sx: { height: heightLocal }, children: (0, jsx_runtime_1.jsx)(ScrollerListEx_1.ScrollerListEx, { autoLoad: !hasFields, height: heightLocal, loadData: localLoadData, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, mRef: mRefs, onClick: (event, data) => quickAction && react_2.ReactUtils.isSafeClick(event) && quickAction(data), oRef: (element) => {
168
170
  if (element != null && elementReady)
169
171
  elementReady(element, false);
170
172
  }, onScroll: onListScroll, ...rest }) }));
@@ -185,9 +187,9 @@ function ResponsibleContainer(props) {
185
187
  ? ".DataGridEx-Body"
186
188
  : ".ScrollerListEx-Body";
187
189
  // Layout
188
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: containerBoxSx == null
190
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: containerBoxSx == null
189
191
  ? undefined
190
- : containerBoxSx(paddings, hasFields, showDataGrid), children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, { ref: dimensions[0][0], className: "SearchBox", sx: {
192
+ : containerBoxSx(paddings, hasFields, showDataGrid), children: [(0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, { ref: dimensions[0][0], className: "SearchBox", sx: {
191
193
  height: hasFields ? searchBarHeight : 0
192
194
  }, marginBottom: hasFields ? `${searchBarBottom}px!important` : undefined, children: searchBar }), list] }), pullToRefresh && pullContainer && list != null && ((0, jsx_runtime_1.jsx)(PullToRefreshUI_1.PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: () => state.ref?.reset(), shouldPullToRefresh: () => {
193
195
  const container = document.querySelector(pullContainer);
@@ -1,4 +1,4 @@
1
- import { Breakpoint } from "@mui/material";
1
+ import { Breakpoint } from "@mui/material/styles";
2
2
  /**
3
3
  * Responsive style value
4
4
  */
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ScrollTopFab = ScrollTopFab;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = __importDefault(require("react"));
9
- const material_1 = require("@mui/material");
10
9
  const VerticalAlignTop_1 = __importDefault(require("@mui/icons-material/VerticalAlignTop"));
10
+ const useScrollTrigger_1 = __importDefault(require("@mui/material/useScrollTrigger"));
11
+ const Zoom_1 = __importDefault(require("@mui/material/Zoom"));
12
+ const Fab_1 = __importDefault(require("@mui/material/Fab"));
11
13
  /**
12
14
  * Scroll to top fab
13
15
  * @returns Component
@@ -16,7 +18,7 @@ function ScrollTopFab(props) {
16
18
  // Destruct
17
19
  const { color, size, target, title } = props;
18
20
  // Scroll trigger
19
- const trigger = (0, material_1.useScrollTrigger)({
21
+ const trigger = (0, useScrollTrigger_1.default)({
20
22
  target,
21
23
  disableHysteresis: true,
22
24
  threshold: 120
@@ -26,5 +28,5 @@ function ScrollTopFab(props) {
26
28
  const handleClick = () => {
27
29
  target.scrollTo({ top: 0 });
28
30
  };
29
- return trigger ? ((0, jsx_runtime_1.jsx)(material_1.Zoom, { in: trigger, children: (0, jsx_runtime_1.jsx)(material_1.Fab, { color: color, size: size, title: title, onClick: handleClick, children: (0, jsx_runtime_1.jsx)(VerticalAlignTop_1.default, {}) }) })) : ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, {}));
31
+ return trigger ? ((0, jsx_runtime_1.jsx)(Zoom_1.default, { in: trigger, children: (0, jsx_runtime_1.jsx)(Fab_1.default, { color: color, size: size, title: title, onClick: handleClick, children: (0, jsx_runtime_1.jsx)(VerticalAlignTop_1.default, {}) }) })) : ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, {}));
30
32
  }
@@ -8,9 +8,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const css_1 = require("@emotion/css");
9
9
  const react_1 = require("@etsoo/react");
10
10
  const shared_1 = require("@etsoo/shared");
11
- const material_1 = require("@mui/material");
12
11
  const react_2 = __importDefault(require("react"));
13
12
  const MUGlobal_1 = require("./MUGlobal");
13
+ const styles_1 = require("@mui/material/styles");
14
14
  // Scroll bar size
15
15
  const scrollbarSize = 16;
16
16
  // Selected class name
@@ -132,7 +132,7 @@ function ScrollerListEx(props) {
132
132
  });
133
133
  }, onClick, onDoubleClick, onSelectChange, selectedColor = "#edf4fb", ...rest } = props;
134
134
  // Theme
135
- const theme = (0, material_1.useTheme)();
135
+ const theme = (0, styles_1.useTheme)();
136
136
  // Cache calculation
137
137
  const itemSizeResult = react_2.default.useMemo(() => {
138
138
  if (typeof itemSize === "function")
@@ -5,12 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SearchBar = SearchBar;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const react_1 = __importDefault(require("react"));
10
9
  const MoreHoriz_1 = __importDefault(require("@mui/icons-material/MoreHoriz"));
11
10
  const shared_1 = require("@etsoo/shared");
12
11
  const react_2 = require("@etsoo/react");
13
12
  const Labels_1 = require("./app/Labels");
13
+ const Stack_1 = __importDefault(require("@mui/material/Stack"));
14
+ const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
15
+ const Button_1 = __importDefault(require("@mui/material/Button"));
16
+ const Drawer_1 = __importDefault(require("@mui/material/Drawer"));
17
+ const Toolbar_1 = __importDefault(require("@mui/material/Toolbar"));
14
18
  // Cached width attribute name
15
19
  const cachedWidthName = "data-cached-width";
16
20
  // Reset form
@@ -243,7 +247,7 @@ function SearchBar(props) {
243
247
  return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
244
248
  if (form)
245
249
  state.form = form;
246
- }, children: (0, jsx_runtime_1.jsxs)(material_1.Stack, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: width, overflow: "hidden", paddingTop: "6px", sx: {
250
+ }, children: (0, jsx_runtime_1.jsxs)(Stack_1.default, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: width, overflow: "hidden", paddingTop: "6px", sx: {
247
251
  "& > :not(style)": {
248
252
  flexBasis: "auto",
249
253
  flexGrow: 0,
@@ -258,15 +262,15 @@ function SearchBar(props) {
258
262
  display: "block",
259
263
  visibility: "visible"
260
264
  }
261
- }, children: [fields.map((item, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: item }, index))), (0, jsx_runtime_1.jsx)(material_1.IconButton, { title: labels.more, size: "medium", sx: { height: "40px" }, onClick: handleMore, children: (0, jsx_runtime_1.jsx)(MoreHoriz_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Button, { variant: "contained", size: "medium", ref: resetButtonRef, onClick: handleReset, children: labels.reset })] }) }), hasMoreItems && ((0, jsx_runtime_1.jsxs)(material_1.Drawer, { anchor: "right", sx: {
265
+ }, children: [fields.map((item, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: item }, index))), (0, jsx_runtime_1.jsx)(IconButton_1.default, { title: labels.more, size: "medium", sx: { height: "40px" }, onClick: handleMore, children: (0, jsx_runtime_1.jsx)(MoreHoriz_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", size: "medium", ref: resetButtonRef, onClick: handleReset, children: labels.reset })] }) }), hasMoreItems && ((0, jsx_runtime_1.jsxs)(Drawer_1.default, { anchor: "right", sx: {
262
266
  minWidth: "180px",
263
267
  paddingTop: typeof top === "number" ? `${top}px` : undefined
264
268
  }, ModalProps: {
265
269
  keepMounted: true
266
- }, open: open, onClose: () => updateOpen(false), children: [top === true && (0, jsx_runtime_1.jsx)(material_1.Toolbar, {}), (0, jsx_runtime_1.jsx)("form", { onChange: moreFormChange, ref: (form) => {
270
+ }, open: open, onClose: () => updateOpen(false), children: [top === true && (0, jsx_runtime_1.jsx)(Toolbar_1.default, {}), (0, jsx_runtime_1.jsx)("form", { onChange: moreFormChange, ref: (form) => {
267
271
  if (form)
268
272
  state.moreForm = form;
269
- }, children: (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "column", alignItems: "stretch", spacing: 2, padding: 2, sx: {
273
+ }, children: (0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "column", alignItems: "stretch", spacing: 2, padding: 2, sx: {
270
274
  "& > :not(style)": {
271
275
  minWidth: "100px"
272
276
  }
@@ -1,4 +1,4 @@
1
- import { TextFieldProps } from "@mui/material";
1
+ import { TextFieldProps } from "@mui/material/TextField";
2
2
  /**
3
3
  * Search field props
4
4
  */
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SearchField = SearchField;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("@etsoo/react");
9
- const material_1 = require("@mui/material");
10
9
  const react_2 = __importDefault(require("react"));
11
10
  const MUGlobal_1 = require("./MUGlobal");
11
+ const TextField_1 = __importDefault(require("@mui/material/TextField"));
12
12
  /**
13
13
  * Search field
14
14
  * @param props Props
@@ -52,5 +52,5 @@ function SearchField(props) {
52
52
  };
53
53
  }, []);
54
54
  // Layout
55
- return ((0, jsx_runtime_1.jsx)(material_1.TextField, { InputLabelProps: InputLabelProps, InputProps: InputProps, inputProps: inputProps, onChange: onChangeEx, size: size, variant: variant, ...rest }));
55
+ return ((0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: InputLabelProps, InputProps: InputProps, inputProps: inputProps, onChange: onChangeEx, size: size, variant: variant, ...rest }));
56
56
  }
@@ -1,6 +1,6 @@
1
- import { SelectProps, SelectVariants } from "@mui/material";
2
1
  import React from "react";
3
2
  import { DataTypes, IdDefaultType, LabelDefaultType, ListType } from "@etsoo/shared";
3
+ import { SelectProps, SelectVariants } from "@mui/material/Select";
4
4
  /**
5
5
  * Extended select component props
6
6
  */
@@ -5,13 +5,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SelectEx = SelectEx;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const material_1 = require("@mui/material");
9
8
  const react_1 = __importDefault(require("react"));
10
9
  const MUGlobal_1 = require("./MUGlobal");
11
10
  const ListItemRightIcon_1 = require("./ListItemRightIcon");
12
- const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
13
11
  const shared_1 = require("@etsoo/shared");
14
12
  const react_2 = require("@etsoo/react");
13
+ const Select_1 = __importDefault(require("@mui/material/Select"));
14
+ const Stack_1 = __importDefault(require("@mui/material/Stack"));
15
+ const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
16
+ const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
17
+ const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
18
+ const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
19
+ const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
20
+ const ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
21
+ const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
22
+ const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
23
+ const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
15
24
  /**
16
25
  * Extended select component
17
26
  * @param props Props
@@ -131,11 +140,11 @@ function SelectEx(props) {
131
140
  };
132
141
  }, [multiple]);
133
142
  // Layout
134
- return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { size: search ? MUGlobal_1.MUGlobal.searchFieldSize : MUGlobal_1.MUGlobal.inputFieldSize, fullWidth: fullWidth, error: error, children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, { id: labelId, variant: variant, shrink: search ? MUGlobal_1.MUGlobal.searchFieldShrink : MUGlobal_1.MUGlobal.inputFieldShrink, required: required, children: label }), (0, jsx_runtime_1.jsx)(material_1.Select, { ref: divRef, value: multiple
143
+ return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { size: search ? MUGlobal_1.MUGlobal.searchFieldSize : MUGlobal_1.MUGlobal.inputFieldSize, fullWidth: fullWidth, error: error, children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { id: labelId, variant: variant, shrink: search ? MUGlobal_1.MUGlobal.searchFieldShrink : MUGlobal_1.MUGlobal.inputFieldShrink, required: required, children: label }), (0, jsx_runtime_1.jsx)(Select_1.default, { ref: divRef, value: multiple
135
144
  ? valueState
136
145
  : localOptions.some((o) => o[idField] === valueState)
137
146
  ? valueState
138
- : "", input: (0, jsx_runtime_1.jsx)(material_1.OutlinedInput, { notched: true, label: label, required: required, inputProps: { "data-reset": inputReset } }), labelId: labelId, name: name, multiple: multiple, onChange: (event, child) => {
147
+ : "", input: (0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { notched: true, label: label, required: required, inputProps: { "data-reset": inputReset } }), labelId: labelId, name: name, multiple: multiple, onChange: (event, child) => {
139
148
  if (onChange) {
140
149
  onChange(event, child);
141
150
  // event.preventDefault() will block executing
@@ -167,14 +176,14 @@ function SelectEx(props) {
167
176
  // Option label
168
177
  const label = getLabel(option);
169
178
  // Option
170
- return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { value: id, onClick: (event) => {
179
+ return ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { value: id, onClick: (event) => {
171
180
  if (onItemClick) {
172
181
  onItemClick(event, option);
173
182
  }
174
- }, style: itemStyle == null ? undefined : itemStyle(option), children: [multiple && ((0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: Array.isArray(valueState)
183
+ }, style: itemStyle == null ? undefined : itemStyle(option), children: [multiple && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { checked: Array.isArray(valueState)
175
184
  ? valueState.includes(id)
176
- : valueState === id })), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: label }), itemIconRenderer && ((0, jsx_runtime_1.jsx)(ListItemRightIcon_1.ListItemRightIcon, { children: itemIconRenderer(option[idField]) }))] }, id));
177
- }) }), helperText != null && (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: helperText })] }), refresh != null &&
185
+ : valueState === id })), (0, jsx_runtime_1.jsx)(ListItemText_1.default, { primary: label }), itemIconRenderer && ((0, jsx_runtime_1.jsx)(ListItemRightIcon_1.ListItemRightIcon, { children: itemIconRenderer(option[idField]) }))] }, id));
186
+ }) }), helperText != null && (0, jsx_runtime_1.jsx)(FormHelperText_1.default, { children: helperText })] }), refresh != null &&
178
187
  loadData != null &&
179
- (typeof refresh === "string" ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "small", title: refresh, onClick: refreshData, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) })) : (refresh))] }));
188
+ (typeof refresh === "string" ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", title: refresh, onClick: refreshData, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) })) : (refresh))] }));
180
189
  }
@@ -1,12 +1,19 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.ShowDataComparison = void 0;
4
7
  exports.IsAuditLineUpdateData = IsAuditLineUpdateData;
5
8
  const jsx_runtime_1 = require("react/jsx-runtime");
6
9
  const notificationbase_1 = require("@etsoo/notificationbase");
7
10
  const shared_1 = require("@etsoo/shared");
8
- const material_1 = require("@mui/material");
9
11
  const ReactApp_1 = require("./app/ReactApp");
12
+ const Table_1 = __importDefault(require("@mui/material/Table"));
13
+ const TableHead_1 = __importDefault(require("@mui/material/TableHead"));
14
+ const TableRow_1 = __importDefault(require("@mui/material/TableRow"));
15
+ const TableCell_1 = __importDefault(require("@mui/material/TableCell"));
16
+ const TableBody_1 = __importDefault(require("@mui/material/TableBody"));
10
17
  /**
11
18
  * Check obj is instance of AuditLineChangesDto
12
19
  * @param obj Input
@@ -54,7 +61,7 @@ const ShowDataComparison = (data, modelTitle, getLabel, equalCheck = true) => {
54
61
  }));
55
62
  if (equalCheck)
56
63
  rows = rows.filter((item) => !shared_1.Utils.equals(item.oldValue, item.newValue));
57
- const inputs = ((0, jsx_runtime_1.jsxs)(material_1.Table, { children: [(0, jsx_runtime_1.jsx)(material_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { width: "18%", children: field }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { width: "41%", align: "right", children: oldValue }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { width: "41%", align: "right", children: newValue })] }) }), (0, jsx_runtime_1.jsx)(material_1.TableBody, { children: rows.map((row) => ((0, jsx_runtime_1.jsxs)(material_1.TableRow, { children: [(0, jsx_runtime_1.jsx)(material_1.TableCell, { children: getLabel(row.field) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: formatValue(row.oldValue, app) }), (0, jsx_runtime_1.jsx)(material_1.TableCell, { align: "right", children: formatValue(row.newValue, app) })] }, row.field))) })] }));
64
+ const inputs = ((0, jsx_runtime_1.jsxs)(Table_1.default, { children: [(0, jsx_runtime_1.jsx)(TableHead_1.default, { children: (0, jsx_runtime_1.jsxs)(TableRow_1.default, { children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "18%", children: field }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "41%", align: "right", children: oldValue }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "41%", align: "right", children: newValue })] }) }), (0, jsx_runtime_1.jsx)(TableBody_1.default, { children: rows.map((row) => ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { children: getLabel(row.field) }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "right", children: formatValue(row.oldValue, app) }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "right", children: formatValue(row.newValue, app) })] }, row.field))) })] }));
58
65
  app.notifier.alert([undefined, modelTitle], undefined, notificationbase_1.NotificationMessageType.Info, { fullScreen: app.smDown, inputs });
59
66
  };
60
67
  exports.ShowDataComparison = ShowDataComparison;
@@ -1,4 +1,4 @@
1
- import { FormControlLabelProps } from "@mui/material";
1
+ import { FormControlLabelProps } from "@mui/material/FormControlLabel";
2
2
  /**
3
3
  * Switch props
4
4
  */
package/lib/cjs/Switch.js CHANGED
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Switch = Switch;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = __importDefault(require("react"));
9
- const material_1 = require("@mui/material");
10
9
  const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
11
10
  const Switch_1 = __importDefault(require("@mui/material/Switch"));
11
+ const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
12
12
  /**
13
13
  * Switch
14
14
  * @param props Props
@@ -36,5 +36,5 @@ function Switch(props) {
36
36
  setControlChecked(controlChecked);
37
37
  }, [controlChecked]);
38
38
  // Layout
39
- return (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: control, ...rest });
39
+ return (0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, ...rest });
40
40
  }