@veeqo/transfigure 0.0.4 → 0.0.6
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/types.d.ts +2 -0
- package/dist/components/TableManagement/DndContainer.d.ts +11 -0
- package/dist/components/TableManagement/TableManagement.d.ts +6 -0
- package/dist/components/TableManagement/TableManagementGlyph.d.ts +4 -0
- package/dist/components/TableManagement/TableManagementModal.d.ts +2 -0
- package/dist/components/TableManagement/components/ColumnGroup.d.ts +2 -0
- package/dist/components/TableManagement/components/ColumnItem.d.ts +2 -0
- package/dist/components/TableManagement/components/DroppableArea.d.ts +8 -0
- package/dist/components/TableManagement/components/SortableItem.d.ts +7 -0
- package/dist/components/TableManagement/components/styled.d.ts +28 -0
- package/dist/components/TableManagement/components/types.d.ts +11 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/index.d.ts +1 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/types.d.ts +4 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/useCollisionDetectionStrategy.d.ts +5 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/index.d.ts +1 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/types.d.ts +6 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/useDragHandlers.d.ts +9 -0
- package/dist/components/TableManagement/index.d.ts +1 -0
- package/dist/components/TableManagement/types.d.ts +17 -0
- package/dist/components/TableManagement/utils/filterColumnsBySearch/filterColumnsBySearch.d.ts +2 -0
- package/dist/components/TableManagement/utils/filterColumnsBySearch/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useHiddenColumns/index.d.ts +1 -0
- package/dist/hooks/useHiddenColumns/useHiddenColumns.d.ts +7 -0
- package/dist/hooks/usePersistColumns/index.d.ts +1 -0
- package/dist/hooks/usePersistColumns/usePersistColumns.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +79 -75
- package/dist/index100.cjs +13 -0
- package/dist/index100.js +19 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +38 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +44 -0
- package/dist/index103.cjs +7 -0
- package/dist/index103.js +12 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -2
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +3 -3
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +5 -5
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +3 -3
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +3 -3
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +4 -4
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +4 -4
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +46 -19
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +19 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +23 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -4
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +4 -11
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -12
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +12 -11
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +11 -184
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +183 -25
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +26 -24
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -22
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -90
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +92 -8
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +8 -50
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +49 -60
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +61 -17
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +18 -316
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -59
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +309 -50
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +54 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +52 -27
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +37 -4
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +32 -9
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +4 -17
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +9 -19
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +16 -46
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +19 -17
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +48 -2
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +21 -9
- package/dist/index73.cjs +1 -3
- package/dist/index73.js +2 -14
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +8 -8
- package/dist/index75.cjs +3 -1
- package/dist/index75.js +13 -28
- package/dist/index76.cjs +1 -19
- package/dist/index76.js +9 -24
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +154 -14
- package/dist/index78.cjs +1 -12
- package/dist/index78.js +19 -16
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +13 -22
- package/dist/index81.cjs +104 -1
- package/dist/index81.js +119 -23
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +58 -2
- package/dist/index83.cjs +1 -13
- package/dist/index83.js +28 -16
- package/dist/index84.cjs +1 -80
- package/dist/index84.js +2 -95
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +33 -35
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +8 -63
- package/dist/index87.cjs +1 -7
- package/dist/index87.js +29 -10
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +24 -0
- package/dist/index89.cjs +19 -0
- package/dist/index89.js +26 -0
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -15
- package/dist/index90.cjs +12 -0
- package/dist/index90.js +18 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +17 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +26 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +4 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +21 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +10 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +66 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +32 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +65 -0
- package/dist/index99.cjs +80 -0
- package/dist/index99.js +97 -0
- package/dist/types.d.ts +8 -0
- package/package.json +11 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
export type Items = Record<string, UniqueIdentifier[]>;
|
|
4
|
+
type DndContainerProps = {
|
|
5
|
+
items: Items;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
setItems: Dispatch<SetStateAction<Items>>;
|
|
8
|
+
renderDragOverlay?: (activeId: UniqueIdentifier) => ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const DndContainer: ({ items, setItems, children, renderDragOverlay, }: DndContainerProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColumnDefinition } from '../../../node_modules/@veeqo/ui/dist/components/DataGrid/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
columnDefinitions: ColumnDefinition<any>[];
|
|
4
|
+
};
|
|
5
|
+
export declare const TableManagement: ({ columnDefinitions }: Props) => JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StackProps } from '../../../../node_modules/@veeqo/ui/dist/components/Stack/types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type DroppableAreaProps = {
|
|
4
|
+
id: string | number;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const DroppableArea: ({ id, children, ...props }: DroppableAreaProps & StackProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DialogHTMLAttributes } from 'react';
|
|
2
|
+
export declare const VerticalSeparator: import('styled-components').StyledComponent<string, any, {}, never>;
|
|
3
|
+
export declare const VerticalText: import('styled-components').StyledComponent<"span", any, {} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
|
|
4
|
+
export declare const StickyText: import('styled-components').StyledComponent<"span", any, {} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
|
|
5
|
+
export declare const DetailedText: import('styled-components').StyledComponent<"span", any, {} & import('../../../../node_modules/@veeqo/ui/dist/components/Text/types').TextProps, never>;
|
|
6
|
+
export declare const ColumnGroupsGrid: import('styled-components').StyledComponent<"div", any, import('../../../../node_modules/@veeqo/ui/dist/components/Grid/types').GridProps, never>;
|
|
7
|
+
export declare const VisibilityOffIcon: import('styled-components').StyledComponent<({ name, size, color, className, ariaLabel, style, onClick, }: import('../../../../node_modules/@veeqo/components/dist/components/common/Glyph/Glyph').GlyphProps) => React.JSX.Element, any, {
|
|
8
|
+
name: "visibility-off";
|
|
9
|
+
}, "name">;
|
|
10
|
+
export declare const ColumnItemWrapper: import('styled-components').StyledComponent<"div", any, import('../../../../node_modules/@veeqo/ui/dist/components/Stack/types').StackProps & {
|
|
11
|
+
isHidden?: boolean;
|
|
12
|
+
isDragOverlay?: boolean;
|
|
13
|
+
}, never>;
|
|
14
|
+
export declare const DraggingOverlay: import('styled-components').StyledComponent<string, any, {}, never>;
|
|
15
|
+
export declare const DroppableAreaStack: import('styled-components').StyledComponent<"div", any, import('../../../../node_modules/@veeqo/ui/dist/components/Stack/types').StackProps, never>;
|
|
16
|
+
export declare const ColumnSearch: import('styled-components').StyledComponent<({ type, disabled, onClearClick, onChange, onBlur, onFocus, onKeyUp, onKeyDown, onKeyPress, value, error, placeholder, className, name, isLoading, fill, reversed, autoComplete, size, }: import('../../../../node_modules/@veeqo/ui/dist/components/Search/types').SearchProps) => React.JSX.Element, any, {}, never>;
|
|
17
|
+
export declare const Container: import('styled-components').StyledComponent<string, any, {}, never>;
|
|
18
|
+
export declare const HeaderContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
19
|
+
/**
|
|
20
|
+
* Required when using drag and drop functionality within the context of the modal
|
|
21
|
+
* component from @veeqo/ui.
|
|
22
|
+
*
|
|
23
|
+
* The modal component uses the HTML Dialog element which renders itself in the
|
|
24
|
+
* 'Top layer' of the DOM. To ensure DragOverlay can be used correctly in and above
|
|
25
|
+
* the component rendered in this top layer, an invisible dialog should be rendered
|
|
26
|
+
* as a parent to ensure correct stacking.
|
|
27
|
+
*/
|
|
28
|
+
export declare const DndDragOverlayDialog: import('styled-components').StyledComponent<string, any, DialogHTMLAttributes<HTMLDialogElement>, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseColumnConfig } from '../types';
|
|
2
|
+
export type ColumnItemProps = {
|
|
3
|
+
column: BaseColumnConfig;
|
|
4
|
+
isHidden?: boolean;
|
|
5
|
+
isDragOverlay?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type ColumnGroupProps = {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
columns: BaseColumnConfig[];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useCollisionDetectionStrategy } from './useCollisionDetectionStrategy';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CollisionDetection } from '@dnd-kit/core';
|
|
2
|
+
import { UseCollisionDetectionStrategyArgs } from './types';
|
|
3
|
+
export declare const useCollisionDetectionStrategy: ({ items }: UseCollisionDetectionStrategyArgs) => {
|
|
4
|
+
collisionDetectionStrategy: CollisionDetection;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDragHandlers } from './useDragHandlers';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DragEndEvent, DragOverEvent, DragStartEvent, UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { UseDragHandlersArgs } from './types';
|
|
3
|
+
export declare const useDragHandlers: ({ items, setItems }: UseDragHandlersArgs) => {
|
|
4
|
+
activeId: UniqueIdentifier | null;
|
|
5
|
+
handleDragStart: (event: DragStartEvent) => void;
|
|
6
|
+
handleDragOver: (event: DragOverEvent) => void;
|
|
7
|
+
handleDragEnd: (event: DragEndEvent) => void;
|
|
8
|
+
handleDragCancel: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TableManagement } from './TableManagement';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { ColumnDefinition } from '../../../node_modules/@veeqo/ui/dist/components/DataGrid/types';
|
|
3
|
+
import { ColumnConfig } from '../../../node_modules/@veeqo/ui/dist/components/DataTable/types';
|
|
4
|
+
export type Items = Record<string, UniqueIdentifier[]>;
|
|
5
|
+
export type BaseColumnConfig = Pick<ColumnConfig, 'id' | 'iconSlot' | 'title' | 'tooltip' | 'hidden' | 'align' | 'width'> & {
|
|
6
|
+
detailed?: string;
|
|
7
|
+
};
|
|
8
|
+
export type TableManagementProps = {
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
hiddenColumns: string[];
|
|
11
|
+
visibleColumns: string[];
|
|
12
|
+
columnDefintions: ColumnDefinition<any>[];
|
|
13
|
+
};
|
|
14
|
+
export declare enum ColumnGroupIds {
|
|
15
|
+
Hidden = "hidden",
|
|
16
|
+
Visible = "visible"
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { filterColumnsBySearch } from './filterColumnsBySearch';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useHiddenColumns } from './useHiddenColumns';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePersistColumns } from './usePersistColumns';
|
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"),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"),
|
|
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"),b=require("./index19.cjs"),h=require("./index20.cjs"),v=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"),H=require("./index41.cjs"),X=require("./index42.cjs"),$=require("./index43.cjs"),e=require("./index44.cjs"),J=require("./index45.cjs"),_=require("./index46.cjs"),j=require("./index47.cjs"),W=require("./index48.cjs"),z=require("./index49.cjs"),r=require("./index50.cjs"),i=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"),we=require("./index71.cjs"),Ae=require("./index72.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=b.ActiveFilterDateRangeTag;exports.ActiveFilterNumberRangeTag=h.ActiveFilterNumberRangeTag;exports.ActiveAsyncCheckboxFilter=v.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=H.ViewList;exports.SHARING_OPTIONS=X.SHARING_OPTIONS;exports.TableManagement=$.TableManagement;exports.DateOptionMap=e.DateOptionMap;exports.DateValue=e.DateValue;exports.FilterChoiceValue=J.FilterChoiceValue;exports.ModalProvider=_.ModalProvider;exports.ModalId=j.ModalId;exports.useModal=W.useModal;exports.withCSRF=z.withCSRF;exports.onlyJSON=r.onlyJSON;exports.vndAPI=r.vndAPI;exports.fetcherV1=i.fetcherV1;exports.fetcherV2=i.fetcherV2;exports.useDropdownManager=K.useDropdownManager;exports.useDuplicateActiveView=Q.useDuplicateActiveView;exports.useFilterArrayLabel=Y.useFilterArrayLabel;exports.useFilterLabel=Z.useFilterLabel;exports.usePersistUnsavedChanges=ee.usePersistUnsavedChanges;exports.useStores=re.useStores;exports.useViews=ie.useViews;exports.useViewUrlChange=te.useViewUrlChange;exports.useCustomViews=se.useCustomViews;exports.useHiddenColumns=oe.useHiddenColumns;exports.Filters=ne.Filters;exports.NumberRangeFilterClass=ae.NumberRangeFilter;exports.RangeFilter=ce.RangeFilter;exports.Views=ue.Views;exports.Notifications=le.Notifications;exports.MobXProvider=Fe.MobXProvider;exports.getAsyncOptions=de.getAsyncOptions;exports.getFetcherFunction=qe.getFetcherFunction;exports.isValidDateRange=ge.isValidDateRange;exports.viewsAdapter=we.viewsAdapter;exports.createAllView=Ae.createAllView;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './components/TableControls';
|
|
|
7
7
|
export * from './components/ToastsManager';
|
|
8
8
|
export * from './components/Filters';
|
|
9
9
|
export * from './components/Views';
|
|
10
|
+
export * from './components/TableManagement';
|
|
10
11
|
export * from './constants';
|
|
11
12
|
export * from './context';
|
|
12
13
|
export * from './fetchers';
|
package/dist/index.js
CHANGED
|
@@ -4,14 +4,14 @@ 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 u } from "./index8.js";
|
|
8
8
|
import { setMockedBusinessLogic as d } from "./index9.js";
|
|
9
9
|
import { ErrorBoundary as w } from "./index10.js";
|
|
10
10
|
import { SearchBar as V } from "./index11.js";
|
|
11
|
-
import { TableControls as
|
|
12
|
-
import { ToastsManager as
|
|
11
|
+
import { TableControls as b } from "./index12.js";
|
|
12
|
+
import { ToastsManager as v } from "./index13.js";
|
|
13
13
|
import { ActiveFilterTag as D } from "./index14.js";
|
|
14
|
-
import { ActiveFilters as
|
|
14
|
+
import { ActiveFilters as y } from "./index15.js";
|
|
15
15
|
import { FilterArrayField as T } from "./index16.js";
|
|
16
16
|
import { FilterField as P } from "./index17.js";
|
|
17
17
|
import { ActiveFilterArrayTag as O } from "./index18.js";
|
|
@@ -31,42 +31,44 @@ import { FiltersList as mr } from "./index31.js";
|
|
|
31
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 ur } from "./index35.js";
|
|
35
35
|
import { OptionsDropdown as dr } from "./index36.js";
|
|
36
36
|
import { PillNotifications as wr } from "./index37.js";
|
|
37
37
|
import { SortableViews as Vr } from "./index38.js";
|
|
38
|
-
import { UnsavedChangesPill as
|
|
39
|
-
import { ViewDropdowns as
|
|
38
|
+
import { UnsavedChangesPill as br } from "./index39.js";
|
|
39
|
+
import { ViewDropdowns as vr } from "./index40.js";
|
|
40
40
|
import { ViewList as Dr } from "./index41.js";
|
|
41
|
-
import { SHARING_OPTIONS as
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
41
|
+
import { SHARING_OPTIONS as yr } from "./index42.js";
|
|
42
|
+
import { TableManagement as Tr } from "./index43.js";
|
|
43
|
+
import { DateOptionMap as Pr, DateValue as Sr } from "./index44.js";
|
|
44
|
+
import { FilterChoiceValue as Br } from "./index45.js";
|
|
45
|
+
import { ModalProvider as Ir } from "./index46.js";
|
|
46
|
+
import { ModalId as Er } from "./index47.js";
|
|
47
|
+
import { useModal as Hr } from "./index48.js";
|
|
48
|
+
import { withCSRF as Xr } from "./index49.js";
|
|
49
|
+
import { onlyJSON as jr, vndAPI as qr } from "./index50.js";
|
|
50
|
+
import { fetcherV1 as Kr, fetcherV2 as Qr } from "./index51.js";
|
|
51
|
+
import { useDropdownManager as Yr } from "./index52.js";
|
|
52
|
+
import { useDuplicateActiveView as $r } from "./index53.js";
|
|
53
|
+
import { useFilterArrayLabel as ee } from "./index54.js";
|
|
54
|
+
import { useFilterLabel as te } from "./index55.js";
|
|
55
|
+
import { usePersistUnsavedChanges as pe } from "./index56.js";
|
|
56
|
+
import { useStores as fe } from "./index57.js";
|
|
57
|
+
import { useViews as ae } from "./index58.js";
|
|
58
|
+
import { useViewUrlChange as le } from "./index59.js";
|
|
59
|
+
import { useCustomViews as ce } from "./index60.js";
|
|
60
|
+
import { useHiddenColumns as Fe } from "./index61.js";
|
|
61
|
+
import { Filters as ge } from "./index62.js";
|
|
62
|
+
import { NumberRangeFilter as Ae } from "./index63.js";
|
|
63
|
+
import { RangeFilter as Ce } from "./index64.js";
|
|
64
|
+
import { Views as he } from "./index65.js";
|
|
65
|
+
import { Notifications as Re } from "./index66.js";
|
|
66
|
+
import { MobXProvider as Me } from "./index67.js";
|
|
67
|
+
import { getAsyncOptions as Ne } from "./index68.js";
|
|
68
|
+
import { getFetcherFunction as Le } from "./index69.js";
|
|
69
|
+
import { isValidDateRange as Se } from "./index70.js";
|
|
70
|
+
import { viewsAdapter as Be } from "./index71.js";
|
|
71
|
+
import { createAllView as Ie } from "./index72.js";
|
|
70
72
|
export {
|
|
71
73
|
G as ActiveAsyncCheckboxFilter,
|
|
72
74
|
J as ActiveAsyncRadioFilter,
|
|
@@ -74,70 +76,72 @@ export {
|
|
|
74
76
|
k as ActiveFilterDateRangeTag,
|
|
75
77
|
U as ActiveFilterNumberRangeTag,
|
|
76
78
|
D as ActiveFilterTag,
|
|
77
|
-
|
|
79
|
+
y as ActiveFilters,
|
|
78
80
|
_ as AsyncCheckboxFilter,
|
|
79
81
|
q as AsyncRadioFilter,
|
|
80
|
-
|
|
82
|
+
u as BusinessLogicManager,
|
|
81
83
|
K as CheckboxFilter,
|
|
82
84
|
nr as CreateView,
|
|
83
|
-
|
|
85
|
+
Pr as DateOptionMap,
|
|
84
86
|
W as DateRangeFilter,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
Sr as DateValue,
|
|
88
|
+
ur as EditDropdown,
|
|
87
89
|
w as ErrorBoundary,
|
|
88
90
|
T as FilterArrayField,
|
|
89
|
-
|
|
91
|
+
Br as FilterChoiceValue,
|
|
90
92
|
P as FilterField,
|
|
91
93
|
xr as FilterGroup,
|
|
92
|
-
|
|
94
|
+
ge as Filters,
|
|
93
95
|
ir as FiltersDropdown,
|
|
94
96
|
mr as FiltersList,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
Me as MobXProvider,
|
|
98
|
+
Er as ModalId,
|
|
99
|
+
Ir as ModalProvider,
|
|
98
100
|
Z as MultipleFieldFilter,
|
|
99
|
-
|
|
101
|
+
Re as Notifications,
|
|
100
102
|
rr as NumberRangeFilter,
|
|
101
|
-
|
|
103
|
+
Ae as NumberRangeFilterClass,
|
|
102
104
|
dr as OptionsDropdown,
|
|
103
105
|
wr as PillNotifications,
|
|
104
106
|
or as RadioFilter,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
Ce as RangeFilter,
|
|
108
|
+
yr as SHARING_OPTIONS,
|
|
107
109
|
V as SearchBar,
|
|
108
110
|
Vr as SortableViews,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
br as
|
|
111
|
+
b as TableControls,
|
|
112
|
+
Tr as TableManagement,
|
|
113
|
+
v as ToastsManager,
|
|
114
|
+
br as UnsavedChangesPill,
|
|
115
|
+
vr as ViewDropdowns,
|
|
113
116
|
Dr as ViewList,
|
|
114
117
|
sr as ViewTab,
|
|
115
|
-
|
|
118
|
+
he as Views,
|
|
116
119
|
s as axios,
|
|
117
|
-
|
|
120
|
+
Ie as createAllView,
|
|
118
121
|
x as createCustomView,
|
|
119
122
|
o as deleteCustomView,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
Kr as fetcherV1,
|
|
124
|
+
Qr as fetcherV2,
|
|
125
|
+
Ne as getAsyncOptions,
|
|
126
|
+
Le as getFetcherFunction,
|
|
127
|
+
Se as isValidDateRange,
|
|
128
|
+
jr as onlyJSON,
|
|
126
129
|
i as patchCurrentUser,
|
|
127
130
|
m as patchCustomView,
|
|
128
131
|
d as setMockedBusinessLogic,
|
|
129
132
|
n as useBusinessLogic,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
pe as
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
133
|
+
ce as useCustomViews,
|
|
134
|
+
Yr as useDropdownManager,
|
|
135
|
+
$r as useDuplicateActiveView,
|
|
136
|
+
ee as useFilterArrayLabel,
|
|
137
|
+
te as useFilterLabel,
|
|
138
|
+
Fe as useHiddenColumns,
|
|
139
|
+
Hr as useModal,
|
|
140
|
+
pe as usePersistUnsavedChanges,
|
|
141
|
+
fe as useStores,
|
|
142
|
+
le as useViewUrlChange,
|
|
143
|
+
ae as useViews,
|
|
144
|
+
Be as viewsAdapter,
|
|
145
|
+
qr as vndAPI,
|
|
146
|
+
Xr as withCSRF
|
|
143
147
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/components"),o=require("@veeqo/ui"),s=require("styled-components"),l=e=>e&&e.__esModule?e:{default:e},r=l(s),{SortableViews:i}=t.VeeqoUI,n=r.default(i)`
|
|
2
|
+
.rst__rowTitle {
|
|
3
|
+
span {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rst__rowTitle > div:first-child {
|
|
11
|
+
gap: ${o.theme.sizes.sm};
|
|
12
|
+
}
|
|
13
|
+
`;exports.StyledSortableViews=n;
|
package/dist/index100.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VeeqoUI as e } from "@veeqo/components";
|
|
2
|
+
import { theme as o } from "@veeqo/ui";
|
|
3
|
+
import t from "styled-components";
|
|
4
|
+
const { SortableViews: r } = e, p = t(r)`
|
|
5
|
+
.rst__rowTitle {
|
|
6
|
+
span {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rst__rowTitle > div:first-child {
|
|
14
|
+
gap: ${o.sizes.sm};
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
p as StyledSortableViews
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@veeqo/ui"),o=require("@material-ui/core/styles"),t=require("@material-ui/core/Slider"),l=e=>e&&e.__esModule?e:{default:e},i=l(t),a=o.withStyles({root:{color:r.theme.colors.secondary.blue.base,height:4},thumb:{height:20,width:20,backgroundColor:"#fff",border:"3px solid currentColor",marginTop:-8,marginLeft:-10,"&:focus, &:hover, &$active":{boxShadow:"inherit"}},valueLabel:{left:"calc(-50% - 1px)"},track:{height:4,borderRadius:4,backgroundColor:r.theme.colors.secondary.blue.light,opacity:1},rail:{height:4,borderRadius:4,backgroundColor:r.theme.colors.neutral.grey.dark,opacity:1}})(i.default);exports.MUISlider=a;
|
package/dist/index101.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { theme as o } from "@veeqo/ui";
|
|
2
|
+
import { withStyles as r } from "@material-ui/core/styles";
|
|
3
|
+
import e from "@material-ui/core/Slider";
|
|
4
|
+
const l = r({
|
|
5
|
+
root: {
|
|
6
|
+
color: o.colors.secondary.blue.base,
|
|
7
|
+
height: 4
|
|
8
|
+
},
|
|
9
|
+
thumb: {
|
|
10
|
+
height: 20,
|
|
11
|
+
width: 20,
|
|
12
|
+
backgroundColor: "#fff",
|
|
13
|
+
border: "3px solid currentColor",
|
|
14
|
+
marginTop: -8,
|
|
15
|
+
marginLeft: -10,
|
|
16
|
+
"&:focus, &:hover, &$active": {
|
|
17
|
+
boxShadow: "inherit"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
valueLabel: {
|
|
21
|
+
left: "calc(-50% - 1px)"
|
|
22
|
+
},
|
|
23
|
+
track: {
|
|
24
|
+
height: 4,
|
|
25
|
+
borderRadius: 4,
|
|
26
|
+
backgroundColor: o.colors.secondary.blue.light,
|
|
27
|
+
opacity: 1
|
|
28
|
+
},
|
|
29
|
+
rail: {
|
|
30
|
+
height: 4,
|
|
31
|
+
borderRadius: 4,
|
|
32
|
+
backgroundColor: o.colors.neutral.grey.dark,
|
|
33
|
+
opacity: 1
|
|
34
|
+
}
|
|
35
|
+
})(e);
|
|
36
|
+
export {
|
|
37
|
+
l as MUISlider
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const n=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[n.Translate.toString(t),n.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:i}=t;return e+" "+r+"ms "+i}}});exports.CSS=n;
|
package/dist/index102.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
const n = /* @__PURE__ */ Object.freeze({
|
|
3
|
+
Translate: {
|
|
4
|
+
toString(t) {
|
|
5
|
+
if (!t)
|
|
6
|
+
return;
|
|
7
|
+
const {
|
|
8
|
+
x: r,
|
|
9
|
+
y: e
|
|
10
|
+
} = t;
|
|
11
|
+
return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
Scale: {
|
|
15
|
+
toString(t) {
|
|
16
|
+
if (!t)
|
|
17
|
+
return;
|
|
18
|
+
const {
|
|
19
|
+
scaleX: r,
|
|
20
|
+
scaleY: e
|
|
21
|
+
} = t;
|
|
22
|
+
return "scaleX(" + r + ") scaleY(" + e + ")";
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
Transform: {
|
|
26
|
+
toString(t) {
|
|
27
|
+
if (t)
|
|
28
|
+
return [n.Translate.toString(t), n.Scale.toString(t)].join(" ");
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
Transition: {
|
|
32
|
+
toString(t) {
|
|
33
|
+
let {
|
|
34
|
+
property: r,
|
|
35
|
+
duration: e,
|
|
36
|
+
easing: i
|
|
37
|
+
} = t;
|
|
38
|
+
return r + " " + e + "ms " + i;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
n as CSS
|
|
44
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=require("@veeqo/ui"),a=t=>t&&t.__esModule?t:{default:t},i=a(o),s=i.default(e.BaseContainer)`
|
|
2
|
+
padding: ${e.theme.sizes.sm};
|
|
3
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
4
|
+
// with an additional sizes.base offset at the bottom.
|
|
5
|
+
max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`;exports.AdaptiveStyledContainer=s;
|
package/dist/index103.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import { theme as e, BaseContainer as i } from "@veeqo/ui";
|
|
3
|
+
const h = o(i)`
|
|
4
|
+
padding: ${e.sizes.sm};
|
|
5
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
6
|
+
// with an additional sizes.base offset at the bottom.
|
|
7
|
+
max-height: calc(100vh ${({ offset: t }) => t && `- ${t}px`} - ${e.sizes.base});
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
h as AdaptiveStyledContainer
|
|
12
|
+
};
|
package/dist/index11.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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("./
|
|
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("./index57.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
|
@@ -4,7 +4,7 @@ import { Search as l } from "@veeqo/ui";
|
|
|
4
4
|
import u from "lodash/debounce";
|
|
5
5
|
import { useState as h, useCallback as f } from "react";
|
|
6
6
|
import { useBusinessLogic as S } from "./index7.js";
|
|
7
|
-
import { useStores as p } from "./
|
|
7
|
+
import { useStores as p } from "./index57.js";
|
|
8
8
|
const L = m(() => {
|
|
9
9
|
const { SEARCH_FILTER_ID: r, FILTERS_DEBOUCE_INTERVAL_MS: s } = S(), {
|
|
10
10
|
Filters: { setFilter: o, filters: n }
|