Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,5 @@
export type ColumnDto = {
name: string;
title: string;
visible: boolean;
};
@@ -0,0 +1,13 @@
import { Colors } from "~/application/enums/shared/Colors";
export interface FilterablePropertyDto {
name: string;
title: string;
manual?: boolean;
condition?: string;
value?: string | null;
options?: { name: string; value: string; color?: Colors }[];
isNumber?: boolean;
isBoolean?: boolean;
hideSearch?: boolean;
}
@@ -0,0 +1,6 @@
import { FilterablePropertyDto } from "./FilterablePropertyDto";
export interface FiltersDto {
properties: FilterablePropertyDto[];
query?: string | null;
}
@@ -0,0 +1,15 @@
import { SortedByDto } from "./SortedByDto";
export interface PaginationDto {
page: number;
pageSize: number;
totalItems: number;
totalPages: number;
sortedBy?: SortedByDto[];
query?: string | undefined;
}
export interface PaginationData<T> {
items: T[];
pagination: PaginationDto | undefined;
}
@@ -0,0 +1,8 @@
export interface PaginationResultDto {
totalItems: number;
totalPages: number;
page: number;
pageSize: number;
sortedBy: any;
query: any;
}
@@ -0,0 +1,17 @@
import { Entity, Property } from "@toolctrl/db/prisma-browser";
import { EntityRelationshipWithDetails } from "~/utils/db/entities/entityRelationships.db.server";
export interface RowFiltersDto {
customRow: boolean;
entity: Entity;
query: string | null;
properties: {
property?: Property;
name?: string;
value: string | string[] | null;
condition?: string;
match?: "and" | "or";
parentEntity?: EntityRelationshipWithDetails;
}[];
tags: string[];
}
@@ -0,0 +1,19 @@
import { ReactNode } from "react";
export interface RowHeaderActionDto<T> {
title?: string | ReactNode;
onClick?: (idx: number, item: T) => void;
onClickRoute?: (idx: number, item: T) => string | undefined;
onClickRouteTarget?: undefined | "_blank";
disabled?: (item: T) => boolean | boolean;
hidden?: (item: T) => boolean;
destructive?: boolean;
firstColumn?: boolean;
renderTitle?: (item: T) => ReactNode;
renderIsDestructive?: (item: T) => boolean;
prefetch?: "intent" | "render" | "none";
confirmation?: (item: T) => {
title: string;
description: string;
};
}
@@ -0,0 +1,23 @@
import { ReactNode } from "react";
import { InputType } from "~/application/enums/shared/InputType";
export type RowHeaderDisplayDto<T> = {
title: string;
name?: string;
type?: InputType;
value: (item: T, idx: number) => any;
href?: (item: T) => string | undefined;
formattedValue?: (item: T, idx?: number) => string | ReactNode;
options?: { name: string; value: number | string; disabled?: boolean }[];
setValue?: (value: any, idx: number) => void;
editable?: (item: T, idx?: number) => boolean;
className?: string;
sortable?: boolean;
breakpoint?: "sm" | "md" | "lg" | "xl" | "2xl";
inputNumberStep?: string;
inputBorderless?: boolean;
inputOptional?: boolean;
sortBy?: string;
align?: "left" | "center" | "right";
hidden?: boolean;
};
@@ -0,0 +1,8 @@
import { Entity, Property } from "@toolctrl/db/prisma-browser";
export interface SortedByDto {
name: string;
direction: "asc" | "desc";
property?: Property;
entity?: Entity;
}