@juicemantics/veloiq-ui 0.8.5 → 0.9.1

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.mts CHANGED
@@ -200,6 +200,10 @@ interface ModelDef {
200
200
  description?: string;
201
201
  pkField?: string;
202
202
  listViewType?: "table" | "gallery" | "calendar" | "totals-details";
203
+ /** Field keys whose values compose this model's record title (space-joined).
204
+ * Configured via `veloiq set-title` and stored on the model's
205
+ * `__veloiq_ui__["titleFields"]`; mirrors the backend `dc_title()`/`__str__`. */
206
+ titleFields?: string[];
203
207
  /** True when this ModelDef represents a NamedQuery rather than a plain model table. */
204
208
  isNamedQuery?: boolean;
205
209
  /** Resource name of the primary model (for show/edit navigation and write routing). */
@@ -314,6 +318,7 @@ declare const DynamicShow: React__default.FC<{
314
318
  allModels?: ModelDef[];
315
319
  idOverride?: string;
316
320
  embedded?: boolean;
321
+ beforeTabs?: React__default.ReactNode;
317
322
  }>;
318
323
 
319
324
  interface JourneyCallbacks$1 {
@@ -489,7 +494,7 @@ declare const LoginPage: React__default.FC<LoginPageProps>;
489
494
 
490
495
  declare const DashboardPage: React__default.FC;
491
496
 
492
- type CellSourceType = "model" | "named_query" | "field" | "relation" | "custom";
497
+ type CellSourceType = "model" | "named_query" | "field" | "relation" | "custom" | "plotly_chart";
493
498
  interface DashboardCell {
494
499
  id: string;
495
500
  model: string;
@@ -504,6 +509,8 @@ interface DashboardCell {
504
509
  max_height: string | null;
505
510
  section_name?: string;
506
511
  section_id?: string;
512
+ chart_url?: string;
513
+ chart_title?: string;
507
514
  }
508
515
  interface DashboardTab {
509
516
  id: string;
@@ -618,6 +625,13 @@ declare function generateResources(models: ModelDef[], moduleName: string, optio
618
625
  */
619
626
  declare const authenticatedFetch: (url: string, options?: RequestInit) => Promise<Response>;
620
627
 
628
+ declare function useAuthenticatedFileUrl(rawUrl: string): string;
629
+ declare const AuthenticatedImage: React__default.FC<{
630
+ url: string;
631
+ alt?: string;
632
+ style?: React__default.CSSProperties;
633
+ }>;
634
+
621
635
  type ModelTone = {
622
636
  solid: string;
623
637
  soft: string;
@@ -640,4 +654,4 @@ declare const getModelTone: (modelLike?: string | {
640
654
 
641
655
  declare const authSystemModels: ModelDef[];
642
656
 
643
- export { API_URL, AllModelsProvider, type BulkActionDef, type CellSourceType, ColorModeContext, ColorModeContextProvider, CommandCenterPortal, type CommandCenterPortalProps, CustomSider, type DashboardCell, type DashboardConfig, DashboardPage, type DashboardTab, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, type ModelSearchResult, MultiPaneLayout, type NavConfig, NavConfigContext, type NavConfigEntry, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, type RecordResult, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, SectionsGrid, ShowFooterButtons, StandardList, StandardShow, type UseRecordSearchReturn, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, getNavEntry, guessIcon, httpClient, normalizeToneKey, renderRelationBlock, resolveIcon, setColorSchemas, sortItemsByNavConfig, useAllModels, useKeyboardShortcuts, useMetadataModal, useNavConfig, useNavModules, usePaneNavigation, useRecordSearch, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
657
+ export { API_URL, AllModelsProvider, AuthenticatedImage, type BulkActionDef, type CellSourceType, ColorModeContext, ColorModeContextProvider, CommandCenterPortal, type CommandCenterPortalProps, CustomSider, type DashboardCell, type DashboardConfig, DashboardPage, type DashboardTab, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, type ModelSearchResult, MultiPaneLayout, type NavConfig, NavConfigContext, type NavConfigEntry, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, type RecordResult, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, SectionsGrid, ShowFooterButtons, StandardList, StandardShow, type UseRecordSearchReturn, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, getNavEntry, guessIcon, httpClient, normalizeToneKey, renderRelationBlock, resolveIcon, setColorSchemas, sortItemsByNavConfig, useAllModels, useAuthenticatedFileUrl, useKeyboardShortcuts, useMetadataModal, useNavConfig, useNavModules, usePaneNavigation, useRecordSearch, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
package/dist/index.d.ts CHANGED
@@ -200,6 +200,10 @@ interface ModelDef {
200
200
  description?: string;
201
201
  pkField?: string;
202
202
  listViewType?: "table" | "gallery" | "calendar" | "totals-details";
203
+ /** Field keys whose values compose this model's record title (space-joined).
204
+ * Configured via `veloiq set-title` and stored on the model's
205
+ * `__veloiq_ui__["titleFields"]`; mirrors the backend `dc_title()`/`__str__`. */
206
+ titleFields?: string[];
203
207
  /** True when this ModelDef represents a NamedQuery rather than a plain model table. */
204
208
  isNamedQuery?: boolean;
205
209
  /** Resource name of the primary model (for show/edit navigation and write routing). */
@@ -314,6 +318,7 @@ declare const DynamicShow: React__default.FC<{
314
318
  allModels?: ModelDef[];
315
319
  idOverride?: string;
316
320
  embedded?: boolean;
321
+ beforeTabs?: React__default.ReactNode;
317
322
  }>;
318
323
 
319
324
  interface JourneyCallbacks$1 {
@@ -489,7 +494,7 @@ declare const LoginPage: React__default.FC<LoginPageProps>;
489
494
 
490
495
  declare const DashboardPage: React__default.FC;
491
496
 
492
- type CellSourceType = "model" | "named_query" | "field" | "relation" | "custom";
497
+ type CellSourceType = "model" | "named_query" | "field" | "relation" | "custom" | "plotly_chart";
493
498
  interface DashboardCell {
494
499
  id: string;
495
500
  model: string;
@@ -504,6 +509,8 @@ interface DashboardCell {
504
509
  max_height: string | null;
505
510
  section_name?: string;
506
511
  section_id?: string;
512
+ chart_url?: string;
513
+ chart_title?: string;
507
514
  }
508
515
  interface DashboardTab {
509
516
  id: string;
@@ -618,6 +625,13 @@ declare function generateResources(models: ModelDef[], moduleName: string, optio
618
625
  */
619
626
  declare const authenticatedFetch: (url: string, options?: RequestInit) => Promise<Response>;
620
627
 
628
+ declare function useAuthenticatedFileUrl(rawUrl: string): string;
629
+ declare const AuthenticatedImage: React__default.FC<{
630
+ url: string;
631
+ alt?: string;
632
+ style?: React__default.CSSProperties;
633
+ }>;
634
+
621
635
  type ModelTone = {
622
636
  solid: string;
623
637
  soft: string;
@@ -640,4 +654,4 @@ declare const getModelTone: (modelLike?: string | {
640
654
 
641
655
  declare const authSystemModels: ModelDef[];
642
656
 
643
- export { API_URL, AllModelsProvider, type BulkActionDef, type CellSourceType, ColorModeContext, ColorModeContextProvider, CommandCenterPortal, type CommandCenterPortalProps, CustomSider, type DashboardCell, type DashboardConfig, DashboardPage, type DashboardTab, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, type ModelSearchResult, MultiPaneLayout, type NavConfig, NavConfigContext, type NavConfigEntry, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, type RecordResult, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, SectionsGrid, ShowFooterButtons, StandardList, StandardShow, type UseRecordSearchReturn, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, getNavEntry, guessIcon, httpClient, normalizeToneKey, renderRelationBlock, resolveIcon, setColorSchemas, sortItemsByNavConfig, useAllModels, useKeyboardShortcuts, useMetadataModal, useNavConfig, useNavModules, usePaneNavigation, useRecordSearch, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
657
+ export { API_URL, AllModelsProvider, AuthenticatedImage, type BulkActionDef, type CellSourceType, ColorModeContext, ColorModeContextProvider, CommandCenterPortal, type CommandCenterPortalProps, CustomSider, type DashboardCell, type DashboardConfig, DashboardPage, type DashboardTab, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, type ModelSearchResult, MultiPaneLayout, type NavConfig, NavConfigContext, type NavConfigEntry, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, type RecordResult, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, SectionsGrid, ShowFooterButtons, StandardList, StandardShow, type UseRecordSearchReturn, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, getNavEntry, guessIcon, httpClient, normalizeToneKey, renderRelationBlock, resolveIcon, setColorSchemas, sortItemsByNavConfig, useAllModels, useAuthenticatedFileUrl, useKeyboardShortcuts, useMetadataModal, useNavConfig, useNavModules, usePaneNavigation, useRecordSearch, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };