@happyvertical/smrt-web 0.40.43 → 0.40.45
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/index.d.ts +24 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -826,9 +826,32 @@ export declare interface SmrtWebEventSubscriberConfig {
|
|
|
826
826
|
* virtual module (generated from the package manifest).
|
|
827
827
|
*/
|
|
828
828
|
export declare interface SmrtWebFieldDefinition {
|
|
829
|
-
type:
|
|
829
|
+
type: SmrtWebFieldType;
|
|
830
830
|
required?: boolean;
|
|
831
831
|
default?: unknown;
|
|
832
|
+
/** Developer-authored `@field({ description })` (#2046) — end-user help seed. */
|
|
833
|
+
description?: string;
|
|
834
|
+
/** Static `@field({ ui })` hints (#2046). */
|
|
835
|
+
ui?: SmrtWebFieldUIHints;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* The field types core's web-collection emission actually produces —
|
|
840
|
+
* relationship pseudo-columns (`oneToMany`/`manyToMany`) and STI `meta`
|
|
841
|
+
* internals never reach an emitted definition. Textual mirror of core's
|
|
842
|
+
* `WebFieldType` (this package is deliberately smrt-dependency-free, so it
|
|
843
|
+
* cannot import the source type); the four co-managed sites are core's
|
|
844
|
+
* runtime type, the ambient virt-web d.ts, the physical `@smrt/web` d.ts,
|
|
845
|
+
* and this mirror.
|
|
846
|
+
*/
|
|
847
|
+
export declare type SmrtWebFieldType = 'text' | 'decimal' | 'boolean' | 'integer' | 'datetime' | 'json' | 'foreignKey' | 'crossPackageRef';
|
|
848
|
+
|
|
849
|
+
/** Static `@field({ ui })` hints (#2046) — the field-policy rail seed. */
|
|
850
|
+
export declare interface SmrtWebFieldUIHints {
|
|
851
|
+
basic?: boolean;
|
|
852
|
+
group?: string;
|
|
853
|
+
order?: number;
|
|
854
|
+
locked?: boolean;
|
|
832
855
|
}
|
|
833
856
|
|
|
834
857
|
/**
|