@almadar/ui 2.14.0 → 2.15.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/{chunk-M7MOIE46.js → chunk-2KQPOTRM.js} +1 -1
- package/dist/{chunk-SKWPSQHQ.js → chunk-FP3PNF7I.js} +22 -10
- package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
- package/dist/components/atoms/Avatar.d.ts +58 -0
- package/dist/components/atoms/Badge.d.ts +14 -0
- package/dist/components/atoms/Box.d.ts +57 -0
- package/dist/components/atoms/Button.d.ts +24 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Center.d.ts +33 -0
- package/dist/components/atoms/Checkbox.d.ts +9 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
- package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
- package/dist/components/atoms/DayCell.d.ts +21 -0
- package/dist/components/atoms/Divider.d.ts +29 -0
- package/dist/components/atoms/FlipContainer.d.ts +21 -0
- package/dist/components/atoms/Icon.d.ts +39 -0
- package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
- package/dist/components/atoms/Input.d.ts +26 -0
- package/dist/components/atoms/Label.d.ts +5 -0
- package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/atoms/Radio.d.ts +26 -0
- package/dist/components/atoms/RangeSlider.d.ts +31 -0
- package/dist/components/atoms/Select.d.ts +12 -0
- package/dist/components/atoms/Spacer.d.ts +25 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/Stack.d.ts +66 -0
- package/dist/components/atoms/StatusDot.d.ts +14 -0
- package/dist/components/atoms/Switch.d.ts +12 -0
- package/dist/components/atoms/TextHighlight.d.ts +53 -0
- package/dist/components/atoms/Textarea.d.ts +5 -0
- package/dist/components/atoms/ThemeSelector.d.ts +21 -0
- package/dist/components/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
- package/dist/components/atoms/TrendIndicator.d.ts +18 -0
- package/dist/components/atoms/TypewriterText.d.ts +20 -0
- package/dist/components/atoms/Typography.d.ts +57 -0
- package/dist/components/atoms/game/ActionButton.d.ts +25 -0
- package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
- package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
- package/dist/components/atoms/game/ControlButton.d.ts +31 -0
- package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
- package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
- package/dist/components/atoms/game/MiniMap.d.ts +36 -0
- package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
- package/dist/components/atoms/game/Sprite.d.ts +63 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
- package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
- package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
- package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
- package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
- package/dist/components/atoms/game/XPBar.d.ts +20 -0
- package/dist/components/atoms/game/index.d.ts +25 -0
- package/dist/components/atoms/index.d.ts +37 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +3 -3
- package/dist/components/molecules/Accordion.d.ts +67 -0
- package/dist/components/molecules/Alert.d.ts +24 -0
- package/dist/components/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/molecules/ButtonGroup.d.ts +67 -0
- package/dist/components/molecules/CalendarGrid.d.ts +43 -0
- package/dist/components/molecules/Card.d.ts +56 -0
- package/dist/components/molecules/Carousel.d.ts +31 -0
- package/dist/components/molecules/ChartLegend.d.ts +20 -0
- package/dist/components/molecules/Container.d.ts +30 -0
- package/dist/components/molecules/DataGrid.d.ts +75 -0
- package/dist/components/molecules/DataList.d.ts +95 -0
- package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
- package/dist/components/molecules/Drawer.d.ts +46 -0
- package/dist/components/molecules/EmptyState.d.ts +25 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
- package/dist/components/molecules/ErrorState.d.ts +13 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/Flex.d.ts +43 -0
- package/dist/components/molecules/FlipCard.d.ts +25 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
- package/dist/components/molecules/FormField.d.ts +16 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
- package/dist/components/molecules/GraphView.d.ts +45 -0
- package/dist/components/molecules/Grid.d.ts +54 -0
- package/dist/components/molecules/InputGroup.d.ts +24 -0
- package/dist/components/molecules/Lightbox.d.ts +25 -0
- package/dist/components/molecules/LineChart.d.ts +33 -0
- package/dist/components/molecules/LoadingState.d.ts +7 -0
- package/dist/components/molecules/MapView.d.ts +40 -0
- package/dist/components/molecules/Menu.d.ts +40 -0
- package/dist/components/molecules/Meter.d.ts +51 -0
- package/dist/components/molecules/Modal.d.ts +28 -0
- package/dist/components/molecules/NumberStepper.d.ts +27 -0
- package/dist/components/molecules/Pagination.d.ts +66 -0
- package/dist/components/molecules/Popover.d.ts +39 -0
- package/dist/components/molecules/ProgressDots.d.ts +24 -0
- package/dist/components/molecules/PullToRefresh.d.ts +21 -0
- package/dist/components/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/molecules/SearchInput.d.ts +60 -0
- package/dist/components/molecules/SidePanel.d.ts +47 -0
- package/dist/components/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/molecules/Skeleton.d.ts +35 -0
- package/dist/components/molecules/SortableList.d.ts +17 -0
- package/dist/components/molecules/StarRating.d.ts +26 -0
- package/dist/components/molecules/StatDisplay.d.ts +37 -0
- package/dist/components/molecules/SwipeableRow.d.ts +24 -0
- package/dist/components/molecules/Tabs.d.ts +45 -0
- package/dist/components/molecules/Toast.d.ts +35 -0
- package/dist/components/molecules/Tooltip.d.ts +25 -0
- package/dist/components/molecules/UploadDropZone.d.ts +26 -0
- package/dist/components/molecules/ViolationAlert.d.ts +49 -0
- package/dist/components/molecules/WizardNavigation.d.ts +51 -0
- package/dist/components/molecules/WizardProgress.d.ts +42 -0
- package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
- package/dist/components/molecules/game/CombatLog.d.ts +30 -0
- package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
- package/dist/components/molecules/game/DPad.d.ts +22 -0
- package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
- package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
- package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
- package/dist/components/molecules/game/GameHud.d.ts +49 -0
- package/dist/components/molecules/game/GameMenu.d.ts +43 -0
- package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
- package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
- package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
- package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
- package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
- package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
- package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
- package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
- package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
- package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
- package/dist/components/molecules/game/StatBadge.d.ts +27 -0
- package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
- package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
- package/dist/components/molecules/game/index.d.ts +30 -0
- package/dist/components/molecules/index.d.ts +59 -0
- package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/molecules/markdown/index.d.ts +2 -0
- package/dist/components/organisms/CardGrid.d.ts +80 -0
- package/dist/components/organisms/Chart.d.ts +59 -0
- package/dist/components/organisms/CodeViewer.d.ts +67 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
- package/dist/components/organisms/ContentRenderer.d.ts +23 -0
- package/dist/components/organisms/CustomPattern.d.ts +104 -0
- package/dist/components/organisms/DataTable.d.ts +67 -0
- package/dist/components/organisms/DetailPanel.d.ts +78 -0
- package/dist/components/organisms/DocumentViewer.d.ts +60 -0
- package/dist/components/organisms/DrawerSlot.d.ts +39 -0
- package/dist/components/organisms/Form.d.ts +206 -0
- package/dist/components/organisms/FormSection.d.ts +41 -0
- package/dist/components/organisms/GraphCanvas.d.ts +69 -0
- package/dist/components/organisms/Header.d.ts +110 -0
- package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
- package/dist/components/organisms/List.d.ts +78 -0
- package/dist/components/organisms/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/MediaGallery.d.ts +57 -0
- package/dist/components/organisms/Meter.d.ts +58 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/Navigation.d.ts +68 -0
- package/dist/components/organisms/NotifyListener.d.ts +15 -0
- package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
- package/dist/components/organisms/PageHeader.d.ts +59 -0
- package/dist/components/organisms/Section.d.ts +44 -0
- package/dist/components/organisms/Sidebar.d.ts +63 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/Split.d.ts +42 -0
- package/dist/components/organisms/StatCard.d.ts +62 -0
- package/dist/components/organisms/StateMachineView.d.ts +36 -0
- package/dist/components/organisms/Table.d.ts +99 -0
- package/dist/components/organisms/Timeline.d.ts +49 -0
- package/dist/components/organisms/ToastSlot.d.ts +38 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
- package/dist/components/organisms/WizardContainer.d.ts +160 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
- package/dist/components/organisms/book/BookViewer.d.ts +28 -0
- package/dist/components/organisms/book/index.d.ts +7 -0
- package/dist/components/organisms/book/types.d.ts +77 -0
- package/dist/components/organisms/component-registry.generated.d.ts +9 -0
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
- package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
- package/dist/components/organisms/debug/index.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
- package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
- package/dist/components/organisms/game/CombatLog.d.ts +2 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
- package/dist/components/organisms/game/GameHud.d.ts +2 -0
- package/dist/components/organisms/game/GameMenu.d.ts +2 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
- package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
- package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
- package/dist/components/organisms/game/editor/index.d.ts +9 -0
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
- package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
- package/dist/components/organisms/game/index.d.ts +52 -0
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
- package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
- package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
- package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
- package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
- package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
- package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
- package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
- package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
- package/dist/components/organisms/game/three/components/index.d.ts +10 -0
- package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
- package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
- package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
- package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
- package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
- package/dist/components/organisms/game/three/index.d.ts +23 -0
- package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
- package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
- package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
- package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
- package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
- package/dist/components/organisms/game/types/effects.d.ts +253 -0
- package/dist/components/organisms/game/types/game.d.ts +92 -0
- package/dist/components/organisms/game/types/isometric.d.ts +109 -0
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
- package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
- package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
- package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
- package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
- package/dist/components/organisms/index.d.ts +38 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
- package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/organisms/layout/index.d.ts +9 -0
- package/dist/components/organisms/types.d.ts +63 -0
- package/dist/components/templates/AuthLayout.d.ts +14 -0
- package/dist/components/templates/BattleTemplate.d.ts +25 -0
- package/dist/components/templates/CastleTemplate.d.ts +23 -0
- package/dist/components/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/templates/DashboardLayout.d.ts +34 -0
- package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
- package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
- package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
- package/dist/components/templates/GameShell.d.ts +34 -0
- package/dist/components/templates/GameTemplate.d.ts +36 -0
- package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/types.d.ts +22 -0
- package/dist/context/DesignThemeContext.d.ts +21 -0
- package/dist/context/ThemeContext.d.ts +104 -0
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/hooks/event-bus-types.d.ts +71 -0
- package/dist/hooks/index.d.ts +31 -0
- package/dist/hooks/useAgentChat.d.ts +104 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCompile.d.ts +22 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useDragReorder.d.ts +26 -0
- package/dist/hooks/useEntities.d.ts +52 -0
- package/dist/hooks/useEntityData.d.ts +155 -0
- package/dist/hooks/useEntityMutations.d.ts +80 -0
- package/dist/hooks/useEventBus.d.ts +96 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +40 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useLongPress.d.ts +16 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/useOrbitalMutations.d.ts +95 -0
- package/dist/hooks/usePinchZoom.d.ts +22 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/usePullToRefresh.d.ts +25 -0
- package/dist/hooks/useQuerySingleton.d.ts +78 -0
- package/dist/hooks/useResolvedEntity.d.ts +32 -0
- package/dist/hooks/useSwipeGesture.d.ts +26 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +35 -0
- package/dist/hooks/useUISlots.d.ts +84 -0
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +42 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/debug.d.ts +43 -0
- package/dist/lib/debugRegistry.d.ts +29 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/entityDebug.d.ts +38 -0
- package/dist/lib/getNestedValue.d.ts +33 -0
- package/dist/lib/guardRegistry.d.ts +32 -0
- package/dist/lib/index.d.ts +18 -0
- package/dist/lib/jazari/index.d.ts +5 -0
- package/dist/lib/jazari/layout.d.ts +30 -0
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/jazari/types.d.ts +91 -0
- package/dist/lib/parseContentSegments.d.ts +41 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +138 -0
- package/dist/lib/visualizer/browser.d.ts +47 -0
- package/dist/lib/visualizer/index.d.ts +143 -0
- package/dist/locales/index.d.ts +20 -0
- package/dist/providers/EventBusProvider.d.ts +60 -0
- package/dist/providers/FetchedDataProvider.d.ts +105 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +101 -0
- package/dist/providers/SelectionProvider.d.ts +81 -0
- package/dist/providers/VerificationProvider.d.ts +63 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +3 -3
- package/dist/renderer/client-effect-executor.d.ts +68 -0
- package/dist/renderer/data-resolver.d.ts +68 -0
- package/dist/renderer/index.d.ts +28 -0
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/renderer/offline-executor.d.ts +238 -0
- package/dist/renderer/pattern-resolver.d.ts +91 -0
- package/dist/renderer/slot-definitions.d.ts +45 -0
- package/dist/renderer/types.d.ts +160 -0
- package/dist/renderer/useClientEffects.d.ts +88 -0
- package/dist/runtime/EntitySchemaContext.d.ts +40 -0
- package/dist/runtime/TraitProvider.d.ts +52 -0
- package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
- package/dist/runtime/index.d.ts +15 -0
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/types.d.ts +10 -0
- package/dist/runtime/ui/SlotsContext.d.ts +71 -0
- package/dist/runtime/useResolvedSchema.d.ts +45 -0
- package/dist/runtime/useTraitStateMachine.d.ts +48 -0
- package/dist/scripts/generate-design-system.d.ts +29 -0
- package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
- package/dist/scripts/generate.d.ts +12 -0
- package/dist/scripts/suggest-components.d.ts +31 -0
- package/dist/scripts/types.d.ts +129 -0
- package/dist/stores/entityStore.d.ts +99 -0
- package/dist/stores/filtering.d.ts +51 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
import { EntityDisplayProps } from "./types";
|
|
4
|
+
export interface Column<T> {
|
|
5
|
+
key: keyof T | string;
|
|
6
|
+
header: string;
|
|
7
|
+
/** Alias for key (used by compiler-generated fields) */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Alias for header (used by compiler-generated fields) */
|
|
10
|
+
label?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
sortable?: boolean;
|
|
13
|
+
render?: (value: unknown, row: T, index: number) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface RowAction<T> {
|
|
16
|
+
label: string;
|
|
17
|
+
icon?: LucideIcon;
|
|
18
|
+
onClick: (row: T) => void;
|
|
19
|
+
variant?: "default" | "danger";
|
|
20
|
+
show?: (row: T) => boolean;
|
|
21
|
+
event?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DataTableProps<T extends {
|
|
24
|
+
id: string | number;
|
|
25
|
+
}> extends EntityDisplayProps<T> {
|
|
26
|
+
/** Fields to display - accepts string[] or Column[] for unified interface. Alias for columns */
|
|
27
|
+
fields: readonly Column<T>[] | readonly string[];
|
|
28
|
+
/** Columns can be Column objects or simple string field names */
|
|
29
|
+
columns?: readonly Column<T>[] | readonly string[];
|
|
30
|
+
/** Item actions from generated code - maps to rowActions */
|
|
31
|
+
itemActions?: readonly {
|
|
32
|
+
label: string;
|
|
33
|
+
event?: string;
|
|
34
|
+
navigatesTo?: string;
|
|
35
|
+
action?: string;
|
|
36
|
+
placement?: "row" | "bulk" | string;
|
|
37
|
+
icon?: LucideIcon;
|
|
38
|
+
variant?: "default" | "primary" | "secondary" | "ghost" | "danger" | string;
|
|
39
|
+
onClick?: (row: T) => void;
|
|
40
|
+
}[];
|
|
41
|
+
emptyIcon?: LucideIcon;
|
|
42
|
+
emptyTitle?: string;
|
|
43
|
+
emptyDescription?: string;
|
|
44
|
+
emptyAction?: {
|
|
45
|
+
label: string;
|
|
46
|
+
event?: string;
|
|
47
|
+
};
|
|
48
|
+
selectable?: boolean;
|
|
49
|
+
searchable?: boolean;
|
|
50
|
+
searchPlaceholder?: string;
|
|
51
|
+
rowActions?: readonly RowAction<T>[];
|
|
52
|
+
bulkActions?: ReadonlyArray<{
|
|
53
|
+
label: string;
|
|
54
|
+
icon?: LucideIcon;
|
|
55
|
+
onClick: (selectedRows: T[]) => void;
|
|
56
|
+
variant?: "default" | "danger";
|
|
57
|
+
}>;
|
|
58
|
+
headerActions?: React.ReactNode;
|
|
59
|
+
/** Show total count in pagination */
|
|
60
|
+
showTotal?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export declare function DataTable<T extends {
|
|
63
|
+
id: string | number;
|
|
64
|
+
}>({ fields, columns, entity, itemActions, isLoading, error, emptyIcon, emptyTitle, emptyDescription, emptyAction, selectable, selectedIds, sortBy, sortDirection, searchable, searchValue, searchPlaceholder, page, pageSize, totalCount, rowActions: externalRowActions, bulkActions, headerActions, showTotal, className, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
export declare namespace DataTable {
|
|
66
|
+
var displayName: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DetailPanel Organism Component
|
|
3
|
+
*
|
|
4
|
+
* Composes atoms and molecules to create a professional detail view.
|
|
5
|
+
*
|
|
6
|
+
* Data is provided by the runtime via the `entity` prop.
|
|
7
|
+
* See EntityDisplayProps in ./types.ts for base prop contract.
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
import type { LucideIcon } from "lucide-react";
|
|
11
|
+
import type { EntityDisplayProps } from "./types";
|
|
12
|
+
export interface DetailField {
|
|
13
|
+
label: string;
|
|
14
|
+
value: React.ReactNode;
|
|
15
|
+
icon?: LucideIcon;
|
|
16
|
+
copyable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface DetailSection {
|
|
19
|
+
title: string;
|
|
20
|
+
fields: (DetailField | string)[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Action definition for DetailPanel
|
|
24
|
+
*/
|
|
25
|
+
export interface DetailPanelAction {
|
|
26
|
+
label: string;
|
|
27
|
+
icon?: LucideIcon;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
/** Event to emit via event bus */
|
|
30
|
+
event?: string;
|
|
31
|
+
/** Navigation URL */
|
|
32
|
+
navigatesTo?: string;
|
|
33
|
+
/** Button variant (primary for main action, others for secondary) */
|
|
34
|
+
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Field definition for unified interface - can be a simple string, key/header object, or typed object
|
|
38
|
+
*/
|
|
39
|
+
export type FieldDef = string | {
|
|
40
|
+
key: string;
|
|
41
|
+
header?: string;
|
|
42
|
+
} | {
|
|
43
|
+
name: string;
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
export interface DetailPanelProps extends EntityDisplayProps {
|
|
47
|
+
title?: string;
|
|
48
|
+
subtitle?: string;
|
|
49
|
+
status?: {
|
|
50
|
+
label: string;
|
|
51
|
+
variant?: "default" | "success" | "warning" | "danger" | "info";
|
|
52
|
+
};
|
|
53
|
+
avatar?: React.ReactNode;
|
|
54
|
+
sections?: readonly DetailSection[];
|
|
55
|
+
/** Unified actions array - first action with variant='primary' is the main action */
|
|
56
|
+
actions?: readonly DetailPanelAction[];
|
|
57
|
+
footer?: React.ReactNode;
|
|
58
|
+
slideOver?: boolean;
|
|
59
|
+
/** Fields to display - accepts string[], {key, header}[], or DetailField[] */
|
|
60
|
+
fields: readonly (FieldDef | DetailField)[];
|
|
61
|
+
/** Alias for fields - backwards compatibility */
|
|
62
|
+
fieldNames?: readonly string[];
|
|
63
|
+
/** Initial data for edit mode (passed by compiler) */
|
|
64
|
+
initialData?: Record<string, unknown> | unknown;
|
|
65
|
+
/** Display mode (passed by compiler) */
|
|
66
|
+
mode?: string;
|
|
67
|
+
/** Panel position (for drawer/sidebar placement) */
|
|
68
|
+
position?: "left" | "right";
|
|
69
|
+
/** Panel width (CSS value, e.g., '400px', '50%') */
|
|
70
|
+
width?: string;
|
|
71
|
+
/** Entity ID for fetching specific entity */
|
|
72
|
+
entityId?: string;
|
|
73
|
+
/** Display fields (alias for fields) */
|
|
74
|
+
displayFields?: readonly string[];
|
|
75
|
+
/** Show actions flag */
|
|
76
|
+
showActions?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export declare const DetailPanel: React.FC<DetailPanelProps>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DocumentViewer Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A document viewer for displaying PDFs, documents, and rich text content.
|
|
5
|
+
* Uses iframe for PDF rendering (necessary) and atoms for all surrounding UI.
|
|
6
|
+
*
|
|
7
|
+
* Orbital Component Interface Compliance:
|
|
8
|
+
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
+
* - Event emission via useEventBus (UI:* events)
|
|
10
|
+
* - isLoading and error state props
|
|
11
|
+
* - className for external styling
|
|
12
|
+
*/
|
|
13
|
+
import React from "react";
|
|
14
|
+
export type DocumentType = "pdf" | "text" | "html" | "markdown";
|
|
15
|
+
export interface DocumentAction {
|
|
16
|
+
label: string;
|
|
17
|
+
event?: string;
|
|
18
|
+
navigatesTo?: string;
|
|
19
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
20
|
+
}
|
|
21
|
+
export interface DocumentViewerProps {
|
|
22
|
+
/** Document title */
|
|
23
|
+
title?: string;
|
|
24
|
+
/** Document URL (for PDF/external documents) */
|
|
25
|
+
src?: string;
|
|
26
|
+
/** Document content (for text/html/markdown) */
|
|
27
|
+
content?: string;
|
|
28
|
+
/** Document type */
|
|
29
|
+
documentType?: DocumentType;
|
|
30
|
+
/** Current page (for multi-page documents) */
|
|
31
|
+
currentPage?: number;
|
|
32
|
+
/** Total pages */
|
|
33
|
+
totalPages?: number;
|
|
34
|
+
/** Viewer height */
|
|
35
|
+
height?: number | string;
|
|
36
|
+
/** Show toolbar */
|
|
37
|
+
showToolbar?: boolean;
|
|
38
|
+
/** Show download button */
|
|
39
|
+
showDownload?: boolean;
|
|
40
|
+
/** Show print button */
|
|
41
|
+
showPrint?: boolean;
|
|
42
|
+
/** Actions */
|
|
43
|
+
actions?: readonly DocumentAction[];
|
|
44
|
+
/** Multiple documents (tabbed view) */
|
|
45
|
+
documents?: readonly {
|
|
46
|
+
label: string;
|
|
47
|
+
src?: string;
|
|
48
|
+
content?: string;
|
|
49
|
+
documentType?: DocumentType;
|
|
50
|
+
}[];
|
|
51
|
+
/** Entity name for schema-driven auto-fetch */
|
|
52
|
+
entity?: string;
|
|
53
|
+
/** Loading state */
|
|
54
|
+
isLoading?: boolean;
|
|
55
|
+
/** Error state */
|
|
56
|
+
error?: Error | null;
|
|
57
|
+
/** Additional CSS classes */
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const DocumentViewer: React.FC<DocumentViewerProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DrawerSlot Component
|
|
3
|
+
*
|
|
4
|
+
* Wraps drawer slot content in a proper Drawer component.
|
|
5
|
+
* Used by trait-driven pages to display drawer UI from render_ui effects.
|
|
6
|
+
*
|
|
7
|
+
* Handles:
|
|
8
|
+
* - Auto-open when content is present
|
|
9
|
+
* - Dispatches CLOSE/CANCEL events when closed
|
|
10
|
+
* - Extracts title from Form or DetailPanel components
|
|
11
|
+
* - Configurable position and size
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { DrawerPosition, DrawerSize } from '../molecules/Drawer';
|
|
15
|
+
export interface DrawerSlotProps {
|
|
16
|
+
/** Content to display in the drawer */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/** Override drawer title (extracted from children if not provided) */
|
|
19
|
+
title?: string;
|
|
20
|
+
/** Drawer position */
|
|
21
|
+
position?: DrawerPosition;
|
|
22
|
+
/** Drawer size */
|
|
23
|
+
size?: DrawerSize;
|
|
24
|
+
/** Custom class name */
|
|
25
|
+
className?: string;
|
|
26
|
+
/** Loading state */
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
/** Error state */
|
|
29
|
+
error?: Error | null;
|
|
30
|
+
/** Entity name for schema-driven auto-fetch */
|
|
31
|
+
entity?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* DrawerSlot - Wrapper for drawer slot content
|
|
35
|
+
*
|
|
36
|
+
* Automatically shows drawer when children are present,
|
|
37
|
+
* and dispatches close events when drawer is dismissed.
|
|
38
|
+
*/
|
|
39
|
+
export declare const DrawerSlot: React.FC<DrawerSlotProps>;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A form container component with submit/reset handling.
|
|
5
|
+
* Supports both children-based and schema-based form generation.
|
|
6
|
+
* Renders correct input types based on field definitions including relations.
|
|
7
|
+
*
|
|
8
|
+
* Extended for inspection forms with:
|
|
9
|
+
* - Conditional field visibility via S-expressions
|
|
10
|
+
* - Hidden calculations that emit GLOBAL_VARIABLE_SET events
|
|
11
|
+
* - Violation triggers that emit VIOLATION_DETECTED events
|
|
12
|
+
* - Nested sections with collapsible support
|
|
13
|
+
*/
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { type SelectOption } from "../atoms/Select";
|
|
16
|
+
import { type RelationOption } from "../molecules/RelationSelect";
|
|
17
|
+
import type { OrbitalEntity } from "@almadar/core";
|
|
18
|
+
import { type SExpr } from "@almadar/evaluator";
|
|
19
|
+
/**
|
|
20
|
+
* S-Expression type for conditional logic (re-export from @almadar/evaluator)
|
|
21
|
+
*/
|
|
22
|
+
export type SExpression = SExpr;
|
|
23
|
+
/**
|
|
24
|
+
* Form-specific evaluation context
|
|
25
|
+
*/
|
|
26
|
+
export interface FormEvaluationContext {
|
|
27
|
+
formValues: Record<string, unknown>;
|
|
28
|
+
globalVariables: Record<string, unknown>;
|
|
29
|
+
localVariables?: Record<string, unknown>;
|
|
30
|
+
entity?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Hidden calculation definition
|
|
34
|
+
*/
|
|
35
|
+
export interface HiddenCalculation {
|
|
36
|
+
variableName: string;
|
|
37
|
+
expression: SExpression;
|
|
38
|
+
triggerFields: string[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Violation definition
|
|
42
|
+
*/
|
|
43
|
+
export interface ViolationDefinition {
|
|
44
|
+
law: string;
|
|
45
|
+
article: string;
|
|
46
|
+
actionType: "measure" | "admin" | "penalty";
|
|
47
|
+
message: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Violation trigger definition
|
|
51
|
+
*/
|
|
52
|
+
export interface ViolationTrigger {
|
|
53
|
+
condition: SExpression;
|
|
54
|
+
violation: ViolationDefinition;
|
|
55
|
+
fieldId?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Form section definition for nested sections
|
|
59
|
+
*/
|
|
60
|
+
export interface FormSection {
|
|
61
|
+
id: string;
|
|
62
|
+
title: string;
|
|
63
|
+
condition?: SExpression;
|
|
64
|
+
fields: SchemaField[];
|
|
65
|
+
collapsible?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Form tab definition for tabbed inspection forms
|
|
69
|
+
*/
|
|
70
|
+
export interface FormTabDefinition {
|
|
71
|
+
/** Unique tab identifier */
|
|
72
|
+
id: string;
|
|
73
|
+
/** Tab display label */
|
|
74
|
+
label: string;
|
|
75
|
+
/** Icon name for the tab (from Icon component) */
|
|
76
|
+
icon?: string;
|
|
77
|
+
/** Sections within this tab */
|
|
78
|
+
sections: FormSection[];
|
|
79
|
+
/** Condition for showing/hiding the entire tab */
|
|
80
|
+
condition?: SExpression;
|
|
81
|
+
/** Badge count or text to display on tab */
|
|
82
|
+
badge?: string | number;
|
|
83
|
+
/** Whether this tab has validation errors */
|
|
84
|
+
hasErrors?: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Relation configuration for foreign key fields
|
|
88
|
+
*/
|
|
89
|
+
export interface RelationConfig {
|
|
90
|
+
/** Target entity name (e.g., 'User', 'Project') */
|
|
91
|
+
entity: string;
|
|
92
|
+
/** Field on target entity to display (defaults to 'name') */
|
|
93
|
+
displayField?: string;
|
|
94
|
+
/** Cardinality: one-to-one or one-to-many */
|
|
95
|
+
cardinality?: "one" | "many";
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Schema field definition
|
|
99
|
+
* Supports both 'name' and 'field' for compatibility with different schema formats
|
|
100
|
+
*/
|
|
101
|
+
export interface SchemaField {
|
|
102
|
+
/** Field name (primary) */
|
|
103
|
+
name?: string;
|
|
104
|
+
/** Field name (alias for compatibility) */
|
|
105
|
+
field?: string;
|
|
106
|
+
/** Display label */
|
|
107
|
+
label?: string;
|
|
108
|
+
/** Field type (string, number, email, date, boolean, enum, relation, etc.) */
|
|
109
|
+
type?: string;
|
|
110
|
+
/** Input type for rendering (text, select, textarea, checkbox, etc.) */
|
|
111
|
+
inputType?: string;
|
|
112
|
+
/** Placeholder text */
|
|
113
|
+
placeholder?: string;
|
|
114
|
+
/** Whether field is required */
|
|
115
|
+
required?: boolean;
|
|
116
|
+
/** Default value */
|
|
117
|
+
defaultValue?: unknown;
|
|
118
|
+
/** Options for select/enum fields - accepts readonly for generated const arrays */
|
|
119
|
+
options?: readonly SelectOption[];
|
|
120
|
+
/** Enum values (alternative to options, just strings) - accepts readonly for generated const arrays */
|
|
121
|
+
values?: readonly string[];
|
|
122
|
+
/** Relation configuration for foreign key references */
|
|
123
|
+
relation?: RelationConfig;
|
|
124
|
+
/** Minimum value (for number) or length (for string) */
|
|
125
|
+
min?: number;
|
|
126
|
+
/** Maximum value or length */
|
|
127
|
+
max?: number;
|
|
128
|
+
/** Pattern for validation */
|
|
129
|
+
pattern?: string;
|
|
130
|
+
/** Validation rules */
|
|
131
|
+
validation?: Record<string, unknown>;
|
|
132
|
+
/** Whether field is readonly (displays value but cannot edit) */
|
|
133
|
+
readonly?: boolean;
|
|
134
|
+
/** Whether field is disabled (alternative to readonly for compatibility) */
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Form is the ONE EXCEPTION to the "no internal state" rule for organisms.
|
|
139
|
+
* It manages local `formData` state for field input tracking.
|
|
140
|
+
* See EntityDisplayProps in ./types.ts for documentation.
|
|
141
|
+
*/
|
|
142
|
+
export interface FormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
|
|
143
|
+
/** Form fields (traditional React children) */
|
|
144
|
+
children?: React.ReactNode;
|
|
145
|
+
/** Submit event name for trait dispatch (emitted via eventBus as UI:{onSubmit}) */
|
|
146
|
+
onSubmit?: string;
|
|
147
|
+
/** Cancel event name for trait dispatch (emitted via eventBus as UI:{onCancel}) */
|
|
148
|
+
onCancel?: string;
|
|
149
|
+
/** Form layout */
|
|
150
|
+
layout?: "vertical" | "horizontal" | "inline";
|
|
151
|
+
/** Gap between fields */
|
|
152
|
+
gap?: "sm" | "md" | "lg";
|
|
153
|
+
/** Additional CSS classes */
|
|
154
|
+
className?: string;
|
|
155
|
+
/** Entity type name or schema object. When OrbitalEntity, fields are auto-derived if not provided. */
|
|
156
|
+
entity?: string | OrbitalEntity | readonly Record<string, unknown>[];
|
|
157
|
+
/** Form mode - 'create' for new records, 'edit' for updating existing */
|
|
158
|
+
mode?: "create" | "edit";
|
|
159
|
+
/** Fields definition (schema format) - accepts readonly for generated const arrays */
|
|
160
|
+
fields: readonly Readonly<SchemaField>[];
|
|
161
|
+
/** Initial form data */
|
|
162
|
+
initialData?: Record<string, unknown> | unknown;
|
|
163
|
+
/** Loading state */
|
|
164
|
+
isLoading?: boolean;
|
|
165
|
+
/** Error state */
|
|
166
|
+
error?: Error | null;
|
|
167
|
+
/** Submit button label */
|
|
168
|
+
submitLabel?: string;
|
|
169
|
+
/** Cancel button label (if provided, shows cancel button) */
|
|
170
|
+
cancelLabel?: string;
|
|
171
|
+
/** Show cancel button (defaults to true for schema forms) */
|
|
172
|
+
showCancel?: boolean;
|
|
173
|
+
/** Form title (used by ModalSlot to extract title) */
|
|
174
|
+
title?: string;
|
|
175
|
+
/** Event to dispatch on successful submit (defaults to 'SAVE') */
|
|
176
|
+
submitEvent?: string;
|
|
177
|
+
/** Event to dispatch on cancel (defaults to 'CANCEL') */
|
|
178
|
+
cancelEvent?: string;
|
|
179
|
+
/** Entity ID binding for edit mode (triggers initialData from selectedEntity in compiled code) */
|
|
180
|
+
entityId?: string;
|
|
181
|
+
/** Data for relation fields: { fieldName: RelationOption[] } */
|
|
182
|
+
relationsData?: Record<string, readonly RelationOption[]>;
|
|
183
|
+
/** Loading state for relation data: { fieldName: boolean } */
|
|
184
|
+
relationsLoading?: Record<string, boolean>;
|
|
185
|
+
/** Map of fieldId → S-expression condition for conditional field display (boolean true means enabled but config loaded separately) */
|
|
186
|
+
conditionalFields?: Record<string, SExpression> | boolean;
|
|
187
|
+
/** Hidden calculations that emit GLOBAL_VARIABLE_SET on field change (boolean true means enabled but config loaded separately) */
|
|
188
|
+
hiddenCalculations?: HiddenCalculation[] | boolean;
|
|
189
|
+
/** Violation conditions that emit VIOLATION_DETECTED when met (boolean true means enabled but config loaded separately) */
|
|
190
|
+
violationTriggers?: ViolationTrigger[] | boolean;
|
|
191
|
+
/** Context for S-expression evaluation - accepts flexible types from generated code */
|
|
192
|
+
evaluationContext?: FormEvaluationContext | Record<string, unknown>;
|
|
193
|
+
/** Nested form sections with optional conditions */
|
|
194
|
+
sections?: FormSection[];
|
|
195
|
+
/** Callback when any field value changes */
|
|
196
|
+
onFieldChange?: (change: {
|
|
197
|
+
fieldId: string;
|
|
198
|
+
value: unknown;
|
|
199
|
+
formValues: Record<string, unknown>;
|
|
200
|
+
}) => void;
|
|
201
|
+
/** Config path for form configuration (schema-driven) */
|
|
202
|
+
configPath?: string;
|
|
203
|
+
/** Whether the form supports repeatable entries */
|
|
204
|
+
repeatable?: boolean;
|
|
205
|
+
}
|
|
206
|
+
export declare const Form: React.FC<FormProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { EntityDisplayProps } from "./types";
|
|
3
|
+
export interface FormSectionProps extends EntityDisplayProps {
|
|
4
|
+
/** Section title */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** Section description */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Form fields */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Collapsible */
|
|
11
|
+
collapsible?: boolean;
|
|
12
|
+
/** Default collapsed state */
|
|
13
|
+
defaultCollapsed?: boolean;
|
|
14
|
+
/** Use card wrapper */
|
|
15
|
+
card?: boolean;
|
|
16
|
+
/** Grid columns for fields */
|
|
17
|
+
columns?: 1 | 2 | 3;
|
|
18
|
+
/** Entity ID for fetching specific entity */
|
|
19
|
+
entityId?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const FormSection: React.FC<FormSectionProps>;
|
|
22
|
+
/**
|
|
23
|
+
* Form layout with multiple sections
|
|
24
|
+
*/
|
|
25
|
+
export interface FormLayoutProps extends EntityDisplayProps {
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
/** Show section dividers */
|
|
28
|
+
dividers?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare const FormLayout: React.FC<FormLayoutProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Form actions bar (submit/cancel buttons)
|
|
33
|
+
*/
|
|
34
|
+
export interface FormActionsProps extends EntityDisplayProps {
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
/** Sticky at bottom */
|
|
37
|
+
sticky?: boolean;
|
|
38
|
+
/** Alignment */
|
|
39
|
+
align?: "left" | "right" | "between" | "center";
|
|
40
|
+
}
|
|
41
|
+
export declare const FormActions: React.FC<FormActionsProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphCanvas Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A force-directed graph visualization component for node-link data.
|
|
5
|
+
* Uses canvas (necessary for performant graph rendering) with atom wrappers.
|
|
6
|
+
*
|
|
7
|
+
* Orbital Component Interface Compliance:
|
|
8
|
+
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
+
* - Event emission via useEventBus (UI:* events)
|
|
10
|
+
* - isLoading and error state props
|
|
11
|
+
* - className for external styling
|
|
12
|
+
*/
|
|
13
|
+
import React from "react";
|
|
14
|
+
export interface GraphNode {
|
|
15
|
+
id: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
group?: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
/** Position (optional, computed if missing) */
|
|
21
|
+
x?: number;
|
|
22
|
+
y?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface GraphEdge {
|
|
25
|
+
source: string;
|
|
26
|
+
target: string;
|
|
27
|
+
label?: string;
|
|
28
|
+
weight?: number;
|
|
29
|
+
color?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GraphAction {
|
|
32
|
+
label: string;
|
|
33
|
+
event?: string;
|
|
34
|
+
navigatesTo?: string;
|
|
35
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
36
|
+
}
|
|
37
|
+
export interface GraphCanvasProps {
|
|
38
|
+
/** Graph title */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** Graph nodes */
|
|
41
|
+
nodes?: readonly GraphNode[];
|
|
42
|
+
/** Graph edges */
|
|
43
|
+
edges?: readonly GraphEdge[];
|
|
44
|
+
/** Canvas height */
|
|
45
|
+
height?: number;
|
|
46
|
+
/** Show node labels */
|
|
47
|
+
showLabels?: boolean;
|
|
48
|
+
/** Enable zoom/pan */
|
|
49
|
+
interactive?: boolean;
|
|
50
|
+
/** Enable node dragging */
|
|
51
|
+
draggable?: boolean;
|
|
52
|
+
/** Actions */
|
|
53
|
+
actions?: readonly GraphAction[];
|
|
54
|
+
/** On node click */
|
|
55
|
+
onNodeClick?: (node: GraphNode) => void;
|
|
56
|
+
/** Node click event */
|
|
57
|
+
nodeClickEvent?: string;
|
|
58
|
+
/** Layout algorithm */
|
|
59
|
+
layout?: "force" | "circular" | "grid";
|
|
60
|
+
/** Entity name for schema-driven auto-fetch */
|
|
61
|
+
entity?: string;
|
|
62
|
+
/** Loading state */
|
|
63
|
+
isLoading?: boolean;
|
|
64
|
+
/** Error state */
|
|
65
|
+
error?: Error | null;
|
|
66
|
+
/** Additional CSS classes */
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare const GraphCanvas: React.FC<GraphCanvasProps>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Header Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A header component for mobile/responsive layouts with menu toggle, brand, and user avatar.
|
|
5
|
+
* Styled to match the main Layout component's mobile header.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
import type { LucideIcon } from "lucide-react";
|
|
9
|
+
export interface HeaderProps {
|
|
10
|
+
/**
|
|
11
|
+
* Logo/Brand content
|
|
12
|
+
*/
|
|
13
|
+
logo?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Logo image source
|
|
16
|
+
*/
|
|
17
|
+
logoSrc?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Brand/App name
|
|
20
|
+
*/
|
|
21
|
+
brandName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Navigation items (for desktop header variant)
|
|
24
|
+
*/
|
|
25
|
+
navigationItems?: Array<{
|
|
26
|
+
label: string;
|
|
27
|
+
href?: string;
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
icon?: LucideIcon;
|
|
30
|
+
badge?: string | number;
|
|
31
|
+
active?: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Show menu toggle button
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showMenuToggle?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Is menu open (for toggle icon)
|
|
40
|
+
*/
|
|
41
|
+
isMenuOpen?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Menu toggle callback
|
|
44
|
+
*/
|
|
45
|
+
onMenuToggle?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Show search input
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
showSearch?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Search placeholder
|
|
53
|
+
*/
|
|
54
|
+
searchPlaceholder?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Search callback
|
|
57
|
+
*/
|
|
58
|
+
onSearch?: (value: string) => void;
|
|
59
|
+
/**
|
|
60
|
+
* User avatar configuration
|
|
61
|
+
*/
|
|
62
|
+
userAvatar?: {
|
|
63
|
+
src?: string;
|
|
64
|
+
alt?: string;
|
|
65
|
+
initials?: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* User name (display name or email)
|
|
69
|
+
*/
|
|
70
|
+
userName?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Callback when user avatar is clicked
|
|
73
|
+
*/
|
|
74
|
+
onUserClick?: () => void;
|
|
75
|
+
/**
|
|
76
|
+
* Action buttons (right side)
|
|
77
|
+
*/
|
|
78
|
+
actions?: React.ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Sticky header
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
sticky?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Variant - mobile shows menu toggle, desktop shows full nav
|
|
86
|
+
* @default 'mobile'
|
|
87
|
+
*/
|
|
88
|
+
variant?: "mobile" | "desktop";
|
|
89
|
+
/**
|
|
90
|
+
* Callback when logo/brand is clicked
|
|
91
|
+
*/
|
|
92
|
+
onLogoClick?: () => void;
|
|
93
|
+
/**
|
|
94
|
+
* Additional CSS classes
|
|
95
|
+
*/
|
|
96
|
+
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Loading state indicator (closed circuit)
|
|
99
|
+
*/
|
|
100
|
+
isLoading?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Error state (closed circuit)
|
|
103
|
+
*/
|
|
104
|
+
error?: Error | null;
|
|
105
|
+
/**
|
|
106
|
+
* Entity name for schema-driven auto-fetch (closed circuit)
|
|
107
|
+
*/
|
|
108
|
+
entity?: string;
|
|
109
|
+
}
|
|
110
|
+
export declare const Header: React.FC<HeaderProps>;
|