@softov/scena 0.1.2
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/controls/command.d.ts +18 -0
- package/dist/controls/command.js +150 -0
- package/dist/controls/events.d.ts +3 -0
- package/dist/controls/events.js +43 -0
- package/dist/controls/index.d.ts +10 -0
- package/dist/controls/index.js +10 -0
- package/dist/controls/keybinding.d.ts +9 -0
- package/dist/controls/keybinding.js +94 -0
- package/dist/controls/layout.d.ts +16 -0
- package/dist/controls/layout.js +201 -0
- package/dist/controls/manifest.d.ts +21 -0
- package/dist/controls/manifest.js +219 -0
- package/dist/controls/session.d.ts +16 -0
- package/dist/controls/session.js +95 -0
- package/dist/controls/shell.d.ts +8 -0
- package/dist/controls/shell.js +48 -0
- package/dist/controls/storage/layout-local.d.ts +6 -0
- package/dist/controls/storage/layout-local.js +47 -0
- package/dist/controls/storage/session-local.d.ts +5 -0
- package/dist/controls/storage/session-local.js +38 -0
- package/dist/controls/when.d.ts +7 -0
- package/dist/controls/when.js +226 -0
- package/dist/converters/a2ui-v0.10.d.ts +23 -0
- package/dist/converters/a2ui-v0.10.js +136 -0
- package/dist/converters/index.d.ts +1 -0
- package/dist/converters/index.js +1 -0
- package/dist/core/backends/modus-backend.d.ts +13 -0
- package/dist/core/backends/modus-backend.js +115 -0
- package/dist/core/backends/storage-backend.d.ts +7 -0
- package/dist/core/backends/storage-backend.js +73 -0
- package/dist/core/backends/yjs-backend.d.ts +3 -0
- package/dist/core/backends/yjs-backend.js +44 -0
- package/dist/core/binding-resolver.d.ts +7 -0
- package/dist/core/binding-resolver.js +106 -0
- package/dist/core/component-graph.d.ts +6 -0
- package/dist/core/component-graph.js +77 -0
- package/dist/core/component-registry.d.ts +7 -0
- package/dist/core/component-registry.js +87 -0
- package/dist/core/computed-dsl.d.ts +2 -0
- package/dist/core/computed-dsl.js +267 -0
- package/dist/core/converter-registry.d.ts +2 -0
- package/dist/core/converter-registry.js +37 -0
- package/dist/core/disposable.d.ts +3 -0
- package/dist/core/disposable.js +19 -0
- package/dist/core/dynamic-resolver.d.ts +12 -0
- package/dist/core/dynamic-resolver.js +134 -0
- package/dist/core/index.d.ts +44 -0
- package/dist/core/index.js +48 -0
- package/dist/core/label.d.ts +2 -0
- package/dist/core/label.js +14 -0
- package/dist/core/mount-menu.d.ts +2 -0
- package/dist/core/mount-menu.js +23 -0
- package/dist/core/mount-surface.d.ts +15 -0
- package/dist/core/mount-surface.js +214 -0
- package/dist/core/path-resolver.d.ts +14 -0
- package/dist/core/path-resolver.js +169 -0
- package/dist/core/permissions.d.ts +2 -0
- package/dist/core/permissions.js +50 -0
- package/dist/core/reactive-store.d.ts +17 -0
- package/dist/core/reactive-store.js +496 -0
- package/dist/core/scena.d.ts +2 -0
- package/dist/core/scena.js +115 -0
- package/dist/core/surface-presentation.d.ts +6 -0
- package/dist/core/surface-presentation.js +12 -0
- package/dist/i18n/i18n-backend.d.ts +2 -0
- package/dist/i18n/i18n-backend.js +35 -0
- package/dist/i18n/registry.d.ts +32 -0
- package/dist/i18n/registry.js +200 -0
- package/dist/porta/Limen.css +50 -0
- package/dist/porta/Limen.d.ts +16 -0
- package/dist/porta/Limen.js +14 -0
- package/dist/porta/PortaContext.d.ts +10 -0
- package/dist/porta/PortaContext.js +20 -0
- package/dist/porta/PortaLock.css +14 -0
- package/dist/porta/PortaLock.d.ts +10 -0
- package/dist/porta/PortaLock.js +13 -0
- package/dist/porta/SigillumGate.d.ts +8 -0
- package/dist/porta/SigillumGate.js +7 -0
- package/dist/porta/commands.d.ts +3 -0
- package/dist/porta/commands.js +125 -0
- package/dist/porta/index.d.ts +18 -0
- package/dist/porta/index.js +22 -0
- package/dist/porta/login-form.block.d.ts +2 -0
- package/dist/porta/login-form.block.js +7 -0
- package/dist/porta/match.d.ts +2 -0
- package/dist/porta/match.js +20 -0
- package/dist/porta/provider.d.ts +59 -0
- package/dist/porta/provider.js +1 -0
- package/dist/porta/providers/examples/google-oauth.d.ts +6 -0
- package/dist/porta/providers/examples/google-oauth.js +21 -0
- package/dist/porta/providers/examples/index.d.ts +6 -0
- package/dist/porta/providers/examples/index.js +3 -0
- package/dist/porta/providers/examples/magic-link.d.ts +8 -0
- package/dist/porta/providers/examples/magic-link.js +31 -0
- package/dist/porta/providers/examples/sms-otp.d.ts +9 -0
- package/dist/porta/providers/examples/sms-otp.js +31 -0
- package/dist/porta/providers/password.d.ts +12 -0
- package/dist/porta/providers/password.js +46 -0
- package/dist/porta/register-blocks.d.ts +3 -0
- package/dist/porta/register-blocks.js +31 -0
- package/dist/porta/register.d.ts +15 -0
- package/dist/porta/register.js +31 -0
- package/dist/porta/sigillum.d.ts +19 -0
- package/dist/porta/sigillum.js +41 -0
- package/dist/react/DefaultShell.d.ts +1 -0
- package/dist/react/DefaultShell.js +37 -0
- package/dist/react/Scena.d.ts +9 -0
- package/dist/react/Scena.js +20 -0
- package/dist/react/ScenaProvider.d.ts +8 -0
- package/dist/react/ScenaProvider.js +13 -0
- package/dist/react/ShellSplitter.d.ts +13 -0
- package/dist/react/ShellSplitter.js +88 -0
- package/dist/react/SurfaceArea.d.ts +13 -0
- package/dist/react/SurfaceArea.js +75 -0
- package/dist/react/Translate.d.ts +8 -0
- package/dist/react/Translate.js +10 -0
- package/dist/react/ViewMount.d.ts +12 -0
- package/dist/react/ViewMount.js +268 -0
- package/dist/react/core.d.ts +6 -0
- package/dist/react/core.js +10 -0
- package/dist/react/hooks/useCommand.d.ts +1 -0
- package/dist/react/hooks/useCommand.js +6 -0
- package/dist/react/hooks/useI18n.d.ts +9 -0
- package/dist/react/hooks/useI18n.js +16 -0
- package/dist/react/hooks/useLabel.d.ts +2 -0
- package/dist/react/hooks/useLabel.js +19 -0
- package/dist/react/hooks/useLayout.d.ts +2 -0
- package/dist/react/hooks/useLayout.js +10 -0
- package/dist/react/hooks/useMounts.d.ts +2 -0
- package/dist/react/hooks/useMounts.js +17 -0
- package/dist/react/hooks/useStore.d.ts +3 -0
- package/dist/react/hooks/useStore.js +40 -0
- package/dist/react/hooks/useStoreLabel.d.ts +3 -0
- package/dist/react/hooks/useStoreLabel.js +25 -0
- package/dist/react/hooks/useSurfacePresentation.d.ts +4 -0
- package/dist/react/hooks/useSurfacePresentation.js +16 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +20 -0
- package/dist/react/mount-context.d.ts +8 -0
- package/dist/react/mount-context.js +20 -0
- package/dist/react/useSurfaceResize.d.ts +39 -0
- package/dist/react/useSurfaceResize.js +135 -0
- package/dist/runtime/args-schema.d.ts +11 -0
- package/dist/runtime/args-schema.js +45 -0
- package/dist/runtime/builtins.d.ts +3 -0
- package/dist/runtime/builtins.js +193 -0
- package/dist/runtime/client-handlers.d.ts +3 -0
- package/dist/runtime/client-handlers.js +19 -0
- package/dist/runtime/in-memory-socket.d.ts +7 -0
- package/dist/runtime/in-memory-socket.js +53 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +7 -0
- package/dist/runtime/layout-commands.d.ts +5 -0
- package/dist/runtime/layout-commands.js +548 -0
- package/dist/runtime/opener-commands.d.ts +17 -0
- package/dist/runtime/opener-commands.js +96 -0
- package/dist/runtime/surface-bridge.d.ts +15 -0
- package/dist/runtime/surface-bridge.js +116 -0
- package/dist/styles/bar.css +155 -0
- package/dist/styles/base.css +285 -0
- package/dist/styles/geometry.css +32 -0
- package/dist/styles/index.d.ts +29 -0
- package/dist/styles/index.js +109 -0
- package/dist/styles/scrollbar.css +45 -0
- package/dist/styles/surface.css +179 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/themes/dark.css +30 -0
- package/dist/styles/themes/light.css +1 -0
- package/dist/styles/themes/tokens.css +222 -0
- package/dist/types/binding-resolver.d.ts +30 -0
- package/dist/types/binding-resolver.js +1 -0
- package/dist/types/colors.d.ts +7 -0
- package/dist/types/colors.js +59 -0
- package/dist/types/command.d.ts +62 -0
- package/dist/types/command.js +1 -0
- package/dist/types/component-graph.d.ts +72 -0
- package/dist/types/component-graph.js +40 -0
- package/dist/types/component-registry.d.ts +70 -0
- package/dist/types/component-registry.js +1 -0
- package/dist/types/converter-registry.d.ts +17 -0
- package/dist/types/converter-registry.js +1 -0
- package/dist/types/disposable.d.ts +3 -0
- package/dist/types/disposable.js +1 -0
- package/dist/types/events.d.ts +75 -0
- package/dist/types/events.js +1 -0
- package/dist/types/host.d.ts +50 -0
- package/dist/types/host.js +1 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.js +23 -0
- package/dist/types/keybinding.d.ts +36 -0
- package/dist/types/keybinding.js +1 -0
- package/dist/types/label.d.ts +9 -0
- package/dist/types/label.js +1 -0
- package/dist/types/layout.d.ts +117 -0
- package/dist/types/layout.js +1 -0
- package/dist/types/manifest.d.ts +152 -0
- package/dist/types/manifest.js +1 -0
- package/dist/types/mount-menu.d.ts +8 -0
- package/dist/types/mount-menu.js +1 -0
- package/dist/types/mount-surface.d.ts +87 -0
- package/dist/types/mount-surface.js +1 -0
- package/dist/types/permissions.d.ts +18 -0
- package/dist/types/permissions.js +1 -0
- package/dist/types/query.d.ts +34 -0
- package/dist/types/query.js +7 -0
- package/dist/types/reactive-store.d.ts +39 -0
- package/dist/types/reactive-store.js +1 -0
- package/dist/types/scena.d.ts +53 -0
- package/dist/types/scena.js +1 -0
- package/dist/types/scope-backend.d.ts +16 -0
- package/dist/types/scope-backend.js +1 -0
- package/dist/types/session.d.ts +39 -0
- package/dist/types/session.js +1 -0
- package/dist/types/shell.d.ts +21 -0
- package/dist/types/shell.js +1 -0
- package/dist/types/when.d.ts +10 -0
- package/dist/types/when.js +1 -0
- package/dist/ui/_utils.d.ts +8 -0
- package/dist/ui/_utils.js +53 -0
- package/dist/ui/campus/CampusMappa.d.ts +18 -0
- package/dist/ui/campus/CampusMappa.js +106 -0
- package/dist/ui/campus/CampusNodus.d.ts +25 -0
- package/dist/ui/campus/CampusNodus.js +211 -0
- package/dist/ui/campus/CampusStratum.d.ts +13 -0
- package/dist/ui/campus/CampusStratum.js +20 -0
- package/dist/ui/campus/CampusVelum.d.ts +7 -0
- package/dist/ui/campus/CampusVelum.js +12 -0
- package/dist/ui/campus/CampusView.d.ts +27 -0
- package/dist/ui/campus/CampusView.js +420 -0
- package/dist/ui/campus/context.d.ts +13 -0
- package/dist/ui/campus/context.js +12 -0
- package/dist/ui/campus/index.d.ts +14 -0
- package/dist/ui/campus/index.js +11 -0
- package/dist/ui/campus/stratum-context.d.ts +2 -0
- package/dist/ui/campus/stratum-context.js +10 -0
- package/dist/ui/campus/types.d.ts +47 -0
- package/dist/ui/campus/types.js +4 -0
- package/dist/ui/chart/BarChart.css +53 -0
- package/dist/ui/chart/BarChart.d.ts +24 -0
- package/dist/ui/chart/BarChart.js +32 -0
- package/dist/ui/chart/Donut.css +15 -0
- package/dist/ui/chart/Donut.d.ts +15 -0
- package/dist/ui/chart/Donut.js +18 -0
- package/dist/ui/chart/LineChart.css +8 -0
- package/dist/ui/chart/LineChart.d.ts +24 -0
- package/dist/ui/chart/LineChart.js +29 -0
- package/dist/ui/chart/catalog.d.ts +2 -0
- package/dist/ui/chart/catalog.js +7 -0
- package/dist/ui/chart/index.d.ts +6 -0
- package/dist/ui/chart/index.js +4 -0
- package/dist/ui/control/Button.css +7 -0
- package/dist/ui/control/Button.d.ts +17 -0
- package/dist/ui/control/Button.js +17 -0
- package/dist/ui/control/CheckBox.css +16 -0
- package/dist/ui/control/CheckBox.d.ts +15 -0
- package/dist/ui/control/CheckBox.js +23 -0
- package/dist/ui/control/Checks.css +6 -0
- package/dist/ui/control/Checks.d.ts +9 -0
- package/dist/ui/control/Checks.js +10 -0
- package/dist/ui/control/ChoicePicker.css +16 -0
- package/dist/ui/control/ChoicePicker.d.ts +25 -0
- package/dist/ui/control/ChoicePicker.js +38 -0
- package/dist/ui/control/DateTimeInput.css +1 -0
- package/dist/ui/control/DateTimeInput.d.ts +22 -0
- package/dist/ui/control/DateTimeInput.js +41 -0
- package/dist/ui/control/LocaleToggle.css +38 -0
- package/dist/ui/control/LocaleToggle.d.ts +11 -0
- package/dist/ui/control/LocaleToggle.js +23 -0
- package/dist/ui/control/ReloadButton.d.ts +6 -0
- package/dist/ui/control/ReloadButton.js +9 -0
- package/dist/ui/control/Slider.css +2 -0
- package/dist/ui/control/Slider.d.ts +21 -0
- package/dist/ui/control/Slider.js +37 -0
- package/dist/ui/control/TextField.css +0 -0
- package/dist/ui/control/TextField.d.ts +25 -0
- package/dist/ui/control/TextField.js +36 -0
- package/dist/ui/control/_field-parts.css +102 -0
- package/dist/ui/control/_field-parts.d.ts +15 -0
- package/dist/ui/control/_field-parts.js +17 -0
- package/dist/ui/control/catalog.d.ts +2 -0
- package/dist/ui/control/catalog.js +10 -0
- package/dist/ui/control/index.d.ts +13 -0
- package/dist/ui/control/index.js +11 -0
- package/dist/ui/data/DataTable.d.ts +19 -0
- package/dist/ui/data/DataTable.js +20 -0
- package/dist/ui/data/Filter.d.ts +13 -0
- package/dist/ui/data/Filter.js +56 -0
- package/dist/ui/data/List.css +16 -0
- package/dist/ui/data/List.d.ts +15 -0
- package/dist/ui/data/List.js +18 -0
- package/dist/ui/data/Listable.css +245 -0
- package/dist/ui/data/Listable.d.ts +60 -0
- package/dist/ui/data/Listable.js +209 -0
- package/dist/ui/data/Pagination.d.ts +5 -0
- package/dist/ui/data/Pagination.js +43 -0
- package/dist/ui/data/Tree.css +118 -0
- package/dist/ui/data/Tree.d.ts +45 -0
- package/dist/ui/data/Tree.js +170 -0
- package/dist/ui/data/catalog.d.ts +2 -0
- package/dist/ui/data/catalog.js +7 -0
- package/dist/ui/data/index.d.ts +11 -0
- package/dist/ui/data/index.js +7 -0
- package/dist/ui/display/AddPlaceholder.d.ts +6 -0
- package/dist/ui/display/AddPlaceholder.js +24 -0
- package/dist/ui/display/Alert.css +42 -0
- package/dist/ui/display/Alert.d.ts +14 -0
- package/dist/ui/display/Alert.js +13 -0
- package/dist/ui/display/Avatar.css +19 -0
- package/dist/ui/display/Avatar.d.ts +16 -0
- package/dist/ui/display/Avatar.js +52 -0
- package/dist/ui/display/Badge.css +26 -0
- package/dist/ui/display/Badge.d.ts +16 -0
- package/dist/ui/display/Badge.js +9 -0
- package/dist/ui/display/Card.css +15 -0
- package/dist/ui/display/Card.d.ts +11 -0
- package/dist/ui/display/Card.js +8 -0
- package/dist/ui/display/DetailContainer.d.ts +6 -0
- package/dist/ui/display/DetailContainer.js +7 -0
- package/dist/ui/display/DetailHeader.css +53 -0
- package/dist/ui/display/DetailHeader.d.ts +22 -0
- package/dist/ui/display/DetailHeader.js +8 -0
- package/dist/ui/display/DetailList.css +26 -0
- package/dist/ui/display/DetailList.d.ts +13 -0
- package/dist/ui/display/DetailList.js +5 -0
- package/dist/ui/display/DetailNotFound.d.ts +17 -0
- package/dist/ui/display/DetailNotFound.js +39 -0
- package/dist/ui/display/Divider.css +6 -0
- package/dist/ui/display/Divider.d.ts +8 -0
- package/dist/ui/display/Divider.js +16 -0
- package/dist/ui/display/Divisor.css +30 -0
- package/dist/ui/display/Divisor.d.ts +11 -0
- package/dist/ui/display/Divisor.js +43 -0
- package/dist/ui/display/Icon.css +10 -0
- package/dist/ui/display/Icon.d.ts +14 -0
- package/dist/ui/display/Icon.js +144 -0
- package/dist/ui/display/Image.css +1 -0
- package/dist/ui/display/Image.d.ts +16 -0
- package/dist/ui/display/Image.js +19 -0
- package/dist/ui/display/Markdown.css +38 -0
- package/dist/ui/display/Markdown.d.ts +8 -0
- package/dist/ui/display/Markdown.js +140 -0
- package/dist/ui/display/Progress.css +39 -0
- package/dist/ui/display/Progress.d.ts +15 -0
- package/dist/ui/display/Progress.js +17 -0
- package/dist/ui/display/SectionTitle.d.ts +6 -0
- package/dist/ui/display/SectionTitle.js +6 -0
- package/dist/ui/display/Skeleton.css +20 -0
- package/dist/ui/display/Skeleton.d.ts +11 -0
- package/dist/ui/display/Skeleton.js +11 -0
- package/dist/ui/display/Spinner.css +20 -0
- package/dist/ui/display/Spinner.d.ts +12 -0
- package/dist/ui/display/Spinner.js +12 -0
- package/dist/ui/display/Svg.d.ts +13 -0
- package/dist/ui/display/Svg.js +17 -0
- package/dist/ui/display/Text.css +20 -0
- package/dist/ui/display/Text.d.ts +13 -0
- package/dist/ui/display/Text.js +15 -0
- package/dist/ui/display/catalog.d.ts +2 -0
- package/dist/ui/display/catalog.js +12 -0
- package/dist/ui/display/index.d.ts +22 -0
- package/dist/ui/display/index.js +14 -0
- package/dist/ui/embed/HtmlEmbed.d.ts +12 -0
- package/dist/ui/embed/HtmlEmbed.js +16 -0
- package/dist/ui/embed/index.d.ts +2 -0
- package/dist/ui/embed/index.js +1 -0
- package/dist/ui/forms/DangerZone.d.ts +8 -0
- package/dist/ui/forms/DangerZone.js +31 -0
- package/dist/ui/forms/Field.css +15 -0
- package/dist/ui/forms/Field.d.ts +28 -0
- package/dist/ui/forms/Field.js +25 -0
- package/dist/ui/forms/FieldGroup.css +15 -0
- package/dist/ui/forms/FieldGroup.d.ts +7 -0
- package/dist/ui/forms/FieldGroup.js +7 -0
- package/dist/ui/forms/Form.css +14 -0
- package/dist/ui/forms/Form.d.ts +18 -0
- package/dist/ui/forms/Form.js +17 -0
- package/dist/ui/forms/FormActions.css +11 -0
- package/dist/ui/forms/FormActions.d.ts +18 -0
- package/dist/ui/forms/FormActions.js +10 -0
- package/dist/ui/forms/FormSection.css +19 -0
- package/dist/ui/forms/FormSection.d.ts +7 -0
- package/dist/ui/forms/FormSection.js +7 -0
- package/dist/ui/forms/LoginForm.css +105 -0
- package/dist/ui/forms/LoginForm.d.ts +12 -0
- package/dist/ui/forms/LoginForm.js +137 -0
- package/dist/ui/forms/SchemaForm.css +81 -0
- package/dist/ui/forms/SchemaForm.d.ts +26 -0
- package/dist/ui/forms/SchemaForm.js +186 -0
- package/dist/ui/forms/SettingsContainer.d.ts +8 -0
- package/dist/ui/forms/SettingsContainer.js +8 -0
- package/dist/ui/forms/catalog.d.ts +2 -0
- package/dist/ui/forms/catalog.js +11 -0
- package/dist/ui/forms/index.d.ts +19 -0
- package/dist/ui/forms/index.js +12 -0
- package/dist/ui/forms/schema-walk.d.ts +50 -0
- package/dist/ui/forms/schema-walk.js +116 -0
- package/dist/ui/index.d.ts +58 -0
- package/dist/ui/index.js +63 -0
- package/dist/ui/layout/BarLayout.d.ts +2 -0
- package/dist/ui/layout/BarLayout.js +18 -0
- package/dist/ui/layout/Column.css +6 -0
- package/dist/ui/layout/Column.d.ts +12 -0
- package/dist/ui/layout/Column.js +13 -0
- package/dist/ui/layout/FloatingLayout.d.ts +2 -0
- package/dist/ui/layout/FloatingLayout.js +12 -0
- package/dist/ui/layout/Grid.css +5 -0
- package/dist/ui/layout/Grid.d.ts +13 -0
- package/dist/ui/layout/Grid.js +19 -0
- package/dist/ui/layout/InlineLayout.d.ts +2 -0
- package/dist/ui/layout/InlineLayout.js +13 -0
- package/dist/ui/layout/MountTitle.d.ts +12 -0
- package/dist/ui/layout/MountTitle.js +42 -0
- package/dist/ui/layout/RailLayout.d.ts +2 -0
- package/dist/ui/layout/RailLayout.js +38 -0
- package/dist/ui/layout/Row.css +16 -0
- package/dist/ui/layout/Row.d.ts +13 -0
- package/dist/ui/layout/Row.js +21 -0
- package/dist/ui/layout/SectionHeader.d.ts +10 -0
- package/dist/ui/layout/SectionHeader.js +65 -0
- package/dist/ui/layout/SingleLayout.d.ts +2 -0
- package/dist/ui/layout/SingleLayout.js +25 -0
- package/dist/ui/layout/SpatialCard.d.ts +9 -0
- package/dist/ui/layout/SpatialCard.js +30 -0
- package/dist/ui/layout/SpatialLayout.d.ts +2 -0
- package/dist/ui/layout/SpatialLayout.js +446 -0
- package/dist/ui/layout/SplitLayout.d.ts +2 -0
- package/dist/ui/layout/SplitLayout.js +159 -0
- package/dist/ui/layout/Splitter.d.ts +12 -0
- package/dist/ui/layout/Splitter.js +64 -0
- package/dist/ui/layout/StackHeader.d.ts +9 -0
- package/dist/ui/layout/StackHeader.js +87 -0
- package/dist/ui/layout/StackLayout.d.ts +2 -0
- package/dist/ui/layout/StackLayout.js +137 -0
- package/dist/ui/layout/TabLayout.d.ts +2 -0
- package/dist/ui/layout/TabLayout.js +145 -0
- package/dist/ui/layout/TabPanelLayout.d.ts +20 -0
- package/dist/ui/layout/TabPanelLayout.js +615 -0
- package/dist/ui/layout/catalog.d.ts +2 -0
- package/dist/ui/layout/catalog.js +10 -0
- package/dist/ui/layout/index.d.ts +17 -0
- package/dist/ui/layout/index.js +17 -0
- package/dist/ui/layout/register.d.ts +3 -0
- package/dist/ui/layout/register.js +25 -0
- package/dist/ui/media/Audio.css +1 -0
- package/dist/ui/media/Audio.d.ts +12 -0
- package/dist/ui/media/Audio.js +8 -0
- package/dist/ui/media/Video.css +1 -0
- package/dist/ui/media/Video.d.ts +16 -0
- package/dist/ui/media/Video.js +9 -0
- package/dist/ui/media/catalog.d.ts +2 -0
- package/dist/ui/media/catalog.js +5 -0
- package/dist/ui/media/index.d.ts +2 -0
- package/dist/ui/media/index.js +3 -0
- package/dist/ui/menu/ActionList.css +262 -0
- package/dist/ui/menu/ActionList.d.ts +19 -0
- package/dist/ui/menu/ActionList.js +369 -0
- package/dist/ui/menu/ContainerMenu.d.ts +13 -0
- package/dist/ui/menu/ContainerMenu.js +57 -0
- package/dist/ui/menu/ContextMenu.d.ts +27 -0
- package/dist/ui/menu/ContextMenu.js +93 -0
- package/dist/ui/menu/index.d.ts +10 -0
- package/dist/ui/menu/index.js +7 -0
- package/dist/ui/menu/token.d.ts +22 -0
- package/dist/ui/menu/token.js +145 -0
- package/dist/ui/menu/useChatPicker.d.ts +24 -0
- package/dist/ui/menu/useChatPicker.js +210 -0
- package/dist/ui/navigation/Breadcrumb.css +30 -0
- package/dist/ui/navigation/Breadcrumb.d.ts +14 -0
- package/dist/ui/navigation/Breadcrumb.js +12 -0
- package/dist/ui/navigation/Link.css +13 -0
- package/dist/ui/navigation/Link.d.ts +18 -0
- package/dist/ui/navigation/Link.js +43 -0
- package/dist/ui/navigation/Tabs.css +39 -0
- package/dist/ui/navigation/Tabs.d.ts +18 -0
- package/dist/ui/navigation/Tabs.js +55 -0
- package/dist/ui/navigation/Toolbar.css +25 -0
- package/dist/ui/navigation/Toolbar.d.ts +12 -0
- package/dist/ui/navigation/Toolbar.js +21 -0
- package/dist/ui/navigation/catalog.d.ts +2 -0
- package/dist/ui/navigation/catalog.js +5 -0
- package/dist/ui/navigation/index.d.ts +8 -0
- package/dist/ui/navigation/index.js +5 -0
- package/dist/ui/overlay/Modal.css +35 -0
- package/dist/ui/overlay/Modal.d.ts +12 -0
- package/dist/ui/overlay/Modal.js +57 -0
- package/dist/ui/overlay/Popup.d.ts +12 -0
- package/dist/ui/overlay/Popup.js +74 -0
- package/dist/ui/overlay/catalog.d.ts +2 -0
- package/dist/ui/overlay/catalog.js +4 -0
- package/dist/ui/overlay/index.d.ts +1 -0
- package/dist/ui/overlay/index.js +2 -0
- package/dist/ui/register.d.ts +6 -0
- package/dist/ui/register.js +26 -0
- package/package.json +115 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import { combineDisposables } from '../../core/disposable.js';
|
|
3
|
+
// Layout components are React.lazy so registering them pulls no layout code at
|
|
4
|
+
// boot — each surface render strategy (and the heavy SpatialLayout/Campus) only
|
|
5
|
+
// loads when a surface first uses it. SurfaceArea renders them inside <Suspense>.
|
|
6
|
+
const TabLayout = lazy(() => import('./TabLayout.js').then((m) => ({ default: m.TabLayout })));
|
|
7
|
+
const TabPanelLayout = lazy(() => import('./TabPanelLayout.js').then((m) => ({ default: m.TabPanelLayout })));
|
|
8
|
+
const SingleLayout = lazy(() => import('./SingleLayout.js').then((m) => ({ default: m.SingleLayout })));
|
|
9
|
+
const SplitLayout = lazy(() => import('./SplitLayout.js').then((m) => ({ default: m.SplitLayout })));
|
|
10
|
+
const StackLayout = lazy(() => import('./StackLayout.js').then((m) => ({ default: m.StackLayout })));
|
|
11
|
+
const SpatialLayout = lazy(() => import('./SpatialLayout.js').then((m) => ({ default: m.SpatialLayout })));
|
|
12
|
+
const RailLayout = lazy(() => import('./RailLayout.js').then((m) => ({ default: m.RailLayout })));
|
|
13
|
+
const InlineLayout = lazy(() => import('./InlineLayout.js').then((m) => ({ default: m.InlineLayout })));
|
|
14
|
+
const BarLayout = lazy(() => import('./BarLayout.js').then((m) => ({ default: m.BarLayout })));
|
|
15
|
+
const FloatingLayout = lazy(() => import('./FloatingLayout.js').then((m) => ({ default: m.FloatingLayout })));
|
|
16
|
+
// Registers all built-in surface render strategies. Call once at app boot,
|
|
17
|
+
// typically right after createScena.
|
|
18
|
+
//
|
|
19
|
+
// Surfaces fall back to a sensible default layout if no `appliesTo` match —
|
|
20
|
+
// see SurfaceArea's `defaultLayoutFor()` for the mapping.
|
|
21
|
+
export function registerBuiltinLayouts(scena) {
|
|
22
|
+
return combineDisposables(scena.layouts.register({ id: 'tab', title: 'Tabs', component: TabLayout, appliesTo: ['main', 'panel:bottom'] }), scena.layouts.register({ id: 'tab-panel', title: 'Tab Groups', component: TabPanelLayout, appliesTo: ['main', 'panel:bottom'] }), scena.layouts.register({ id: 'single', title: 'Single', component: SingleLayout, appliesTo: ['main', 'sidebar:left', 'sidebar:right', 'panel:bottom', 'detached'] }),
|
|
23
|
+
// alias for 'single' — the docs refer to single-mount main as 'page'.
|
|
24
|
+
scena.layouts.register({ id: 'page', title: 'Page', component: SingleLayout, appliesTo: ['main'] }), scena.layouts.register({ id: 'split', title: 'Split', component: SplitLayout, appliesTo: ['main', 'sidebar:right'] }), scena.layouts.register({ id: 'stack', title: 'Stack', component: StackLayout, appliesTo: ['sidebar:right', 'sidebar:left', 'main'] }), scena.layouts.register({ id: 'spatial', title: 'Spatial', component: SpatialLayout, appliesTo: ['main'] }), scena.layouts.register({ id: 'rail', title: 'Rail', component: RailLayout, appliesTo: ['activitybar'] }), scena.layouts.register({ id: 'inline', title: 'Inline', component: InlineLayout, appliesTo: ['statusbar', 'titlebar'] }), scena.layouts.register({ id: 'bar', title: 'Bar (left / center / right)', component: BarLayout, appliesTo: ['titlebar', 'statusbar'] }), scena.layouts.register({ id: 'floating', title: 'Floating', component: FloatingLayout, appliesTo: ['overlay'] }));
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.oo-audio { display: block; }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import './Audio.css';
|
|
3
|
+
export interface AudioProps {
|
|
4
|
+
url?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
autoPlay?: boolean;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
src?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function Audio({ url, description, controls, autoPlay, loop, style, src, }: AudioProps): ReactNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './Audio.css';
|
|
3
|
+
export function Audio({ url, description, controls = true, autoPlay, loop, style, src, }) {
|
|
4
|
+
const effectiveUrl = url ?? src;
|
|
5
|
+
if (!effectiveUrl)
|
|
6
|
+
return null;
|
|
7
|
+
return (_jsxs("div", { className: "oo-audio-wrapper", style: style, children: [description ? (_jsx("div", { className: "oo-audio__description", children: description })) : null, _jsx("audio", { className: "oo-audio", src: effectiveUrl, controls: controls, autoPlay: autoPlay, loop: loop })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.oo-video { display: block; }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import './Video.css';
|
|
3
|
+
export interface VideoProps {
|
|
4
|
+
url?: string;
|
|
5
|
+
posterUrl?: string;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
autoPlay?: boolean;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
height?: number | string;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
src?: string;
|
|
14
|
+
poster?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function Video({ url, posterUrl, controls, autoPlay, loop, muted, width, height, style, src, poster, }: VideoProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import './Video.css';
|
|
3
|
+
export function Video({ url, posterUrl, controls = true, autoPlay, loop, muted, width, height, style, src, poster, }) {
|
|
4
|
+
const effectiveUrl = url ?? src;
|
|
5
|
+
if (!effectiveUrl)
|
|
6
|
+
return null;
|
|
7
|
+
const effectivePoster = posterUrl ?? poster;
|
|
8
|
+
return (_jsx("video", { className: "oo-video", src: effectiveUrl, poster: effectivePoster, controls: controls, autoPlay: autoPlay, loop: loop, muted: muted, style: { width, height, ...style } }));
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Catalog registration for media components (dynamic import — no eager load).
|
|
2
|
+
export const CATALOG_MEDIA_MAP = [
|
|
3
|
+
{ component: 'Video', category: 'inline', renderer: { kind: 'react', load: () => import('./Video.js').then((m) => ({ default: m.Video })) } },
|
|
4
|
+
{ component: 'Audio', category: 'inline', renderer: { kind: 'react', load: () => import('./Audio.js').then((m) => ({ default: m.Audio })) } },
|
|
5
|
+
];
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/* Picker engine — chat slash, palette, right-click menus.
|
|
2
|
+
* Layout / typography / spacing through tokens so themes drive everything. */
|
|
3
|
+
:root {
|
|
4
|
+
--oo-action-list-min-width: 240px;
|
|
5
|
+
--oo-action-list-max-width: none;
|
|
6
|
+
--oo-action-list-max-height: 360px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.oo-action-list {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
min-width: var(--oo-action-list-min-width);
|
|
14
|
+
max-width: var(--oo-action-list-max-width);
|
|
15
|
+
max-height: var(--oo-action-list-max-height);
|
|
16
|
+
background: var(--oo-color-surface);
|
|
17
|
+
border: 1px solid var(--oo-color-border);
|
|
18
|
+
border-radius: var(--oo-radius-md, 8px);
|
|
19
|
+
box-shadow: var(--oo-shadow-lg, 0 12px 28px rgba(0, 0, 0, 0.26));
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
color: var(--oo-color-fg);
|
|
22
|
+
font-size: var(--oo-font-size-sm);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Re-resolve indicator — floats top-right over the kept-visible rows so the
|
|
26
|
+
list doesn't flash to a loading screen while an async provider refetches. */
|
|
27
|
+
.oo-action-list__pending {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 4px;
|
|
30
|
+
right: 8px;
|
|
31
|
+
z-index: 2;
|
|
32
|
+
font-size: 10px;
|
|
33
|
+
font-family: var(--oo-font-mono);
|
|
34
|
+
color: var(--oo-color-muted);
|
|
35
|
+
background: var(--oo-color-surface);
|
|
36
|
+
padding: 1px 6px;
|
|
37
|
+
border-radius: 999px;
|
|
38
|
+
border: 1px solid var(--oo-color-border);
|
|
39
|
+
opacity: 0.9;
|
|
40
|
+
pointer-events: none;
|
|
41
|
+
animation: oo-action-list-pulse 1s ease-in-out infinite;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes oo-action-list-pulse {
|
|
45
|
+
0%, 100% { opacity: 0.45; }
|
|
46
|
+
50% { opacity: 0.95; }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.oo-action-list__custom-header {
|
|
50
|
+
flex: 0 0 auto;
|
|
51
|
+
padding: var(--oo-spacing-xs) var(--oo-spacing-sm);
|
|
52
|
+
border-bottom: 1px solid var(--oo-color-border);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.oo-action-list__back {
|
|
56
|
+
flex: 0 0 auto;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: var(--oo-spacing-xs);
|
|
60
|
+
padding: var(--oo-spacing-xs) var(--oo-spacing-sm);
|
|
61
|
+
background: transparent;
|
|
62
|
+
border: none;
|
|
63
|
+
border-bottom: 1px solid var(--oo-color-border);
|
|
64
|
+
color: var(--oo-color-muted);
|
|
65
|
+
font: inherit;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
text-align: left;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.oo-action-list__back:hover {
|
|
71
|
+
background: var(--oo-color-active);
|
|
72
|
+
color: var(--oo-color-fg);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.oo-action-list__body {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex: 1 1 auto;
|
|
78
|
+
min-height: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.oo-action-list__items {
|
|
82
|
+
flex: 1 1 auto;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
overflow-y: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.oo-action-list__detail {
|
|
88
|
+
flex: 0 0 40%;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
padding: var(--oo-spacing-sm);
|
|
91
|
+
border-left: 1px solid var(--oo-color-border);
|
|
92
|
+
background: var(--oo-color-canvas);
|
|
93
|
+
overflow: auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.oo-action-list__header {
|
|
97
|
+
flex: 0 0 auto;
|
|
98
|
+
padding: var(--oo-spacing-sm);
|
|
99
|
+
border-bottom: 1px solid var(--oo-color-border);
|
|
100
|
+
background: var(--oo-color-canvas);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.oo-action-list__group-label {
|
|
104
|
+
padding: var(--oo-spacing-xs) var(--oo-spacing-sm) 2px;
|
|
105
|
+
font-size: 10px;
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
color: var(--oo-color-muted);
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
letter-spacing: 0.06em;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.oo-action-list__divider {
|
|
113
|
+
height: 1px;
|
|
114
|
+
background: var(--oo-color-border);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.oo-action-list__row {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: var(--oo-spacing-sm);
|
|
121
|
+
padding: 6px var(--oo-spacing-sm);
|
|
122
|
+
width: 100%;
|
|
123
|
+
border: none;
|
|
124
|
+
background: transparent;
|
|
125
|
+
color: inherit;
|
|
126
|
+
text-align: left;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
font: inherit;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.oo-action-list__row:hover {
|
|
132
|
+
color: var(--oo-color-text);
|
|
133
|
+
background: var(--oo-color-hover);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.oo-action-list__row[data-selected='true'] {
|
|
137
|
+
color: var(--oo-color-text);
|
|
138
|
+
background: var(--oo-color-hover);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.oo-action-list__row[data-disabled='true'] {
|
|
142
|
+
cursor: default;
|
|
143
|
+
opacity: 0.55;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.oo-action-list__row[data-selected='true'] .oo-action-list__title {
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
color: var(--oo-color-accent);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.oo-action-list .oo-icon {
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
width: 16px;
|
|
154
|
+
height: 16px;
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
/* flex-shrink: 0; */
|
|
157
|
+
color: rgb(var(--oo-color, var(--oo-color-muted)));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-cmd-group='danger'] .oo-icon {
|
|
161
|
+
--oo-color: var(--oo-color-red);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-cmd-group='create'] .oo-icon {
|
|
165
|
+
--oo-color: var(--oo-color-green);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-cmd-group='open'] .oo-icon {
|
|
169
|
+
--oo-color: var(--oo-color-blue);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[data-cmd-group='config'] .oo-icon {
|
|
173
|
+
--oo-color: var(--oo-color-violet);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.oo-action-list__title {
|
|
177
|
+
flex: 1 1 auto;
|
|
178
|
+
min-width: 0;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
font-weight: 500;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.oo-action-list__description {
|
|
186
|
+
flex: 0 0 auto;
|
|
187
|
+
max-width: 50%;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
text-overflow: ellipsis;
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
text-align: right;
|
|
192
|
+
color: var(--oo-color-muted);
|
|
193
|
+
font-size: var(--oo-font-size-xs);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Rich rows — title stacked over a muted subtitle (web composer style). */
|
|
197
|
+
.oo-action-list__text {
|
|
198
|
+
flex: 1 1 auto;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
gap: 1px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.oo-action-list__subtitle {
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
white-space: nowrap;
|
|
209
|
+
color: var(--oo-color-muted);
|
|
210
|
+
font-size: var(--oo-font-size-xs);
|
|
211
|
+
line-height: 1.2;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.oo-action-list__row:hover .oo-action-list__subtitle,
|
|
215
|
+
.oo-action-list__row[data-selected='true'] .oo-action-list__subtitle {
|
|
216
|
+
color: var(--oo-color-text);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.oo-action-list__shortcut {
|
|
220
|
+
flex: 0 0 auto;
|
|
221
|
+
font-family: var(--oo-font-mono);
|
|
222
|
+
font-size: var(--oo-font-size-xs);
|
|
223
|
+
color: var(--oo-color-muted);
|
|
224
|
+
background: var(--oo-color-canvas);
|
|
225
|
+
border: 1px solid var(--oo-color-border);
|
|
226
|
+
border-radius: 3px;
|
|
227
|
+
padding: 0 4px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.oo-action-list__row[data-selected='true'] .oo-action-list__shortcut {
|
|
231
|
+
background: var(--oo-color-active);
|
|
232
|
+
color: var(--oo-color-surface);
|
|
233
|
+
}
|
|
234
|
+
.oo-action-list__row:hover .oo-action-list__shortcut {
|
|
235
|
+
background: var(--oo-color-active);
|
|
236
|
+
color: var(--oo-color-surface);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.oo-action-list__check {
|
|
240
|
+
flex: 0 0 auto;
|
|
241
|
+
font-size: 11px;
|
|
242
|
+
color: var(--oo-color-accent);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.oo-action-list__empty,
|
|
246
|
+
.oo-action-list__loading,
|
|
247
|
+
.oo-action-list__error {
|
|
248
|
+
padding: var(--oo-spacing-md) var(--oo-spacing-sm);
|
|
249
|
+
color: var(--oo-color-muted);
|
|
250
|
+
text-align: center;
|
|
251
|
+
font-size: var(--oo-font-size-xs);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.oo-action-list__footer {
|
|
255
|
+
flex: 0 0 auto;
|
|
256
|
+
padding: 4px var(--oo-spacing-sm);
|
|
257
|
+
border-top: 1px solid var(--oo-color-border);
|
|
258
|
+
color: var(--oo-color-muted);
|
|
259
|
+
font-size: 10px;
|
|
260
|
+
font-family: var(--oo-font-mono);
|
|
261
|
+
user-select: none;
|
|
262
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Ref } from 'react';
|
|
2
|
+
import type { HostCtx, ListSpec } from '../../types/host.js';
|
|
3
|
+
import type { BindingPath } from '../../types/component-graph.js';
|
|
4
|
+
import './ActionList.css';
|
|
5
|
+
export interface ActionListController {
|
|
6
|
+
handleKey(e: {
|
|
7
|
+
key: string;
|
|
8
|
+
preventDefault: () => void;
|
|
9
|
+
}): boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ActionListProps {
|
|
12
|
+
spec: ListSpec;
|
|
13
|
+
hostCtx: HostCtx;
|
|
14
|
+
onBack?: () => void;
|
|
15
|
+
dataContext?: BindingPath;
|
|
16
|
+
manageKeys?: boolean;
|
|
17
|
+
ref?: Ref<ActionListController>;
|
|
18
|
+
}
|
|
19
|
+
export declare function ActionList({ spec, hostCtx, onBack, dataContext, manageKeys, ref, }: ActionListProps): import("react").JSX.Element;
|