@stoker-platform/types 0.5.51 → 0.5.53
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 +1 -1
- package/src/types/schema.ts +2 -1
package/package.json
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -623,6 +623,7 @@ export interface Metric {
|
|
|
623
623
|
prefix?: string
|
|
624
624
|
suffix?: string
|
|
625
625
|
textSize?: "text-xl" | "text-2xl" | "text-3xl"
|
|
626
|
+
compact?: boolean
|
|
626
627
|
formula?: (records: StokerRecord[]) => number | string
|
|
627
628
|
}
|
|
628
629
|
export interface Chart {
|
|
@@ -907,7 +908,7 @@ export interface FieldAdmin {
|
|
|
907
908
|
icon?: FormFieldIcon | (() => FormFieldIcon | Promise<FormFieldIcon>)
|
|
908
909
|
condition?: {
|
|
909
910
|
list?: boolean | ((parentCollection?: CollectionSchema, parentRecord?: StokerRecord) => boolean)
|
|
910
|
-
form?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
911
|
+
form?: boolean | ((operation?: "create" | "update", record?: StokerRecord, isExport?: boolean) => boolean)
|
|
911
912
|
}
|
|
912
913
|
readOnly?: boolean | ((operation?: "create" | "update", record?: StokerRecord) => boolean)
|
|
913
914
|
description?: FieldDescription
|