@teamprodevs/appsmith-custom-table 0.4.9 → 0.4.11
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/app.css +1 -1
- package/dist/app.js +575 -575
- package/dist/app.umd.cjs +8 -8
- package/dist/components/tanstack-table/body.d.ts +10 -0
- package/dist/components/tanstack-table/head.d.ts +8 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/index.d.ts +2 -5742
- package/dist/lib/utils.d.ts +2 -0
- package/dist/stories/AppsmithTable.stories.d.ts +7 -0
- package/dist/stories/ClientSide.d.ts +9 -0
- package/dist/stories/StyledTable.d.ts +6 -0
- package/dist/widgets/ClientTable/ClientTable.d.ts +3 -0
- package/dist/widgets/ClientTable/components/action-cell.d.ts +11 -0
- package/dist/widgets/ClientTable/components/index-cell.d.ts +6 -0
- package/dist/widgets/ClientTable/components/info-card.d.ts +11 -0
- package/dist/widgets/ClientTable/components/sorting-icon.d.ts +6 -0
- package/dist/widgets/ClientTable/components/table-body-cell.d.ts +5 -0
- package/dist/widgets/ClientTable/components/table-header-cell.d.ts +7 -0
- package/dist/widgets/ClientTable/constants/index.d.ts +11 -0
- package/dist/widgets/ClientTable/createColumns.d.ts +5705 -0
- package/dist/widgets/ClientTable/lib/formatDateString.d.ts +2 -0
- package/dist/widgets/ClientTable/lib/getConditionalStyling.d.ts +26 -0
- package/dist/widgets/ClientTable/lib/getNestedValue.d.ts +3 -0
- package/dist/widgets/ClientTable/lib/translations.d.ts +23 -0
- package/dist/widgets/ClientTable/types/index.d.ts +11472 -0
- package/dist/widgets/ClientTable/validator/validateTableModal.d.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as ClientTable } from '../widgets/ClientTable/ClientTable';
|
|
3
|
+
declare const meta: Meta<typeof ClientTable>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ClientTable>;
|
|
6
|
+
export declare const ClientSide: Story;
|
|
7
|
+
export declare const ColoredTable: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RowAction, Schema, TableModel } from '../widgets/ClientTable/types';
|
|
2
|
+
import { AppsmithTableStyles } from '../widgets/ClientTable/types/index';
|
|
3
|
+
export declare const postsSchema: Schema;
|
|
4
|
+
export declare const postsRowActions: RowAction[];
|
|
5
|
+
export declare const tableStyles: AppsmithTableStyles;
|
|
6
|
+
export declare const StyledTableProps: TableModel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RowAction, TriggerEvent } from '../types';
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { ItemSize } from '../constants';
|
|
4
|
+
type ActionCellProps<TData> = {
|
|
5
|
+
row: Row<TData>;
|
|
6
|
+
rowActions: RowAction[];
|
|
7
|
+
triggerEvent: TriggerEvent;
|
|
8
|
+
size?: ItemSize;
|
|
9
|
+
};
|
|
10
|
+
export declare function ActionCell<TData>({ row, rowActions, triggerEvent, }: ActionCellProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type InfoCardVariant = "info" | "warning" | "error" | "success";
|
|
3
|
+
interface InfoCardProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
message: string;
|
|
6
|
+
variant?: InfoCardVariant;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const InfoCard: React.FC<InfoCardProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Column } from '@tanstack/react-table';
|
|
2
|
+
type TableHeaderProps<TData> = {
|
|
3
|
+
column: Column<TData, any>;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
declare function TableHeader<TData>({ column, title }: TableHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TableHeader;
|