@marianmeres/collection-types 1.28.0 → 1.30.0
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/collection.d.ts +3 -2
- package/dist/joy-config.d.ts +12 -1
- package/package.json +1 -1
package/dist/collection.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface FolderDefinition {
|
|
|
20
20
|
export interface TagDefinition {
|
|
21
21
|
label?: string;
|
|
22
22
|
color?: string;
|
|
23
|
+
[key: string]: unknown;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Input DTO for creating/updating a collection.
|
|
@@ -47,8 +48,8 @@ export interface CollectionDTOIn {
|
|
|
47
48
|
is_readonly?: boolean;
|
|
48
49
|
/** Folder definitions */
|
|
49
50
|
folders?: Record<string, FolderDefinition>;
|
|
50
|
-
/** Tag definitions */
|
|
51
|
-
tags?: Record<string, TagDefinition
|
|
51
|
+
/** Tag definitions per model type */
|
|
52
|
+
tags?: Record<string, Record<string, TagDefinition>>;
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* Output DTO for collection responses.
|
package/dist/joy-config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type TW_COLORS = "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc";
|
|
1
2
|
/**
|
|
2
3
|
* Base configuration interface for Joy admin UI.
|
|
3
4
|
* Extensible via index signature - consumers can add custom fields.
|
|
@@ -22,7 +23,17 @@ export interface JoyConfig {
|
|
|
22
23
|
stuic?: {
|
|
23
24
|
DismissibleMessage?: {
|
|
24
25
|
/** Theme color for dismissible messages */
|
|
25
|
-
theme?:
|
|
26
|
+
theme?: TW_COLORS;
|
|
27
|
+
};
|
|
28
|
+
Notifications?: {
|
|
29
|
+
/** Theme color for error notifications */
|
|
30
|
+
themeError?: TW_COLORS;
|
|
31
|
+
/** Theme color for success notifications */
|
|
32
|
+
themeSuccess?: TW_COLORS;
|
|
33
|
+
/** Theme color for info notifications */
|
|
34
|
+
themeInfo?: TW_COLORS;
|
|
35
|
+
/** Theme color for warning notifications */
|
|
36
|
+
themeWarn?: TW_COLORS;
|
|
26
37
|
};
|
|
27
38
|
[component: string]: Record<string, unknown> | undefined;
|
|
28
39
|
};
|