@veeqo/transfigure 0.0.1

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 (357) hide show
  1. package/README.md +54 -0
  2. package/dist/BusinessLogic/BusinessLogicManager.d.ts +6 -0
  3. package/dist/BusinessLogic/index.d.ts +4 -0
  4. package/dist/BusinessLogic/mocks.d.ts +10 -0
  5. package/dist/BusinessLogic/types.d.ts +18 -0
  6. package/dist/BusinessLogic/useBusinessLogic.d.ts +1 -0
  7. package/dist/api/createCustomView/createCustomView.d.ts +6 -0
  8. package/dist/api/createCustomView/index.d.ts +1 -0
  9. package/dist/api/deleteCustomView/deleteCustomView.d.ts +1 -0
  10. package/dist/api/deleteCustomView/index.d.ts +1 -0
  11. package/dist/api/index.d.ts +5 -0
  12. package/dist/api/patchCurrentUser/index.d.ts +1 -0
  13. package/dist/api/patchCurrentUser/patchCurrentUser.d.ts +1 -0
  14. package/dist/api/patchCustomView/index.d.ts +1 -0
  15. package/dist/api/patchCustomView/patchCustomView.d.ts +6 -0
  16. package/dist/api/types.d.ts +16 -0
  17. package/dist/axiosWrappers/axiosWrappers.d.ts +15 -0
  18. package/dist/axiosWrappers/axiosWrappers.test.d.ts +1 -0
  19. package/dist/axiosWrappers/constants.d.ts +10 -0
  20. package/dist/axiosWrappers/index.d.ts +1 -0
  21. package/dist/axiosWrappers/types.d.ts +6 -0
  22. package/dist/axiosWrappers/utils/filterErrorStack/filterErrorStack.d.ts +14 -0
  23. package/dist/axiosWrappers/utils/filterErrorStack/filterErrorStack.test.d.ts +1 -0
  24. package/dist/axiosWrappers/utils/filterErrorStack/index.d.ts +1 -0
  25. package/dist/axiosWrappers/utils/filteringUtils/filteringUtils.d.ts +3 -0
  26. package/dist/axiosWrappers/utils/filteringUtils/filteringUtils.test.d.ts +1 -0
  27. package/dist/axiosWrappers/utils/filteringUtils/index.d.ts +1 -0
  28. package/dist/axiosWrappers/utils/injectIntoError/index.d.ts +1 -0
  29. package/dist/axiosWrappers/utils/injectIntoError/injectIntoError.d.ts +18 -0
  30. package/dist/axiosWrappers/utils/injectIntoError/injectIntoError.test.d.ts +1 -0
  31. package/dist/axiosWrappers/utils/isError/index.d.ts +1 -0
  32. package/dist/axiosWrappers/utils/isError/isError.d.ts +4 -0
  33. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +17 -0
  34. package/dist/components/ErrorBoundary/index.d.ts +1 -0
  35. package/dist/components/Filters/ActiveFilters/ActiveFilterArrayTag/ActiveFilterArrayTag.d.ts +6 -0
  36. package/dist/components/Filters/ActiveFilters/ActiveFilterArrayTag/index.d.ts +1 -0
  37. package/dist/components/Filters/ActiveFilters/ActiveFilterDateRangeTag/ActiveFilterDateRangeTag.d.ts +6 -0
  38. package/dist/components/Filters/ActiveFilters/ActiveFilterDateRangeTag/index.d.ts +1 -0
  39. package/dist/components/Filters/ActiveFilters/ActiveFilterNumberRangeTag/ActiveFilterNumberRangeTag.d.ts +6 -0
  40. package/dist/components/Filters/ActiveFilters/ActiveFilterNumberRangeTag/index.d.ts +1 -0
  41. package/dist/components/Filters/ActiveFilters/ActiveFilterTag/ActiveFilterTag.d.ts +6 -0
  42. package/dist/components/Filters/ActiveFilters/ActiveFilterTag/index.d.ts +1 -0
  43. package/dist/components/Filters/ActiveFilters/ActiveFilters.d.ts +1 -0
  44. package/dist/components/Filters/ActiveFilters/index.d.ts +5 -0
  45. package/dist/components/Filters/AdaptiveHeightContainer/AdaptiveHeightContainer.d.ts +8 -0
  46. package/dist/components/Filters/AdaptiveHeightContainer/index.d.ts +1 -0
  47. package/dist/components/Filters/AdaptiveHeightContainer/styled.d.ts +3 -0
  48. package/dist/components/Filters/Fields/AsyncCheckboxFilter/AsyncCheckboxFilter.d.ts +6 -0
  49. package/dist/components/Filters/Fields/AsyncCheckboxFilter/index.d.ts +1 -0
  50. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/AsyncInlineCheckboxFilter.d.ts +8 -0
  51. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/index.d.ts +1 -0
  52. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/AsyncInlineRadioFilter.d.ts +8 -0
  53. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/index.d.ts +1 -0
  54. package/dist/components/Filters/Fields/AsyncRadioFilter/AsyncRadioFilter.d.ts +6 -0
  55. package/dist/components/Filters/Fields/AsyncRadioFilter/index.d.ts +1 -0
  56. package/dist/components/Filters/Fields/CheckboxFilter/CheckboxFilter.d.ts +6 -0
  57. package/dist/components/Filters/Fields/CheckboxFilter/index.d.ts +1 -0
  58. package/dist/components/Filters/Fields/DateRangeFilter/DateRangeFilter.d.ts +6 -0
  59. package/dist/components/Filters/Fields/DateRangeFilter/index.d.ts +1 -0
  60. package/dist/components/Filters/Fields/FilterArrayField/FilterArrayField.d.ts +8 -0
  61. package/dist/components/Filters/Fields/FilterArrayField/index.d.ts +1 -0
  62. package/dist/components/Filters/Fields/FilterField/FilterField.d.ts +8 -0
  63. package/dist/components/Filters/Fields/FilterField/index.d.ts +1 -0
  64. package/dist/components/Filters/Fields/FilterGroup/FilterGroup.d.ts +6 -0
  65. package/dist/components/Filters/Fields/FilterGroup/index.d.ts +1 -0
  66. package/dist/components/Filters/Fields/FilterNumberRangeFilter/FilterNumberRangeFilter.d.ts +9 -0
  67. package/dist/components/Filters/Fields/FilterNumberRangeFilter/index.d.ts +1 -0
  68. package/dist/components/Filters/Fields/MultipleFieldFilter/MultipleFieldFilter.d.ts +7 -0
  69. package/dist/components/Filters/Fields/MultipleFieldFilter/index.d.ts +1 -0
  70. package/dist/components/Filters/Fields/NumberRangeFilter/MuiSlider.d.ts +27 -0
  71. package/dist/components/Filters/Fields/NumberRangeFilter/NumberRangeFilter.d.ts +6 -0
  72. package/dist/components/Filters/Fields/NumberRangeFilter/index.d.ts +1 -0
  73. package/dist/components/Filters/Fields/RadioFilter/RadioFilter.d.ts +6 -0
  74. package/dist/components/Filters/Fields/RadioFilter/index.d.ts +1 -0
  75. package/dist/components/Filters/Fields/index.d.ts +13 -0
  76. package/dist/components/Filters/FiltersDropdown/FiltersDropdown.d.ts +2 -0
  77. package/dist/components/Filters/FiltersDropdown/index.d.ts +1 -0
  78. package/dist/components/Filters/FiltersList/FiltersList.d.ts +2 -0
  79. package/dist/components/Filters/FiltersList/index.d.ts +1 -0
  80. package/dist/components/Filters/index.d.ts +4 -0
  81. package/dist/components/SearchBar/SearchBar.d.ts +1 -0
  82. package/dist/components/SearchBar/index.d.ts +1 -0
  83. package/dist/components/Table/Table.d.ts +1 -0
  84. package/dist/components/ToastsManager/ToastsManager.d.ts +1 -0
  85. package/dist/components/ToastsManager/index.d.ts +1 -0
  86. package/dist/components/Views/CreateView/CreateView.d.ts +5 -0
  87. package/dist/components/Views/CreateView/index.d.ts +1 -0
  88. package/dist/components/Views/EditDropdown/EditDropdown.d.ts +7 -0
  89. package/dist/components/Views/EditDropdown/index.d.ts +1 -0
  90. package/dist/components/Views/OptionsDropdown/OptionsDropdown.d.ts +10 -0
  91. package/dist/components/Views/OptionsDropdown/index.d.ts +1 -0
  92. package/dist/components/Views/OptionsDropdown/styled.d.ts +17 -0
  93. package/dist/components/Views/PillNotifications/InfoPill.d.ts +1 -0
  94. package/dist/components/Views/PillNotifications/PillNotifications.d.ts +9 -0
  95. package/dist/components/Views/PillNotifications/index.d.ts +1 -0
  96. package/dist/components/Views/PillNotifications/styled.d.ts +33 -0
  97. package/dist/components/Views/SortableViews/LegacySortableViews.d.ts +3 -0
  98. package/dist/components/Views/SortableViews/SortableViews.d.ts +1 -0
  99. package/dist/components/Views/SortableViews/index.d.ts +1 -0
  100. package/dist/components/Views/SortableViews/styled.d.ts +8 -0
  101. package/dist/components/Views/UnsavedChanges/UnsavedChanges.d.ts +5 -0
  102. package/dist/components/Views/UnsavedChanges/index.d.ts +1 -0
  103. package/dist/components/Views/UnsavedChanges/styled.d.ts +33 -0
  104. package/dist/components/Views/ViewDropdowns/ViewDropdowns.d.ts +1 -0
  105. package/dist/components/Views/ViewDropdowns/index.d.ts +1 -0
  106. package/dist/components/Views/ViewList/ViewsList.d.ts +1 -0
  107. package/dist/components/Views/ViewList/index.d.ts +1 -0
  108. package/dist/components/Views/ViewList/styled.d.ts +2 -0
  109. package/dist/components/Views/ViewTab/Confirmation/Confirmation.d.ts +8 -0
  110. package/dist/components/Views/ViewTab/Confirmation/index.d.ts +1 -0
  111. package/dist/components/Views/ViewTab/ViewTab.d.ts +6 -0
  112. package/dist/components/Views/ViewTab/index.d.ts +1 -0
  113. package/dist/components/Views/constants.d.ts +10 -0
  114. package/dist/components/Views/index.d.ts +10 -0
  115. package/dist/constants/constants.d.ts +8 -0
  116. package/dist/constants/dateConstants.d.ts +17 -0
  117. package/dist/constants/index.d.ts +2 -0
  118. package/dist/context/ModalContext/ModalContext.d.ts +6 -0
  119. package/dist/context/ModalContext/hooks.d.ts +1 -0
  120. package/dist/context/ModalContext/index.d.ts +3 -0
  121. package/dist/context/ModalContext/mocks/mockUseModal.d.ts +6 -0
  122. package/dist/context/ModalContext/modalId.d.ts +3 -0
  123. package/dist/context/ModalContext/types.d.ts +7 -0
  124. package/dist/context/index.d.ts +1 -0
  125. package/dist/fetchers/constants.d.ts +12 -0
  126. package/dist/fetchers/fetchers.d.ts +12 -0
  127. package/dist/fetchers/index.d.ts +3 -0
  128. package/dist/fetchers/withCSRF.d.ts +2 -0
  129. package/dist/hooks/index.d.ts +9 -0
  130. package/dist/hooks/useCustomViews/index.d.ts +1 -0
  131. package/dist/hooks/useCustomViews/useCustomViews.d.ts +16 -0
  132. package/dist/hooks/useDropdownManager/index.d.ts +1 -0
  133. package/dist/hooks/useDropdownManager/useDropdownManager.d.ts +35 -0
  134. package/dist/hooks/useDuplicateActiveView/index.d.ts +1 -0
  135. package/dist/hooks/useDuplicateActiveView/useDuplicateActiveView.d.ts +3 -0
  136. package/dist/hooks/useFilterArrayLabel/index.d.ts +1 -0
  137. package/dist/hooks/useFilterArrayLabel/useFilterArrayLabel.d.ts +8 -0
  138. package/dist/hooks/useFilterLabel/index.d.ts +1 -0
  139. package/dist/hooks/useFilterLabel/useFilterLabel.d.ts +8 -0
  140. package/dist/hooks/usePersistUnsavedChanges/index.d.ts +1 -0
  141. package/dist/hooks/usePersistUnsavedChanges/usePersistUnsavedChanges.d.ts +18 -0
  142. package/dist/hooks/useStores/index.d.ts +1 -0
  143. package/dist/hooks/useStores/types.d.ts +8 -0
  144. package/dist/hooks/useStores/useStores.d.ts +2 -0
  145. package/dist/hooks/useViewUrlChange/index.d.ts +1 -0
  146. package/dist/hooks/useViewUrlChange/useViewUrlChange.d.ts +1 -0
  147. package/dist/hooks/useViews/index.d.ts +1 -0
  148. package/dist/hooks/useViews/useViews.d.ts +15 -0
  149. package/dist/index.cjs +1 -0
  150. package/dist/index.d.ts +15 -0
  151. package/dist/index.js +143 -0
  152. package/dist/index10.cjs +1 -0
  153. package/dist/index10.js +29 -0
  154. package/dist/index11.cjs +1 -0
  155. package/dist/index11.js +23 -0
  156. package/dist/index12.cjs +1 -0
  157. package/dist/index12.js +24 -0
  158. package/dist/index13.cjs +1 -0
  159. package/dist/index13.js +42 -0
  160. package/dist/index14.cjs +1 -0
  161. package/dist/index14.js +42 -0
  162. package/dist/index15.cjs +1 -0
  163. package/dist/index15.js +57 -0
  164. package/dist/index16.cjs +1 -0
  165. package/dist/index16.js +49 -0
  166. package/dist/index17.cjs +1 -0
  167. package/dist/index17.js +45 -0
  168. package/dist/index18.cjs +1 -0
  169. package/dist/index18.js +55 -0
  170. package/dist/index19.cjs +1 -0
  171. package/dist/index19.js +39 -0
  172. package/dist/index2.cjs +1 -0
  173. package/dist/index2.js +7 -0
  174. package/dist/index20.cjs +1 -0
  175. package/dist/index20.js +39 -0
  176. package/dist/index21.cjs +1 -0
  177. package/dist/index21.js +55 -0
  178. package/dist/index22.cjs +1 -0
  179. package/dist/index22.js +36 -0
  180. package/dist/index23.cjs +1 -0
  181. package/dist/index23.js +62 -0
  182. package/dist/index24.cjs +1 -0
  183. package/dist/index24.js +21 -0
  184. package/dist/index25.cjs +1 -0
  185. package/dist/index25.js +34 -0
  186. package/dist/index26.cjs +1 -0
  187. package/dist/index26.js +43 -0
  188. package/dist/index27.cjs +1 -0
  189. package/dist/index27.js +38 -0
  190. package/dist/index28.cjs +1 -0
  191. package/dist/index28.js +53 -0
  192. package/dist/index29.cjs +1 -0
  193. package/dist/index29.js +111 -0
  194. package/dist/index3.cjs +1 -0
  195. package/dist/index3.js +9 -0
  196. package/dist/index30.cjs +1 -0
  197. package/dist/index30.js +36 -0
  198. package/dist/index31.cjs +1 -0
  199. package/dist/index31.js +33 -0
  200. package/dist/index32.cjs +1 -0
  201. package/dist/index32.js +17 -0
  202. package/dist/index33.cjs +1 -0
  203. package/dist/index33.js +96 -0
  204. package/dist/index34.cjs +1 -0
  205. package/dist/index34.js +21 -0
  206. package/dist/index35.cjs +1 -0
  207. package/dist/index35.js +75 -0
  208. package/dist/index36.cjs +1 -0
  209. package/dist/index36.js +30 -0
  210. package/dist/index37.cjs +1 -0
  211. package/dist/index37.js +31 -0
  212. package/dist/index38.cjs +1 -0
  213. package/dist/index38.js +57 -0
  214. package/dist/index39.cjs +1 -0
  215. package/dist/index39.js +34 -0
  216. package/dist/index4.cjs +1 -0
  217. package/dist/index4.js +14 -0
  218. package/dist/index40.cjs +1 -0
  219. package/dist/index40.js +40 -0
  220. package/dist/index41.cjs +1 -0
  221. package/dist/index41.js +37 -0
  222. package/dist/index42.cjs +1 -0
  223. package/dist/index42.js +13 -0
  224. package/dist/index43.cjs +1 -0
  225. package/dist/index43.js +9 -0
  226. package/dist/index44.cjs +1 -0
  227. package/dist/index44.js +4 -0
  228. package/dist/index45.cjs +1 -0
  229. package/dist/index45.js +23 -0
  230. package/dist/index46.cjs +1 -0
  231. package/dist/index46.js +4 -0
  232. package/dist/index47.cjs +1 -0
  233. package/dist/index47.js +6 -0
  234. package/dist/index48.cjs +1 -0
  235. package/dist/index48.js +15 -0
  236. package/dist/index49.cjs +1 -0
  237. package/dist/index49.js +15 -0
  238. package/dist/index5.cjs +1 -0
  239. package/dist/index5.js +18 -0
  240. package/dist/index50.cjs +1 -0
  241. package/dist/index50.js +23 -0
  242. package/dist/index51.cjs +1 -0
  243. package/dist/index51.js +221 -0
  244. package/dist/index52.cjs +1 -0
  245. package/dist/index52.js +44 -0
  246. package/dist/index53.cjs +1 -0
  247. package/dist/index53.js +36 -0
  248. package/dist/index54.cjs +1 -0
  249. package/dist/index54.js +39 -0
  250. package/dist/index55.cjs +1 -0
  251. package/dist/index55.js +100 -0
  252. package/dist/index56.cjs +1 -0
  253. package/dist/index56.js +11 -0
  254. package/dist/index57.cjs +1 -0
  255. package/dist/index57.js +63 -0
  256. package/dist/index58.cjs +1 -0
  257. package/dist/index58.js +65 -0
  258. package/dist/index59.cjs +1 -0
  259. package/dist/index59.js +28 -0
  260. package/dist/index6.cjs +1 -0
  261. package/dist/index6.js +110 -0
  262. package/dist/index60.cjs +1 -0
  263. package/dist/index60.js +301 -0
  264. package/dist/index61.cjs +1 -0
  265. package/dist/index61.js +66 -0
  266. package/dist/index62.cjs +1 -0
  267. package/dist/index62.js +65 -0
  268. package/dist/index63.cjs +1 -0
  269. package/dist/index63.js +39 -0
  270. package/dist/index64.cjs +1 -0
  271. package/dist/index64.js +34 -0
  272. package/dist/index65.cjs +1 -0
  273. package/dist/index65.js +11 -0
  274. package/dist/index66.cjs +1 -0
  275. package/dist/index66.js +14 -0
  276. package/dist/index67.cjs +1 -0
  277. package/dist/index67.js +21 -0
  278. package/dist/index68.cjs +1 -0
  279. package/dist/index68.js +21 -0
  280. package/dist/index69.cjs +1 -0
  281. package/dist/index69.js +44 -0
  282. package/dist/index7.cjs +1 -0
  283. package/dist/index7.js +6 -0
  284. package/dist/index70.cjs +1 -0
  285. package/dist/index70.js +19 -0
  286. package/dist/index71.cjs +1 -0
  287. package/dist/index71.js +4 -0
  288. package/dist/index72.cjs +1 -0
  289. package/dist/index72.js +11 -0
  290. package/dist/index73.cjs +3 -0
  291. package/dist/index73.js +16 -0
  292. package/dist/index74.cjs +1 -0
  293. package/dist/index74.js +11 -0
  294. package/dist/index75.cjs +1 -0
  295. package/dist/index75.js +28 -0
  296. package/dist/index76.cjs +1 -0
  297. package/dist/index76.js +21 -0
  298. package/dist/index77.cjs +19 -0
  299. package/dist/index77.js +32 -0
  300. package/dist/index78.cjs +1 -0
  301. package/dist/index78.js +18 -0
  302. package/dist/index79.cjs +1 -0
  303. package/dist/index79.js +11 -0
  304. package/dist/index8.cjs +1 -0
  305. package/dist/index8.js +16 -0
  306. package/dist/index80.cjs +12 -0
  307. package/dist/index80.js +18 -0
  308. package/dist/index81.cjs +80 -0
  309. package/dist/index81.js +99 -0
  310. package/dist/index82.cjs +1 -0
  311. package/dist/index82.js +4 -0
  312. package/dist/index83.cjs +80 -0
  313. package/dist/index83.js +99 -0
  314. package/dist/index84.cjs +1 -0
  315. package/dist/index84.js +38 -0
  316. package/dist/index85.cjs +13 -0
  317. package/dist/index85.js +21 -0
  318. package/dist/index86.cjs +7 -0
  319. package/dist/index86.js +14 -0
  320. package/dist/index9.cjs +1 -0
  321. package/dist/index9.js +149 -0
  322. package/dist/mobx/Filters/Filters.d.ts +51 -0
  323. package/dist/mobx/Filters/index.d.ts +1 -0
  324. package/dist/mobx/MobXProvider/MobXProvider.d.ts +12 -0
  325. package/dist/mobx/MobXProvider/index.d.ts +1 -0
  326. package/dist/mobx/Notifications/Notifications.d.ts +13 -0
  327. package/dist/mobx/Notifications/index.d.ts +1 -0
  328. package/dist/mobx/NumberRangeFilter/NumberRangeFilter.d.ts +20 -0
  329. package/dist/mobx/NumberRangeFilter/index.d.ts +1 -0
  330. package/dist/mobx/RangeFilter/RangeFilter.d.ts +18 -0
  331. package/dist/mobx/RangeFilter/index.d.ts +1 -0
  332. package/dist/mobx/Views/Views.d.ts +10 -0
  333. package/dist/mobx/Views/index.d.ts +1 -0
  334. package/dist/mobx/index.d.ts +6 -0
  335. package/dist/setupTests.d.ts +0 -0
  336. package/dist/storybookHelpers/StoryWrapper.d.ts +13 -0
  337. package/dist/storybookHelpers/apiMocks/current_user.d.ts +272 -0
  338. package/dist/storybookHelpers/apiMocks/custom_views.d.ts +53 -0
  339. package/dist/storybookHelpers/constants.d.ts +5 -0
  340. package/dist/types.d.ts +93 -0
  341. package/dist/utils/createAllView/createAllView.d.ts +3 -0
  342. package/dist/utils/createAllView/createAllView.test.d.ts +1 -0
  343. package/dist/utils/createAllView/index.d.ts +1 -0
  344. package/dist/utils/getAsyncOptions/getAsyncOptions.d.ts +10 -0
  345. package/dist/utils/getAsyncOptions/getAsyncOptions.test.d.ts +1 -0
  346. package/dist/utils/getAsyncOptions/index.d.ts +1 -0
  347. package/dist/utils/getFetcherFunction/getFetcherFunction.d.ts +5 -0
  348. package/dist/utils/getFetcherFunction/getFetcherFunction.test.d.ts +1 -0
  349. package/dist/utils/getFetcherFunction/index.d.ts +1 -0
  350. package/dist/utils/index.d.ts +5 -0
  351. package/dist/utils/isValidDateRange/index.d.ts +1 -0
  352. package/dist/utils/isValidDateRange/isValidDateRange.d.ts +2 -0
  353. package/dist/utils/isValidDateRange/isValidDateRange.test.d.ts +1 -0
  354. package/dist/utils/viewsAdapter/index.d.ts +1 -0
  355. package/dist/utils/viewsAdapter/viewsAdapter.d.ts +7 -0
  356. package/dist/utils/viewsAdapter/viewsAdapter.test.d.ts +1 -0
  357. package/package.json +126 -0
@@ -0,0 +1,65 @@
1
+ var g = Object.defineProperty;
2
+ var h = (i, t, e) => t in i ? g(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var s = (i, t, e) => h(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { makeObservable as p, action as l, computed as n, observable as o } from "mobx";
5
+ import { getDateRange as a } from "@veeqo/ui";
6
+ import { DateValue as T, DateOptionMap as f } from "./index43.js";
7
+ import { BusinessLogicManager as c } from "./index8.js";
8
+ class L {
9
+ constructor(t) {
10
+ s(this, "filterType");
11
+ s(this, "gte");
12
+ s(this, "lte");
13
+ s(this, "setFilterType", (t) => {
14
+ if (t === this.filterType) return;
15
+ const e = t || T.TODAY;
16
+ if (this.filterType = e, e !== "CUSTOM") {
17
+ const r = a(e);
18
+ r && (this.gte = r.start, this.lte = r.end);
19
+ }
20
+ });
21
+ s(this, "setDates", (t, e) => {
22
+ this.gte = t, this.lte = e;
23
+ });
24
+ s(this, "clear", () => {
25
+ this.filterType = void 0;
26
+ const {
27
+ DEFAULT_DATE_RANGE: t
28
+ } = c.getBusinessLogic();
29
+ t && this.setDates(t.start, t.end);
30
+ });
31
+ p(this, {
32
+ filterType: o,
33
+ gte: o,
34
+ lte: o,
35
+ filterSelection: n,
36
+ filterLabel: n,
37
+ selectedRange: n,
38
+ setFilterType: l,
39
+ setDates: l,
40
+ clear: l
41
+ });
42
+ const e = t && t !== "CUSTOM" ? a(t) : null, {
43
+ DEFAULT_DATE_RANGE: r
44
+ } = c.getBusinessLogic();
45
+ this.filterType = t, this.gte = (e == null ? void 0 : e.start) ?? r.start, this.lte = (e == null ? void 0 : e.end) ?? r.end;
46
+ }
47
+ get filterSelection() {
48
+ const {
49
+ DEFAULT_DATE_PRESET: t
50
+ } = c.getBusinessLogic();
51
+ return this.filterType ? f.get(this.filterType) ?? t : t;
52
+ }
53
+ get filterLabel() {
54
+ return this.filterSelection.label;
55
+ }
56
+ get selectedRange() {
57
+ return {
58
+ start: this.gte,
59
+ end: this.lte
60
+ };
61
+ }
62
+ }
63
+ export {
64
+ L as RangeFilter
65
+ };
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty;var f=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>f(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("mobx");class w{constructor(){i(this,"draftCount");i(this,"draftViewsMap");i(this,"addDraftView",t=>{const e=t.originalView||t,s=`${e.id}-draft${this.draftCount}`,o=`${e.label} (Copy ${this.draftCount+1})`,n={...t,id:s,label:o,originalView:e};return this.draftViewsMap.set(s,n),this.incrementDraftViewCount(),n});i(this,"removeDraftViewById",t=>{this.draftViewsMap.has(t)&&this.draftViewsMap.delete(t)});i(this,"incrementDraftViewCount",()=>{this.draftCount+=1});a.makeObservable(this,{draftViewsList:a.computed,draftViewsMap:a.observable,draftCount:a.observable,addDraftView:a.action,removeDraftViewById:a.action,incrementDraftViewCount:a.action}),this.draftCount=0,this.draftViewsMap=new Map}get draftViewsList(){return Array.from(this.draftViewsMap.entries()).map(([,t])=>t)}}exports.Views=w;
@@ -0,0 +1,39 @@
1
+ var f = Object.defineProperty;
2
+ var w = (a, t, e) => t in a ? f(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
+ var r = (a, t, e) => w(a, typeof t != "symbol" ? t + "" : t, e);
4
+ import { makeObservable as V, action as i, observable as o, computed as u } from "mobx";
5
+ class h {
6
+ constructor() {
7
+ r(this, "draftCount");
8
+ r(this, "draftViewsMap");
9
+ r(this, "addDraftView", (t) => {
10
+ const e = t.originalView || t, s = `${e.id}-draft${this.draftCount}`, d = `${e.label} (Copy ${this.draftCount + 1})`, n = {
11
+ ...t,
12
+ id: s,
13
+ label: d,
14
+ originalView: e
15
+ };
16
+ return this.draftViewsMap.set(s, n), this.incrementDraftViewCount(), n;
17
+ });
18
+ r(this, "removeDraftViewById", (t) => {
19
+ this.draftViewsMap.has(t) && this.draftViewsMap.delete(t);
20
+ });
21
+ r(this, "incrementDraftViewCount", () => {
22
+ this.draftCount += 1;
23
+ });
24
+ V(this, {
25
+ draftViewsList: u,
26
+ draftViewsMap: o,
27
+ draftCount: o,
28
+ addDraftView: i,
29
+ removeDraftViewById: i,
30
+ incrementDraftViewCount: i
31
+ }), this.draftCount = 0, this.draftViewsMap = /* @__PURE__ */ new Map();
32
+ }
33
+ get draftViewsList() {
34
+ return Array.from(this.draftViewsMap.entries()).map(([, t]) => t);
35
+ }
36
+ }
37
+ export {
38
+ h as Views
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.defineProperty;var c=(e,t,s)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var o=(e,t,s)=>c(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("mobx"),n=require("uid/secure");class u{constructor(){o(this,"toasts");o(this,"timeouts");o(this,"notify",t=>{const s={...t,key:n.uid()};this.toasts=[...this.toasts,s]});o(this,"setToasts",t=>{this.toasts=t});o(this,"removeByKey",t=>{const s=this.timeouts.get(t);s&&(clearTimeout(s),this.timeouts.delete(t)),this.toasts=this.toasts.filter(a=>a.key!==t)});i.makeObservable(this,{toasts:i.observable,notify:i.action,setToasts:i.action,removeByKey:i.action}),this.toasts=[],this.timeouts=new Map}}exports.Notifications=u;
@@ -0,0 +1,34 @@
1
+ var m = Object.defineProperty;
2
+ var r = (o, t, s) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[t] = s;
3
+ var e = (o, t, s) => r(o, typeof t != "symbol" ? t + "" : t, s);
4
+ import { makeObservable as h, action as i, observable as n } from "mobx";
5
+ import { uid as c } from "uid/secure";
6
+ class y {
7
+ constructor() {
8
+ e(this, "toasts");
9
+ e(this, "timeouts");
10
+ e(this, "notify", (t) => {
11
+ const s = {
12
+ ...t,
13
+ key: c()
14
+ };
15
+ this.toasts = [...this.toasts, s];
16
+ });
17
+ e(this, "setToasts", (t) => {
18
+ this.toasts = t;
19
+ });
20
+ e(this, "removeByKey", (t) => {
21
+ const s = this.timeouts.get(t);
22
+ s && (clearTimeout(s), this.timeouts.delete(t)), this.toasts = this.toasts.filter((a) => a.key !== t);
23
+ });
24
+ h(this, {
25
+ toasts: n,
26
+ notify: i,
27
+ setToasts: i,
28
+ removeByKey: i
29
+ }), this.toasts = [], this.timeouts = /* @__PURE__ */ new Map();
30
+ }
31
+ }
32
+ export {
33
+ y as Notifications
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("mobx-react"),n=({children:e,Filters:i,Views:r,Notifications:t})=>o.jsx(s.Provider,{Filters:i,Views:r,Notifications:t,children:e});exports.MobXProvider=n;
@@ -0,0 +1,11 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Provider as s } from "mobx-react";
3
+ const n = ({
4
+ children: i,
5
+ Filters: o,
6
+ Views: r,
7
+ Notifications: t
8
+ }) => /* @__PURE__ */ e(s, { Filters: o, Views: r, Notifications: t, children: i });
9
+ export {
10
+ n as MobXProvider
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("lodash/get"),s=t=>t&&t.__esModule?t:{default:t},l=s(o),a=({data:t,config:e})=>!e||!t?[]:t.map(r=>{const u=l.default(r,e.labelProperty),n=l.default(r,e.valueProperty);return{label:u,value:n.toString()}});exports.getAsyncOptions=a;
@@ -0,0 +1,14 @@
1
+ import o from "lodash/get";
2
+ const u = ({
3
+ data: t,
4
+ config: r
5
+ }) => !r || !t ? [] : t.map((e) => {
6
+ const l = o(e, r.labelProperty), n = o(e, r.valueProperty);
7
+ return {
8
+ label: l,
9
+ value: n.toString()
10
+ };
11
+ });
12
+ export {
13
+ u as getAsyncOptions
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index50.cjs"),c=({fetcherName:r})=>{let e;switch(r){case"fetcherV1":e=t.fetcherV1;break;case"fetcherV2":e=t.fetcherV2;break;default:e=t.fetcherV1;break}return e};exports.getFetcherFunction=c;
@@ -0,0 +1,21 @@
1
+ import { fetcherV1 as t, fetcherV2 as c } from "./index50.js";
2
+ const h = ({
3
+ fetcherName: r
4
+ }) => {
5
+ let e;
6
+ switch (r) {
7
+ case "fetcherV1":
8
+ e = t;
9
+ break;
10
+ case "fetcherV2":
11
+ e = c;
12
+ break;
13
+ default:
14
+ e = t;
15
+ break;
16
+ }
17
+ return e;
18
+ };
19
+ export {
20
+ h as getFetcherFunction
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@veeqo/ui"),s=a=>{switch(a){case e.DateRanges.TODAY:case e.DateRanges.YESTERDAY:case e.DateRanges.LAST_7_DAYS:case e.DateRanges.LAST_30_DAYS:case e.DateRanges.LAST_90_DAYS:case e.DateRanges.LAST_MONTH:case e.DateRanges.LAST_12_MONTHS:case e.DateRanges.WEEK_TO_DATE:case e.DateRanges.MONTH_TO_DATE:case e.DateRanges.YEAR_TO_DATE:return!0;default:return!1}};exports.isValidDateRange=s;
@@ -0,0 +1,21 @@
1
+ import { DateRanges as e } from "@veeqo/ui";
2
+ const s = (a) => {
3
+ switch (a) {
4
+ case e.TODAY:
5
+ case e.YESTERDAY:
6
+ case e.LAST_7_DAYS:
7
+ case e.LAST_30_DAYS:
8
+ case e.LAST_90_DAYS:
9
+ case e.LAST_MONTH:
10
+ case e.LAST_12_MONTHS:
11
+ case e.WEEK_TO_DATE:
12
+ case e.MONTH_TO_DATE:
13
+ case e.YEAR_TO_DATE:
14
+ return !0;
15
+ default:
16
+ return !1;
17
+ }
18
+ };
19
+ export {
20
+ s as isValidDateRange
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@internationalized/date"),l=require("./index62.cjs"),g=require("./index61.cjs"),d=require("./index8.cjs"),p=({view:r,canUpdateCustomViews:f})=>{const{DATE_RANGE_FILTERS:i,NUMBER_RANGE_FILTERS:n}=d.BusinessLogicManager.getBusinessLogic();return{id:r.id,label:r.title,filterMaps:{filters:new Map(Object.entries(r.filters.filter||{}).filter(([e,t])=>!Array.isArray(t)&&!i.includes(e)&&!n.includes(e)).map(([e,t])=>[e,t])),arrayFilters:new Map(Object.entries(r.filters.filter||{}).filter(([,e])=>Array.isArray(e)).map(([e,t])=>[e,t])),rangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>i.includes(e)).map(([e,t])=>{let s;if(typeof t=="string")s=new l.RangeFilter(t);else{s=new l.RangeFilter("CUSTOM");const c=a.parseDate(t.gte),o=a.parseDate(t.lte);s.setDates(c,o)}return[e,s]})),numberRangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>n.includes(e)).map(([e,t])=>{const s=new g.NumberRangeFilter({filterId:e});return t.lte!==void 0&&s.setLte(Number(t.lte)),t.gte!==void 0&&s.setGte(Number(t.gte)),[e,s]}))},page:r.filters.page,editable:r.editable&&f,isShared:r.shared}};exports.viewsAdapter=p;
@@ -0,0 +1,44 @@
1
+ import { parseDate as l } from "@internationalized/date";
2
+ import { RangeFilter as a } from "./index62.js";
3
+ import { NumberRangeFilter as m } from "./index61.js";
4
+ import { BusinessLogicManager as c } from "./index8.js";
5
+ const R = ({
6
+ view: r,
7
+ canUpdateCustomViews: f
8
+ }) => {
9
+ const {
10
+ DATE_RANGE_FILTERS: s,
11
+ NUMBER_RANGE_FILTERS: n
12
+ } = c.getBusinessLogic();
13
+ return {
14
+ id: r.id,
15
+ label: r.title,
16
+ filterMaps: {
17
+ filters: new Map(Object.entries(r.filters.filter || {}).filter(([e, t]) => !Array.isArray(t) && !s.includes(e) && !n.includes(e)).map(([e, t]) => [e, t])),
18
+ arrayFilters: new Map(Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])),
19
+ rangeFilters: new Map(Object.entries(r.filters.filter || {}).filter(([e]) => s.includes(e)).map(([e, t]) => {
20
+ let i;
21
+ if (typeof t == "string")
22
+ i = new a(t);
23
+ else {
24
+ i = new a("CUSTOM");
25
+ const o = l(t.gte), p = l(t.lte);
26
+ i.setDates(o, p);
27
+ }
28
+ return [e, i];
29
+ })),
30
+ numberRangeFilters: new Map(Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
31
+ const i = new m({
32
+ filterId: e
33
+ });
34
+ return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e, i];
35
+ }))
36
+ },
37
+ page: r.filters.page,
38
+ editable: r.editable && f,
39
+ isShared: r.shared
40
+ };
41
+ };
42
+ export {
43
+ R as viewsAdapter
44
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),s=require("./index8.cjs"),i=()=>e.useMemo(()=>s.BusinessLogicManager.getBusinessLogic(),[]);exports.useBusinessLogic=i;
package/dist/index7.js ADDED
@@ -0,0 +1,6 @@
1
+ import { useMemo as s } from "react";
2
+ import { BusinessLogicManager as e } from "./index8.js";
3
+ const r = () => s(() => e.getBusinessLogic(), []);
4
+ export {
5
+ r as useBusinessLogic
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="all",l=()=>({id:e,label:"All",filterMaps:{filters:new Map,arrayFilters:new Map,rangeFilters:new Map,numberRangeFilters:new Map},page:{size:10},editable:!1,isShared:!1});exports.ALL_VIEW_ID=e;exports.createAllView=l;
@@ -0,0 +1,19 @@
1
+ const e = "all", a = () => ({
2
+ id: e,
3
+ label: "All",
4
+ filterMaps: {
5
+ filters: /* @__PURE__ */ new Map(),
6
+ arrayFilters: /* @__PURE__ */ new Map(),
7
+ rangeFilters: /* @__PURE__ */ new Map(),
8
+ numberRangeFilters: /* @__PURE__ */ new Map()
9
+ },
10
+ page: {
11
+ size: 10
12
+ },
13
+ editable: !1,
14
+ isShared: !1
15
+ });
16
+ export {
17
+ e as ALL_VIEW_ID,
18
+ a as createAllView
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var P=(t=>(t.GET="AxiosGet",t.DELETE="AxiosDelete",t.POST="AxiosPost",t.PATCH="AxiosPatch",t.PUT="AxiosPut",t.POST_FORM="AxioPostForm",t.PUT_FORM="AxiosPutForm",t.PATCH_FORM="AxiosPatchForm",t))(P||{});exports.AxiosErrorType=P;
@@ -0,0 +1,4 @@
1
+ var t = /* @__PURE__ */ ((P) => (P.GET = "AxiosGet", P.DELETE = "AxiosDelete", P.POST = "AxiosPost", P.PATCH = "AxiosPatch", P.PUT = "AxiosPut", P.POST_FORM = "AxioPostForm", P.PUT_FORM = "AxiosPutForm", P.PATCH_FORM = "AxiosPatchForm", P))(t || {});
2
+ export {
3
+ t as AxiosErrorType
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,t)=>{const e=[r];return t!==void 0&&e.push(t),e},l=(r,t,e)=>{const i=[r];return t!==void 0&&i.push(t),e!==void 0&&i.push(e),i};exports.filterOptionalArgs=l;exports.filterOptionalArgsGetDelete=s;
@@ -0,0 +1,11 @@
1
+ const i = (s, t) => {
2
+ const r = [s];
3
+ return t !== void 0 && r.push(t), r;
4
+ }, o = (s, t, r) => {
5
+ const e = [s];
6
+ return t !== void 0 && e.push(t), r !== void 0 && e.push(r), e;
7
+ };
8
+ export {
9
+ o as filterOptionalArgs,
10
+ i as filterOptionalArgsGetDelete
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index82.cjs"),s=e=>{if(!l.isError(e))return e;if(e.stack){const t=e.stack.split(`
2
+ `);if(t.length<=10)return e;const n=t==null?void 0:t[0],i=t==null?void 0:t.splice(9),r=[n,...i].join(`
3
+ `);e.stack=r}return e};exports.filterErrorStack=s;
@@ -0,0 +1,16 @@
1
+ import { isError as l } from "./index82.js";
2
+ const s = (e) => {
3
+ if (!l(e)) return e;
4
+ if (e.stack) {
5
+ const n = e.stack.split(`
6
+ `);
7
+ if (n.length <= 10) return e;
8
+ const i = n == null ? void 0 : n[0], t = n == null ? void 0 : n.splice(9), f = [i, ...t].join(`
9
+ `);
10
+ e.stack = f;
11
+ }
12
+ return e;
13
+ };
14
+ export {
15
+ s as filterErrorStack
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index82.cjs"),n=({customError:t,originalError:e,type:c})=>{!s.isError(e)||!s.isError(t)||(e.stack&&(e.stack=t.stack),e.name&&(e.name=`${c} (${e.name})`))};exports.injectIntoError=n;
@@ -0,0 +1,11 @@
1
+ import { isError as c } from "./index82.js";
2
+ const s = ({
3
+ customError: e,
4
+ originalError: t,
5
+ type: f
6
+ }) => {
7
+ !c(t) || !c(e) || (t.stack && (t.stack = e.stack), t.name && (t.name = `${f} (${t.name})`));
8
+ };
9
+ export {
10
+ s as injectIntoError
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index86.cjs"),v=({children:i,style:o,className:c})=>{const r=n.useRef(null),[u,f]=n.useState(0);return n.useEffect(()=>{const e=r.current,s=()=>{if(e){const{top:a}=e.getBoundingClientRect();f(a)}};s();const t=new ResizeObserver(s);return e&&t.observe(e),()=>{e&&t.unobserve(e),t.disconnect()}},[]),d.jsx(l.AdaptiveStyledContainer,{style:o,className:c,offset:u,ref:r,children:i})};exports.AdaptiveHeightContainer=v;
@@ -0,0 +1,28 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { useRef as a, useState as d, useEffect as m } from "react";
3
+ import { AdaptiveStyledContainer as v } from "./index86.js";
4
+ const R = ({
5
+ children: o,
6
+ style: s,
7
+ className: f
8
+ }) => {
9
+ const r = a(null), [i, c] = d(0);
10
+ return m(() => {
11
+ const e = r.current, n = () => {
12
+ if (e) {
13
+ const {
14
+ top: u
15
+ } = e.getBoundingClientRect();
16
+ c(u);
17
+ }
18
+ };
19
+ n();
20
+ const t = new ResizeObserver(n);
21
+ return e && t.observe(e), () => {
22
+ e && t.unobserve(e), t.disconnect();
23
+ };
24
+ }, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
25
+ };
26
+ export {
27
+ R as AdaptiveHeightContainer
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
@@ -0,0 +1,21 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Modal as n, Text as r } from "@veeqo/ui";
3
+ const s = ({
4
+ shouldShow: a,
5
+ viewName: i,
6
+ onCancel: t,
7
+ onDelete: o
8
+ }) => /* @__PURE__ */ e(n, { headerTitle: `Delete '${i}' view?`, "data-testid": "act-react-listing-custom-confirmation-popup", variant: "sm", shouldShow: a, onClose: t, rightActions: [{
9
+ className: "act-react-listing-custom-confirmation-popup-cancel",
10
+ label: "Cancel",
11
+ onClick: t,
12
+ variant: "default"
13
+ }, {
14
+ className: "act-react-listing-custom-confirmation-popup-delete",
15
+ label: "Delete",
16
+ onClick: o,
17
+ variant: "primaryDestructive"
18
+ }], showHeaderCloseButton: !0, children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." }) });
19
+ export {
20
+ s as Confirmation
21
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),e=require("@veeqo/ui"),s=t=>t&&t.__esModule?t:{default:t},o=s(r),i=o.default(e.Button).attrs(()=>({role:"option",variant:"flat"}))`
2
+ margin: ${e.theme.sizes.xs};
3
+ min-width: 180px;
4
+ justify-content: flex-start;
5
+ font-size: ${e.theme.text.body.fontSize};
6
+
7
+ &:hover {
8
+ background-color: ${e.theme.colors.neutral.grey.lightest};
9
+ color: ${e.theme.colors.secondary.blue.base};
10
+ cursor: pointer;
11
+ }
12
+ `,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
13
+ margin-top: ${e.theme.sizes.xs};
14
+ background-color: white;
15
+ `,l=o.default.hr`
16
+ width: 100%;
17
+ border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
18
+ margin: 0;
19
+ `;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
@@ -0,0 +1,32 @@
1
+ import t from "styled-components";
2
+ import { theme as o, Card as r, Button as e } from "@veeqo/ui";
3
+ const n = t(e).attrs(() => ({
4
+ role: "option",
5
+ variant: "flat"
6
+ }))`
7
+ margin: ${o.sizes.xs};
8
+ min-width: 180px;
9
+ justify-content: flex-start;
10
+ font-size: ${o.text.body.fontSize};
11
+
12
+ &:hover {
13
+ background-color: ${o.colors.neutral.grey.lightest};
14
+ color: ${o.colors.secondary.blue.base};
15
+ cursor: pointer;
16
+ }
17
+ `, a = t(r.Surface).attrs(() => ({
18
+ role: "listbox",
19
+ elevation: 4
20
+ }))`
21
+ margin-top: ${o.sizes.xs};
22
+ background-color: white;
23
+ `, l = t.hr`
24
+ width: 100%;
25
+ border-top: 1px solid ${o.colors.neutral.grey.dark};
26
+ margin: 0;
27
+ `;
28
+ export {
29
+ l as Divider,
30
+ n as Item,
31
+ a as MenuItems
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),t=require("./index83.cjs"),a=i.theme.colors.secondary.blue.base,o=({mainEntityLabelPlural:r="",onClick:n})=>e.jsx(t.Notification,{className:"act-react-listing-custom-notification-new-draft",children:e.jsx(t.Pill,{children:e.jsxs(i.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(t.Glyph,{name:"info",color:a}),e.jsxs(t.Wrap,{children:[e.jsx(t.Text,{variant:"body",margin:"0 4px 0 0",children:"You are currently in a"}),e.jsx(t.Bold,{variant:"bodyBoldDark",children:"draft view"}),e.jsx(t.Hint,{variant:"hintText",children:`Apply filters and create a custom view of your ${r.toLowerCase()}`})]}),e.jsx(t.Button,{className:"act-react-listing-custom-notification-save-draft-btn",variant:"primary",onClick:n,size:"sm",children:"Create view"})]})})});exports.InfoPill=o;
@@ -0,0 +1,18 @@
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import { Stack as e, theme as o } from "@veeqo/ui";
3
+ import { Notification as n, Pill as c, Glyph as l, Wrap as s, Text as d, Bold as m, Hint as f, Button as h } from "./index83.js";
4
+ const p = o.colors.secondary.blue.base, x = ({
5
+ mainEntityLabelPlural: r = "",
6
+ onClick: a
7
+ }) => /* @__PURE__ */ t(n, { className: "act-react-listing-custom-notification-new-draft", children: /* @__PURE__ */ t(c, { children: /* @__PURE__ */ i(e, { direction: "horizontal", alignY: "center", children: [
8
+ /* @__PURE__ */ t(l, { name: "info", color: p }),
9
+ /* @__PURE__ */ i(s, { children: [
10
+ /* @__PURE__ */ t(d, { variant: "body", margin: "0 4px 0 0", children: "You are currently in a" }),
11
+ /* @__PURE__ */ t(m, { variant: "bodyBoldDark", children: "draft view" }),
12
+ /* @__PURE__ */ t(f, { variant: "hintText", children: `Apply filters and create a custom view of your ${r.toLowerCase()}` })
13
+ ] }),
14
+ /* @__PURE__ */ t(h, { className: "act-react-listing-custom-notification-save-draft-btn", variant: "primary", onClick: a, size: "sm", children: "Create view" })
15
+ ] }) }) });
16
+ export {
17
+ x as InfoPill
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),l=require("./index85.cjs"),o=e=>i.jsx(l.StyledSortableViews,{...e,onChange:t=>{t.filter(r=>{var n;return(n=r.children)==null?void 0:n.length}).length||e.onChange(t)}});exports.LegacySortableViews=o;
@@ -0,0 +1,11 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { StyledSortableViews as i } from "./index85.js";
3
+ const h = (e) => /* @__PURE__ */ o(i, { ...e, onChange: (t) => {
4
+ t.filter((n) => {
5
+ var r;
6
+ return (r = n.children) == null ? void 0 : r.length;
7
+ }).length || e.onChange(t);
8
+ } });
9
+ export {
10
+ h as LegacySortableViews
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var r=(e,t,s)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var p=(e,t,s)=>r(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=class a{};p(a,"appData"),p(a,"setBusinessLogic",t=>{a.appData=t}),p(a,"getBusinessLogic",()=>{if(a.appData===void 0)throw new Error("Business logic has not been set");return a.appData});let i=a;exports.BusinessLogicManager=i;
package/dist/index8.js ADDED
@@ -0,0 +1,16 @@
1
+ var c = Object.defineProperty;
2
+ var e = (p, t, s) => t in p ? c(p, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : p[t] = s;
3
+ var o = (p, t, s) => e(p, typeof t != "symbol" ? t + "" : t, s);
4
+ const a = class a {
5
+ };
6
+ o(a, "appData"), o(a, "setBusinessLogic", (t) => {
7
+ a.appData = t;
8
+ }), o(a, "getBusinessLogic", () => {
9
+ if (a.appData === void 0)
10
+ throw new Error("Business logic has not been set");
11
+ return a.appData;
12
+ });
13
+ let D = a;
14
+ export {
15
+ D as BusinessLogicManager
16
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@veeqo/ui"),o=e=>e&&e.__esModule?e:{default:e},r=o(i),d=r.default(t.BaseContainer)`
2
+ display: flex;
3
+ flex-direction: column;
4
+ padding: 8px;
5
+ padding-left: 35px;
6
+ margin: 8px;
7
+ background-color: ${t.theme.colors.neutral.grey.lightest};
8
+ `,l=r.default.hr`
9
+ width: 100%;
10
+ border-top: 1px solid ${t.theme.colors.neutral.grey.dark};
11
+ margin: 0 0 4px 0;
12
+ `;exports.Divider=l;exports.FixedViews=d;
@@ -0,0 +1,18 @@
1
+ import r from "styled-components";
2
+ import { theme as o, BaseContainer as e } from "@veeqo/ui";
3
+ const d = r(e)`
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding: 8px;
7
+ padding-left: 35px;
8
+ margin: 8px;
9
+ background-color: ${o.colors.neutral.grey.lightest};
10
+ `, l = r.hr`
11
+ width: 100%;
12
+ border-top: 1px solid ${o.colors.neutral.grey.dark};
13
+ margin: 0 0 4px 0;
14
+ `;
15
+ export {
16
+ l as Divider,
17
+ d as FixedViews
18
+ };