@radio-garden/ditojs-admin 2.91.0-0.1b51d4b4e → 2.91.0-2.566eca6ca
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/package.json +5 -5
- package/types/index.d.ts +27 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radio-garden/ditojs-admin",
|
|
3
|
-
"version": "2.91.0-
|
|
3
|
+
"version": "2.91.0-2.566eca6ca",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/main/packages/admin",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"not ie_mob > 0"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ditojs/ui": "npm:@radio-garden/ditojs-ui@^2.91.0-
|
|
38
|
-
"@ditojs/utils": "npm:@radio-garden/ditojs-utils@^2.91.0-
|
|
37
|
+
"@ditojs/ui": "npm:@radio-garden/ditojs-ui@^2.91.0-2.566eca6ca",
|
|
38
|
+
"@ditojs/utils": "npm:@radio-garden/ditojs-utils@^2.91.0-2.566eca6ca"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@kyvg/vue3-notification": "^3.4.2",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"typescript": "^5.9.3",
|
|
87
87
|
"vite": "^7.3.1",
|
|
88
|
-
"@ditojs/build": "npm:@radio-garden/ditojs-build@^2.91.0-
|
|
88
|
+
"@ditojs/build": "npm:@radio-garden/ditojs-build@^2.91.0-2.566eca6ca"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "566eca6ca",
|
|
91
91
|
"gitBranch": "feature/asset-signatures",
|
|
92
92
|
"scripts": {
|
|
93
93
|
"build": "vite build",
|
package/types/index.d.ts
CHANGED
|
@@ -2970,6 +2970,30 @@ export type SourceComponent<$Item = any> =
|
|
|
2970
2970
|
| TreeListSchema<$Item>
|
|
2971
2971
|
| TreeObjectSchema<$Item>
|
|
2972
2972
|
|
|
2973
|
+
/**
|
|
2974
|
+
* Field components that don't have an options mixin (excludes
|
|
2975
|
+
* select, multiselect, and source components like list/object/tree).
|
|
2976
|
+
*/
|
|
2977
|
+
type NonOptionFieldComponent<$Item = any> = Exclude<
|
|
2978
|
+
NonSectionComponent<$Item>,
|
|
2979
|
+
SelectSchema<$Item> | MultiselectSchema<$Item> | SourceComponent<$Item>
|
|
2980
|
+
>
|
|
2981
|
+
|
|
2982
|
+
/**
|
|
2983
|
+
* Select/multiselect with a typed `$Option` for option callbacks.
|
|
2984
|
+
*
|
|
2985
|
+
* Note: This is intentionally an intersection type rather than
|
|
2986
|
+
* `SelectSchema<$Item, $Option> | MultiselectSchema<$Item, $Option>`,
|
|
2987
|
+
* because using the full interfaces in a union breaks TypeScript's
|
|
2988
|
+
* contextual typing for callbacks in the `Components` mapped type.
|
|
2989
|
+
*/
|
|
2990
|
+
type OptionComponent<$Item, $Option> =
|
|
2991
|
+
BaseSchema<$Item>
|
|
2992
|
+
& SchemaOptionsMixin<$Item, $Option>
|
|
2993
|
+
& SchemaAffixMixin<$Item>
|
|
2994
|
+
& Pick<MultiselectSchema, 'multiple' | 'searchable' | 'stayOpen' | 'taggable'>
|
|
2995
|
+
& { type: 'select' | 'multiselect' }
|
|
2996
|
+
|
|
2973
2997
|
/**
|
|
2974
2998
|
* Strips properties with `never` values from a type.
|
|
2975
2999
|
*/
|
|
@@ -3055,7 +3079,9 @@ export type Components<$Item = any> = 0 extends 1 & $Item
|
|
|
3055
3079
|
: NonSectionComponent<$Item>
|
|
3056
3080
|
: NonNullable<$Item[K]> extends Record<string, any>
|
|
3057
3081
|
?
|
|
3058
|
-
|
|
|
3082
|
+
| NonOptionFieldComponent<$Item>
|
|
3083
|
+
| OptionComponent<$Item, NonNullable<$Item[K]>>
|
|
3084
|
+
| SourceComponent<NonNullable<$Item[K]>>
|
|
3059
3085
|
| SectionSchema<$Item, NonNullable<$Item[K]>>
|
|
3060
3086
|
:
|
|
3061
3087
|
| NonSectionComponent<$Item>
|