laif-ds 0.2.23 → 0.2.24
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/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/app-multiple-select-dropdown.js +34 -34
- package/dist/components/ui/app-select.js +127 -124
- package/dist/components/ui/badge.js +13 -12
- package/dist/components/ui/button.js +20 -18
- package/dist/components/ui/calendar.js +6 -6
- package/dist/components/ui/checkbox.js +9 -9
- package/dist/components/ui/confirmer.js +45 -19
- package/dist/components/ui/context-menu.js +4 -4
- package/dist/components/ui/input-otp.js +16 -16
- package/dist/components/ui/input-selector.js +19 -19
- package/dist/components/ui/input.js +19 -19
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/pagination.js +90 -77
- package/dist/components/ui/radio-group.js +14 -14
- package/dist/components/ui/select.js +27 -27
- package/dist/components/ui/switch.js +8 -6
- package/dist/components/ui/table.js +16 -16
- package/dist/components/ui/tables/data-cross-table/data-cross-table.js +6 -6
- package/dist/components/ui/tables/data-table/components/data-table-actions.js +51 -0
- package/dist/components/ui/tables/data-table/components/data-table-advanced-filter.js +470 -0
- package/dist/components/ui/tables/data-table/components/data-table-body.js +340 -0
- package/dist/components/ui/tables/data-table/components/data-table-column-visibility.js +274 -0
- package/dist/components/ui/tables/data-table/components/data-table-filter-inputs.js +177 -0
- package/dist/components/ui/tables/data-table/components/data-table-filters.js +286 -0
- package/dist/components/ui/tables/data-table/components/data-table-pagination.js +131 -0
- package/dist/components/ui/tables/data-table/components/data-table-searchbar.js +112 -0
- package/dist/components/ui/tables/data-table/components/data-table-simple-filters.js +263 -0
- package/dist/components/ui/tables/data-table/components/data-table-sorting.js +128 -0
- package/dist/components/ui/tables/data-table/data-table-constants.js +58 -0
- package/dist/components/ui/tables/data-table/data-table-i18n.js +138 -0
- package/dist/components/ui/tables/data-table/data-table.js +549 -0
- package/dist/components/ui/tables/data-table/data-table.service.js +254 -0
- package/dist/components/ui/tabs.js +33 -33
- package/dist/components/ui/textarea.js +11 -11
- package/dist/components/ui/tooltip.js +10 -10
- package/dist/css-for-template.css +57 -0
- package/dist/index.d.ts +245 -75
- package/dist/index.js +64 -64
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +5 -3
- package/dist/components/ui/data-table.js +0 -461
- package/dist/components/ui/data-table.service.js +0 -62
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,6 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
|
45
45
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
46
46
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
47
47
|
import { SeparatorProps } from '@radix-ui/react-separator';
|
|
48
|
-
import { SetStateAction } from 'react';
|
|
49
48
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
50
49
|
import { Slot } from '@radix-ui/react-slot';
|
|
51
50
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
@@ -283,7 +282,7 @@ export declare function Badge({ className, variant, asChild, ...props }: React_2
|
|
|
283
282
|
}): JSX.Element;
|
|
284
283
|
|
|
285
284
|
export declare const badgeVariants: (props?: ({
|
|
286
|
-
variant?: "default" | "secondary" | "destructive" | "outline" | "outline-primary" | null | undefined;
|
|
285
|
+
variant?: "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | null | undefined;
|
|
287
286
|
} & ClassProp) | undefined) => string;
|
|
288
287
|
|
|
289
288
|
declare type BarItemDataType = RepeatDataType | NoRepeatDataType;
|
|
@@ -301,8 +300,9 @@ declare type BaseProps = {
|
|
|
301
300
|
wrpClassName?: string;
|
|
302
301
|
searchable?: boolean;
|
|
303
302
|
creatable?: boolean;
|
|
304
|
-
|
|
303
|
+
isSingleSelectClearable?: boolean;
|
|
305
304
|
disabled?: boolean;
|
|
305
|
+
groupBy?: keyof AppSelectOption;
|
|
306
306
|
maxSelected?: number;
|
|
307
307
|
showChipsInsteadOfCount?: boolean;
|
|
308
308
|
size?: SelectSizeType_2;
|
|
@@ -335,7 +335,7 @@ export declare interface ButtonProps extends React_2.ComponentProps<"button">, V
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
export declare const buttonVariants: (props?: ({
|
|
338
|
-
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "outline-primary" | "ghost" | null | undefined;
|
|
338
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | "ghost-destructive" | "ghost-accent" | null | undefined;
|
|
339
339
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
340
340
|
} & ClassProp) | undefined) => string;
|
|
341
341
|
|
|
@@ -640,6 +640,7 @@ declare interface ConfirmOptions {
|
|
|
640
640
|
actionText?: React.ReactNode;
|
|
641
641
|
CancelProps?: React.ComponentProps<typeof AlertDialogCancel>;
|
|
642
642
|
ActionProps?: React.ComponentProps<typeof Button>;
|
|
643
|
+
variant?: "default" | "destructive";
|
|
643
644
|
}
|
|
644
645
|
|
|
645
646
|
export declare function ContextMenu({ ...props }: React_2.ComponentProps<typeof ContextMenuPrimitive.Root>): JSX.Element;
|
|
@@ -798,7 +799,171 @@ export declare enum DataRepeatTypes {
|
|
|
798
799
|
MONTH = "MONTH"
|
|
799
800
|
}
|
|
800
801
|
|
|
801
|
-
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange,
|
|
802
|
+
export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, actions, hidePagination, hideActionsRow, i18n, maxSortedColumns, initialState, serverMode: isServerSide, serverConfig: resolvedServerConfig, disableAutoPageSize, }: DataTableProps<TData, TValue>): JSX.Element;
|
|
803
|
+
|
|
804
|
+
export declare interface DataTableActions {
|
|
805
|
+
label: string;
|
|
806
|
+
icon: IconName;
|
|
807
|
+
onClick: () => void;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export declare interface DataTableAdvancedFilter {
|
|
811
|
+
id: string;
|
|
812
|
+
rootGroup: IAdvancedFilterGroup;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
declare interface DataTableAndGroup {
|
|
816
|
+
_and: DataTableFilterForSearch[];
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
export declare interface DataTableBadgeFilter {
|
|
820
|
+
id: string;
|
|
821
|
+
columnId: string;
|
|
822
|
+
columnLabel: string;
|
|
823
|
+
columnType: IColumnType;
|
|
824
|
+
operator: FilterOperator;
|
|
825
|
+
value?: string | number | boolean | Array<string | number>;
|
|
826
|
+
listOptions?: AppSelectOption[];
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
export declare interface DataTableFieldCondition {
|
|
830
|
+
[field: string]: {
|
|
831
|
+
operator: FilterOperator;
|
|
832
|
+
value: string | number | boolean | (string | number | boolean)[];
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export declare type DataTableFilterForSearch = DataTableFieldCondition | DataTableOrGroup | DataTableAndGroup;
|
|
837
|
+
|
|
838
|
+
export declare interface DataTableI18n {
|
|
839
|
+
search: string;
|
|
840
|
+
searchPlaceholder: string;
|
|
841
|
+
clearSearch: string;
|
|
842
|
+
reset: string;
|
|
843
|
+
loading: string;
|
|
844
|
+
notFoundMessage: string;
|
|
845
|
+
searchTooltipLabel: string;
|
|
846
|
+
selectAll: string;
|
|
847
|
+
selectRow: string;
|
|
848
|
+
filters: {
|
|
849
|
+
addFilter: string;
|
|
850
|
+
advancedFilter: string;
|
|
851
|
+
addFilterRule: string;
|
|
852
|
+
addFilterGroup: string;
|
|
853
|
+
deleteFilter: string;
|
|
854
|
+
deleteCondition: string;
|
|
855
|
+
deleteGroup: string;
|
|
856
|
+
duplicateCondition: string;
|
|
857
|
+
duplicateGroup: string;
|
|
858
|
+
operator: string;
|
|
859
|
+
value: string;
|
|
860
|
+
searchFilters: string;
|
|
861
|
+
searchPlaceholder: string;
|
|
862
|
+
selectDate: string;
|
|
863
|
+
where: string;
|
|
864
|
+
and: string;
|
|
865
|
+
or: string;
|
|
866
|
+
filterNotSupported: string;
|
|
867
|
+
column: string;
|
|
868
|
+
filter: string;
|
|
869
|
+
};
|
|
870
|
+
stringOperators: {
|
|
871
|
+
eq: string;
|
|
872
|
+
ne: string;
|
|
873
|
+
like: string;
|
|
874
|
+
nLike: string;
|
|
875
|
+
startsWith: string;
|
|
876
|
+
endsWith: string;
|
|
877
|
+
eqNull: string;
|
|
878
|
+
nEqNull: string;
|
|
879
|
+
};
|
|
880
|
+
numberOperators: {
|
|
881
|
+
eq: string;
|
|
882
|
+
ne: string;
|
|
883
|
+
lt: string;
|
|
884
|
+
le: string;
|
|
885
|
+
gt: string;
|
|
886
|
+
ge: string;
|
|
887
|
+
eqNull: string;
|
|
888
|
+
nEqNull: string;
|
|
889
|
+
};
|
|
890
|
+
booleanOperators: {
|
|
891
|
+
eq: string;
|
|
892
|
+
ne: string;
|
|
893
|
+
checked: string;
|
|
894
|
+
unchecked: string;
|
|
895
|
+
true: string;
|
|
896
|
+
false: string;
|
|
897
|
+
};
|
|
898
|
+
dateOperators: {
|
|
899
|
+
is: string;
|
|
900
|
+
isBefore: string;
|
|
901
|
+
isAfter: string;
|
|
902
|
+
eqNull: string;
|
|
903
|
+
nEqNull: string;
|
|
904
|
+
};
|
|
905
|
+
dateTimeOperators: {
|
|
906
|
+
isBefore: string;
|
|
907
|
+
isAfter: string;
|
|
908
|
+
eqNull: string;
|
|
909
|
+
nEqNull: string;
|
|
910
|
+
};
|
|
911
|
+
listOperators: {
|
|
912
|
+
is: string;
|
|
913
|
+
isNot: string;
|
|
914
|
+
contains: string;
|
|
915
|
+
doesNotContain: string;
|
|
916
|
+
eqNull: string;
|
|
917
|
+
nEqNull: string;
|
|
918
|
+
};
|
|
919
|
+
sorting: {
|
|
920
|
+
sort: string;
|
|
921
|
+
sorting: string;
|
|
922
|
+
column: string;
|
|
923
|
+
order: string;
|
|
924
|
+
sortBy: string;
|
|
925
|
+
ascending: string;
|
|
926
|
+
descending: string;
|
|
927
|
+
clearSort: string;
|
|
928
|
+
resetSorting: string;
|
|
929
|
+
addSort: string;
|
|
930
|
+
};
|
|
931
|
+
columnVisibility: {
|
|
932
|
+
visibleColumns: string;
|
|
933
|
+
hiddenColumns: string;
|
|
934
|
+
hideColumn: string;
|
|
935
|
+
showColumn: string;
|
|
936
|
+
hideAll: string;
|
|
937
|
+
showAll: string;
|
|
938
|
+
};
|
|
939
|
+
pagination: {
|
|
940
|
+
previous: string;
|
|
941
|
+
next: string;
|
|
942
|
+
first: string;
|
|
943
|
+
last: string;
|
|
944
|
+
page: string;
|
|
945
|
+
of: string;
|
|
946
|
+
rows: string;
|
|
947
|
+
pages: string;
|
|
948
|
+
rowsPerPage: string;
|
|
949
|
+
goToPage: string;
|
|
950
|
+
showing: string;
|
|
951
|
+
to: string;
|
|
952
|
+
entries: string;
|
|
953
|
+
};
|
|
954
|
+
tableActions: {
|
|
955
|
+
actions: string;
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
declare interface DataTableOrGroup {
|
|
960
|
+
_or: DataTableFilterForSearch[];
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
export declare interface DataTablePagination {
|
|
964
|
+
pageIndex: number;
|
|
965
|
+
pageSize: number;
|
|
966
|
+
}
|
|
802
967
|
|
|
803
968
|
export declare interface DataTableProps<TData, TValue> {
|
|
804
969
|
columns: ColumnDef<TData, TValue>[];
|
|
@@ -810,14 +975,34 @@ export declare interface DataTableProps<TData, TValue> {
|
|
|
810
975
|
onRowSelectionChange?: OnChangeFn<Record<string, boolean>>;
|
|
811
976
|
checkable?: boolean;
|
|
812
977
|
onCheckedRowsChange?: (checkedRows: TData[]) => void;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
978
|
+
actions?: DataTableActions[];
|
|
979
|
+
hidePagination?: boolean;
|
|
980
|
+
hideActionsRow?: boolean;
|
|
981
|
+
i18n?: DataTableI18n;
|
|
982
|
+
maxSortedColumns?: number;
|
|
983
|
+
initialState?: DataTableState;
|
|
984
|
+
serverMode?: boolean;
|
|
985
|
+
serverConfig?: DataTableServerConfig;
|
|
986
|
+
disableAutoPageSize?: boolean;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export declare interface DataTableServerConfig {
|
|
990
|
+
totalItems: number;
|
|
991
|
+
onStateChange: (state: ServerState) => void;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export declare interface DataTableSorting {
|
|
995
|
+
sort_by: string[];
|
|
996
|
+
sort_order: ("asc" | "desc")[];
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export declare interface DataTableState {
|
|
1000
|
+
filters?: IFilterState;
|
|
1001
|
+
sorting?: DataTableSorting;
|
|
1002
|
+
pagination?: DataTablePagination;
|
|
1003
|
+
searchbarFilter?: string;
|
|
1004
|
+
computedFilter?: DataTableFilterForSearch;
|
|
1005
|
+
computedSorting?: DataTableSorting;
|
|
821
1006
|
}
|
|
822
1007
|
|
|
823
1008
|
export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, }: DatePickerProps): JSX.Element;
|
|
@@ -925,6 +1110,8 @@ declare interface FileUploaderProps {
|
|
|
925
1110
|
maxFiles?: number;
|
|
926
1111
|
}
|
|
927
1112
|
|
|
1113
|
+
declare type FilterOperator = "array_overlap" | "checked" | "date_after" | "date_before" | "date_time_after" | "date_time_before" | "ends_with" | "eq" | "eq_null" | "ge" | "gt" | "le" | "like" | "lt" | "n_array_overlap" | "n_eq_null" | "n_like" | "ne" | "starts_with" | "unchecked";
|
|
1114
|
+
|
|
928
1115
|
export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
|
|
929
1116
|
|
|
930
1117
|
export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
|
|
@@ -1022,9 +1209,24 @@ export declare function HoverCardContent({ className, align, sideOffset, ...prop
|
|
|
1022
1209
|
|
|
1023
1210
|
export declare function HoverCardTrigger({ ...props }: React_2.ComponentProps<typeof HoverCardPrimitive.Trigger>): JSX.Element;
|
|
1024
1211
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1212
|
+
declare interface IAdvancedFilterCondition {
|
|
1213
|
+
id: string;
|
|
1214
|
+
columnId: string;
|
|
1215
|
+
columnLabel: string;
|
|
1216
|
+
columnType: IColumnType;
|
|
1217
|
+
operator: FilterOperator;
|
|
1218
|
+
value?: string | number | boolean | Array<string | number>;
|
|
1219
|
+
listOptions?: AppSelectOption[];
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
declare interface IAdvancedFilterGroup {
|
|
1223
|
+
id: string;
|
|
1224
|
+
logicalOperator: LogicalOperator;
|
|
1225
|
+
conditions: IAdvancedFilterCondition[];
|
|
1226
|
+
groups?: IAdvancedFilterGroup[];
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
declare type IColumnType = "number" | "string" | "boolean" | "date" | "datetime" | "list_single_select" | "list_multi_select" | "other";
|
|
1028
1230
|
|
|
1029
1231
|
/**
|
|
1030
1232
|
* Componente Icon che renderizza un'icona da lucide-react
|
|
@@ -1054,41 +1256,18 @@ declare interface IconProps {
|
|
|
1054
1256
|
|
|
1055
1257
|
declare type IconSize = keyof typeof sizeMap;
|
|
1056
1258
|
|
|
1057
|
-
export declare interface IDatatablePaginationPlaceholders {
|
|
1058
|
-
rows?: string;
|
|
1059
|
-
pages?: string;
|
|
1060
|
-
first?: string;
|
|
1061
|
-
previous?: string;
|
|
1062
|
-
next?: string;
|
|
1063
|
-
last?: string;
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
export declare interface IDatatableSizes {
|
|
1067
|
-
rowHeight?: number;
|
|
1068
|
-
headerHeight?: number;
|
|
1069
|
-
containerHeight?: number;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
export declare interface IDropdownFilterItem {
|
|
1073
|
-
label: string;
|
|
1074
|
-
value: string;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
export declare interface IDropdownFilterProp {
|
|
1078
|
-
column: string;
|
|
1079
|
-
placeholder: string;
|
|
1080
|
-
label?: string;
|
|
1081
|
-
innerFiltersMode?: ELogicalFilterOperator;
|
|
1082
|
-
items: IDropdownFilterItem[];
|
|
1083
|
-
filterFn?: (rowValue: unknown, filterValue: string[]) => boolean;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
1259
|
declare type IFilePreviewCallbackReturn = File | {
|
|
1087
1260
|
name: string;
|
|
1088
1261
|
url: string;
|
|
1089
1262
|
type?: string;
|
|
1090
1263
|
};
|
|
1091
1264
|
|
|
1265
|
+
declare interface IFilterState {
|
|
1266
|
+
filterBadges?: DataTableBadgeFilter[];
|
|
1267
|
+
advancedFilterBadge?: DataTableAdvancedFilter;
|
|
1268
|
+
searchbarFilter?: string;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1092
1271
|
export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
1093
1272
|
|
|
1094
1273
|
export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
|
|
@@ -1131,38 +1310,10 @@ declare interface InterruptPromptProps {
|
|
|
1131
1310
|
close: () => void;
|
|
1132
1311
|
}
|
|
1133
1312
|
|
|
1134
|
-
export declare interface IPaginationProps {
|
|
1135
|
-
pageIndex: number;
|
|
1136
|
-
pageSize: number;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
export declare interface ISearchBarProps {
|
|
1140
|
-
placeholder?: string;
|
|
1141
|
-
columns: string[];
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export declare interface IServerFilterProps {
|
|
1145
|
-
searchbarFilters?: {
|
|
1146
|
-
value: string;
|
|
1147
|
-
columns: string[];
|
|
1148
|
-
};
|
|
1149
|
-
dropdownFilters?: {
|
|
1150
|
-
[column: string]: {
|
|
1151
|
-
logic: ELogicalFilterOperator;
|
|
1152
|
-
value: string[];
|
|
1153
|
-
column: string;
|
|
1154
|
-
};
|
|
1155
|
-
};
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
export declare interface IServerOptionsProps {
|
|
1159
|
-
pagination: IPaginationProps;
|
|
1160
|
-
filters?: IServerFilterProps;
|
|
1161
|
-
disableAutoPageSize?: boolean;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
1313
|
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
1165
1314
|
|
|
1315
|
+
declare type LogicalOperator = "AND" | "OR";
|
|
1316
|
+
|
|
1166
1317
|
export declare function MarkdownRenderer({ children }: MarkdownRendererProps): JSX.Element;
|
|
1167
1318
|
|
|
1168
1319
|
declare interface MarkdownRendererProps {
|
|
@@ -1598,6 +1749,13 @@ export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof
|
|
|
1598
1749
|
|
|
1599
1750
|
export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
|
|
1600
1751
|
|
|
1752
|
+
declare interface ServerState {
|
|
1753
|
+
filters?: IFilterState;
|
|
1754
|
+
pagination: DataTablePagination;
|
|
1755
|
+
computedFilter?: DataTableFilterForSearch;
|
|
1756
|
+
computedSorting?: DataTableSorting;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1601
1759
|
export declare function Sheet({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
1602
1760
|
|
|
1603
1761
|
export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
@@ -1970,3 +2128,15 @@ export declare interface WeeklyCalendarProps {
|
|
|
1970
2128
|
}
|
|
1971
2129
|
|
|
1972
2130
|
export { }
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
declare module "@tanstack/react-table" {
|
|
2134
|
+
interface ColumnMeta<TData extends unknown, TValue> {
|
|
2135
|
+
type: IColumnType;
|
|
2136
|
+
sortable?: boolean;
|
|
2137
|
+
filterable?: boolean;
|
|
2138
|
+
searchable?: boolean;
|
|
2139
|
+
pinned?: "left" | "right";
|
|
2140
|
+
listOptions?: AppSelectOption[];
|
|
2141
|
+
}
|
|
2142
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -66,22 +66,22 @@ import { AppSidebar as ta } from "./components/ui/app-sidebar.js";
|
|
|
66
66
|
import { Chat as na, ChatContainer as ia, ChatForm as pa, ChatMessages as ma } from "./components/ui/chat.js";
|
|
67
67
|
import { ChatMessage as ua } from "./components/ui/chat-message.js";
|
|
68
68
|
import { Confirmer as da, confirm as ga } from "./components/ui/confirmer.js";
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
69
|
+
import { FilePreviewer as ba, previewFileModal as fa, safePreviewFileModal as sa } from "./components/ui/file-previewer.js";
|
|
70
|
+
import { DataRepeatTypes as Ma } from "./components/ui/gantt/enums/DataRepeatTimes.js";
|
|
71
|
+
import { DragStepSizes as Ta } from "./components/ui/gantt/enums/DragStepSizes.js";
|
|
72
|
+
import { GanttConsts as Aa } from "./components/ui/gantt/constants/GanttConsts.js";
|
|
73
|
+
import { GanttDimensions as Pa } from "./components/ui/gantt/enums/GanttDimensions.js";
|
|
74
|
+
import { InterruptPrompt as va } from "./components/ui/interrupt-prompt.js";
|
|
75
|
+
import { MarkdownRenderer as wa } from "./components/ui/markdown-renderer.js";
|
|
76
|
+
import { MessageInput as La } from "./components/ui/message-input.js";
|
|
77
|
+
import { MessageList as Ra } from "./components/ui/message-list.js";
|
|
78
|
+
import { NavigationMenu as ka, NavigationMenuContent as ya, NavigationMenuIndicator as Na, NavigationMenuItem as za, NavigationMenuLink as Ea, NavigationMenuList as Va, NavigationMenuTrigger as Oa, NavigationMenuViewport as Ua } from "./components/ui/navigation-menu.js";
|
|
79
|
+
import { Sidebar as ja, SidebarContent as qa, SidebarFooter as Ja, SidebarGroup as Ka, SidebarGroupAction as Qa, SidebarGroupContent as Xa, SidebarGroupLabel as Ya, SidebarHeader as Za, SidebarInput as _a, SidebarInset as $a, SidebarMenu as en, SidebarMenuAction as rn, SidebarMenuBadge as on, SidebarMenuButton as tn, SidebarMenuItem as an, SidebarMenuSkeleton as nn, SidebarMenuSub as pn, SidebarMenuSubButton as mn, SidebarMenuSubItem as ln, SidebarProvider as un, SidebarRail as xn, SidebarSeparator as dn, SidebarTrigger as gn, useSidebar as Cn } from "./components/ui/sidebar.js";
|
|
80
|
+
import { DataCrossTable as fn } from "./components/ui/tables/data-cross-table/data-cross-table.js";
|
|
81
|
+
import { DataCrossTableButtonsGroup as Sn } from "./components/ui/tables/data-cross-table/data-cross-table-buttons.js";
|
|
82
|
+
import { DataCrossTableProvider as cn } from "./components/ui/tables/data-cross-table/data-cross-table-context.js";
|
|
83
|
+
import { DataTable as Dn } from "./components/ui/tables/data-table/data-table.js";
|
|
84
|
+
import { ELogicalFilterOperator as In } from "./components/ui/tables/data-table/data-table-constants.js";
|
|
85
85
|
import { WeeklyCalendar as hn } from "./components/ui/weekly-calendar/weekly-calendar.js";
|
|
86
86
|
import { cn as Fn, downloadFile as wn, hexContrast as Gn, hexToRgba as Ln, previewFile as Bn, stringToHexColor as Rn } from "./lib/utils.js";
|
|
87
87
|
import { AppStepper as kn } from "./components/ui/app-stepper.js";
|
|
@@ -182,11 +182,11 @@ export {
|
|
|
182
182
|
ir as ContextMenuSubTrigger,
|
|
183
183
|
pr as ContextMenuTrigger,
|
|
184
184
|
D as CopyButton,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
fn as DataCrossTable,
|
|
186
|
+
Sn as DataCrossTableButtonsGroup,
|
|
187
|
+
cn as DataCrossTableProvider,
|
|
188
|
+
Ma as DataRepeatTypes,
|
|
189
|
+
Dn as DataTable,
|
|
190
190
|
lr as DatePicker,
|
|
191
191
|
gr as Dialog,
|
|
192
192
|
Cr as DialogContent,
|
|
@@ -195,7 +195,7 @@ export {
|
|
|
195
195
|
sr as DialogHeader,
|
|
196
196
|
Sr as DialogTitle,
|
|
197
197
|
Mr as DialogTrigger,
|
|
198
|
-
|
|
198
|
+
Ta as DragStepSizes,
|
|
199
199
|
Tr as Drawer,
|
|
200
200
|
Dr as DrawerContent,
|
|
201
201
|
Ar as DrawerDescription,
|
|
@@ -209,9 +209,9 @@ export {
|
|
|
209
209
|
ht as DropdownMenuLabel,
|
|
210
210
|
vt as DropdownMenuSeparator,
|
|
211
211
|
Ft as DropdownMenuTrigger,
|
|
212
|
-
|
|
212
|
+
In as ELogicalFilterOperator,
|
|
213
213
|
Bt as FilePreview,
|
|
214
|
-
|
|
214
|
+
ba as FilePreviewer,
|
|
215
215
|
Gt as FileUploader,
|
|
216
216
|
wr as Form,
|
|
217
217
|
Gr as FormControl,
|
|
@@ -221,8 +221,8 @@ export {
|
|
|
221
221
|
Hr as FormLabel,
|
|
222
222
|
kr as FormMessage,
|
|
223
223
|
o as Gantt,
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
Aa as GanttConsts,
|
|
225
|
+
Pa as GanttDimensions,
|
|
226
226
|
zr as HoverCard,
|
|
227
227
|
Er as HoverCardContent,
|
|
228
228
|
Vr as HoverCardTrigger,
|
|
@@ -232,9 +232,9 @@ export {
|
|
|
232
232
|
w as InputOTPGroup,
|
|
233
233
|
G as InputOTPSlot,
|
|
234
234
|
xr as InputSelector,
|
|
235
|
-
|
|
235
|
+
va as InterruptPrompt,
|
|
236
236
|
B as Label,
|
|
237
|
-
|
|
237
|
+
wa as MarkdownRenderer,
|
|
238
238
|
Ur as Menubar,
|
|
239
239
|
Wr as MenubarCheckboxItem,
|
|
240
240
|
jr as MenubarContent,
|
|
@@ -251,17 +251,17 @@ export {
|
|
|
251
251
|
ro as MenubarSubContent,
|
|
252
252
|
oo as MenubarSubTrigger,
|
|
253
253
|
to as MenubarTrigger,
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
La as MessageInput,
|
|
255
|
+
Ra as MessageList,
|
|
256
256
|
no as MultipleSelector,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
257
|
+
ka as NavigationMenu,
|
|
258
|
+
ya as NavigationMenuContent,
|
|
259
|
+
Na as NavigationMenuIndicator,
|
|
260
|
+
za as NavigationMenuItem,
|
|
261
|
+
Ea as NavigationMenuLink,
|
|
262
|
+
Va as NavigationMenuList,
|
|
263
|
+
Oa as NavigationMenuTrigger,
|
|
264
|
+
Ua as NavigationMenuViewport,
|
|
265
265
|
po as Pagination,
|
|
266
266
|
mo as PaginationContent,
|
|
267
267
|
lo as PaginationEllipsis,
|
|
@@ -297,29 +297,29 @@ export {
|
|
|
297
297
|
Uo as SheetHeader,
|
|
298
298
|
Wo as SheetTitle,
|
|
299
299
|
jo as SheetTrigger,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
300
|
+
ja as Sidebar,
|
|
301
|
+
qa as SidebarContent,
|
|
302
|
+
Ja as SidebarFooter,
|
|
303
|
+
Ka as SidebarGroup,
|
|
304
|
+
Qa as SidebarGroupAction,
|
|
305
|
+
Xa as SidebarGroupContent,
|
|
306
|
+
Ya as SidebarGroupLabel,
|
|
307
|
+
Za as SidebarHeader,
|
|
308
|
+
_a as SidebarInput,
|
|
309
|
+
$a as SidebarInset,
|
|
310
|
+
en as SidebarMenu,
|
|
311
|
+
rn as SidebarMenuAction,
|
|
312
|
+
on as SidebarMenuBadge,
|
|
313
|
+
tn as SidebarMenuButton,
|
|
314
|
+
an as SidebarMenuItem,
|
|
315
|
+
nn as SidebarMenuSkeleton,
|
|
316
|
+
pn as SidebarMenuSub,
|
|
317
|
+
mn as SidebarMenuSubButton,
|
|
318
|
+
ln as SidebarMenuSubItem,
|
|
319
|
+
un as SidebarProvider,
|
|
320
|
+
xn as SidebarRail,
|
|
321
|
+
dn as SidebarSeparator,
|
|
322
|
+
gn as SidebarTrigger,
|
|
323
323
|
O as Skeleton,
|
|
324
324
|
st as Slider,
|
|
325
325
|
W as Switch,
|
|
@@ -356,8 +356,8 @@ export {
|
|
|
356
356
|
Gn as hexContrast,
|
|
357
357
|
Ln as hexToRgba,
|
|
358
358
|
Bn as previewFile,
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
fa as previewFileModal,
|
|
360
|
+
sa as safePreviewFileModal,
|
|
361
361
|
Rn as stringToHexColor,
|
|
362
362
|
Q as toggleVariants,
|
|
363
363
|
Nn as useAudioRecording,
|
|
@@ -368,5 +368,5 @@ export {
|
|
|
368
368
|
Xt as useEditorModal,
|
|
369
369
|
yr as useFormField,
|
|
370
370
|
Kn as useIsMobile,
|
|
371
|
-
|
|
371
|
+
Cn as useSidebar
|
|
372
372
|
};
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "tailwindcss";@import "tw-animate-css"
|
|
1
|
+
@import "tailwindcss";@import "tw-animate-css";@import "./laif-styles.css";@import "./css-for-template.css";.dark,:root{--d-radius:6px;--d-background:var(--colors--surface--background);--d-foreground:var(--colors--text--body-primary);--d-card:var(--colors--surface--primary);--d-card-foreground:var(--colors--text--body-primary);--d-popover:var(--colors--surface--primary);--d-popover-foreground:var(--colors--text--body-primary);--d-primary:var(--colors--surface--accent-primary);--d-primary-foreground:var(--colors--text--on-accent);--d-secondary:var(--colors--surface--secondary);--d-secondary-foreground:var(--colors--text--body-primary);--d-muted:var(--colors--surface--secondary);--d-muted-foreground:var(--colors--text--body-secondary);--d-accent:var(--colors--surface--tertiary);--d-accent-foreground:var(--colors--text--body-primary);--d-destructive:var(--colors--surface--danger);--d-destructive-foreground:var(--colors--text--on-danger);--d-border:var(--colors--border--subtle);--d-input:var(--colors--surface--primary);--d-ring:var(--colors--border--subtle);--d-chart-1:var(--colors--surface--accent-primary);--d-chart-2:var(--colors--surface--success);--d-chart-3:var(--colors--surface--warning);--d-chart-4:var(--colors--text--warning);--d-chart-5:var(--colors--surface--danger);--d-sidebar:var(--colors--surface--background);--d-sidebar-foreground:var(--colors--text--body-primary);--d-sidebar-primary:var(--colors--surface--accent-primary);--d-sidebar-primary-foreground:var(--colors--text--on-accent);--d-sidebar-accent:color-mix(in srgb,var(--colors--surface--tertiary) 40%,#0000);--d-sidebar-accent-foreground:var(--colors--text--body-primary);--d-sidebar-border:var(--colors--border--subtle);--d-sidebar-ring:var(--colors--surface--accent-primary)}.tangerine{--d-background:oklch(0.26 0.03 262.67);--d-foreground:oklch(0.92 0 0);--d-card:oklch(0.31 0.03 268.64);--d-card-foreground:oklch(0.92 0 0);--d-popover:oklch(0.29 0.02 268.4);--d-popover-foreground:oklch(0.92 0 0);--d-primary:oklch(0.64 0.17 36.44);--d-primary-foreground:oklch(1 0 0);--d-secondary:oklch(0.31 0.03 266.71);--d-secondary-foreground:oklch(0.92 0 0);--d-muted:oklch(0.31 0.03 266.71);--d-muted-foreground:oklch(0.72 0 0);--d-accent:oklch(0.34 0.06 267.59);--d-accent-foreground:oklch(0.88 0.06 254.13);--d-destructive:oklch(0.64 0.21 25.33);--d-destructive-foreground:oklch(1 0 0);--d-border:oklch(0.38 0.03 269.73);--d-input:oklch(0.38 0.03 269.73);--d-ring:oklch(0.64 0.17 36.44);--d-chart-1:oklch(0.72 0.06 248.68);--d-chart-2:oklch(0.77 0.09 34.19);--d-chart-3:oklch(0.58 0.08 254.16);--d-chart-4:oklch(0.5 0.08 259.49);--d-chart-5:oklch(0.42 0.1 264.03);--d-sidebar:oklch(0.31 0.03 267.74);--d-sidebar-foreground:oklch(0.92 0 0);--d-sidebar-primary:oklch(0.64 0.17 36.44);--d-sidebar-primary-foreground:oklch(1 0 0);--d-sidebar-accent:oklch(0.34 0.06 267.59);--d-sidebar-accent-foreground:oklch(0.88 0.06 254.13);--d-sidebar-border:oklch(0.38 0.03 269.73);--d-sidebar-ring:oklch(0.64 0.17 36.44);--d-font-sans:Inter,sans-serif;--d-font-serif:Source Serif 4,serif;--d-font-mono:JetBrains Mono,monospace;--d-radius:0.75rem;--d-shadow-2xs:0px 1px 3px 0px #0000000d;--d-shadow-xs:0px 1px 3px 0px #0000000d;--d-shadow-sm:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow:0px 1px 3px 0px #0000001a,0px 1px 2px -1px #0000001a;--d-shadow-md:0px 1px 3px 0px #0000001a,0px 2px 4px -1px #0000001a;--d-shadow-lg:0px 1px 3px 0px #0000001a,0px 4px 6px -1px #0000001a;--d-shadow-xl:0px 1px 3px 0px #0000001a,0px 8px 10px -1px #0000001a;--d-shadow-2xl:0px 1px 3px 0px #00000040}.claymorphism{--d-background:#1e1b18;--d-foreground:#e2e8f0;--d-card:#2c2825;--d-card-foreground:#e2e8f0;--d-popover:#2c2825;--d-popover-foreground:#e2e8f0;--d-primary:#818cf8;--d-primary-foreground:#1e1b18;--d-secondary:#3a3633;--d-secondary-foreground:#d1d5db;--d-muted:#2c2825;--d-muted-foreground:#9ca3af;--d-accent:#484441;--d-accent-foreground:#d1d5db;--d-destructive:#ef4444;--d-destructive-foreground:#1e1b18;--d-border:#3a3633;--d-input:#3a3633;--d-ring:#818cf8;--d-chart-1:#818cf8;--d-chart-2:#6366f1;--d-chart-3:#4f46e5;--d-chart-4:#4338ca;--d-chart-5:#3730a3;--d-sidebar:#3a3633;--d-sidebar-foreground:#e2e8f0;--d-sidebar-primary:#818cf8;--d-sidebar-primary-foreground:#1e1b18;--d-sidebar-accent:#484441;--d-sidebar-accent-foreground:#d1d5db;--d-sidebar-border:#3a3633;--d-sidebar-ring:#818cf8;--d-font-sans:Plus Jakarta Sans,sans-serif;--d-font-serif:Lora,serif;--d-font-mono:Roboto Mono,monospace;--d-radius:1.25rem;--d-shadow-2xs:2px 2px 10px 4px #00000017;--d-shadow-xs:2px 2px 10px 4px #00000017;--d-shadow-sm:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow:2px 2px 10px 4px #0000002e,2px 1px 2px 3px #0000002e;--d-shadow-md:2px 2px 10px 4px #0000002e,2px 2px 4px 3px #0000002e;--d-shadow-lg:2px 2px 10px 4px #0000002e,2px 4px 6px 3px #0000002e;--d-shadow-xl:2px 2px 10px 4px #0000002e,2px 8px 10px 3px #0000002e;--d-shadow-2xl:2px 2px 10px 4px #00000073}
|