@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.
- package/README.md +2 -53
- package/dist/BusinessLogic/mocks.d.ts +3 -3
- package/dist/BusinessLogic/types.d.ts +3 -2
- package/dist/components/Filters/ActiveFilters/Categories/index.d.ts +2 -0
- package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/ActiveAsyncCheckboxFilter.d.ts +8 -0
- package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncCheckboxFilter/index.d.ts +1 -0
- package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/ActiveAsyncRadioFilter.d.ts +8 -0
- package/dist/components/Filters/ActiveFilters/Variants/ActiveAsyncRadioFilter/index.d.ts +1 -0
- package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/FilterNumberRangeFilter.d.ts +1 -1
- package/dist/components/Filters/ActiveFilters/Variants/index.d.ts +5 -0
- package/dist/components/Filters/ActiveFilters/index.d.ts +2 -3
- package/dist/components/Filters/Fields/index.d.ts +0 -6
- package/dist/components/Filters/{Fields/FilterGroup → FilterGroup}/FilterGroup.d.ts +1 -1
- package/dist/components/Filters/FilterGroup/index.d.ts +1 -0
- package/dist/components/Filters/index.d.ts +1 -0
- package/dist/components/TableControls/TableControls.d.ts +1 -0
- package/dist/components/TableControls/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +75 -75
- package/dist/index10.js +3 -12
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +19 -19
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +42 -21
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +23 -38
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +39 -37
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +36 -54
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +32 -46
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +50 -42
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +39 -50
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +59 -37
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +53 -37
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +45 -53
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +43 -33
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +56 -57
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +57 -18
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +38 -31
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +55 -39
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +52 -34
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +81 -47
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +36 -107
- package/dist/index3.js +1 -3
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +31 -31
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +10 -30
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +40 -14
- package/dist/index33.js +49 -48
- package/dist/index34.js +12 -11
- package/dist/index35.js +104 -39
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +47 -24
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +43 -22
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +22 -27
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +67 -26
- package/dist/index4.js +1 -8
- package/dist/index40.js +71 -21
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +31 -18
- package/dist/index42.js +2 -8
- package/dist/index43.js +13 -1
- package/dist/index45.js +14 -12
- package/dist/index48.js +1 -3
- package/dist/index5.js +2 -9
- package/dist/index50.js +3 -12
- package/dist/index51.js +8 -42
- package/dist/index52.js +20 -35
- package/dist/index53.js +16 -25
- package/dist/index54.js +18 -27
- package/dist/index55.js +31 -36
- package/dist/index57.js +22 -32
- package/dist/index58.js +14 -15
- package/dist/index59.js +2 -10
- package/dist/index6.js +8 -40
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +226 -209
- package/dist/index61.js +5 -9
- package/dist/index62.js +3 -9
- package/dist/index65.js +1 -6
- package/dist/index66.js +1 -4
- package/dist/index67.js +1 -3
- package/dist/index69.js +28 -23
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +2 -4
- package/dist/index76.js +26 -16
- package/dist/index77.cjs +1 -19
- package/dist/index77.js +14 -29
- package/dist/index78.cjs +19 -1
- package/dist/index78.js +24 -16
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +22 -9
- package/dist/index80.cjs +78 -10
- package/dist/index80.js +92 -13
- package/dist/index81.cjs +10 -78
- package/dist/index81.js +13 -94
- package/dist/index83.cjs +1 -80
- package/dist/index83.js +35 -96
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +62 -35
- package/dist/index85.js +1 -3
- package/dist/index86.cjs +80 -7
- package/dist/index86.js +93 -10
- package/dist/index87.cjs +7 -0
- package/dist/index87.js +12 -0
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +99 -84
- package/dist/mobx/Filters/Filters.d.ts +5 -0
- package/dist/mocks/internal/mockUseStores/index.d.ts +1 -0
- package/dist/mocks/internal/mockUseStores/mockUseStores.d.ts +6 -0
- package/dist/types.d.ts +1 -1
- package/package.json +4 -5
- package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/AsyncInlineCheckboxFilter.d.ts +0 -8
- package/dist/components/Filters/Fields/AsyncInlineCheckboxFilter/index.d.ts +0 -1
- package/dist/components/Filters/Fields/AsyncInlineRadioFilter/AsyncInlineRadioFilter.d.ts +0 -8
- package/dist/components/Filters/Fields/AsyncInlineRadioFilter/index.d.ts +0 -1
- package/dist/components/Filters/Fields/FilterGroup/index.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +0 -1
- /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/FilterArrayField.d.ts +0 -0
- /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterArrayField/index.d.ts +0 -0
- /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/FilterField.d.ts +0 -0
- /package/dist/components/Filters/{Fields → ActiveFilters/Categories}/FilterField/index.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/ActiveFilterArrayTag.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterArrayTag → Variants/ActiveFilterArrayTag}/index.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/ActiveFilterDateRangeTag.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterDateRangeTag → Variants/ActiveFilterDateRangeTag}/index.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/ActiveFilterNumberRangeTag.d.ts +0 -0
- /package/dist/components/Filters/{Fields → ActiveFilters/Variants/ActiveFilterNumberRangeTag}/FilterNumberRangeFilter/index.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterNumberRangeTag → Variants/ActiveFilterNumberRangeTag}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,54 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# VQTransfigure
|
|
2
2
|
|
|
3
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
16
|
+
GROUP_MAP: Map<string, FilterGroupType>;
|
|
17
17
|
FILTERS_DEBOUCE_INTERVAL_MS: number;
|
|
18
|
+
PAGE_SIZE_OPTIONS: number[];
|
|
18
19
|
};
|
|
@@ -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 '
|
|
2
|
+
import { NumberRangeFilter as NumberRangeFilterClass } from '../../../../../../mobx/NumberRangeFilter/NumberRangeFilter';
|
|
3
3
|
type FilterNumberRangeFilterProps = {
|
|
4
4
|
data: Filter;
|
|
5
5
|
editedValue?: NumberRangeFilterClass;
|
|
@@ -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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FilterGroup } 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"),
|
|
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
|
|
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
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
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
|
|
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
|
|
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
|
|
43
|
-
import { FilterChoiceValue as
|
|
44
|
-
import { ModalProvider as
|
|
45
|
-
import { ModalId as
|
|
46
|
-
import { useModal as
|
|
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
|
|
60
|
-
import { NumberRangeFilter as
|
|
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
|
|
62
|
+
import { Views as Ae } from "./index63.js";
|
|
63
63
|
import { Notifications as Ce } from "./index64.js";
|
|
64
|
-
import { MobXProvider as
|
|
65
|
-
import { getAsyncOptions as
|
|
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
|
|
69
|
-
import { createAllView as
|
|
68
|
+
import { viewsAdapter as Le } from "./index69.js";
|
|
69
|
+
import { createAllView as Se } from "./index70.js";
|
|
70
70
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
Tr as DateOptionMap,
|
|
84
|
+
W as DateRangeFilter,
|
|
85
|
+
Lr as DateValue,
|
|
86
|
+
Fr as EditDropdown,
|
|
87
87
|
w as ErrorBoundary,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
mr as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
102
|
-
|
|
100
|
+
rr as NumberRangeFilter,
|
|
101
|
+
ue as NumberRangeFilterClass,
|
|
103
102
|
dr as OptionsDropdown,
|
|
104
103
|
wr as PillNotifications,
|
|
105
|
-
|
|
104
|
+
or as RadioFilter,
|
|
106
105
|
ge as RangeFilter,
|
|
107
106
|
Mr as SHARING_OPTIONS,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
h as
|
|
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
|
-
|
|
115
|
+
Ae as Views,
|
|
116
116
|
s as axios,
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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"),
|
|
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
|
|
2
|
-
import { observer as
|
|
3
|
-
import { Search as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} =
|
|
10
|
-
Filters: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, children: /* @__PURE__ */
|
|
18
|
-
|
|
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
|
-
|
|
22
|
+
L as SearchBar
|
|
23
23
|
};
|
package/dist/index12.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
44
|
+
L as TableControls
|
|
24
45
|
};
|
package/dist/index13.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|