@teamprodevs/appsmith-custom-table 0.4.10 → 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.
Files changed (32) hide show
  1. package/dist/app.css +1 -1
  2. package/dist/app.js +136 -143
  3. package/dist/app.umd.cjs +2 -2
  4. package/dist/components/tanstack-table/body.d.ts +10 -0
  5. package/dist/components/tanstack-table/head.d.ts +8 -0
  6. package/dist/components/ui/badge.d.ts +9 -0
  7. package/dist/components/ui/button.d.ts +10 -0
  8. package/dist/components/ui/card.d.ts +9 -0
  9. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  10. package/dist/components/ui/table.d.ts +10 -0
  11. package/dist/components/ui/tooltip.d.ts +7 -0
  12. package/dist/index.d.ts +2 -5743
  13. package/dist/lib/utils.d.ts +2 -0
  14. package/dist/stories/AppsmithTable.stories.d.ts +7 -0
  15. package/dist/stories/ClientSide.d.ts +9 -0
  16. package/dist/stories/StyledTable.d.ts +6 -0
  17. package/dist/widgets/ClientTable/ClientTable.d.ts +3 -0
  18. package/dist/widgets/ClientTable/components/action-cell.d.ts +11 -0
  19. package/dist/widgets/ClientTable/components/index-cell.d.ts +6 -0
  20. package/dist/widgets/ClientTable/components/info-card.d.ts +11 -0
  21. package/dist/widgets/ClientTable/components/sorting-icon.d.ts +6 -0
  22. package/dist/widgets/ClientTable/components/table-body-cell.d.ts +5 -0
  23. package/dist/widgets/ClientTable/components/table-header-cell.d.ts +7 -0
  24. package/dist/widgets/ClientTable/constants/index.d.ts +11 -0
  25. package/dist/widgets/ClientTable/createColumns.d.ts +5705 -0
  26. package/dist/widgets/ClientTable/lib/formatDateString.d.ts +2 -0
  27. package/dist/widgets/ClientTable/lib/getConditionalStyling.d.ts +26 -0
  28. package/dist/widgets/ClientTable/lib/getNestedValue.d.ts +3 -0
  29. package/dist/widgets/ClientTable/lib/translations.d.ts +23 -0
  30. package/dist/widgets/ClientTable/types/index.d.ts +11472 -0
  31. package/dist/widgets/ClientTable/validator/validateTableModal.d.ts +9 -0
  32. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -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,9 @@
1
+ import { TableModel } from '../widgets/ClientTable/types';
2
+ export declare const generateData: (count: number) => {
3
+ id: number;
4
+ name: string;
5
+ email: string;
6
+ phone: string;
7
+ agent: string;
8
+ }[];
9
+ export declare const ClientSideProps: TableModel;
@@ -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,3 @@
1
+ import { TableModel } from './types';
2
+ declare function ClientTable(props: TableModel): import("react/jsx-runtime").JSX.Element;
3
+ export default ClientTable;
@@ -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,6 @@
1
+ import { Row } from '@tanstack/react-table';
2
+ type IndexCellProps<TData> = {
3
+ row: Row<TData>;
4
+ };
5
+ declare const IndexCell: <TData>({ row }: IndexCellProps<TData>) => import("react/jsx-runtime").JSX.Element;
6
+ export default IndexCell;
@@ -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,6 @@
1
+ import { SortDirection } from '@tanstack/react-table';
2
+ type SortingIconProps = {
3
+ sortOrder: SortDirection;
4
+ };
5
+ export declare const SortingIcon: ({ sortOrder }: SortingIconProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface TableCellHoverProps {
2
+ value: unknown;
3
+ }
4
+ declare const TableBodyCell: React.FC<TableCellHoverProps>;
5
+ export default TableBodyCell;
@@ -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;
@@ -0,0 +1,11 @@
1
+ export declare enum ItemSize {
2
+ "xs" = "xs",
3
+ "sm" = "sm",
4
+ "md" = "md",
5
+ "lg" = "lg"
6
+ }
7
+ export declare enum PinDirection {
8
+ left = "left",
9
+ right = "right"
10
+ }
11
+ export declare const PER_PAGE = 20;