@veeqo/transfigure 1.2.6 → 1.2.7
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/dist/BusinessLogic/mocks.d.ts +1 -0
- package/dist/components/Filters/ActiveFilters/Categories/FilterField/FilterField.d.ts +3 -1
- package/dist/constants/constants.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +89 -88
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +37 -30
- package/dist/index100.cjs +1 -12
- package/dist/index100.js +11 -16
- package/dist/index101.cjs +19 -1
- package/dist/index101.js +24 -38
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +21 -29
- package/dist/index103.cjs +1 -19
- package/dist/index103.js +14 -23
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +36 -19
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +26 -12
- package/dist/index107.cjs +10 -78
- package/dist/index107.js +13 -98
- package/dist/index108.cjs +80 -1
- package/dist/index108.js +101 -19
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -8
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +17 -62
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +7 -29
- package/dist/index112.cjs +1 -13
- package/dist/index112.js +63 -16
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +30 -2
- package/dist/index114.cjs +13 -1
- package/dist/index114.js +14 -33
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +32 -22
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +25 -62
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +5 -47
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +65 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +49 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +16 -15
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +10 -9
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +33 -26
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +21 -20
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +40 -37
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +7 -7
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +2 -2
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +2 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +6 -5
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +41 -5
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +8 -117
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -19
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -41
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +117 -8
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +19 -13
- package/dist/index92.cjs +1 -104
- package/dist/index92.js +7 -120
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +16 -66
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -29
- package/dist/index95.cjs +104 -1
- package/dist/index95.js +120 -2
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +65 -38
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +26 -8
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -18
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +40 -6
- package/dist/utils/isTextFilterValid/index.d.ts +1 -0
- package/dist/utils/isTextFilterValid/isTextFilterValid.d.ts +7 -0
- package/dist/utils/isTextFilterValid/isTextFilterValid.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Filter } from 'src/types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
type FilterGroupProps = {
|
|
3
4
|
data: Filter;
|
|
4
5
|
editedValue: string;
|
|
5
6
|
setEditedValue: (value: string) => void;
|
|
7
|
+
error: ReactNode;
|
|
6
8
|
};
|
|
7
|
-
export declare const FilterField: ({ data, editedValue, setEditedValue }: FilterGroupProps) => JSX.Element | null;
|
|
9
|
+
export declare const FilterField: ({ data, editedValue, setEditedValue, error }: FilterGroupProps) => JSX.Element | null;
|
|
8
10
|
export {};
|
package/dist/index.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("./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"),p=require("./index16.cjs"),C=require("./index17.cjs"),R=require("./index18.cjs"),h=require("./index19.cjs"),v=require("./index20.cjs"),b=require("./index21.cjs"),S=require("./index22.cjs"),m=require("./index23.cjs"),M=require("./index24.cjs"),D=require("./index25.cjs"),T=require("./index26.cjs"),y=require("./index27.cjs"),N=require("./index28.cjs"),O=require("./index29.cjs"),P=require("./index30.cjs"),U=require("./index31.cjs"),L=require("./index32.cjs"),B=require("./index33.cjs"),f=require("./index34.cjs"),E=require("./index35.cjs"),k=require("./index36.cjs"),I=require("./index37.cjs"),_=require("./index38.cjs"),x=require("./index39.cjs"),H=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"),j=require("./index47.cjs"),i=require("./index48.cjs"),e=require("./index49.cjs"),z=require("./index50.cjs"),Q=require("./index51.cjs"),Y=require("./index52.cjs"),Z=require("./index53.cjs"),t=require("./index54.cjs"),s=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"),pe=require("./index74.cjs"),Ce=require("./index75.cjs"),Re=require("./index76.cjs"),he=require("./index77.cjs"),ve=require("./index78.cjs"),be=require("./index79.cjs"),Se=require("./index80.cjs"),me=require("./index81.cjs");exports.SortingMode=r.SortingMode;exports.ViewStatusTypes=r.ViewStatusTypes;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.ActionsDropdown=q.ActionsDropdown;exports.ErrorBoundary=g.ErrorBoundary;exports.SearchBar=w.SearchBar;exports.TableControls=A.TableControls;exports.ToastsManager=V.ToastsManager;exports.ActiveFilters=p.ActiveFilters;exports.FilterArrayField=C.FilterArrayField;exports.FilterField=R.FilterField;exports.ActiveFilterTag=h.ActiveFilterTag;exports.ActiveFilterArrayTag=v.ActiveFilterArrayTag;exports.ActiveFilterDateRangeTag=b.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=S.ActiveFilterNumberRangeTag;exports.ActiveAsyncRadioFilter=m.ActiveAsyncRadioFilter;exports.ActiveFilterFooter=M.ActiveFilterFooter;exports.ActiveFilterHeader=D.ActiveFilterHeader;exports.AsyncCheckboxFilter=T.AsyncCheckboxFilter;exports.AsyncRadioFilter=y.AsyncRadioFilter;exports.CheckboxFilter=N.CheckboxFilter;exports.DateRangeFilter=O.DateRangeFilter;exports.MultipleFieldFilter=P.MultipleFieldFilter;exports.NumberRangeFilter=U.NumberRangeFilter;exports.RadioFilter=L.RadioFilter;exports.FiltersDropdown=B.FiltersDropdown;exports.FiltersList=f.FiltersList;exports.FilterGroup=E.FilterGroup;exports.ViewTab=k.ViewTab;exports.CreateView=I.CreateView;exports.EditDropdown=_.EditDropdown;exports.OptionsDropdown=x.OptionsDropdown;exports.PillNotifications=H.PillNotifications;exports.SortableViews=G.SortableViews;exports.UnsavedChangesPill=W.UnsavedChangesPill;exports.ViewDropdowns=X.ViewDropdowns;exports.ViewList=$.ViewList;exports.SHARING_OPTIONS=J.SHARING_OPTIONS;exports.TableManagement=K.TableManagement;exports.RefreshButton=j.RefreshButton;exports.DateOptionMap=i.DateOptionMap;exports.DateValue=i.DateValue;exports.FilterChoiceValue=e.FilterChoiceValue;exports.MIN_SEARCH_ERROR_MESSAGE=e.MIN_SEARCH_ERROR_MESSAGE;exports.SWR_HOOK_OPTIONS=e.SWR_HOOK_OPTIONS;exports.ModalProvider=z.ModalProvider;exports.ModalId=Q.ModalId;exports.useModal=Y.useModal;exports.withCSRF=Z.withCSRF;exports.onlyJSON=t.onlyJSON;exports.vndAPI=t.vndAPI;exports.fetcherV1=s.fetcherV1;exports.fetcherV2=s.fetcherV2;exports.useDropdownManager=ee.useDropdownManager;exports.useDuplicateActiveView=re.useDuplicateActiveView;exports.useFilterArrayLabel=ie.useFilterArrayLabel;exports.useFilterLabel=te.useFilterLabel;exports.usePersistUnsavedChanges=se.usePersistUnsavedChanges;exports.useStores=oe.useStores;exports.useViews=ne.useViews;exports.useViewUrlChange=ae.useViewUrlChange;exports.useUrlChange=ce.useUrlChange;exports.useCustomViews=ue.useCustomViews;exports.useColumns=le.useColumns;exports.useUrlParams=Fe.useUrlParams;exports.Filters=de.Filters;exports.NumberRangeFilterClass=qe.NumberRangeFilter;exports.RangeFilter=ge.RangeFilter;exports.Views=we.Views;exports.Notifications=Ae.Notifications;exports.Table=Ve.Table;exports.MobXProvider=pe.MobXProvider;exports.getAsyncOptions=Ce.getAsyncOptions;exports.getFetcherFunction=Re.getFetcherFunction;exports.isValidDateRange=he.isValidDateRange;exports.viewsAdapter=ve.viewsAdapter;exports.createAllView=be.createAllView;exports.organiseViews=Se.organiseViews;exports.mockUseStores=me.mockUseStores;
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._actionsHeaderContainer_fgqms_1>div{white-space:nowrap;flex-wrap:nowrap}._actionsHeaderContainer_fgqms_1{padding:var(--sizes-3);border-bottom:var(--sizes-line) solid var(--colors-neutral-grey-base)}._refreshTooltip_v0eu8_1{position:relative}._refreshButton_v0eu8_5{padding-right:var(--sizes-sm)}._refreshIndicator_v0eu8_9{height:var(--sizes-3);min-width:var(--sizes-3)}
|
|
1
|
+
._actionsHeaderContainer_fgqms_1>div{white-space:nowrap;flex-wrap:nowrap}._actionsHeaderContainer_fgqms_1{padding:var(--sizes-3);border-bottom:var(--sizes-line) solid var(--colors-neutral-grey-base)}._fieldContainer_43n4j_1{padding:var(--sizes-md);min-width:250px;max-height:500px;overflow:auto}._refreshTooltip_v0eu8_1{position:relative}._refreshButton_v0eu8_5{padding-right:var(--sizes-sm)}._refreshIndicator_v0eu8_9{height:var(--sizes-3);min-width:var(--sizes-3)}
|
package/dist/index.js
CHANGED
|
@@ -7,17 +7,17 @@ import { axios as u } from "./index7.js";
|
|
|
7
7
|
import { useBusinessLogic as F } from "./index8.js";
|
|
8
8
|
import { BusinessLogicManager as g } from "./index9.js";
|
|
9
9
|
import { setMockedBusinessLogic as A } from "./index10.js";
|
|
10
|
-
import { ActionsDropdown as
|
|
11
|
-
import { ErrorBoundary as
|
|
12
|
-
import { SearchBar as
|
|
10
|
+
import { ActionsDropdown as R } from "./index11.js";
|
|
11
|
+
import { ErrorBoundary as h } from "./index12.js";
|
|
12
|
+
import { SearchBar as S } from "./index13.js";
|
|
13
13
|
import { TableControls as M } from "./index14.js";
|
|
14
14
|
import { ToastsManager as T } from "./index15.js";
|
|
15
|
-
import { ActiveFilters as
|
|
15
|
+
import { ActiveFilters as O } from "./index16.js";
|
|
16
16
|
import { FilterArrayField as P } from "./index17.js";
|
|
17
17
|
import { FilterField as U } from "./index18.js";
|
|
18
|
-
import { ActiveFilterTag as
|
|
19
|
-
import { ActiveFilterArrayTag as
|
|
20
|
-
import { ActiveFilterDateRangeTag as
|
|
18
|
+
import { ActiveFilterTag as E } from "./index19.js";
|
|
19
|
+
import { ActiveFilterArrayTag as _ } from "./index20.js";
|
|
20
|
+
import { ActiveFilterDateRangeTag as H } from "./index21.js";
|
|
21
21
|
import { ActiveFilterNumberRangeTag as J } from "./index22.js";
|
|
22
22
|
import { ActiveAsyncRadioFilter as W } from "./index23.js";
|
|
23
23
|
import { ActiveFilterFooter as j } from "./index24.js";
|
|
@@ -34,134 +34,135 @@ import { FiltersList as ur } from "./index34.js";
|
|
|
34
34
|
import { FilterGroup as Fr } from "./index35.js";
|
|
35
35
|
import { ViewTab as gr } from "./index36.js";
|
|
36
36
|
import { CreateView as Ar } from "./index37.js";
|
|
37
|
-
import { EditDropdown as
|
|
38
|
-
import { OptionsDropdown as
|
|
39
|
-
import { PillNotifications as
|
|
37
|
+
import { EditDropdown as Rr } from "./index38.js";
|
|
38
|
+
import { OptionsDropdown as hr } from "./index39.js";
|
|
39
|
+
import { PillNotifications as Sr } from "./index40.js";
|
|
40
40
|
import { SortableViews as Mr } from "./index41.js";
|
|
41
41
|
import { UnsavedChangesPill as Tr } from "./index42.js";
|
|
42
|
-
import { ViewDropdowns as
|
|
42
|
+
import { ViewDropdowns as Or } from "./index43.js";
|
|
43
43
|
import { ViewList as Pr } from "./index44.js";
|
|
44
44
|
import { SHARING_OPTIONS as Ur } from "./index45.js";
|
|
45
|
-
import { TableManagement as
|
|
46
|
-
import { RefreshButton as
|
|
47
|
-
import { DateOptionMap as
|
|
48
|
-
import { FilterChoiceValue as Kr,
|
|
49
|
-
import { ModalProvider as
|
|
50
|
-
import { ModalId as
|
|
51
|
-
import { useModal as
|
|
52
|
-
import { withCSRF as
|
|
53
|
-
import { onlyJSON as
|
|
54
|
-
import { fetcherV1 as
|
|
55
|
-
import { useDropdownManager as
|
|
56
|
-
import { useDuplicateActiveView as
|
|
57
|
-
import { useFilterArrayLabel as
|
|
58
|
-
import { useFilterLabel as
|
|
59
|
-
import { usePersistUnsavedChanges as
|
|
60
|
-
import { useStores as
|
|
61
|
-
import { useViews as
|
|
45
|
+
import { TableManagement as Er } from "./index46.js";
|
|
46
|
+
import { RefreshButton as _r } from "./index47.js";
|
|
47
|
+
import { DateOptionMap as Hr, DateValue as Gr } from "./index48.js";
|
|
48
|
+
import { FilterChoiceValue as Kr, MIN_SEARCH_ERROR_MESSAGE as Wr, SWR_HOOK_OPTIONS as Xr } from "./index49.js";
|
|
49
|
+
import { ModalProvider as qr } from "./index50.js";
|
|
50
|
+
import { ModalId as Qr } from "./index51.js";
|
|
51
|
+
import { useModal as Zr } from "./index52.js";
|
|
52
|
+
import { withCSRF as re } from "./index53.js";
|
|
53
|
+
import { onlyJSON as oe, vndAPI as te } from "./index54.js";
|
|
54
|
+
import { fetcherV1 as ie, fetcherV2 as me } from "./index55.js";
|
|
55
|
+
import { useDropdownManager as xe } from "./index56.js";
|
|
56
|
+
import { useDuplicateActiveView as ae } from "./index57.js";
|
|
57
|
+
import { useFilterArrayLabel as ne } from "./index58.js";
|
|
58
|
+
import { useFilterLabel as ce } from "./index59.js";
|
|
59
|
+
import { usePersistUnsavedChanges as de } from "./index60.js";
|
|
60
|
+
import { useStores as we } from "./index61.js";
|
|
61
|
+
import { useViews as Ve } from "./index62.js";
|
|
62
62
|
import { useViewUrlChange as Ce } from "./index63.js";
|
|
63
63
|
import { useUrlChange as ve } from "./index64.js";
|
|
64
64
|
import { useCustomViews as be } from "./index65.js";
|
|
65
|
-
import { useColumns as
|
|
66
|
-
import { useUrlParams as
|
|
67
|
-
import { Filters as
|
|
68
|
-
import { NumberRangeFilter as
|
|
69
|
-
import { RangeFilter as
|
|
65
|
+
import { useColumns as De } from "./index66.js";
|
|
66
|
+
import { useUrlParams as Ne } from "./index67.js";
|
|
67
|
+
import { Filters as ye } from "./index68.js";
|
|
68
|
+
import { NumberRangeFilter as Le } from "./index69.js";
|
|
69
|
+
import { RangeFilter as Be } from "./index70.js";
|
|
70
70
|
import { Views as Ie } from "./index71.js";
|
|
71
|
-
import { Notifications as
|
|
72
|
-
import { Table as
|
|
73
|
-
import { MobXProvider as
|
|
74
|
-
import { getAsyncOptions as
|
|
75
|
-
import { getFetcherFunction as
|
|
76
|
-
import { isValidDateRange as
|
|
77
|
-
import { viewsAdapter as
|
|
78
|
-
import { createAllView as
|
|
79
|
-
import { organiseViews as
|
|
80
|
-
import { mockUseStores as
|
|
71
|
+
import { Notifications as ke } from "./index72.js";
|
|
72
|
+
import { Table as Ge } from "./index73.js";
|
|
73
|
+
import { MobXProvider as Ke } from "./index74.js";
|
|
74
|
+
import { getAsyncOptions as Xe } from "./index75.js";
|
|
75
|
+
import { getFetcherFunction as qe } from "./index76.js";
|
|
76
|
+
import { isValidDateRange as Qe } from "./index77.js";
|
|
77
|
+
import { viewsAdapter as Ze } from "./index78.js";
|
|
78
|
+
import { createAllView as ro } from "./index79.js";
|
|
79
|
+
import { organiseViews as oo } from "./index80.js";
|
|
80
|
+
import { mockUseStores as po } from "./index81.js";
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
R as ActionsDropdown,
|
|
83
83
|
W as ActiveAsyncRadioFilter,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
_ as ActiveFilterArrayTag,
|
|
85
|
+
H as ActiveFilterDateRangeTag,
|
|
86
86
|
j as ActiveFilterFooter,
|
|
87
87
|
z as ActiveFilterHeader,
|
|
88
88
|
J as ActiveFilterNumberRangeTag,
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
E as ActiveFilterTag,
|
|
90
|
+
O as ActiveFilters,
|
|
91
91
|
Y as AsyncCheckboxFilter,
|
|
92
92
|
$ as AsyncRadioFilter,
|
|
93
93
|
g as BusinessLogicManager,
|
|
94
94
|
er as CheckboxFilter,
|
|
95
95
|
Ar as CreateView,
|
|
96
|
-
|
|
96
|
+
Hr as DateOptionMap,
|
|
97
97
|
tr as DateRangeFilter,
|
|
98
98
|
Gr as DateValue,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
Rr as EditDropdown,
|
|
100
|
+
h as ErrorBoundary,
|
|
101
101
|
P as FilterArrayField,
|
|
102
102
|
Kr as FilterChoiceValue,
|
|
103
103
|
U as FilterField,
|
|
104
104
|
Fr as FilterGroup,
|
|
105
|
-
|
|
105
|
+
ye as Filters,
|
|
106
106
|
lr as FiltersDropdown,
|
|
107
107
|
ur as FiltersList,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
Wr as MIN_SEARCH_ERROR_MESSAGE,
|
|
109
|
+
Ke as MobXProvider,
|
|
110
|
+
Qr as ModalId,
|
|
111
|
+
qr as ModalProvider,
|
|
111
112
|
ir as MultipleFieldFilter,
|
|
112
|
-
|
|
113
|
+
ke as Notifications,
|
|
113
114
|
fr as NumberRangeFilter,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
Le as NumberRangeFilterClass,
|
|
116
|
+
hr as OptionsDropdown,
|
|
117
|
+
Sr as PillNotifications,
|
|
117
118
|
sr as RadioFilter,
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
Be as RangeFilter,
|
|
120
|
+
_r as RefreshButton,
|
|
120
121
|
Ur as SHARING_OPTIONS,
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
Xr as SWR_HOOK_OPTIONS,
|
|
123
|
+
S as SearchBar,
|
|
123
124
|
Mr as SortableViews,
|
|
124
125
|
o as SortingMode,
|
|
125
|
-
|
|
126
|
+
Ge as Table,
|
|
126
127
|
M as TableControls,
|
|
127
|
-
|
|
128
|
+
Er as TableManagement,
|
|
128
129
|
T as ToastsManager,
|
|
129
130
|
Tr as UnsavedChangesPill,
|
|
130
|
-
|
|
131
|
+
Or as ViewDropdowns,
|
|
131
132
|
Pr as ViewList,
|
|
132
133
|
t as ViewStatusTypes,
|
|
133
134
|
gr as ViewTab,
|
|
134
135
|
Ie as Views,
|
|
135
136
|
u as axios,
|
|
136
|
-
|
|
137
|
+
ro as createAllView,
|
|
137
138
|
l as createCustomView,
|
|
138
139
|
i as deleteCustomView,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
ie as fetcherV1,
|
|
141
|
+
me as fetcherV2,
|
|
142
|
+
Xe as getAsyncOptions,
|
|
143
|
+
qe as getFetcherFunction,
|
|
144
|
+
Qe as isValidDateRange,
|
|
145
|
+
po as mockUseStores,
|
|
146
|
+
oe as onlyJSON,
|
|
147
|
+
oo as organiseViews,
|
|
147
148
|
f as patchCurrentUser,
|
|
148
149
|
s as patchCustomView,
|
|
149
150
|
A as setMockedBusinessLogic,
|
|
150
151
|
F as useBusinessLogic,
|
|
151
|
-
|
|
152
|
+
De as useColumns,
|
|
152
153
|
be as useCustomViews,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
xe as useDropdownManager,
|
|
155
|
+
ae as useDuplicateActiveView,
|
|
156
|
+
ne as useFilterArrayLabel,
|
|
157
|
+
ce as useFilterLabel,
|
|
158
|
+
Zr as useModal,
|
|
159
|
+
de as usePersistUnsavedChanges,
|
|
160
|
+
we as useStores,
|
|
160
161
|
ve as useUrlChange,
|
|
161
|
-
|
|
162
|
+
Ne as useUrlParams,
|
|
162
163
|
Ce as useViewUrlChange,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
Ve as useViews,
|
|
165
|
+
Ze as viewsAdapter,
|
|
166
|
+
te as vndAPI,
|
|
167
|
+
re as withCSRF
|
|
167
168
|
};
|
package/dist/index10.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("@veeqo/ui"),c=require("./index2.cjs"),T=require("./index9.cjs"),o=require("@veeqo/components"),e={BRAND_IDS:"brand_ids",ORDER_NUMBER:"search.order_number",SHOE_SIZE:"shoe_size",SHOE:"shoe",CHANNEL_ID:"channel_id",PRODUCT_COUNT:"product_count",DUE_DATE:"due_date",MAX_PRODUCTS:"max_products"},r=[e.DUE_DATE],_=[e.PRODUCT_COUNT],
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("@veeqo/ui"),c=require("./index2.cjs"),T=require("./index9.cjs"),o=require("@veeqo/components"),e={BRAND_IDS:"brand_ids",ORDER_NUMBER:"search.order_number",ORDER_CODE:"search.order_code",SHOE_SIZE:"shoe_size",SHOE:"shoe",CHANNEL_ID:"channel_id",PRODUCT_COUNT:"product_count",DUE_DATE:"due_date",MAX_PRODUCTS:"max_products"},r=[e.DUE_DATE],_=[e.PRODUCT_COUNT],D="search.all",A="sort",n=a.DateRanges.TODAY,p=a.getDateRange(n),u=a.DATE_RANGE_OPTIONS.find(({value:l})=>l===n),R="25",O="1",m="order",S=!1,h=200,b=[10,25,50,100],y="page[number]",L="page[size]",g=["order_id","shipping_rates","package","action"],C=["price"],N="api/v2/orders",U=c.SortingMode.MONOLITH,i={DATE_RANGE_FILTERS:r,SEARCH_FILTER_ID:D,SORT_FILTER_ID:A,NUMBER_RANGE_FILTERS:_,DEFAULT_DATE_SELECTION:n,DEFAULT_DATE_RANGE:p,DEFAULT_DATE_PRESET:u,DEFAULT_PAGE_SIZE:R,DEFAULT_PAGE_NUMBER:O,VIEW_TYPE:m,IS_VIEWS_READONLY:S,FILTERS_DEBOUCE_INTERVAL_MS:h,PAGE_SIZE_OPTIONS:b,PAGE_NUMBER_FILTER_ID:y,PAGE_SIZE_FILTER_ID:L,DEFAULT_VISIBLE_COLUMNS:g,DEFAULT_HIDDEN_COLUMNS:C,TABLE_DATA_URL:N,SORTING_MODE:U},E=()=>{const l=new Map,s=new Map;return l.set(e.BRAND_IDS,{id:e.BRAND_IDS,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"brand"}),label:"Brand",filterType:"checkbox",isFilterAllowed:!0,fetchAsyncFilterOptions:{URL:"/catalog/brands",labelProperty:"name",valueProperty:"id",fetcher:"fetcherV1",baseProperty:"brands"}}),s.set("brand",{id:"brand",label:"Brand",fields:[l.get(e.BRAND_IDS)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"brand"})}),l.set(e.ORDER_NUMBER,{id:e.ORDER_NUMBER,label:"Order number",filterType:"text",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"})}),l.set(e.ORDER_CODE,{id:e.ORDER_CODE,label:"Order code",filterType:"text",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"})}),s.set("order",{id:"order",label:"Order",fields:[l.get(e.ORDER_NUMBER),l.get(e.ORDER_CODE)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"product-menu"})}),l.set(e.SHOE_SIZE,{id:e.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"}]}),s.set(e.SHOE,{id:e.SHOE,label:"Shoe",fields:[l.get(e.SHOE_SIZE)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"filter"})}),l.set(e.CHANNEL_ID,{id:e.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"}}),s.set("channel",{id:"channel",label:"Store",fields:[l.get(e.CHANNEL_ID)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"fba"})}),l.set(e.PRODUCT_COUNT,{id:e.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"}]}),s.set(e.PRODUCT_COUNT,{id:e.PRODUCT_COUNT,label:"Product count",fields:[l.get(e.PRODUCT_COUNT)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"reports"})}),l.set(e.DUE_DATE,{id:e.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"}]}),s.set("due",{id:"due",label:"Due",fields:[l.get(e.DUE_DATE)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"date"})}),l.set(e.MAX_PRODUCTS,{id:e.MAX_PRODUCTS,label:"Max products",filterType:"number",isFilterAllowed:!0,glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"products"})}),s.set("max_count",{id:"max_count",label:"Max count",fields:[l.get(e.MAX_PRODUCTS)],glyph:t.jsx(o.VeeqoCommon.Glyph,{name:"reports"})}),{FIELDS_MAP:l,GROUP_MAP:s}},I=l=>{const s=E(),d={...i,...s,...l};T.BusinessLogicManager.setBusinessLogic(d)};exports.DATE_RANGE_FILTERS=r;exports.NUMBER_RANGE_FILTERS=_;exports.customAppBusinessLogic=i;exports.filterIds=e;exports.generateMockedFilterMaps=E;exports.setMockedBusinessLogic=I;
|
package/dist/index10.js
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { DATE_RANGE_OPTIONS as
|
|
2
|
+
import { DATE_RANGE_OPTIONS as _, getDateRange as n, DateRanges as E } from "@veeqo/ui";
|
|
3
3
|
import { SortingMode as i } from "./index2.js";
|
|
4
4
|
import { BusinessLogicManager as d } from "./index9.js";
|
|
5
5
|
import { VeeqoCommon as a } from "@veeqo/components";
|
|
6
6
|
const e = {
|
|
7
7
|
BRAND_IDS: "brand_ids",
|
|
8
8
|
ORDER_NUMBER: "search.order_number",
|
|
9
|
+
ORDER_CODE: "search.order_code",
|
|
9
10
|
SHOE_SIZE: "shoe_size",
|
|
10
11
|
SHOE: "shoe",
|
|
11
12
|
CHANNEL_ID: "channel_id",
|
|
12
13
|
PRODUCT_COUNT: "product_count",
|
|
13
14
|
DUE_DATE: "due_date",
|
|
14
15
|
MAX_PRODUCTS: "max_products"
|
|
15
|
-
},
|
|
16
|
-
({ value: l }) => l ===
|
|
17
|
-
),
|
|
18
|
-
DATE_RANGE_FILTERS:
|
|
16
|
+
}, D = [e.DUE_DATE], T = [e.PRODUCT_COUNT], p = "search.all", c = "sort", s = E.TODAY, A = n(s), O = _.find(
|
|
17
|
+
({ value: l }) => l === s
|
|
18
|
+
), R = "25", u = "1", h = "order", S = !1, b = 200, y = [10, 25, 50, 100], L = "page[number]", U = "page[size]", N = ["order_id", "shipping_rates", "package", "action"], g = ["price"], m = "api/v2/orders", I = i.MONOLITH, f = {
|
|
19
|
+
DATE_RANGE_FILTERS: D,
|
|
19
20
|
SEARCH_FILTER_ID: p,
|
|
20
|
-
SORT_FILTER_ID:
|
|
21
|
-
NUMBER_RANGE_FILTERS:
|
|
22
|
-
DEFAULT_DATE_SELECTION:
|
|
23
|
-
DEFAULT_DATE_RANGE:
|
|
24
|
-
DEFAULT_DATE_PRESET:
|
|
25
|
-
DEFAULT_PAGE_SIZE:
|
|
26
|
-
DEFAULT_PAGE_NUMBER:
|
|
27
|
-
VIEW_TYPE:
|
|
28
|
-
IS_VIEWS_READONLY:
|
|
21
|
+
SORT_FILTER_ID: c,
|
|
22
|
+
NUMBER_RANGE_FILTERS: T,
|
|
23
|
+
DEFAULT_DATE_SELECTION: s,
|
|
24
|
+
DEFAULT_DATE_RANGE: A,
|
|
25
|
+
DEFAULT_DATE_PRESET: O,
|
|
26
|
+
DEFAULT_PAGE_SIZE: R,
|
|
27
|
+
DEFAULT_PAGE_NUMBER: u,
|
|
28
|
+
VIEW_TYPE: h,
|
|
29
|
+
IS_VIEWS_READONLY: S,
|
|
29
30
|
FILTERS_DEBOUCE_INTERVAL_MS: b,
|
|
30
31
|
PAGE_SIZE_OPTIONS: y,
|
|
31
32
|
PAGE_NUMBER_FILTER_ID: L,
|
|
32
33
|
PAGE_SIZE_FILTER_ID: U,
|
|
33
34
|
DEFAULT_VISIBLE_COLUMNS: N,
|
|
34
|
-
DEFAULT_HIDDEN_COLUMNS:
|
|
35
|
-
TABLE_DATA_URL:
|
|
36
|
-
SORTING_MODE:
|
|
35
|
+
DEFAULT_HIDDEN_COLUMNS: g,
|
|
36
|
+
TABLE_DATA_URL: m,
|
|
37
|
+
SORTING_MODE: I
|
|
37
38
|
}, M = () => {
|
|
38
|
-
const l = /* @__PURE__ */ new Map(),
|
|
39
|
+
const l = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
39
40
|
return l.set(e.BRAND_IDS, {
|
|
40
41
|
id: e.BRAND_IDS,
|
|
41
42
|
glyph: /* @__PURE__ */ t(a.Glyph, { name: "brand" }),
|
|
@@ -49,7 +50,7 @@ const e = {
|
|
|
49
50
|
fetcher: "fetcherV1",
|
|
50
51
|
baseProperty: "brands"
|
|
51
52
|
}
|
|
52
|
-
}),
|
|
53
|
+
}), r.set("brand", {
|
|
53
54
|
id: "brand",
|
|
54
55
|
label: "Brand",
|
|
55
56
|
fields: [l.get(e.BRAND_IDS)],
|
|
@@ -60,10 +61,16 @@ const e = {
|
|
|
60
61
|
filterType: "text",
|
|
61
62
|
isFilterAllowed: !0,
|
|
62
63
|
glyph: /* @__PURE__ */ t(a.Glyph, { name: "filter" })
|
|
63
|
-
}),
|
|
64
|
+
}), l.set(e.ORDER_CODE, {
|
|
65
|
+
id: e.ORDER_CODE,
|
|
66
|
+
label: "Order code",
|
|
67
|
+
filterType: "text",
|
|
68
|
+
isFilterAllowed: !0,
|
|
69
|
+
glyph: /* @__PURE__ */ t(a.Glyph, { name: "filter" })
|
|
70
|
+
}), r.set("order", {
|
|
64
71
|
id: "order",
|
|
65
72
|
label: "Order",
|
|
66
|
-
fields: [l.get(e.ORDER_NUMBER)],
|
|
73
|
+
fields: [l.get(e.ORDER_NUMBER), l.get(e.ORDER_CODE)],
|
|
67
74
|
glyph: /* @__PURE__ */ t(a.Glyph, { name: "product-menu" })
|
|
68
75
|
}), l.set(e.SHOE_SIZE, {
|
|
69
76
|
id: e.SHOE_SIZE,
|
|
@@ -93,7 +100,7 @@ const e = {
|
|
|
93
100
|
value: "5"
|
|
94
101
|
}
|
|
95
102
|
]
|
|
96
|
-
}),
|
|
103
|
+
}), r.set(e.SHOE, {
|
|
97
104
|
id: e.SHOE,
|
|
98
105
|
label: "Shoe",
|
|
99
106
|
fields: [l.get(e.SHOE_SIZE)],
|
|
@@ -110,7 +117,7 @@ const e = {
|
|
|
110
117
|
valueProperty: "id",
|
|
111
118
|
fetcher: "fetcherV1"
|
|
112
119
|
}
|
|
113
|
-
}),
|
|
120
|
+
}), r.set("channel", {
|
|
114
121
|
id: "channel",
|
|
115
122
|
label: "Store",
|
|
116
123
|
fields: [l.get(e.CHANNEL_ID)],
|
|
@@ -131,7 +138,7 @@ const e = {
|
|
|
131
138
|
value: "100"
|
|
132
139
|
}
|
|
133
140
|
]
|
|
134
|
-
}),
|
|
141
|
+
}), r.set(e.PRODUCT_COUNT, {
|
|
135
142
|
id: e.PRODUCT_COUNT,
|
|
136
143
|
label: "Product count",
|
|
137
144
|
fields: [l.get(e.PRODUCT_COUNT)],
|
|
@@ -184,7 +191,7 @@ const e = {
|
|
|
184
191
|
value: "YEAR_TO_DATE"
|
|
185
192
|
}
|
|
186
193
|
]
|
|
187
|
-
}),
|
|
194
|
+
}), r.set("due", {
|
|
188
195
|
id: "due",
|
|
189
196
|
label: "Due",
|
|
190
197
|
fields: [l.get(e.DUE_DATE)],
|
|
@@ -195,19 +202,19 @@ const e = {
|
|
|
195
202
|
filterType: "number",
|
|
196
203
|
isFilterAllowed: !0,
|
|
197
204
|
glyph: /* @__PURE__ */ t(a.Glyph, { name: "products" })
|
|
198
|
-
}),
|
|
205
|
+
}), r.set("max_count", {
|
|
199
206
|
id: "max_count",
|
|
200
207
|
label: "Max count",
|
|
201
208
|
fields: [l.get(e.MAX_PRODUCTS)],
|
|
202
209
|
glyph: /* @__PURE__ */ t(a.Glyph, { name: "reports" })
|
|
203
|
-
}), { FIELDS_MAP: l, GROUP_MAP:
|
|
210
|
+
}), { FIELDS_MAP: l, GROUP_MAP: r };
|
|
204
211
|
}, B = (l) => {
|
|
205
|
-
const
|
|
212
|
+
const r = M(), o = { ...f, ...r, ...l };
|
|
206
213
|
d.setBusinessLogic(o);
|
|
207
214
|
};
|
|
208
215
|
export {
|
|
209
|
-
|
|
210
|
-
|
|
216
|
+
D as DATE_RANGE_FILTERS,
|
|
217
|
+
T as NUMBER_RANGE_FILTERS,
|
|
211
218
|
f as customAppBusinessLogic,
|
|
212
219
|
e as filterIds,
|
|
213
220
|
M as generateMockedFilterMaps,
|
package/dist/index100.cjs
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
padding: 8px;
|
|
5
|
-
padding-left: 35px;
|
|
6
|
-
margin: 8px;
|
|
7
|
-
background-color: ${t.theme.colors.neutral.grey.lightest};
|
|
8
|
-
`,l=r.default.hr`
|
|
9
|
-
width: 100%;
|
|
10
|
-
border-top: 1px solid ${t.theme.colors.neutral.grey.dark};
|
|
11
|
-
margin: 0 0 4px 0;
|
|
12
|
-
`;exports.Divider=l;exports.FixedViews=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=(t,r)=>{if(!r)return t;const i=r.toLowerCase();return t.filter(e=>{var s,a;return((s=e==null?void 0:e.title)==null?void 0:s.toLowerCase().includes(i))||((a=e==null?void 0:e.id)==null?void 0:a.toLowerCase().includes(i))})};exports.filterColumnsBySearch=d;
|
package/dist/index100.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
width: 100%;
|
|
12
|
-
border-top: 1px solid ${o.colors.neutral.grey.dark};
|
|
13
|
-
margin: 0 0 4px 0;
|
|
14
|
-
`;
|
|
1
|
+
const a = (t, r) => {
|
|
2
|
+
if (!r) return t;
|
|
3
|
+
const i = r.toLowerCase();
|
|
4
|
+
return t.filter(
|
|
5
|
+
(e) => {
|
|
6
|
+
var s, C;
|
|
7
|
+
return ((s = e == null ? void 0 : e.title) == null ? void 0 : s.toLowerCase().includes(i)) || ((C = e == null ? void 0 : e.id) == null ? void 0 : C.toLowerCase().includes(i));
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
};
|
|
15
11
|
export {
|
|
16
|
-
|
|
17
|
-
d as FixedViews
|
|
12
|
+
a as filterColumnsBySearch
|
|
18
13
|
};
|
package/dist/index101.cjs
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
package/dist/index101.js
CHANGED
|
@@ -1,40 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} = g(
|
|
23
|
-
[p, { includeMeta: !0 }],
|
|
24
|
-
([a, t]) => R(a, t),
|
|
25
|
-
{
|
|
26
|
-
revalidateOnFocus: !1,
|
|
27
|
-
revalidateOnReconnect: !1,
|
|
28
|
-
keepPreviousData: !0
|
|
29
|
-
}
|
|
30
|
-
), o = e == null ? void 0 : e.meta;
|
|
31
|
-
return {
|
|
32
|
-
viewCounts: (n = o == null ? void 0 : o.page) == null ? void 0 : n.total_count,
|
|
33
|
-
error: f,
|
|
34
|
-
isLoadingViewCounts: l,
|
|
35
|
-
mutate: L
|
|
36
|
-
};
|
|
37
|
-
};
|
|
1
|
+
import t from "styled-components";
|
|
2
|
+
import { theme as o, Card as r, Button as e } from "@veeqo/ui";
|
|
3
|
+
const n = t(e).attrs(() => ({ role: "option", variant: "flat" }))`
|
|
4
|
+
margin: ${o.sizes.xs};
|
|
5
|
+
min-width: 180px;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
font-size: ${o.text.body.fontSize};
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
background-color: ${o.colors.neutral.grey.lightest};
|
|
11
|
+
color: ${o.colors.secondary.blue.base};
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
`, a = t(r.Surface).attrs(() => ({ role: "listbox", elevation: 4 }))`
|
|
15
|
+
margin-top: ${o.sizes.xs};
|
|
16
|
+
background-color: white;
|
|
17
|
+
`, l = t.hr`
|
|
18
|
+
width: 100%;
|
|
19
|
+
border-top: 1px solid ${o.colors.neutral.grey.dark};
|
|
20
|
+
margin: 0;
|
|
21
|
+
`;
|
|
38
22
|
export {
|
|
39
|
-
|
|
23
|
+
l as Divider,
|
|
24
|
+
n as Item,
|
|
25
|
+
a as MenuItems
|
|
40
26
|
};
|
package/dist/index102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@veeqo/ui"),i=require("./index108.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;
|