@veeqo/transfigure 0.0.1 → 0.0.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 (150) hide show
  1. package/README.md +2 -53
  2. package/dist/BusinessLogic/mocks.d.ts +3 -3
  3. package/dist/BusinessLogic/types.d.ts +3 -2
  4. package/dist/components/Filters/ActiveFilters/Categories/index.d.ts +2 -0
  5. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/ActiveAsyncCheckboxFilter.d.ts +8 -0
  6. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/index.d.ts +1 -0
  7. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/ActiveAsyncRadioFilter.d.ts +8 -0
  8. package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/index.d.ts +1 -0
  9. package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/FilterNumberRangeFilter.d.ts +1 -1
  10. package/dist/components/Filters/ActiveFilters/Variants/index.d.ts +5 -0
  11. package/dist/components/Filters/ActiveFilters/index.d.ts +2 -3
  12. package/dist/components/Filters/Fields/index.d.ts +0 -6
  13. package/dist/components/Filters/{Fields/FilterGroup → FilterGroup}/FilterGroup.d.ts +1 -1
  14. package/dist/components/Filters/FilterGroup/index.d.ts +1 -0
  15. package/dist/components/Filters/index.d.ts +1 -0
  16. package/dist/components/TableControls/TableControls.d.ts +1 -0
  17. package/dist/components/TableControls/index.d.ts +1 -0
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +75 -75
  21. package/dist/index10.js +3 -12
  22. package/dist/index11.cjs +1 -1
  23. package/dist/index11.js +19 -19
  24. package/dist/index12.cjs +1 -1
  25. package/dist/index12.js +42 -21
  26. package/dist/index13.cjs +1 -1
  27. package/dist/index13.js +23 -38
  28. package/dist/index14.cjs +1 -1
  29. package/dist/index14.js +39 -37
  30. package/dist/index15.cjs +1 -1
  31. package/dist/index15.js +36 -54
  32. package/dist/index16.cjs +1 -1
  33. package/dist/index16.js +32 -46
  34. package/dist/index17.cjs +1 -1
  35. package/dist/index17.js +50 -42
  36. package/dist/index18.cjs +1 -1
  37. package/dist/index18.js +39 -50
  38. package/dist/index19.cjs +1 -1
  39. package/dist/index19.js +59 -37
  40. package/dist/index20.cjs +1 -1
  41. package/dist/index20.js +53 -37
  42. package/dist/index21.cjs +1 -1
  43. package/dist/index21.js +45 -53
  44. package/dist/index22.cjs +1 -1
  45. package/dist/index22.js +43 -33
  46. package/dist/index23.cjs +1 -1
  47. package/dist/index23.js +56 -57
  48. package/dist/index24.cjs +1 -1
  49. package/dist/index24.js +57 -18
  50. package/dist/index25.cjs +1 -1
  51. package/dist/index25.js +38 -31
  52. package/dist/index26.cjs +1 -1
  53. package/dist/index26.js +55 -39
  54. package/dist/index27.cjs +1 -1
  55. package/dist/index27.js +52 -34
  56. package/dist/index28.cjs +1 -1
  57. package/dist/index28.js +81 -47
  58. package/dist/index29.cjs +1 -1
  59. package/dist/index29.js +36 -107
  60. package/dist/index3.js +1 -3
  61. package/dist/index30.cjs +1 -1
  62. package/dist/index30.js +31 -31
  63. package/dist/index31.cjs +1 -1
  64. package/dist/index31.js +10 -30
  65. package/dist/index32.cjs +1 -1
  66. package/dist/index32.js +40 -14
  67. package/dist/index33.js +49 -48
  68. package/dist/index34.js +12 -11
  69. package/dist/index35.js +104 -39
  70. package/dist/index36.cjs +1 -1
  71. package/dist/index36.js +47 -24
  72. package/dist/index37.cjs +1 -1
  73. package/dist/index37.js +43 -22
  74. package/dist/index38.cjs +1 -1
  75. package/dist/index38.js +22 -27
  76. package/dist/index39.cjs +1 -1
  77. package/dist/index39.js +67 -26
  78. package/dist/index4.js +1 -8
  79. package/dist/index40.js +71 -21
  80. package/dist/index41.cjs +1 -1
  81. package/dist/index41.js +31 -18
  82. package/dist/index42.js +2 -8
  83. package/dist/index43.js +13 -1
  84. package/dist/index45.js +14 -12
  85. package/dist/index48.js +1 -3
  86. package/dist/index5.js +2 -9
  87. package/dist/index50.js +3 -12
  88. package/dist/index51.js +8 -42
  89. package/dist/index52.js +20 -35
  90. package/dist/index53.js +16 -25
  91. package/dist/index54.js +18 -27
  92. package/dist/index55.js +31 -36
  93. package/dist/index57.js +22 -32
  94. package/dist/index58.js +14 -15
  95. package/dist/index59.js +2 -10
  96. package/dist/index6.js +8 -40
  97. package/dist/index60.cjs +1 -1
  98. package/dist/index60.js +226 -209
  99. package/dist/index61.js +5 -9
  100. package/dist/index62.js +3 -9
  101. package/dist/index65.js +1 -6
  102. package/dist/index66.js +1 -4
  103. package/dist/index67.js +1 -3
  104. package/dist/index69.js +28 -23
  105. package/dist/index75.cjs +1 -1
  106. package/dist/index75.js +2 -4
  107. package/dist/index76.js +26 -16
  108. package/dist/index77.cjs +1 -19
  109. package/dist/index77.js +14 -29
  110. package/dist/index78.cjs +19 -1
  111. package/dist/index78.js +24 -16
  112. package/dist/index79.cjs +1 -1
  113. package/dist/index79.js +22 -9
  114. package/dist/index80.cjs +78 -10
  115. package/dist/index80.js +92 -13
  116. package/dist/index81.cjs +10 -78
  117. package/dist/index81.js +13 -94
  118. package/dist/index83.cjs +1 -80
  119. package/dist/index83.js +35 -96
  120. package/dist/index84.cjs +1 -1
  121. package/dist/index84.js +62 -35
  122. package/dist/index85.js +1 -3
  123. package/dist/index86.cjs +80 -7
  124. package/dist/index86.js +93 -10
  125. package/dist/index87.cjs +7 -0
  126. package/dist/index87.js +12 -0
  127. package/dist/index9.cjs +1 -1
  128. package/dist/index9.js +99 -84
  129. package/dist/mobx/Filters/Filters.d.ts +5 -0
  130. package/dist/mocks/internal/mockUseStores/index.d.ts +1 -0
  131. package/dist/mocks/internal/mockUseStores/mockUseStores.d.ts +6 -0
  132. package/dist/types.d.ts +1 -1
  133. package/package.json +4 -5
  134. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/AsyncInlineCheckboxFilter.d.ts +0 -8
  135. package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/index.d.ts +0 -1
  136. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/AsyncInlineRadioFilter.d.ts +0 -8
  137. package/dist/components/Filters/Fields/AsyncInlineRadioFilter/index.d.ts +0 -1
  138. package/dist/components/Filters/Fields/FilterGroup/index.d.ts +0 -1
  139. package/dist/components/Table/Table.d.ts +0 -1
  140. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/FilterArrayField.d.ts +0 -0
  141. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/index.d.ts +0 -0
  142. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/FilterField.d.ts +0 -0
  143. /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/index.d.ts +0 -0
  144. /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/ActiveFilterArrayTag.d.ts +0 -0
  145. /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/index.d.ts +0 -0
  146. /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/ActiveFilterDateRangeTag.d.ts +0 -0
  147. /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/index.d.ts +0 -0
  148. /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/ActiveFilterNumberRangeTag.d.ts +0 -0
  149. /package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/index.d.ts +0 -0
  150. /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/index.d.ts +0 -0
package/README.md CHANGED
@@ -1,54 +1,3 @@
1
- # React + TypeScript + Vite
1
+ # VQTransfigure
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config({
16
- extends: [
17
- // Remove ...tseslint.configs.recommended and replace with this
18
- ...tseslint.configs.recommendedTypeChecked,
19
- // Alternatively, use this for stricter rules
20
- ...tseslint.configs.strictTypeChecked,
21
- // Optionally, add this for stylistic rules
22
- ...tseslint.configs.stylisticTypeChecked,
23
- ],
24
- languageOptions: {
25
- // other options...
26
- parserOptions: {
27
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
- tsconfigRootDir: import.meta.dirname,
29
- },
30
- },
31
- })
32
- ```
33
-
34
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
-
36
- ```js
37
- // eslint.config.js
38
- import reactX from 'eslint-plugin-react-x'
39
- import reactDom from 'eslint-plugin-react-dom'
40
-
41
- export default tseslint.config({
42
- plugins: {
43
- // Add the react-x and react-dom plugins
44
- 'react-x': reactX,
45
- 'react-dom': reactDom,
46
- },
47
- rules: {
48
- // other rules...
49
- // Enable its recommended typescript rules
50
- ...reactX.configs['recommended-typescript'].rules,
51
- ...reactDom.configs.recommended.rules,
52
- },
53
- })
54
- ```
3
+ WIP
@@ -1,10 +1,10 @@
1
1
  import { BusinessLogicType } from './types';
2
- import { Filter, FilterGroup } from 'src/types';
2
+ import { Filter, FilterGroupType } from 'src/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'>;
6
6
  export declare const generateMockedFilterMaps: () => {
7
7
  FIELDS_MAP: Map<string, Filter>;
8
- GROUP_MAP: Map<string, FilterGroup>;
8
+ GROUP_MAP: Map<string, FilterGroupType>;
9
9
  };
10
- export declare const setMockedBusinessLogic: () => void;
10
+ export declare const setMockedBusinessLogic: (mock?: Partial<BusinessLogicType>) => void;
@@ -1,7 +1,7 @@
1
1
  import { DateRanges } from '../../node_modules/@veeqo/ui';
2
2
  import { SelectOption } from '../../node_modules/@veeqo/ui/dist/components/Select/Select';
3
3
  import { DateRange } from '../../node_modules/react-aria-components';
4
- import { Filter, FilterGroup } from 'src/types';
4
+ import { Filter, FilterGroupType } from 'src/types';
5
5
  export type BusinessLogicType = {
6
6
  DATE_RANGE_FILTERS: string[];
7
7
  SEARCH_FILTER_ID: string;
@@ -13,6 +13,7 @@ export type BusinessLogicType = {
13
13
  DEFAULT_PAGE_NUMBER: string;
14
14
  VIEW_TYPE: 'order' | 'inventory';
15
15
  FIELDS_MAP: Map<string, Filter>;
16
- GROUP_MAP: Map<string, FilterGroup>;
16
+ GROUP_MAP: Map<string, FilterGroupType>;
17
17
  FILTERS_DEBOUCE_INTERVAL_MS: number;
18
+ PAGE_SIZE_OPTIONS: number[];
18
19
  };
@@ -0,0 +1,2 @@
1
+ export { FilterArrayField } from './FilterArrayField';
2
+ export { FilterField } from './FilterField';
@@ -0,0 +1,8 @@
1
+ import { Filter } from 'src/types';
2
+ type ActiveAsyncCheckboxFilterProps = {
3
+ field: Filter;
4
+ editedValue: string[];
5
+ setEditedValue: (value: string[]) => void;
6
+ };
7
+ export declare const ActiveAsyncCheckboxFilter: ({ field, editedValue, setEditedValue }: ActiveAsyncCheckboxFilterProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { ActiveAsyncCheckboxFilter } from './ActiveAsyncCheckboxFilter';
@@ -0,0 +1,8 @@
1
+ import { Filter } from 'src/types';
2
+ type ActiveAsyncRadioFilterProps = {
3
+ field: Filter;
4
+ editedValue: string;
5
+ setEditedValue: (value: string) => void;
6
+ };
7
+ export declare const ActiveAsyncRadioFilter: ({ field, editedValue, setEditedValue }: ActiveAsyncRadioFilterProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { ActiveAsyncRadioFilter } from './ActiveAsyncRadioFilter';
@@ -1,5 +1,5 @@
1
1
  import { Filter } from 'src/types';
2
- import { NumberRangeFilter as NumberRangeFilterClass } from '../../../../mobx/NumberRangeFilter/NumberRangeFilter';
2
+ import { NumberRangeFilter as NumberRangeFilterClass } from '../../../../../../mobx/NumberRangeFilter/NumberRangeFilter';
3
3
  type FilterNumberRangeFilterProps = {
4
4
  data: Filter;
5
5
  editedValue?: NumberRangeFilterClass;
@@ -0,0 +1,5 @@
1
+ export * from './ActiveFilterArrayTag';
2
+ export * from './ActiveFilterDateRangeTag';
3
+ export * from './ActiveFilterNumberRangeTag';
4
+ export * from './ActiveAsyncCheckboxFilter';
5
+ export * from './ActiveAsyncRadioFilter';
@@ -1,5 +1,4 @@
1
1
  export * from './ActiveFilterTag';
2
- export * from './ActiveFilterArrayTag';
3
- export * from './ActiveFilterDateRangeTag';
4
- export * from './ActiveFilterNumberRangeTag';
5
2
  export * from './ActiveFilters';
3
+ export * from './Categories';
4
+ export * from './Variants';
@@ -1,13 +1,7 @@
1
1
  export * from './AsyncCheckboxFilter';
2
- export * from './AsyncInlineCheckboxFilter';
3
- export * from './AsyncInlineRadioFilter';
4
2
  export * from './AsyncRadioFilter';
5
3
  export * from './CheckboxFilter';
6
4
  export * from './DateRangeFilter';
7
- export * from './FilterArrayField';
8
- export * from './FilterField';
9
- export * from './FilterGroup';
10
- export * from './FilterNumberRangeFilter';
11
5
  export * from './MultipleFieldFilter';
12
6
  export * from './NumberRangeFilter';
13
7
  export * from './RadioFilter';
@@ -1,4 +1,4 @@
1
- import { FilterGroup as FilterGroupType } from 'src/types';
1
+ import { FilterGroupType } from 'src/types';
2
2
  type FilterGroupProps = {
3
3
  data: FilterGroupType;
4
4
  };
@@ -0,0 +1 @@
1
+ export { FilterGroup } from './FilterGroup';
@@ -2,3 +2,4 @@ export * from './ActiveFilters';
2
2
  export * from './Fields';
3
3
  export * from './FiltersDropdown';
4
4
  export * from './FiltersList';
5
+ export * from './FilterGroup';
@@ -0,0 +1 @@
1
+ export declare const TableControls: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export { TableControls } from './TableControls';
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index2.cjs"),s=require("./index3.cjs"),o=require("./index4.cjs"),n=require("./index5.cjs"),a=require("./index6.cjs"),c=require("./index7.cjs"),u=require("./index8.cjs"),l=require("./index9.cjs"),F=require("./index10.cjs"),d=require("./index11.cjs"),g=require("./index12.cjs"),q=require("./index13.cjs"),w=require("./index14.cjs"),V=require("./index15.cjs"),A=require("./index16.cjs"),p=require("./index17.cjs"),C=require("./index18.cjs"),h=require("./index19.cjs"),b=require("./index20.cjs"),R=require("./index21.cjs"),v=require("./index22.cjs"),y=require("./index23.cjs"),D=require("./index24.cjs"),m=require("./index25.cjs"),M=require("./index26.cjs"),N=require("./index27.cjs"),T=require("./index28.cjs"),L=require("./index29.cjs"),S=require("./index30.cjs"),P=require("./index31.cjs"),I=require("./index32.cjs"),O=require("./index33.cjs"),B=require("./index34.cjs"),k=require("./index35.cjs"),x=require("./index36.cjs"),f=require("./index37.cjs"),U=require("./index38.cjs"),E=require("./index39.cjs"),G=require("./index40.cjs"),X=require("./index41.cjs"),$=require("./index42.cjs"),e=require("./index43.cjs"),H=require("./index44.cjs"),J=require("./index45.cjs"),_=require("./index46.cjs"),j=require("./index47.cjs"),W=require("./index48.cjs"),r=require("./index49.cjs"),i=require("./index50.cjs"),z=require("./index51.cjs"),K=require("./index52.cjs"),Q=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"),ge=require("./index69.cjs"),qe=require("./index70.cjs");exports.deleteCustomView=t.deleteCustomView;exports.patchCurrentUser=s.patchCurrentUser;exports.patchCustomView=o.patchCustomView;exports.createCustomView=n.createCustomView;exports.axios=a.axios;exports.useBusinessLogic=c.useBusinessLogic;exports.BusinessLogicManager=u.BusinessLogicManager;exports.setMockedBusinessLogic=l.setMockedBusinessLogic;exports.ErrorBoundary=F.ErrorBoundary;exports.SearchBar=d.SearchBar;exports.ToastsManager=g.ToastsManager;exports.ActiveFilterTag=q.ActiveFilterTag;exports.ActiveFilterArrayTag=w.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=V.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=A.ActiveFilterNumberRangeTag;exports.ActiveFilters=p.ActiveFilters;exports.AsyncCheckboxFilter=C.AsyncCheckboxFilter;exports.AsyncInlineCheckboxFilter=h.AsyncInlineCheckboxFilter;exports.AsyncInlineRadioFilter=b.AsyncInlineRadioFilter;exports.AsyncRadioFilter=R.AsyncRadioFilter;exports.CheckboxFilter=v.CheckboxFilter;exports.DateRangeFilter=y.DateRangeFilter;exports.FilterArrayField=D.FilterArrayField;exports.FilterField=m.FilterField;exports.FilterGroupComponent=M.FilterGroup;exports.FilterNumberRangeFilter=N.FilterNumberRangeFilter;exports.MultipleFieldFilter=T.MultipleFieldFilter;exports.NumberRangeFilter=L.NumberRangeFilter;exports.RadioFilter=S.RadioFilter;exports.FiltersDropdown=P.FiltersDropdown;exports.FiltersList=I.FiltersList;exports.ViewTab=O.ViewTab;exports.CreateView=B.CreateView;exports.EditDropdown=k.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=f.PillNotifications;exports.SortableViews=U.SortableViews;exports.UnsavedChangesPill=E.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=X.ViewList;exports.SHARING_OPTIONS=$.SHARING_OPTIONS;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=H.FilterChoiceValue;exports.ModalProvider=J.ModalProvider;exports.ModalId=_.ModalId;exports.useModal=j.useModal;exports.withCSRF=W.withCSRF;exports.onlyJSON=r.onlyJSON;exports.vndAPI=r.vndAPI;exports.fetcherV1=i.fetcherV1;exports.fetcherV2=i.fetcherV2;exports.useDropdownManager=z.useDropdownManager;exports.useDuplicateActiveView=K.useDuplicateActiveView;exports.useFilterArrayLabel=Q.useFilterArrayLabel;exports.useFilterLabel=Y.useFilterLabel;exports.usePersistUnsavedChanges=Z.usePersistUnsavedChanges;exports.useStores=ee.useStores;exports.useViews=re.useViews;exports.useViewUrlChange=ie.useViewUrlChange;exports.useCustomViews=te.useCustomViews;exports.Filters=se.Filters;exports.NumberRangeFilterClass=oe.NumberRangeFilter;exports.RangeFilter=ne.RangeFilter;exports.Views=ae.Views;exports.Notifications=ce.Notifications;exports.MobXProvider=ue.MobXProvider;exports.getAsyncOptions=le.getAsyncOptions;exports.getFetcherFunction=Fe.getFetcherFunction;exports.isValidDateRange=de.isValidDateRange;exports.viewsAdapter=ge.viewsAdapter;exports.createAllView=qe.createAllView;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index2.cjs"),s=require("./index3.cjs"),o=require("./index4.cjs"),n=require("./index5.cjs"),a=require("./index6.cjs"),c=require("./index7.cjs"),u=require("./index8.cjs"),l=require("./index9.cjs"),F=require("./index10.cjs"),d=require("./index11.cjs"),q=require("./index12.cjs"),g=require("./index13.cjs"),w=require("./index14.cjs"),A=require("./index15.cjs"),V=require("./index16.cjs"),C=require("./index17.cjs"),p=require("./index18.cjs"),h=require("./index19.cjs"),v=require("./index20.cjs"),b=require("./index21.cjs"),R=require("./index22.cjs"),y=require("./index23.cjs"),D=require("./index24.cjs"),M=require("./index25.cjs"),m=require("./index26.cjs"),T=require("./index27.cjs"),N=require("./index28.cjs"),L=require("./index29.cjs"),S=require("./index30.cjs"),P=require("./index31.cjs"),O=require("./index32.cjs"),B=require("./index33.cjs"),k=require("./index34.cjs"),x=require("./index35.cjs"),f=require("./index36.cjs"),U=require("./index37.cjs"),I=require("./index38.cjs"),E=require("./index39.cjs"),G=require("./index40.cjs"),X=require("./index41.cjs"),$=require("./index42.cjs"),e=require("./index43.cjs"),H=require("./index44.cjs"),J=require("./index45.cjs"),_=require("./index46.cjs"),j=require("./index47.cjs"),W=require("./index48.cjs"),r=require("./index49.cjs"),i=require("./index50.cjs"),z=require("./index51.cjs"),K=require("./index52.cjs"),Q=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");exports.deleteCustomView=t.deleteCustomView;exports.patchCurrentUser=s.patchCurrentUser;exports.patchCustomView=o.patchCustomView;exports.createCustomView=n.createCustomView;exports.axios=a.axios;exports.useBusinessLogic=c.useBusinessLogic;exports.BusinessLogicManager=u.BusinessLogicManager;exports.setMockedBusinessLogic=l.setMockedBusinessLogic;exports.ErrorBoundary=F.ErrorBoundary;exports.SearchBar=d.SearchBar;exports.TableControls=q.TableControls;exports.ToastsManager=g.ToastsManager;exports.ActiveFilterTag=w.ActiveFilterTag;exports.ActiveFilters=A.ActiveFilters;exports.FilterArrayField=V.FilterArrayField;exports.FilterField=C.FilterField;exports.ActiveFilterArrayTag=p.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=h.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=v.ActiveFilterNumberRangeTag;exports.ActiveAsyncCheckboxFilter=b.ActiveAsyncCheckboxFilter;exports.ActiveAsyncRadioFilter=R.ActiveAsyncRadioFilter;exports.AsyncCheckboxFilter=y.AsyncCheckboxFilter;exports.AsyncRadioFilter=D.AsyncRadioFilter;exports.CheckboxFilter=M.CheckboxFilter;exports.DateRangeFilter=m.DateRangeFilter;exports.MultipleFieldFilter=T.MultipleFieldFilter;exports.NumberRangeFilter=N.NumberRangeFilter;exports.RadioFilter=L.RadioFilter;exports.FiltersDropdown=S.FiltersDropdown;exports.FiltersList=P.FiltersList;exports.FilterGroup=O.FilterGroup;exports.ViewTab=B.ViewTab;exports.CreateView=k.CreateView;exports.EditDropdown=x.EditDropdown;exports.OptionsDropdown=f.OptionsDropdown;exports.PillNotifications=U.PillNotifications;exports.SortableViews=I.SortableViews;exports.UnsavedChangesPill=E.UnsavedChangesPill;exports.ViewDropdowns=G.ViewDropdowns;exports.ViewList=X.ViewList;exports.SHARING_OPTIONS=$.SHARING_OPTIONS;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=H.FilterChoiceValue;exports.ModalProvider=J.ModalProvider;exports.ModalId=_.ModalId;exports.useModal=j.useModal;exports.withCSRF=W.withCSRF;exports.onlyJSON=r.onlyJSON;exports.vndAPI=r.vndAPI;exports.fetcherV1=i.fetcherV1;exports.fetcherV2=i.fetcherV2;exports.useDropdownManager=z.useDropdownManager;exports.useDuplicateActiveView=K.useDuplicateActiveView;exports.useFilterArrayLabel=Q.useFilterArrayLabel;exports.useFilterLabel=Y.useFilterLabel;exports.usePersistUnsavedChanges=Z.usePersistUnsavedChanges;exports.useStores=ee.useStores;exports.useViews=re.useViews;exports.useViewUrlChange=ie.useViewUrlChange;exports.useCustomViews=te.useCustomViews;exports.Filters=se.Filters;exports.NumberRangeFilterClass=oe.NumberRangeFilter;exports.RangeFilter=ne.RangeFilter;exports.Views=ae.Views;exports.Notifications=ce.Notifications;exports.MobXProvider=ue.MobXProvider;exports.getAsyncOptions=le.getAsyncOptions;exports.getFetcherFunction=Fe.getFetcherFunction;exports.isValidDateRange=de.isValidDateRange;exports.viewsAdapter=qe.viewsAdapter;exports.createAllView=ge.createAllView;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './axiosWrappers';
3
3
  export * from './BusinessLogic';
4
4
  export * from './components/ErrorBoundary';
5
5
  export * from './components/SearchBar';
6
+ export * from './components/TableControls';
6
7
  export * from './components/ToastsManager';
7
8
  export * from './components/Filters';
8
9
  export * from './components/Views';
package/dist/index.js CHANGED
@@ -4,46 +4,46 @@ import { patchCustomView as m } from "./index4.js";
4
4
  import { createCustomView as x } from "./index5.js";
5
5
  import { axios as s } from "./index6.js";
6
6
  import { useBusinessLogic as n } from "./index7.js";
7
- import { BusinessLogicManager as u } from "./index8.js";
7
+ import { BusinessLogicManager as F } from "./index8.js";
8
8
  import { setMockedBusinessLogic as d } from "./index9.js";
9
9
  import { ErrorBoundary as w } from "./index10.js";
10
- import { SearchBar as A } from "./index11.js";
11
- import { ToastsManager as h } from "./index12.js";
12
- import { ActiveFilterTag as b } from "./index13.js";
13
- import { ActiveFilterArrayTag as D } from "./index14.js";
14
- import { ActiveFilterDateRangeTag as M } from "./index15.js";
15
- import { ActiveFilterNumberRangeTag as L } from "./index16.js";
16
- import { ActiveFilters as S } from "./index17.js";
17
- import { AsyncCheckboxFilter as I } from "./index18.js";
18
- import { AsyncInlineCheckboxFilter as B } from "./index19.js";
19
- import { AsyncInlineRadioFilter as U } from "./index20.js";
20
- import { AsyncRadioFilter as E } from "./index21.js";
21
- import { CheckboxFilter as J } from "./index22.js";
22
- import { DateRangeFilter as _ } from "./index23.js";
23
- import { FilterArrayField as q } from "./index24.js";
24
- import { FilterField as K } from "./index25.js";
25
- import { FilterGroup as W } from "./index26.js";
26
- import { FilterNumberRangeFilter 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 ir } from "./index30.js";
30
- import { FiltersDropdown as mr } from "./index31.js";
31
- import { FiltersList as xr } from "./index32.js";
10
+ import { SearchBar as V } from "./index11.js";
11
+ import { TableControls as h } from "./index12.js";
12
+ import { ToastsManager as b } from "./index13.js";
13
+ import { ActiveFilterTag as D } from "./index14.js";
14
+ import { ActiveFilters as M } from "./index15.js";
15
+ import { FilterArrayField as T } from "./index16.js";
16
+ import { FilterField as P } from "./index17.js";
17
+ import { ActiveFilterArrayTag as O } from "./index18.js";
18
+ import { ActiveFilterDateRangeTag as k } from "./index19.js";
19
+ import { ActiveFilterNumberRangeTag as U } from "./index20.js";
20
+ import { ActiveAsyncCheckboxFilter as G } from "./index21.js";
21
+ import { ActiveAsyncRadioFilter as J } from "./index22.js";
22
+ import { AsyncCheckboxFilter as _ } from "./index23.js";
23
+ import { AsyncRadioFilter as q } from "./index24.js";
24
+ import { CheckboxFilter as K } from "./index25.js";
25
+ import { DateRangeFilter as W } from "./index26.js";
26
+ import { MultipleFieldFilter as Z } from "./index27.js";
27
+ import { NumberRangeFilter as rr } from "./index28.js";
28
+ import { RadioFilter as or } from "./index29.js";
29
+ import { FiltersDropdown as ir } from "./index30.js";
30
+ import { FiltersList as mr } from "./index31.js";
31
+ import { FilterGroup as xr } from "./index32.js";
32
32
  import { ViewTab as sr } from "./index33.js";
33
33
  import { CreateView as nr } from "./index34.js";
34
- import { EditDropdown as ur } from "./index35.js";
34
+ import { EditDropdown as Fr } from "./index35.js";
35
35
  import { OptionsDropdown as dr } from "./index36.js";
36
36
  import { PillNotifications as wr } from "./index37.js";
37
- import { SortableViews as Ar } from "./index38.js";
37
+ import { SortableViews as Vr } from "./index38.js";
38
38
  import { UnsavedChangesPill as hr } from "./index39.js";
39
39
  import { ViewDropdowns as br } from "./index40.js";
40
40
  import { ViewList as Dr } from "./index41.js";
41
41
  import { SHARING_OPTIONS as Mr } from "./index42.js";
42
- import { DateOptionMap as Lr, DateValue as Pr } from "./index43.js";
43
- import { FilterChoiceValue as Tr } from "./index44.js";
44
- import { ModalProvider as Or } from "./index45.js";
45
- import { ModalId as kr } from "./index46.js";
46
- import { useModal as Gr } from "./index47.js";
42
+ import { DateOptionMap as Tr, DateValue as Lr } from "./index43.js";
43
+ import { FilterChoiceValue as Sr } from "./index44.js";
44
+ import { ModalProvider as Br } from "./index45.js";
45
+ import { ModalId as Ir } from "./index46.js";
46
+ import { useModal as Er } from "./index47.js";
47
47
  import { withCSRF as Hr } from "./index48.js";
48
48
  import { onlyJSON as Xr, vndAPI as _r } from "./index49.js";
49
49
  import { fetcherV1 as qr, fetcherV2 as zr } from "./index50.js";
@@ -56,70 +56,70 @@ import { useStores as pe } from "./index56.js";
56
56
  import { useViews as fe } from "./index57.js";
57
57
  import { useViewUrlChange as ae } from "./index58.js";
58
58
  import { useCustomViews as le } from "./index59.js";
59
- import { Filters as Fe } from "./index60.js";
60
- import { NumberRangeFilter as ce } from "./index61.js";
59
+ import { Filters as ce } from "./index60.js";
60
+ import { NumberRangeFilter as ue } from "./index61.js";
61
61
  import { RangeFilter as ge } from "./index62.js";
62
- import { Views as Ve } from "./index63.js";
62
+ import { Views as Ae } from "./index63.js";
63
63
  import { Notifications as Ce } from "./index64.js";
64
- import { MobXProvider as Re } from "./index65.js";
65
- import { getAsyncOptions as ve } from "./index66.js";
64
+ import { MobXProvider as ve } from "./index65.js";
65
+ import { getAsyncOptions as Re } from "./index66.js";
66
66
  import { getFetcherFunction as ye } from "./index67.js";
67
67
  import { isValidDateRange as Ne } from "./index68.js";
68
- import { viewsAdapter as Pe } from "./index69.js";
69
- import { createAllView as Te } from "./index70.js";
68
+ import { viewsAdapter as Le } from "./index69.js";
69
+ import { createAllView as Se } from "./index70.js";
70
70
  export {
71
- D as ActiveFilterArrayTag,
72
- M as ActiveFilterDateRangeTag,
73
- L as ActiveFilterNumberRangeTag,
74
- b as ActiveFilterTag,
75
- S as ActiveFilters,
76
- I as AsyncCheckboxFilter,
77
- B as AsyncInlineCheckboxFilter,
78
- U as AsyncInlineRadioFilter,
79
- E as AsyncRadioFilter,
80
- u as BusinessLogicManager,
81
- J as CheckboxFilter,
71
+ G as ActiveAsyncCheckboxFilter,
72
+ J as ActiveAsyncRadioFilter,
73
+ O as ActiveFilterArrayTag,
74
+ k as ActiveFilterDateRangeTag,
75
+ U as ActiveFilterNumberRangeTag,
76
+ D as ActiveFilterTag,
77
+ M as ActiveFilters,
78
+ _ as AsyncCheckboxFilter,
79
+ q as AsyncRadioFilter,
80
+ F as BusinessLogicManager,
81
+ K as CheckboxFilter,
82
82
  nr as CreateView,
83
- Lr as DateOptionMap,
84
- _ as DateRangeFilter,
85
- Pr as DateValue,
86
- ur as EditDropdown,
83
+ Tr as DateOptionMap,
84
+ W as DateRangeFilter,
85
+ Lr as DateValue,
86
+ Fr as EditDropdown,
87
87
  w as ErrorBoundary,
88
- q as FilterArrayField,
89
- Tr as FilterChoiceValue,
90
- K as FilterField,
91
- W as FilterGroupComponent,
92
- Z as FilterNumberRangeFilter,
93
- Fe as Filters,
94
- mr as FiltersDropdown,
95
- xr as FiltersList,
96
- Re as MobXProvider,
97
- kr as ModalId,
98
- Or as ModalProvider,
99
- rr as MultipleFieldFilter,
88
+ T as FilterArrayField,
89
+ Sr as FilterChoiceValue,
90
+ P as FilterField,
91
+ xr as FilterGroup,
92
+ ce as Filters,
93
+ ir as FiltersDropdown,
94
+ mr as FiltersList,
95
+ ve as MobXProvider,
96
+ Ir as ModalId,
97
+ Br as ModalProvider,
98
+ Z as MultipleFieldFilter,
100
99
  Ce as Notifications,
101
- or as NumberRangeFilter,
102
- ce as NumberRangeFilterClass,
100
+ rr as NumberRangeFilter,
101
+ ue as NumberRangeFilterClass,
103
102
  dr as OptionsDropdown,
104
103
  wr as PillNotifications,
105
- ir as RadioFilter,
104
+ or as RadioFilter,
106
105
  ge as RangeFilter,
107
106
  Mr as SHARING_OPTIONS,
108
- A as SearchBar,
109
- Ar as SortableViews,
110
- h as ToastsManager,
107
+ V as SearchBar,
108
+ Vr as SortableViews,
109
+ h as TableControls,
110
+ b as ToastsManager,
111
111
  hr as UnsavedChangesPill,
112
112
  br as ViewDropdowns,
113
113
  Dr as ViewList,
114
114
  sr as ViewTab,
115
- Ve as Views,
115
+ Ae as Views,
116
116
  s as axios,
117
- Te as createAllView,
117
+ Se as createAllView,
118
118
  x as createCustomView,
119
119
  o as deleteCustomView,
120
120
  qr as fetcherV1,
121
121
  zr as fetcherV2,
122
- ve as getAsyncOptions,
122
+ Re as getAsyncOptions,
123
123
  ye as getFetcherFunction,
124
124
  Ne as isValidDateRange,
125
125
  Xr as onlyJSON,
@@ -132,12 +132,12 @@ export {
132
132
  Yr as useDuplicateActiveView,
133
133
  $r as useFilterArrayLabel,
134
134
  ee as useFilterLabel,
135
- Gr as useModal,
135
+ Er as useModal,
136
136
  te as usePersistUnsavedChanges,
137
137
  pe as useStores,
138
138
  ae as useViewUrlChange,
139
139
  fe as useViews,
140
- Pe as viewsAdapter,
140
+ Le as viewsAdapter,
141
141
  _r as vndAPI,
142
142
  Hr as withCSRF
143
143
  };
package/dist/index10.js CHANGED
@@ -2,25 +2,16 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import { Component as s } from "react";
3
3
  class i extends s {
4
4
  constructor(r) {
5
- super(r), this.state = {
6
- hasError: !1
7
- };
5
+ super(r), this.state = { hasError: !1 };
8
6
  }
9
7
  static getDerivedStateFromError() {
10
- return {
11
- hasError: !0
12
- };
8
+ return { hasError: !0 };
13
9
  }
14
10
  componentDidCatch(r, o) {
15
11
  console.log(r, o);
16
12
  }
17
13
  render() {
18
- const {
19
- hasError: r
20
- } = this.state, {
21
- children: o,
22
- errorComponent: t
23
- } = this.props;
14
+ const { hasError: r } = this.state, { children: o, errorComponent: t } = this.props;
24
15
  return r ? t || /* @__PURE__ */ e("p", { children: "Error" }) : o;
25
16
  }
26
17
  }
package/dist/index11.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),u=require("mobx-react"),i=require("@veeqo/ui"),a=require("./index7.cjs"),l=require("./index56.cjs"),S=u.observer(()=>{const{SEARCH_FILTER_ID:e}=a.useBusinessLogic(),{Filters:{setFilter:s,filters:t}}=l.useStores(),n=t.get(e),o=c=>{s(e,c)};return r.jsx("div",{style:{flexGrow:1},children:r.jsx(i.Search,{value:n,onChange:o})})});exports.SearchBar=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),S=require("mobx-react"),d=require("@veeqo/ui"),_=require("lodash/debounce"),o=require("react"),h=require("./index7.cjs"),b=require("./index56.cjs"),f=e=>e&&e.__esModule?e:{default:e},g=f(_),q=S.observer(()=>{const{SEARCH_FILTER_ID:e,FILTERS_DEBOUCE_INTERVAL_MS:u}=h.useBusinessLogic(),{Filters:{setFilter:t,filters:c}}=b.useStores(),[n,a]=o.useState(c.get(e)||""),i=o.useCallback(g.default(s=>{t(e,s)},u),[t,e]),l=s=>{a(s),i(s)};return r.jsx("div",{style:{flexGrow:1},children:r.jsx(d.Search,{value:n,onChange:l})})});exports.SearchBar=q;
package/dist/index11.js CHANGED
@@ -1,23 +1,23 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { observer as i } from "mobx-react";
3
- import { Search as a } from "@veeqo/ui";
4
- import { useBusinessLogic as c } from "./index7.js";
5
- import { useStores as l } from "./index56.js";
6
- const d = i(() => {
7
- const {
8
- SEARCH_FILTER_ID: e
9
- } = c(), {
10
- Filters: {
11
- setFilter: o,
12
- filters: t
13
- }
14
- } = l(), n = t.get(e);
15
- return /* @__PURE__ */ r("div", { style: {
16
- flexGrow: 1
17
- }, children: /* @__PURE__ */ r(a, { value: n, onChange: (s) => {
18
- o(e, s);
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { observer as m } from "mobx-react";
3
+ import { Search as l } from "@veeqo/ui";
4
+ import u from "lodash/debounce";
5
+ import { useState as h, useCallback as f } from "react";
6
+ import { useBusinessLogic as S } from "./index7.js";
7
+ import { useStores as p } from "./index56.js";
8
+ const L = m(() => {
9
+ const { SEARCH_FILTER_ID: r, FILTERS_DEBOUCE_INTERVAL_MS: s } = S(), {
10
+ Filters: { setFilter: o, filters: n }
11
+ } = p(), [a, c] = h(n.get(r) || ""), i = f(
12
+ u((e) => {
13
+ o(r, e);
14
+ }, s),
15
+ [o, r]
16
+ );
17
+ return /* @__PURE__ */ t("div", { style: { flexGrow: 1 }, children: /* @__PURE__ */ t(l, { value: a, onChange: (e) => {
18
+ c(e), i(e);
19
19
  } }) });
20
20
  });
21
21
  export {
22
- d as SearchBar
22
+ L as SearchBar
23
23
  };
package/dist/index12.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@veeqo/ui"),n=require("mobx-react"),u=require("react"),a=require("./index56.cjs"),c=n.observer(()=>{const{Notifications:{toasts:e,removeByKey:t}}=a.useStores();return u.useEffect(()=>{if(e.length>0){const s=e[0],o=setTimeout(()=>{t(s.key)},2e3);return()=>clearTimeout(o)}},[e,t]),r.jsx(i.ToastsLayout,{max:10,minWidth:"",toasts:e,onClose:t})});exports.ToastsManager=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("mobx-react"),s=require("@veeqo/ui"),g=require("react"),h=require("./index7.cjs"),P=require("./index56.cjs"),d=l.observer(()=>{const{PAGE_SIZE_OPTIONS:a}=h.useBusinessLogic(),{Filters:{setCurrentPage:o,currentPage:i,pageSize:n,setPageSize:r}}=P.useStores(),c=e=>{o(e)},u=g.useCallback(e=>{n!==e&&r(e)},[n,r]);return t.jsxs(s.Stack,{direction:"horizontal",children:[t.jsx(s.Pagination,{currentPage:i,totalPagesCount:100,handleChangePage:c}),t.jsx(s.ActionMenu,{menuLabel:"items per page",ctaProps:{children:`${n} / page`,style:{marginLeft:s.theme.sizes.xs}},children:a.map(e=>t.jsxs(s.ActionMenu.Item,{onAction:()=>u(e),children:[e," / page"]},e))})]})});exports.TableControls=d;
package/dist/index12.js CHANGED
@@ -1,24 +1,45 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { ToastsLayout as m } from "@veeqo/ui";
3
- import { observer as i } from "mobx-react";
4
- import { useEffect as n } from "react";
5
- import { useStores as a } from "./index56.js";
6
- const y = i(() => {
7
- const {
8
- Notifications: {
9
- toasts: o,
10
- removeByKey: t
11
- }
12
- } = a();
13
- return n(() => {
14
- if (o.length > 0) {
15
- const r = o[0], e = setTimeout(() => {
16
- t(r.key);
17
- }, 2e3);
18
- return () => clearTimeout(e);
19
- }
20
- }, [o, t]), /* @__PURE__ */ s(m, { max: 10, minWidth: "", toasts: o, onClose: t });
1
+ import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
+ import { observer as l } from "mobx-react";
3
+ import { Stack as h, Pagination as u, ActionMenu as o, theme as p } from "@veeqo/ui";
4
+ import { useCallback as P } from "react";
5
+ import { useBusinessLogic as d } from "./index7.js";
6
+ import { useStores as f } from "./index56.js";
7
+ const L = l(() => {
8
+ const { PAGE_SIZE_OPTIONS: s } = d(), {
9
+ Filters: { setCurrentPage: i, currentPage: c, pageSize: t, setPageSize: r }
10
+ } = f(), m = (e) => {
11
+ i(e);
12
+ }, g = P(
13
+ (e) => {
14
+ t !== e && r(e);
15
+ },
16
+ [t, r]
17
+ );
18
+ return /* @__PURE__ */ n(h, { direction: "horizontal", children: [
19
+ /* @__PURE__ */ a(
20
+ u,
21
+ {
22
+ currentPage: c,
23
+ totalPagesCount: 100,
24
+ handleChangePage: m
25
+ }
26
+ ),
27
+ /* @__PURE__ */ a(
28
+ o,
29
+ {
30
+ menuLabel: "items per page",
31
+ ctaProps: {
32
+ children: `${t} / page`,
33
+ style: { marginLeft: p.sizes.xs }
34
+ },
35
+ children: s.map((e) => /* @__PURE__ */ n(o.Item, { onAction: () => g(e), children: [
36
+ e,
37
+ " / page"
38
+ ] }, e))
39
+ }
40
+ )
41
+ ] });
21
42
  });
22
43
  export {
23
- y as ToastsManager
44
+ L as TableControls
24
45
  };
package/dist/index13.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),m=require("mobx-react"),t=require("@veeqo/ui"),x=require("./index54.cjs"),g=require("./index25.cjs"),j=require("./index56.cjs"),p=m.observer(({filterData:i})=>{const{Filters:{filters:l,clearFilter:o,setFilter:d}}=j.useStores(),s=l.get(i.id),{filterLabel:a}=x.useFilterLabel({filterData:i}),[r,n]=c.useState(s||"");c.useEffect(()=>{r!==s&&n(s||"")},[i.id,s,l]);const u=()=>{o(i.id)},F=()=>{d(i.id,r)};return e.jsx(t.FilterTag,{shouldCloseOnClickAway:!0,header:e.jsx("div",{children:"Edit filter (style and semant me pls)"}),label:i.label,text:a||"Loading...",content:e.jsx(t.BaseContainer,{style:{padding:t.theme.sizes.md},children:e.jsx(g.FilterField,{data:i,editedValue:r,setEditedValue:h=>n(h)})}),footer:e.jsx(t.BaseContainer,{style:{padding:t.theme.sizes.sm,width:"200px"},children:e.jsxs(t.Stack,{direction:"horizontal",alignX:"end",children:[e.jsx(t.Button,{variant:"default",size:"sm",onClick:u,children:"Clear"}),e.jsx(t.Button,{variant:"primary",size:"sm",onClick:F,children:"Apply"})]})})})});exports.ActiveFilterTag=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("@veeqo/ui"),n=require("mobx-react"),u=require("react"),a=require("./index56.cjs"),c=n.observer(()=>{const{Notifications:{toasts:e,removeByKey:t}}=a.useStores();return u.useEffect(()=>{if(e.length>0){const s=e[0],o=setTimeout(()=>{t(s.key)},2e3);return()=>clearTimeout(o)}},[e,t]),r.jsx(i.ToastsLayout,{max:10,minWidth:"",toasts:e,onClose:t})});exports.ToastsManager=c;