@compill/admin 1.0.25
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 -0
- package/index.js +248 -0
- package/index.mjs +42211 -0
- package/index.umd.js +248 -0
- package/lib/SectionTitle.d.ts +3 -0
- package/lib/breadcrumbs/BreadCrumbs.d.ts +9 -0
- package/lib/buttons/DialogButton.d.ts +7 -0
- package/lib/buttons/IconButton.d.ts +5 -0
- package/lib/buttons/InvalidateButton.d.ts +7 -0
- package/lib/buttons/NavigateButton.d.ts +5 -0
- package/lib/buttons/PublishButton.d.ts +10 -0
- package/lib/buttons/UpdateButton.d.ts +3 -0
- package/lib/buttons/ViewButton.d.ts +6 -0
- package/lib/cells/OrderCell.d.ts +12 -0
- package/lib/json/DetailsView.d.ts +6 -0
- package/lib/json/EditItemView.d.ts +3 -0
- package/lib/json/MultiQueryWrapper.d.ts +6 -0
- package/lib/json/QueryWrapper.d.ts +7 -0
- package/lib/json/ScreenRenderer.d.ts +7 -0
- package/lib/json/ScreenTopBar.d.ts +15 -0
- package/lib/json/TabbedView.d.ts +4 -0
- package/lib/json/dialog/DialogRenderer.d.ts +12 -0
- package/lib/json/dialog/ItemDeleteDialog.d.ts +11 -0
- package/lib/json/dialog/ItemEditDialog.d.ts +32 -0
- package/lib/json/dialog/MultiQueryWrapperDialog.d.ts +8 -0
- package/lib/json/dialog/QueryWrapperDialog.d.ts +14 -0
- package/lib/json/table/TableRowActionsView.d.ts +12 -0
- package/lib/json/table/TableRowPublishPostButton.d.ts +9 -0
- package/lib/json/table/TableView.d.ts +4 -0
- package/lib/json/table/TableViewContext.d.ts +16 -0
- package/lib/json/table/useTableProps.d.ts +3 -0
- package/lib/json/types/DetailsView.d.ts +51 -0
- package/lib/json/types/EditItemDialog.d.ts +4 -0
- package/lib/json/types/MultiQueryWrapper.d.ts +18 -0
- package/lib/json/types/MultiQueryWrapperDialog.d.ts +13 -0
- package/lib/json/types/QueryWrapper.d.ts +27 -0
- package/lib/json/types/QueryWrapperDialog.d.ts +22 -0
- package/lib/json/types/ScreenConfig.d.ts +8 -0
- package/lib/json/types/TabbedView.d.ts +23 -0
- package/lib/json/types/TableView.d.ts +77 -0
- package/lib/modal/AttachDialog.d.ts +31 -0
- package/lib/modal/FormActionDialog.d.ts +23 -0
- package/lib/modal/ItemEditDialog.d.ts +33 -0
- package/lib/page/PageContainer.d.ts +3 -0
- package/lib/page/PageContentEditor.d.ts +5 -0
- package/lib/page/PageMain.d.ts +3 -0
- package/lib/page/PageQueryStateContainer.d.ts +12 -0
- package/lib/page/PageSectionTitle.d.ts +3 -0
- package/lib/page/PageSidebar.d.ts +3 -0
- package/lib/page/PageSidebarSection.d.ts +5 -0
- package/lib/page/PageStateContainer.d.ts +7 -0
- package/lib/page/PageSubSectionTitle.d.ts +3 -0
- package/lib/page/PageTitle.d.ts +3 -0
- package/lib/page/PageTopBar.d.ts +13 -0
- package/lib/status/StatusBadge.d.ts +5 -0
- package/lib/table/TableContainer.d.ts +3 -0
- package/lib/table/TableCreateButton.d.ts +3 -0
- package/lib/table/TableFilterButton.d.ts +3 -0
- package/lib/table/TableRowActionBar.d.ts +11 -0
- package/lib/table/TableRowDeleteButton.d.ts +3 -0
- package/lib/table/TableRowEditButton.d.ts +3 -0
- package/lib/table/TableRowNavigateButton.d.ts +5 -0
- package/lib/table/TableRowPublishPostButton.d.ts +9 -0
- package/lib/table/TableRowViewButton.d.ts +5 -0
- package/lib/table/TableTopBar.d.ts +8 -0
- package/package.json +13 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
import { CRUDAPI, CRUD_MODEL } from '../../../../api/src/index.ts';
|
2
|
+
import { ContainerProps } from "@valerya/ui";
|
3
|
+
import React from "react";
|
4
|
+
interface PageQueryContainerProps<T extends CRUD_MODEL> extends Omit<ContainerProps, "children"> {
|
5
|
+
queryId?: string;
|
6
|
+
api: CRUDAPI<T>;
|
7
|
+
children: (data: T) => React.ReactElement;
|
8
|
+
}
|
9
|
+
export declare const PageQueryStateContainer: <T extends CRUD_MODEL>(p: PageQueryContainerProps<T> & {
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
11
|
+
}) => React.ReactElement;
|
12
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { ContainerProps } from "@valerya/ui";
|
2
|
+
import React from "react";
|
3
|
+
interface PageStateContainerProps extends ContainerProps {
|
4
|
+
loading?: boolean;
|
5
|
+
}
|
6
|
+
export declare const PageStateContainer: React.ForwardRefExoticComponent<PageStateContainerProps & React.RefAttributes<HTMLDivElement>>;
|
7
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ParentComponent, SoperioComponent } from "@soperio/react";
|
2
|
+
import React from "react";
|
3
|
+
import { Breadcrumb } from "../breadcrumbs/BreadCrumbs";
|
4
|
+
export interface PageTopBarProps extends SoperioComponent, ParentComponent {
|
5
|
+
title?: string;
|
6
|
+
breadcrumbs?: Breadcrumb[];
|
7
|
+
}
|
8
|
+
export declare function PageTopBar({ title, breadcrumbs, children, ...props }: PageTopBarProps): JSX.Element;
|
9
|
+
export declare function PageTabbedTopBarProvider({ children }: ParentComponent): JSX.Element;
|
10
|
+
export declare function PageTabbedTopBar({ title, breadcrumbs, children, ...props }: PageTopBarProps): JSX.Element;
|
11
|
+
export declare function PageTopBarToolbar({ trackingRef, children }: {
|
12
|
+
trackingRef?: Element | null;
|
13
|
+
} & ParentComponent): React.ReactPortal | null;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ParentComponent, SoperioComponent } from "@soperio/react";
|
3
|
+
interface TableRowActionBarProps extends SoperioComponent, ParentComponent {
|
4
|
+
publishId?: string;
|
5
|
+
viewPath?: string;
|
6
|
+
navigatePath?: string;
|
7
|
+
editDialog?: (onClose: () => void) => React.ReactNode;
|
8
|
+
deleteDialog?: (onClose: () => void) => React.ReactNode;
|
9
|
+
}
|
10
|
+
export declare function TableRowActionBar({ publishId, viewPath, navigatePath, editDialog, deleteDialog, children, ...props }: TableRowActionBarProps): JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ButtonProps } from "@valerya/ui";
|
3
|
+
import { API } from '../../../../admin-api/src/index.ts';
|
4
|
+
export declare function TableRowPublishPostButton({ id, api, status, invalidateQueryKey, ...props }: {
|
5
|
+
id: string;
|
6
|
+
api: API<any>;
|
7
|
+
status: "draft" | "published";
|
8
|
+
invalidateQueryKey?: string[];
|
9
|
+
} & ButtonProps): JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ParentComponent, SoperioComponent } from "@soperio/react";
|
3
|
+
interface TableTopBarProps extends SoperioComponent, ParentComponent {
|
4
|
+
title?: string;
|
5
|
+
queryKey: string[];
|
6
|
+
}
|
7
|
+
export declare function TableTopBar({ title, queryKey, children, ...props }: TableTopBarProps): JSX.Element;
|
8
|
+
export {};
|