@vuu-ui/vuu-shell 0.8.82 → 0.8.83
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/cjs/application-provider/ApplicationContext.js.map +1 -1
- package/cjs/application-provider/ApplicationProvider.js.map +1 -1
- package/cjs/feature/Feature.js.map +1 -1
- package/cjs/feature/FeatureErrorBoundary.js.map +1 -1
- package/cjs/feature-list/FeatureList.js +37 -41
- package/cjs/feature-list/FeatureList.js.map +1 -1
- package/cjs/feature-provider/FeatureProvider.js +11 -19
- package/cjs/feature-provider/FeatureProvider.js.map +1 -1
- package/cjs/index.js +0 -3
- package/cjs/index.js.map +1 -1
- package/cjs/left-nav/LeftNav.js +16 -24
- package/cjs/left-nav/LeftNav.js.map +1 -1
- package/cjs/persistence-manager/LocalPersistenceManager.js.map +1 -1
- package/cjs/persistence-manager/RemotePersistenceManager.js.map +1 -1
- package/cjs/shell-layout-templates/context-panel/ContextPanel.js.map +1 -1
- package/cjs/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js +1 -1
- package/cjs/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js.map +1 -1
- package/cjs/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js +1 -1
- package/cjs/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js.map +1 -1
- package/cjs/shell-layout-templates/left-main-tabs/useLeftMainTabs.js +66 -0
- package/cjs/shell-layout-templates/left-main-tabs/useLeftMainTabs.js.map +1 -0
- package/cjs/shell-layout-templates/simple-content-pane/useSimpleContentPane.js.map +1 -1
- package/cjs/shell-layout-templates/useShellLayout.js +2 -0
- package/cjs/shell-layout-templates/useShellLayout.js.map +1 -1
- package/cjs/shell.css.js +1 -1
- package/cjs/shell.js.map +1 -1
- package/cjs/theme-switch/ThemeSwitch.js.map +1 -1
- package/cjs/user-settings/SettingsForm.js.map +1 -1
- package/cjs/workspace-management/LayoutList.js.map +1 -1
- package/cjs/workspace-management/SaveLayoutPanel.js.map +1 -1
- package/cjs/workspace-management/WorkspaceProvider.js.map +1 -1
- package/cjs/workspace-management/defaultWorkspaceJSON.js.map +1 -1
- package/cjs/workspace-management/useWorkspaceContextMenuItems.js.map +1 -1
- package/esm/application-provider/ApplicationContext.js.map +1 -1
- package/esm/application-provider/ApplicationProvider.js.map +1 -1
- package/esm/feature/Feature.js.map +1 -1
- package/esm/feature/FeatureErrorBoundary.js.map +1 -1
- package/esm/feature-list/FeatureList.js +38 -42
- package/esm/feature-list/FeatureList.js.map +1 -1
- package/esm/feature-provider/FeatureProvider.js +11 -19
- package/esm/feature-provider/FeatureProvider.js.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/left-nav/LeftNav.js +16 -24
- package/esm/left-nav/LeftNav.js.map +1 -1
- package/esm/persistence-manager/LocalPersistenceManager.js.map +1 -1
- package/esm/persistence-manager/RemotePersistenceManager.js.map +1 -1
- package/esm/shell-layout-templates/context-panel/ContextPanel.js.map +1 -1
- package/esm/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js +1 -1
- package/esm/shell-layout-templates/full-height-left-panel/useFullHeightLeftPanel.js.map +1 -1
- package/esm/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js +1 -1
- package/esm/shell-layout-templates/inlay-left-panel/useInlayLeftPanel.js.map +1 -1
- package/esm/shell-layout-templates/left-main-tabs/useLeftMainTabs.js +64 -0
- package/esm/shell-layout-templates/left-main-tabs/useLeftMainTabs.js.map +1 -0
- package/esm/shell-layout-templates/simple-content-pane/useSimpleContentPane.js.map +1 -1
- package/esm/shell-layout-templates/useShellLayout.js +2 -0
- package/esm/shell-layout-templates/useShellLayout.js.map +1 -1
- package/esm/shell.css.js +1 -1
- package/esm/shell.js.map +1 -1
- package/esm/theme-switch/ThemeSwitch.js.map +1 -1
- package/esm/user-settings/SettingsForm.js.map +1 -1
- package/esm/workspace-management/LayoutList.js.map +1 -1
- package/esm/workspace-management/SaveLayoutPanel.js.map +1 -1
- package/esm/workspace-management/WorkspaceProvider.js.map +1 -1
- package/esm/workspace-management/defaultWorkspaceJSON.js.map +1 -1
- package/esm/workspace-management/useWorkspaceContextMenuItems.js.map +1 -1
- package/package.json +12 -12
- package/types/feature/Feature.d.ts +2 -2
- package/types/feature/FeatureErrorBoundary.d.ts +2 -2
- package/types/feature-list/FeatureList.d.ts +5 -6
- package/types/feature-provider/FeatureProvider.d.ts +8 -9
- package/types/index.d.ts +0 -1
- package/types/left-nav/LeftNav.d.ts +0 -3
- package/types/shell-layout-templates/left-main-tabs/useLeftMainTabs.d.ts +2 -0
- package/types/shell-layout-templates/useShellLayout.d.ts +12 -2
- package/cjs/datasource-provider/DataSourceProvider.js +0 -31
- package/cjs/datasource-provider/DataSourceProvider.js.map +0 -1
- package/esm/datasource-provider/DataSourceProvider.js +0 -28
- package/esm/datasource-provider/DataSourceProvider.js.map +0 -1
- package/types/datasource-provider/DataSourceProvider.d.ts +0 -21
- package/types/datasource-provider/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.8.
|
|
2
|
+
"version": "0.8.83",
|
|
3
3
|
"description": "VUU UI Shell",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-data-types": "0.8.
|
|
8
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
9
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
7
|
+
"@vuu-ui/vuu-data-types": "0.8.83",
|
|
8
|
+
"@vuu-ui/vuu-protocol-types": "0.8.83",
|
|
9
|
+
"@vuu-ui/vuu-table-types": "0.8.83"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@salt-ds/core": "1.34.0",
|
|
13
13
|
"@salt-ds/styles": "0.2.1",
|
|
14
14
|
"@salt-ds/window": "0.1.1",
|
|
15
|
-
"@vuu-ui/vuu-data-react": "0.8.
|
|
16
|
-
"@vuu-ui/vuu-data-remote": "0.8.
|
|
17
|
-
"@vuu-ui/vuu-icons": "0.8.
|
|
18
|
-
"@vuu-ui/vuu-layout": "0.8.
|
|
19
|
-
"@vuu-ui/vuu-popups": "0.8.
|
|
20
|
-
"@vuu-ui/vuu-table": "0.8.
|
|
21
|
-
"@vuu-ui/vuu-ui-controls": "0.8.
|
|
22
|
-
"@vuu-ui/vuu-utils": "0.8.
|
|
15
|
+
"@vuu-ui/vuu-data-react": "0.8.83",
|
|
16
|
+
"@vuu-ui/vuu-data-remote": "0.8.83",
|
|
17
|
+
"@vuu-ui/vuu-icons": "0.8.83",
|
|
18
|
+
"@vuu-ui/vuu-layout": "0.8.83",
|
|
19
|
+
"@vuu-ui/vuu-popups": "0.8.83",
|
|
20
|
+
"@vuu-ui/vuu-table": "0.8.83",
|
|
21
|
+
"@vuu-ui/vuu-ui-controls": "0.8.83",
|
|
22
|
+
"@vuu-ui/vuu-utils": "0.8.83",
|
|
23
23
|
"html-to-image": "^1.11.11"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DynamicFeatureProps } from "@vuu-ui/vuu-utils";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare function RawFeature<Params extends object | undefined>({ url, css, ComponentProps: params, ...props }:
|
|
3
|
+
declare function RawFeature<Params extends object | undefined>({ url, css, ComponentProps: params, ...props }: DynamicFeatureProps<Params>): JSX.Element;
|
|
4
4
|
/**
|
|
5
5
|
Feature is a wrapper around React Lazy Loading. It will load a component
|
|
6
6
|
from the given url. That url must resolve to a javascript bundle with a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DynamicFeatureProps } from "@vuu-ui/vuu-utils";
|
|
2
2
|
import React, { ErrorInfo, ReactNode } from "react";
|
|
3
|
-
export interface FeatureErrorBoundaryProps extends
|
|
3
|
+
export interface FeatureErrorBoundaryProps extends DynamicFeatureProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare class FeatureErrorBoundary extends React.Component<FeatureErrorBoundaryProps, any> {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DynamicFeatureProps, StaticFeatureDescriptor } from "@vuu-ui/vuu-utils";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
export type GroupedFeatureProps<P extends object | undefined = object> = Record<string,
|
|
4
|
-
export interface FeatureListProps
|
|
5
|
-
features:
|
|
6
|
-
isStatic?: boolean;
|
|
3
|
+
export type GroupedFeatureProps<P extends object | undefined = object> = Record<string, DynamicFeatureProps<P>[]>;
|
|
4
|
+
export interface FeatureListProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
features: DynamicFeatureProps[] | GroupedFeatureProps | StaticFeatureDescriptor[];
|
|
7
6
|
}
|
|
8
|
-
export declare const FeatureList: ({ features, title,
|
|
7
|
+
export declare const FeatureList: ({ features, title, ...htmlAttributes }: FeatureListProps) => JSX.Element;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DynamicFeatureDescriptor, DynamicFeatureProps, FilterTableFeatureProps, StaticFeatureDescriptor } from "@vuu-ui/vuu-utils";
|
|
2
2
|
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
export interface FeatureContextProps {
|
|
4
|
-
dynamicFeatures
|
|
5
|
-
tableFeatures
|
|
6
|
-
staticFeatures?:
|
|
4
|
+
dynamicFeatures?: DynamicFeatureProps[];
|
|
5
|
+
tableFeatures?: DynamicFeatureProps<FilterTableFeatureProps>[];
|
|
6
|
+
staticFeatures?: StaticFeatureDescriptor[];
|
|
7
7
|
}
|
|
8
8
|
export interface FeatureProviderProps extends Partial<FeatureContextProps> {
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
|
|
11
|
-
staticFeatures?:
|
|
10
|
+
dynamicFeatures?: DynamicFeatureDescriptor[];
|
|
11
|
+
staticFeatures?: StaticFeatureDescriptor[];
|
|
12
12
|
}
|
|
13
|
-
export declare const FeatureProvider: ({ children,
|
|
14
|
-
export
|
|
15
|
-
export declare const useFeatures: FeaturesHook;
|
|
13
|
+
export declare const FeatureProvider: ({ children, dynamicFeatures: dynamicFeaturesProp, staticFeatures, }: FeatureProviderProps) => ReactElement;
|
|
14
|
+
export declare const useFeatures: () => FeatureContextProps;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FeatureProps, FilterTableFeatureProps } from "@vuu-ui/vuu-utils";
|
|
2
1
|
import { HTMLAttributes } from "react";
|
|
3
2
|
export type NavDisplayStatus = "menu-full" | "menu-icons" | "menu-full-content" | "menu-icons-content";
|
|
4
3
|
export type NavDisplayStatusHandler = (navDisplayStatus: NavDisplayStatus) => void;
|
|
@@ -6,12 +5,10 @@ export interface LeftNavProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
6
5
|
"data-path"?: string;
|
|
7
6
|
defaultActiveTabIndex?: number;
|
|
8
7
|
defaultExpanded?: boolean;
|
|
9
|
-
features?: FeatureProps[];
|
|
10
8
|
onActiveChange?: (activeTabIndex: number) => void;
|
|
11
9
|
onTogglePrimaryMenu?: (expanded: boolean) => void;
|
|
12
10
|
sizeCollapsed?: number;
|
|
13
11
|
sizeContent?: number;
|
|
14
12
|
sizeExpanded?: number;
|
|
15
|
-
tableFeatures?: FeatureProps<FilterTableFeatureProps>[];
|
|
16
13
|
}
|
|
17
14
|
export declare const LeftNav: (props: LeftNavProps) => JSX.Element;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
2
|
-
import { SidePanelProps } from "./side-panel";
|
|
2
|
+
import { SidePanelProps as ShellSidePanelProps } from "./side-panel";
|
|
3
3
|
declare const LayoutHook: {
|
|
4
4
|
"full-height": ShellLayoutTemplateHook;
|
|
5
5
|
inlay: ShellLayoutTemplateHook;
|
|
6
|
+
"left-main-tabs": ShellLayoutTemplateHook;
|
|
6
7
|
"simple-content-pane": ShellLayoutTemplateHook;
|
|
7
8
|
};
|
|
8
9
|
export type LayoutTemplateId = keyof typeof LayoutHook;
|
|
9
10
|
export type ShellLayoutTemplateProps = Omit<ShellLayoutProps, "layoutTemplateId">;
|
|
11
|
+
export type ShellToolbarProps = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
position?: "left";
|
|
14
|
+
width?: number;
|
|
15
|
+
};
|
|
10
16
|
export type ShellLayoutTemplateHook = (props: ShellLayoutTemplateProps) => ReactElement;
|
|
11
17
|
/**
|
|
12
18
|
* The Shell Layout is the outermost 'chrome' of the appliciation,
|
|
@@ -30,7 +36,11 @@ export interface ShellLayoutProps {
|
|
|
30
36
|
/**
|
|
31
37
|
* If template renders SidePanel, these props will be provided
|
|
32
38
|
*/
|
|
33
|
-
|
|
39
|
+
SidePanelProps?: ShellSidePanelProps;
|
|
40
|
+
/**
|
|
41
|
+
* If template renders Toolbar, these props will be provided
|
|
42
|
+
*/
|
|
43
|
+
ToolbarProps?: ShellToolbarProps;
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
46
|
* This hook acts as a stub for the actual shell layout
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var vuuDataRemote = require('@vuu-ui/vuu-data-remote');
|
|
5
|
-
var React = require('react');
|
|
6
|
-
|
|
7
|
-
const DataSourceContext = React.createContext({
|
|
8
|
-
isLocalData: false,
|
|
9
|
-
getServerAPI: vuuDataRemote.getServerAPI,
|
|
10
|
-
VuuDataSource: vuuDataRemote.VuuDataSource
|
|
11
|
-
});
|
|
12
|
-
const DataSourceProvider = ({
|
|
13
|
-
children,
|
|
14
|
-
getServerAPI: getServerAPI2,
|
|
15
|
-
isLocalData = true,
|
|
16
|
-
VuuDataSource: VuuDataSource2,
|
|
17
|
-
vuuModuleName
|
|
18
|
-
}) => {
|
|
19
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
-
DataSourceContext.Provider,
|
|
21
|
-
{
|
|
22
|
-
value: { isLocalData, vuuModuleName, VuuDataSource: VuuDataSource2, getServerAPI: getServerAPI2 },
|
|
23
|
-
children
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
const useDataSource = () => React.useContext(DataSourceContext);
|
|
28
|
-
|
|
29
|
-
exports.DataSourceProvider = DataSourceProvider;
|
|
30
|
-
exports.useDataSource = useDataSource;
|
|
31
|
-
//# sourceMappingURL=DataSourceProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceProvider.js","sources":["../../src/datasource-provider/DataSourceProvider.tsx"],"sourcesContent":["import {\n getServerAPI,\n ServerAPI,\n VuuDataSource,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { DataSource, DataSourceConstructorProps } from \"@vuu-ui/vuu-data-types\";\nimport { createContext, ReactNode, useContext } from \"react\";\n\nexport type DataSourceConstructor = {\n new (props: DataSourceConstructorProps): DataSource;\n};\n\nexport interface DataSourceContextProps {\n isLocalData: boolean;\n VuuDataSource: DataSourceConstructor;\n vuuModuleName?: string;\n getServerAPI: () => Promise<\n Pick<ServerAPI, \"getTableList\" | \"getTableSchema\">\n >;\n}\n\nconst DataSourceContext = createContext<DataSourceContextProps>({\n isLocalData: false,\n getServerAPI,\n VuuDataSource,\n});\n\n/**\n * If a client is adding a DataSOurceProvider, it will ususlly be\n * to install local test data, so we default isLocalData to true\n */\nexport const DataSourceProvider = ({\n children,\n getServerAPI,\n isLocalData = true,\n VuuDataSource,\n vuuModuleName,\n}: Omit<DataSourceContextProps, \"isLocalData\"> & {\n children: ReactNode;\n isLocalData?: boolean;\n}) => {\n return (\n <DataSourceContext.Provider\n value={{ isLocalData, vuuModuleName, VuuDataSource, getServerAPI }}\n >\n {children}\n </DataSourceContext.Provider>\n );\n};\n\nexport const useDataSource = () => useContext(DataSourceContext);\n"],"names":["createContext","getServerAPI","VuuDataSource","jsx","useContext"],"mappings":";;;;;;AAqBA,MAAM,oBAAoBA,mBAAsC,CAAA;AAAA,EAC9D,WAAa,EAAA,KAAA;AAAA,gBACbC,0BAAA;AAAA,iBACAC,2BAAA;AACF,CAAC,CAAA,CAAA;AAMM,MAAM,qBAAqB,CAAC;AAAA,EACjC,QAAA;AAAA,EACA,YAAAD,EAAAA,aAAAA;AAAA,EACA,WAAc,GAAA,IAAA;AAAA,EACd,aAAAC,EAAAA,cAAAA;AAAA,EACA,aAAA;AACF,CAGM,KAAA;AACJ,EACE,uBAAAC,cAAA;AAAA,IAAC,iBAAkB,CAAA,QAAA;AAAA,IAAlB;AAAA,MACC,OAAO,EAAE,WAAA,EAAa,eAAe,aAAAD,EAAAA,cAAAA,EAAe,cAAAD,aAAa,EAAA;AAAA,MAEhE,QAAA;AAAA,KAAA;AAAA,GACH,CAAA;AAEJ,EAAA;AAEa,MAAA,aAAA,GAAgB,MAAMG,gBAAA,CAAW,iBAAiB;;;;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { getServerAPI, VuuDataSource } from '@vuu-ui/vuu-data-remote';
|
|
3
|
-
import { createContext, useContext } from 'react';
|
|
4
|
-
|
|
5
|
-
const DataSourceContext = createContext({
|
|
6
|
-
isLocalData: false,
|
|
7
|
-
getServerAPI,
|
|
8
|
-
VuuDataSource
|
|
9
|
-
});
|
|
10
|
-
const DataSourceProvider = ({
|
|
11
|
-
children,
|
|
12
|
-
getServerAPI: getServerAPI2,
|
|
13
|
-
isLocalData = true,
|
|
14
|
-
VuuDataSource: VuuDataSource2,
|
|
15
|
-
vuuModuleName
|
|
16
|
-
}) => {
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
-
DataSourceContext.Provider,
|
|
19
|
-
{
|
|
20
|
-
value: { isLocalData, vuuModuleName, VuuDataSource: VuuDataSource2, getServerAPI: getServerAPI2 },
|
|
21
|
-
children
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
const useDataSource = () => useContext(DataSourceContext);
|
|
26
|
-
|
|
27
|
-
export { DataSourceProvider, useDataSource };
|
|
28
|
-
//# sourceMappingURL=DataSourceProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceProvider.js","sources":["../../src/datasource-provider/DataSourceProvider.tsx"],"sourcesContent":["import {\n getServerAPI,\n ServerAPI,\n VuuDataSource,\n} from \"@vuu-ui/vuu-data-remote\";\nimport { DataSource, DataSourceConstructorProps } from \"@vuu-ui/vuu-data-types\";\nimport { createContext, ReactNode, useContext } from \"react\";\n\nexport type DataSourceConstructor = {\n new (props: DataSourceConstructorProps): DataSource;\n};\n\nexport interface DataSourceContextProps {\n isLocalData: boolean;\n VuuDataSource: DataSourceConstructor;\n vuuModuleName?: string;\n getServerAPI: () => Promise<\n Pick<ServerAPI, \"getTableList\" | \"getTableSchema\">\n >;\n}\n\nconst DataSourceContext = createContext<DataSourceContextProps>({\n isLocalData: false,\n getServerAPI,\n VuuDataSource,\n});\n\n/**\n * If a client is adding a DataSOurceProvider, it will ususlly be\n * to install local test data, so we default isLocalData to true\n */\nexport const DataSourceProvider = ({\n children,\n getServerAPI,\n isLocalData = true,\n VuuDataSource,\n vuuModuleName,\n}: Omit<DataSourceContextProps, \"isLocalData\"> & {\n children: ReactNode;\n isLocalData?: boolean;\n}) => {\n return (\n <DataSourceContext.Provider\n value={{ isLocalData, vuuModuleName, VuuDataSource, getServerAPI }}\n >\n {children}\n </DataSourceContext.Provider>\n );\n};\n\nexport const useDataSource = () => useContext(DataSourceContext);\n"],"names":["getServerAPI","VuuDataSource"],"mappings":";;;;AAqBA,MAAM,oBAAoB,aAAsC,CAAA;AAAA,EAC9D,WAAa,EAAA,KAAA;AAAA,EACb,YAAA;AAAA,EACA,aAAA;AACF,CAAC,CAAA,CAAA;AAMM,MAAM,qBAAqB,CAAC;AAAA,EACjC,QAAA;AAAA,EACA,YAAAA,EAAAA,aAAAA;AAAA,EACA,WAAc,GAAA,IAAA;AAAA,EACd,aAAAC,EAAAA,cAAAA;AAAA,EACA,aAAA;AACF,CAGM,KAAA;AACJ,EACE,uBAAA,GAAA;AAAA,IAAC,iBAAkB,CAAA,QAAA;AAAA,IAAlB;AAAA,MACC,OAAO,EAAE,WAAA,EAAa,eAAe,aAAAA,EAAAA,cAAAA,EAAe,cAAAD,aAAa,EAAA;AAAA,MAEhE,QAAA;AAAA,KAAA;AAAA,GACH,CAAA;AAEJ,EAAA;AAEa,MAAA,aAAA,GAAgB,MAAM,UAAA,CAAW,iBAAiB;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ServerAPI } from "@vuu-ui/vuu-data-remote";
|
|
2
|
-
import { DataSource, DataSourceConstructorProps } from "@vuu-ui/vuu-data-types";
|
|
3
|
-
import { ReactNode } from "react";
|
|
4
|
-
export type DataSourceConstructor = {
|
|
5
|
-
new (props: DataSourceConstructorProps): DataSource;
|
|
6
|
-
};
|
|
7
|
-
export interface DataSourceContextProps {
|
|
8
|
-
isLocalData: boolean;
|
|
9
|
-
VuuDataSource: DataSourceConstructor;
|
|
10
|
-
vuuModuleName?: string;
|
|
11
|
-
getServerAPI: () => Promise<Pick<ServerAPI, "getTableList" | "getTableSchema">>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* If a client is adding a DataSOurceProvider, it will ususlly be
|
|
15
|
-
* to install local test data, so we default isLocalData to true
|
|
16
|
-
*/
|
|
17
|
-
export declare const DataSourceProvider: ({ children, getServerAPI, isLocalData, VuuDataSource, vuuModuleName, }: Omit<DataSourceContextProps, "isLocalData"> & {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
isLocalData?: boolean | undefined;
|
|
20
|
-
}) => JSX.Element;
|
|
21
|
-
export declare const useDataSource: () => DataSourceContextProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DataSourceProvider";
|