@veeqo/transfigure 1.1.2 → 1.1.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 (230) hide show
  1. package/dist/BusinessLogic/mocks.d.ts +1 -1
  2. package/dist/BusinessLogic/types.d.ts +2 -1
  3. package/dist/hooks/useUrlParams/useUrlParams.test.d.ts +1 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +160 -158
  6. package/dist/index10.cjs +1 -1
  7. package/dist/index10.js +184 -18
  8. package/dist/index100.cjs +19 -1
  9. package/dist/index100.js +24 -21
  10. package/dist/index101.cjs +1 -1
  11. package/dist/index101.js +32 -23
  12. package/dist/index102.cjs +1 -80
  13. package/dist/index102.js +28 -100
  14. package/dist/index103.cjs +80 -1
  15. package/dist/index103.js +101 -19
  16. package/dist/index104.cjs +1 -1
  17. package/dist/index104.js +2 -8
  18. package/dist/index105.cjs +1 -1
  19. package/dist/index105.js +17 -62
  20. package/dist/index106.cjs +1 -1
  21. package/dist/index106.js +7 -29
  22. package/dist/index107.cjs +1 -1
  23. package/dist/index107.js +64 -2
  24. package/dist/index108.cjs +1 -13
  25. package/dist/index108.js +30 -17
  26. package/dist/index109.cjs +13 -1
  27. package/dist/index109.js +14 -33
  28. package/dist/index11.cjs +1 -1
  29. package/dist/index11.js +18 -21
  30. package/dist/index111.cjs +1 -7
  31. package/dist/index111.js +36 -10
  32. package/dist/index112.cjs +7 -1
  33. package/dist/index112.js +10 -63
  34. package/dist/index113.cjs +1 -1
  35. package/dist/index113.js +3 -3
  36. package/dist/index114.cjs +1 -0
  37. package/dist/index114.js +65 -0
  38. package/dist/index12.cjs +1 -1
  39. package/dist/index12.js +19 -41
  40. package/dist/index13.cjs +1 -1
  41. package/dist/index13.js +41 -23
  42. package/dist/index14.cjs +1 -1
  43. package/dist/index14.js +24 -36
  44. package/dist/index15.cjs +1 -1
  45. package/dist/index15.js +37 -33
  46. package/dist/index16.cjs +1 -1
  47. package/dist/index16.js +32 -49
  48. package/dist/index17.cjs +1 -1
  49. package/dist/index17.js +47 -38
  50. package/dist/index18.cjs +1 -1
  51. package/dist/index18.js +29 -29
  52. package/dist/index19.cjs +1 -1
  53. package/dist/index19.js +41 -58
  54. package/dist/index2.cjs +1 -1
  55. package/dist/index2.js +2 -5
  56. package/dist/index20.cjs +1 -1
  57. package/dist/index20.js +48 -42
  58. package/dist/index21.cjs +1 -1
  59. package/dist/index21.js +50 -44
  60. package/dist/index22.cjs +1 -1
  61. package/dist/index22.js +46 -7
  62. package/dist/index23.cjs +1 -1
  63. package/dist/index23.js +7 -11
  64. package/dist/index24.cjs +1 -1
  65. package/dist/index24.js +11 -64
  66. package/dist/index25.cjs +1 -1
  67. package/dist/index25.js +40 -39
  68. package/dist/index26.cjs +1 -1
  69. package/dist/index26.js +60 -37
  70. package/dist/index27.cjs +1 -1
  71. package/dist/index27.js +36 -53
  72. package/dist/index28.cjs +1 -1
  73. package/dist/index28.js +54 -51
  74. package/dist/index29.cjs +1 -1
  75. package/dist/index29.js +50 -81
  76. package/dist/index3.cjs +1 -1
  77. package/dist/index3.js +5 -5
  78. package/dist/index30.cjs +1 -1
  79. package/dist/index30.js +81 -35
  80. package/dist/index31.cjs +1 -1
  81. package/dist/index31.js +38 -33
  82. package/dist/index32.cjs +1 -1
  83. package/dist/index32.js +33 -10
  84. package/dist/index33.cjs +1 -1
  85. package/dist/index33.js +10 -39
  86. package/dist/index34.cjs +1 -1
  87. package/dist/index34.js +38 -102
  88. package/dist/index35.cjs +1 -1
  89. package/dist/index35.js +103 -19
  90. package/dist/index36.cjs +1 -1
  91. package/dist/index36.js +17 -134
  92. package/dist/index37.cjs +1 -1
  93. package/dist/index37.js +135 -49
  94. package/dist/index38.cjs +1 -1
  95. package/dist/index38.js +51 -32
  96. package/dist/index39.cjs +1 -1
  97. package/dist/index39.js +31 -53
  98. package/dist/index4.cjs +1 -1
  99. package/dist/index4.js +5 -5
  100. package/dist/index40.cjs +1 -1
  101. package/dist/index40.js +54 -48
  102. package/dist/index41.cjs +1 -1
  103. package/dist/index41.js +41 -81
  104. package/dist/index42.cjs +1 -1
  105. package/dist/index42.js +81 -41
  106. package/dist/index43.cjs +1 -1
  107. package/dist/index43.js +48 -5
  108. package/dist/index44.cjs +1 -1
  109. package/dist/index44.js +5 -45
  110. package/dist/index45.cjs +1 -1
  111. package/dist/index45.js +44 -38
  112. package/dist/index46.cjs +1 -1
  113. package/dist/index46.js +39 -19
  114. package/dist/index47.cjs +1 -1
  115. package/dist/index47.js +19 -8
  116. package/dist/index48.cjs +1 -1
  117. package/dist/index48.js +7 -22
  118. package/dist/index49.cjs +1 -1
  119. package/dist/index49.js +23 -2
  120. package/dist/index5.cjs +1 -1
  121. package/dist/index5.js +5 -9
  122. package/dist/index50.cjs +1 -1
  123. package/dist/index50.js +2 -4
  124. package/dist/index51.cjs +1 -1
  125. package/dist/index51.js +4 -11
  126. package/dist/index52.cjs +1 -1
  127. package/dist/index52.js +10 -12
  128. package/dist/index53.cjs +1 -1
  129. package/dist/index53.js +12 -11
  130. package/dist/index54.cjs +1 -1
  131. package/dist/index54.js +11 -184
  132. package/dist/index55.cjs +1 -1
  133. package/dist/index55.js +183 -25
  134. package/dist/index56.cjs +1 -1
  135. package/dist/index56.js +26 -24
  136. package/dist/index57.cjs +1 -1
  137. package/dist/index57.js +19 -22
  138. package/dist/index58.cjs +1 -1
  139. package/dist/index58.js +25 -97
  140. package/dist/index59.cjs +1 -1
  141. package/dist/index59.js +99 -8
  142. package/dist/index6.cjs +1 -1
  143. package/dist/index6.js +8 -75
  144. package/dist/index60.cjs +1 -1
  145. package/dist/index60.js +8 -51
  146. package/dist/index61.cjs +1 -1
  147. package/dist/index61.js +50 -60
  148. package/dist/index62.cjs +1 -1
  149. package/dist/index62.js +57 -18
  150. package/dist/index63.cjs +1 -1
  151. package/dist/index63.js +22 -18
  152. package/dist/index64.cjs +1 -1
  153. package/dist/index64.js +16 -26
  154. package/dist/index65.cjs +1 -1
  155. package/dist/index65.js +26 -10
  156. package/dist/index66.cjs +1 -1
  157. package/dist/index66.js +21 -331
  158. package/dist/index67.cjs +1 -1
  159. package/dist/index67.js +337 -55
  160. package/dist/index68.cjs +1 -1
  161. package/dist/index68.js +50 -47
  162. package/dist/index69.cjs +1 -1
  163. package/dist/index69.js +51 -32
  164. package/dist/index7.cjs +1 -1
  165. package/dist/index7.js +76 -4
  166. package/dist/index70.cjs +1 -1
  167. package/dist/index70.js +30 -24
  168. package/dist/index71.cjs +1 -1
  169. package/dist/index71.js +26 -32
  170. package/dist/index72.cjs +1 -1
  171. package/dist/index72.js +37 -12
  172. package/dist/index73.cjs +1 -1
  173. package/dist/index73.js +13 -9
  174. package/dist/index74.cjs +1 -1
  175. package/dist/index74.js +9 -17
  176. package/dist/index75.cjs +1 -1
  177. package/dist/index75.js +14 -16
  178. package/dist/index76.cjs +1 -1
  179. package/dist/index76.js +18 -49
  180. package/dist/index77.cjs +1 -1
  181. package/dist/index77.js +50 -21
  182. package/dist/index78.cjs +1 -1
  183. package/dist/index78.js +21 -7
  184. package/dist/index79.cjs +1 -1
  185. package/dist/index79.js +7 -2
  186. package/dist/index8.cjs +1 -1
  187. package/dist/index8.js +4 -14
  188. package/dist/index80.cjs +1 -1
  189. package/dist/index80.js +2 -9
  190. package/dist/index81.cjs +1 -3
  191. package/dist/index81.js +8 -13
  192. package/dist/index82.cjs +3 -1
  193. package/dist/index82.js +13 -8
  194. package/dist/index83.cjs +1 -1
  195. package/dist/index83.js +7 -116
  196. package/dist/index84.cjs +1 -1
  197. package/dist/index84.js +117 -18
  198. package/dist/index85.cjs +1 -11
  199. package/dist/index85.js +19 -16
  200. package/dist/index86.cjs +11 -1
  201. package/dist/index86.js +16 -41
  202. package/dist/index87.cjs +1 -1
  203. package/dist/index87.js +40 -8
  204. package/dist/index88.cjs +1 -1
  205. package/dist/index88.js +9 -13
  206. package/dist/index89.cjs +1 -104
  207. package/dist/index89.js +13 -120
  208. package/dist/index9.cjs +1 -1
  209. package/dist/index9.js +13 -181
  210. package/dist/index90.cjs +104 -1
  211. package/dist/index90.js +117 -65
  212. package/dist/index91.cjs +1 -1
  213. package/dist/index91.js +63 -24
  214. package/dist/index92.cjs +1 -1
  215. package/dist/index92.js +29 -2
  216. package/dist/index93.cjs +1 -1
  217. package/dist/index93.js +2 -41
  218. package/dist/index94.cjs +1 -1
  219. package/dist/index94.js +39 -9
  220. package/dist/index95.cjs +1 -1
  221. package/dist/index95.js +10 -14
  222. package/dist/index97.cjs +1 -1
  223. package/dist/index97.js +19 -31
  224. package/dist/index98.cjs +1 -1
  225. package/dist/index98.js +23 -28
  226. package/dist/index99.cjs +1 -19
  227. package/dist/index99.js +14 -23
  228. package/dist/mobx/Filters/Filters.d.ts +1 -1
  229. package/dist/types.d.ts +4 -0
  230. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { BusinessLogicType } from './types';
2
- import { Filter, FilterGroupType } from 'src/types';
2
+ import { Filter, FilterGroupType } from '../types';
3
3
  export declare const DATE_RANGE_FILTERS: string[];
4
4
  export declare const NUMBER_RANGE_FILTERS: string[];
5
5
  export declare const customAppBusinessLogic: Omit<BusinessLogicType, 'FIELDS_MAP' | 'GROUP_MAP'>;
@@ -1,6 +1,6 @@
1
1
  import { DateRanges, SelectOption } from '@veeqo/ui';
2
2
  import { DateRange } from 'react-aria-components';
3
- import { Filter, FilterGroupType } from 'src/types';
3
+ import { Filter, FilterGroupType, SortingMode } from 'src/types';
4
4
  export type BusinessLogicType = {
5
5
  DATE_RANGE_FILTERS: string[];
6
6
  SEARCH_FILTER_ID: string;
@@ -21,4 +21,5 @@ export type BusinessLogicType = {
21
21
  DEFAULT_VISIBLE_COLUMNS: string[];
22
22
  DEFAULT_HIDDEN_COLUMNS: string[];
23
23
  TABLE_DATA_URL: string | null;
24
+ SORTING_MODE: SortingMode;
24
25
  };
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),h=require("./index18.cjs"),v=require("./index19.cjs"),b=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),T=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),U=require("./index31.cjs"),L=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),e=require("./index46.cjs"),r=require("./index47.cjs"),K=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),i=require("./index52.cjs"),t=require("./index53.cjs"),Y=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),he=require("./index76.cjs"),ve=require("./index77.cjs"),be=require("./index78.cjs");exports.deleteCustomView=s.deleteCustomView;exports.patchCurrentUser=o.patchCurrentUser;exports.patchCustomView=n.patchCustomView;exports.createCustomView=a.createCustomView;exports.axios=c.axios;exports.useBusinessLogic=u.useBusinessLogic;exports.BusinessLogicManager=l.BusinessLogicManager;exports.setMockedBusinessLogic=F.setMockedBusinessLogic;exports.ErrorBoundary=d.ErrorBoundary;exports.SearchBar=q.SearchBar;exports.TableControls=g.TableControls;exports.ToastsManager=w.ToastsManager;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterTag=p.ActiveFilterTag;exports.ActiveFilterArrayTag=h.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=v.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=b.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=m.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=M.AsyncRadioFilter;exports.CheckboxFilter=y.CheckboxFilter;exports.DateRangeFilter=S.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=O.RadioFilter;exports.FiltersDropdown=U.FiltersDropdown;exports.FiltersList=L.FiltersList;exports.FilterGroup=B.FilterGroup;exports.ViewTab=f.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=I.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=E.SortableViews;exports.UnsavedChangesPill=_.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=W.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.RefreshButton=J.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=K.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=z.useModal;exports.withCSRF=Q.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Y.useDropdownManager;exports.useDuplicateActiveView=Z.useDuplicateActiveView;exports.useFilterArrayLabel=ee.useFilterArrayLabel;exports.useFilterLabel=re.useFilterLabel;exports.usePersistUnsavedChanges=ie.usePersistUnsavedChanges;exports.useStores=te.useStores;exports.useViews=se.useViews;exports.useViewUrlChange=oe.useViewUrlChange;exports.useUrlChange=ne.useUrlChange;exports.useCustomViews=ae.useCustomViews;exports.useColumns=ce.useColumns;exports.useUrlParams=ue.useUrlParams;exports.Filters=le.Filters;exports.NumberRangeFilterClass=Fe.NumberRangeFilter;exports.RangeFilter=de.RangeFilter;exports.Views=qe.Views;exports.Notifications=ge.Notifications;exports.Table=we.Table;exports.MobXProvider=Ae.MobXProvider;exports.getAsyncOptions=Ve.getAsyncOptions;exports.getFetcherFunction=Ce.getFetcherFunction;exports.isValidDateRange=pe.isValidDateRange;exports.viewsAdapter=he.viewsAdapter;exports.createAllView=ve.createAllView;exports.mockUseStores=be.mockUseStores;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index2.cjs"),o=require("./index3.cjs"),n=require("./index4.cjs"),a=require("./index5.cjs"),c=require("./index6.cjs"),u=require("./index7.cjs"),l=require("./index8.cjs"),F=require("./index9.cjs"),d=require("./index10.cjs"),q=require("./index11.cjs"),g=require("./index12.cjs"),w=require("./index13.cjs"),A=require("./index14.cjs"),V=require("./index15.cjs"),C=require("./index16.cjs"),p=require("./index17.cjs"),h=require("./index18.cjs"),v=require("./index19.cjs"),b=require("./index20.cjs"),R=require("./index21.cjs"),m=require("./index22.cjs"),M=require("./index23.cjs"),T=require("./index24.cjs"),D=require("./index25.cjs"),y=require("./index26.cjs"),S=require("./index27.cjs"),P=require("./index28.cjs"),N=require("./index29.cjs"),O=require("./index30.cjs"),U=require("./index31.cjs"),L=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),k=require("./index35.cjs"),I=require("./index36.cjs"),x=require("./index37.cjs"),H=require("./index38.cjs"),E=require("./index39.cjs"),_=require("./index40.cjs"),G=require("./index41.cjs"),W=require("./index42.cjs"),X=require("./index43.cjs"),$=require("./index44.cjs"),J=require("./index45.cjs"),K=require("./index46.cjs"),e=require("./index47.cjs"),r=require("./index48.cjs"),j=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),Y=require("./index52.cjs"),i=require("./index53.cjs"),t=require("./index54.cjs"),Z=require("./index55.cjs"),ee=require("./index56.cjs"),re=require("./index57.cjs"),ie=require("./index58.cjs"),te=require("./index59.cjs"),se=require("./index60.cjs"),oe=require("./index61.cjs"),ne=require("./index62.cjs"),ae=require("./index63.cjs"),ce=require("./index64.cjs"),ue=require("./index65.cjs"),le=require("./index66.cjs"),Fe=require("./index67.cjs"),de=require("./index68.cjs"),qe=require("./index69.cjs"),ge=require("./index70.cjs"),we=require("./index71.cjs"),Ae=require("./index72.cjs"),Ve=require("./index73.cjs"),Ce=require("./index74.cjs"),pe=require("./index75.cjs"),he=require("./index76.cjs"),ve=require("./index77.cjs"),be=require("./index78.cjs"),Re=require("./index79.cjs");exports.SortingMode=s.SortingMode;exports.deleteCustomView=o.deleteCustomView;exports.patchCurrentUser=n.patchCurrentUser;exports.patchCustomView=a.patchCustomView;exports.createCustomView=c.createCustomView;exports.axios=u.axios;exports.useBusinessLogic=l.useBusinessLogic;exports.BusinessLogicManager=F.BusinessLogicManager;exports.setMockedBusinessLogic=d.setMockedBusinessLogic;exports.ErrorBoundary=q.ErrorBoundary;exports.SearchBar=g.SearchBar;exports.TableControls=w.TableControls;exports.ToastsManager=A.ToastsManager;exports.ActiveFilters=V.ActiveFilters;exports.FilterArrayField=C.FilterArrayField;exports.FilterField=p.FilterField;exports.ActiveFilterTag=h.ActiveFilterTag;exports.ActiveFilterArrayTag=v.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=b.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=R.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=m.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=M.ActiveFilterFooter;exports.ActiveFilterHeader=T.ActiveFilterHeader;exports.AsyncCheckboxFilter=D.AsyncCheckboxFilter;exports.AsyncRadioFilter=y.AsyncRadioFilter;exports.CheckboxFilter=S.CheckboxFilter;exports.DateRangeFilter=P.DateRangeFilter;exports.MultipleFieldFilter=N.MultipleFieldFilter;exports.NumberRangeFilter=O.NumberRangeFilter;exports.RadioFilter=U.RadioFilter;exports.FiltersDropdown=L.FiltersDropdown;exports.FiltersList=B.FiltersList;exports.FilterGroup=f.FilterGroup;exports.ViewTab=k.ViewTab;exports.CreateView=I.CreateView;exports.EditDropdown=x.EditDropdown;exports.OptionsDropdown=H.OptionsDropdown;exports.PillNotifications=E.PillNotifications;exports.SortableViews=_.SortableViews;exports.UnsavedChangesPill=G.UnsavedChangesPill;exports.ViewDropdowns=W.ViewDropdowns;exports.ViewList=X.ViewList;exports.SHARING_OPTIONS=$.SHARING_OPTIONS;exports.TableManagement=J.TableManagement;exports.RefreshButton=K.RefreshButton;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=r.FilterChoiceValue;exports.SWR_HOOK_OPTIONS=r.SWR_HOOK_OPTIONS;exports.ModalProvider=j.ModalProvider;exports.ModalId=z.ModalId;exports.useModal=Q.useModal;exports.withCSRF=Y.withCSRF;exports.onlyJSON=i.onlyJSON;exports.vndAPI=i.vndAPI;exports.fetcherV1=t.fetcherV1;exports.fetcherV2=t.fetcherV2;exports.useDropdownManager=Z.useDropdownManager;exports.useDuplicateActiveView=ee.useDuplicateActiveView;exports.useFilterArrayLabel=re.useFilterArrayLabel;exports.useFilterLabel=ie.useFilterLabel;exports.usePersistUnsavedChanges=te.usePersistUnsavedChanges;exports.useStores=se.useStores;exports.useViews=oe.useViews;exports.useViewUrlChange=ne.useViewUrlChange;exports.useUrlChange=ae.useUrlChange;exports.useCustomViews=ce.useCustomViews;exports.useColumns=ue.useColumns;exports.useUrlParams=le.useUrlParams;exports.Filters=Fe.Filters;exports.NumberRangeFilterClass=de.NumberRangeFilter;exports.RangeFilter=qe.RangeFilter;exports.Views=ge.Views;exports.Notifications=we.Notifications;exports.Table=Ae.Table;exports.MobXProvider=Ve.MobXProvider;exports.getAsyncOptions=Ce.getAsyncOptions;exports.getFetcherFunction=pe.getFetcherFunction;exports.isValidDateRange=he.isValidDateRange;exports.viewsAdapter=ve.viewsAdapter;exports.createAllView=be.createAllView;exports.mockUseStores=Re.mockUseStores;
package/dist/index.js CHANGED
@@ -1,160 +1,162 @@
1
- import { deleteCustomView as o } from "./index2.js";
2
- import { patchCurrentUser as p } from "./index3.js";
3
- import { patchCustomView as i } from "./index4.js";
4
- import { createCustomView as x } from "./index5.js";
5
- import { axios as s } from "./index6.js";
6
- import { useBusinessLogic as n } from "./index7.js";
7
- import { BusinessLogicManager as F } from "./index8.js";
8
- import { setMockedBusinessLogic as d } from "./index9.js";
9
- import { ErrorBoundary as w } from "./index10.js";
10
- import { SearchBar as V } from "./index11.js";
11
- import { TableControls as h } from "./index12.js";
12
- import { ToastsManager as R } from "./index13.js";
13
- import { ActiveFilters as D } from "./index14.js";
14
- import { FilterArrayField as T } from "./index15.js";
15
- import { FilterField as O } from "./index16.js";
16
- import { ActiveFilterTag as y } from "./index17.js";
17
- import { ActiveFilterArrayTag as L } from "./index18.js";
18
- import { ActiveFilterDateRangeTag as B } from "./index19.js";
19
- import { ActiveFilterNumberRangeTag as k } from "./index20.js";
20
- import { ActiveAsyncRadioFilter as _ } from "./index21.js";
21
- import { ActiveFilterFooter as G } from "./index22.js";
22
- import { ActiveFilterHeader as K } from "./index23.js";
23
- import { AsyncCheckboxFilter as X } from "./index24.js";
24
- import { AsyncRadioFilter as q } from "./index25.js";
25
- import { CheckboxFilter as Q } from "./index26.js";
26
- import { DateRangeFilter as Z } from "./index27.js";
27
- import { MultipleFieldFilter as rr } from "./index28.js";
28
- import { NumberRangeFilter as or } from "./index29.js";
29
- import { RadioFilter as pr } from "./index30.js";
30
- import { FiltersDropdown as ir } from "./index31.js";
31
- import { FiltersList as xr } from "./index32.js";
32
- import { FilterGroup as sr } from "./index33.js";
33
- import { ViewTab as nr } from "./index34.js";
34
- import { CreateView as Fr } from "./index35.js";
35
- import { EditDropdown as dr } from "./index36.js";
36
- import { OptionsDropdown as wr } from "./index37.js";
37
- import { PillNotifications as Vr } from "./index38.js";
38
- import { SortableViews as hr } from "./index39.js";
39
- import { UnsavedChangesPill as Rr } from "./index40.js";
40
- import { ViewDropdowns as Dr } from "./index41.js";
41
- import { ViewList as Tr } from "./index42.js";
42
- import { SHARING_OPTIONS as Or } from "./index43.js";
43
- import { TableManagement as yr } from "./index44.js";
44
- import { RefreshButton as Lr } from "./index45.js";
45
- import { DateOptionMap as Br, DateValue as Ir } from "./index46.js";
46
- import { FilterChoiceValue as Hr, SWR_HOOK_OPTIONS as _r } from "./index47.js";
47
- import { ModalProvider as Gr } from "./index48.js";
48
- import { ModalId as Kr } from "./index49.js";
49
- import { useModal as Xr } from "./index50.js";
50
- import { withCSRF as qr } from "./index51.js";
51
- import { onlyJSON as Qr, vndAPI as Yr } from "./index52.js";
52
- import { fetcherV1 as $r, fetcherV2 as re } from "./index53.js";
53
- import { useDropdownManager as oe } from "./index54.js";
54
- import { useDuplicateActiveView as pe } from "./index55.js";
55
- import { useFilterArrayLabel as ie } from "./index56.js";
56
- import { useFilterLabel as xe } from "./index57.js";
57
- import { usePersistUnsavedChanges as se } from "./index58.js";
58
- import { useStores as ne } from "./index59.js";
59
- import { useViews as Fe } from "./index60.js";
60
- import { useViewUrlChange as de } from "./index61.js";
61
- import { useUrlChange as we } from "./index62.js";
62
- import { useCustomViews as Ve } from "./index63.js";
63
- import { useColumns as he } from "./index64.js";
64
- import { useUrlParams as Re } from "./index65.js";
65
- import { Filters as De } from "./index66.js";
66
- import { NumberRangeFilter as Te } from "./index67.js";
67
- import { RangeFilter as Oe } from "./index68.js";
68
- import { Views as ye } from "./index69.js";
69
- import { Notifications as Le } from "./index70.js";
70
- import { Table as Be } from "./index71.js";
71
- import { MobXProvider as ke } from "./index72.js";
72
- import { getAsyncOptions as _e } from "./index73.js";
73
- import { getFetcherFunction as Ge } from "./index74.js";
74
- import { isValidDateRange as Ke } from "./index75.js";
75
- import { viewsAdapter as Xe } from "./index76.js";
76
- import { createAllView as qe } from "./index77.js";
77
- import { mockUseStores as Qe } from "./index78.js";
1
+ import { SortingMode as o } from "./index2.js";
2
+ import { deleteCustomView as p } from "./index3.js";
3
+ import { patchCurrentUser as i } from "./index4.js";
4
+ import { patchCustomView as x } from "./index5.js";
5
+ import { createCustomView as s } from "./index6.js";
6
+ import { axios as n } from "./index7.js";
7
+ import { useBusinessLogic as F } from "./index8.js";
8
+ import { BusinessLogicManager as d } from "./index9.js";
9
+ import { setMockedBusinessLogic as w } from "./index10.js";
10
+ import { ErrorBoundary as V } from "./index11.js";
11
+ import { SearchBar as h } from "./index12.js";
12
+ import { TableControls as R } from "./index13.js";
13
+ import { ToastsManager as M } from "./index14.js";
14
+ import { ActiveFilters as S } from "./index15.js";
15
+ import { FilterArrayField as N } from "./index16.js";
16
+ import { FilterField as y } from "./index17.js";
17
+ import { ActiveFilterTag as L } from "./index18.js";
18
+ import { ActiveFilterArrayTag as B } from "./index19.js";
19
+ import { ActiveFilterDateRangeTag as k } from "./index20.js";
20
+ import { ActiveFilterNumberRangeTag as _ } from "./index21.js";
21
+ import { ActiveAsyncRadioFilter as G } from "./index22.js";
22
+ import { ActiveFilterFooter as K } from "./index23.js";
23
+ import { ActiveFilterHeader as X } from "./index24.js";
24
+ import { AsyncCheckboxFilter as q } from "./index25.js";
25
+ import { AsyncRadioFilter as Q } from "./index26.js";
26
+ import { CheckboxFilter as Z } from "./index27.js";
27
+ import { DateRangeFilter as rr } from "./index28.js";
28
+ import { MultipleFieldFilter as or } from "./index29.js";
29
+ import { NumberRangeFilter as pr } from "./index30.js";
30
+ import { RadioFilter as ir } from "./index31.js";
31
+ import { FiltersDropdown as xr } from "./index32.js";
32
+ import { FiltersList as sr } from "./index33.js";
33
+ import { FilterGroup as nr } from "./index34.js";
34
+ import { ViewTab as Fr } from "./index35.js";
35
+ import { CreateView as dr } from "./index36.js";
36
+ import { EditDropdown as wr } from "./index37.js";
37
+ import { OptionsDropdown as Vr } from "./index38.js";
38
+ import { PillNotifications as hr } from "./index39.js";
39
+ import { SortableViews as Rr } from "./index40.js";
40
+ import { UnsavedChangesPill as Mr } from "./index41.js";
41
+ import { ViewDropdowns as Sr } from "./index42.js";
42
+ import { ViewList as Nr } from "./index43.js";
43
+ import { SHARING_OPTIONS as yr } from "./index44.js";
44
+ import { TableManagement as Lr } from "./index45.js";
45
+ import { RefreshButton as Br } from "./index46.js";
46
+ import { DateOptionMap as kr, DateValue as Hr } from "./index47.js";
47
+ import { FilterChoiceValue as Er, SWR_HOOK_OPTIONS as Gr } from "./index48.js";
48
+ import { ModalProvider as Kr } from "./index49.js";
49
+ import { ModalId as Xr } from "./index50.js";
50
+ import { useModal as qr } from "./index51.js";
51
+ import { withCSRF as Qr } from "./index52.js";
52
+ import { onlyJSON as Zr, vndAPI as $r } from "./index53.js";
53
+ import { fetcherV1 as ee, fetcherV2 as oe } from "./index54.js";
54
+ import { useDropdownManager as pe } from "./index55.js";
55
+ import { useDuplicateActiveView as ie } from "./index56.js";
56
+ import { useFilterArrayLabel as xe } from "./index57.js";
57
+ import { useFilterLabel as se } from "./index58.js";
58
+ import { usePersistUnsavedChanges as ne } from "./index59.js";
59
+ import { useStores as Fe } from "./index60.js";
60
+ import { useViews as de } from "./index61.js";
61
+ import { useViewUrlChange as we } from "./index62.js";
62
+ import { useUrlChange as Ve } from "./index63.js";
63
+ import { useCustomViews as he } from "./index64.js";
64
+ import { useColumns as Re } from "./index65.js";
65
+ import { useUrlParams as Me } from "./index66.js";
66
+ import { Filters as Se } from "./index67.js";
67
+ import { NumberRangeFilter as Ne } from "./index68.js";
68
+ import { RangeFilter as ye } from "./index69.js";
69
+ import { Views as Le } from "./index70.js";
70
+ import { Notifications as Be } from "./index71.js";
71
+ import { Table as ke } from "./index72.js";
72
+ import { MobXProvider as _e } from "./index73.js";
73
+ import { getAsyncOptions as Ge } from "./index74.js";
74
+ import { getFetcherFunction as Ke } from "./index75.js";
75
+ import { isValidDateRange as Xe } from "./index76.js";
76
+ import { viewsAdapter as qe } from "./index77.js";
77
+ import { createAllView as Qe } from "./index78.js";
78
+ import { mockUseStores as Ze } from "./index79.js";
78
79
  export {
79
- _ as ActiveAsyncRadioFilter,
80
- L as ActiveFilterArrayTag,
81
- B as ActiveFilterDateRangeTag,
82
- G as ActiveFilterFooter,
83
- K as ActiveFilterHeader,
84
- k as ActiveFilterNumberRangeTag,
85
- y as ActiveFilterTag,
86
- D as ActiveFilters,
87
- X as AsyncCheckboxFilter,
88
- q as AsyncRadioFilter,
89
- F as BusinessLogicManager,
90
- Q as CheckboxFilter,
91
- Fr as CreateView,
92
- Br as DateOptionMap,
93
- Z as DateRangeFilter,
94
- Ir as DateValue,
95
- dr as EditDropdown,
96
- w as ErrorBoundary,
97
- T as FilterArrayField,
98
- Hr as FilterChoiceValue,
99
- O as FilterField,
100
- sr as FilterGroup,
101
- De as Filters,
102
- ir as FiltersDropdown,
103
- xr as FiltersList,
104
- ke as MobXProvider,
105
- Kr as ModalId,
106
- Gr as ModalProvider,
107
- rr as MultipleFieldFilter,
108
- Le as Notifications,
109
- or as NumberRangeFilter,
110
- Te as NumberRangeFilterClass,
111
- wr as OptionsDropdown,
112
- Vr as PillNotifications,
113
- pr as RadioFilter,
114
- Oe as RangeFilter,
115
- Lr as RefreshButton,
116
- Or as SHARING_OPTIONS,
117
- _r as SWR_HOOK_OPTIONS,
118
- V as SearchBar,
119
- hr as SortableViews,
120
- Be as Table,
121
- h as TableControls,
122
- yr as TableManagement,
123
- R as ToastsManager,
124
- Rr as UnsavedChangesPill,
125
- Dr as ViewDropdowns,
126
- Tr as ViewList,
127
- nr as ViewTab,
128
- ye as Views,
129
- s as axios,
130
- qe as createAllView,
131
- x as createCustomView,
132
- o as deleteCustomView,
133
- $r as fetcherV1,
134
- re as fetcherV2,
135
- _e as getAsyncOptions,
136
- Ge as getFetcherFunction,
137
- Ke as isValidDateRange,
138
- Qe as mockUseStores,
139
- Qr as onlyJSON,
140
- p as patchCurrentUser,
141
- i as patchCustomView,
142
- d as setMockedBusinessLogic,
143
- n as useBusinessLogic,
144
- he as useColumns,
145
- Ve as useCustomViews,
146
- oe as useDropdownManager,
147
- pe as useDuplicateActiveView,
148
- ie as useFilterArrayLabel,
149
- xe as useFilterLabel,
150
- Xr as useModal,
151
- se as usePersistUnsavedChanges,
152
- ne as useStores,
153
- we as useUrlChange,
154
- Re as useUrlParams,
155
- de as useViewUrlChange,
156
- Fe as useViews,
157
- Xe as viewsAdapter,
158
- Yr as vndAPI,
159
- qr as withCSRF
80
+ G as ActiveAsyncRadioFilter,
81
+ B as ActiveFilterArrayTag,
82
+ k as ActiveFilterDateRangeTag,
83
+ K as ActiveFilterFooter,
84
+ X as ActiveFilterHeader,
85
+ _ as ActiveFilterNumberRangeTag,
86
+ L as ActiveFilterTag,
87
+ S as ActiveFilters,
88
+ q as AsyncCheckboxFilter,
89
+ Q as AsyncRadioFilter,
90
+ d as BusinessLogicManager,
91
+ Z as CheckboxFilter,
92
+ dr as CreateView,
93
+ kr as DateOptionMap,
94
+ rr as DateRangeFilter,
95
+ Hr as DateValue,
96
+ wr as EditDropdown,
97
+ V as ErrorBoundary,
98
+ N as FilterArrayField,
99
+ Er as FilterChoiceValue,
100
+ y as FilterField,
101
+ nr as FilterGroup,
102
+ Se as Filters,
103
+ xr as FiltersDropdown,
104
+ sr as FiltersList,
105
+ _e as MobXProvider,
106
+ Xr as ModalId,
107
+ Kr as ModalProvider,
108
+ or as MultipleFieldFilter,
109
+ Be as Notifications,
110
+ pr as NumberRangeFilter,
111
+ Ne as NumberRangeFilterClass,
112
+ Vr as OptionsDropdown,
113
+ hr as PillNotifications,
114
+ ir as RadioFilter,
115
+ ye as RangeFilter,
116
+ Br as RefreshButton,
117
+ yr as SHARING_OPTIONS,
118
+ Gr as SWR_HOOK_OPTIONS,
119
+ h as SearchBar,
120
+ Rr as SortableViews,
121
+ o as SortingMode,
122
+ ke as Table,
123
+ R as TableControls,
124
+ Lr as TableManagement,
125
+ M as ToastsManager,
126
+ Mr as UnsavedChangesPill,
127
+ Sr as ViewDropdowns,
128
+ Nr as ViewList,
129
+ Fr as ViewTab,
130
+ Le as Views,
131
+ n as axios,
132
+ Qe as createAllView,
133
+ s as createCustomView,
134
+ p as deleteCustomView,
135
+ ee as fetcherV1,
136
+ oe as fetcherV2,
137
+ Ge as getAsyncOptions,
138
+ Ke as getFetcherFunction,
139
+ Xe as isValidDateRange,
140
+ Ze as mockUseStores,
141
+ Zr as onlyJSON,
142
+ i as patchCurrentUser,
143
+ x as patchCustomView,
144
+ w as setMockedBusinessLogic,
145
+ F as useBusinessLogic,
146
+ Re as useColumns,
147
+ he as useCustomViews,
148
+ pe as useDropdownManager,
149
+ ie as useDuplicateActiveView,
150
+ xe as useFilterArrayLabel,
151
+ se as useFilterLabel,
152
+ qr as useModal,
153
+ ne as usePersistUnsavedChanges,
154
+ Fe as useStores,
155
+ Ve as useUrlChange,
156
+ Me as useUrlParams,
157
+ we as useViewUrlChange,
158
+ de as useViews,
159
+ qe as viewsAdapter,
160
+ $r as vndAPI,
161
+ Qr as withCSRF
160
162
  };
package/dist/index10.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("react");class n extends s.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(r,e){console.log(r,e)}render(){const{hasError:r}=this.state,{children:e,errorComponent:t}=this.props;return r?t||o.jsx("p",{children:"Error"}):e}}exports.ErrorBoundary=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("@veeqo/ui"),_=require("./index2.cjs"),d=require("./index9.cjs"),o=require("@veeqo/components"),n=["due_date"],r=["product_count"],p="filter[search]",E="sort",a=s.DateRanges.TODAY,T=s.getDateRange(a),m=s.DATE_RANGE_OPTIONS.find(({value:e})=>e===a),A="25",h="1",L="order",b=200,g=[10,25,50,100],y="page[number]",D="page[size]",S=["order_id","shipping_rates","package","action"],M=["price"],R="api/v2/orders",F=_.SortingMode.MONOLITH,i={DATE_RANGE_FILTERS:n,SEARCH_FILTER_ID:p,SORT_FILTER_ID:E,NUMBER_RANGE_FILTERS:r,DEFAULT_DATE_SELECTION:a,DEFAULT_DATE_RANGE:T,DEFAULT_DATE_PRESET:m,DEFAULT_PAGE_SIZE:A,DEFAULT_PAGE_NUMBER:h,VIEW_TYPE:L,FILTERS_DEBOUCE_INTERVAL_MS:b,PAGE_SIZE_OPTIONS:g,PAGE_NUMBER_FILTER_ID:y,PAGE_SIZE_FILTER_ID:D,DEFAULT_VISIBLE_COLUMNS:S,DEFAULT_HIDDEN_COLUMNS:M,TABLE_DATA_URL:R,SORTING_MODE:F},c=()=>{const e=new Map,l=new Map;return e.set("order_number",{id:"order_number",label:"Order number",filterType:"text",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"})}),l.set("order",{id:"order",label:"Order",fields:[e.get("order_number")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"product-menu"})}),e.set("shoe_size",{id:"shoe_size",label:"Shoe size",filterType:"radio",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"}),options:[{label:"One",value:"1"},{label:"Two",value:"2"},{label:"Three",value:"3"},{label:"Four",value:"4"},{label:"Five",value:"5"}]}),l.set("shoe",{id:"shoe",label:"Shoe",fields:[e.get("shoe_size")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"})}),e.set("channel_id",{id:"channel_id",label:"Channel",filterType:"checkbox",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"}),fetchAsyncFilterOptions:{URL:"/channels",labelProperty:"name",valueProperty:"id",fetcher:"fetcherV1"}}),l.set("channel",{id:"channel",label:"Store",fields:[e.get("channel_id")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"fba"})}),e.set("product_count",{id:"product_count",label:"Product count",filterType:"number_range",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"}),options:[{label:"Min",value:"0"},{label:"Max",value:"100"}]}),l.set("product_count",{id:"product_count",label:"Product count",fields:[e.get("product_count")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"reports"})}),e.set("due_date",{id:"due_date",label:"Due date",filterType:"date_range",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"}),options:[{label:"Today",value:"TODAY"},{label:"Yesterday",value:"YESTERDAY"},{label:"Last 7 days",value:"LAST_7_DAYS"},{label:"Last 30 days",value:"LAST_30_DAYS"},{label:"Last 90 days",value:"LAST_90_DAYS"},{label:"Last month",value:"LAST_MONTH"},{label:"Last 12 months",value:"LAST_12_MONTHS"},{label:"Week to date",value:"WEEK_TO_DATE"},{label:"Month to date",value:"MONTH_TO_DATE"},{label:"Year to date",value:"YEAR_TO_DATE"}]}),l.set("due",{id:"due",label:"Due",fields:[e.get("due_date")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"date"})}),e.set("max_products",{id:"max_products",label:"Max products",filterType:"number",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"products"})}),l.set("max_count",{id:"max_count",label:"Max count",fields:[e.get("max_products")],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"reports"})}),{FIELDS_MAP:e,GROUP_MAP:l}},I=e=>{const l=c(),u={...i,...l,...e};d.BusinessLogicManager.setBusinessLogic(u)};exports.DATE_RANGE_FILTERS=n;exports.NUMBER_RANGE_FILTERS=r;exports.customAppBusinessLogic=i;exports.generateMockedFilterMaps=c;exports.setMockedBusinessLogic=I;
package/dist/index10.js CHANGED
@@ -1,20 +1,186 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { Component as s } from "react";
3
- class i extends s {
4
- constructor(r) {
5
- super(r), this.state = { hasError: !1 };
6
- }
7
- static getDerivedStateFromError() {
8
- return { hasError: !0 };
9
- }
10
- componentDidCatch(r, o) {
11
- console.log(r, o);
12
- }
13
- render() {
14
- const { hasError: r } = this.state, { children: o, errorComponent: t } = this.props;
15
- return r ? t || /* @__PURE__ */ e("p", { children: "Error" }) : o;
16
- }
17
- }
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { DATE_RANGE_OPTIONS as r, getDateRange as n, DateRanges as i } from "@veeqo/ui";
3
+ import { SortingMode as _ } from "./index2.js";
4
+ import { BusinessLogicManager as d } from "./index9.js";
5
+ import { VeeqoCommon as l } from "@veeqo/components";
6
+ const c = ["due_date"], u = ["product_count"], p = "filter[search]", E = "sort", o = i.TODAY, T = n(o), A = r.find(
7
+ ({ value: e }) => e === o
8
+ ), h = "25", m = "1", b = "order", L = 200, y = [10, 25, 50, 100], g = "page[number]", D = "page[size]", S = ["order_id", "shipping_rates", "package", "action"], f = ["price"], F = "api/v2/orders", M = _.MONOLITH, O = {
9
+ DATE_RANGE_FILTERS: c,
10
+ SEARCH_FILTER_ID: p,
11
+ SORT_FILTER_ID: E,
12
+ NUMBER_RANGE_FILTERS: u,
13
+ DEFAULT_DATE_SELECTION: o,
14
+ DEFAULT_DATE_RANGE: T,
15
+ DEFAULT_DATE_PRESET: A,
16
+ DEFAULT_PAGE_SIZE: h,
17
+ DEFAULT_PAGE_NUMBER: m,
18
+ VIEW_TYPE: b,
19
+ FILTERS_DEBOUCE_INTERVAL_MS: L,
20
+ PAGE_SIZE_OPTIONS: y,
21
+ PAGE_NUMBER_FILTER_ID: g,
22
+ PAGE_SIZE_FILTER_ID: D,
23
+ DEFAULT_VISIBLE_COLUMNS: S,
24
+ DEFAULT_HIDDEN_COLUMNS: f,
25
+ TABLE_DATA_URL: F,
26
+ SORTING_MODE: M
27
+ }, R = () => {
28
+ const e = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
29
+ return e.set("order_number", {
30
+ id: "order_number",
31
+ label: "Order number",
32
+ filterType: "text",
33
+ isFilterAllowed: !0,
34
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" })
35
+ }), a.set("order", {
36
+ id: "order",
37
+ label: "Order",
38
+ fields: [e.get("order_number")],
39
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "product-menu" })
40
+ }), e.set("shoe_size", {
41
+ id: "shoe_size",
42
+ label: "Shoe size",
43
+ filterType: "radio",
44
+ isFilterAllowed: !0,
45
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" }),
46
+ options: [
47
+ {
48
+ label: "One",
49
+ value: "1"
50
+ },
51
+ {
52
+ label: "Two",
53
+ value: "2"
54
+ },
55
+ {
56
+ label: "Three",
57
+ value: "3"
58
+ },
59
+ {
60
+ label: "Four",
61
+ value: "4"
62
+ },
63
+ {
64
+ label: "Five",
65
+ value: "5"
66
+ }
67
+ ]
68
+ }), a.set("shoe", {
69
+ id: "shoe",
70
+ label: "Shoe",
71
+ fields: [e.get("shoe_size")],
72
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" })
73
+ }), e.set("channel_id", {
74
+ id: "channel_id",
75
+ label: "Channel",
76
+ filterType: "checkbox",
77
+ isFilterAllowed: !0,
78
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" }),
79
+ fetchAsyncFilterOptions: {
80
+ URL: "/channels",
81
+ labelProperty: "name",
82
+ valueProperty: "id",
83
+ fetcher: "fetcherV1"
84
+ }
85
+ }), a.set("channel", {
86
+ id: "channel",
87
+ label: "Store",
88
+ fields: [e.get("channel_id")],
89
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "fba" })
90
+ }), e.set("product_count", {
91
+ id: "product_count",
92
+ label: "Product count",
93
+ filterType: "number_range",
94
+ isFilterAllowed: !0,
95
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" }),
96
+ options: [
97
+ {
98
+ label: "Min",
99
+ value: "0"
100
+ },
101
+ {
102
+ label: "Max",
103
+ value: "100"
104
+ }
105
+ ]
106
+ }), a.set("product_count", {
107
+ id: "product_count",
108
+ label: "Product count",
109
+ fields: [e.get("product_count")],
110
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "reports" })
111
+ }), e.set("due_date", {
112
+ id: "due_date",
113
+ label: "Due date",
114
+ filterType: "date_range",
115
+ isFilterAllowed: !0,
116
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "filter" }),
117
+ options: [
118
+ {
119
+ label: "Today",
120
+ value: "TODAY"
121
+ },
122
+ {
123
+ label: "Yesterday",
124
+ value: "YESTERDAY"
125
+ },
126
+ {
127
+ label: "Last 7 days",
128
+ value: "LAST_7_DAYS"
129
+ },
130
+ {
131
+ label: "Last 30 days",
132
+ value: "LAST_30_DAYS"
133
+ },
134
+ {
135
+ label: "Last 90 days",
136
+ value: "LAST_90_DAYS"
137
+ },
138
+ {
139
+ label: "Last month",
140
+ value: "LAST_MONTH"
141
+ },
142
+ {
143
+ label: "Last 12 months",
144
+ value: "LAST_12_MONTHS"
145
+ },
146
+ {
147
+ label: "Week to date",
148
+ value: "WEEK_TO_DATE"
149
+ },
150
+ {
151
+ label: "Month to date",
152
+ value: "MONTH_TO_DATE"
153
+ },
154
+ {
155
+ label: "Year to date",
156
+ value: "YEAR_TO_DATE"
157
+ }
158
+ ]
159
+ }), a.set("due", {
160
+ id: "due",
161
+ label: "Due",
162
+ fields: [e.get("due_date")],
163
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "date" })
164
+ }), e.set("max_products", {
165
+ id: "max_products",
166
+ label: "Max products",
167
+ filterType: "number",
168
+ isFilterAllowed: !0,
169
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "products" })
170
+ }), a.set("max_count", {
171
+ id: "max_count",
172
+ label: "Max count",
173
+ fields: [e.get("max_products")],
174
+ glyph: /* @__PURE__ */ t(l.Glyph, { name: "reports" })
175
+ }), { FIELDS_MAP: e, GROUP_MAP: a };
176
+ }, U = (e) => {
177
+ const a = R(), s = { ...O, ...a, ...e };
178
+ d.setBusinessLogic(s);
179
+ };
18
180
  export {
19
- i as ErrorBoundary
181
+ c as DATE_RANGE_FILTERS,
182
+ u as NUMBER_RANGE_FILTERS,
183
+ O as customAppBusinessLogic,
184
+ R as generateMockedFilterMaps,
185
+ U as setMockedBusinessLogic
20
186
  };
package/dist/index100.cjs CHANGED
@@ -1 +1,19 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@veeqo/ui"),i=require("./index102.cjs"),n=r.theme.colors.secondary.blue.base,a=({onClick:t})=>e.jsx(i.Notification,{children:e.jsx(i.Pill,{children:e.jsxs(r.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(i.Glyph,{ariaLabel:"info",name:"info",color:n}),e.jsxs(i.Wrap,{children:[e.jsx(i.Text,{variant:"body",margin:"0 4px 0 0",children:"You are currently in a"}),e.jsx(i.Bold,{variant:"bodyBoldDark",children:"draft view"}),e.jsx(i.Hint,{variant:"hintText",children:"Apply filters and save these by creating a custom view"})]}),e.jsx(i.Button,{variant:"primary",onClick:t,size:"sm",children:"Create view"})]})})});exports.DraftPill=a;
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;