@etl-corestream/react 0.1.0 → 0.1.1
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/abort-button/abort-button.d.ts +6 -0
- package/dist/components/data-view/data-view-context.d.ts +18 -0
- package/dist/components/data-view/data-view-remove-trigger.d.ts +7 -0
- package/dist/components/data-view/data-view-root.d.ts +7 -0
- package/dist/components/data-view/data-view.d.ts +34 -0
- package/dist/components/data-view/edit-view/edit-view-new-input.d.ts +11 -0
- package/dist/components/data-view/edit-view/edit-view-previus-input.d.ts +8 -0
- package/dist/components/data-view/edit-view/edit-view-root.d.ts +8 -0
- package/dist/components/data-view/edit-view/edit-view-trigger-cancel.d.ts +7 -0
- package/dist/components/data-view/edit-view/edit-view-trigger-submit.d.ts +7 -0
- package/dist/components/data-view/filter/data-view-filter-context.d.ts +8 -0
- package/dist/components/data-view/filter/data-view-filter-errors-selector.d.ts +9 -0
- package/dist/components/data-view/filter/data-view-filter-root.d.ts +7 -0
- package/dist/components/data-view/filter/data-view-filter-trigger.d.ts +6 -0
- package/dist/components/data-view/filter/data-view-filter.d.ts +7 -0
- package/dist/components/data-view/pagination/pagination-page-first-button.d.ts +6 -0
- package/dist/components/data-view/pagination/pagination-page-last-button.d.ts +6 -0
- package/dist/components/data-view/pagination/pagination-page-next-button.d.ts +6 -0
- package/dist/components/data-view/pagination/pagination-page-number-button.d.ts +7 -0
- package/dist/components/data-view/pagination/pagination-page-previous-button.d.ts +6 -0
- package/dist/components/data-view/pagination/pagination-root.d.ts +6 -0
- package/dist/components/data-view/table/data-view-table-body.d.ts +9 -0
- package/dist/components/data-view/table/data-view-table-cell.d.ts +12 -0
- package/dist/components/data-view/table/data-view-table-header-cell.d.ts +11 -0
- package/dist/components/data-view/table/data-view-table-headers.d.ts +12 -0
- package/dist/components/data-view/table/data-view-table-row.d.ts +15 -0
- package/dist/components/data-view/table/data-view-table.d.ts +7 -0
- package/dist/components/data-view/table/index.d.ts +4 -0
- package/dist/components/etl/etl-context.d.ts +6 -0
- package/dist/components/etl/etl-root.d.ts +8 -0
- package/dist/components/etl/index.d.ts +2747 -0
- package/dist/components/etl/storybook/components/etl-recover.d.ts +1 -0
- package/dist/components/exporter/exporter-trigger.d.ts +8 -0
- package/dist/components/importer/importer-context.d.ts +4078 -0
- package/dist/components/importer/importer-dropzone.d.ts +7 -0
- package/dist/components/importer/importer-input.d.ts +5 -0
- package/dist/components/importer/importer-root.d.ts +8 -0
- package/dist/components/importer/importer-trigger.d.ts +7 -0
- package/dist/components/importer/importer.d.ts +2045 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/layout-view/index.d.ts +650 -0
- package/dist/components/layout-view/layout-view-context.d.ts +12 -0
- package/dist/components/layout-view/layout-view-layouts-selector.d.ts +6 -0
- package/dist/components/layout-view/layout-view-root.d.ts +10 -0
- package/dist/components/layout-view/layout-view-select-layout-trigger.d.ts +8 -0
- package/dist/components/layout-view/layout-view.d.ts +5 -0
- package/dist/components/log-view/log-view.d.ts +9 -0
- package/dist/components/mapper/mapper-context.d.ts +7 -0
- package/dist/components/mapper/mapper-headers-view/mapper-header.d.ts +7 -0
- package/dist/components/mapper/mapper-headers-view/mapper-headers-selector.d.ts +12 -0
- package/dist/components/mapper/mapper-headers-view/mapper-headers-view.d.ts +9 -0
- package/dist/components/mapper/mapper-root.d.ts +10 -0
- package/dist/components/mapper/mapper-trigger-cancel.d.ts +7 -0
- package/dist/components/mapper/mapper-trigger-confirm.d.ts +7 -0
- package/dist/components/mapper/mapper.d.ts +8 -0
- package/dist/components/metrics-view/metrics-view-root.d.ts +7 -0
- package/dist/components/notifications-handler/notifications-handler.d.ts +5 -0
- package/dist/components/progress-view/progress-view-root.d.ts +7 -0
- package/dist/components/recovery-view/recover-cancel-button.d.ts +6 -0
- package/dist/components/recovery-view/recover-view.d.ts +7 -0
- package/dist/components/recovery-view/recover.d.ts +5 -0
- package/dist/components/recovery-view/recovert-accept-button.d.ts +6 -0
- package/dist/components/recovery-view/recovery.d.ts +1 -0
- package/dist/components/reset-button/reset-button.d.ts +6 -0
- package/dist/components/state-view/state-view.d.ts +7 -0
- package/dist/hooks/index.d.ts +15 -0
- package/dist/hooks/props-getters/use-abort-button.d.ts +298 -0
- package/dist/hooks/props-getters/use-data-view.d.ts +3749 -0
- package/dist/hooks/props-getters/use-exporter.d.ts +593 -0
- package/dist/hooks/props-getters/use-importer.d.ts +2048 -0
- package/dist/hooks/props-getters/use-layout-view.d.ts +647 -0
- package/dist/hooks/props-getters/use-mapper.d.ts +1171 -0
- package/dist/hooks/props-getters/use-recovery-view.d.ts +17 -0
- package/dist/hooks/props-getters/use-reset-button.d.ts +297 -0
- package/dist/hooks/use-etl-orchestrator.d.ts +2 -0
- package/dist/hooks/use-etl-state.d.ts +4 -0
- package/dist/hooks/use-log.d.ts +5 -0
- package/dist/hooks/use-metrics.d.ts +3 -0
- package/dist/hooks/use-notifications.d.ts +3 -0
- package/dist/hooks/use-progress.d.ts +7 -0
- package/dist/hooks/use-state-flgs.d.ts +9 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1670 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/setup.d.ts +1 -0
- package/dist/utils/call-all-fn.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +8 -7
- package/dist/favicon.svg +0 -1
- package/dist/icons.svg +0 -24
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useAbortButton, type AbortButtonPropsBase as AbortButtonPropsBase } from "../../hooks";
|
|
2
|
+
export interface AbortButtonProps extends Omit<AbortButtonPropsBase, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useAbortButton>) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
export declare const AbortButton: ({ children, asChild, ...props }: AbortButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { LayoutBase, RowObject, StepsValue } from "@etl-corestream/core";
|
|
2
|
+
import type { useDataView } from "../../hooks";
|
|
3
|
+
import type { ReadonlySignal } from "@preact/signals-react";
|
|
4
|
+
export type DataViewContextType = {
|
|
5
|
+
state: ReadonlySignal<any>;
|
|
6
|
+
layout: ReadonlySignal<LayoutBase | null>;
|
|
7
|
+
step: ReadonlySignal<StepsValue[]>;
|
|
8
|
+
currentEditRow: {
|
|
9
|
+
row: RowObject;
|
|
10
|
+
column: string;
|
|
11
|
+
} | null;
|
|
12
|
+
setCurrentEditRow: (row: {
|
|
13
|
+
row: RowObject;
|
|
14
|
+
column: string;
|
|
15
|
+
} | null) => void;
|
|
16
|
+
} & ReturnType<typeof useDataView>;
|
|
17
|
+
export declare const DataViewContext: import("react").Context<DataViewContextType>;
|
|
18
|
+
export declare const useDataViewContext: () => DataViewContextType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DataViewRemoveRowButtonProps, useDataView } from "../../hooks";
|
|
2
|
+
export interface EtlDataViewRemoveTriggerProps extends Omit<DataViewRemoveRowButtonProps, 'children'> {
|
|
3
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
rowId: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const EtlDataViewRemoveTrigger: ({ rowId, className, children, asChild, ...props }: EtlDataViewRemoveTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useDataView, type DataViewRootProps as DataViewRootPropsBase } from "../../hooks";
|
|
2
|
+
export interface DataViewProps extends Omit<DataViewRootPropsBase, 'children'> {
|
|
3
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
viewMode?: 'modal';
|
|
6
|
+
}
|
|
7
|
+
export declare const DataViewRoot: ({ viewMode, className, ...props }: DataViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const EtlDataView: {
|
|
2
|
+
Context: import("react").Context<import("./data-view-context").DataViewContextType>;
|
|
3
|
+
Root: ({ viewMode, className, ...props }: import("./data-view-root").DataViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Table: {
|
|
5
|
+
Root: ({ className, ...props }: import("./table").DataViewTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
THead: ({ className, omitHeaders, generateHeaders, children, thElement, trElement, thProps, ...props }: import("./table/data-view-table-headers").DataViewTableHeadersProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
TBody: ({ className, asChild, rowProps, tdProps, children, ...props }: import("./table").DataViewTableBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
HeaderCell: ({ className, asChild, children, column, generateContent, onClick, ...props }: import("./table/data-view-table-header-cell").DataViewTableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Row: ({ className, children, rowObject, tdProps, generateCells, omitHeaders, tdElement, asChild, ...props }: import("./table").DataViewTableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Cell: ({ className, asChild, children, row, column, generateContent, onClick, ...props }: import("./table").DataViewTableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
Pagination: {
|
|
13
|
+
Root: ({ className, asChild, children, ...props }: import("./pagination/pagination-root").PaginationRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
PageNumberButton: ({ page, className, asChild, children, ...props }: import("./pagination/pagination-page-number-button").PaginationPageNumberButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
PageNextButton: ({ className, asChild, children, ...props }: import("./pagination/pagination-page-next-button").PaginationPageNextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
PagePreviousButton: ({ className, asChild, children, ...props }: import("./pagination/pagination-page-previous-button").PaginationPagePreviousButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
PageLastButton: ({ className, asChild, children, ...props }: import("./pagination/pagination-page-last-button").PaginationPageLastButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
PageFirstButton: ({ className, asChild, children, ...props }: import("./pagination/pagination-page-first-button").PaginationPageFirstButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
Edit: {
|
|
21
|
+
Root: ({ className, children, asChild, onSubmit, ...props }: import("./edit-view/edit-view-root").EditViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
TriggerSubmit: ({ className, asChild, children, ...props }: import("./edit-view/edit-view-trigger-submit").EditViewTriggerSubmitsProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
TriggerCancel: ({ className, asChild, children, ...props }: import("./edit-view/edit-view-trigger-cancel").EditViewTriggerCancelProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
NewInput: ({ className, asChild, children, ...props }: import("./edit-view/edit-view-new-input").EditViewNewInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
PreviusInput: ({ className, asChild, children, ...props }: import("./edit-view/edit-view-previus-input").EditViewPreviousProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
RemoveTrigger: ({ rowId, className, children, asChild, ...props }: import("./data-view-remove-trigger").EtlDataViewRemoveTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
Filter: {
|
|
29
|
+
root: ({ children, asChild, className, ...props }: import("./filter/data-view-filter-root").DataViewFilterRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
errorSelector: ({ asChild, children, onChange, ...props }: import("./filter/data-view-filter-errors-selector").DataViewFilterErrorsProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>> | import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
context: import("react").Context<Partial<import("./filter/data-view-filter-context").DataviewFilterContext>>;
|
|
32
|
+
trigger: ({ asChild, children, onClick, ...props }: import("./filter/data-view-filter-trigger").DataViewFilterTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChangeEvent, HTMLAttributes } from "react";
|
|
2
|
+
export interface EditViewNewInputProps extends Omit<HTMLAttributes<HTMLInputElement>, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: {
|
|
5
|
+
name: string;
|
|
6
|
+
originalValue: string;
|
|
7
|
+
newValue: string;
|
|
8
|
+
setNewValue: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
}) => React.ReactNode);
|
|
10
|
+
}
|
|
11
|
+
export declare const EditViewNewInput: ({ className, asChild, children, ...props }: EditViewNewInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface EditViewPreviousProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: {
|
|
5
|
+
previusValue: string;
|
|
6
|
+
}) => React.ReactNode);
|
|
7
|
+
}
|
|
8
|
+
export declare const EditViewPreviousInput: ({ className, asChild, children, ...props }: EditViewPreviousProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type HTMLAttributes, type SubmitEvent } from "react";
|
|
2
|
+
import { useDataViewContext } from "../data-view-context";
|
|
3
|
+
export interface EditViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onSubmit'> {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
6
|
+
onSubmit?: (event: SubmitEvent) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const EditViewRoot: ({ className, children, asChild, onSubmit, ...props }: EditViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from "react";
|
|
2
|
+
import { useDataViewContext } from "../data-view-context";
|
|
3
|
+
export interface EditViewTriggerCancelProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
6
|
+
}
|
|
7
|
+
export declare const EditViewTriggerCancel: ({ className, asChild, children, ...props }: EditViewTriggerCancelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from "react";
|
|
2
|
+
import { useDataViewContext } from "../data-view-context";
|
|
3
|
+
export interface EditViewTriggerSubmitsProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
6
|
+
}
|
|
7
|
+
export declare const EditViewTriggerSubmits: ({ className, asChild, children, ...props }: EditViewTriggerSubmitsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RowFilter } from "@etl-corestream/core";
|
|
2
|
+
export interface DataviewFilterContext {
|
|
3
|
+
currentFilter: RowFilter | null;
|
|
4
|
+
setCurrentFilter: (f: RowFilter | null) => void;
|
|
5
|
+
triggerFilter: (f: RowFilter | null) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const DataviewFilterContext: import("react").Context<Partial<DataviewFilterContext>>;
|
|
8
|
+
export declare const useDatavieFilterContext: () => Partial<DataviewFilterContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
export type ViewCellsMode = 'all' | 'only-valid' | 'only-invalid';
|
|
3
|
+
export interface DataViewFilterErrorsProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'children'> {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
children?: ReactNode | ((props: {
|
|
6
|
+
valueOptions: ViewCellsMode[];
|
|
7
|
+
}) => ReactNode);
|
|
8
|
+
}
|
|
9
|
+
export declare const DataViewFilterErrorsSelector: ({ asChild, children, onChange, ...props }: DataViewFilterErrorsProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode>> | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type HtmlHTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
import { DataviewFilterContext } from "./data-view-filter-context";
|
|
3
|
+
export interface DataViewFilterRootProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
|
+
children: ReactNode | ((ct: DataviewFilterContext) => ReactNode);
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DataViewFilterRoot: ({ children, asChild, className, ...props }: DataViewFilterRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface DataViewFilterTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const DataViewFilterTrigger: ({ asChild, children, onClick, ...props }: DataViewFilterTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataviewFilterContext } from "./data-view-filter-context";
|
|
2
|
+
export declare const DataViewFilter: {
|
|
3
|
+
root: ({ children, asChild, className, ...props }: import("./data-view-filter-root").DataViewFilterRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
errorSelector: ({ asChild, children, onChange, ...props }: import("./data-view-filter-errors-selector").DataViewFilterErrorsProps) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>> | import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
context: import("react").Context<Partial<DataviewFilterContext>>;
|
|
6
|
+
trigger: ({ asChild, children, onClick, ...props }: import("./data-view-filter-trigger").DataViewFilterTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DataViewPaginationPageFirstButtonProps as DataViewPaginationPageFirstButtonPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface PaginationPageFirstButtonProps extends Omit<DataViewPaginationPageFirstButtonPropsBase, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationPageFirstButton: ({ className, asChild, children, ...props }: PaginationPageFirstButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DataViewPaginationPageLastButtonProps as DataViewPaginationPageLastButtonPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface PaginationPageLastButtonProps extends Omit<DataViewPaginationPageLastButtonPropsBase, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationPageLastButton: ({ className, asChild, children, ...props }: PaginationPageLastButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DataViewPaginationPageNextButtonProps as DataViewPaginationPageNextButtonPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface PaginationPageNextButtonProps extends Omit<DataViewPaginationPageNextButtonPropsBase, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationPageNextButton: ({ className, asChild, children, ...props }: PaginationPageNextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DataViewPaginationPageNumberButtonProps as DataViewPaginationPageNumberButtonPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface PaginationPageNumberButtonProps extends Omit<DataViewPaginationPageNumberButtonPropsBase, 'children'> {
|
|
3
|
+
page: number;
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
6
|
+
}
|
|
7
|
+
export declare const PaginationPageNumberButton: ({ page, className, asChild, children, ...props }: PaginationPageNumberButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DataViewPaginationPagePreviousButtonProps as DataViewPaginationPagePreviousButtonPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface PaginationPagePreviousButtonProps extends Omit<DataViewPaginationPagePreviousButtonPropsBase, 'children'> {
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationPagePreviousButton: ({ className, asChild, children, ...props }: PaginationPagePreviousButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useDataViewContext } from "../data-view-context";
|
|
2
|
+
export interface PaginationRootProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
3
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationRoot: ({ className, asChild, children, ...props }: PaginationRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useDataViewContext } from "../data-view-context";
|
|
2
|
+
import { type HTMLAttributes } from "react";
|
|
3
|
+
export interface DataViewTableBodyProps extends Omit<HTMLAttributes<HTMLTableSectionElement>, 'children'> {
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
rowProps?: HTMLAttributes<HTMLTableRowElement>;
|
|
7
|
+
tdProps?: HTMLAttributes<HTMLTableCellElement>;
|
|
8
|
+
}
|
|
9
|
+
export declare const DataViewTableBody: ({ className, asChild, rowProps, tdProps, children, ...props }: DataViewTableBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RowObject } from "@etl-corestream/core";
|
|
2
|
+
import type { DataViewCellProps as DataViewCellPropsBase, useDataView } from "../../../hooks";
|
|
3
|
+
export interface DataViewTableCellProps extends Omit<DataViewCellPropsBase, 'children'> {
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView> & {
|
|
5
|
+
isError: string | undefined;
|
|
6
|
+
}) => React.ReactNode);
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
row: RowObject;
|
|
9
|
+
column: string;
|
|
10
|
+
generateContent?: 'before' | 'after' | 'none';
|
|
11
|
+
}
|
|
12
|
+
export declare const DataViewTableCell: ({ className, asChild, children, row, column, generateContent, onClick, ...props }: DataViewTableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DataViewCellProps as DataViewCellPropsBase, useDataView } from "../../../hooks";
|
|
2
|
+
export interface DataViewTableHeaderCellProps extends Omit<DataViewCellPropsBase, 'children'> {
|
|
3
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
column: {
|
|
6
|
+
label: string;
|
|
7
|
+
key: string;
|
|
8
|
+
};
|
|
9
|
+
generateContent?: 'before' | 'after' | 'none';
|
|
10
|
+
}
|
|
11
|
+
export declare const DataViewTableHeaderCell: ({ className, asChild, children, column, generateContent, onClick, ...props }: DataViewTableHeaderCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ElementType, type HTMLAttributes } from "react";
|
|
2
|
+
import type { DataViewTableHeadersProps as DataViewTableHeadersPropsBase, useDataView } from "../../../hooks";
|
|
3
|
+
export interface DataViewTableHeadersProps extends Omit<DataViewTableHeadersPropsBase, 'children'> {
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView>) => React.ReactNode);
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
generateHeaders?: 'before' | 'after' | 'none';
|
|
7
|
+
omitHeaders?: string[];
|
|
8
|
+
thElement?: ElementType;
|
|
9
|
+
trElement?: ElementType;
|
|
10
|
+
thProps?: HTMLAttributes<HTMLTableCellElement>;
|
|
11
|
+
}
|
|
12
|
+
export declare const DataViewTableHeaders: ({ className, omitHeaders, generateHeaders, children, thElement, trElement, thProps, ...props }: DataViewTableHeadersProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RowObject } from "@etl-corestream/core";
|
|
2
|
+
import type { DataViewRowProps as DataViewRowPropsBase, useDataView } from "../../../hooks";
|
|
3
|
+
import { type ElementType, type HTMLAttributes } from "react";
|
|
4
|
+
export interface DataViewTableRowProps extends Omit<DataViewRowPropsBase, 'children'> {
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataView> & {
|
|
6
|
+
row: RowObject;
|
|
7
|
+
}) => React.ReactNode);
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
rowObject: RowObject;
|
|
10
|
+
generateCells?: 'before' | 'after' | 'none';
|
|
11
|
+
omitHeaders?: string[];
|
|
12
|
+
tdElement?: ElementType;
|
|
13
|
+
tdProps?: HTMLAttributes<HTMLTableCellElement>;
|
|
14
|
+
}
|
|
15
|
+
export declare const DataViewTableRow: ({ className, children, rowObject, tdProps, generateCells, omitHeaders, tdElement, asChild, ...props }: DataViewTableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DataViewTableProps as DataViewTablePropsBase } from "../../../hooks";
|
|
2
|
+
import { useDataViewContext } from "../data-view-context";
|
|
3
|
+
export interface DataViewTableProps extends Omit<DataViewTablePropsBase, 'children'> {
|
|
4
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useDataViewContext>) => React.ReactNode);
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const DataViewTable: ({ className, ...props }: DataViewTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DataViewTable, type DataViewTableProps } from './data-view-table';
|
|
2
|
+
export { DataViewTableRow, type DataViewTableRowProps } from './data-view-table-row';
|
|
3
|
+
export { DataViewTableCell, type DataViewTableCellProps } from './data-view-table-cell';
|
|
4
|
+
export { DataViewTableBody, type DataViewTableBodyProps } from './data-view-table-body';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useEtlOrchestrator } from "../../hooks/use-etl-orchestrator";
|
|
2
|
+
import type { useStepsFlgs } from "../../hooks/use-state-flgs";
|
|
3
|
+
type EtlContextType = ReturnType<typeof useEtlOrchestrator> & ReturnType<typeof useStepsFlgs>;
|
|
4
|
+
export declare const EtlContext: import("react").Context<EtlContextType>;
|
|
5
|
+
export declare const useEtlContext: () => EtlContextType;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BrowserProviderConfig } from "@etl-corestream/core";
|
|
2
|
+
import { useEtlOrchestrator } from "../../hooks";
|
|
3
|
+
export interface EtlProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
4
|
+
configs?: BrowserProviderConfig;
|
|
5
|
+
children?: React.ReactNode | ((props: ReturnType<typeof useEtlOrchestrator>) => React.ReactNode);
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const EtlRoot: ({ configs, children, asChild, ...props }: EtlProps) => import("react/jsx-runtime").JSX.Element;
|