@compill/admin 1.0.28 → 1.0.30
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/index.d.ts +44 -44
- package/index.js +10 -240
- package/index.mjs +3323 -40485
- package/index.umd.js +10 -240
- package/lib/SectionTitle.d.ts +2 -2
- package/lib/breadcrumbs/BreadCrumbs.d.ts +2 -2
- package/lib/buttons/DialogButton.d.ts +4 -3
- package/lib/buttons/IconButton.d.ts +2 -2
- package/lib/buttons/InvalidateButton.d.ts +2 -2
- package/lib/buttons/NavigateButton.d.ts +2 -2
- package/lib/buttons/PublishButton.d.ts +2 -2
- package/lib/buttons/UpdateButton.d.ts +2 -2
- package/lib/buttons/ViewButton.d.ts +2 -2
- package/lib/json/DetailsView.d.ts +3 -3
- package/lib/json/EditItemView.d.ts +2 -2
- package/lib/json/MultiQueryWrapper.d.ts +3 -3
- package/lib/json/QueryWrapper.d.ts +3 -3
- package/lib/json/ScreenRenderer.d.ts +3 -3
- package/lib/json/ScreenTopBar.d.ts +3 -3
- package/lib/json/TabbedView.d.ts +3 -3
- package/lib/json/buttons/ActionButton.d.ts +2 -2
- package/lib/json/buttons/ConfirmationActionButton.d.ts +2 -2
- package/lib/json/dialog/DialogRenderer.d.ts +4 -4
- package/lib/json/dialog/ItemDeleteDialog.d.ts +2 -2
- package/lib/json/dialog/ItemEditDialog.d.ts +6 -5
- package/lib/json/dialog/MultiQueryWrapperDialog.d.ts +2 -2
- package/lib/json/dialog/QueryWrapperDialog.d.ts +3 -3
- package/lib/json/table/TableRowActionsView.d.ts +2 -2
- package/lib/json/table/TableRowPublishPostButton.d.ts +2 -2
- package/lib/json/table/TableView.d.ts +3 -3
- package/lib/json/table/TableViewContext.d.ts +5 -4
- package/lib/json/table/useTableProps.d.ts +2 -1
- package/lib/json/types/DetailsView.d.ts +3 -3
- package/lib/json/types/EditItemDialog.d.ts +2 -1
- package/lib/json/types/MultiQueryWrapper.d.ts +4 -3
- package/lib/json/types/MultiQueryWrapperDialog.d.ts +2 -1
- package/lib/json/types/QueryWrapper.d.ts +4 -3
- package/lib/json/types/QueryWrapperDialog.d.ts +2 -1
- package/lib/json/types/ScreenConfig.d.ts +7 -6
- package/lib/json/types/TabbedView.d.ts +6 -6
- package/lib/json/types/TableView.d.ts +9 -9
- package/lib/modal/AttachDialog.d.ts +4 -4
- package/lib/modal/FormActionDialog.d.ts +6 -5
- package/lib/modal/ItemEditDialog.d.ts +5 -4
- package/lib/page/PageContainer.d.ts +2 -2
- package/lib/page/PageContentEditor.d.ts +2 -2
- package/lib/page/PageMain.d.ts +2 -2
- package/lib/page/PageQueryStateContainer.d.ts +3 -2
- package/lib/page/PageSectionTitle.d.ts +2 -2
- package/lib/page/PageSidebar.d.ts +2 -2
- package/lib/page/PageSidebarSection.d.ts +2 -2
- package/lib/page/PageStateContainer.d.ts +3 -2
- package/lib/page/PageSubSectionTitle.d.ts +2 -2
- package/lib/page/PageTitle.d.ts +2 -2
- package/lib/page/PageTopBar.d.ts +4 -3
- package/lib/status/StatusBadge.d.ts +2 -2
- package/lib/table/TableContainer.d.ts +3 -3
- package/lib/table/TableContainerContext.d.ts +3 -2
- package/lib/table/TableCreateButton.d.ts +2 -2
- package/lib/table/TableFilterButton.d.ts +2 -2
- package/lib/table/TableFilters.d.ts +1 -1
- package/lib/table/TableMassActions.d.ts +2 -2
- package/lib/table/TableRowActionBar.d.ts +2 -2
- package/lib/table/TableRowDeleteButton.d.ts +2 -2
- package/lib/table/TableRowEditButton.d.ts +2 -2
- package/lib/table/TableRowNavigateButton.d.ts +2 -2
- package/lib/table/TableRowPublishPostButton.d.ts +2 -2
- package/lib/table/TableRowViewButton.d.ts +2 -2
- package/lib/table/TableTopBar.d.ts +2 -2
- package/package.json +1 -1
package/lib/SectionTitle.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function SectionTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { ButtonProps } from
|
3
|
-
import
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { ButtonProps } from '@valerya/ui';
|
3
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
4
|
+
|
4
5
|
export interface DialogButtonProps extends SoperioComponent, ParentComponent, ButtonProps {
|
5
6
|
buildDialog: (onClose: () => void) => React.ReactNode;
|
6
7
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import { ButtonProps } from '@valerya/ui';
|
2
2
|
import { API } from '../../../../admin-api/src/index.ts';
|
3
|
-
|
3
|
+
|
4
4
|
interface PublishButtonProps extends ButtonProps {
|
5
5
|
status: string;
|
6
6
|
queryId: string;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ButtonProps } from '@valerya/ui';
|
2
|
+
|
3
3
|
export declare function UpdateButton({ ...props }: ButtonProps): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
import { SoperioComponent } from
|
3
|
-
|
1
|
+
import { DetailsViewConfig } from './types/DetailsView';
|
2
|
+
import { SoperioComponent } from '@soperio/react';
|
3
|
+
|
4
4
|
export declare function DetailsView({ queryField, api, processInput, screen, tabbed, ...props }: DetailsViewConfig & {
|
5
5
|
tabbed?: boolean;
|
6
6
|
} & SoperioComponent): JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ItemEditDialogProps } from './dialog/ItemEditDialog';
|
2
|
+
|
3
3
|
export declare function EditItemView({ initialValues, ...props }: Omit<ItemEditDialogProps, "show">): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
import { MultiQueryWrapperConfig } from
|
3
|
-
|
1
|
+
import { SoperioComponent } from '@soperio/react';
|
2
|
+
import { MultiQueryWrapperConfig } from './types/MultiQueryWrapper';
|
3
|
+
|
4
4
|
export declare function MultiQueryWrapper({ queries, config, tabbed, ...props }: Omit<MultiQueryWrapperConfig, "type"> & {
|
5
5
|
tabbed?: boolean;
|
6
6
|
} & SoperioComponent): JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { QueryWrapperConfig } from "./types/QueryWrapper";
|
3
|
-
import { SoperioComponent } from "@soperio/react";
|
4
1
|
import { CRUD_MODEL } from '../../../../api/src/index.ts';
|
2
|
+
import { SoperioComponent } from '@soperio/react';
|
3
|
+
import { QueryWrapperConfig } from './types/QueryWrapper';
|
4
|
+
|
5
5
|
export declare function QueryWrapper<T extends CRUD_MODEL, U>({ api, queryField, fn, transformFn, config, tabbed, ...props }: Omit<QueryWrapperConfig<T, U>, "type"> & {
|
6
6
|
tabbed?: boolean;
|
7
7
|
} & SoperioComponent): JSX.Element | null;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
import { ScreenConfig } from
|
3
|
-
|
1
|
+
import { SoperioComponent } from '@soperio/react';
|
2
|
+
import { ScreenConfig } from './types/ScreenConfig';
|
3
|
+
|
4
4
|
export declare function ScreenRenderer({ config, tabbed, ...props }: {
|
5
5
|
config: ScreenConfig;
|
6
6
|
tabbed?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
import { DetailViewButton } from './types/DetailsView';
|
2
|
+
import { Breadcrumb } from '../breadcrumbs/BreadCrumbs';
|
2
3
|
import { API } from '../../../../admin-api/src/index.ts';
|
3
|
-
|
4
|
-
import { DetailViewButton } from "./types/DetailsView";
|
4
|
+
|
5
5
|
interface ScreenTopBarProps {
|
6
6
|
tabbed?: boolean;
|
7
7
|
breadcrumbs?: Breadcrumb[];
|
package/lib/json/TabbedView.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
import { TabbedViewConfig } from
|
3
|
-
|
1
|
+
import { SoperioComponent } from '@soperio/react';
|
2
|
+
import { TabbedViewConfig } from './types/TabbedView';
|
3
|
+
|
4
4
|
export declare function TabbedView({ queryField, api, screen, ...props }: TabbedViewConfig & SoperioComponent): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import { ButtonProps } from '@valerya/ui';
|
2
2
|
import { MutationQueryFn, MutationQueryKey } from '../../../../../api/src/index.ts';
|
3
|
-
|
3
|
+
|
4
4
|
interface ActionButtonProps {
|
5
5
|
label: string;
|
6
6
|
buttonProps?: ButtonProps;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import { ButtonProps, ModalProps } from '@valerya/ui';
|
2
2
|
import { MutationQueryFn, MutationQueryKey } from '../../../../../api/src/index.ts';
|
3
|
-
|
3
|
+
|
4
4
|
interface ConfirmationActionButtonProps {
|
5
5
|
label: string;
|
6
6
|
buttonProps?: ButtonProps;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
1
|
+
import { MultiQueryWrapperDialogConfig } from '../types/MultiQueryWrapperDialog';
|
2
|
+
import { QueryWrapperDialogConfig } from '../types/QueryWrapperDialog';
|
3
|
+
import { EditItemDialogConfig } from '../types/EditItemDialog';
|
4
|
+
|
5
5
|
interface DialogRendererProps {
|
6
6
|
config: EditItemDialogConfig | QueryWrapperDialogConfig<any> | MultiQueryWrapperDialogConfig;
|
7
7
|
onClose: () => void;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
import { ModalProps } from '@valerya/ui';
|
2
2
|
import { CRUDAPI } from '../../../../../api/src/index.ts';
|
3
|
-
|
3
|
+
|
4
4
|
export interface ItemDeleteDialogProps extends ModalProps {
|
5
5
|
itemLabel: string;
|
6
6
|
queryId: string;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { FormikConfig } from 'formik';
|
3
|
+
import { ModalProps } from '@valerya/ui';
|
4
|
+
import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
|
2
5
|
import { FormRendererConfig } from '../../../../../form/src/index.ts';
|
3
|
-
import {
|
4
|
-
|
5
|
-
import { FormikConfig } from "formik";
|
6
|
-
import React from "react";
|
6
|
+
import { CRUDAPI } from '../../../../../api/src/index.ts';
|
7
|
+
|
7
8
|
export interface ItemEditDialogProps<TFormData extends {} = any, TResultData extends {} = any> extends Omit<ModalProps, "id" | "children" | "title" | "position"> {
|
8
9
|
itemLabel?: string;
|
9
10
|
queryId?: string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { MultiQueryWrapperDialogConfig } from '../types/MultiQueryWrapperDialog';
|
2
|
+
|
3
3
|
export type MultiQueryWrapperDialogProps = Omit<MultiQueryWrapperDialogConfig, "type"> & {
|
4
4
|
queryId?: string;
|
5
5
|
onClose: () => void;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
import { EditItemDialogConfig } from '../types/EditItemDialog';
|
2
|
+
import { QueryWrapperDialogConfig } from '../types/QueryWrapperDialog';
|
2
3
|
import { CRUDAPI, CRUD_MODEL } from '../../../../../api/src/index.ts';
|
3
|
-
|
4
|
-
import { EditItemDialogConfig } from "../types/EditItemDialog";
|
4
|
+
|
5
5
|
export type QueryWrapperDialogProps<T extends CRUD_MODEL, U> = Omit<QueryWrapperDialogConfig<T, U>, "type"> & {
|
6
6
|
api: CRUDAPI<any>;
|
7
7
|
fn: "get" | "getTransformed" | "getAll" | "getAllTransformed";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { TableRowAction } from "../types/TableView";
|
3
1
|
import { API } from '../../../../../admin-api/src/index.ts';
|
2
|
+
import { TableRowAction } from '../types/TableView';
|
3
|
+
|
4
4
|
interface TableRowActionViewProps {
|
5
5
|
row: any;
|
6
6
|
onAction: (action: TableRowAction, item: any) => void;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ButtonProps } from "@valerya/ui";
|
3
1
|
import { API } from '../../../../../admin-api/src/index.ts';
|
2
|
+
import { ButtonProps } from '@valerya/ui';
|
3
|
+
|
4
4
|
export declare function TableRowPublishPostButton({ id, api, status, invalidateQueryKey, ...props }: {
|
5
5
|
id: string;
|
6
6
|
api: API<any>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
import { SoperioComponent } from
|
3
|
-
|
1
|
+
import { TableViewConfig } from '../types/TableView';
|
2
|
+
import { SoperioComponent } from '@soperio/react';
|
3
|
+
|
4
4
|
export declare function TableView({ queryField, title, subtitle, screen, ...props }: Omit<TableViewConfig, "type"> & SoperioComponent): JSX.Element;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { QueryWrapperDialogConfig } from '../types/QueryWrapperDialog';
|
2
|
+
import { EditItemDialogConfig } from '../types/EditItemDialog';
|
3
|
+
import { CustomDialog, TableRowAction, TableViewDeleteItem } from '../types/TableView';
|
4
|
+
import { default as React } from 'react';
|
5
|
+
|
5
6
|
type TableViewContextProps = {
|
6
7
|
onAction: (action: TableRowAction, item: any) => void;
|
7
8
|
dialog?: React.ReactNode;
|
@@ -1,3 +1,4 @@
|
|
1
|
-
import { TableRowAction, TableViewTable } from "../types/TableView";
|
2
1
|
import { API } from '../../../../../admin-api/src/index.ts';
|
2
|
+
import { TableRowAction, TableViewTable } from '../types/TableView';
|
3
|
+
|
3
4
|
export declare function useTableProps(api: API<any>, table: TableViewTable, rowActions?: TableRowAction[]): any;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
|
1
|
+
import { FormRendererConfig } from '../../../../../form/src/index.ts';
|
2
|
+
import { Breadcrumb } from '../../breadcrumbs/BreadCrumbs';
|
2
3
|
import { API } from '../../../../../admin-api/src/index.ts';
|
4
|
+
|
3
5
|
import * as Yup from "yup";
|
4
|
-
import { Breadcrumb } from "../../breadcrumbs/BreadCrumbs";
|
5
|
-
import { FormRendererConfig } from '../../../../../form/src/index.ts';
|
6
6
|
export type DetailsViewConfig<T = any> = {
|
7
7
|
type: "details";
|
8
8
|
api: API<T>;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { TableViewConfig } from './TableView';
|
2
|
+
import { TabbedViewConfig } from './TabbedView';
|
3
|
+
import { DetailsViewConfig } from './DetailsView';
|
1
4
|
import { CRUDAPI } from '../../../../../api/src/index.ts';
|
2
|
-
|
3
|
-
import { TabbedViewConfig } from "./TabbedView";
|
4
|
-
import { TableViewConfig } from "./TableView";
|
5
|
+
|
5
6
|
type SubScreen = TableViewConfig | DetailsViewConfig | TabbedViewConfig;
|
6
7
|
export type QueryDef = {
|
7
8
|
api: CRUDAPI<any> | ((id: string) => CRUDAPI<any>);
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { TableViewConfig } from './TableView';
|
2
|
+
import { TabbedViewConfig } from './TabbedView';
|
3
|
+
import { DetailsViewConfig } from './DetailsView';
|
1
4
|
import { CRUDAPI, CRUD_MODEL } from '../../../../../api/src/index.ts';
|
2
|
-
|
3
|
-
import { TabbedViewConfig } from "./TabbedView";
|
4
|
-
import { TableViewConfig } from "./TableView";
|
5
|
+
|
5
6
|
type SubScreen<T extends CRUD_MODEL, U> = TableViewConfig | DetailsViewConfig | TabbedViewConfig | QueryWrapperConfig<T, U>;
|
6
7
|
export type QueryWrapperConfig<T extends CRUD_MODEL, U = T> = {
|
7
8
|
type: "query";
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import { EditItemDialogConfig } from './EditItemDialog';
|
1
2
|
import { CRUDAPI, CRUD_MODEL } from '../../../../../api/src/index.ts';
|
2
|
-
|
3
|
+
|
3
4
|
export type QueryWrapperDialogConfig<T extends CRUD_MODEL, U = T> = {
|
4
5
|
type: "query";
|
5
6
|
api: CRUDAPI<any>;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
1
|
+
import { TableViewConfig } from './TableView';
|
2
|
+
import { TabbedViewConfig } from './TabbedView';
|
3
|
+
import { QueryWrapperConfig } from './QueryWrapper';
|
4
|
+
import { MultiQueryWrapperConfig } from './MultiQueryWrapper';
|
5
|
+
import { DetailsViewConfig } from './DetailsView';
|
6
|
+
import { ItemEditDialogProps } from '../dialog/ItemEditDialog';
|
7
|
+
|
7
8
|
export type ScreenConfig = TableViewConfig | DetailsViewConfig | TabbedViewConfig | QueryWrapperConfig<any, any> | MultiQueryWrapperConfig;
|
8
9
|
export type TableViewEditItem = Omit<ItemEditDialogProps, "show" | "onClose">;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
import { MultiQueryWrapperConfig } from './MultiQueryWrapper';
|
2
|
+
import { TableViewConfig } from './TableView';
|
3
|
+
import { QueryWrapperConfig } from './QueryWrapper';
|
4
|
+
import { DetailsViewConfig } from './DetailsView';
|
5
|
+
import { Breadcrumb } from '../../breadcrumbs/BreadCrumbs';
|
2
6
|
import { CRUDAPI } from '../../../../../api/src/index.ts';
|
3
|
-
|
4
|
-
import { DetailsViewConfig } from "./DetailsView";
|
5
|
-
import { QueryWrapperConfig } from "./QueryWrapper";
|
6
|
-
import { TableViewConfig } from "./TableView";
|
7
|
-
import { MultiQueryWrapperConfig } from "./MultiQueryWrapper";
|
7
|
+
|
8
8
|
export type TabbedViewConfig<T extends any = any> = {
|
9
9
|
type: "tabbed";
|
10
10
|
queryField: string;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { MutationQueryFn, MutationQueryKey } from '../../../../../api/src/index.ts';
|
2
|
+
import { QueryWrapperDialogConfig } from './QueryWrapperDialog';
|
3
|
+
import { EditItemDialogConfig } from './EditItemDialog';
|
4
|
+
import { ItemDeleteDialogProps } from '../dialog/ItemDeleteDialog';
|
5
|
+
import { Breadcrumb } from '../../breadcrumbs/BreadCrumbs';
|
6
|
+
import { ButtonProps, ModalProps } from '@valerya/ui';
|
4
7
|
import { TableProps } from '../../../../../table/src/index.ts';
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
|
8
|
-
import { EditItemDialogConfig } from "./EditItemDialog";
|
9
|
-
import { QueryWrapperDialogConfig } from "./QueryWrapperDialog";
|
8
|
+
import { FormRendererConfig } from '../../../../../form/src/index.ts';
|
9
|
+
import { API } from '../../../../../admin-api/src/index.ts';
|
10
|
+
|
10
11
|
import * as Yup from "yup";
|
11
|
-
import { MutationQueryFn, MutationQueryKey } from '../../../../../api/src/index.ts';
|
12
12
|
export type TableViewScreen = {
|
13
13
|
api: API<any>;
|
14
14
|
breadcrumbs?: Breadcrumb[];
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
1
|
+
import { FormikConfig } from 'formik';
|
2
|
+
import { ModalProps } from '@valerya/ui';
|
3
|
+
import { QueryFunctionContext } from '@tanstack/react-query';
|
4
|
+
|
5
5
|
interface AttachDialogProps<T> extends Omit<ModalProps, "id" | "children" | "title" | "position"> {
|
6
6
|
queryId?: string;
|
7
7
|
queryKey: string[];
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { FormikConfig } from 'formik';
|
3
|
+
import { ModalProps } from '@valerya/ui';
|
4
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
2
5
|
import { FormRendererConfig } from '../../../../form/src/index.ts';
|
3
|
-
import {
|
4
|
-
|
5
|
-
import { FormikConfig } from "formik";
|
6
|
-
import React from "react";
|
6
|
+
import { UseMutateOptions } from '../../../../api/src/index.ts';
|
7
|
+
|
7
8
|
export interface FormActionDialogProps<TFormData extends {} = any, TResultData extends {} = any> extends Omit<ModalProps, "id" | "children" | "title" | "position" | "onError">, UseMutateOptions<TResultData, TFormData> {
|
8
9
|
itemLabel?: string;
|
9
10
|
queryId?: string;
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { FormikConfig } from 'formik';
|
3
|
+
import { ModalProps } from '@valerya/ui';
|
4
|
+
import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query';
|
1
5
|
import { FormRendererConfig } from '../../../../form/src/index.ts';
|
2
|
-
|
3
|
-
import { ModalProps } from "@valerya/ui";
|
4
|
-
import { FormikConfig } from "formik";
|
5
|
-
import React from "react";
|
6
|
+
|
6
7
|
export interface ItemEditDialogProps<TFormData extends {} = any, TResultData extends {} = any> extends Omit<ModalProps, "id" | "children" | "title" | "position"> {
|
7
8
|
itemLabel?: string;
|
8
9
|
queryId?: string;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ContainerProps } from '@valerya/ui';
|
2
|
+
|
3
3
|
export declare function PageContainer({ children, ...props }: ContainerProps): JSX.Element;
|
package/lib/page/PageMain.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageMain({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
@@ -1,6 +1,7 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { ContainerProps } from '@valerya/ui';
|
1
3
|
import { CRUDAPI, CRUD_MODEL } from '../../../../api/src/index.ts';
|
2
|
-
|
3
|
-
import React from "react";
|
4
|
+
|
4
5
|
interface PageQueryContainerProps<T extends CRUD_MODEL> extends Omit<ContainerProps, "children"> {
|
5
6
|
queryId?: string;
|
6
7
|
api: CRUDAPI<T>;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageSectionTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageSidebar({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageSidebarSection({ title, children, ...props }: {
|
4
4
|
title?: string;
|
5
5
|
} & SoperioComponent & ParentComponent): JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageSubSectionTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
package/lib/page/PageTitle.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function PageTitle({ children, ...props }: SoperioComponent & ParentComponent): JSX.Element;
|
package/lib/page/PageTopBar.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import React from
|
3
|
-
import {
|
1
|
+
import { Breadcrumb } from '../breadcrumbs/BreadCrumbs';
|
2
|
+
import { default as React } from 'react';
|
3
|
+
import { ParentComponent, SoperioComponent } from '@soperio/react';
|
4
|
+
|
4
5
|
export interface PageTopBarProps extends SoperioComponent, ParentComponent {
|
5
6
|
title?: string;
|
6
7
|
breadcrumbs?: Breadcrumb[];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { SoperioComponent } from '@soperio/react';
|
2
|
+
|
3
3
|
export declare function StatusBadge({ status, ...props }: {
|
4
4
|
status: "draft" | "published";
|
5
5
|
} & SoperioComponent): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
import { ColumnDef } from
|
3
|
-
|
1
|
+
import { TileProps } from '@valerya/ui';
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
3
|
+
|
4
4
|
interface TableContainerProps extends TileProps {
|
5
5
|
initialPageSize?: number;
|
6
6
|
columns?: ColumnDef<any>[];
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import {
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
2
|
+
import { default as React } from 'react';
|
3
|
+
|
3
4
|
type TableContainerContextProps = {
|
4
5
|
showFilters?: boolean;
|
5
6
|
setShowFilters: (show: boolean) => void;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { DialogButtonProps } from '../buttons/DialogButton';
|
2
|
+
|
3
3
|
export declare function TableCreateButton({ children, ...props }: DialogButtonProps): JSX.Element;
|