@metamorph-labs/polymorph-vue-ui 1.0.17 → 1.0.18
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/CHANGELOG.md +166 -0
- package/dist/ai/ArtifactPane.js.map +1 -1
- package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
- package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/PromptInput.js.map +1 -1
- package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
- package/dist/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/ReasoningDisclosure.js.map +1 -1
- package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/ToolCall.js.map +1 -1
- package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/ai/artifact-pane.css +1 -1
- package/dist/ai/artifact-pane.module.js +1 -1
- package/dist/ai/attachment-chip.css +1 -1
- package/dist/ai/attachment-chip.module.js +1 -1
- package/dist/ai/attachment-chip.module.js.map +1 -1
- package/dist/ai/chat-thread.css +1 -1
- package/dist/ai/chat-thread.module.js +1 -1
- package/dist/ai/citation.css +1 -1
- package/dist/ai/citation.module.js +1 -1
- package/dist/ai/prompt-input.css +1 -1
- package/dist/ai/prompt-input.module.js +1 -1
- package/dist/ai/prompt-input.module.js.map +1 -1
- package/dist/ai/reasoning-disclosure.css +1 -1
- package/dist/ai/reasoning-disclosure.module.js +5 -5
- package/dist/ai/reasoning-disclosure.module.js.map +1 -1
- package/dist/ai/source-list.css +1 -1
- package/dist/ai/source-list.module.js +1 -1
- package/dist/ai/source-list.module.js.map +1 -1
- package/dist/ai/tool-call.css +1 -1
- package/dist/ai/tool-call.module.js +1 -1
- package/dist/archetypes/AppShell.js.map +1 -1
- package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
- package/dist/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/archetypes/FormPage.js.map +1 -1
- package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
- package/dist/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/archetypes/app-shell.css +1 -1
- package/dist/archetypes/app-shell.module.js +9 -8
- package/dist/archetypes/app-shell.module.js.map +1 -1
- package/dist/archetypes/form-page.css +1 -1
- package/dist/archetypes/form-page.module.js +5 -3
- package/dist/archetypes/form-page.module.js.map +1 -1
- package/dist/archetypes/master-detail-page.css +1 -1
- package/dist/archetypes/master-detail-page.module.js +1 -1
- package/dist/archetypes/master-detail-page.module.js.map +1 -1
- package/dist/charts/area-chart.css +1 -1
- package/dist/charts/area-chart.module.js +1 -1
- package/dist/charts/bar-chart.css +1 -1
- package/dist/charts/bar-chart.module.js +1 -1
- package/dist/charts/donut-chart.css +1 -1
- package/dist/charts/donut-chart.module.js +1 -1
- package/dist/charts/frame/chart-frame.css +1 -1
- package/dist/charts/frame/chart-frame.module.js +1 -1
- package/dist/charts/frame/chart-legend.css +1 -1
- package/dist/charts/frame/chart-legend.module.js +1 -1
- package/dist/charts/frame/chart-legend.module.js.map +1 -1
- package/dist/charts/funnel-chart.css +1 -1
- package/dist/charts/funnel-chart.module.js +1 -1
- package/dist/charts/heatmap.css +1 -1
- package/dist/charts/heatmap.module.js +1 -1
- package/dist/charts/histogram.css +1 -1
- package/dist/charts/histogram.module.js +1 -1
- package/dist/charts/line-chart.css +1 -1
- package/dist/charts/line-chart.module.js +1 -1
- package/dist/charts/radar-chart.css +1 -1
- package/dist/charts/radar-chart.module.js +1 -1
- package/dist/charts/scatter-chart.css +1 -1
- package/dist/charts/scatter-chart.module.js +1 -1
- package/dist/charts/treemap.css +1 -1
- package/dist/charts/treemap.module.js +1 -1
- package/dist/controls/AvatarButton.js.map +1 -1
- package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
- package/dist/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Button.js.map +1 -1
- package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
- package/dist/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Calendar.js.map +1 -1
- package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Checkbox.js.map +1 -1
- package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/ColorInput.js.map +1 -1
- package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
- package/dist/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Combobox.js.map +1 -1
- package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/CopyButton.js.map +1 -1
- package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
- package/dist/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/DatePicker.js.map +1 -1
- package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/DateRangePicker.js.map +1 -1
- package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/FileUpload.js.map +1 -1
- package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
- package/dist/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/InlineEdit.js.map +1 -1
- package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
- package/dist/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/MultiSelect.js.map +1 -1
- package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
- package/dist/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/NumberInput.js.map +1 -1
- package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/PhoneInput.js.map +1 -1
- package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/RadioGroup.js.map +1 -1
- package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/SegmentedControl.js.map +1 -1
- package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Select.js.map +1 -1
- package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Slider.js.map +1 -1
- package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/SplitButton.js.map +1 -1
- package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
- package/dist/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/SplitButtonSubmenu.js.map +1 -1
- package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/Switch.js.map +1 -1
- package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/TagInput.js.map +1 -1
- package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
- package/dist/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/TreeSelect.js.map +1 -1
- package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/controls/avatar-button.css +1 -1
- package/dist/controls/avatar-button.module.js +5 -4
- package/dist/controls/avatar-button.module.js.map +1 -1
- package/dist/controls/button.css +1 -1
- package/dist/controls/button.module.js +4 -3
- package/dist/controls/button.module.js.map +1 -1
- package/dist/controls/calendar.css +1 -1
- package/dist/controls/calendar.module.js +3 -3
- package/dist/controls/calendar.module.js.map +1 -1
- package/dist/controls/checkbox-group.css +1 -1
- package/dist/controls/checkbox-group.module.js +1 -1
- package/dist/controls/checkbox.css +1 -1
- package/dist/controls/checkbox.module.js +2 -2
- package/dist/controls/checkbox.module.js.map +1 -1
- package/dist/controls/choice-card.css +1 -1
- package/dist/controls/choice-card.module.js +2 -2
- package/dist/controls/choice-card.module.js.map +1 -1
- package/dist/controls/color-input.css +1 -1
- package/dist/controls/color-input.module.js +1 -1
- package/dist/controls/color-input.module.js.map +1 -1
- package/dist/controls/combobox.css +1 -1
- package/dist/controls/combobox.module.js +5 -5
- package/dist/controls/combobox.module.js.map +1 -1
- package/dist/controls/copy-button.css +1 -1
- package/dist/controls/copy-button.module.js +8 -7
- package/dist/controls/copy-button.module.js.map +1 -1
- package/dist/controls/date-picker.css +1 -1
- package/dist/controls/date-picker.module.js +1 -1
- package/dist/controls/date-range-picker.css +1 -1
- package/dist/controls/date-range-picker.module.js +6 -6
- package/dist/controls/date-range-picker.module.js.map +1 -1
- package/dist/controls/duration-input.css +1 -1
- package/dist/controls/duration-input.module.js +1 -1
- package/dist/controls/file-upload.css +1 -1
- package/dist/controls/file-upload.module.js +1 -1
- package/dist/controls/file-upload.module.js.map +1 -1
- package/dist/controls/input.css +1 -1
- package/dist/controls/input.module.js +2 -2
- package/dist/controls/input.module.js.map +1 -1
- package/dist/controls/link.css +1 -1
- package/dist/controls/link.module.js +1 -1
- package/dist/controls/link.module.js.map +1 -1
- package/dist/controls/month-input.css +1 -1
- package/dist/controls/month-input.module.js +1 -1
- package/dist/controls/multi-select.css +1 -1
- package/dist/controls/multi-select.module.js +5 -5
- package/dist/controls/multi-select.module.js.map +1 -1
- package/dist/controls/number-input.css +1 -1
- package/dist/controls/number-input.module.js +1 -1
- package/dist/controls/number-input.module.js.map +1 -1
- package/dist/controls/otp-input.css +1 -1
- package/dist/controls/otp-input.module.js +2 -2
- package/dist/controls/otp-input.module.js.map +1 -1
- package/dist/controls/password-input.css +1 -1
- package/dist/controls/password-input.module.js +2 -2
- package/dist/controls/password-input.module.js.map +1 -1
- package/dist/controls/provider-button.css +1 -1
- package/dist/controls/provider-button.module.js +1 -1
- package/dist/controls/radio-group.css +1 -1
- package/dist/controls/radio-group.module.js +2 -2
- package/dist/controls/radio-group.module.js.map +1 -1
- package/dist/controls/rating.css +1 -1
- package/dist/controls/rating.module.js +1 -1
- package/dist/controls/rich-text-input.css +1 -1
- package/dist/controls/rich-text-input.module.js +1 -1
- package/dist/controls/rich-text-input.module.js.map +1 -1
- package/dist/controls/segmented-control.css +1 -1
- package/dist/controls/segmented-control.module.js +1 -1
- package/dist/controls/select.css +1 -1
- package/dist/controls/select.module.js +3 -3
- package/dist/controls/select.module.js.map +1 -1
- package/dist/controls/slider.css +1 -1
- package/dist/controls/slider.module.js +1 -1
- package/dist/controls/slider.module.js.map +1 -1
- package/dist/controls/split-button.css +1 -1
- package/dist/controls/split-button.module.js +20 -19
- package/dist/controls/split-button.module.js.map +1 -1
- package/dist/controls/switch.css +1 -1
- package/dist/controls/switch.module.js +1 -1
- package/dist/controls/switch.module.js.map +1 -1
- package/dist/controls/tag-input.css +1 -1
- package/dist/controls/tag-input.module.js +1 -1
- package/dist/controls/textarea.css +1 -1
- package/dist/controls/textarea.module.js +1 -1
- package/dist/controls/time-input.css +1 -1
- package/dist/controls/time-input.module.js +1 -1
- package/dist/controls/tree-select.css +1 -1
- package/dist/controls/tree-select.module.js +1 -1
- package/dist/layout/split-pane.css +1 -1
- package/dist/layout/split-pane.module.js +1 -1
- package/dist/layout/split-pane.module.js.map +1 -1
- package/dist/node/ai/ArtifactPane.js.map +1 -1
- package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js +80 -72
- package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/PromptInput.js.map +1 -1
- package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js +105 -105
- package/dist/node/ai/PromptInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/ReasoningDisclosure.js.map +1 -1
- package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/ai/ReasoningDisclosure.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/ToolCall.js.map +1 -1
- package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/ai/ToolCall.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/ai/artifact-pane.module.js +1 -1
- package/dist/node/ai/attachment-chip.module.js +1 -1
- package/dist/node/ai/attachment-chip.module.js.map +1 -1
- package/dist/node/ai/chat-thread.module.js +1 -1
- package/dist/node/ai/citation.module.js +1 -1
- package/dist/node/ai/prompt-input.module.js +1 -1
- package/dist/node/ai/prompt-input.module.js.map +1 -1
- package/dist/node/ai/reasoning-disclosure.module.js +5 -5
- package/dist/node/ai/reasoning-disclosure.module.js.map +1 -1
- package/dist/node/ai/source-list.module.js +1 -1
- package/dist/node/ai/source-list.module.js.map +1 -1
- package/dist/node/ai/tool-call.module.js +1 -1
- package/dist/node/archetypes/AppShell.js.map +1 -1
- package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js +139 -88
- package/dist/node/archetypes/AppShell.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/archetypes/FormPage.js.map +1 -1
- package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js +43 -21
- package/dist/node/archetypes/FormPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/archetypes/app-shell.module.js +9 -8
- package/dist/node/archetypes/app-shell.module.js.map +1 -1
- package/dist/node/archetypes/form-page.module.js +5 -3
- package/dist/node/archetypes/form-page.module.js.map +1 -1
- package/dist/node/archetypes/master-detail-page.module.js +1 -1
- package/dist/node/archetypes/master-detail-page.module.js.map +1 -1
- package/dist/node/charts/area-chart.module.js +1 -1
- package/dist/node/charts/bar-chart.module.js +1 -1
- package/dist/node/charts/donut-chart.module.js +1 -1
- package/dist/node/charts/frame/chart-frame.module.js +1 -1
- package/dist/node/charts/frame/chart-legend.module.js +1 -1
- package/dist/node/charts/frame/chart-legend.module.js.map +1 -1
- package/dist/node/charts/funnel-chart.module.js +1 -1
- package/dist/node/charts/heatmap.module.js +1 -1
- package/dist/node/charts/histogram.module.js +1 -1
- package/dist/node/charts/line-chart.module.js +1 -1
- package/dist/node/charts/radar-chart.module.js +1 -1
- package/dist/node/charts/scatter-chart.module.js +1 -1
- package/dist/node/charts/treemap.module.js +1 -1
- package/dist/node/controls/AvatarButton.js.map +1 -1
- package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js +43 -35
- package/dist/node/controls/AvatarButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Button.js.map +1 -1
- package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js +74 -62
- package/dist/node/controls/Button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Calendar.js.map +1 -1
- package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Calendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Checkbox.js.map +1 -1
- package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Checkbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/ColorInput.js.map +1 -1
- package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js +95 -95
- package/dist/node/controls/ColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Combobox.js.map +1 -1
- package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Combobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/CopyButton.js.map +1 -1
- package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js +44 -30
- package/dist/node/controls/CopyButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/DatePicker.js.map +1 -1
- package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/DatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/DateRangePicker.js.map +1 -1
- package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/DateRangePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/FileUpload.js.map +1 -1
- package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js +98 -89
- package/dist/node/controls/FileUpload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/InlineEdit.js.map +1 -1
- package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js +71 -63
- package/dist/node/controls/InlineEdit.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/MultiSelect.js.map +1 -1
- package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js +188 -177
- package/dist/node/controls/MultiSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/NumberInput.js.map +1 -1
- package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/NumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/PhoneInput.js.map +1 -1
- package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js +39 -39
- package/dist/node/controls/PhoneInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/RadioGroup.js.map +1 -1
- package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/RadioGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/SegmentedControl.js.map +1 -1
- package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/SegmentedControl.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Select.js.map +1 -1
- package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Slider.js.map +1 -1
- package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/SplitButton.js.map +1 -1
- package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js +102 -87
- package/dist/node/controls/SplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/SplitButtonSubmenu.js.map +1 -1
- package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/SplitButtonSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/Switch.js.map +1 -1
- package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/controls/Switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/TagInput.js.map +1 -1
- package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js +122 -111
- package/dist/node/controls/TagInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/TreeSelect.js.map +1 -1
- package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js +56 -56
- package/dist/node/controls/TreeSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/controls/avatar-button.module.js +5 -4
- package/dist/node/controls/avatar-button.module.js.map +1 -1
- package/dist/node/controls/button.module.js +4 -3
- package/dist/node/controls/button.module.js.map +1 -1
- package/dist/node/controls/calendar.module.js +3 -3
- package/dist/node/controls/calendar.module.js.map +1 -1
- package/dist/node/controls/checkbox-group.module.js +1 -1
- package/dist/node/controls/checkbox.module.js +2 -2
- package/dist/node/controls/checkbox.module.js.map +1 -1
- package/dist/node/controls/choice-card.module.js +2 -2
- package/dist/node/controls/choice-card.module.js.map +1 -1
- package/dist/node/controls/color-input.module.js +1 -1
- package/dist/node/controls/color-input.module.js.map +1 -1
- package/dist/node/controls/combobox.module.js +5 -5
- package/dist/node/controls/combobox.module.js.map +1 -1
- package/dist/node/controls/copy-button.module.js +8 -7
- package/dist/node/controls/copy-button.module.js.map +1 -1
- package/dist/node/controls/date-picker.module.js +1 -1
- package/dist/node/controls/date-range-picker.module.js +6 -6
- package/dist/node/controls/date-range-picker.module.js.map +1 -1
- package/dist/node/controls/duration-input.module.js +1 -1
- package/dist/node/controls/file-upload.module.js +1 -1
- package/dist/node/controls/file-upload.module.js.map +1 -1
- package/dist/node/controls/input.module.js +2 -2
- package/dist/node/controls/input.module.js.map +1 -1
- package/dist/node/controls/link.module.js +1 -1
- package/dist/node/controls/link.module.js.map +1 -1
- package/dist/node/controls/month-input.module.js +1 -1
- package/dist/node/controls/multi-select.module.js +5 -5
- package/dist/node/controls/multi-select.module.js.map +1 -1
- package/dist/node/controls/number-input.module.js +1 -1
- package/dist/node/controls/number-input.module.js.map +1 -1
- package/dist/node/controls/otp-input.module.js +2 -2
- package/dist/node/controls/otp-input.module.js.map +1 -1
- package/dist/node/controls/password-input.module.js +2 -2
- package/dist/node/controls/password-input.module.js.map +1 -1
- package/dist/node/controls/provider-button.module.js +1 -1
- package/dist/node/controls/radio-group.module.js +2 -2
- package/dist/node/controls/radio-group.module.js.map +1 -1
- package/dist/node/controls/rating.module.js +1 -1
- package/dist/node/controls/rich-text-input.module.js +1 -1
- package/dist/node/controls/rich-text-input.module.js.map +1 -1
- package/dist/node/controls/segmented-control.module.js +1 -1
- package/dist/node/controls/select.module.js +3 -3
- package/dist/node/controls/select.module.js.map +1 -1
- package/dist/node/controls/slider.module.js +1 -1
- package/dist/node/controls/slider.module.js.map +1 -1
- package/dist/node/controls/split-button.module.js +20 -19
- package/dist/node/controls/split-button.module.js.map +1 -1
- package/dist/node/controls/switch.module.js +1 -1
- package/dist/node/controls/switch.module.js.map +1 -1
- package/dist/node/controls/tag-input.module.js +1 -1
- package/dist/node/controls/textarea.module.js +1 -1
- package/dist/node/controls/time-input.module.js +1 -1
- package/dist/node/controls/tree-select.module.js +1 -1
- package/dist/node/layout/split-pane.module.js +1 -1
- package/dist/node/layout/split-pane.module.js.map +1 -1
- package/dist/node/overlays/Command.js.map +1 -1
- package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
- package/dist/node/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/CommandPanel.js.map +1 -1
- package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/node/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ContextMenu.js.map +1 -1
- package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.js.map +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Dialog.js.map +1 -1
- package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
- package/dist/node/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Drawer.js.map +1 -1
- package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/node/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Lightbox.js.map +1 -1
- package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
- package/dist/node/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Menu.js.map +1 -1
- package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/MenuSubmenu.js.map +1 -1
- package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Menubar.js.map +1 -1
- package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/MenubarSubmenu.js.map +1 -1
- package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Popover.js.map +1 -1
- package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tabs.js.map +1 -1
- package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Toast.js.map +1 -1
- package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ToastCard.js.map +1 -1
- package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
- package/dist/node/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/ToastViewport.js.map +1 -1
- package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
- package/dist/node/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tooltip.js.map +1 -1
- package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
- package/dist/node/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/Tour.js.map +1 -1
- package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
- package/dist/node/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/overlays/context-menu.module.js +4 -4
- package/dist/node/overlays/context-menu.module.js.map +1 -1
- package/dist/node/overlays/dialog.module.js +1 -1
- package/dist/node/overlays/dialog.module.js.map +1 -1
- package/dist/node/overlays/drawer.module.js +1 -1
- package/dist/node/overlays/drawer.module.js.map +1 -1
- package/dist/node/overlays/lightbox.module.js +1 -1
- package/dist/node/overlays/menu.module.js +4 -4
- package/dist/node/overlays/menu.module.js.map +1 -1
- package/dist/node/overlays/menubar.module.js +1 -1
- package/dist/node/overlays/menubar.module.js.map +1 -1
- package/dist/node/overlays/popover.module.js +3 -3
- package/dist/node/overlays/popover.module.js.map +1 -1
- package/dist/node/overlays/sheet.module.js +1 -1
- package/dist/node/overlays/sheet.module.js.map +1 -1
- package/dist/node/overlays/tabs.module.js +4 -4
- package/dist/node/overlays/tabs.module.js.map +1 -1
- package/dist/node/overlays/toast.module.js +1 -1
- package/dist/node/overlays/toast.module.js.map +1 -1
- package/dist/node/overlays/tour.module.js +1 -1
- package/dist/node/overlays/tour.module.js.map +1 -1
- package/dist/node/structure/Accordion.js.map +1 -1
- package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Alert.js.map +1 -1
- package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
- package/dist/node/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Banner.js.map +1 -1
- package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
- package/dist/node/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Carousel.js.map +1 -1
- package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/node/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Collapsible.js.map +1 -1
- package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Pagination.js.map +1 -1
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/ScrollArea.js.map +1 -1
- package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
- package/dist/node/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/Table.js.map +1 -1
- package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
- package/dist/node/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/node/structure/accordion.module.js +5 -5
- package/dist/node/structure/accordion.module.js.map +1 -1
- package/dist/node/structure/breadcrumbs.module.js +1 -1
- package/dist/node/structure/breadcrumbs.module.js.map +1 -1
- package/dist/node/structure/card.module.js +1 -1
- package/dist/node/structure/card.module.js.map +1 -1
- package/dist/node/structure/carousel.module.js +1 -1
- package/dist/node/structure/carousel.module.js.map +1 -1
- package/dist/node/structure/code-block.module.js +1 -1
- package/dist/node/structure/collapsible.module.js +5 -5
- package/dist/node/structure/collapsible.module.js.map +1 -1
- package/dist/node/structure/cursor-pagination.module.js +1 -1
- package/dist/node/structure/data-table.module.js +1 -1
- package/dist/node/structure/error-summary.module.js +1 -1
- package/dist/node/structure/error-summary.module.js.map +1 -1
- package/dist/node/structure/json-tree.module.js +1 -1
- package/dist/node/structure/json-tree.module.js.map +1 -1
- package/dist/node/structure/list.module.js +1 -1
- package/dist/node/structure/list.module.js.map +1 -1
- package/dist/node/structure/log-view.module.js +1 -1
- package/dist/node/structure/pagination.module.js +4 -3
- package/dist/node/structure/pagination.module.js.map +1 -1
- package/dist/node/structure/rich-text-content.module.js +1 -1
- package/dist/node/structure/section-nav.module.js +1 -1
- package/dist/node/structure/section-nav.module.js.map +1 -1
- package/dist/node/structure/stepper.module.js +2 -2
- package/dist/node/structure/stepper.module.js.map +1 -1
- package/dist/node/structure/table-of-contents.module.js +1 -1
- package/dist/node/structure/table-of-contents.module.js.map +1 -1
- package/dist/node/structure/table.module.js +1 -1
- package/dist/node/structure/table.module.js.map +1 -1
- package/dist/node/structure/tree.module.js +1 -1
- package/dist/node/structure/tree.module.js.map +1 -1
- package/dist/overlays/Command.js.map +1 -1
- package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js +50 -45
- package/dist/overlays/Command.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/CommandPanel.js.map +1 -1
- package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js +82 -82
- package/dist/overlays/CommandPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ContextMenu.js.map +1 -1
- package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/ContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ContextMenuSubmenu.js.map +1 -1
- package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/ContextMenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Dialog.js.map +1 -1
- package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js +47 -43
- package/dist/overlays/Dialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Drawer.js.map +1 -1
- package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js +58 -53
- package/dist/overlays/Drawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Lightbox.js.map +1 -1
- package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js +65 -61
- package/dist/overlays/Lightbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Menu.js.map +1 -1
- package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/MenuSubmenu.js.map +1 -1
- package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/MenuSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Menubar.js.map +1 -1
- package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Menubar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/MenubarSubmenu.js.map +1 -1
- package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/MenubarSubmenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Popover.js.map +1 -1
- package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tabs.js.map +1 -1
- package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/overlays/Tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Toast.js.map +1 -1
- package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ToastCard.js.map +1 -1
- package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js +74 -71
- package/dist/overlays/ToastCard.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/ToastViewport.js.map +1 -1
- package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js +70 -59
- package/dist/overlays/ToastViewport.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tooltip.js.map +1 -1
- package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js +46 -26
- package/dist/overlays/Tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/Tour.js.map +1 -1
- package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js +74 -69
- package/dist/overlays/Tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/overlays/context-menu.css +1 -1
- package/dist/overlays/context-menu.module.js +4 -4
- package/dist/overlays/context-menu.module.js.map +1 -1
- package/dist/overlays/dialog.css +1 -1
- package/dist/overlays/dialog.module.js +1 -1
- package/dist/overlays/dialog.module.js.map +1 -1
- package/dist/overlays/drawer.css +1 -1
- package/dist/overlays/drawer.module.js +1 -1
- package/dist/overlays/drawer.module.js.map +1 -1
- package/dist/overlays/lightbox.css +1 -1
- package/dist/overlays/lightbox.module.js +1 -1
- package/dist/overlays/menu.css +1 -1
- package/dist/overlays/menu.module.js +4 -4
- package/dist/overlays/menu.module.js.map +1 -1
- package/dist/overlays/menubar.css +1 -1
- package/dist/overlays/menubar.module.js +1 -1
- package/dist/overlays/menubar.module.js.map +1 -1
- package/dist/overlays/popover.css +1 -1
- package/dist/overlays/popover.module.js +3 -3
- package/dist/overlays/popover.module.js.map +1 -1
- package/dist/overlays/sheet.css +1 -1
- package/dist/overlays/sheet.module.js +1 -1
- package/dist/overlays/sheet.module.js.map +1 -1
- package/dist/overlays/tabs.css +1 -1
- package/dist/overlays/tabs.module.js +4 -4
- package/dist/overlays/tabs.module.js.map +1 -1
- package/dist/overlays/toast.css +1 -1
- package/dist/overlays/toast.module.js +1 -1
- package/dist/overlays/toast.module.js.map +1 -1
- package/dist/overlays/tour.css +1 -1
- package/dist/overlays/tour.module.js +1 -1
- package/dist/overlays/tour.module.js.map +1 -1
- package/dist/structure/Accordion.js.map +1 -1
- package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Alert.js.map +1 -1
- package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js +62 -54
- package/dist/structure/Alert.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Banner.js.map +1 -1
- package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js +42 -34
- package/dist/structure/Banner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Carousel.js.map +1 -1
- package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/structure/Carousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Collapsible.js.map +1 -1
- package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/DataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Pagination.js.map +1 -1
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/ScrollArea.js.map +1 -1
- package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js +30 -27
- package/dist/structure/ScrollArea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/Table.js.map +1 -1
- package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js +71 -61
- package/dist/structure/Table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/structure/accordion.css +1 -1
- package/dist/structure/accordion.module.js +5 -5
- package/dist/structure/accordion.module.js.map +1 -1
- package/dist/structure/breadcrumbs.css +1 -1
- package/dist/structure/breadcrumbs.module.js +1 -1
- package/dist/structure/breadcrumbs.module.js.map +1 -1
- package/dist/structure/card.css +1 -1
- package/dist/structure/card.module.js +1 -1
- package/dist/structure/card.module.js.map +1 -1
- package/dist/structure/carousel.css +1 -1
- package/dist/structure/carousel.module.js +1 -1
- package/dist/structure/carousel.module.js.map +1 -1
- package/dist/structure/code-block.css +1 -1
- package/dist/structure/code-block.module.js +1 -1
- package/dist/structure/collapsible.css +1 -1
- package/dist/structure/collapsible.module.js +5 -5
- package/dist/structure/collapsible.module.js.map +1 -1
- package/dist/structure/cursor-pagination.css +1 -1
- package/dist/structure/cursor-pagination.module.js +1 -1
- package/dist/structure/data-table.css +1 -1
- package/dist/structure/data-table.module.js +1 -1
- package/dist/structure/error-summary.css +1 -1
- package/dist/structure/error-summary.module.js +1 -1
- package/dist/structure/error-summary.module.js.map +1 -1
- package/dist/structure/json-tree.css +1 -1
- package/dist/structure/json-tree.module.js +1 -1
- package/dist/structure/json-tree.module.js.map +1 -1
- package/dist/structure/list.css +1 -1
- package/dist/structure/list.module.js +1 -1
- package/dist/structure/list.module.js.map +1 -1
- package/dist/structure/log-view.css +1 -1
- package/dist/structure/log-view.module.js +1 -1
- package/dist/structure/pagination.css +1 -1
- package/dist/structure/pagination.module.js +4 -3
- package/dist/structure/pagination.module.js.map +1 -1
- package/dist/structure/rich-text-content.css +1 -1
- package/dist/structure/rich-text-content.module.js +1 -1
- package/dist/structure/section-nav.css +1 -1
- package/dist/structure/section-nav.module.js +1 -1
- package/dist/structure/section-nav.module.js.map +1 -1
- package/dist/structure/stepper.css +1 -1
- package/dist/structure/stepper.module.js +2 -2
- package/dist/structure/stepper.module.js.map +1 -1
- package/dist/structure/table-of-contents.css +1 -1
- package/dist/structure/table-of-contents.module.js +1 -1
- package/dist/structure/table-of-contents.module.js.map +1 -1
- package/dist/structure/table.css +1 -1
- package/dist/structure/table.module.js +1 -1
- package/dist/structure/table.module.js.map +1 -1
- package/dist/structure/tree.css +1 -1
- package/dist/structure/tree.module.js +1 -1
- package/dist/structure/tree.module.js.map +1 -1
- package/dist/types/ai/AttachmentChip.vue.d.ts +1 -1
- package/dist/types/ai/ToolCall.vue.d.ts +1 -1
- package/dist/types/archetypes/FormPage.vue.d.ts +1 -0
- package/dist/types/charts/BarChart.vue.d.ts +1 -1
- package/dist/types/controls/FileUpload.vue.d.ts +1 -1
- package/dist/types/controls/RecordButton.vue.d.ts +2 -2
- package/dist/types/controls/Slider.vue.d.ts +1 -1
- package/dist/types/layout/Grid.vue.d.ts +1 -1
- package/dist/types/layout/Inline.vue.d.ts +2 -2
- package/dist/types/layout/Stack.vue.d.ts +2 -2
- package/dist/types/overlays/Drawer.vue.d.ts +1 -1
- package/dist/types/overlays/HoverCard.vue.d.ts +1 -1
- package/dist/types/overlays/Menu.vue.d.ts +1 -1
- package/dist/types/overlays/Popover.vue.d.ts +1 -1
- package/dist/types/overlays/Toast.vue.d.ts +3 -1
- package/dist/types/overlays/Tooltip.vue.d.ts +1 -1
- package/dist/types/structure/EmptyState.vue.d.ts +1 -1
- package/dist/types/structure/Hero.vue.d.ts +1 -1
- package/dist/types/structure/RelativeTime.vue.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,171 @@
|
|
|
1
1
|
# @polymorph/vue-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- de4a5d4: **FormPage takes a leading action.** `leadingAction` is one optional action drawn at the start of
|
|
8
|
+
the actions row, apart from `actions`, which stay at its end: the destructive tertiary action
|
|
9
|
+
FormPage's spec places leftmost, such as "Delete…". The row wraps as it did, and the actions stay
|
|
10
|
+
at the end of whichever line they land on, in either direction. Without it, FormPage renders as
|
|
11
|
+
before. A Vue, Svelte, Solid or Angular page passes it as the `leadingAction` slot, and an element
|
|
12
|
+
as a child with `slot="leadingAction"`. The SwiftUI and Compose FormPage take it too
|
|
13
|
+
(`PMFormPageProps.leadingAction`), at the start of the row they already draw. `danger-last` reads
|
|
14
|
+
the slot as a group of its own, so a danger Button there comes before the actions lawfully.
|
|
15
|
+
- ee95409: **Every icon-only Button shows its label on hover and keyboard focus.** A Button with `iconOnly`
|
|
16
|
+
shows its `label` in a bubble that looks like a Tooltip's: after the Tooltip's delay when the mouse
|
|
17
|
+
rests on it, and at once when the reader moves focus to it with Tab or an arrow key. Touch, pen and
|
|
18
|
+
focus a script gives after Enter or a press do not open it, so a Dialog that focuses its icon-only
|
|
19
|
+
close button shows no tip there. It is a name tip, not a Tooltip: the bubble is hidden from
|
|
20
|
+
assistive technology, adds no `aria-describedby`, and the button's name is unchanged. It is drawn
|
|
21
|
+
in the top layer, so it shows over a Dialog, Drawer, Popover or Menu, takes no pointer events, and
|
|
22
|
+
adds nothing inside or around the button. Escape closes the tip and nothing else, so a Dialog
|
|
23
|
+
around the button stays open until the next Escape.
|
|
24
|
+
|
|
25
|
+
SplitButton's chevron, CopyButton, AvatarButton and Pagination's arrows drawn as links show their
|
|
26
|
+
names the same way. CopyButton shows none while its confirmation shows.
|
|
27
|
+
|
|
28
|
+
A Button already inside a `<Tooltip>` is unchanged: it shows the Tooltip and no tip. A Tooltip
|
|
29
|
+
around an icon-only Button that repeats only its label can be removed.
|
|
30
|
+
|
|
31
|
+
The engine exports `nameTip(control, label, className)`, and each foundation re-exports it, for
|
|
32
|
+
the members that call it. Button's recipe adds the `tip` class, which composes the Tooltip's
|
|
33
|
+
`bubble`, and the Tooltip's trigger anchor carries `data-tooltip-part="trigger"`.
|
|
34
|
+
|
|
35
|
+
- 4571e3b: Keyboard and focus fixes for overlays and for members that leave the page.
|
|
36
|
+
|
|
37
|
+
- **Toast.** In React the viewport no longer uses `@radix-ui/react-toast`: it draws the same
|
|
38
|
+
region, list, cards and live regions as every other framework, so `@polymorph/react-ui`
|
|
39
|
+
drops that dependency. What a reader notices:
|
|
40
|
+
- Tab moves through the toasts in document order, oldest first, as in every other
|
|
41
|
+
framework. Radix moved newest first.
|
|
42
|
+
- A toast with an `action` whose call sets neither `durationMs` nor `retained` stays until it
|
|
43
|
+
is dismissed, whatever its tone, so a reader has the time to reach the action. Set
|
|
44
|
+
`durationMs` to keep a timer. The SwiftUI and Compose Toast follow the same rule.
|
|
45
|
+
- When a toast that holds focus leaves, by any route (its close control, its action,
|
|
46
|
+
Escape, `toast.dismiss`, its owner removing it, or a newer toast evicting it), focus moves
|
|
47
|
+
to the next toast, else the previous one, else back to the element focus came from as it
|
|
48
|
+
entered the notifications (F8 or Tab), else to the list.
|
|
49
|
+
- Escape reaches a toast only while focus is in it, so a toast raised while a Dialog is open
|
|
50
|
+
no longer takes Escape from the dialog. An Escape that closed a Select, Menu or Tooltip in
|
|
51
|
+
a toast's content, or that an input method was handling, leaves the toast open.
|
|
52
|
+
- The live regions say a toast when it is raised, and again when an update in place changes
|
|
53
|
+
its words, and say nothing when one leaves. Only a danger toast interrupts a screen reader
|
|
54
|
+
(the assertive region); a warning toast now waits its turn in the polite region, as the
|
|
55
|
+
SwiftUI and Compose Toast and Banner already did. They read the content's text and the action's
|
|
56
|
+
label too, and two toasts with the same words in a row are each said.
|
|
57
|
+
- The timers wait while the window is in the background (its page is hidden, or another
|
|
58
|
+
window or application has focus), as well as while the reader is on the notifications.
|
|
59
|
+
Focus in a frame on the page does not hold them. When the hold ends, a toast resumes with
|
|
60
|
+
the time that was left in every framework, as React's did; Vue, Svelte, Solid, Angular and
|
|
61
|
+
the elements started a whole new window.
|
|
62
|
+
- A toast raised again under the id of one whose card is still playing its exit stays: the
|
|
63
|
+
card takes out its own record only (`removeToast(id, raised)`).
|
|
64
|
+
- **Focus return when the trigger is gone.** Dialog, ConfirmDialog, Drawer, Lightbox, Command
|
|
65
|
+
and Tour return focus to the focusable element nearest where their trigger was when the
|
|
66
|
+
trigger has left the page while they were open (a confirm that deletes its row), instead of
|
|
67
|
+
dropping it to the body. The rule is the engine's `focusReturnTarget`.
|
|
68
|
+
- **Alert, Banner and ArtifactPane.** When one of them leaves the page while it holds focus,
|
|
69
|
+
after its own close control for one, focus moves to the focusable element nearest where it
|
|
70
|
+
was (`focusAfterRemoval`), also when the framework removes it only after a leave animation
|
|
71
|
+
(Vue's `Transition`, Angular's animations).
|
|
72
|
+
- **The phone-width sheet inside a Dialog (React).** Select, Menu and the other members that
|
|
73
|
+
draw the bottom sheet below `30rem` keep focus in the sheet when they open inside a Dialog
|
|
74
|
+
or a Drawer, and Escape and a press on the sheet's scrim close the sheet and leave the Dialog
|
|
75
|
+
open. An Escape that closes a Tooltip or a Menu inside the sheet leaves the sheet open. While
|
|
76
|
+
a sheet that holds focus is open, the rest of the page is hidden from assistive software.
|
|
77
|
+
`@polymorph/react-ui` adds `@radix-ui/react-focus-scope` and
|
|
78
|
+
`@radix-ui/react-dismissable-layer` as dependencies; both already came with
|
|
79
|
+
`@radix-ui/react-dialog`.
|
|
80
|
+
- **Solid's `watchEffect`.** It reads the watched value as the member is set up, as Vue's
|
|
81
|
+
`watch` does, so a change made between setup and the mount runs the effect again after the
|
|
82
|
+
mount, once Solid has drawn it. With it, the Solid and elements Toast viewport says a toast
|
|
83
|
+
raised in the same render as the viewport.
|
|
84
|
+
- The engine exports `focusPlace`, `nearestFocusable`, `focusReturnTarget`, `returnFocusTo`,
|
|
85
|
+
`focusAfterRemoval`, `focusAfterToast`, `followToastFocus`, `holdToastTimers`,
|
|
86
|
+
`toastClock`, `toastTimeLeft`, `announceToasts` and `TOAST_QUIET`, and a toast record carries `raised`, which a toast raised
|
|
87
|
+
again under the same id renews.
|
|
88
|
+
|
|
89
|
+
- 53294c6: Keyboard and focus fixes for page structure, tooltips, reading direction and the grid, in every
|
|
90
|
+
web framework and in the elements.
|
|
91
|
+
|
|
92
|
+
- **Tooltip** stays open while its control holds the focus the keyboard gave it: focus that a key,
|
|
93
|
+
not a press of the pointer, came before. A Tab to a control below the fold scrolls the page, and
|
|
94
|
+
the scroll used to close the tooltip and take its description away. In Vue, Svelte, Solid,
|
|
95
|
+
Angular and the elements the pointer passing over the control and leaving no longer closes it
|
|
96
|
+
then either, as in React. Escape, focus leaving, a press and another tooltip opening still close
|
|
97
|
+
it, and a scroll or the pointer leaving still closes a tooltip on a control the pointer focused,
|
|
98
|
+
a clicked text field included. The engine exports `keyboardHolds`, `trackFocusOrigin`,
|
|
99
|
+
`closeTooltipOnScroll` and `holdTooltipFromPointer` for it.
|
|
100
|
+
- **AppShell's drawer** below the breakpoint: its `menu` button carries `aria-expanded` and
|
|
101
|
+
`aria-controls`, Escape closes the drawer and returns focus to the button, the skip link, the
|
|
102
|
+
banner, the topbar, the content region and the dock are `inert` while it is open, and a window
|
|
103
|
+
that grows past the breakpoint closes it.
|
|
104
|
+
- **AppShell on a page change**: a new `transitionKey` moves focus to the new page's `<h1>`, or
|
|
105
|
+
to `<main>` when it has none. A screen reader reads the heading that takes focus, so a polite
|
|
106
|
+
`role="status"` region after the content region says the page's title only when focus does not
|
|
107
|
+
land on the `<h1>`: when it moves to `<main>`, or stays where it is. Focus stays where it is when
|
|
108
|
+
it is already inside the new page, and when the reader moved it while a `pending` page loaded.
|
|
109
|
+
Nothing happens for the first page, and a `pending` page arrives when it is drawn. The skip link
|
|
110
|
+
moves focus into `<main>`, which takes `tabindex="-1"` only while it holds that focus, so a click
|
|
111
|
+
on the page's empty space still leaves focus on the body. The engine exports `arriveAtPage` and
|
|
112
|
+
`focusFromScript`. A test that expected focus on the drawer's button after a page change now
|
|
113
|
+
finds it on the new page, and one that reads the status region after a page change finds it
|
|
114
|
+
empty when the new page has an `<h1>`. A Next.js App Router app also hears its router's own
|
|
115
|
+
announcement of the new page's title.
|
|
116
|
+
- **Reading direction** is read from the place a member is in: a section that says `dir="rtl"`
|
|
117
|
+
on a left-to-right page turns the members inside it, and a member follows a change to that
|
|
118
|
+
section's `dir`. `readDirection` takes an optional element, `watchDirection` takes a second
|
|
119
|
+
argument to hear `dir` changes on any element, and each foundation's `useDirection` takes the
|
|
120
|
+
member's element (a ref in React, a getter elsewhere). Called with no argument, all three still
|
|
121
|
+
read the document. An element that is a Zag machine's own part is read from its parent, so
|
|
122
|
+
Calendar, whose root is its machine's content part, turns with its section. A member whose
|
|
123
|
+
element is drawn only in some layouts (Menubar's bar, which a phone's width replaces with one
|
|
124
|
+
button) reads its section when the element appears.
|
|
125
|
+
- **DataTable and Table's grid** keep focus when the row that holds it leaves the document: focus
|
|
126
|
+
goes to the same column of the row that takes its place, or of the last row.
|
|
127
|
+
|
|
128
|
+
- 203668b: Text fields leave the keys an input method is handling to it. In TagInput, MultiSelect,
|
|
129
|
+
InlineEdit, PromptInput, PhoneInput and ColorInput, the Enter that confirms a Japanese or Chinese
|
|
130
|
+
candidate, including the one Safari sends after the composition has ended, no longer commits,
|
|
131
|
+
toggles, saves or sends half-typed text. An Escape that abandons a composition no longer clears
|
|
132
|
+
TagInput's or MultiSelect's text, cancels InlineEdit, or clears the query of the Vue, Svelte,
|
|
133
|
+
Solid, Angular and elements Command. Inside a Dialog, that Escape still closes the Dialog, as it
|
|
134
|
+
did before: the dialog's layer does not ask whether a composition is in progress. The engine
|
|
135
|
+
exports the check as `composingKey`.
|
|
136
|
+
|
|
137
|
+
Escape that clears TagInput's uncommitted text, clears a closed MultiSelect's text or cancels an
|
|
138
|
+
open InlineEdit no longer closes a Dialog around the field as well; the next Escape closes it.
|
|
139
|
+
The engine exports the hold as `holdFieldEscape`.
|
|
140
|
+
|
|
141
|
+
TagInput's and MultiSelect's arrow keys between the field and the chips follow the writing
|
|
142
|
+
direction: in a right-to-left page → moves back into the chips and ← forward to the field. The
|
|
143
|
+
engine exports the key as `lineStartKey`.
|
|
144
|
+
|
|
145
|
+
FileUpload and PromptInput move focus once the app has removed a file or an attachment whose
|
|
146
|
+
remove control was pressed: to the next item's remove control, else the previous one's, else the
|
|
147
|
+
dropzone or the field. Focus no longer falls to the page. The engine exports the rule as
|
|
148
|
+
`focusAfterListRemoval`.
|
|
149
|
+
|
|
150
|
+
In RichTextInput, Shift+Tab on an item of a top-level list moves focus out of the field and no
|
|
151
|
+
longer turns the item into a paragraph, and after an Escape with nothing to close, the next Tab or
|
|
152
|
+
Shift+Tab moves focus out from any list item without changing the text.
|
|
153
|
+
|
|
154
|
+
- Updated dependencies [b40ece2]
|
|
155
|
+
- Updated dependencies [b40ece2]
|
|
156
|
+
- Updated dependencies [b40ece2]
|
|
157
|
+
- Updated dependencies [de4a5d4]
|
|
158
|
+
- Updated dependencies [ee95409]
|
|
159
|
+
- Updated dependencies [b40ece2]
|
|
160
|
+
- Updated dependencies [4571e3b]
|
|
161
|
+
- Updated dependencies [53294c6]
|
|
162
|
+
- Updated dependencies [203668b]
|
|
163
|
+
- Updated dependencies [41606c8]
|
|
164
|
+
- Updated dependencies [b40ece2]
|
|
165
|
+
- Updated dependencies [ddbd1d4]
|
|
166
|
+
- @polymorph/recipes@1.0.18
|
|
167
|
+
- @polymorph/vue@1.0.18
|
|
168
|
+
|
|
3
169
|
## 1.0.17
|
|
4
170
|
|
|
5
171
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactPane.js","names":[],"sources":["../../src/ai/ArtifactPane.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A side pane that shows one artifact a turn produced (`design/components/artifact-pane.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/artifact-pane.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport { Icon, agentMember, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/ai/artifact-pane.module.css'\nimport Button from '../controls/Button.vue'\nimport SegmentedControl from '../controls/SegmentedControl.vue'\nimport Spinner from '../structure/Spinner.vue'\n\nexport type ArtifactKind = 'code' | 'document' | 'data' | 'preview'\n\nexport interface ArtifactView {\n id: string\n label: string\n content: VNode | string\n}\n\nexport interface ArtifactPaneProps {\n /**\n * The close button's accessible name (generic default `Close`), which localized hosts replace.\n */\n closeLabel?: string\n defaultView?: string\n /**\n * The artifact's kind, which picks the mark (the tier's `artifact` glyph when absent).\n */\n kind?: 'code' | 'document' | 'data' | 'preview'\n /**\n * One preformatted line under the title, such as \"TypeScript · 142 lines\".\n */\n meta?: string\n /**\n * Whether the artifact is still being written, which shows a spinner and sets `aria-busy`.\n */\n streaming?: boolean\n /**\n * The artifact's name, used as the pane's heading and accessible name.\n */\n title: string\n view?: string\n /**\n * The artifact's views (code, preview). Two or more draw a switch, and a single view is drawn\n * with no switch. When `views` is absent or empty, `children` is the body.\n */\n views?: ArtifactView[]\n /**\n * The switch's accessible name (generic default `View`).\n */\n viewsLabel?: string\n}\n\ndefineOptions({ name: 'ArtifactPane', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ArtifactPaneProps>(), {\n closeLabel: 'Close',\n streaming: false,\n viewsLabel: 'View',\n})\nconst emit = defineEmits<{ close: []; viewChange: [id: string] }>()\ndefineSlots<{\n actions?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n}>()\nconst uid = useId()\nconst listening = useListening()\nconst overflowing = ref(false)\nconst mirror = ref(props.defaultView ?? props.views?.[0]?.id)\nconst body = useTemplateRef<HTMLElement>('body')\nconst closer = useTemplateRef<HTMLElement>('closer')\nconst pane = useTemplateRef<HTMLElement>('pane')\nconst switcher = useTemplateRef<HTMLElement>('switcher')\nconst titleId = computed(() => `${uid}-title`)\nconst current = computed(() => props.view ?? mirror.value)\nconst switching = computed(() => props.views !== undefined && props.views.length > 1)\nconst shown = computed(() =>\n props.views === undefined\n ? undefined\n : (props.views.find((entry) => entry.id === current.value) ?? props.views[0]),\n)\nconst mark = computed(() =>\n props.kind === undefined\n ? 'artifact'\n : ({ code: 'terminal', document: 'document', data: 'table', preview: 'browser' } as const)[\n props.kind\n ],\n)\nconst choices = computed(() =>\n (props.views ?? []).map((entry) => ({ value: entry.id, label: entry.label })),\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const run = () => {\n overflowing.value = body.value !== null && body.value.scrollHeight > body.value.clientHeight\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [body.value, body.value?.firstElementChild])\n if (element) resize?.observe(element)\n
|
|
1
|
+
{"version":3,"file":"ArtifactPane.js","names":[],"sources":["../../src/ai/ArtifactPane.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A side pane that shows one artifact a turn produced (`design/components/artifact-pane.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/artifact-pane.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport { Icon, agentMember, focusAfterRemoval, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/ai/artifact-pane.module.css'\nimport Button from '../controls/Button.vue'\nimport SegmentedControl from '../controls/SegmentedControl.vue'\nimport Spinner from '../structure/Spinner.vue'\n\nexport type ArtifactKind = 'code' | 'document' | 'data' | 'preview'\n\nexport interface ArtifactView {\n id: string\n label: string\n content: VNode | string\n}\n\nexport interface ArtifactPaneProps {\n /**\n * The close button's accessible name (generic default `Close`), which localized hosts replace.\n */\n closeLabel?: string\n defaultView?: string\n /**\n * The artifact's kind, which picks the mark (the tier's `artifact` glyph when absent).\n */\n kind?: 'code' | 'document' | 'data' | 'preview'\n /**\n * One preformatted line under the title, such as \"TypeScript · 142 lines\".\n */\n meta?: string\n /**\n * Whether the artifact is still being written, which shows a spinner and sets `aria-busy`.\n */\n streaming?: boolean\n /**\n * The artifact's name, used as the pane's heading and accessible name.\n */\n title: string\n view?: string\n /**\n * The artifact's views (code, preview). Two or more draw a switch, and a single view is drawn\n * with no switch. When `views` is absent or empty, `children` is the body.\n */\n views?: ArtifactView[]\n /**\n * The switch's accessible name (generic default `View`).\n */\n viewsLabel?: string\n}\n\ndefineOptions({ name: 'ArtifactPane', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ArtifactPaneProps>(), {\n closeLabel: 'Close',\n streaming: false,\n viewsLabel: 'View',\n})\nconst emit = defineEmits<{ close: []; viewChange: [id: string] }>()\ndefineSlots<{\n actions?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n}>()\nconst uid = useId()\nconst listening = useListening()\nconst overflowing = ref(false)\nconst mirror = ref(props.defaultView ?? props.views?.[0]?.id)\nconst body = useTemplateRef<HTMLElement>('body')\nconst closer = useTemplateRef<HTMLElement>('closer')\nconst pane = useTemplateRef<HTMLElement>('pane')\nconst switcher = useTemplateRef<HTMLElement>('switcher')\nconst titleId = computed(() => `${uid}-title`)\nconst current = computed(() => props.view ?? mirror.value)\nconst switching = computed(() => props.views !== undefined && props.views.length > 1)\nconst shown = computed(() =>\n props.views === undefined\n ? undefined\n : (props.views.find((entry) => entry.id === current.value) ?? props.views[0]),\n)\nconst mark = computed(() =>\n props.kind === undefined\n ? 'artifact'\n : ({ code: 'terminal', document: 'document', data: 'table', preview: 'browser' } as const)[\n props.kind\n ],\n)\nconst choices = computed(() =>\n (props.views ?? []).map((entry) => ({ value: entry.id, label: entry.label })),\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = focusAfterRemoval(pane.value)\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nwatch(() => pane.value, effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const run = () => {\n overflowing.value = body.value !== null && body.value.scrollHeight > body.value.clientHeight\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [body.value, body.value?.firstElementChild])\n if (element) resize?.observe(element)\n release2 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect2)\nwatch(() => shown.value?.id, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = agentMember({\n member: 'ArtifactPane',\n element: () => pane.value,\n state: () => ({\n view: shown.value?.id ?? null,\n views: (props.views ?? []).map((entry) => ({ id: entry.id, label: entry.label })),\n streaming: props.streaming,\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) =>\n value !== shown.value?.id && ((mirror.value = value), emit('viewChange', value)),\n },\n close: () =>\n (() => {\n if (!listening.close) throw new Error('The pane has no close control.')\n emit('close')\n })(),\n },\n withholds: () => [switcher.value, closer.value],\n })\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nonBeforeUnmount(() => release3?.())\n</script>\n\n<template>\n <section\n ref=\"pane\"\n :class=\"styles.pane\"\n :aria-labelledby=\"titleId\"\n :data-kind=\"kind\"\n :data-state=\"streaming ? 'streaming' : undefined\"\n :aria-busy=\"streaming ? true : undefined\"\n data-member=\"artifact-pane\"\n >\n <header :class=\"styles.header\">\n <span :class=\"styles.mark\">\n <Spinner v-if=\"streaming\" size=\"sm\" :label=\"`${title}: still being written`\" />\n <Icon v-else :name=\"mark\" size=\"sm\" />\n </span>\n <div :class=\"styles.heading\">\n <h2 :class=\"styles.title\" :id=\"titleId\">\n {{ title }}\n </h2>\n <p v-if=\"meta !== undefined\" :class=\"styles.meta\">\n {{ meta }}\n </p>\n </div>\n <div v-if=\"switching\" ref=\"switcher\" :class=\"styles.views\">\n <SegmentedControl\n size=\"sm\"\n :label=\"viewsLabel\"\n :options=\"choices\"\n :value=\"current\"\n @change=\"((mirror = $event), emit('viewChange', $event))\"\n />\n </div>\n <div v-if=\"$slots.actions\" :class=\"styles.actions\">\n <slot name=\"actions\" />\n </div>\n <div v-if=\"listening.close\" ref=\"closer\" :class=\"styles.close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"closeLabel\"\n @click=\"emit('close')\"\n />\n </div>\n </header>\n <div\n ref=\"body\"\n :class=\"styles.body\"\n :data-view=\"shown?.id\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'group' : undefined\"\n :aria-labelledby=\"overflowing ? titleId : undefined\"\n >\n <div :class=\"styles.content\">\n <template v-if=\"shown === undefined\">\n <slot />\n </template>\n <template v-else-if=\"typeof shown.content === 'string'\">{{ shown.content }}</template>\n <template v-else>\n <component :is=\"shown.content\" />\n </template>\n </div>\n </div>\n </section>\n</template>\n"],"mappings":""}
|
|
@@ -2,20 +2,20 @@ import e from "../controls/Button.js";
|
|
|
2
2
|
import t from "./artifact-pane.module.js";
|
|
3
3
|
import n from "../controls/SegmentedControl.js";
|
|
4
4
|
import r from "../structure/Spinner.js";
|
|
5
|
-
import { Icon as i, agentMember as a,
|
|
6
|
-
import { Fragment as
|
|
5
|
+
import { Icon as i, agentMember as a, focusAfterRemoval as o, useListening as s } from "@polymorph/vue";
|
|
6
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, onBeforeUnmount as v, onMounted as y, openBlock as b, ref as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, unref as T, useId as E, useTemplateRef as D, watch as O } from "vue";
|
|
7
7
|
//#region src/ai/ArtifactPane.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var k = [
|
|
9
9
|
"aria-labelledby",
|
|
10
10
|
"data-kind",
|
|
11
11
|
"data-state",
|
|
12
12
|
"aria-busy"
|
|
13
|
-
],
|
|
13
|
+
], A = ["id"], j = [
|
|
14
14
|
"data-view",
|
|
15
15
|
"tabindex",
|
|
16
16
|
"role",
|
|
17
17
|
"aria-labelledby"
|
|
18
|
-
],
|
|
18
|
+
], M = /*@__PURE__*/ g({
|
|
19
19
|
name: "ArtifactPane",
|
|
20
20
|
inheritAttrs: !1,
|
|
21
21
|
__name: "ArtifactPane",
|
|
@@ -34,127 +34,135 @@ var O = [
|
|
|
34
34
|
viewsLabel: { default: "View" }
|
|
35
35
|
},
|
|
36
36
|
emits: ["close", "viewChange"],
|
|
37
|
-
setup(
|
|
38
|
-
let
|
|
37
|
+
setup(g, { emit: M }) {
|
|
38
|
+
let N = g, P = M, F = E(), I = s(), L = x(!1), R = x(N.defaultView ?? N.views?.[0]?.id), z = D("body"), B = D("closer"), V = D("pane"), H = D("switcher"), U = l(() => `${F}-title`), W = l(() => N.view ?? R.value), G = l(() => N.views !== void 0 && N.views.length > 1), K = l(() => N.views === void 0 ? void 0 : N.views.find((e) => e.id === W.value) ?? N.views[0]), q = l(() => N.kind === void 0 ? "artifact" : {
|
|
39
39
|
code: "terminal",
|
|
40
40
|
document: "document",
|
|
41
41
|
data: "table",
|
|
42
42
|
preview: "browser"
|
|
43
|
-
}[
|
|
43
|
+
}[N.kind]), J = l(() => (N.views ?? []).map((e) => ({
|
|
44
44
|
value: e.id,
|
|
45
45
|
label: e.label
|
|
46
|
-
}))),
|
|
47
|
-
|
|
46
|
+
}))), Y, X = () => {
|
|
47
|
+
Y?.();
|
|
48
|
+
let e = o(V.value);
|
|
49
|
+
Y = () => {
|
|
50
|
+
e();
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
y(X), O(() => V.value, X, { flush: "post" }), v(() => Y?.());
|
|
54
|
+
let Z, Q = () => {
|
|
55
|
+
Z?.();
|
|
48
56
|
let e = () => {
|
|
49
|
-
|
|
57
|
+
L.value = z.value !== null && z.value.scrollHeight > z.value.clientHeight;
|
|
50
58
|
}, t = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(e);
|
|
51
|
-
for (let e of [
|
|
52
|
-
|
|
59
|
+
for (let e of [z.value, z.value?.firstElementChild]) e && t?.observe(e);
|
|
60
|
+
Z = () => {
|
|
53
61
|
t?.disconnect();
|
|
54
62
|
}, e();
|
|
55
63
|
};
|
|
56
|
-
|
|
57
|
-
let
|
|
58
|
-
return
|
|
59
|
-
|
|
64
|
+
y(Q), O(() => K.value?.id, Q, { flush: "post" }), v(() => Z?.());
|
|
65
|
+
let $;
|
|
66
|
+
return y(() => {
|
|
67
|
+
$?.();
|
|
60
68
|
let e = a({
|
|
61
69
|
member: "ArtifactPane",
|
|
62
|
-
element: () =>
|
|
70
|
+
element: () => V.value,
|
|
63
71
|
state: () => ({
|
|
64
|
-
view:
|
|
65
|
-
views: (
|
|
72
|
+
view: K.value?.id ?? null,
|
|
73
|
+
views: (N.views ?? []).map((e) => ({
|
|
66
74
|
id: e.id,
|
|
67
75
|
label: e.label
|
|
68
76
|
})),
|
|
69
|
-
streaming:
|
|
77
|
+
streaming: N.streaming
|
|
70
78
|
}),
|
|
71
79
|
actions: {
|
|
72
80
|
choose: {
|
|
73
81
|
argument: "id",
|
|
74
|
-
run: (e) => e !==
|
|
82
|
+
run: (e) => e !== K.value?.id && (R.value = e, P("viewChange", e))
|
|
75
83
|
},
|
|
76
84
|
close: () => (() => {
|
|
77
|
-
if (!
|
|
78
|
-
|
|
85
|
+
if (!I.close) throw Error("The pane has no close control.");
|
|
86
|
+
P("close");
|
|
79
87
|
})()
|
|
80
88
|
},
|
|
81
|
-
withholds: () => [
|
|
89
|
+
withholds: () => [H.value, B.value]
|
|
82
90
|
});
|
|
83
|
-
|
|
91
|
+
$ = () => {
|
|
84
92
|
e();
|
|
85
93
|
};
|
|
86
|
-
}),
|
|
94
|
+
}), v(() => $?.()), (a, o) => (b(), f("section", {
|
|
87
95
|
ref_key: "pane",
|
|
88
|
-
ref:
|
|
89
|
-
class:
|
|
90
|
-
"aria-labelledby":
|
|
91
|
-
"data-kind":
|
|
92
|
-
"data-state":
|
|
93
|
-
"aria-busy":
|
|
96
|
+
ref: V,
|
|
97
|
+
class: _(T(t).pane),
|
|
98
|
+
"aria-labelledby": U.value,
|
|
99
|
+
"data-kind": g.kind,
|
|
100
|
+
"data-state": g.streaming ? "streaming" : void 0,
|
|
101
|
+
"aria-busy": g.streaming ? !0 : void 0,
|
|
94
102
|
"data-member": "artifact-pane"
|
|
95
|
-
}, [
|
|
96
|
-
|
|
103
|
+
}, [p("header", { class: _(T(t).header) }, [
|
|
104
|
+
p("span", { class: _(T(t).mark) }, [g.streaming ? (b(), u(r, {
|
|
97
105
|
key: 0,
|
|
98
106
|
size: "sm",
|
|
99
|
-
label: `${
|
|
100
|
-
}, null, 8, ["label"])) : (
|
|
107
|
+
label: `${g.title}: still being written`
|
|
108
|
+
}, null, 8, ["label"])) : (b(), u(T(i), {
|
|
101
109
|
key: 1,
|
|
102
|
-
name:
|
|
110
|
+
name: q.value,
|
|
103
111
|
size: "sm"
|
|
104
112
|
}, null, 8, ["name"]))], 2),
|
|
105
|
-
|
|
106
|
-
class:
|
|
107
|
-
id:
|
|
108
|
-
},
|
|
113
|
+
p("div", { class: _(T(t).heading) }, [p("h2", {
|
|
114
|
+
class: _(T(t).title),
|
|
115
|
+
id: U.value
|
|
116
|
+
}, w(g.title), 11, A), g.meta === void 0 ? d("", !0) : (b(), f("p", {
|
|
109
117
|
key: 0,
|
|
110
|
-
class:
|
|
111
|
-
},
|
|
112
|
-
|
|
118
|
+
class: _(T(t).meta)
|
|
119
|
+
}, w(g.meta), 3))], 2),
|
|
120
|
+
G.value ? (b(), f("div", {
|
|
113
121
|
key: 0,
|
|
114
122
|
ref_key: "switcher",
|
|
115
|
-
ref:
|
|
116
|
-
class:
|
|
117
|
-
}, [
|
|
123
|
+
ref: H,
|
|
124
|
+
class: _(T(t).views)
|
|
125
|
+
}, [h(n, {
|
|
118
126
|
size: "sm",
|
|
119
|
-
label:
|
|
120
|
-
options:
|
|
121
|
-
value:
|
|
122
|
-
onChange: o[0] ||= (e) => (
|
|
127
|
+
label: g.viewsLabel,
|
|
128
|
+
options: J.value,
|
|
129
|
+
value: W.value,
|
|
130
|
+
onChange: o[0] ||= (e) => (R.value = e, P("viewChange", e))
|
|
123
131
|
}, null, 8, [
|
|
124
132
|
"label",
|
|
125
133
|
"options",
|
|
126
134
|
"value"
|
|
127
|
-
])], 2)) :
|
|
128
|
-
a.$slots.actions ? (
|
|
135
|
+
])], 2)) : d("", !0),
|
|
136
|
+
a.$slots.actions ? (b(), f("div", {
|
|
129
137
|
key: 1,
|
|
130
|
-
class:
|
|
131
|
-
}, [
|
|
132
|
-
|
|
138
|
+
class: _(T(t).actions)
|
|
139
|
+
}, [S(a.$slots, "actions")], 2)) : d("", !0),
|
|
140
|
+
T(I).close ? (b(), f("div", {
|
|
133
141
|
key: 2,
|
|
134
142
|
ref_key: "closer",
|
|
135
|
-
ref:
|
|
136
|
-
class:
|
|
137
|
-
}, [
|
|
143
|
+
ref: B,
|
|
144
|
+
class: _(T(t).close)
|
|
145
|
+
}, [h(e, {
|
|
138
146
|
variant: "ghost",
|
|
139
147
|
tone: "neutral",
|
|
140
148
|
size: "sm",
|
|
141
149
|
iconOnly: !0,
|
|
142
150
|
icon: "close",
|
|
143
|
-
label:
|
|
144
|
-
onClick: o[1] ||= (e) =>
|
|
145
|
-
}, null, 8, ["label"])], 2)) :
|
|
146
|
-
], 2),
|
|
151
|
+
label: g.closeLabel,
|
|
152
|
+
onClick: o[1] ||= (e) => P("close")
|
|
153
|
+
}, null, 8, ["label"])], 2)) : d("", !0)
|
|
154
|
+
], 2), p("div", {
|
|
147
155
|
ref_key: "body",
|
|
148
|
-
ref:
|
|
149
|
-
class:
|
|
150
|
-
"data-view":
|
|
151
|
-
tabindex:
|
|
152
|
-
role:
|
|
153
|
-
"aria-labelledby":
|
|
154
|
-
}, [
|
|
156
|
+
ref: z,
|
|
157
|
+
class: _(T(t).body),
|
|
158
|
+
"data-view": K.value?.id,
|
|
159
|
+
tabindex: L.value ? 0 : void 0,
|
|
160
|
+
role: L.value ? "group" : void 0,
|
|
161
|
+
"aria-labelledby": L.value ? U.value : void 0
|
|
162
|
+
}, [p("div", { class: _(T(t).content) }, [K.value === void 0 ? S(a.$slots, "default", {}, void 0, void 0, 0) : typeof K.value.content == "string" ? (b(), f(c, { key: 1 }, [m(w(K.value.content), 1)], 64)) : (b(), u(C(K.value.content), { key: 2 }))], 2)], 10, j)], 10, k));
|
|
155
163
|
}
|
|
156
164
|
});
|
|
157
165
|
//#endregion
|
|
158
|
-
export {
|
|
166
|
+
export { M as default };
|
|
159
167
|
|
|
160
168
|
//# sourceMappingURL=ArtifactPane.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactPane.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/ai/ArtifactPane.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A side pane that shows one artifact a turn produced (`design/components/artifact-pane.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/artifact-pane.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport { Icon, agentMember, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/ai/artifact-pane.module.css'\nimport Button from '../controls/Button.vue'\nimport SegmentedControl from '../controls/SegmentedControl.vue'\nimport Spinner from '../structure/Spinner.vue'\n\nexport type ArtifactKind = 'code' | 'document' | 'data' | 'preview'\n\nexport interface ArtifactView {\n id: string\n label: string\n content: VNode | string\n}\n\nexport interface ArtifactPaneProps {\n /**\n * The close button's accessible name (generic default `Close`), which localized hosts replace.\n */\n closeLabel?: string\n defaultView?: string\n /**\n * The artifact's kind, which picks the mark (the tier's `artifact` glyph when absent).\n */\n kind?: 'code' | 'document' | 'data' | 'preview'\n /**\n * One preformatted line under the title, such as \"TypeScript · 142 lines\".\n */\n meta?: string\n /**\n * Whether the artifact is still being written, which shows a spinner and sets `aria-busy`.\n */\n streaming?: boolean\n /**\n * The artifact's name, used as the pane's heading and accessible name.\n */\n title: string\n view?: string\n /**\n * The artifact's views (code, preview). Two or more draw a switch, and a single view is drawn\n * with no switch. When `views` is absent or empty, `children` is the body.\n */\n views?: ArtifactView[]\n /**\n * The switch's accessible name (generic default `View`).\n */\n viewsLabel?: string\n}\n\ndefineOptions({ name: 'ArtifactPane', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ArtifactPaneProps>(), {\n closeLabel: 'Close',\n streaming: false,\n viewsLabel: 'View',\n})\nconst emit = defineEmits<{ close: []; viewChange: [id: string] }>()\ndefineSlots<{\n actions?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n}>()\nconst uid = useId()\nconst listening = useListening()\nconst overflowing = ref(false)\nconst mirror = ref(props.defaultView ?? props.views?.[0]?.id)\nconst body = useTemplateRef<HTMLElement>('body')\nconst closer = useTemplateRef<HTMLElement>('closer')\nconst pane = useTemplateRef<HTMLElement>('pane')\nconst switcher = useTemplateRef<HTMLElement>('switcher')\nconst titleId = computed(() => `${uid}-title`)\nconst current = computed(() => props.view ?? mirror.value)\nconst switching = computed(() => props.views !== undefined && props.views.length > 1)\nconst shown = computed(() =>\n props.views === undefined\n ? undefined\n : (props.views.find((entry) => entry.id === current.value) ?? props.views[0]),\n)\nconst mark = computed(() =>\n props.kind === undefined\n ? 'artifact'\n : ({ code: 'terminal', document: 'document', data: 'table', preview: 'browser' } as const)[\n props.kind\n ],\n)\nconst choices = computed(() =>\n (props.views ?? []).map((entry) => ({ value: entry.id, label: entry.label })),\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const run = () => {\n overflowing.value = body.value !== null && body.value.scrollHeight > body.value.clientHeight\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [body.value, body.value?.firstElementChild])\n if (element) resize?.observe(element)\n release1 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect1)\nwatch(() => shown.value?.id, effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'ArtifactPane',\n element: () => pane.value,\n state: () => ({\n view: shown.value?.id ?? null,\n views: (props.views ?? []).map((entry) => ({ id: entry.id, label: entry.label })),\n streaming: props.streaming,\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) =>\n value !== shown.value?.id && ((mirror.value = value), emit('viewChange', value)),\n },\n close: () =>\n (() => {\n if (!listening.close) throw new Error('The pane has no close control.')\n emit('close')\n })(),\n },\n withholds: () => [switcher.value, closer.value],\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <section\n ref=\"pane\"\n :class=\"styles.pane\"\n :aria-labelledby=\"titleId\"\n :data-kind=\"kind\"\n :data-state=\"streaming ? 'streaming' : undefined\"\n :aria-busy=\"streaming ? true : undefined\"\n data-member=\"artifact-pane\"\n >\n <header :class=\"styles.header\">\n <span :class=\"styles.mark\">\n <Spinner v-if=\"streaming\" size=\"sm\" :label=\"`${title}: still being written`\" />\n <Icon v-else :name=\"mark\" size=\"sm\" />\n </span>\n <div :class=\"styles.heading\">\n <h2 :class=\"styles.title\" :id=\"titleId\">\n {{ title }}\n </h2>\n <p v-if=\"meta !== undefined\" :class=\"styles.meta\">\n {{ meta }}\n </p>\n </div>\n <div v-if=\"switching\" ref=\"switcher\" :class=\"styles.views\">\n <SegmentedControl\n size=\"sm\"\n :label=\"viewsLabel\"\n :options=\"choices\"\n :value=\"current\"\n @change=\"((mirror = $event), emit('viewChange', $event))\"\n />\n </div>\n <div v-if=\"$slots.actions\" :class=\"styles.actions\">\n <slot name=\"actions\" />\n </div>\n <div v-if=\"listening.close\" ref=\"closer\" :class=\"styles.close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"closeLabel\"\n @click=\"emit('close')\"\n />\n </div>\n </header>\n <div\n ref=\"body\"\n :class=\"styles.body\"\n :data-view=\"shown?.id\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'group' : undefined\"\n :aria-labelledby=\"overflowing ? titleId : undefined\"\n >\n <div :class=\"styles.content\">\n <template v-if=\"shown === undefined\">\n <slot />\n </template>\n <template v-else-if=\"typeof shown.content === 'string'\">{{ shown.content }}</template>\n <template v-else>\n <component :is=\"shown.content\" />\n </template>\n </div>\n </div>\n </section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEA,IAAM,IAAQ,GAKR,IAAO,GAKP,IAAM,EAAM,GACZ,IAAY,EAAa,GACzB,IAAc,EAAI,EAAK,GACvB,IAAS,EAAI,EAAM,eAAe,EAAM,QAAQ,EAAE,EAAE,EAAE,GACtD,IAAO,EAA4B,MAAM,GACzC,IAAS,EAA4B,QAAQ,GAC7C,IAAO,EAA4B,MAAM,GACzC,IAAW,EAA4B,UAAU,GACjD,IAAU,QAAe,GAAG,EAAI,OAAO,GAC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,EAAA,MAAA,EAAA,GAEtE,EAAiC,EAAjB,EAAA,MAAM,OAAO,GAAA,EAAA,KAAA,EAAA,CAAA,EAAA,GAAA,CAAA,CAAA,GAAA,IAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ArtifactPane.vue_vue_type_script_setup_true_lang.js","names":["$slots"],"sources":["../../src/ai/ArtifactPane.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A side pane that shows one artifact a turn produced (`design/components/artifact-pane.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/artifact-pane.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n useId,\n useTemplateRef,\n watch,\n type VNode,\n} from 'vue'\n\nimport { Icon, agentMember, focusAfterRemoval, useListening } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/ai/artifact-pane.module.css'\nimport Button from '../controls/Button.vue'\nimport SegmentedControl from '../controls/SegmentedControl.vue'\nimport Spinner from '../structure/Spinner.vue'\n\nexport type ArtifactKind = 'code' | 'document' | 'data' | 'preview'\n\nexport interface ArtifactView {\n id: string\n label: string\n content: VNode | string\n}\n\nexport interface ArtifactPaneProps {\n /**\n * The close button's accessible name (generic default `Close`), which localized hosts replace.\n */\n closeLabel?: string\n defaultView?: string\n /**\n * The artifact's kind, which picks the mark (the tier's `artifact` glyph when absent).\n */\n kind?: 'code' | 'document' | 'data' | 'preview'\n /**\n * One preformatted line under the title, such as \"TypeScript · 142 lines\".\n */\n meta?: string\n /**\n * Whether the artifact is still being written, which shows a spinner and sets `aria-busy`.\n */\n streaming?: boolean\n /**\n * The artifact's name, used as the pane's heading and accessible name.\n */\n title: string\n view?: string\n /**\n * The artifact's views (code, preview). Two or more draw a switch, and a single view is drawn\n * with no switch. When `views` is absent or empty, `children` is the body.\n */\n views?: ArtifactView[]\n /**\n * The switch's accessible name (generic default `View`).\n */\n viewsLabel?: string\n}\n\ndefineOptions({ name: 'ArtifactPane', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ArtifactPaneProps>(), {\n closeLabel: 'Close',\n streaming: false,\n viewsLabel: 'View',\n})\nconst emit = defineEmits<{ close: []; viewChange: [id: string] }>()\ndefineSlots<{\n actions?: (props: Record<string, never>) => unknown\n default?: (props: Record<string, never>) => unknown\n}>()\nconst uid = useId()\nconst listening = useListening()\nconst overflowing = ref(false)\nconst mirror = ref(props.defaultView ?? props.views?.[0]?.id)\nconst body = useTemplateRef<HTMLElement>('body')\nconst closer = useTemplateRef<HTMLElement>('closer')\nconst pane = useTemplateRef<HTMLElement>('pane')\nconst switcher = useTemplateRef<HTMLElement>('switcher')\nconst titleId = computed(() => `${uid}-title`)\nconst current = computed(() => props.view ?? mirror.value)\nconst switching = computed(() => props.views !== undefined && props.views.length > 1)\nconst shown = computed(() =>\n props.views === undefined\n ? undefined\n : (props.views.find((entry) => entry.id === current.value) ?? props.views[0]),\n)\nconst mark = computed(() =>\n props.kind === undefined\n ? 'artifact'\n : ({ code: 'terminal', document: 'document', data: 'table', preview: 'browser' } as const)[\n props.kind\n ],\n)\nconst choices = computed(() =>\n (props.views ?? []).map((entry) => ({ value: entry.id, label: entry.label })),\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = focusAfterRemoval(pane.value)\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nwatch(() => pane.value, effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const run = () => {\n overflowing.value = body.value !== null && body.value.scrollHeight > body.value.clientHeight\n }\n const resize = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(run)\n for (const element of [body.value, body.value?.firstElementChild])\n if (element) resize?.observe(element)\n release2 = () => {\n resize?.disconnect()\n }\n run()\n}\nonMounted(effect2)\nwatch(() => shown.value?.id, effect2, { flush: 'post' })\nonBeforeUnmount(() => release2?.())\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = agentMember({\n member: 'ArtifactPane',\n element: () => pane.value,\n state: () => ({\n view: shown.value?.id ?? null,\n views: (props.views ?? []).map((entry) => ({ id: entry.id, label: entry.label })),\n streaming: props.streaming,\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) =>\n value !== shown.value?.id && ((mirror.value = value), emit('viewChange', value)),\n },\n close: () =>\n (() => {\n if (!listening.close) throw new Error('The pane has no close control.')\n emit('close')\n })(),\n },\n withholds: () => [switcher.value, closer.value],\n })\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nonBeforeUnmount(() => release3?.())\n</script>\n\n<template>\n <section\n ref=\"pane\"\n :class=\"styles.pane\"\n :aria-labelledby=\"titleId\"\n :data-kind=\"kind\"\n :data-state=\"streaming ? 'streaming' : undefined\"\n :aria-busy=\"streaming ? true : undefined\"\n data-member=\"artifact-pane\"\n >\n <header :class=\"styles.header\">\n <span :class=\"styles.mark\">\n <Spinner v-if=\"streaming\" size=\"sm\" :label=\"`${title}: still being written`\" />\n <Icon v-else :name=\"mark\" size=\"sm\" />\n </span>\n <div :class=\"styles.heading\">\n <h2 :class=\"styles.title\" :id=\"titleId\">\n {{ title }}\n </h2>\n <p v-if=\"meta !== undefined\" :class=\"styles.meta\">\n {{ meta }}\n </p>\n </div>\n <div v-if=\"switching\" ref=\"switcher\" :class=\"styles.views\">\n <SegmentedControl\n size=\"sm\"\n :label=\"viewsLabel\"\n :options=\"choices\"\n :value=\"current\"\n @change=\"((mirror = $event), emit('viewChange', $event))\"\n />\n </div>\n <div v-if=\"$slots.actions\" :class=\"styles.actions\">\n <slot name=\"actions\" />\n </div>\n <div v-if=\"listening.close\" ref=\"closer\" :class=\"styles.close\">\n <Button\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"close\"\n :label=\"closeLabel\"\n @click=\"emit('close')\"\n />\n </div>\n </header>\n <div\n ref=\"body\"\n :class=\"styles.body\"\n :data-view=\"shown?.id\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'group' : undefined\"\n :aria-labelledby=\"overflowing ? titleId : undefined\"\n >\n <div :class=\"styles.content\">\n <template v-if=\"shown === undefined\">\n <slot />\n </template>\n <template v-else-if=\"typeof shown.content === 'string'\">{{ shown.content }}</template>\n <template v-else>\n <component :is=\"shown.content\" />\n </template>\n </div>\n </div>\n </section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEA,IAAM,IAAQ,GAKR,IAAO,GAKP,IAAM,EAAM,GACZ,IAAY,EAAa,GACzB,IAAc,EAAI,EAAK,GACvB,IAAS,EAAI,EAAM,eAAe,EAAM,QAAQ,EAAE,EAAE,EAAE,GACtD,IAAO,EAA4B,MAAM,GACzC,IAAS,EAA4B,QAAQ,GAC7C,IAAO,EAA4B,MAAM,GACzC,IAAW,EAA4B,UAAU,GACjD,IAAU,QAAe,GAAG,EAAI,OAAO,GACvC,IAAU,QAAe,EAAM,QAAQ,EAAO,KAAK,GACnD,IAAY,QAAe,EAAM,UAAU,KAAA,KAAa,EAAM,MAAM,SAAS,CAAC,GAC9E,IAAQ,QACZ,EAAM,UAAU,KAAA,IACZ,KAAA,IACC,EAAM,MAAM,MAAM,MAAU,EAAM,OAAO,EAAQ,KAAK,KAAK,EAAM,MAAM,EAC9E,GACM,IAAO,QACX,EAAM,SAAS,KAAA,IACX,aACC;GAAE,MAAM;GAAY,UAAU;GAAY,MAAM;GAAS,SAAS;EAAU,EAC3E,EAAM,KAEd,GACM,IAAU,SACb,EAAM,SAAS,CAAC,EAAA,CAAG,KAAK,OAAW;GAAE,OAAO,EAAM;GAAI,OAAO,EAAM;EAAM,EAAE,CAC9E,GACI,GACE,UAAgB;GACpB,IAAW;GACX,IAAM,IAAM,EAAkB,EAAK,KAAK;GACxC,UAAiB;IACf,EAAI;GACN;EACF;EAGA,AAFA,EAAU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