@adia-ai/web-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +195 -0
- package/a2ui/dockables/action.js +152 -0
- package/a2ui/dockables/base.js +30 -0
- package/a2ui/dockables/controller.js +97 -0
- package/a2ui/dockables/data-source.js +103 -0
- package/a2ui/dockables/index.js +6 -0
- package/a2ui/dockables/lifecycle.js +84 -0
- package/a2ui/dockables/provider.js +59 -0
- package/a2ui/index.js +19 -0
- package/a2ui/manifest-runtime.js +226 -0
- package/a2ui/registry.js +200 -0
- package/a2ui/renderer.js +361 -0
- package/a2ui/root.js +152 -0
- package/a2ui/stream.js +243 -0
- package/a2ui/surface-manifest.js +294 -0
- package/a2ui/surface.js +222 -0
- package/a2ui/wire-factory.js +134 -0
- package/a2ui/wiring-engine.js +209 -0
- package/a2ui/wiring-registry.js +342 -0
- package/components/accordion/accordion.a2ui.json +129 -0
- package/components/accordion/accordion.css +133 -0
- package/components/accordion/accordion.js +125 -0
- package/components/accordion/accordion.yaml +527 -0
- package/components/action-list/action-list.a2ui.json +64 -0
- package/components/action-list/action-list.css +115 -0
- package/components/action-list/action-list.js +149 -0
- package/components/action-list/action-list.yaml +56 -0
- package/components/agent-artifact/agent-artifact.a2ui.json +99 -0
- package/components/agent-artifact/agent-artifact.css +94 -0
- package/components/agent-artifact/agent-artifact.js +169 -0
- package/components/agent-artifact/agent-artifact.yaml +71 -0
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +91 -0
- package/components/agent-feedback-bar/agent-feedback-bar.css +33 -0
- package/components/agent-feedback-bar/agent-feedback-bar.js +152 -0
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +65 -0
- package/components/agent-questions/agent-questions.a2ui.json +89 -0
- package/components/agent-questions/agent-questions.css +146 -0
- package/components/agent-questions/agent-questions.js +189 -0
- package/components/agent-questions/agent-questions.yaml +63 -0
- package/components/agent-reasoning/agent-reasoning.a2ui.json +100 -0
- package/components/agent-reasoning/agent-reasoning.css +273 -0
- package/components/agent-reasoning/agent-reasoning.js +469 -0
- package/components/agent-reasoning/agent-reasoning.yaml +70 -0
- package/components/agent-suggestions/agent-suggestions.a2ui.json +87 -0
- package/components/agent-suggestions/agent-suggestions.css +18 -0
- package/components/agent-suggestions/agent-suggestions.js +87 -0
- package/components/agent-suggestions/agent-suggestions.yaml +59 -0
- package/components/agent-trace/agent-trace.a2ui.json +78 -0
- package/components/agent-trace/agent-trace.css +275 -0
- package/components/agent-trace/agent-trace.js +216 -0
- package/components/agent-trace/agent-trace.yaml +53 -0
- package/components/alert/alert.a2ui.json +211 -0
- package/components/alert/alert.css +88 -0
- package/components/alert/alert.js +96 -0
- package/components/alert/alert.yaml +205 -0
- package/components/avatar/avatar.a2ui.json +215 -0
- package/components/avatar/avatar.css +159 -0
- package/components/avatar/avatar.js +157 -0
- package/components/avatar/avatar.yaml +559 -0
- package/components/badge/badge.a2ui.json +169 -0
- package/components/badge/badge.css +78 -0
- package/components/badge/badge.js +53 -0
- package/components/badge/badge.yaml +612 -0
- package/components/block/block.a2ui.json +135 -0
- package/components/block/block.css +29 -0
- package/components/block/block.js +23 -0
- package/components/block/block.yaml +115 -0
- package/components/breadcrumb/breadcrumb.a2ui.json +86 -0
- package/components/breadcrumb/breadcrumb.css +78 -0
- package/components/breadcrumb/breadcrumb.js +44 -0
- package/components/breadcrumb/breadcrumb.yaml +84 -0
- package/components/button/button.a2ui.json +172 -0
- package/components/button/button.css +168 -0
- package/components/button/button.js +60 -0
- package/components/button/button.yaml +120 -0
- package/components/calendar-picker/calendar-picker.a2ui.json +139 -0
- package/components/calendar-picker/calendar-picker.css +321 -0
- package/components/calendar-picker/calendar-picker.js +324 -0
- package/components/calendar-picker/calendar-picker.yaml +243 -0
- package/components/canvas/canvas.a2ui.json +75 -0
- package/components/canvas/canvas.css +52 -0
- package/components/canvas/canvas.js +179 -0
- package/components/canvas/canvas.yaml +62 -0
- package/components/card/card.a2ui.json +276 -0
- package/components/card/card.css +362 -0
- package/components/card/card.js +58 -0
- package/components/card/card.yaml +527 -0
- package/components/chart/chart.a2ui.json +298 -0
- package/components/chart/chart.css +512 -0
- package/components/chart/chart.js +1075 -0
- package/components/chart/chart.yaml +540 -0
- package/components/chat/chat-input.css +141 -0
- package/components/chat/chat-input.js +242 -0
- package/components/chat/chat.a2ui.json +181 -0
- package/components/chat/chat.css +193 -0
- package/components/chat/chat.js +155 -0
- package/components/chat/chat.yaml +230 -0
- package/components/check/check.a2ui.json +134 -0
- package/components/check/check.css +126 -0
- package/components/check/check.js +58 -0
- package/components/check/check.yaml +109 -0
- package/components/code/code.a2ui.json +153 -0
- package/components/code/code.css +133 -0
- package/components/code/code.js +114 -0
- package/components/code/code.yaml +163 -0
- package/components/col/col.a2ui.json +104 -0
- package/components/col/col.css +36 -0
- package/components/col/col.js +19 -0
- package/components/col/col.yaml +364 -0
- package/components/color-picker/color-picker.a2ui.json +100 -0
- package/components/color-picker/color-picker.css +182 -0
- package/components/color-picker/color-picker.js +537 -0
- package/components/color-picker/color-picker.yaml +105 -0
- package/components/command/command.a2ui.json +221 -0
- package/components/command/command.css +251 -0
- package/components/command/command.js +284 -0
- package/components/command/command.yaml +186 -0
- package/components/description-list/description-list.a2ui.json +89 -0
- package/components/description-list/description-list.css +70 -0
- package/components/description-list/description-list.js +75 -0
- package/components/description-list/description-list.yaml +59 -0
- package/components/divider/divider.a2ui.json +126 -0
- package/components/divider/divider.css +102 -0
- package/components/divider/divider.js +47 -0
- package/components/divider/divider.yaml +366 -0
- package/components/drawer/drawer.a2ui.json +199 -0
- package/components/drawer/drawer.css +342 -0
- package/components/drawer/drawer.js +263 -0
- package/components/drawer/drawer.yaml +366 -0
- package/components/embed/embed.a2ui.json +150 -0
- package/components/embed/embed.css +28 -0
- package/components/embed/embed.js +63 -0
- package/components/embed/embed.yaml +224 -0
- package/components/empty-state/empty-state.a2ui.json +133 -0
- package/components/empty-state/empty-state.css +58 -0
- package/components/empty-state/empty-state.js +87 -0
- package/components/empty-state/empty-state.yaml +314 -0
- package/components/footer/footer.a2ui.json +79 -0
- package/components/footer/footer.yaml +239 -0
- package/components/grid/grid.a2ui.json +171 -0
- package/components/grid/grid.css +37 -0
- package/components/grid/grid.js +21 -0
- package/components/grid/grid.yaml +577 -0
- package/components/header/header.a2ui.json +76 -0
- package/components/header/header.yaml +336 -0
- package/components/heatmap/heatmap.a2ui.json +150 -0
- package/components/heatmap/heatmap.css +146 -0
- package/components/heatmap/heatmap.js +246 -0
- package/components/heatmap/heatmap.yaml +131 -0
- package/components/icon/icon.a2ui.json +79 -0
- package/components/icon/icon.css +20 -0
- package/components/icon/icon.js +26 -0
- package/components/icon/icon.yaml +233 -0
- package/components/image/image.a2ui.json +261 -0
- package/components/image/image.css +76 -0
- package/components/image/image.js +102 -0
- package/components/image/image.yaml +477 -0
- package/components/index.js +85 -0
- package/components/input/input.a2ui.json +284 -0
- package/components/input/input.css +162 -0
- package/components/input/input.js +148 -0
- package/components/input/input.yaml +496 -0
- package/components/inspector/inspector.a2ui.json +67 -0
- package/components/inspector/inspector.css +31 -0
- package/components/inspector/inspector.js +133 -0
- package/components/inspector/inspector.yaml +58 -0
- package/components/kbd/kbd.a2ui.json +96 -0
- package/components/kbd/kbd.css +62 -0
- package/components/kbd/kbd.js +24 -0
- package/components/kbd/kbd.yaml +213 -0
- package/components/list/list.a2ui.json +145 -0
- package/components/list/list.css +103 -0
- package/components/list/list.js +236 -0
- package/components/list/list.yaml +122 -0
- package/components/menu/menu.a2ui.json +146 -0
- package/components/menu/menu.css +146 -0
- package/components/menu/menu.js +296 -0
- package/components/menu/menu.yaml +123 -0
- package/components/modal/modal.a2ui.json +136 -0
- package/components/modal/modal.css +153 -0
- package/components/modal/modal.js +181 -0
- package/components/modal/modal.yaml +114 -0
- package/components/noodles/noodles.a2ui.json +145 -0
- package/components/noodles/noodles.css +118 -0
- package/components/noodles/noodles.js +470 -0
- package/components/noodles/noodles.yaml +123 -0
- package/components/otp-input/otp-input.a2ui.json +104 -0
- package/components/otp-input/otp-input.css +78 -0
- package/components/otp-input/otp-input.js +170 -0
- package/components/otp-input/otp-input.yaml +218 -0
- package/components/pagination/pagination.a2ui.json +122 -0
- package/components/pagination/pagination.css +162 -0
- package/components/pagination/pagination.js +185 -0
- package/components/pagination/pagination.yaml +165 -0
- package/components/pane/pane.a2ui.json +94 -0
- package/components/pane/pane.css +166 -0
- package/components/pane/pane.js +140 -0
- package/components/pane/pane.yaml +197 -0
- package/components/pipeline-status/pipeline-status.a2ui.json +90 -0
- package/components/pipeline-status/pipeline-status.css +162 -0
- package/components/pipeline-status/pipeline-status.js +176 -0
- package/components/pipeline-status/pipeline-status.yaml +99 -0
- package/components/popover/popover.a2ui.json +181 -0
- package/components/popover/popover.css +57 -0
- package/components/popover/popover.js +170 -0
- package/components/popover/popover.yaml +257 -0
- package/components/progress/progress.a2ui.json +199 -0
- package/components/progress/progress.css +88 -0
- package/components/progress/progress.js +64 -0
- package/components/progress/progress.yaml +342 -0
- package/components/progress-row/progress-row.a2ui.json +100 -0
- package/components/progress-row/progress-row.css +57 -0
- package/components/progress-row/progress-row.js +92 -0
- package/components/progress-row/progress-row.yaml +87 -0
- package/components/radio/radio.a2ui.json +232 -0
- package/components/radio/radio.css +102 -0
- package/components/radio/radio.js +73 -0
- package/components/radio/radio.yaml +248 -0
- package/components/range/range.a2ui.json +151 -0
- package/components/range/range.css +148 -0
- package/components/range/range.js +177 -0
- package/components/range/range.yaml +188 -0
- package/components/rating/rating.a2ui.json +105 -0
- package/components/rating/rating.css +92 -0
- package/components/rating/rating.js +138 -0
- package/components/rating/rating.yaml +74 -0
- package/components/richtext/richtext.a2ui.json +82 -0
- package/components/richtext/richtext.css +225 -0
- package/components/richtext/richtext.js +74 -0
- package/components/richtext/richtext.yaml +89 -0
- package/components/row/row.a2ui.json +102 -0
- package/components/row/row.css +51 -0
- package/components/row/row.js +39 -0
- package/components/row/row.yaml +358 -0
- package/components/search/search.a2ui.json +186 -0
- package/components/search/search.css +28 -0
- package/components/search/search.js +124 -0
- package/components/search/search.yaml +154 -0
- package/components/section/section.a2ui.json +78 -0
- package/components/section/section.yaml +338 -0
- package/components/segment/segment.a2ui.json +100 -0
- package/components/segment/segment.css +81 -0
- package/components/segment/segment.js +32 -0
- package/components/segment/segment.yaml +216 -0
- package/components/segmented/segmented.a2ui.json +106 -0
- package/components/segmented/segmented.css +67 -0
- package/components/segmented/segmented.js +149 -0
- package/components/segmented/segmented.yaml +91 -0
- package/components/select/select.a2ui.json +203 -0
- package/components/select/select.css +277 -0
- package/components/select/select.js +388 -0
- package/components/select/select.yaml +375 -0
- package/components/skeleton/skeleton.a2ui.json +120 -0
- package/components/skeleton/skeleton.css +47 -0
- package/components/skeleton/skeleton.js +43 -0
- package/components/skeleton/skeleton.yaml +153 -0
- package/components/slider/slider.a2ui.json +162 -0
- package/components/slider/slider.css +137 -0
- package/components/slider/slider.js +162 -0
- package/components/slider/slider.yaml +299 -0
- package/components/stack/stack.a2ui.json +62 -0
- package/components/stack/stack.css +28 -0
- package/components/stack/stack.js +18 -0
- package/components/stack/stack.yaml +54 -0
- package/components/stat/stat.a2ui.json +246 -0
- package/components/stat/stat.css +101 -0
- package/components/stat/stat.js +91 -0
- package/components/stat/stat.yaml +206 -0
- package/components/stepper/stepper.a2ui.json +77 -0
- package/components/stepper/stepper.css +243 -0
- package/components/stepper/stepper.js +118 -0
- package/components/stepper/stepper.yaml +73 -0
- package/components/stream/stream.a2ui.json +98 -0
- package/components/stream/stream.css +37 -0
- package/components/stream/stream.js +99 -0
- package/components/stream/stream.yaml +87 -0
- package/components/swiper/swiper.a2ui.json +140 -0
- package/components/swiper/swiper.css +267 -0
- package/components/swiper/swiper.js +285 -0
- package/components/swiper/swiper.yaml +268 -0
- package/components/switch/switch.a2ui.json +134 -0
- package/components/switch/switch.css +104 -0
- package/components/switch/switch.js +53 -0
- package/components/switch/switch.yaml +322 -0
- package/components/table/cell-types.js +296 -0
- package/components/table/table.a2ui.json +458 -0
- package/components/table/table.css +531 -0
- package/components/table/table.js +1392 -0
- package/components/table/table.yaml +528 -0
- package/components/tabs/tab.js +34 -0
- package/components/tabs/tabs.a2ui.json +174 -0
- package/components/tabs/tabs.css +162 -0
- package/components/tabs/tabs.js +226 -0
- package/components/tabs/tabs.yaml +255 -0
- package/components/tag/tag.a2ui.json +148 -0
- package/components/tag/tag.css +118 -0
- package/components/tag/tag.js +88 -0
- package/components/tag/tag.yaml +125 -0
- package/components/text/text.a2ui.json +99 -0
- package/components/text/text.css +65 -0
- package/components/text/text.js +35 -0
- package/components/text/text.yaml +360 -0
- package/components/textarea/textarea.a2ui.json +91 -0
- package/components/textarea/textarea.css +93 -0
- package/components/textarea/textarea.js +114 -0
- package/components/textarea/textarea.yaml +79 -0
- package/components/timeline/timeline.a2ui.json +82 -0
- package/components/timeline/timeline.css +389 -0
- package/components/timeline/timeline.js +171 -0
- package/components/timeline/timeline.yaml +185 -0
- package/components/toast/toast.a2ui.json +199 -0
- package/components/toast/toast.css +211 -0
- package/components/toast/toast.js +146 -0
- package/components/toast/toast.yaml +184 -0
- package/components/toggle-group/toggle-group.a2ui.json +126 -0
- package/components/toggle-group/toggle-group.css +102 -0
- package/components/toggle-group/toggle-group.js +147 -0
- package/components/toggle-group/toggle-group.yaml +98 -0
- package/components/toolbar/toolbar.a2ui.json +131 -0
- package/components/toolbar/toolbar.css +132 -0
- package/components/toolbar/toolbar.js +366 -0
- package/components/toolbar/toolbar.yaml +238 -0
- package/components/tooltip/tooltip.a2ui.json +148 -0
- package/components/tooltip/tooltip.css +39 -0
- package/components/tooltip/tooltip.js +96 -0
- package/components/tooltip/tooltip.yaml +201 -0
- package/components/tree/tree.a2ui.json +119 -0
- package/components/tree/tree.css +133 -0
- package/components/tree/tree.js +253 -0
- package/components/tree/tree.yaml +92 -0
- package/components/upload/upload.a2ui.json +185 -0
- package/components/upload/upload.css +115 -0
- package/components/upload/upload.js +189 -0
- package/components/upload/upload.yaml +302 -0
- package/core/anchor.js +187 -0
- package/core/controller.js +182 -0
- package/core/element.js +257 -0
- package/core/form.js +217 -0
- package/core/icons.js +180 -0
- package/core/markdown.js +95 -0
- package/core/polyfills.js +23 -0
- package/core/provider.js +262 -0
- package/core/signals.js +113 -0
- package/core/template.js +226 -0
- package/core/transport.js +77 -0
- package/package.json +38 -0
- package/patterns/adia-chat/adia-chat.a2ui.json +149 -0
- package/patterns/adia-chat/adia-chat.css +10 -0
- package/patterns/adia-chat/adia-chat.js +297 -0
- package/patterns/adia-chat/adia-chat.yaml +118 -0
- package/patterns/adia-chat/css/adia-chat.empty.css +12 -0
- package/patterns/adia-chat/css/adia-chat.layout.css +60 -0
- package/patterns/adia-chat/css/adia-chat.markdown.css +74 -0
- package/patterns/adia-chat/css/adia-chat.messages.css +87 -0
- package/patterns/adia-chat/css/adia-chat.streaming.css +30 -0
- package/patterns/adia-chat/css/adia-chat.tokens.css +95 -0
- package/patterns/adia-chat/index.html +93 -0
- package/patterns/adia-editor/adia-editor.a2ui.json +58 -0
- package/patterns/adia-editor/adia-editor.css +6 -0
- package/patterns/adia-editor/adia-editor.js +56 -0
- package/patterns/adia-editor/adia-editor.yaml +36 -0
- package/patterns/adia-editor/css/adia-editor.layout.css +86 -0
- package/patterns/adia-editor/css/adia-editor.tokens.css +28 -0
- package/patterns/adia-editor/index.html +179 -0
- package/patterns/app-nav/app-nav.a2ui.json +89 -0
- package/patterns/app-nav/app-nav.css +92 -0
- package/patterns/app-nav/app-nav.js +99 -0
- package/patterns/app-nav/app-nav.yaml +54 -0
- package/patterns/app-nav-group/app-nav-group.a2ui.json +82 -0
- package/patterns/app-nav-group/app-nav-group.css +261 -0
- package/patterns/app-nav-group/app-nav-group.js +116 -0
- package/patterns/app-nav-group/app-nav-group.yaml +59 -0
- package/patterns/app-nav-item/app-nav-item.a2ui.json +83 -0
- package/patterns/app-nav-item/app-nav-item.css +156 -0
- package/patterns/app-nav-item/app-nav-item.js +42 -0
- package/patterns/app-nav-item/app-nav-item.yaml +62 -0
- package/patterns/app-shell/app-shell.a2ui.json +114 -0
- package/patterns/app-shell/app-shell.css +14 -0
- package/patterns/app-shell/app-shell.js +251 -0
- package/patterns/app-shell/app-shell.yaml +66 -0
- package/patterns/app-shell/css/app-shell.collapsed.css +86 -0
- package/patterns/app-shell/css/app-shell.helpers.css +42 -0
- package/patterns/app-shell/css/app-shell.main.css +58 -0
- package/patterns/app-shell/css/app-shell.shell.css +44 -0
- package/patterns/app-shell/css/app-shell.sidebar.css +116 -0
- package/patterns/app-shell/css/app-shell.templates.css +214 -0
- package/patterns/app-shell/css/app-shell.tokens.css +116 -0
- package/patterns/app-shell/index.html +112 -0
- package/patterns/gen-ui/gen-ui.a2ui.json +72 -0
- package/patterns/gen-ui/gen-ui.css +83 -0
- package/patterns/gen-ui/gen-ui.js +136 -0
- package/patterns/gen-ui/gen-ui.yaml +43 -0
- package/patterns/index.js +10 -0
- package/patterns/section-nav/section-nav.a2ui.json +91 -0
- package/patterns/section-nav/section-nav.css +59 -0
- package/patterns/section-nav/section-nav.js +42 -0
- package/patterns/section-nav/section-nav.yaml +58 -0
- package/patterns/section-nav-group/section-nav-group.a2ui.json +95 -0
- package/patterns/section-nav-group/section-nav-group.css +74 -0
- package/patterns/section-nav-group/section-nav-group.js +84 -0
- package/patterns/section-nav-group/section-nav-group.yaml +66 -0
- package/patterns/section-nav-item/section-nav-item.a2ui.json +97 -0
- package/patterns/section-nav-item/section-nav-item.css +96 -0
- package/patterns/section-nav-item/section-nav-item.js +66 -0
- package/patterns/section-nav-item/section-nav-item.yaml +70 -0
- package/styles/colors/index.css +6 -0
- package/styles/colors/parameters.css +52 -0
- package/styles/colors/primitives-accent.css +89 -0
- package/styles/colors/primitives-brand.css +89 -0
- package/styles/colors/primitives-danger.css +89 -0
- package/styles/colors/primitives-info.css +89 -0
- package/styles/colors/primitives-neutral.css +91 -0
- package/styles/colors/primitives-shared.css +57 -0
- package/styles/colors/primitives-success.css +89 -0
- package/styles/colors/primitives-warning.css +89 -0
- package/styles/colors/primitives.css +17 -0
- package/styles/colors/scrims.css +182 -0
- package/styles/colors/semantics.css +595 -0
- package/styles/colors/surfaces.css +43 -0
- package/styles/fonts.css +99 -0
- package/styles/layouts/admin.css +7 -0
- package/styles/prose.css +186 -0
- package/styles/styles.css +193 -0
- package/styles/themes.css +155 -0
- package/styles/tokens.css +304 -0
- package/styles/typography.css +853 -0
- package/traits/active-state.js +24 -0
- package/traits/anchor-positioning.js +66 -0
- package/traits/attention-pulse.js +30 -0
- package/traits/confetti-burst.js +65 -0
- package/traits/confetti.js +57 -0
- package/traits/count-up.js +42 -0
- package/traits/define.js +76 -0
- package/traits/dirty-state.js +38 -0
- package/traits/drag-ghost.js +38 -0
- package/traits/draggable.js +73 -0
- package/traits/fade-presence.js +52 -0
- package/traits/focus-trap.js +63 -0
- package/traits/focusable.js +38 -0
- package/traits/glow-focus.js +33 -0
- package/traits/gradient-shift.js +32 -0
- package/traits/haptic-feedback.js +28 -0
- package/traits/hotkey.js +62 -0
- package/traits/hoverable.js +26 -0
- package/traits/index.js +55 -0
- package/traits/inertia-drag.js +133 -0
- package/traits/intersection-observer.js +33 -0
- package/traits/keyboard-nav.js +36 -0
- package/traits/magnetic-hover.js +37 -0
- package/traits/noise-texture.js +30 -0
- package/traits/parallax.js +42 -0
- package/traits/portal.js +27 -0
- package/traits/pressable.js +75 -0
- package/traits/resizable.js +100 -0
- package/traits/resize-observer.js +31 -0
- package/traits/ripple.js +53 -0
- package/traits/roving-tabindex.js +67 -0
- package/traits/scale-press.js +43 -0
- package/traits/scroll-lock.js +27 -0
- package/traits/shimmer-loading.js +44 -0
- package/traits/snap-to-grid.js +28 -0
- package/traits/sound-feedback.js +30 -0
- package/traits/spring-animate.js +56 -0
- package/traits/tilt-hover.js +37 -0
- package/traits/tossable.js +178 -0
- package/traits/typeahead.js +63 -0
- package/traits/typewriter.js +35 -0
- package/traits/validation.js +118 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
|
+
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
|
+
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
+
name: AdiaTable
|
|
5
|
+
tag: table-ui
|
|
6
|
+
component: Table
|
|
7
|
+
category: agent
|
|
8
|
+
version: 1
|
|
9
|
+
description: Data table with sorting, selection, pagination, search, column resize, keyboard nav,
|
|
10
|
+
cell types, and CSV export. CSS grid + ARIA grid roles.
|
|
11
|
+
props:
|
|
12
|
+
density:
|
|
13
|
+
description: Controls cell padding and row height. 'compact' for dense data, 'standard' for default
|
|
14
|
+
spacing, 'comfortable' for spacious rows.
|
|
15
|
+
type: string
|
|
16
|
+
default: standard
|
|
17
|
+
enum:
|
|
18
|
+
- compact
|
|
19
|
+
- standard
|
|
20
|
+
- comfortable
|
|
21
|
+
expandable:
|
|
22
|
+
description: Enable row expansion
|
|
23
|
+
type: boolean
|
|
24
|
+
default: false
|
|
25
|
+
loading:
|
|
26
|
+
description: Shows a loading overlay and skeleton rows. Sets aria-busy="true". Data updates are
|
|
27
|
+
deferred until loading is set back to false.
|
|
28
|
+
type: boolean
|
|
29
|
+
default: false
|
|
30
|
+
reflect: true
|
|
31
|
+
paginate:
|
|
32
|
+
description: Rows per page. 0 = show all rows without pagination. When > 0, renders a pagination bar
|
|
33
|
+
below the table.
|
|
34
|
+
type: number
|
|
35
|
+
default: 0
|
|
36
|
+
raw:
|
|
37
|
+
description: Raw mode
|
|
38
|
+
type: boolean
|
|
39
|
+
default: false
|
|
40
|
+
reflect: true
|
|
41
|
+
search:
|
|
42
|
+
description: Global search/filter string. Filters visible rows across all columns using
|
|
43
|
+
case-insensitive substring matching. Resets to page 1 on change.
|
|
44
|
+
type: string
|
|
45
|
+
default: ""
|
|
46
|
+
selectable:
|
|
47
|
+
description: Show checkbox column for row selection. Select-all checkbox in header. Shift+click for
|
|
48
|
+
range select.
|
|
49
|
+
type: boolean
|
|
50
|
+
default: false
|
|
51
|
+
sortable:
|
|
52
|
+
description: Enable click-to-sort on column headers. Supports multi-sort via Shift+click.
|
|
53
|
+
type: boolean
|
|
54
|
+
default: false
|
|
55
|
+
striped:
|
|
56
|
+
description: Alternate row background colors for visual scanning.
|
|
57
|
+
type: boolean
|
|
58
|
+
default: false
|
|
59
|
+
events:
|
|
60
|
+
cell-click:
|
|
61
|
+
description: Fired when a data cell is clicked.
|
|
62
|
+
page:
|
|
63
|
+
description: Fired when the user navigates to a different page.
|
|
64
|
+
resize:
|
|
65
|
+
description: Fired when a column is resized via drag.
|
|
66
|
+
select:
|
|
67
|
+
description: Fired when row selection changes.
|
|
68
|
+
sort:
|
|
69
|
+
description: Fired when sort state changes via header click.
|
|
70
|
+
slots: {}
|
|
71
|
+
states:
|
|
72
|
+
- name: idle
|
|
73
|
+
description: Default, ready for interaction.
|
|
74
|
+
traits: []
|
|
75
|
+
tokens:
|
|
76
|
+
--table-accent:
|
|
77
|
+
description: Accent color for checkboxes and focus
|
|
78
|
+
--table-border-color:
|
|
79
|
+
description: Row/cell border color
|
|
80
|
+
--table-border-width:
|
|
81
|
+
description: Border width
|
|
82
|
+
--table-font-family:
|
|
83
|
+
description: Font family
|
|
84
|
+
--table-font-size:
|
|
85
|
+
description: Body font size
|
|
86
|
+
--table-foreground:
|
|
87
|
+
description: Body text color
|
|
88
|
+
--table-heading-background:
|
|
89
|
+
description: Header row background
|
|
90
|
+
--table-heading-color:
|
|
91
|
+
description: Header text color
|
|
92
|
+
--table-heading-size:
|
|
93
|
+
description: Header font size
|
|
94
|
+
--table-heading-weight:
|
|
95
|
+
description: Header font weight
|
|
96
|
+
--table-loading-overlay:
|
|
97
|
+
description: Loading overlay background
|
|
98
|
+
--table-padding-x:
|
|
99
|
+
description: Horizontal cell padding
|
|
100
|
+
--table-padding-y:
|
|
101
|
+
description: Vertical cell padding
|
|
102
|
+
--table-radius:
|
|
103
|
+
description: Border-radius for table container
|
|
104
|
+
--table-resize-handle-color:
|
|
105
|
+
description: Column resize drag handle color
|
|
106
|
+
--table-resize-handle-width:
|
|
107
|
+
description: Resize handle hit area width
|
|
108
|
+
--table-row-background:
|
|
109
|
+
description: Default row background
|
|
110
|
+
--table-row-background-hover:
|
|
111
|
+
description: Row hover background
|
|
112
|
+
--table-row-background-selected:
|
|
113
|
+
description: Selected row background
|
|
114
|
+
--table-row-background-striped:
|
|
115
|
+
description: Alternate row background
|
|
116
|
+
--table-search-highlight:
|
|
117
|
+
description: Search match highlight color
|
|
118
|
+
--table-sort-indicator-color:
|
|
119
|
+
description: Sort arrow color
|
|
120
|
+
--table-transition:
|
|
121
|
+
description: Transition timing
|
|
122
|
+
a2ui:
|
|
123
|
+
rules: []
|
|
124
|
+
anti_patterns: []
|
|
125
|
+
examples:
|
|
126
|
+
- name: api-key-table
|
|
127
|
+
description: API key management table with actions and status badges.
|
|
128
|
+
a2ui: >-
|
|
129
|
+
[
|
|
130
|
+
{
|
|
131
|
+
"id": "root",
|
|
132
|
+
"component": "Card",
|
|
133
|
+
"children": [
|
|
134
|
+
"hdr",
|
|
135
|
+
"sec"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "hdr",
|
|
140
|
+
"component": "Header",
|
|
141
|
+
"children": [
|
|
142
|
+
"title",
|
|
143
|
+
"add"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "title",
|
|
148
|
+
"component": "Text",
|
|
149
|
+
"slot": "heading",
|
|
150
|
+
"textContent": "API Keys"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "add",
|
|
154
|
+
"component": "Button",
|
|
155
|
+
"slot": "action",
|
|
156
|
+
"text": "Create Key",
|
|
157
|
+
"variant": "primary",
|
|
158
|
+
"size": "sm"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "sec",
|
|
162
|
+
"component": "Section",
|
|
163
|
+
"children": [
|
|
164
|
+
"tbl"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "tbl",
|
|
169
|
+
"component": "Table",
|
|
170
|
+
"sortable": true,
|
|
171
|
+
"columns": [
|
|
172
|
+
{
|
|
173
|
+
"key": "name",
|
|
174
|
+
"label": "Name",
|
|
175
|
+
"sortable": true
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"key": "key",
|
|
179
|
+
"label": "Key"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "created",
|
|
183
|
+
"label": "Created",
|
|
184
|
+
"sortable": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"key": "lastUsed",
|
|
188
|
+
"label": "Last Used",
|
|
189
|
+
"sortable": true
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"key": "status",
|
|
193
|
+
"label": "Status",
|
|
194
|
+
"component": "Badge"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"rows": [
|
|
198
|
+
{
|
|
199
|
+
"name": "Production API",
|
|
200
|
+
"key": "sk-****-****-3a7f",
|
|
201
|
+
"created": "2025-01-15",
|
|
202
|
+
"lastUsed": "2025-04-16",
|
|
203
|
+
"status": {
|
|
204
|
+
"text": "Active",
|
|
205
|
+
"variant": "success"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "Staging API",
|
|
210
|
+
"key": "sk-****-****-9b2e",
|
|
211
|
+
"created": "2025-03-01",
|
|
212
|
+
"lastUsed": "2025-04-10",
|
|
213
|
+
"status": {
|
|
214
|
+
"text": "Active",
|
|
215
|
+
"variant": "success"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "Legacy Client",
|
|
220
|
+
"key": "sk-****-****-5d1c",
|
|
221
|
+
"created": "2024-06-20",
|
|
222
|
+
"lastUsed": "2024-12-01",
|
|
223
|
+
"status": {
|
|
224
|
+
"text": "Revoked",
|
|
225
|
+
"variant": "danger"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
- name: data-table-view
|
|
232
|
+
description: Card with header containing title and search input, table component, and pagination footer.
|
|
233
|
+
a2ui: >-
|
|
234
|
+
[
|
|
235
|
+
{
|
|
236
|
+
"id": "root",
|
|
237
|
+
"component": "Card",
|
|
238
|
+
"size": "lg",
|
|
239
|
+
"children": [
|
|
240
|
+
"hdr",
|
|
241
|
+
"sec",
|
|
242
|
+
"ftr"
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "hdr",
|
|
247
|
+
"component": "Header",
|
|
248
|
+
"children": [
|
|
249
|
+
"title-row"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "title-row",
|
|
254
|
+
"component": "Row",
|
|
255
|
+
"children": [
|
|
256
|
+
"title",
|
|
257
|
+
"search"
|
|
258
|
+
],
|
|
259
|
+
"gap": "4"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "title",
|
|
263
|
+
"component": "Text",
|
|
264
|
+
"slot": "heading",
|
|
265
|
+
"textContent": "Data Table",
|
|
266
|
+
"variant": "section"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "search",
|
|
270
|
+
"component": "Input",
|
|
271
|
+
"placeholder": "Search...",
|
|
272
|
+
"type": "search",
|
|
273
|
+
"name": "search"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "sec",
|
|
277
|
+
"component": "Section",
|
|
278
|
+
"children": [
|
|
279
|
+
"tbl"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "tbl",
|
|
284
|
+
"component": "Table",
|
|
285
|
+
"sortable": true
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "ftr",
|
|
289
|
+
"component": "Footer",
|
|
290
|
+
"children": [
|
|
291
|
+
"pager"
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"id": "pager",
|
|
296
|
+
"component": "Pagination",
|
|
297
|
+
"totalPages": 10,
|
|
298
|
+
"currentPage": 1
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
keywords:
|
|
302
|
+
- table
|
|
303
|
+
- order
|
|
304
|
+
- invoice
|
|
305
|
+
- reporting
|
|
306
|
+
- spreadsheet
|
|
307
|
+
- grid
|
|
308
|
+
- listing
|
|
309
|
+
- records
|
|
310
|
+
- database
|
|
311
|
+
- csv
|
|
312
|
+
- excel
|
|
313
|
+
- rows
|
|
314
|
+
- columns
|
|
315
|
+
- datatable
|
|
316
|
+
- directory
|
|
317
|
+
- admin
|
|
318
|
+
- backoffice
|
|
319
|
+
- console
|
|
320
|
+
- crm
|
|
321
|
+
- paginate
|
|
322
|
+
- import
|
|
323
|
+
- export
|
|
324
|
+
- download
|
|
325
|
+
- billing
|
|
326
|
+
- api
|
|
327
|
+
- leaderboard
|
|
328
|
+
- ranking
|
|
329
|
+
- inventory
|
|
330
|
+
- stock
|
|
331
|
+
- warehouse
|
|
332
|
+
- supply
|
|
333
|
+
- log
|
|
334
|
+
- audit
|
|
335
|
+
- history
|
|
336
|
+
- file-manager
|
|
337
|
+
- files
|
|
338
|
+
- assets
|
|
339
|
+
- management
|
|
340
|
+
- manage
|
|
341
|
+
synonyms:
|
|
342
|
+
admin:
|
|
343
|
+
- dashboard
|
|
344
|
+
- table
|
|
345
|
+
- data
|
|
346
|
+
- sidebar
|
|
347
|
+
- nav
|
|
348
|
+
- settings
|
|
349
|
+
api:
|
|
350
|
+
- api
|
|
351
|
+
- key
|
|
352
|
+
- table
|
|
353
|
+
- code
|
|
354
|
+
assets:
|
|
355
|
+
- data
|
|
356
|
+
- table
|
|
357
|
+
- file
|
|
358
|
+
- image
|
|
359
|
+
- gallery
|
|
360
|
+
audit:
|
|
361
|
+
- team
|
|
362
|
+
- activity
|
|
363
|
+
- table
|
|
364
|
+
- data
|
|
365
|
+
backoffice:
|
|
366
|
+
- dashboard
|
|
367
|
+
- table
|
|
368
|
+
- data
|
|
369
|
+
- sidebar
|
|
370
|
+
- settings
|
|
371
|
+
billing:
|
|
372
|
+
- pricing
|
|
373
|
+
- tier
|
|
374
|
+
- table
|
|
375
|
+
columns:
|
|
376
|
+
- split
|
|
377
|
+
- grid
|
|
378
|
+
- table
|
|
379
|
+
console:
|
|
380
|
+
- dashboard
|
|
381
|
+
- table
|
|
382
|
+
- data
|
|
383
|
+
- sidebar
|
|
384
|
+
- command
|
|
385
|
+
crm:
|
|
386
|
+
- dashboard
|
|
387
|
+
- table
|
|
388
|
+
- data
|
|
389
|
+
- user
|
|
390
|
+
- profile
|
|
391
|
+
- chart
|
|
392
|
+
csv:
|
|
393
|
+
- table
|
|
394
|
+
- data
|
|
395
|
+
- import
|
|
396
|
+
database:
|
|
397
|
+
- table
|
|
398
|
+
- data
|
|
399
|
+
- import
|
|
400
|
+
datatable:
|
|
401
|
+
- table
|
|
402
|
+
- data
|
|
403
|
+
directory:
|
|
404
|
+
- team
|
|
405
|
+
- avatar
|
|
406
|
+
- group
|
|
407
|
+
- table
|
|
408
|
+
- data
|
|
409
|
+
download:
|
|
410
|
+
- data
|
|
411
|
+
- table
|
|
412
|
+
- file
|
|
413
|
+
excel:
|
|
414
|
+
- table
|
|
415
|
+
- data
|
|
416
|
+
- import
|
|
417
|
+
export:
|
|
418
|
+
- data
|
|
419
|
+
- table
|
|
420
|
+
- download
|
|
421
|
+
file-manager:
|
|
422
|
+
- data
|
|
423
|
+
- table
|
|
424
|
+
- file
|
|
425
|
+
- upload
|
|
426
|
+
files:
|
|
427
|
+
- data
|
|
428
|
+
- table
|
|
429
|
+
- file
|
|
430
|
+
- upload
|
|
431
|
+
grid:
|
|
432
|
+
- table
|
|
433
|
+
- data
|
|
434
|
+
- card
|
|
435
|
+
- image
|
|
436
|
+
- feature
|
|
437
|
+
- grid
|
|
438
|
+
history:
|
|
439
|
+
- team
|
|
440
|
+
- activity
|
|
441
|
+
- table
|
|
442
|
+
import:
|
|
443
|
+
- data
|
|
444
|
+
- import
|
|
445
|
+
- file
|
|
446
|
+
- upload
|
|
447
|
+
- table
|
|
448
|
+
inventory:
|
|
449
|
+
- inventory
|
|
450
|
+
- table
|
|
451
|
+
- product
|
|
452
|
+
- data
|
|
453
|
+
invoice:
|
|
454
|
+
- table
|
|
455
|
+
- data
|
|
456
|
+
- pricing
|
|
457
|
+
leaderboard:
|
|
458
|
+
- leaderboard
|
|
459
|
+
- table
|
|
460
|
+
- rank
|
|
461
|
+
listing:
|
|
462
|
+
- table
|
|
463
|
+
- data
|
|
464
|
+
- list
|
|
465
|
+
log:
|
|
466
|
+
- team
|
|
467
|
+
- activity
|
|
468
|
+
- table
|
|
469
|
+
- data
|
|
470
|
+
manage:
|
|
471
|
+
- project
|
|
472
|
+
- board
|
|
473
|
+
- kanban
|
|
474
|
+
- team
|
|
475
|
+
- dashboard
|
|
476
|
+
- settings
|
|
477
|
+
- table
|
|
478
|
+
management:
|
|
479
|
+
- project
|
|
480
|
+
- board
|
|
481
|
+
- kanban
|
|
482
|
+
- team
|
|
483
|
+
- activity
|
|
484
|
+
- settings
|
|
485
|
+
- dashboard
|
|
486
|
+
- table
|
|
487
|
+
order:
|
|
488
|
+
- table
|
|
489
|
+
- data
|
|
490
|
+
- inventory
|
|
491
|
+
- form
|
|
492
|
+
paginate:
|
|
493
|
+
- pagination
|
|
494
|
+
- nav
|
|
495
|
+
- table
|
|
496
|
+
ranking:
|
|
497
|
+
- leaderboard
|
|
498
|
+
- table
|
|
499
|
+
records:
|
|
500
|
+
- table
|
|
501
|
+
- data
|
|
502
|
+
reporting:
|
|
503
|
+
- chart
|
|
504
|
+
- dashboard
|
|
505
|
+
- metric
|
|
506
|
+
- stat
|
|
507
|
+
- table
|
|
508
|
+
- data
|
|
509
|
+
rows:
|
|
510
|
+
- table
|
|
511
|
+
- data
|
|
512
|
+
spreadsheet:
|
|
513
|
+
- table
|
|
514
|
+
- data
|
|
515
|
+
stock:
|
|
516
|
+
- inventory
|
|
517
|
+
- table
|
|
518
|
+
- product
|
|
519
|
+
supply:
|
|
520
|
+
- inventory
|
|
521
|
+
- table
|
|
522
|
+
warehouse:
|
|
523
|
+
- inventory
|
|
524
|
+
- table
|
|
525
|
+
related:
|
|
526
|
+
- button
|
|
527
|
+
- input
|
|
528
|
+
- pagination
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <tab-ui value="tab1" text="Tab 1" icon="star">
|
|
3
|
+
* Content for this tab panel.
|
|
4
|
+
* </tab-ui>
|
|
5
|
+
*
|
|
6
|
+
* Child of tabs-ui. Represents one tab panel.
|
|
7
|
+
* The tab button is rendered by the parent tabs-ui, not by tab-ui itself.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { AdiaElement } from '@core/element.js';
|
|
11
|
+
|
|
12
|
+
class AdiaTab extends AdiaElement {
|
|
13
|
+
static properties = {
|
|
14
|
+
text: { type: String, default: '', reflect: true },
|
|
15
|
+
value: { type: String, default: '', reflect: true },
|
|
16
|
+
icon: { type: String, default: '', reflect: true },
|
|
17
|
+
disabled: { type: Boolean, default: false, reflect: true },
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
static template = () => null;
|
|
21
|
+
|
|
22
|
+
connected() {
|
|
23
|
+
this.setAttribute('role', 'tabpanel');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
render() {
|
|
27
|
+
if (this.text) this.setAttribute('aria-label', this.text);
|
|
28
|
+
if (this.disabled) this.setAttribute('aria-disabled', 'true');
|
|
29
|
+
else this.removeAttribute('aria-disabled');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
customElements.define('tab-ui', AdiaTab);
|
|
33
|
+
|
|
34
|
+
export { AdiaTab };
|