@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,26 @@
|
|
|
1
|
+
import { Row } from '@tanstack/react-table';
|
|
2
|
+
export declare enum RowStyleOperator {
|
|
3
|
+
GT = ">",
|
|
4
|
+
LT = "<",
|
|
5
|
+
GTE = ">=",
|
|
6
|
+
LTE = "<=",
|
|
7
|
+
EQ = "===",
|
|
8
|
+
EQ_LOOSE = "==",
|
|
9
|
+
NEQ = "!==",
|
|
10
|
+
NEQ_LOOSE = "!=",
|
|
11
|
+
CONTAINS = "contains",
|
|
12
|
+
STARTS_WITH = "startsWith",
|
|
13
|
+
ENDS_WITH = "endsWith",
|
|
14
|
+
IS_EMPTY = "isEmpty",
|
|
15
|
+
IS_NOT_EMPTY = "isNotEmpty"
|
|
16
|
+
}
|
|
17
|
+
export interface RowStyleRule {
|
|
18
|
+
column: string;
|
|
19
|
+
operator: RowStyleOperator | keyof typeof RowStyleOperator | string;
|
|
20
|
+
value?: string | number;
|
|
21
|
+
color: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const getConditionalRowStyle: <T extends object>({ row, rowStyleRules, }: {
|
|
24
|
+
row: Row<T>;
|
|
25
|
+
rowStyleRules?: RowStyleRule[];
|
|
26
|
+
}) => React.CSSProperties;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const defaultTranslations: {
|
|
2
|
+
readonly all: "All";
|
|
3
|
+
readonly min: "Min";
|
|
4
|
+
readonly max: "Max";
|
|
5
|
+
readonly filterPlaceholder: "Filter {headerText}...";
|
|
6
|
+
readonly filterAriaLabel: "Filter by {headerText}";
|
|
7
|
+
readonly true: "True";
|
|
8
|
+
readonly false: "False";
|
|
9
|
+
readonly dateFromAriaLabel: "From {headerText}";
|
|
10
|
+
readonly dateToAriaLabel: "To {headerText}";
|
|
11
|
+
readonly numberMinAriaLabel: "Minimum {headerText}";
|
|
12
|
+
readonly numberMaxAriaLabel: "Maximum {headerText}";
|
|
13
|
+
readonly goToFirstPage: "Go to first page";
|
|
14
|
+
readonly goToPreviousPage: "Go to previous page";
|
|
15
|
+
readonly goToNextPage: "Go to next page";
|
|
16
|
+
readonly goToLastPage: "Go to last page";
|
|
17
|
+
readonly error: "Error:";
|
|
18
|
+
readonly noData: "No data to display";
|
|
19
|
+
readonly pinRow: "Pin row";
|
|
20
|
+
readonly unpinRow: "Unpin row";
|
|
21
|
+
readonly pinToTop: "Pin to top";
|
|
22
|
+
readonly pinToBottom: "Pin to bottom";
|
|
23
|
+
};
|