@veeqo/transfigure 0.0.21 → 0.0.22
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/components/Filters/ActiveFilters/Variants/common/ActiveFilterFooter/ActiveFilterFooter.d.ts +6 -0
- package/dist/components/Filters/ActiveFilters/Variants/common/ActiveFilterFooter/index.d.ts +1 -0
- package/dist/components/Filters/ActiveFilters/Variants/common/ActiveFilterHeader/ActiveFilterHeader.d.ts +5 -0
- package/dist/components/Filters/ActiveFilters/Variants/common/ActiveFilterHeader/index.d.ts +1 -0
- package/dist/components/Filters/ActiveFilters/Variants/common/index.d.ts +2 -0
- package/dist/components/Filters/ActiveFilters/Variants/index.d.ts +3 -1
- package/dist/components/Filters/ActiveFilters/index.d.ts +0 -1
- package/dist/components/RefreshButton/RefreshButton.d.ts +2 -1
- package/dist/components/RefreshButton/{usePollListOrders.d.ts → usePollData.d.ts} +1 -1
- package/dist/components/Views/PillNotifications/constants.d.ts +25 -0
- package/dist/components/Views/PillNotifications/variants/DraftPill/DraftPill.d.ts +5 -0
- package/dist/components/Views/PillNotifications/variants/DraftPill/index.d.ts +1 -0
- package/dist/components/Views/PillNotifications/variants/UnsavedChangesPill/UnsavedChangesPill.d.ts +7 -0
- package/dist/components/Views/PillNotifications/variants/UnsavedChangesPill/index.d.ts +1 -0
- package/dist/components/Views/PillNotifications/variants/styled.d.ts +324 -0
- package/dist/components/Views/index.d.ts +1 -1
- package/dist/context/ModalContext/mocks/mockUseModal.d.ts +4 -4
- package/dist/hooks/useViewCountsHook/useViewCountsHook.d.ts +1 -1
- package/dist/hooks/useViews/mocks.d.ts +2 -0
- package/dist/hooks/useViews/useViews.d.ts +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +121 -119
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +2 -36
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +36 -19
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +25 -7
- package/dist/index103.cjs +13 -1
- package/dist/index103.js +16 -63
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +18 -29
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -63
- package/dist/index106.cjs +1 -13
- package/dist/index106.js +63 -16
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +30 -42
- package/dist/index108.cjs +1 -7
- package/dist/index108.js +63 -10
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +49 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +7 -0
- package/dist/index110.js +12 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +44 -0
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +14 -14
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +36 -41
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +33 -37
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +49 -32
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +38 -48
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +27 -28
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +37 -38
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +36 -37
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +20 -21
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +7 -46
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +12 -61
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +36 -35
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +55 -34
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +34 -52
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +54 -51
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +50 -81
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +80 -33
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +37 -33
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +33 -10
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +10 -40
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +39 -102
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +103 -19
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +17 -135
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +135 -49
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +51 -50
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +31 -49
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +48 -71
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +58 -79
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +81 -41
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +48 -5
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +5 -42
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +42 -25
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -19
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +19 -8
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +7 -22
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +23 -2
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -4
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +4 -11
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +10 -12
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +12 -11
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +11 -184
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +183 -25
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +26 -24
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +19 -22
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +25 -90
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +93 -8
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +8 -51
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +50 -60
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +61 -18
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +16 -23
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +25 -315
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +311 -55
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +50 -47
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +51 -32
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +30 -24
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +32 -4
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +4 -9
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +9 -17
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +14 -16
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +18 -47
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +48 -21
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +21 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +2 -9
- package/dist/index76.cjs +1 -3
- package/dist/index76.js +8 -13
- package/dist/index77.cjs +3 -1
- package/dist/index77.js +13 -8
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +7 -141
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +142 -18
- package/dist/index80.cjs +1 -8
- package/dist/index80.js +19 -12
- package/dist/index81.cjs +8 -1
- package/dist/index81.js +12 -41
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +40 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +9 -18
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +31 -13
- package/dist/index85.cjs +1 -104
- package/dist/index85.js +27 -118
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -67
- package/dist/index87.cjs +19 -1
- package/dist/index87.js +24 -29
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +21 -2
- package/dist/index89.cjs +12 -1
- package/dist/index89.js +16 -41
- package/dist/index90.cjs +80 -1
- package/dist/index90.js +103 -11
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -24
- package/dist/index92.cjs +100 -15
- package/dist/index92.js +115 -19
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +65 -30
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +29 -29
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +2 -22
- package/dist/index96.cjs +1 -80
- package/dist/index96.js +41 -96
- package/dist/index97.cjs +1 -12
- package/dist/index97.js +11 -16
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +17 -14
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +24 -2
- package/dist/mobx/Filters/tests/Filters.arrayFilters.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.clearOperations.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.dateRangeFilters.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.hasUnsavedChanges.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.numberRangeFilters.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.pagination.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.textFilters.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.urlHandling.test.d.ts +1 -0
- package/dist/mobx/Filters/tests/Filters.views.test.d.ts +1 -0
- package/dist/mobx/Notifications/Notifications.d.ts +7 -8
- package/dist/mobx/Notifications/Notifications.test.d.ts +1 -0
- package/dist/mobx/Notifications/index.d.ts +1 -0
- package/dist/mobx/NumberRangeFilter/NumberRangeFilter.test.d.ts +1 -0
- package/dist/mobx/RangeFilter/RangeFilter.test.d.ts +1 -0
- package/dist/mobx/Views/Views.test.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/Views/PillNotifications/InfoPill.d.ts +0 -1
- package/dist/components/Views/PillNotifications/styled.d.ts +0 -34
- package/dist/components/Views/UnsavedChanges/UnsavedChanges.d.ts +0 -5
- package/dist/components/Views/UnsavedChanges/index.d.ts +0 -1
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterTag → Variants/ActiveFilterTag}/ActiveFilterTag.d.ts +0 -0
- /package/dist/components/Filters/ActiveFilters/{ActiveFilterTag → Variants/ActiveFilterTag}/index.d.ts +0 -0
package/dist/index40.js
CHANGED
|
@@ -1,90 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
edit: { handleShowEditDropdown: S, closeEditDropdown: u },
|
|
12
|
-
delete: { handleShowDeleteConfirmation: d, handleDelete: C },
|
|
13
|
-
shouldShowDropdown: i,
|
|
14
|
-
shouldShowEditDropdown: l,
|
|
15
|
-
shouldShowCreateDropdown: p
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { Stack as p, theme as v, Button as a, AnimatedDropdown as u } from "@veeqo/ui";
|
|
4
|
+
import { observer as b } from "mobx-react";
|
|
5
|
+
import { usePersistUnsavedChanges as g } from "./index58.js";
|
|
6
|
+
import { Notification as C, Container as f, Glyph as y, Wrap as k, Text as n, Bold as S, Item as t } from "./index90.js";
|
|
7
|
+
const w = v.colors.secondary.blue.base, P = b(({
|
|
8
|
+
onDiscard: d,
|
|
9
|
+
viewName: o,
|
|
10
|
+
onSaveDraft: c
|
|
16
11
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const { saveChanges: s, isSubmitting: l } = g(), [h, i] = m(!1);
|
|
13
|
+
return /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(f, { children: /* @__PURE__ */ r(p, { direction: "horizontal", alignY: "center", children: [
|
|
14
|
+
/* @__PURE__ */ e(y, { ariaLabel: "attention", name: "attention", color: w }),
|
|
15
|
+
/* @__PURE__ */ r(k, { children: [
|
|
16
|
+
/* @__PURE__ */ e(n, { variant: "body", margin: "0 4px 0 0", children: "You have unsaved changes" }),
|
|
17
|
+
o && /* @__PURE__ */ e(S, { variant: "bodyBoldDark", children: `to '${o}'` })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(
|
|
20
|
+
a,
|
|
21
21
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
id: "options-dropdown",
|
|
26
|
-
children: /* @__PURE__ */ o(
|
|
27
|
-
O,
|
|
28
|
-
{
|
|
29
|
-
tab: e,
|
|
30
|
-
onMakeDefault: x,
|
|
31
|
-
onDelete: d,
|
|
32
|
-
onDuplicate: v,
|
|
33
|
-
onEdit: S,
|
|
34
|
-
shouldShowDropdown: i,
|
|
35
|
-
handleCloseDropdown: t
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
l && /* @__PURE__ */ o(
|
|
41
|
-
r,
|
|
42
|
-
{
|
|
43
|
-
anchorElement: n,
|
|
44
|
-
placement: "bottom-start",
|
|
45
|
-
onShouldClose: t,
|
|
46
|
-
id: "edit-dropdown",
|
|
47
|
-
children: /* @__PURE__ */ o(
|
|
48
|
-
s,
|
|
49
|
-
{
|
|
50
|
-
e2ePrefix: "edit-view-dropdown",
|
|
51
|
-
viewName: e.label,
|
|
52
|
-
shouldShowDropdown: l,
|
|
53
|
-
onCloseDropdown: u,
|
|
54
|
-
onSave: h,
|
|
55
|
-
onDelete: C,
|
|
56
|
-
headerText: "Edit view",
|
|
57
|
-
tab: e,
|
|
58
|
-
activeOption: a
|
|
59
|
-
}
|
|
60
|
-
)
|
|
22
|
+
onClick: d,
|
|
23
|
+
size: "sm",
|
|
24
|
+
children: "Discard changes"
|
|
61
25
|
}
|
|
62
26
|
),
|
|
63
|
-
|
|
64
|
-
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
u,
|
|
65
29
|
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
s,
|
|
30
|
+
reversed: !0,
|
|
31
|
+
shouldShowDropdown: h,
|
|
32
|
+
onClickAway: () => i(!1),
|
|
33
|
+
cta: /* @__PURE__ */ e(
|
|
34
|
+
a,
|
|
72
35
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
onDelete: d,
|
|
79
|
-
headerText: "Create new view",
|
|
80
|
-
tab: e,
|
|
81
|
-
activeOption: a
|
|
36
|
+
variant: "primary",
|
|
37
|
+
onClick: () => i(!0),
|
|
38
|
+
size: "sm",
|
|
39
|
+
dropdown: !0,
|
|
40
|
+
children: "Save changes"
|
|
82
41
|
}
|
|
83
|
-
)
|
|
42
|
+
),
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
t,
|
|
46
|
+
{
|
|
47
|
+
onClick: c,
|
|
48
|
+
children: /* @__PURE__ */ e(n, { variant: "body", children: "Create new view" })
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ r(
|
|
52
|
+
t,
|
|
53
|
+
{
|
|
54
|
+
onClick: s,
|
|
55
|
+
disabled: l,
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ e(n, { variant: "body", margin: "0 4px 0 0", children: "Save changes to" }),
|
|
58
|
+
/* @__PURE__ */ e(n, { variant: "bodyBoldDark", children: o })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
84
63
|
}
|
|
85
64
|
)
|
|
86
|
-
] });
|
|
87
|
-
};
|
|
65
|
+
] }) }) });
|
|
66
|
+
});
|
|
88
67
|
export {
|
|
89
|
-
|
|
68
|
+
P as UnsavedChangesPill
|
|
90
69
|
};
|
package/dist/index41.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"),p=require("./index43.cjs"),O=require("./index37.cjs"),c=require("./index36.cjs"),P=({referenceElement:t,tab:o,create:{handleCreate:w,closeCreateDropdown:u},menu:{handleSave:v,handleDuplicate:m,handleMakeDefault:x,closeDropdown:n},edit:{handleShowEditDropdown:S,closeEditDropdown:h},delete:{handleShowDeleteConfirmation:i,handleDelete:D},shouldShowDropdown:d,shouldShowEditDropdown:s,shouldShowCreateDropdown:l})=>{const a=o.isShared?p.SHARING_OPTIONS.COMPANY:p.SHARING_OPTIONS.PERSONAL;return e.jsxs(e.Fragment,{children:[d&&e.jsx(r.Popover,{anchorElement:t,placement:"bottom-start",onShouldClose:n,id:"options-dropdown",children:e.jsx(O.OptionsDropdown,{tab:o,onMakeDefault:x,onDelete:i,onDuplicate:m,onEdit:S,shouldShowDropdown:d,handleCloseDropdown:n})}),s&&e.jsx(r.Popover,{anchorElement:t,placement:"bottom-start",onShouldClose:n,id:"edit-dropdown",children:e.jsx(c.EditDropdown,{e2ePrefix:"edit-view-dropdown",viewName:o.label,shouldShowDropdown:s,onCloseDropdown:h,onSave:v,onDelete:D,headerText:"Edit view",tab:o,activeOption:a})}),l&&e.jsx(r.Popover,{anchorElement:t,placement:"bottom-start",onShouldClose:n,id:"create-dropdown",children:e.jsx(c.EditDropdown,{e2ePrefix:"create-view-dropdown",viewName:o.label,shouldShowDropdown:l,onCloseDropdown:u,onSave:w,onDelete:i,headerText:"Create new view",tab:o,activeOption:a})})]})};exports.ViewDropdowns=P;
|
package/dist/index41.js
CHANGED
|
@@ -1,50 +1,90 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsxs as D, Fragment as N, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as r } from "@veeqo/ui";
|
|
3
|
+
import { SHARING_OPTIONS as m } from "./index43.js";
|
|
4
|
+
import { OptionsDropdown as O } from "./index37.js";
|
|
5
|
+
import { EditDropdown as s } from "./index36.js";
|
|
6
|
+
const j = ({
|
|
7
|
+
referenceElement: n,
|
|
8
|
+
tab: e,
|
|
9
|
+
create: { handleCreate: w, closeCreateDropdown: c },
|
|
10
|
+
menu: { handleSave: h, handleDuplicate: v, handleMakeDefault: x, closeDropdown: t },
|
|
11
|
+
edit: { handleShowEditDropdown: S, closeEditDropdown: u },
|
|
12
|
+
delete: { handleShowDeleteConfirmation: d, handleDelete: C },
|
|
13
|
+
shouldShowDropdown: i,
|
|
14
|
+
shouldShowEditDropdown: l,
|
|
15
|
+
shouldShowCreateDropdown: p
|
|
16
|
+
}) => {
|
|
17
|
+
const a = e.isShared ? m.COMPANY : m.PERSONAL;
|
|
18
|
+
return /* @__PURE__ */ D(N, { children: [
|
|
19
|
+
i && /* @__PURE__ */ o(
|
|
20
|
+
r,
|
|
20
21
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
anchorElement: n,
|
|
23
|
+
placement: "bottom-start",
|
|
24
|
+
onShouldClose: t,
|
|
25
|
+
id: "options-dropdown",
|
|
26
|
+
children: /* @__PURE__ */ o(
|
|
27
|
+
O,
|
|
28
|
+
{
|
|
29
|
+
tab: e,
|
|
30
|
+
onMakeDefault: x,
|
|
31
|
+
onDelete: d,
|
|
32
|
+
onDuplicate: v,
|
|
33
|
+
onEdit: S,
|
|
34
|
+
shouldShowDropdown: i,
|
|
35
|
+
handleCloseDropdown: t
|
|
36
|
+
}
|
|
37
|
+
)
|
|
29
38
|
}
|
|
30
39
|
),
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
l && /* @__PURE__ */ o(
|
|
41
|
+
r,
|
|
33
42
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
anchorElement: n,
|
|
44
|
+
placement: "bottom-start",
|
|
45
|
+
onShouldClose: t,
|
|
46
|
+
id: "edit-dropdown",
|
|
47
|
+
children: /* @__PURE__ */ o(
|
|
48
|
+
s,
|
|
49
|
+
{
|
|
50
|
+
e2ePrefix: "edit-view-dropdown",
|
|
51
|
+
viewName: e.label,
|
|
52
|
+
shouldShowDropdown: l,
|
|
53
|
+
onCloseDropdown: u,
|
|
54
|
+
onSave: h,
|
|
55
|
+
onDelete: C,
|
|
56
|
+
headerText: "Edit view",
|
|
57
|
+
tab: e,
|
|
58
|
+
activeOption: a
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
p && /* @__PURE__ */ o(
|
|
64
|
+
r,
|
|
65
|
+
{
|
|
66
|
+
anchorElement: n,
|
|
67
|
+
placement: "bottom-start",
|
|
68
|
+
onShouldClose: t,
|
|
69
|
+
id: "create-dropdown",
|
|
70
|
+
children: /* @__PURE__ */ o(
|
|
71
|
+
s,
|
|
72
|
+
{
|
|
73
|
+
e2ePrefix: "create-view-dropdown",
|
|
74
|
+
viewName: e.label,
|
|
75
|
+
shouldShowDropdown: p,
|
|
76
|
+
onCloseDropdown: c,
|
|
77
|
+
onSave: w,
|
|
78
|
+
onDelete: d,
|
|
79
|
+
headerText: "Create new view",
|
|
80
|
+
tab: e,
|
|
81
|
+
activeOption: a
|
|
82
|
+
}
|
|
83
|
+
)
|
|
44
84
|
}
|
|
45
85
|
)
|
|
46
86
|
] });
|
|
47
|
-
}
|
|
87
|
+
};
|
|
48
88
|
export {
|
|
49
|
-
|
|
89
|
+
j as ViewDropdowns
|
|
50
90
|
};
|
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),V=require("mobx-react"),s=require("@veeqo/ui"),t=require("./index89.cjs"),j=require("./index39.cjs"),m=require("./index60.cjs"),S=require("./index61.cjs"),q=require("./index35.cjs"),u=require("./index34.cjs"),p=require("./index59.cjs"),a=require("./index10.cjs"),b=V.observer(()=>{const{Views:{draftViewsList:c}}=p.useStores(),{viewsArray:l,fixedViews:d}=m.useViews(),[o,i]=n.useState(!1),[w,x]=n.useState(null),h=()=>i(!1);return S.useViewUrlChange(),e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewsContainer,{onClickMenu:()=>i(!0),ariaMenuControls:"views-menu",ariaMenuExpanded:o,ref:x,children:[l.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(u.ViewTab,{view:r})},r.id)),c.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(u.ViewTab,{view:r})},r.id))]}),o&&e.jsx(s.Popover,{id:"views-menu",anchorElement:w,placement:"bottom",onShouldClose:()=>i(!1),children:e.jsxs(s.Card.Surface,{children:[e.jsx(t.FixedViews,{children:d.map(r=>e.jsx(s.Text,{variant:"placeholder",children:r.label},r.id||r.label))}),e.jsx(j.SortableViews,{}),e.jsx(t.Divider,{}),e.jsx(q.CreateView,{hideActionsPopover:h})]})})]})});exports.ViewList=b;
|
package/dist/index42.js
CHANGED
|
@@ -1,7 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import { jsxs as i, Fragment as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { observer as h } from "mobx-react";
|
|
4
|
+
import { ViewsContainer as w, Popover as V, Card as v, Text as S } from "@veeqo/ui";
|
|
5
|
+
import { FixedViews as x, Divider as C } from "./index89.js";
|
|
6
|
+
import { SortableViews as b } from "./index39.js";
|
|
7
|
+
import { useViews as A } from "./index60.js";
|
|
8
|
+
import { useViewUrlChange as L } from "./index61.js";
|
|
9
|
+
import { CreateView as M } from "./index35.js";
|
|
10
|
+
import { ViewTab as s } from "./index34.js";
|
|
11
|
+
import { useStores as T } from "./index59.js";
|
|
12
|
+
import { ErrorBoundary as m } from "./index10.js";
|
|
13
|
+
const z = h(() => {
|
|
14
|
+
const {
|
|
15
|
+
Views: { draftViewsList: l }
|
|
16
|
+
} = T(), { viewsArray: a, fixedViews: d } = A(), [t, o] = n(!1), [p, c] = n(null), f = () => o(!1);
|
|
17
|
+
return L(), /* @__PURE__ */ i(u, { children: [
|
|
18
|
+
/* @__PURE__ */ i(
|
|
19
|
+
w,
|
|
20
|
+
{
|
|
21
|
+
onClickMenu: () => o(!0),
|
|
22
|
+
ariaMenuControls: "views-menu",
|
|
23
|
+
ariaMenuExpanded: t,
|
|
24
|
+
ref: c,
|
|
25
|
+
children: [
|
|
26
|
+
a.map((r) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(s, { view: r }) }, r.id)),
|
|
27
|
+
l.map((r) => /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(s, { view: r }) }, r.id))
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
t && /* @__PURE__ */ e(
|
|
32
|
+
V,
|
|
33
|
+
{
|
|
34
|
+
id: "views-menu",
|
|
35
|
+
anchorElement: p,
|
|
36
|
+
placement: "bottom",
|
|
37
|
+
onShouldClose: () => o(!1),
|
|
38
|
+
children: /* @__PURE__ */ i(v.Surface, { children: [
|
|
39
|
+
/* @__PURE__ */ e(x, { children: d.map((r) => /* @__PURE__ */ e(S, { variant: "placeholder", children: r.label }, r.id || r.label)) }),
|
|
40
|
+
/* @__PURE__ */ e(b, {}),
|
|
41
|
+
/* @__PURE__ */ e(C, {}),
|
|
42
|
+
/* @__PURE__ */ e(M, { hideActionsPopover: f })
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] });
|
|
47
|
+
});
|
|
5
48
|
export {
|
|
6
|
-
|
|
49
|
+
z as ViewList
|
|
7
50
|
};
|
package/dist/index43.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 e={PERSONAL:{key:"personal",text:"Personal"},COMPANY:{key:"company",text:"Company"}};exports.SHARING_OPTIONS=e;
|
package/dist/index43.js
CHANGED
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { observer as I } from "mobx-react";
|
|
6
|
-
import { useBusinessLogic as y } from "./index7.js";
|
|
7
|
-
import { useModal as P } from "./index49.js";
|
|
8
|
-
import { useStores as U } from "./index58.js";
|
|
9
|
-
import { useViews as G } from "./index59.js";
|
|
10
|
-
import { ModalId as M } from "./index48.js";
|
|
11
|
-
const X = I(({ columnDefinitions: f, pinnedRightColumnIds: i = [], pinnedLeftColumnIds: l = [] }) => {
|
|
12
|
-
var p;
|
|
13
|
-
const { DEFAULT_HIDDEN_COLUMNS: b, DEFAULT_VISIBLE_COLUMNS: g } = y(), t = [...l, ...i], a = b.filter((o) => !t.includes(o)), m = g.filter((o) => !t.includes(o)), T = [...a, ...m], { closeModal: E, isModalOpen: A, openModal: D } = P(), { Filters: { activeViewId: n }, Views: { draftViewsMap: h } } = U(), { viewsMap: C, isLoading: L } = G();
|
|
14
|
-
if (!n || L) return null;
|
|
15
|
-
const e = C.get(n), r = Array.isArray((p = e == null ? void 0 : e.columns) == null ? void 0 : p.columnIds), c = r ? e.columns.columnIds.filter((o) => !t.includes(o)) : m, N = r ? T.filter(
|
|
16
|
-
(o) => !c.includes(o)
|
|
17
|
-
) : a, u = h.has(n), d = !(e != null && e.editable), S = d || u, _ = u ? "Please create a view to use table management" : d ? "Please choose a custom view to use table management" : "Table management";
|
|
18
|
-
return /* @__PURE__ */ v(B, { children: [
|
|
19
|
-
/* @__PURE__ */ s(w, { text: _, children: /* @__PURE__ */ s(
|
|
20
|
-
x,
|
|
21
|
-
{
|
|
22
|
-
"aria-label": "Open table management",
|
|
23
|
-
onClick: () => D(M.ORDERS_TABLE_MANAGEMENT),
|
|
24
|
-
size: "sm",
|
|
25
|
-
iconSlot: /* @__PURE__ */ s(F, {}),
|
|
26
|
-
disabled: S
|
|
27
|
-
}
|
|
28
|
-
) }),
|
|
29
|
-
A(M.ORDERS_TABLE_MANAGEMENT) && /* @__PURE__ */ s(
|
|
30
|
-
O,
|
|
31
|
-
{
|
|
32
|
-
pinnedRightColumnIds: i,
|
|
33
|
-
pinnedLeftColumnIds: l,
|
|
34
|
-
visibleColumns: c,
|
|
35
|
-
hiddenColumns: N,
|
|
36
|
-
columnDefintions: f,
|
|
37
|
-
onClose: E
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
] });
|
|
41
|
-
});
|
|
1
|
+
const e = {
|
|
2
|
+
PERSONAL: { key: "personal", text: "Personal" },
|
|
3
|
+
COMPANY: { key: "company", text: "Company" }
|
|
4
|
+
};
|
|
42
5
|
export {
|
|
43
|
-
|
|
6
|
+
e as SHARING_OPTIONS
|
|
44
7
|
};
|
package/dist/index44.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 o=require("react/jsx-runtime"),N=require("./index79.cjs"),b=require("@veeqo/ui"),_=require("./index80.cjs"),j=require("mobx-react"),y=require("./index7.cjs"),B=require("./index50.cjs"),I=require("./index59.cjs"),O=require("./index60.cjs"),g=require("./index49.cjs"),w=j.observer(({columnDefinitions:T,pinnedRightColumnIds:i=[],pinnedLeftColumnIds:a=[]})=>{var M;const{DEFAULT_HIDDEN_COLUMNS:E,DEFAULT_VISIBLE_COLUMNS:p}=y.useBusinessLogic(),n=[...a,...i],l=E.filter(s=>!n.includes(s)),c=p.filter(s=>!n.includes(s)),S=[...l,...c],{closeModal:f,isModalOpen:h,openModal:q}=B.useModal(),{Filters:{activeViewId:t},Views:{draftViewsMap:A}}=I.useStores(),{viewsMap:D,isLoading:x}=O.useViews();if(!t||x)return null;const e=D.get(t),r=Array.isArray((M=e==null?void 0:e.columns)==null?void 0:M.columnIds),u=r?e.columns.columnIds.filter(s=>!n.includes(s)):c,L=r?S.filter(s=>!u.includes(s)):l,d=A.has(t),m=!(e!=null&&e.editable),v=m||d,C=d?"Please create a view to use table management":m?"Please choose a custom view to use table management":"Table management";return o.jsxs(o.Fragment,{children:[o.jsx(b.Tooltip,{text:C,children:o.jsx(b.Button,{"aria-label":"Open table management",onClick:()=>q(g.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:o.jsx(_.TableManagementGlyph,{}),disabled:v})}),h(g.ModalId.ORDERS_TABLE_MANAGEMENT)&&o.jsx(N.TableManagementModal,{pinnedRightColumnIds:i,pinnedLeftColumnIds:a,visibleColumns:u,hiddenColumns:L,columnDefintions:T,onClose:f})]})});exports.TableManagement=w;
|
package/dist/index44.js
CHANGED
|
@@ -1,27 +1,44 @@
|
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { jsxs as v, Fragment as B, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { TableManagementModal as O } from "./index79.js";
|
|
3
|
+
import { Tooltip as w, Button as x } from "@veeqo/ui";
|
|
4
|
+
import { TableManagementGlyph as F } from "./index80.js";
|
|
5
|
+
import { observer as I } from "mobx-react";
|
|
6
|
+
import { useBusinessLogic as y } from "./index7.js";
|
|
7
|
+
import { useModal as P } from "./index50.js";
|
|
8
|
+
import { useStores as U } from "./index59.js";
|
|
9
|
+
import { useViews as G } from "./index60.js";
|
|
10
|
+
import { ModalId as M } from "./index49.js";
|
|
11
|
+
const X = I(({ columnDefinitions: f, pinnedRightColumnIds: i = [], pinnedLeftColumnIds: l = [] }) => {
|
|
12
|
+
var p;
|
|
13
|
+
const { DEFAULT_HIDDEN_COLUMNS: b, DEFAULT_VISIBLE_COLUMNS: g } = y(), t = [...l, ...i], a = b.filter((o) => !t.includes(o)), m = g.filter((o) => !t.includes(o)), T = [...a, ...m], { closeModal: E, isModalOpen: A, openModal: D } = P(), { Filters: { activeViewId: n }, Views: { draftViewsMap: h } } = U(), { viewsMap: C, isLoading: L } = G();
|
|
14
|
+
if (!n || L) return null;
|
|
15
|
+
const e = C.get(n), r = Array.isArray((p = e == null ? void 0 : e.columns) == null ? void 0 : p.columnIds), c = r ? e.columns.columnIds.filter((o) => !t.includes(o)) : m, N = r ? T.filter(
|
|
16
|
+
(o) => !c.includes(o)
|
|
17
|
+
) : a, u = h.has(n), d = !(e != null && e.editable), S = d || u, _ = u ? "Please create a view to use table management" : d ? "Please choose a custom view to use table management" : "Table management";
|
|
18
|
+
return /* @__PURE__ */ v(B, { children: [
|
|
19
|
+
/* @__PURE__ */ s(w, { text: _, children: /* @__PURE__ */ s(
|
|
20
|
+
x,
|
|
21
|
+
{
|
|
22
|
+
"aria-label": "Open table management",
|
|
23
|
+
onClick: () => D(M.ORDERS_TABLE_MANAGEMENT),
|
|
24
|
+
size: "sm",
|
|
25
|
+
iconSlot: /* @__PURE__ */ s(F, {}),
|
|
26
|
+
disabled: S
|
|
27
|
+
}
|
|
28
|
+
) }),
|
|
29
|
+
A(M.ORDERS_TABLE_MANAGEMENT) && /* @__PURE__ */ s(
|
|
30
|
+
O,
|
|
31
|
+
{
|
|
32
|
+
pinnedRightColumnIds: i,
|
|
33
|
+
pinnedLeftColumnIds: l,
|
|
34
|
+
visibleColumns: c,
|
|
35
|
+
hiddenColumns: N,
|
|
36
|
+
columnDefintions: f,
|
|
37
|
+
onClose: E
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] });
|
|
41
|
+
});
|
|
25
42
|
export {
|
|
26
|
-
|
|
43
|
+
X as TableManagement
|
|
27
44
|
};
|
package/dist/index45.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 e=require("react/jsx-runtime"),c=require("@veeqo/ui"),r=require("./index81.cjs"),d=require("./index82.cjs"),h=require("./index83.cjs"),f=require("./index59.cjs"),y=({isLoading:s,refetch:n,trackMetricClick:t,tooltipText:a="Refresh data"})=>{const{hasChanges:o,acknowledgeButtonClick:l}=d.usePollData(),{Notifications:{notify:i}}=f.useStores(),u=async()=>{try{n(),l(),t==null||t()}catch{i({type:"error",text:"Failed to refresh data"})}};return e.jsx(c.Tooltip,{text:a,children:e.jsx(r.StyledButton,{onClick:u,variant:"default",size:"sm",loading:s,disabled:s,iconSlot:e.jsx(h.RefreshIcon,{}),"aria-label":o?"refresh table with changes":"refresh table","aria-live":"polite",children:e.jsx(r.StyledIndicator,{color:"red",size:"xs",style:{opacity:o?1:0}})})})};exports.RefreshButton=y;
|
package/dist/index45.js
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as l } from "@veeqo/ui";
|
|
3
|
+
import { StyledButton as f, StyledIndicator as h } from "./index81.js";
|
|
4
|
+
import { usePollData as d } from "./index82.js";
|
|
5
|
+
import { RefreshIcon as m } from "./index83.js";
|
|
6
|
+
import { useStores as p } from "./index59.js";
|
|
7
|
+
const B = ({ isLoading: t, refetch: s, trackMetricClick: o, tooltipText: a = "Refresh data" }) => {
|
|
8
|
+
const { hasChanges: r, acknowledgeButtonClick: n } = d(), { Notifications: { notify: i } } = p();
|
|
9
|
+
return /* @__PURE__ */ e(l, { text: a, children: /* @__PURE__ */ e(
|
|
10
|
+
f,
|
|
11
|
+
{
|
|
12
|
+
onClick: async () => {
|
|
13
|
+
try {
|
|
14
|
+
s(), n(), o == null || o();
|
|
15
|
+
} catch {
|
|
16
|
+
i({ type: "error", text: "Failed to refresh data" });
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
variant: "default",
|
|
20
|
+
size: "sm",
|
|
21
|
+
loading: t,
|
|
22
|
+
disabled: t,
|
|
23
|
+
iconSlot: /* @__PURE__ */ e(m, {}),
|
|
24
|
+
"aria-label": r ? "refresh table with changes" : "refresh table",
|
|
25
|
+
"aria-live": "polite",
|
|
26
|
+
children: /* @__PURE__ */ e(h, { color: "red", size: "xs", style: { opacity: r ? 1 : 0 } })
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
};
|
|
18
30
|
export {
|
|
19
|
-
|
|
20
|
-
_ as DateValue
|
|
31
|
+
B as RefreshButton
|
|
21
32
|
};
|
package/dist/index46.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("@veeqo/ui"),_={...T.DateRanges,CUSTOM:"CUSTOM"},A=new Map([["CUSTOM",T.DATE_RANGE_OPTIONS[0]],[_.TODAY,T.DATE_RANGE_OPTIONS[1]],[_.YESTERDAY,T.DATE_RANGE_OPTIONS[2]],[_.LAST_7_DAYS,T.DATE_RANGE_OPTIONS[3]],[_.LAST_30_DAYS,T.DATE_RANGE_OPTIONS[4]],[_.LAST_90_DAYS,T.DATE_RANGE_OPTIONS[5]],[_.LAST_MONTH,T.DATE_RANGE_OPTIONS[6]],[_.LAST_12_MONTHS,T.DATE_RANGE_OPTIONS[7]],[_.WEEK_TO_DATE,T.DATE_RANGE_OPTIONS[8]],[_.MONTH_TO_DATE,T.DATE_RANGE_OPTIONS[9]],[_.YEAR_TO_DATE,T.DATE_RANGE_OPTIONS[10]]]);exports.DateOptionMap=A;exports.DateValue=_;
|
package/dist/index46.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { DateRanges as A, DATE_RANGE_OPTIONS as T } from "@veeqo/ui";
|
|
2
|
+
const _ = {
|
|
3
|
+
...A,
|
|
4
|
+
CUSTOM: "CUSTOM"
|
|
5
|
+
}, O = /* @__PURE__ */ new Map([
|
|
6
|
+
["CUSTOM", T[0]],
|
|
7
|
+
[_.TODAY, T[1]],
|
|
8
|
+
[_.YESTERDAY, T[2]],
|
|
9
|
+
[_.LAST_7_DAYS, T[3]],
|
|
10
|
+
[_.LAST_30_DAYS, T[4]],
|
|
11
|
+
[_.LAST_90_DAYS, T[5]],
|
|
12
|
+
[_.LAST_MONTH, T[6]],
|
|
13
|
+
[_.LAST_12_MONTHS, T[7]],
|
|
14
|
+
[_.WEEK_TO_DATE, T[8]],
|
|
15
|
+
[_.MONTH_TO_DATE, T[9]],
|
|
16
|
+
[_.YEAR_TO_DATE, T[10]]
|
|
17
|
+
]);
|
|
7
18
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
19
|
+
O as DateOptionMap,
|
|
20
|
+
_ as DateValue
|
|
10
21
|
};
|
package/dist/index47.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var O=(e=>(e.TEXT="text",e.NUMBER="number",e.CHECKBOX="checkbox",e.RADIO="radio",e.DATE_RANGE="date_range",e.NUMBER_RANGE="number_range",e))(O||{});const n={revalidateOnFocus:!1,revalidateOnReconnect:!1,keepPreviousData:!0};exports.FilterChoiceValue=O;exports.SWR_HOOK_OPTIONS=n;
|