@juicemantics/veloiq-ui 0.1.0 → 0.2.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/index.d.mts CHANGED
@@ -328,6 +328,8 @@ declare const DynamicList: React__default.FC<{
328
328
  rowSelection?: any;
329
329
  extraHeaderButtons?: React__default.ReactNode;
330
330
  bulkActions?: BulkActionDef[];
331
+ preferencesResourceOverride?: string;
332
+ defaultListVisible?: boolean;
331
333
  }>;
332
334
 
333
335
  /**
@@ -402,6 +404,59 @@ interface LoginPageProps {
402
404
  }
403
405
  declare const LoginPage: React__default.FC<LoginPageProps>;
404
406
 
407
+ declare const DashboardPage: React__default.FC;
408
+
409
+ interface DashboardCell {
410
+ id: string;
411
+ model: string;
412
+ source_type: "model";
413
+ row: number;
414
+ col: number;
415
+ view_type: string | null;
416
+ html_style: string;
417
+ min_width: string | null;
418
+ max_width: string | null;
419
+ min_height: string | null;
420
+ max_height: string | null;
421
+ }
422
+ interface DashboardTab {
423
+ id: string;
424
+ name: string;
425
+ module?: string;
426
+ cells: DashboardCell[];
427
+ }
428
+ interface DashboardConfig {
429
+ tabs: DashboardTab[];
430
+ }
431
+
432
+ interface Props {
433
+ config: DashboardConfig;
434
+ allModels: ModelDef[];
435
+ onConfigChange: (next: DashboardConfig) => void;
436
+ }
437
+ declare const ViewsGrid: React__default.FC<Props>;
438
+
439
+ declare const RecentActivityPanel: React__default.FC;
440
+
441
+ declare const PinnedRecordsPanel: React__default.FC;
442
+
443
+ interface RecentRecord {
444
+ id: string | number;
445
+ _label: string;
446
+ created_at?: string;
447
+ updated_at?: string;
448
+ [key: string]: any;
449
+ }
450
+ interface RecentActivityGroup {
451
+ model_name: string;
452
+ resource: string;
453
+ records: RecentRecord[];
454
+ }
455
+ interface RecentActivityData {
456
+ groups: RecentActivityGroup[];
457
+ days: number;
458
+ }
459
+
405
460
  type ShortcutDef = {
406
461
  key: string;
407
462
  ctrl?: boolean;
@@ -471,4 +526,4 @@ declare const getModelTone: (modelLike?: string | {
471
526
 
472
527
  declare const authSystemModels: ModelDef[];
473
528
 
474
- export { API_URL, AllModelsProvider, type BulkActionDef, ColorModeContext, ColorModeContextProvider, CustomSider, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, MultiPaneLayout, PaneNavigationContext, PrimaryShowContext, type PrimaryShowRendererProps, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, ShowFooterButtons, StandardList, StandardShow, type ViewConfigRow, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, httpClient, normalizeToneKey, renderRelationBlock, setColorSchemas, useAllModels, useKeyboardShortcuts, useMetadataModal, usePaneNavigation, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
529
+ export { API_URL, AllModelsProvider, type BulkActionDef, ColorModeContext, ColorModeContextProvider, 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, MultiPaneLayout, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, ShowFooterButtons, StandardList, StandardShow, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, httpClient, normalizeToneKey, renderRelationBlock, setColorSchemas, useAllModels, useKeyboardShortcuts, useMetadataModal, usePaneNavigation, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
package/dist/index.d.ts CHANGED
@@ -328,6 +328,8 @@ declare const DynamicList: React__default.FC<{
328
328
  rowSelection?: any;
329
329
  extraHeaderButtons?: React__default.ReactNode;
330
330
  bulkActions?: BulkActionDef[];
331
+ preferencesResourceOverride?: string;
332
+ defaultListVisible?: boolean;
331
333
  }>;
332
334
 
333
335
  /**
@@ -402,6 +404,59 @@ interface LoginPageProps {
402
404
  }
403
405
  declare const LoginPage: React__default.FC<LoginPageProps>;
404
406
 
407
+ declare const DashboardPage: React__default.FC;
408
+
409
+ interface DashboardCell {
410
+ id: string;
411
+ model: string;
412
+ source_type: "model";
413
+ row: number;
414
+ col: number;
415
+ view_type: string | null;
416
+ html_style: string;
417
+ min_width: string | null;
418
+ max_width: string | null;
419
+ min_height: string | null;
420
+ max_height: string | null;
421
+ }
422
+ interface DashboardTab {
423
+ id: string;
424
+ name: string;
425
+ module?: string;
426
+ cells: DashboardCell[];
427
+ }
428
+ interface DashboardConfig {
429
+ tabs: DashboardTab[];
430
+ }
431
+
432
+ interface Props {
433
+ config: DashboardConfig;
434
+ allModels: ModelDef[];
435
+ onConfigChange: (next: DashboardConfig) => void;
436
+ }
437
+ declare const ViewsGrid: React__default.FC<Props>;
438
+
439
+ declare const RecentActivityPanel: React__default.FC;
440
+
441
+ declare const PinnedRecordsPanel: React__default.FC;
442
+
443
+ interface RecentRecord {
444
+ id: string | number;
445
+ _label: string;
446
+ created_at?: string;
447
+ updated_at?: string;
448
+ [key: string]: any;
449
+ }
450
+ interface RecentActivityGroup {
451
+ model_name: string;
452
+ resource: string;
453
+ records: RecentRecord[];
454
+ }
455
+ interface RecentActivityData {
456
+ groups: RecentActivityGroup[];
457
+ days: number;
458
+ }
459
+
405
460
  type ShortcutDef = {
406
461
  key: string;
407
462
  ctrl?: boolean;
@@ -471,4 +526,4 @@ declare const getModelTone: (modelLike?: string | {
471
526
 
472
527
  declare const authSystemModels: ModelDef[];
473
528
 
474
- export { API_URL, AllModelsProvider, type BulkActionDef, ColorModeContext, ColorModeContextProvider, CustomSider, DynamicCreate, DynamicEdit, DynamicList, DynamicShow, ExecutableHtml, type FieldDef, GlobalSearch, HierarchyView, HorizontalMenu, InlinePlotlyHtml, LayoutWrapper, type LayoutWrapperProps, LoginPage, type LoginPageProps, type MillerLeafConfig, type ModelDef, ModelHeading, MultiPaneLayout, PaneNavigationContext, PrimaryShowContext, type PrimaryShowRendererProps, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, ShowFooterButtons, StandardList, StandardShow, type ViewConfigRow, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, httpClient, normalizeToneKey, renderRelationBlock, setColorSchemas, useAllModels, useKeyboardShortcuts, useMetadataModal, usePaneNavigation, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };
529
+ export { API_URL, AllModelsProvider, type BulkActionDef, ColorModeContext, ColorModeContextProvider, 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, MultiPaneLayout, PaneNavigationContext, PinnedRecordsPanel, PrimaryShowContext, type PrimaryShowRendererProps, type RecentActivityData, type RecentActivityGroup, RecentActivityPanel, type RecentRecord, ReferenceField, type RelationDef, ResourceContext, type ResourceDef, ShowFooterButtons, StandardList, StandardShow, type ViewConfigRow, ViewsGrid, accessControlProvider, authProvider, authSystemModels, authenticatedFetch, buildShowTabFormOptions, generateResources, getModelTone, httpClient, normalizeToneKey, renderRelationBlock, setColorSchemas, useAllModels, useKeyboardShortcuts, useMetadataModal, usePaneNavigation, useShowActionsPreferences, useShowEditableForm, useStandardShowTabs };