@almadar/std 16.238.0 → 16.241.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/behaviors/behaviors-registry.json +31682 -26740
- package/behaviors/lolo/agent/atoms/std-agent-memory.lolo +2 -2
- package/behaviors/lolo/agent/atoms/std-agent-session.lolo +337 -167
- package/behaviors/lolo/agent/atoms/std-agent-tool-loop.lolo +48 -9
- package/behaviors/lolo/agent/atoms/std-agent-trace.lolo +45 -8
- package/behaviors/lolo/agent/organisms/std-agent-assistant.lolo +33 -9
- package/behaviors/lolo/ui/avl/atoms/ui-avl-glyph.lolo +6 -1
- package/behaviors/lolo/ui/avl/atoms/ui-avl-state-machine.lolo +5 -0
- package/behaviors/lolo/ui/core/.hand-authored.json +0 -4
- package/behaviors/lolo/ui/core/atoms/std-billable-hour.lolo +23 -10
- package/behaviors/lolo/ui/core/atoms/std-board.lolo +53 -6
- package/behaviors/lolo/ui/core/atoms/std-browse.lolo +30 -100
- package/behaviors/lolo/ui/core/atoms/std-graphs.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-panel-launcher.lolo +97 -0
- package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +15 -3
- package/behaviors/lolo/ui/core/atoms/std-stats.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-tag-strip.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +7 -7
- package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/ui-animated-graphic.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-animated-reveal.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-aside.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-atlas-image.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-atlas-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-avatar.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-badge.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-box.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-button.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-card.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-center.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-checkbox.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-confetti-effect.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-day-cell.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-dialog.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-divider.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-filter-pill.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-flip-container.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-game-icon.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-hstack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-image.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-infinite-scroll-sentinel.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-input.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-label.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-law-reference-tooltip.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-overlay.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-pattern-tile.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-presence.lolo +6 -1
- package/behaviors/lolo/ui/core/atoms/ui-progress-bar.lolo +6 -1
- package/behaviors/lolo/ui/core/atoms/ui-radio.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-range-slider.lolo +7 -0
- package/behaviors/lolo/ui/core/atoms/ui-section-header.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-select.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-spacer.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-sparkline.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-spinner.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-status-dot.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-branch.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-connection.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-flow.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-lobe.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-mesh.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-morph.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-node.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-pulse.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-ring.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-shield.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-svg-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-switch.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-text-highlight.lolo +7 -0
- package/behaviors/lolo/ui/core/atoms/ui-textarea.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-theme-toggle.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-time-slot-cell.lolo +6 -0
- package/behaviors/lolo/ui/core/atoms/ui-trend-indicator.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-typewriter-text.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-typography.lolo +5 -0
- package/behaviors/lolo/ui/core/atoms/ui-vstack.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-accordion.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-activation-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-activity-feed.lolo +249 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-activity-row.lolo +218 -0
- package/behaviors/lolo/ui/core/molecules/ui-agent-chat-feed.lolo +231 -0
- package/behaviors/lolo/ui/core/molecules/ui-alert.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-animated-counter.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-bloom-quiz-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-breadcrumb.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-calendar-grid.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-carousel.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-change-list.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-chart-legend.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-chart.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-code-block.lolo +12 -0
- package/behaviors/lolo/ui/core/molecules/ui-command-palette.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-commit-row.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-confirm-dialog.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-connection-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-container.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-content-renderer.lolo +5 -9
- package/behaviors/lolo/ui/core/molecules/ui-data-grid.lolo +18 -4
- package/behaviors/lolo/ui/core/molecules/ui-data-list.lolo +18 -4
- package/behaviors/lolo/ui/core/molecules/ui-date-range-picker.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-date-range-selector.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-breadcrumb.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-pagination.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-search.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-sidebar.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-doc-toc.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-panel.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-document-viewer.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +6 -1
- package/behaviors/lolo/ui/core/molecules/ui-empty-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-error-boundary.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-error-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-feature-card.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-feature-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-filter-group.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-flex.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-flip-card.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-actions.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-field.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-layout.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-form-section-header.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-fx-overlay.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-gantt.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-geometric-pattern.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-graph-canvas.lolo +40 -5
- package/behaviors/lolo/ui/core/molecules/ui-graph-view.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-header.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-progress.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-import-source-picker.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-jazari-state-machine.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-lightbox.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-likert-scale.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-line-chart.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-loading-state.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-map-view.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-markdown-content.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-matrix-question.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-meter.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-modal.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-navigation.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-notification.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-number-stepper.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-option-constraint-group.lolo +20 -0
- package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-page-header.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-page-transition.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-pagination.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-positioned-canvas.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-progress-dots.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-pull-to-refresh.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-qr-scanner.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-quiz-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-reflection-block.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-relation-select.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-repeatable-form-section.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-rich-text-editor.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-scaled-diagram.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-search-input.lolo +7 -1
- package/behaviors/lolo/ui/core/molecules/ui-section.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-side-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-sidebar.lolo +6 -0
- package/behaviors/lolo/ui/core/molecules/ui-signature-pad.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-simple-grid.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-skeleton.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-social-proof.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-sortable-list.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-split.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-star-rating.lolo +7 -0
- package/behaviors/lolo/ui/core/molecules/ui-stat-display.lolo +10 -0
- package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +14 -0
- package/behaviors/lolo/ui/core/molecules/ui-tabs.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-tag-input.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-tooltip.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-upload-drop-zone.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-version-diff.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-violation-alert.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-vote-stack.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-navigation.lolo +8 -0
- package/behaviors/lolo/ui/core/molecules/ui-wizard-progress.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-chat-bar.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-code-runner-panel.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-dashboard-grid.lolo +10 -0
- package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +21 -5
- package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +8 -3
- package/behaviors/lolo/ui/core/organisms/ui-drawer-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-form.lolo +16 -0
- package/behaviors/lolo/ui/core/organisms/ui-master-detail-layout.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-media-gallery.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-modal-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-runtime-debugger.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-segment-renderer.lolo +9 -3
- package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +6 -0
- package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-state-machine-view.lolo +8 -3
- package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +232 -0
- package/behaviors/lolo/ui/core/organisms/ui-tabbed-container.lolo +5 -0
- package/behaviors/lolo/ui/core/organisms/ui-timeline.lolo +14 -0
- package/behaviors/lolo/ui/core/organisms/ui-toast-slot.lolo +5 -0
- package/behaviors/lolo/ui/core/templates/ui-counter-template.lolo +5 -0
- package/behaviors/lolo/ui/core/templates/ui-generic-app-template.lolo +5 -0
- package/behaviors/lolo/ui/game/.hand-authored.json +2 -2
- package/behaviors/lolo/ui/game/atoms/ui-action-palette.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-action-tile.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-canvas-2d.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-canvas.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-choice-button.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-dialogue-bubble.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-audio-toggle.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-health-bar.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-score-display.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-sequence-bar.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-state-graph.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-state-json-view.lolo +5 -0
- package/behaviors/lolo/ui/game/atoms/ui-trait-slot.lolo +7 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +5 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +6 -0
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +6 -0
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +30 -7
- package/behaviors/registry/agent/atoms/std-agent-session.orb +1509 -601
- package/behaviors/registry/agent/atoms/std-agent-tool-loop.orb +549 -116
- package/behaviors/registry/agent/atoms/std-agent-trace.orb +383 -87
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +116 -9
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/ui/avl/atoms/ui-avl-glyph.orb +20 -0
- package/behaviors/registry/ui/avl/atoms/ui-avl-state-machine.orb +19 -0
- package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +44 -21
- package/behaviors/registry/ui/core/atoms/std-board.orb +110 -14
- package/behaviors/registry/ui/core/atoms/std-browse.orb +117 -142
- package/behaviors/registry/ui/core/atoms/std-graphs.orb +14 -2
- package/behaviors/registry/ui/core/atoms/std-panel-launcher.orb +312 -0
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +40 -2
- package/behaviors/registry/ui/core/atoms/std-stats.orb +1 -1
- package/behaviors/registry/ui/core/atoms/std-tag-strip.orb +2 -0
- package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +24 -0
- package/behaviors/registry/ui/core/atoms/std-version-history.orb +8 -1
- package/behaviors/registry/ui/core/atoms/ui-animated-graphic.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-animated-reveal.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-aside.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-avatar.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-badge.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-box.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-button.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-card.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-center.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-checkbox.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-confetti-effect.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-day-cell.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-dialog.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-divider.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-filter-pill.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-flip-container.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-hstack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-icon.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-image.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-infinite-scroll-sentinel.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-input.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-label.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-overlay.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-pattern-tile.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-presence.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-progress-bar.orb +20 -1
- package/behaviors/registry/ui/core/atoms/ui-radio.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-range-slider.orb +21 -0
- package/behaviors/registry/ui/core/atoms/ui-section-header.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-select.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-spacer.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-sparkline.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-spinner.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-stack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-status-dot.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-branch.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-connection.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-flow.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-grid.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-lobe.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-mesh.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-morph.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-node.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-pulse.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-ring.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-shield.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-svg-stack.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-switch.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-text-highlight.orb +21 -0
- package/behaviors/registry/ui/core/atoms/ui-textarea.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-theme-toggle.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-time-slot-cell.orb +20 -0
- package/behaviors/registry/ui/core/atoms/ui-trend-indicator.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-typewriter-text.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-typography.orb +19 -0
- package/behaviors/registry/ui/core/atoms/ui-vstack.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-accordion.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-activation-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-feed.orb +1881 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-activity-row.orb +1817 -0
- package/behaviors/registry/ui/core/molecules/ui-agent-chat-feed.orb +1792 -0
- package/behaviors/registry/ui/core/molecules/ui-alert.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-animated-counter.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-bloom-quiz-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-calendar-grid.orb +35 -0
- package/behaviors/registry/ui/core/molecules/ui-carousel.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-change-list.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-chart.orb +32 -0
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +26 -0
- package/behaviors/registry/ui/core/molecules/ui-command-palette.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-commit-row.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-connection-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-container.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +19 -38
- package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +42 -0
- package/behaviors/registry/ui/core/molecules/ui-data-list.orb +42 -0
- package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-search.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-sidebar.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-document-details.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-drawer.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +20 -1
- package/behaviors/registry/ui/core/molecules/ui-empty-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-error-boundary.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-error-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-feature-card.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-flex.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-flip-card.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-field.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-form-section-header.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-gantt.orb +35 -0
- package/behaviors/registry/ui/core/molecules/ui-geometric-pattern.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +579 -108
- package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-header.orb +26 -0
- package/behaviors/registry/ui/core/molecules/ui-icon-button.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-input-group.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-loading-state.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-map-view.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-markdown-content.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-menu.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-meter.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-modal.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-navigation.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-notification.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-number-stepper.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +97 -0
- package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-page-header.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-page-transition.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-pagination.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-popover.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-positioned-canvas.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-progress-dots.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-pull-to-refresh.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-quiz-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-reflection-block.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-rich-text-editor.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-scaled-diagram.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-search-input.orb +21 -1
- package/behaviors/registry/ui/core/molecules/ui-section.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-side-panel.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-sidebar.orb +20 -0
- package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-simple-grid.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-skeleton.orb +38 -0
- package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-sortable-list.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-split.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-star-rating.orb +21 -0
- package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +31 -0
- package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +36 -0
- package/behaviors/registry/ui/core/molecules/ui-tabs.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-tag-input.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-tooltip.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-top-nav-item.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-vote-stack.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +19 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-navigation.orb +22 -0
- package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +53 -0
- package/behaviors/registry/ui/core/organisms/ui-code-runner-panel.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +31 -0
- package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +45 -1
- package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +22 -3
- package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-form-section.orb +38 -0
- package/behaviors/registry/ui/core/organisms/ui-form.orb +38 -0
- package/behaviors/registry/ui/core/organisms/ui-master-detail-layout.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +35 -0
- package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-runtime-debugger.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +39 -8
- package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +20 -0
- package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +35 -0
- package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -0
- package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +2222 -48
- package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +19 -0
- package/behaviors/registry/ui/core/organisms/ui-timeline.orb +36 -0
- package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +19 -0
- package/behaviors/registry/ui/core/templates/ui-counter-template.orb +19 -0
- package/behaviors/registry/ui/core/templates/ui-generic-app-template.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-canvas.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-control-button.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-score-display.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +19 -0
- package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +21 -0
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +19 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +20 -0
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +20 -0
- package/behaviors/signatures.lolo +5306 -611
- package/canonical-operators.json +35 -1
- package/dist/behaviors/exports-reader.js +10353 -13958
- package/dist/behaviors/functions/index.d.ts +666 -974
- package/dist/behaviors/functions/index.js +10340 -13930
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +10354 -13959
- package/dist/behaviors/query.js +10353 -13958
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +35 -35
- package/dist/behaviors-registry.json +31682 -26740
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10392 -13959
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1167 -815
- package/dist/modules/anim.d.ts +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/behavior.d.ts +1 -1
- package/dist/modules/browser.d.ts +1 -1
- package/dist/modules/composition.d.ts +1 -1
- package/dist/modules/contract.d.ts +1 -1
- package/dist/modules/core.d.ts +1 -1
- package/dist/modules/core.js +2 -0
- package/dist/modules/data.d.ts +1 -1
- package/dist/modules/ease.d.ts +1 -1
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/geo.d.ts +1 -1
- package/dist/modules/graph.d.ts +1 -1
- package/dist/modules/grid.d.ts +1 -1
- package/dist/modules/i18n.d.ts +17 -0
- package/dist/modules/i18n.js +22 -0
- package/dist/modules/index.d.ts +2 -1
- package/dist/modules/index.js +24 -1
- package/dist/modules/integration.d.ts +1 -1
- package/dist/modules/json.d.ts +1 -1
- package/dist/modules/llm.d.ts +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/memory.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/noise.d.ts +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +1 -1
- package/dist/modules/path.d.ts +1 -1
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/session.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/trace.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/modules/vector.d.ts +1 -1
- package/dist/modules/workspace.d.ts +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/dist/registry.d.ts +10 -3
- package/dist/registry.js +31 -1
- package/dist/{types-DLx38UFZ.d.ts → types-Cdb321uM.d.ts} +9 -3
- package/i18n/ar.json +1 -0
- package/i18n/en.json +1 -0
- package/i18n/sl.json +1 -0
- package/package.json +3 -3
- package/behaviors/lolo/ui/core/atoms/std-list.lolo +0 -613
- package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +0 -399
- package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +0 -379
- package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +0 -447
- package/behaviors/lolo/ui/core/organisms/ui-master-detail.lolo +0 -276
- package/behaviors/registry/ui/core/atoms/std-list.orb +0 -2135
- package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +0 -1346
- package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +0 -1248
- package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +0 -1761
- package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +0 -715
|
@@ -1,613 +0,0 @@
|
|
|
1
|
-
app std-list "1.0.0"
|
|
2
|
-
"std-list as a Function"
|
|
3
|
-
type FilterSpec = { field : string!, label : string, options : [string] }
|
|
4
|
-
type ItemAction = { label : string!, event : event, variant : string, roles : [string], when : SExpr }
|
|
5
|
-
;;
|
|
6
|
-
;; Daisy-chain composition showcase: no `on EVENT { ... }` trait-ref overrides.
|
|
7
|
-
;; Modal + Confirmation trait refs are configured via `config: { ... }` at the
|
|
8
|
-
;; call site. Side effects (persist) live in a sibling coordinator trait
|
|
9
|
-
;; (`ListItemPersistor`) that listens for the modal/confirmation trait emits.
|
|
10
|
-
;;
|
|
11
|
-
;; Mirrors std-cart's structure. std-list omits the read-only VIEW path that the
|
|
12
|
-
;; old version had — form-section's mode set only supports "create" | "edit",
|
|
13
|
-
;; and a dedicated detail-view pattern is tracked separately (std-detail).
|
|
14
|
-
orbital ListItemOrbital {
|
|
15
|
-
uses RoleGate from "std/behaviors/std-role-gate"
|
|
16
|
-
|
|
17
|
-
uses Button from "std/behaviors/ui-button"
|
|
18
|
-
|
|
19
|
-
uses Confirmation from "std/behaviors/std-confirmation"
|
|
20
|
-
|
|
21
|
-
uses Modal from "std/behaviors/std-modal"
|
|
22
|
-
|
|
23
|
-
type ListItemLoaded = Event { data : [ListItem] } "Fired when the ListItem collection finishes loading; payload.data holds the list"
|
|
24
|
-
|
|
25
|
-
type ListItemLoadFailed = Event { error : string!, code : string } "Fired when the ListItem collection fails to load"
|
|
26
|
-
|
|
27
|
-
entity ListItem [persistent: listitems] {
|
|
28
|
-
id : string!
|
|
29
|
-
name : string! @description "The text displayed for this list item." @synonyms "label, text, display"
|
|
30
|
-
description : string @description "A brief explanation of the list item's content." @synonyms "text, details, notes, explanation"
|
|
31
|
-
status : "active" | "inactive" | "pending" @description "Current operational state of the item." @synonyms "state, condition, flag" = active
|
|
32
|
-
createdAt : string
|
|
33
|
-
pendingId : string @description "Identifier for a related, pending item." @synonyms "reference, relatedId, linkId" = ""
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
trait ListItemBrowse -> @rebindable ListItem [interaction, collection] {
|
|
37
|
-
initial: loading
|
|
38
|
-
|
|
39
|
-
state loading {
|
|
40
|
-
INIT -> loading
|
|
41
|
-
(fetch ListItem {
|
|
42
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
43
|
-
})
|
|
44
|
-
(render-ui main {
|
|
45
|
-
type: stack
|
|
46
|
-
direction: vertical
|
|
47
|
-
gap: lg
|
|
48
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
49
|
-
})
|
|
50
|
-
ListItemLoaded -> browsing
|
|
51
|
-
(render-ui main {
|
|
52
|
-
children: [{
|
|
53
|
-
children: [{
|
|
54
|
-
children: [{ name: list, size: xl, type: icon }, {
|
|
55
|
-
content: ListItems
|
|
56
|
-
type: typography
|
|
57
|
-
variant: h2
|
|
58
|
-
}]
|
|
59
|
-
direction: horizontal
|
|
60
|
-
gap: md
|
|
61
|
-
type: stack
|
|
62
|
-
}, <trait.ListItemCreateGate />]
|
|
63
|
-
direction: horizontal
|
|
64
|
-
gap: md
|
|
65
|
-
justify: between
|
|
66
|
-
type: stack
|
|
67
|
-
}, { type: divider }, (if @config.bodySearch {
|
|
68
|
-
children: [{
|
|
69
|
-
className: "w-full max-w-md"
|
|
70
|
-
clearable: true
|
|
71
|
-
event: REFETCH_QUERY
|
|
72
|
-
placeholder: @config.searchPlaceholder
|
|
73
|
-
type: search-input
|
|
74
|
-
}]
|
|
75
|
-
direction: horizontal
|
|
76
|
-
gap: sm
|
|
77
|
-
type: stack
|
|
78
|
-
} {
|
|
79
|
-
children: []
|
|
80
|
-
gap: none
|
|
81
|
-
type: stack
|
|
82
|
-
}), (if [">", (array/len @config.filters), 0] {
|
|
83
|
-
children: [{
|
|
84
|
-
entity: ListItem
|
|
85
|
-
event: REFETCH_FILTER
|
|
86
|
-
filters: @config.filters
|
|
87
|
-
look: @config.filterBarLook
|
|
88
|
-
type: filter-group
|
|
89
|
-
}]
|
|
90
|
-
direction: horizontal
|
|
91
|
-
gap: sm
|
|
92
|
-
type: stack
|
|
93
|
-
} {
|
|
94
|
-
children: []
|
|
95
|
-
gap: none
|
|
96
|
-
type: stack
|
|
97
|
-
}), {
|
|
98
|
-
entity: ?data
|
|
99
|
-
fields: [{
|
|
100
|
-
icon: list
|
|
101
|
-
label: Name
|
|
102
|
-
name: name
|
|
103
|
-
variant: h4
|
|
104
|
-
}, {
|
|
105
|
-
label: Description
|
|
106
|
-
name: description
|
|
107
|
-
variant: caption
|
|
108
|
-
}, {
|
|
109
|
-
label: Status
|
|
110
|
-
name: status
|
|
111
|
-
variant: badge
|
|
112
|
-
}]
|
|
113
|
-
itemClickEvent: @config.itemClickEvent
|
|
114
|
-
itemActions: (array/filter @config.itemActions (fn action (or (= (array/len (object/get @action roles [])) 0) (array/includes (object/get @action roles []) @config.viewerRole))))
|
|
115
|
-
pageSize: @config.displayPageSize
|
|
116
|
-
type: data-grid
|
|
117
|
-
}]
|
|
118
|
-
className: "max-w-5xl mx-auto w-full"
|
|
119
|
-
direction: vertical
|
|
120
|
-
gap: lg
|
|
121
|
-
type: stack
|
|
122
|
-
})
|
|
123
|
-
ListItemLoadFailed -> error
|
|
124
|
-
(render-ui main {
|
|
125
|
-
align: center
|
|
126
|
-
children: [{
|
|
127
|
-
color: error
|
|
128
|
-
name: alert-triangle
|
|
129
|
-
size: lg
|
|
130
|
-
type: icon
|
|
131
|
-
}, {
|
|
132
|
-
content: "Failed to load list"
|
|
133
|
-
type: typography
|
|
134
|
-
variant: h3
|
|
135
|
-
}, {
|
|
136
|
-
color: muted
|
|
137
|
-
content: ?error
|
|
138
|
-
type: typography
|
|
139
|
-
variant: body
|
|
140
|
-
}, {
|
|
141
|
-
action: RETRY
|
|
142
|
-
icon: rotate-ccw
|
|
143
|
-
label: Retry
|
|
144
|
-
type: button
|
|
145
|
-
variant: primary
|
|
146
|
-
}]
|
|
147
|
-
className: py-12
|
|
148
|
-
direction: vertical
|
|
149
|
-
gap: md
|
|
150
|
-
type: stack
|
|
151
|
-
})
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
state browsing {
|
|
155
|
-
INIT -> loading
|
|
156
|
-
(fetch ListItem {
|
|
157
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
158
|
-
})
|
|
159
|
-
(render-ui main {
|
|
160
|
-
type: stack
|
|
161
|
-
direction: vertical
|
|
162
|
-
gap: lg
|
|
163
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
164
|
-
})
|
|
165
|
-
;; REFETCH_* stays in `browsing` and DOES NOT replace the grid with a
|
|
166
|
-
;; spinner — same reasoning as std-browse's REFETCH_* arms: a skeleton
|
|
167
|
-
;; on refetch unmounts the grid and flickers every keystroke. The fetch
|
|
168
|
-
;; fires in the background; the ListItemLoaded arm below re-renders in
|
|
169
|
-
;; place once it lands.
|
|
170
|
-
REFETCH_QUERY -> browsing
|
|
171
|
-
(fetch ListItem {
|
|
172
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
173
|
-
filter: (or ["=", ?searchTerm, ""] (str/includes (object/get @entity @config.searchField) ?searchTerm))
|
|
174
|
-
})
|
|
175
|
-
REFETCH_FILTER -> browsing
|
|
176
|
-
(fetch ListItem {
|
|
177
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
178
|
-
filter: (or ["=", ?value, ""] ["=", (object/get @entity ?field), ?value])
|
|
179
|
-
})
|
|
180
|
-
;; No filter carried over on REFETCH_PAGE, mirroring std-browse exactly.
|
|
181
|
-
REFETCH_PAGE -> browsing
|
|
182
|
-
(fetch ListItem {
|
|
183
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
184
|
-
limit: @config.pageSize
|
|
185
|
-
offset: ["*", ["-", ?page, 1], @config.pageSize]
|
|
186
|
-
})
|
|
187
|
-
ListItemLoadFailed -> browsing
|
|
188
|
-
(notify error (str/concat "Couldn't refresh the list — " ?error))
|
|
189
|
-
ListItemLoaded -> browsing
|
|
190
|
-
(render-ui main {
|
|
191
|
-
children: [{
|
|
192
|
-
children: [{
|
|
193
|
-
children: [{ name: list, size: xl, type: icon }, {
|
|
194
|
-
content: ListItems
|
|
195
|
-
type: typography
|
|
196
|
-
variant: h2
|
|
197
|
-
}]
|
|
198
|
-
direction: horizontal
|
|
199
|
-
gap: md
|
|
200
|
-
type: stack
|
|
201
|
-
}, <trait.ListItemCreateGate />]
|
|
202
|
-
direction: horizontal
|
|
203
|
-
gap: md
|
|
204
|
-
justify: between
|
|
205
|
-
type: stack
|
|
206
|
-
}, { type: divider }, (if @config.bodySearch {
|
|
207
|
-
children: [{
|
|
208
|
-
className: "w-full max-w-md"
|
|
209
|
-
clearable: true
|
|
210
|
-
event: REFETCH_QUERY
|
|
211
|
-
placeholder: @config.searchPlaceholder
|
|
212
|
-
type: search-input
|
|
213
|
-
}]
|
|
214
|
-
direction: horizontal
|
|
215
|
-
gap: sm
|
|
216
|
-
type: stack
|
|
217
|
-
} {
|
|
218
|
-
children: []
|
|
219
|
-
gap: none
|
|
220
|
-
type: stack
|
|
221
|
-
}), (if [">", (array/len @config.filters), 0] {
|
|
222
|
-
children: [{
|
|
223
|
-
entity: ListItem
|
|
224
|
-
event: REFETCH_FILTER
|
|
225
|
-
filters: @config.filters
|
|
226
|
-
look: @config.filterBarLook
|
|
227
|
-
type: filter-group
|
|
228
|
-
}]
|
|
229
|
-
direction: horizontal
|
|
230
|
-
gap: sm
|
|
231
|
-
type: stack
|
|
232
|
-
} {
|
|
233
|
-
children: []
|
|
234
|
-
gap: none
|
|
235
|
-
type: stack
|
|
236
|
-
}), {
|
|
237
|
-
entity: ?data
|
|
238
|
-
fields: [{
|
|
239
|
-
icon: list
|
|
240
|
-
label: Name
|
|
241
|
-
name: name
|
|
242
|
-
variant: h4
|
|
243
|
-
}, {
|
|
244
|
-
label: Description
|
|
245
|
-
name: description
|
|
246
|
-
variant: caption
|
|
247
|
-
}, {
|
|
248
|
-
label: Status
|
|
249
|
-
name: status
|
|
250
|
-
variant: badge
|
|
251
|
-
}]
|
|
252
|
-
itemClickEvent: @config.itemClickEvent
|
|
253
|
-
itemActions: (array/filter @config.itemActions (fn action (or (= (array/len (object/get @action roles [])) 0) (array/includes (object/get @action roles []) @config.viewerRole))))
|
|
254
|
-
pageSize: @config.displayPageSize
|
|
255
|
-
type: data-grid
|
|
256
|
-
}]
|
|
257
|
-
className: "max-w-5xl mx-auto w-full"
|
|
258
|
-
direction: vertical
|
|
259
|
-
gap: lg
|
|
260
|
-
type: stack
|
|
261
|
-
})
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
state error {
|
|
265
|
-
INIT -> loading
|
|
266
|
-
(fetch ListItem {
|
|
267
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
268
|
-
})
|
|
269
|
-
(render-ui main {
|
|
270
|
-
type: stack
|
|
271
|
-
direction: vertical
|
|
272
|
-
gap: lg
|
|
273
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
274
|
-
})
|
|
275
|
-
;; the error screen's Retry button: INIT is lifecycle-only and the bus never
|
|
276
|
-
;; delivers it, so the affordance must target a first-class user event
|
|
277
|
-
RETRY -> loading
|
|
278
|
-
(fetch ListItem {
|
|
279
|
-
emit: { failure: ListItemLoadFailed, success: ListItemLoaded }
|
|
280
|
-
})
|
|
281
|
-
(render-ui main {
|
|
282
|
-
type: stack
|
|
283
|
-
direction: vertical
|
|
284
|
-
gap: lg
|
|
285
|
-
children: [{ type: skeleton, variant: header }, { type: skeleton, variant: list, rows: 6 }]
|
|
286
|
-
})
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
emits {
|
|
290
|
-
CREATE
|
|
291
|
-
@description "Signals a new item has been successfully created."
|
|
292
|
-
@synonyms "added, new, added, insert"
|
|
293
|
-
@tier "domain"
|
|
294
|
-
EDIT {
|
|
295
|
-
id : string!
|
|
296
|
-
row : { id : string!, name : string!, description : string, status : string, createdAt : string }
|
|
297
|
-
}
|
|
298
|
-
DELETE {
|
|
299
|
-
id : string!
|
|
300
|
-
row : { id : string!, name : string!, description : string, status : string, createdAt : string }
|
|
301
|
-
}
|
|
302
|
-
ListItemLoaded
|
|
303
|
-
@description "Signals a list item has been successfully loaded."
|
|
304
|
-
@synonyms "loaded, fetched, retrieved"
|
|
305
|
-
@tier "domain"
|
|
306
|
-
ListItemLoadFailed
|
|
307
|
-
@description "Indicates a failure to load a list item."
|
|
308
|
-
@synonyms "error, failure, problem, unsuccessful"
|
|
309
|
-
@tier "internal"
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
listens {
|
|
313
|
-
ListItemLoadFailed {
|
|
314
|
-
error : string!
|
|
315
|
-
code : string
|
|
316
|
-
}
|
|
317
|
-
@description "Indicates a failure to load a list item."
|
|
318
|
-
@synonyms "error, failure, problem, unsuccessful"
|
|
319
|
-
@tier "internal"
|
|
320
|
-
ListItemPersistor.ITEM_CREATED -> INIT
|
|
321
|
-
ListItemPersistor.ITEM_UPDATED -> INIT
|
|
322
|
-
ListItemPersistor.ITEM_DELETED -> INIT
|
|
323
|
-
REFETCH_QUERY {
|
|
324
|
-
searchTerm : string!
|
|
325
|
-
}
|
|
326
|
-
@description "Triggers a list refresh based on the current search term."
|
|
327
|
-
@synonyms "refresh, reload, update, re-query, search"
|
|
328
|
-
@tier "domain"
|
|
329
|
-
REFETCH_FILTER {
|
|
330
|
-
entity : string!
|
|
331
|
-
field : string!
|
|
332
|
-
value : string!
|
|
333
|
-
query : string
|
|
334
|
-
}
|
|
335
|
-
@description "Triggers a list refresh based on current filter criteria."
|
|
336
|
-
@synonyms "refresh, filter, update, reload"
|
|
337
|
-
@tier "domain"
|
|
338
|
-
REFETCH_PAGE {
|
|
339
|
-
page : number!
|
|
340
|
-
}
|
|
341
|
-
@description "Triggers a list page refresh."
|
|
342
|
-
@synonyms "reload, refresh, update, paginate"
|
|
343
|
-
@tier "domain"
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
config {
|
|
347
|
-
searchField : string = "name"
|
|
348
|
-
@label "Which column does the search box match against?"
|
|
349
|
-
@description "Name the field on this entity the search box's str/includes filter matches against. Declared, never inferred: an entity with no `name` column must set this to a real field (e.g. title, label) or the search box can never match a row."
|
|
350
|
-
@synonyms "search column, search on field, match field, search key"
|
|
351
|
-
@tier "policy"
|
|
352
|
-
bodySearch : boolean = false
|
|
353
|
-
@label "Show the list's own search box?"
|
|
354
|
-
@description "Embeds a search box above the grid. Set true only when the page has no other search affordance (e.g. no page-level std-search), so the surface shows one search box instead of two. False is the default — this atom has never had a search box (0 consumers today)."
|
|
355
|
-
@synonyms "inline search, list search, built-in search, show search"
|
|
356
|
-
@tier "presentation"
|
|
357
|
-
searchPlaceholder : string = "Search…"
|
|
358
|
-
@label "Search box placeholder text"
|
|
359
|
-
@description "Hint text inside the list search box."
|
|
360
|
-
@synonyms "search hint, placeholder, search box text"
|
|
361
|
-
@tier "presentation"
|
|
362
|
-
filters : [FilterSpec] = []
|
|
363
|
-
@label "Which filters should appear above the grid?"
|
|
364
|
-
@description "Dropdown filter facets by field, rendered as an embedded filter bar above the rows; each selection fires REFETCH_FILTER on this trait. Empty (the default) = no filter bar, the right setting whenever the page already composes std-filter beside this list and routes XFilter.FILTER -> REFETCH_FILTER — that is the wired owner and remains the primary path. Use this knob only for a standalone list with no page-level filter affordance."
|
|
365
|
-
@synonyms "filter bar, faceted filters, field filters, dropdowns"
|
|
366
|
-
@tier "presentation"
|
|
367
|
-
filterBarLook : "toolbar" | "chips" | "pills" | "popover-trigger" | "inline-column-header" = toolbar
|
|
368
|
-
@label "Filter bar look"
|
|
369
|
-
@description "Visual treatment for the embedded filter bar, mirroring std-filter's own enum. Only applies when `filters` is non-empty."
|
|
370
|
-
@synonyms "filter bar style, facet style, chips, pills"
|
|
371
|
-
@tier "presentation"
|
|
372
|
-
pageSize : number = 20
|
|
373
|
-
@label "How many rows per page when paging?"
|
|
374
|
-
@description "Records fetched from the server per REFETCH_PAGE request. The initial load and search/filter refetches remain unpaginated (load everything that matches) unless a consumer wires REFETCH_PAGE, so the default list surface is unchanged."
|
|
375
|
-
@synonyms "fetch limit, records per page, page limit"
|
|
376
|
-
@tier "presentation"
|
|
377
|
-
displayPageSize : number = 20
|
|
378
|
-
@label "How many rows to show at once?"
|
|
379
|
-
@description "Rows visible per page before the data-grid's own pagination control appears — 20 matches the CRUD-list density sweet spot (Miller's law, 10-25 rows)."
|
|
380
|
-
@synonyms "visible rows, items per page, display limit, show per page"
|
|
381
|
-
@tier "presentation"
|
|
382
|
-
itemClickEvent : event = EDIT
|
|
383
|
-
@label "Which event does clicking a row fire?"
|
|
384
|
-
@description "Row-click channel; empty = rows are not clickable."
|
|
385
|
-
@synonyms "row click event, item click, open event"
|
|
386
|
-
@tier "presentation"
|
|
387
|
-
itemActions : [ItemAction] = [{
|
|
388
|
-
event: EDIT
|
|
389
|
-
label: Edit
|
|
390
|
-
variant: ghost
|
|
391
|
-
}, {
|
|
392
|
-
event: DELETE
|
|
393
|
-
label: Delete
|
|
394
|
-
variant: danger
|
|
395
|
-
}]
|
|
396
|
-
@label "Row actions"
|
|
397
|
-
@description "Actions offered on each row; give an item `roles` to show it only to those viewer roles."
|
|
398
|
-
@tier "presentation"
|
|
399
|
-
viewerRole : string = ""
|
|
400
|
-
@label "Viewer's role"
|
|
401
|
-
@description "The signed-in viewer's role that each action's `roles` is checked against. Bind it explicitly at the call site (e.g. `viewerRole: @user.role`) in an app whose identity carries a role; left empty, only actions with no `roles` show."
|
|
402
|
-
@tier "policy"
|
|
403
|
-
createRoles : [string] = []
|
|
404
|
-
@label "Roles that can create"
|
|
405
|
-
@description "Roles (matched against viewerRole) that see the Create button. Empty = everyone."
|
|
406
|
-
@tier "policy"
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
trait ListItemCreateButton = Button.traits.ButtonRender {
|
|
411
|
-
config {
|
|
412
|
-
action: CREATE
|
|
413
|
-
icon: plus
|
|
414
|
-
label: Create
|
|
415
|
-
variant: primary
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
trait ListItemCreateGate = RoleGate.traits.RoleGate {
|
|
420
|
-
config {
|
|
421
|
-
roles: @config.createRoles
|
|
422
|
-
viewerRole: @config.viewerRole
|
|
423
|
-
content: <trait.ListItemCreateButton />
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
;; row carries the public display contract (no internal pendingId)
|
|
428
|
-
;; so EDIT/DELETE agree with other browse emitters app-wide.
|
|
429
|
-
;; Create modal: configured via `config`, no effects overrides.
|
|
430
|
-
;; SAVE is renamed to LIST_ITEM_CREATED so the Persistor coordinator
|
|
431
|
-
;; distinguishes Create-SAVE from Edit-SAVE without source-scoped listens.
|
|
432
|
-
trait ListItemCreate = Modal.traits.ModalRecordModal -> ListItem {
|
|
433
|
-
events {
|
|
434
|
-
OPEN: CREATE
|
|
435
|
-
SAVE: LIST_ITEM_CREATED
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
config {
|
|
439
|
-
icon: plus-circle
|
|
440
|
-
title: "Create ListItem"
|
|
441
|
-
fields: (name description status)
|
|
442
|
-
mode: create
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
listens {
|
|
446
|
-
ListItemBrowse.CREATE -> CREATE
|
|
447
|
-
CREATE {
|
|
448
|
-
id : string
|
|
449
|
-
row : ListItem
|
|
450
|
-
}
|
|
451
|
-
@description "Indicates a new item has been created."
|
|
452
|
-
@synonyms "add, new, insert"
|
|
453
|
-
@tier "domain"
|
|
454
|
-
SAVE {
|
|
455
|
-
data : @entity!
|
|
456
|
-
}
|
|
457
|
-
@description "Data has been successfully saved."
|
|
458
|
-
@synonyms "persist, store, commit"
|
|
459
|
-
@tier "domain"
|
|
460
|
-
ModalRecordLoadFailed {
|
|
461
|
-
error : string
|
|
462
|
-
code : string
|
|
463
|
-
}
|
|
464
|
-
@description "Indicates failure to load a record for a modal."
|
|
465
|
-
@synonyms "error, failure, problem, unsuccessful"
|
|
466
|
-
@tier "internal"
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
;; Edit modal: configured via `config`, no effects overrides.
|
|
471
|
-
;; SAVE is renamed to LIST_ITEM_UPDATED so the Persistor coordinator
|
|
472
|
-
;; distinguishes Edit-SAVE from Create-SAVE.
|
|
473
|
-
trait ListItemEdit = Modal.traits.ModalRecordModal -> ListItem {
|
|
474
|
-
events {
|
|
475
|
-
OPEN: EDIT
|
|
476
|
-
SAVE: LIST_ITEM_UPDATED
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
config {
|
|
480
|
-
icon: edit
|
|
481
|
-
title: "Edit ListItem"
|
|
482
|
-
fields: (name description status)
|
|
483
|
-
mode: edit
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
listens {
|
|
487
|
-
ListItemBrowse.EDIT -> EDIT
|
|
488
|
-
EDIT {
|
|
489
|
-
id : string
|
|
490
|
-
row : ListItem
|
|
491
|
-
}
|
|
492
|
-
@description "Indicates a request to modify an existing item."
|
|
493
|
-
@synonyms "modify, update, change"
|
|
494
|
-
@tier "domain"
|
|
495
|
-
SAVE {
|
|
496
|
-
data : @entity!
|
|
497
|
-
}
|
|
498
|
-
@description "Data has been persisted successfully."
|
|
499
|
-
@synonyms "persist, store, commit, update"
|
|
500
|
-
@tier "domain"
|
|
501
|
-
ModalRecordLoadFailed {
|
|
502
|
-
error : string
|
|
503
|
-
code : string
|
|
504
|
-
}
|
|
505
|
-
@description "Indicates a failure to load a record into a modal window."
|
|
506
|
-
@synonyms "error, failure, problem, unsuccessful"
|
|
507
|
-
@tier "internal"
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
;; Delete-confirm: configured via `config`, no effects overrides.
|
|
512
|
-
trait ListItemDelete = Confirmation.traits.ConfirmActionConfirmation -> ListItem {
|
|
513
|
-
events {
|
|
514
|
-
REQUEST: DELETE
|
|
515
|
-
CONFIRM: CONFIRM_DELETE
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
config {
|
|
519
|
-
icon: alert-triangle
|
|
520
|
-
title: "Delete ListItem"
|
|
521
|
-
alertMessage: "This action cannot be undone."
|
|
522
|
-
confirmLabel: Delete
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
listens {
|
|
526
|
-
ListItemBrowse.DELETE -> DELETE
|
|
527
|
-
DELETE {
|
|
528
|
-
id : string
|
|
529
|
-
row : ListItem
|
|
530
|
-
}
|
|
531
|
-
@description "Indicates a record has been removed from the list."
|
|
532
|
-
@synonyms "remove, discard, clear"
|
|
533
|
-
@tier "domain"
|
|
534
|
-
ConfirmActionLoadFailed {
|
|
535
|
-
error : string
|
|
536
|
-
code : string
|
|
537
|
-
}
|
|
538
|
-
@description "Indicates a failure to load data for an action."
|
|
539
|
-
@synonyms "error, failure, problem, unsuccessful"
|
|
540
|
-
@tier "internal"
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
;; Coordinator trait: owns the persist side-effects triggered by the
|
|
545
|
-
;; Modal/Confirmation trait refs' emits. Replaces the old per-ref
|
|
546
|
-
;; `on SAVE { (persist ...) }` override pattern.
|
|
547
|
-
trait ListItemPersistor -> ListItem [lifecycle, instance] {
|
|
548
|
-
initial: idle
|
|
549
|
-
|
|
550
|
-
state idle {
|
|
551
|
-
INIT -> idle
|
|
552
|
-
DO_CREATE -> idle
|
|
553
|
-
(persist create ListItem ?data {
|
|
554
|
-
emit: { success: ITEM_CREATED }
|
|
555
|
-
})
|
|
556
|
-
DO_UPDATE -> idle
|
|
557
|
-
(persist update ListItem ?data {
|
|
558
|
-
emit: { success: ITEM_UPDATED }
|
|
559
|
-
})
|
|
560
|
-
DO_DELETE -> idle
|
|
561
|
-
(persist delete ListItem ?id {
|
|
562
|
-
emit: { success: ITEM_DELETED }
|
|
563
|
-
})
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
emits {
|
|
567
|
-
ITEM_CREATED -> external {
|
|
568
|
-
id : string!
|
|
569
|
-
}
|
|
570
|
-
@description "Signals a new item has been added to the list."
|
|
571
|
-
@synonyms "added, new, appended"
|
|
572
|
-
@tier "domain"
|
|
573
|
-
ITEM_UPDATED -> external {
|
|
574
|
-
id : string!
|
|
575
|
-
}
|
|
576
|
-
@description "Signals a change in an item's data."
|
|
577
|
-
@synonyms "modified, changed, refreshed"
|
|
578
|
-
@tier "presentation"
|
|
579
|
-
ITEM_DELETED -> external {
|
|
580
|
-
id : string!
|
|
581
|
-
}
|
|
582
|
-
@description "Signals that a list item has been removed."
|
|
583
|
-
@synonyms "removed, discarded, purged"
|
|
584
|
-
@tier "domain"
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
listens {
|
|
588
|
-
DO_CREATE {
|
|
589
|
-
data : ListItem!
|
|
590
|
-
}
|
|
591
|
-
@description "Indicates a request to create a new item."
|
|
592
|
-
@synonyms "add, new, insert"
|
|
593
|
-
@tier "domain"
|
|
594
|
-
DO_UPDATE {
|
|
595
|
-
data : ListItem!
|
|
596
|
-
}
|
|
597
|
-
@description "Indicates a data item has been modified."
|
|
598
|
-
@synonyms "modified, changed, refreshed"
|
|
599
|
-
@tier "domain"
|
|
600
|
-
DO_DELETE {
|
|
601
|
-
id : string!
|
|
602
|
-
}
|
|
603
|
-
@description "Indicates a request to remove an item from the list."
|
|
604
|
-
@synonyms "remove, discard, erase"
|
|
605
|
-
@tier "domain"
|
|
606
|
-
ListItemCreate.LIST_ITEM_CREATED -> DO_CREATE
|
|
607
|
-
ListItemEdit.LIST_ITEM_UPDATED -> DO_UPDATE
|
|
608
|
-
ListItemDelete.CONFIRM_DELETE -> DO_DELETE
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
page "/listitems" as ListItemPage -> ListItemBrowse, ListItemCreate, ListItemEdit, ListItemDelete, ListItemPersistor
|
|
613
|
-
}
|