@layers-app/shared 0.0.36 → 0.0.37-0
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/{KanbanLayout-B8RukpT8.js → KanbanLayout-Diy-kZtU.js} +1 -1
- package/dist/{TimeLine--HywOpKf.js → TimeLine-CNziqKtl.js} +3 -3
- package/dist/components/ColorPicker/ColorPicker.d.ts +5 -0
- package/dist/components/Copyright/index.d.ts +9 -0
- package/dist/components/FlowEditor/components/FlowAction/index.d.ts +7 -0
- package/dist/components/FlowEditor/components/colors.d.ts +19 -0
- package/dist/components/FlowEditor/components/edges/ConnectionLine.d.ts +8 -0
- package/dist/components/FlowEditor/components/edges/Custom.d.ts +4 -0
- package/dist/components/FlowEditor/components/edges/index.d.ts +4 -0
- package/dist/components/FlowEditor/components/editor/EdgeEdit.d.ts +12 -0
- package/dist/components/FlowEditor/components/editor/GridControls.d.ts +1 -0
- package/dist/components/FlowEditor/components/editor/KeyboardShortcuts.d.ts +1 -0
- package/dist/components/FlowEditor/components/editor/NodeEdit.d.ts +11 -0
- package/dist/components/FlowEditor/components/editor/NodeSelect.d.ts +7 -0
- package/dist/components/FlowEditor/components/editor/TextEdit.d.ts +11 -0
- package/dist/components/FlowEditor/components/editor/Toolbox.d.ts +10 -0
- package/dist/components/FlowEditor/components/editor/UndoRedoControls.d.ts +5 -0
- package/dist/components/FlowEditor/components/editor/ViewportControls.d.ts +1 -0
- package/dist/components/FlowEditor/components/editor/index.d.ts +12 -0
- package/dist/components/FlowEditor/components/index.d.ts +5 -0
- package/dist/components/FlowEditor/components/nodes/Resizer.d.ts +8 -0
- package/dist/components/FlowEditor/components/nodes/index.d.ts +145 -0
- package/dist/components/FlowEditor/components/nodes/shapes/Circle.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/shapes/Diamond.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/shapes/Rectangle.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/shapes/RoundRectangle.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/shapes/ShapeSetup.d.ts +5 -0
- package/dist/components/FlowEditor/components/nodes/shapes/Triangle.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Discord.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Etsy.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Facebook.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Flickr.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Github.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Gmail.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Instagram.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Linkedin.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Medium.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Pinterest.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Reddit.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Skype.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Slack.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Snapchat.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Telegram.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Threads.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/TikTok.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Twitch.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Vimeo.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Whatsup.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Wrapper.d.ts +5 -0
- package/dist/components/FlowEditor/components/nodes/social/XTwitter.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/social/Youtube.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/text/Annotation.d.ts +4 -0
- package/dist/components/FlowEditor/components/nodes/wireframes/Browser.d.ts +8 -0
- package/dist/components/FlowEditor/components/nodes/wireframes/ColorSchemeImage.d.ts +3 -0
- package/dist/components/FlowEditor/context/DragDropContext.d.ts +10 -0
- package/dist/components/FlowEditor/hooks/useFlow.d.ts +35 -0
- package/dist/components/FlowEditor/hooks/usePngExport.d.ts +1 -0
- package/dist/components/FlowEditor/index.d.ts +10 -0
- package/dist/components/FlowEditor/store/useFlowStore.d.ts +9 -0
- package/dist/components/FlowEditor/store/useUndoRedoStore.d.ts +24 -0
- package/dist/components/FlowEditor/types.d.ts +0 -0
- package/dist/components/FlowEditor/utils/index.d.ts +1 -0
- package/dist/components/Logotype.d.ts +4 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.d.ts +1 -2
- package/dist/components/SearchFilters/SearchFilters.d.ts +4 -2
- package/dist/components/SearchFilters/components/Type.d.ts +3 -2
- package/dist/components/SearchFilters/types.d.ts +1 -1
- package/dist/components/TemplatesModal/components/SelectedTemplate.d.ts +7 -0
- package/dist/components/TemplatesModal/components/Template.d.ts +9 -0
- package/dist/components/TemplatesModal/components/Templates.d.ts +7 -0
- package/dist/components/TemplatesModal/data.d.ts +13 -0
- package/dist/components/TemplatesModal/index.d.ts +7 -0
- package/dist/components/TemplatesModal/types.d.ts +16 -0
- package/dist/components/table/FrontTable.d.ts +35 -0
- package/dist/components/table/api.d.ts +31 -0
- package/dist/components/table/components/Table.d.ts +1 -0
- package/dist/components/table/components/TableAggregation.d.ts +1 -0
- package/dist/components/table/components/TableCell.d.ts +11 -0
- package/dist/components/table/components/TableHeaderCell.d.ts +17 -0
- package/dist/components/table/components/TableHeaders.d.ts +1 -0
- package/dist/components/table/components/TableMenu.d.ts +4 -0
- package/dist/components/table/components/TablePagination.d.ts +1 -0
- package/dist/components/table/components/TablePanel.d.ts +1 -0
- package/dist/components/table/components/TableRow.d.ts +14 -0
- package/dist/components/table/components/TableRows.d.ts +14 -0
- package/dist/components/table/components/TableSearch.d.ts +1 -0
- package/dist/components/table/components/TableSkeleton.d.ts +11 -0
- package/dist/components/table/components/TableTitle.d.ts +16 -0
- package/dist/components/table/constants.d.ts +25 -0
- package/dist/components/table/export.d.ts +9 -0
- package/dist/components/table/helpers/columns.d.ts +28 -0
- package/dist/components/table/helpers/formatters.d.ts +76 -0
- package/dist/components/table/hooks/TableProvider.d.ts +57 -0
- package/dist/components/table/hooks/useColumnsResizing.d.ts +5 -0
- package/dist/components/table/hooks/useCreateTable.d.ts +52 -0
- package/dist/components/table/hooks/useSaveRowCount.d.ts +1 -0
- package/dist/components/table/hooks/useSorting.d.ts +2 -0
- package/dist/components/table/hooks/useTableStore.d.ts +51 -0
- package/dist/components/table/selectors.d.ts +1837 -0
- package/dist/components/table/store.d.ts +83 -0
- package/dist/components/table/types.d.ts +99 -0
- package/dist/index-C4NKtsV-.js +78436 -0
- package/dist/index.d.ts +11 -0
- package/dist/{index.esm-DbeiBKnb.js → index.esm-DkcsgZzy.js} +1 -1
- package/dist/index.js +171 -120
- package/dist/index.umd.cjs +618 -116
- package/dist/store/accessOptionsControl.d.ts +6 -0
- package/dist/utils/getPlanBadgeColor.d.ts +6 -0
- package/dist/utils/queryParams.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index-D_nxhqe0.js +0 -39586
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CreateTableStoreProps } from '../store';
|
|
2
|
+
export declare const useCreateTable: (props?: CreateTableStoreProps) => {
|
|
3
|
+
useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "persist"> & {
|
|
4
|
+
persist: {
|
|
5
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
|
|
6
|
+
sort: import('../types').TableSortModel | null;
|
|
7
|
+
search: string;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
columnsOrder: string[];
|
|
10
|
+
}>>) => void;
|
|
11
|
+
clearStorage: () => void;
|
|
12
|
+
rehydrate: () => Promise<void> | void;
|
|
13
|
+
hasHydrated: () => boolean;
|
|
14
|
+
onHydrate: (fn: (state: import('../store').Store) => void) => () => void;
|
|
15
|
+
onFinishHydration: (fn: (state: import('../store').Store) => void) => () => void;
|
|
16
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
|
|
17
|
+
sort: import('../types').TableSortModel | null;
|
|
18
|
+
search: string;
|
|
19
|
+
pageSize: number;
|
|
20
|
+
columnsOrder: string[];
|
|
21
|
+
}>>;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
24
|
+
api: {
|
|
25
|
+
setPageSize: (v: number) => void;
|
|
26
|
+
setPage: (v: number) => void;
|
|
27
|
+
setSort: (v: import('../types').TableSortModel | null) => void;
|
|
28
|
+
downloadCSV: () => void;
|
|
29
|
+
downloadExcel: () => void;
|
|
30
|
+
setSelected: (selected: string[]) => void;
|
|
31
|
+
toggleColumn: (v: string) => void;
|
|
32
|
+
setVisibleColumns: (v: string[]) => void;
|
|
33
|
+
setSearch: (v: string) => void;
|
|
34
|
+
setPrevPage: () => void;
|
|
35
|
+
setNextPage: () => void;
|
|
36
|
+
setColumnWidth: (field: string, setWidth: number) => void;
|
|
37
|
+
toggleRowExpand: (id: string) => void;
|
|
38
|
+
setRootRef: (rootRef: HTMLDivElement) => void;
|
|
39
|
+
setScrollRef: (scrollRef: HTMLDivElement) => void;
|
|
40
|
+
calculateColumnWidths: (clear?: boolean) => void;
|
|
41
|
+
selectVisibleRows: () => void;
|
|
42
|
+
unselectVisibleRows: () => void;
|
|
43
|
+
unselectRow: (id: string) => void;
|
|
44
|
+
selectRow: (id: string) => void;
|
|
45
|
+
setAutosize: () => void;
|
|
46
|
+
removeAutosize: () => void;
|
|
47
|
+
setColumnsOrder: (columnsOrder: string[]) => void;
|
|
48
|
+
setColumnOrder: (columnId: string, index: number) => void;
|
|
49
|
+
moveColumnLeft: (columnId: string) => void;
|
|
50
|
+
moveColumnRight: (columnId: string) => void;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSaveRowCount: (total?: number) => number;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const useTableStore: () => {
|
|
2
|
+
useStore: import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<import('../store').Store>, "persist"> & {
|
|
3
|
+
persist: {
|
|
4
|
+
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
|
|
5
|
+
sort: import('../types').TableSortModel | null;
|
|
6
|
+
search: string;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
columnsOrder: string[];
|
|
9
|
+
}>>) => void;
|
|
10
|
+
clearStorage: () => void;
|
|
11
|
+
rehydrate: () => Promise<void> | void;
|
|
12
|
+
hasHydrated: () => boolean;
|
|
13
|
+
onHydrate: (fn: (state: import('../store').Store) => void) => () => void;
|
|
14
|
+
onFinishHydration: (fn: (state: import('../store').Store) => void) => () => void;
|
|
15
|
+
getOptions: () => Partial<import('zustand/middleware').PersistOptions<import('../store').Store, {
|
|
16
|
+
sort: import('../types').TableSortModel | null;
|
|
17
|
+
search: string;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
columnsOrder: string[];
|
|
20
|
+
}>>;
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
23
|
+
api: {
|
|
24
|
+
setPageSize: (v: number) => void;
|
|
25
|
+
setPage: (v: number) => void;
|
|
26
|
+
setSort: (v: import('../types').TableSortModel | null) => void;
|
|
27
|
+
downloadCSV: () => void;
|
|
28
|
+
downloadExcel: () => void;
|
|
29
|
+
setSelected: (selected: string[]) => void;
|
|
30
|
+
toggleColumn: (v: string) => void;
|
|
31
|
+
setVisibleColumns: (v: string[]) => void;
|
|
32
|
+
setSearch: (v: string) => void;
|
|
33
|
+
setPrevPage: () => void;
|
|
34
|
+
setNextPage: () => void;
|
|
35
|
+
setColumnWidth: (field: string, setWidth: number) => void;
|
|
36
|
+
toggleRowExpand: (id: string) => void;
|
|
37
|
+
setRootRef: (rootRef: HTMLDivElement) => void;
|
|
38
|
+
setScrollRef: (scrollRef: HTMLDivElement) => void;
|
|
39
|
+
calculateColumnWidths: (clear?: boolean) => void;
|
|
40
|
+
selectVisibleRows: () => void;
|
|
41
|
+
unselectVisibleRows: () => void;
|
|
42
|
+
unselectRow: (id: string) => void;
|
|
43
|
+
selectRow: (id: string) => void;
|
|
44
|
+
setAutosize: () => void;
|
|
45
|
+
removeAutosize: () => void;
|
|
46
|
+
setColumnsOrder: (columnsOrder: string[]) => void;
|
|
47
|
+
setColumnOrder: (columnId: string, index: number) => void;
|
|
48
|
+
moveColumnLeft: (columnId: string) => void;
|
|
49
|
+
moveColumnRight: (columnId: string) => void;
|
|
50
|
+
};
|
|
51
|
+
};
|