@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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import e from "../controls/Button.js";
|
|
2
2
|
import t from "../layout/Inline.js";
|
|
3
3
|
import n from "./pagination.module.js";
|
|
4
|
-
import { Icon as r, PAGINATION_ELLIPSIS as i, agentMember as a,
|
|
5
|
-
import { Fragment as
|
|
4
|
+
import { Icon as r, PAGINATION_ELLIPSIS as i, agentMember as a, nameTip as o, paginationWindow as s } from "@polymorph/vue";
|
|
5
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, useTemplateRef as w, watch as T, withCtx as E } from "vue";
|
|
6
6
|
//#region src/structure/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var D = ["aria-label", "data-disabled"], O = ["href", "aria-label"], k = [
|
|
8
8
|
"href",
|
|
9
9
|
"aria-label",
|
|
10
10
|
"onClick"
|
|
11
|
-
],
|
|
11
|
+
], A = ["href", "aria-label"], j = /*@__PURE__*/ h({
|
|
12
12
|
name: "Pagination",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "Pagination",
|
|
@@ -29,146 +29,174 @@ var E = ["aria-label", "data-disabled"], D = ["href", "aria-label"], O = [
|
|
|
29
29
|
siblingCount: { default: 1 }
|
|
30
30
|
},
|
|
31
31
|
emits: ["pageChange"],
|
|
32
|
-
setup(
|
|
33
|
-
let
|
|
32
|
+
setup(h, { emit: j }) {
|
|
33
|
+
let M = h, N = j, P = b(null), F = b(null), I = b(null), L = w("nextLink"), R = w("previousLink"), z = w("root"), B = l(() => s(M.page, M.pageCount, M.siblingCount)), V = l(() => [
|
|
34
34
|
"previous",
|
|
35
|
-
...
|
|
35
|
+
...B.value.filter((e) => e !== i),
|
|
36
36
|
"next"
|
|
37
|
-
]),
|
|
38
|
-
let t = e.target, n =
|
|
39
|
-
|
|
40
|
-
}),
|
|
37
|
+
]), H = l(() => (e) => {
|
|
38
|
+
let t = e.target, n = z.value, r = V.value, i = n === null ? -1 : [...n.querySelectorAll("button, a[href]")].indexOf(t);
|
|
39
|
+
P.value = t, F.value = i < 0 ? null : r[i] ?? null;
|
|
40
|
+
}), U = l(() => (e) => {
|
|
41
41
|
let t = e.target;
|
|
42
42
|
t.matches(":disabled") || queueMicrotask(() => {
|
|
43
|
-
|
|
43
|
+
P.value === t && t.isConnected && (P.value = null);
|
|
44
44
|
});
|
|
45
|
-
}),
|
|
46
|
-
let e =
|
|
45
|
+
}), W = l(() => () => {
|
|
46
|
+
let e = z.value;
|
|
47
47
|
if (e === null) return;
|
|
48
|
-
let t =
|
|
48
|
+
let t = V.value, n = () => [...e.querySelectorAll("button, a[href]")], r = () => document.activeElement === null || document.activeElement === document.body, i = P.value;
|
|
49
49
|
if (i !== null && !i.isConnected) {
|
|
50
|
-
|
|
51
|
-
let e =
|
|
52
|
-
i !== void 0 && r() && (i.matches(":disabled") ?
|
|
50
|
+
P.value = null;
|
|
51
|
+
let e = F.value, i = e === null ? void 0 : n()[t.indexOf(e)];
|
|
52
|
+
i !== void 0 && r() && (i.matches(":disabled") ? P.value = i : i.focus());
|
|
53
53
|
}
|
|
54
|
-
if (!
|
|
55
|
-
let r =
|
|
56
|
-
if (
|
|
54
|
+
if (!M.disabled) {
|
|
55
|
+
let r = I.value;
|
|
56
|
+
if (I.value = null, r === null || document.activeElement !== e) return;
|
|
57
57
|
let i = n()[t.indexOf(r)];
|
|
58
58
|
i !== void 0 && !i.matches(":disabled") && i.focus();
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
let a =
|
|
61
|
+
let a = P.value;
|
|
62
62
|
if (a === null || !a.isConnected || !a.matches(":disabled")) return;
|
|
63
63
|
let o = document.activeElement;
|
|
64
|
-
o !== a && o !== null && o !== document.body || (
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
|
|
64
|
+
o !== a && o !== null && o !== document.body || (I.value = t[n().indexOf(a)] ?? null, e.focus());
|
|
65
|
+
}), G = l(() => !M.disabled && M.getPageHref !== void 0), ee = l(() => (e) => !e.defaultPrevented && e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey), K = l(() => (e, t) => {
|
|
66
|
+
ee.value(e) && (e.preventDefault(), N("pageChange", t));
|
|
67
|
+
}), q, J = () => {
|
|
68
|
+
q?.();
|
|
69
69
|
let e = () => {
|
|
70
|
-
|
|
70
|
+
W.value();
|
|
71
71
|
}, t = typeof MutationObserver > "u" ? void 0 : new MutationObserver(e);
|
|
72
|
-
for (let e of [
|
|
72
|
+
for (let e of [z.value]) e && t?.observe(e, {
|
|
73
73
|
childList: !0,
|
|
74
74
|
characterData: !0,
|
|
75
75
|
subtree: !0,
|
|
76
76
|
attributeFilter: ["disabled"]
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
q = () => {
|
|
79
79
|
t?.disconnect();
|
|
80
80
|
}, e();
|
|
81
81
|
};
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
v(J), T(() => B.value.length > 0, J, { flush: "post" }), _(() => q?.()), T(() => M.disabled, () => {
|
|
83
|
+
W.value();
|
|
84
84
|
}, { flush: "post" });
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
let Y, X = () => {
|
|
86
|
+
Y?.();
|
|
87
|
+
let e = o(R.value, M.messages.previous, n.linkTip);
|
|
88
|
+
Y = () => {
|
|
89
|
+
e();
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
v(X), T(() => [
|
|
93
|
+
G.value,
|
|
94
|
+
M.page,
|
|
95
|
+
M.pageCount,
|
|
96
|
+
M.messages.previous
|
|
97
|
+
], X, { flush: "post" }), _(() => Y?.());
|
|
98
|
+
let Z, Q = () => {
|
|
99
|
+
Z?.();
|
|
100
|
+
let e = o(L.value, M.messages.next, n.linkTip);
|
|
101
|
+
Z = () => {
|
|
102
|
+
e();
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
v(Q), T(() => [
|
|
106
|
+
G.value,
|
|
107
|
+
M.page,
|
|
108
|
+
M.pageCount,
|
|
109
|
+
M.messages.next
|
|
110
|
+
], Q, { flush: "post" }), _(() => Z?.());
|
|
111
|
+
let $;
|
|
112
|
+
return v(() => {
|
|
113
|
+
$?.();
|
|
88
114
|
let e = a({
|
|
89
115
|
member: "Pagination",
|
|
90
|
-
element: () =>
|
|
116
|
+
element: () => z.value,
|
|
91
117
|
state: () => ({
|
|
92
|
-
page:
|
|
93
|
-
"page-count":
|
|
94
|
-
disabled:
|
|
118
|
+
page: M.page,
|
|
119
|
+
"page-count": M.pageCount,
|
|
120
|
+
disabled: M.disabled
|
|
95
121
|
}),
|
|
96
122
|
actions: { set: {
|
|
97
123
|
argument: "number",
|
|
98
124
|
run: (e) => (() => {
|
|
99
|
-
if (!Number.isInteger(e) || e < 1 || e >
|
|
100
|
-
e !==
|
|
125
|
+
if (!Number.isInteger(e) || e < 1 || e > M.pageCount) throw Error(`There is no page ${e}; the pages run from 1 to ${M.pageCount}.`);
|
|
126
|
+
e !== M.page && N("pageChange", e);
|
|
101
127
|
})()
|
|
102
128
|
} },
|
|
103
|
-
withholds: () =>
|
|
129
|
+
withholds: () => z.value
|
|
104
130
|
});
|
|
105
|
-
|
|
131
|
+
$ = () => {
|
|
106
132
|
e();
|
|
107
133
|
};
|
|
108
|
-
}),
|
|
134
|
+
}), _(() => $?.()), (a, o) => B.value.length > 0 ? (y(), f("nav", {
|
|
109
135
|
key: 0,
|
|
110
136
|
ref_key: "root",
|
|
111
|
-
ref:
|
|
112
|
-
class:
|
|
113
|
-
"aria-label":
|
|
114
|
-
"data-disabled":
|
|
137
|
+
ref: z,
|
|
138
|
+
class: g(C(n).pagination),
|
|
139
|
+
"aria-label": h.label,
|
|
140
|
+
"data-disabled": h.disabled ? "" : void 0,
|
|
115
141
|
tabindex: "-1",
|
|
116
142
|
"data-member": "pagination",
|
|
117
|
-
onFocusin: o[4] ||= (e) =>
|
|
118
|
-
onFocusout: o[5] ||= (e) =>
|
|
119
|
-
}, [
|
|
143
|
+
onFocusin: o[4] ||= (e) => H.value(e),
|
|
144
|
+
onFocusout: o[5] ||= (e) => U.value(e)
|
|
145
|
+
}, [m(t, {
|
|
120
146
|
gap: 1,
|
|
121
147
|
align: "center",
|
|
122
148
|
wrap: !0
|
|
123
149
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
|
|
150
|
+
default: E(() => [
|
|
151
|
+
G.value && h.page > 1 && h.page - 1 <= h.pageCount ? (y(), f("a", {
|
|
126
152
|
key: 0,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
153
|
+
ref_key: "previousLink",
|
|
154
|
+
ref: R,
|
|
155
|
+
class: g(C(n).link),
|
|
156
|
+
href: h.getPageHref?.(h.page - 1),
|
|
157
|
+
"aria-label": h.messages.previous,
|
|
130
158
|
"data-variant": "ghost",
|
|
131
159
|
"data-size": "sm",
|
|
132
160
|
"data-tone": "neutral",
|
|
133
161
|
"data-icon-only": "",
|
|
134
|
-
onClick: o[0] ||= (e) =>
|
|
135
|
-
}, [
|
|
162
|
+
onClick: o[0] ||= (e) => K.value(e, h.page - 1)
|
|
163
|
+
}, [p("span", { class: g(C(n).linkGlyph) }, [m(C(r), {
|
|
136
164
|
name: "previous",
|
|
137
165
|
size: "sm"
|
|
138
|
-
})], 2)], 10,
|
|
166
|
+
})], 2)], 10, O)) : (y(), u(e, {
|
|
139
167
|
key: 1,
|
|
140
168
|
variant: "ghost",
|
|
141
169
|
tone: "neutral",
|
|
142
170
|
size: "sm",
|
|
143
171
|
iconOnly: !0,
|
|
144
172
|
icon: "previous",
|
|
145
|
-
label:
|
|
146
|
-
disabled:
|
|
147
|
-
onClick: o[1] ||= (e) =>
|
|
173
|
+
label: h.messages.previous,
|
|
174
|
+
disabled: h.disabled || h.page <= 1,
|
|
175
|
+
onClick: o[1] ||= (e) => N("pageChange", h.page - 1)
|
|
148
176
|
}, null, 8, ["label", "disabled"])),
|
|
149
|
-
(
|
|
177
|
+
(y(!0), f(c, null, x(B.value, (t, r) => (y(), f(c, { key: t === C(i) ? `gap-${r}` : t }, [t === C(i) ? (y(), f("span", {
|
|
150
178
|
key: 0,
|
|
151
|
-
class:
|
|
179
|
+
class: g(C(n).ellipsis),
|
|
152
180
|
"aria-hidden": "true"
|
|
153
|
-
}, " … ", 2)) :
|
|
181
|
+
}, " … ", 2)) : G.value && t !== h.page ? (y(), f("a", {
|
|
154
182
|
key: 1,
|
|
155
|
-
class:
|
|
156
|
-
href:
|
|
157
|
-
"aria-label":
|
|
183
|
+
class: g(C(n).link),
|
|
184
|
+
href: h.getPageHref?.(t),
|
|
185
|
+
"aria-label": h.messages.page(t),
|
|
158
186
|
"data-variant": "ghost",
|
|
159
187
|
"data-size": "sm",
|
|
160
188
|
"data-tone": "neutral",
|
|
161
|
-
onClick: (e) =>
|
|
162
|
-
}, [
|
|
189
|
+
onClick: (e) => K.value(e, t)
|
|
190
|
+
}, [p("span", { class: g(C(n).linkLabel) }, S(String(t)), 3)], 10, k)) : (y(), u(e, {
|
|
163
191
|
key: 2,
|
|
164
|
-
variant: t ===
|
|
165
|
-
tone: t ===
|
|
192
|
+
variant: t === h.page ? "soft" : "ghost",
|
|
193
|
+
tone: t === h.page ? "accent" : "neutral",
|
|
166
194
|
size: "sm",
|
|
167
|
-
current: t ===
|
|
195
|
+
current: t === h.page,
|
|
168
196
|
label: String(t),
|
|
169
|
-
"aria-label":
|
|
170
|
-
disabled:
|
|
171
|
-
onClick: (e) => t !==
|
|
197
|
+
"aria-label": h.messages.page(t),
|
|
198
|
+
disabled: h.disabled,
|
|
199
|
+
onClick: (e) => t !== h.page && N("pageChange", t)
|
|
172
200
|
}, null, 8, [
|
|
173
201
|
"variant",
|
|
174
202
|
"tone",
|
|
@@ -178,36 +206,38 @@ var E = ["aria-label", "data-disabled"], D = ["href", "aria-label"], O = [
|
|
|
178
206
|
"disabled",
|
|
179
207
|
"onClick"
|
|
180
208
|
]))], 64))), 128)),
|
|
181
|
-
|
|
209
|
+
G.value && h.page < h.pageCount && h.page + 1 >= 1 ? (y(), f("a", {
|
|
182
210
|
key: 2,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
211
|
+
ref_key: "nextLink",
|
|
212
|
+
ref: L,
|
|
213
|
+
class: g(C(n).link),
|
|
214
|
+
href: h.getPageHref?.(h.page + 1),
|
|
215
|
+
"aria-label": h.messages.next,
|
|
186
216
|
"data-variant": "ghost",
|
|
187
217
|
"data-size": "sm",
|
|
188
218
|
"data-tone": "neutral",
|
|
189
219
|
"data-icon-only": "",
|
|
190
|
-
onClick: o[2] ||= (e) =>
|
|
191
|
-
}, [
|
|
220
|
+
onClick: o[2] ||= (e) => K.value(e, h.page + 1)
|
|
221
|
+
}, [p("span", { class: g(C(n).linkGlyph) }, [m(C(r), {
|
|
192
222
|
name: "next",
|
|
193
223
|
size: "sm"
|
|
194
|
-
})], 2)], 10,
|
|
224
|
+
})], 2)], 10, A)) : (y(), u(e, {
|
|
195
225
|
key: 3,
|
|
196
226
|
variant: "ghost",
|
|
197
227
|
tone: "neutral",
|
|
198
228
|
size: "sm",
|
|
199
229
|
iconOnly: !0,
|
|
200
230
|
icon: "next",
|
|
201
|
-
label:
|
|
202
|
-
disabled:
|
|
203
|
-
onClick: o[3] ||= (e) =>
|
|
231
|
+
label: h.messages.next,
|
|
232
|
+
disabled: h.disabled || h.page >= h.pageCount,
|
|
233
|
+
onClick: o[3] ||= (e) => N("pageChange", h.page + 1)
|
|
204
234
|
}, null, 8, ["label", "disabled"]))
|
|
205
235
|
]),
|
|
206
236
|
_: 1
|
|
207
|
-
})], 42,
|
|
237
|
+
})], 42, D)) : d("", !0);
|
|
208
238
|
}
|
|
209
239
|
});
|
|
210
240
|
//#endregion
|
|
211
|
-
export {
|
|
241
|
+
export { j as default };
|
|
212
242
|
|
|
213
243
|
//# sourceMappingURL=Pagination.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/Pagination.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Numbered page controls for paged lists (`design/components/pagination.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/pagination.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from 'vue'\n\nimport { Icon, PAGINATION_ELLIPSIS, agentMember, paginationWindow } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/pagination.module.css'\nimport Button from '../controls/Button.vue'\nimport Inline from '../layout/Inline.vue'\n\nexport type SiblingCount = NonNullable<PaginationProps['siblingCount']>\n\nexport interface PaginationMessages {\n previous: string\n next: string\n page: (page: number) => string\n}\n\nexport interface PaginationProps {\n /**\n * The app holds the pager while it does something else to the list: every control is disabled,\n * the current page too, and no page is asked for.\n */\n disabled?: boolean\n /**\n * A page's address, such as `?page=3`. Given, each control that goes to another page is a link\n * to that page's address, so a crawler, a new tab and a reader whose script has not loaded can\n * follow it. A click the browser would follow in this tab calls `onPageChange` in place of the\n * navigation; a click with a modifier key opens the address. The current page, a control with\n * nowhere to go and a held pager's controls stay buttons.\n */\n getPageHref?: (page: number) => string\n label?: string\n /**\n * Omit for the generic English defaults; localized hosts pass their own.\n */\n messages?: PaginationMessages\n /**\n * 1-based and controlled, because the current page belongs to the list.\n */\n page: number\n pageCount: number\n siblingCount?: 1 | 2\n}\n\ndefineOptions({ name: 'Pagination', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<PaginationProps>(), {\n disabled: false,\n label: 'Pagination',\n messages: () => ({\n previous: 'Previous page',\n next: 'Next page',\n page: (page) => `Page ${page}`,\n }),\n siblingCount: 1,\n})\nconst emit = defineEmits<{ pageChange: [page: number] }>()\nconst focused = ref(null as HTMLElement | null)\nconst focusedControl = ref(null as string | number | null)\nconst taken = ref(null as string | number | null)\nconst root = useTemplateRef<HTMLElement>('root')\nconst entries = computed(() => paginationWindow(props.page, props.pageCount, props.siblingCount))\nconst controls = computed(() => [\n 'previous',\n ...entries.value.filter((shown) => shown !== PAGINATION_ELLIPSIS),\n 'next',\n])\nconst focusIn = computed(() => (event: FocusEvent) => {\n const target = event.target as HTMLElement\n const pager = root.value as HTMLElement | null\n const names: readonly (string | number)[] = controls.value\n const at = pager === null ? -1 : [...pager.querySelectorAll('button, a[href]')].indexOf(target)\n focused.value = target\n focusedControl.value = at < 0 ? null : (names[at] ?? null)\n})\nconst focusOut = computed(() => (event: FocusEvent) => {\n const target = event.target as HTMLElement\n if (target.matches(':disabled')) return\n queueMicrotask(() => {\n if (focused.value === target && target.isConnected) focused.value = null\n })\n})\nconst keepPlace = computed(() => () => {\n const pager = root.value as HTMLElement | null\n if (pager === null) return\n const names: readonly (string | number)[] = controls.value\n const drawn = () => [...pager.querySelectorAll<HTMLElement>('button, a[href]')]\n const onPage = () => document.activeElement === null || document.activeElement === document.body\n const left = focused.value as HTMLElement | null\n if (left !== null && !left.isConnected) {\n focused.value = null\n const name = focusedControl.value\n const now = name === null ? undefined : drawn()[names.indexOf(name)]\n if (now !== undefined && onPage()) {\n if (now.matches(':disabled')) focused.value = now\n else now.focus()\n }\n }\n if (!props.disabled) {\n const control = taken.value\n taken.value = null\n if (control === null || document.activeElement !== pager) return\n const element = drawn()[names.indexOf(control)]\n if (element !== undefined && !element.matches(':disabled')) element.focus()\n return\n }\n const from = focused.value as HTMLElement | null\n if (from === null || !from.isConnected || !from.matches(':disabled')) return\n const active = document.activeElement\n if (active !== from && active !== null && active !== document.body) return\n taken.value = names[drawn().indexOf(from)] ?? null\n pager.focus()\n})\nconst linked = computed(() => !props.disabled && props.getPageHref !== undefined)\nconst navigatesHere = computed(\n () =>\n (event: MouseEvent): boolean =>\n !event.defaultPrevented &&\n event.button === 0 &&\n !event.metaKey &&\n !event.ctrlKey &&\n !event.shiftKey &&\n !event.altKey,\n)\nconst follow = computed(() => (event: MouseEvent, to: number): void => {\n if (!navigatesHere.value(event)) return\n event.preventDefault()\n emit('pageChange', to)\n})\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const run = () => {\n keepPlace.value()\n }\n const mutation = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(run)\n for (const element of [root.value])\n if (element)\n mutation?.observe(element, {\n childList: true,\n characterData: true,\n subtree: true,\n attributeFilter: ['disabled'],\n })\n release1 = () => {\n mutation?.disconnect()\n }\n run()\n}\nonMounted(effect1)\nwatch(() => entries.value.length > 0, effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nconst effect2 = () => {\n keepPlace.value()\n}\nwatch(() => props.disabled, effect2, { flush: 'post' })\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = agentMember({\n member: 'Pagination',\n element: () => root.value,\n state: () => ({ page: props.page, 'page-count': props.pageCount, disabled: props.disabled }),\n actions: {\n set: {\n argument: 'number',\n run: (value) =>\n (() => {\n if (!Number.isInteger(value) || value < 1 || value > props.pageCount) {\n throw new Error(\n `There is no page ${value}; the pages run from 1 to ${props.pageCount}.`,\n )\n }\n if (value !== props.page) emit('pageChange', value)\n })(),\n },\n },\n withholds: () => root.value,\n })\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nonBeforeUnmount(() => release3?.())\n</script>\n\n<template>\n <nav\n v-if=\"entries.length > 0\"\n ref=\"root\"\n :class=\"styles.pagination\"\n :aria-label=\"label\"\n :data-disabled=\"disabled ? '' : undefined\"\n tabindex=\"-1\"\n data-member=\"pagination\"\n @focusin=\"focusIn($event)\"\n @focusout=\"focusOut($event)\"\n >\n <Inline :gap=\"1\" align=\"center\" :wrap=\"true\">\n <!-- link -->\n <a\n v-if=\"linked && page > 1 && page - 1 <= pageCount\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(page - 1)\"\n :aria-label=\"messages.previous\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n data-icon-only=\"\"\n @click=\"follow($event, page - 1)\"\n >\n <!-- glyph -->\n <span :class=\"styles.linkGlyph\">\n <Icon name=\"previous\" size=\"sm\" />\n </span>\n </a>\n <Button\n v-else\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"previous\"\n :label=\"messages.previous\"\n :disabled=\"disabled || page <= 1\"\n @click=\"emit('pageChange', page - 1)\"\n />\n <template\n v-for=\"(entry, at) in entries\"\n :key=\"entry === PAGINATION_ELLIPSIS ? `gap-${at}` : entry\"\n >\n <span v-if=\"entry === PAGINATION_ELLIPSIS\" :class=\"styles.ellipsis\" aria-hidden=\"true\">\n …\n </span>\n <!-- link -->\n <a\n v-else-if=\"linked && entry !== page\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(entry)\"\n :aria-label=\"messages.page(entry)\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n @click=\"follow($event, entry)\"\n >\n <!-- label -->\n <span :class=\"styles.linkLabel\">\n {{ String(entry) }}\n </span>\n </a>\n <Button\n v-else\n :variant=\"entry === page ? 'soft' : 'ghost'\"\n :tone=\"entry === page ? 'accent' : 'neutral'\"\n size=\"sm\"\n :current=\"entry === page\"\n :label=\"String(entry)\"\n :aria-label=\"messages.page(entry)\"\n :disabled=\"disabled\"\n @click=\"entry !== page && emit('pageChange', entry)\"\n />\n </template>\n <!-- link -->\n <a\n v-if=\"linked && page < pageCount && page + 1 >= 1\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(page + 1)\"\n :aria-label=\"messages.next\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n data-icon-only=\"\"\n @click=\"follow($event, page + 1)\"\n >\n <!-- glyph -->\n <span :class=\"styles.linkGlyph\">\n <Icon name=\"next\" size=\"sm\" />\n </span>\n </a>\n <Button\n v-else\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"next\"\n :label=\"messages.next\"\n :disabled=\"disabled || page >= pageCount\"\n @click=\"emit('pageChange', page + 1)\"\n />\n </Inline>\n </nav>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDA,IAAM,IAAQ,GAUR,IAAO,GACP,IAAU,EAAI,IAA0B,GACxC,IAAiB,EAAI,IAA8B,GACnD,IAAQ,EAAI,IAA8B,GAC1C,IAAO,EAA4B,MAAM,GACzC,IAAU,QAAe,EAAiB,EAAM,MAAM,EAAM,WAAW,EAAM,YAAY,CAAC,GAC1F,IAAW,QAAe;GAC9B;GACA,GAAG,EAAQ,MAAM,QAAQ,MAAU,MAAU,CAAmB;GAChE;EACF,CAAC,GACK,IAAU,SAAgB,MAAsB;GACpD,IAAM,IAAS,EAAM,QACf,IAAQ,EAAK,OACb,IAAsC,EAAS,OAC/C,IAAK,MAAU,OAAO,KAAK,CAAC,GAAG,EAAM,iBAAiB,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAM;GAE9F,AADA,EAAQ,QAAQ,GAChB,EAAe,QAAQ,IAAK,IAAI,OAAQ,EAAM,MAAO;EACvD,CAAC,GACK,IAAW,SAAgB,MAAsB;GACrD,IAAM,IAAS,EAAM;GACjB,EAAO,QAAQ,WAAW,KAC9B,qBAAqB;IACnB,AAAI,EAAQ,UAAU,KAAU,EAAO,gBAAa,EAAQ,QAAQ;GACtE,CAAC;EACH,CAAC,GACK,IAAY,cAAqB;GACrC,IAAM,IAAQ,EAAK;GACnB,IAAI,MAAU,MAAM;GACpB,IAAM,IAAsC,EAAS,OAC/C,UAAc,CAAC,GAAG,EAAM,iB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pagination.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/Pagination.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Numbered page controls for paged lists (`design/components/pagination.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/pagination.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from 'vue'\n\nimport { Icon, PAGINATION_ELLIPSIS, agentMember, nameTip, paginationWindow } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/pagination.module.css'\nimport Button from '../controls/Button.vue'\nimport Inline from '../layout/Inline.vue'\n\nexport type SiblingCount = NonNullable<PaginationProps['siblingCount']>\n\nexport interface PaginationMessages {\n previous: string\n next: string\n page: (page: number) => string\n}\n\nexport interface PaginationProps {\n /**\n * The app holds the pager while it does something else to the list: every control is disabled,\n * the current page too, and no page is asked for.\n */\n disabled?: boolean\n /**\n * A page's address, such as `?page=3`. Given, each control that goes to another page is a link\n * to that page's address, so a crawler, a new tab and a reader whose script has not loaded can\n * follow it. A click the browser would follow in this tab calls `onPageChange` in place of the\n * navigation; a click with a modifier key opens the address. The current page, a control with\n * nowhere to go and a held pager's controls stay buttons.\n */\n getPageHref?: (page: number) => string\n label?: string\n /**\n * Omit for the generic English defaults; localized hosts pass their own.\n */\n messages?: PaginationMessages\n /**\n * 1-based and controlled, because the current page belongs to the list.\n */\n page: number\n pageCount: number\n siblingCount?: 1 | 2\n}\n\ndefineOptions({ name: 'Pagination', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<PaginationProps>(), {\n disabled: false,\n label: 'Pagination',\n messages: () => ({\n previous: 'Previous page',\n next: 'Next page',\n page: (page) => `Page ${page}`,\n }),\n siblingCount: 1,\n})\nconst emit = defineEmits<{ pageChange: [page: number] }>()\nconst focused = ref(null as HTMLElement | null)\nconst focusedControl = ref(null as string | number | null)\nconst taken = ref(null as string | number | null)\nconst nextLink = useTemplateRef<HTMLElement>('nextLink')\nconst previousLink = useTemplateRef<HTMLElement>('previousLink')\nconst root = useTemplateRef<HTMLElement>('root')\nconst entries = computed(() => paginationWindow(props.page, props.pageCount, props.siblingCount))\nconst controls = computed(() => [\n 'previous',\n ...entries.value.filter((shown) => shown !== PAGINATION_ELLIPSIS),\n 'next',\n])\nconst focusIn = computed(() => (event: FocusEvent) => {\n const target = event.target as HTMLElement\n const pager = root.value as HTMLElement | null\n const names: readonly (string | number)[] = controls.value\n const at = pager === null ? -1 : [...pager.querySelectorAll('button, a[href]')].indexOf(target)\n focused.value = target\n focusedControl.value = at < 0 ? null : (names[at] ?? null)\n})\nconst focusOut = computed(() => (event: FocusEvent) => {\n const target = event.target as HTMLElement\n if (target.matches(':disabled')) return\n queueMicrotask(() => {\n if (focused.value === target && target.isConnected) focused.value = null\n })\n})\nconst keepPlace = computed(() => () => {\n const pager = root.value as HTMLElement | null\n if (pager === null) return\n const names: readonly (string | number)[] = controls.value\n const drawn = () => [...pager.querySelectorAll<HTMLElement>('button, a[href]')]\n const onPage = () => document.activeElement === null || document.activeElement === document.body\n const left = focused.value as HTMLElement | null\n if (left !== null && !left.isConnected) {\n focused.value = null\n const name = focusedControl.value\n const now = name === null ? undefined : drawn()[names.indexOf(name)]\n if (now !== undefined && onPage()) {\n if (now.matches(':disabled')) focused.value = now\n else now.focus()\n }\n }\n if (!props.disabled) {\n const control = taken.value\n taken.value = null\n if (control === null || document.activeElement !== pager) return\n const element = drawn()[names.indexOf(control)]\n if (element !== undefined && !element.matches(':disabled')) element.focus()\n return\n }\n const from = focused.value as HTMLElement | null\n if (from === null || !from.isConnected || !from.matches(':disabled')) return\n const active = document.activeElement\n if (active !== from && active !== null && active !== document.body) return\n taken.value = names[drawn().indexOf(from)] ?? null\n pager.focus()\n})\nconst linked = computed(() => !props.disabled && props.getPageHref !== undefined)\nconst navigatesHere = computed(\n () =>\n (event: MouseEvent): boolean =>\n !event.defaultPrevented &&\n event.button === 0 &&\n !event.metaKey &&\n !event.ctrlKey &&\n !event.shiftKey &&\n !event.altKey,\n)\nconst follow = computed(() => (event: MouseEvent, to: number): void => {\n if (!navigatesHere.value(event)) return\n event.preventDefault()\n emit('pageChange', to)\n})\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const run = () => {\n keepPlace.value()\n }\n const mutation = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(run)\n for (const element of [root.value])\n if (element)\n mutation?.observe(element, {\n childList: true,\n characterData: true,\n subtree: true,\n attributeFilter: ['disabled'],\n })\n release1 = () => {\n mutation?.disconnect()\n }\n run()\n}\nonMounted(effect1)\nwatch(() => entries.value.length > 0, effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nconst effect2 = () => {\n keepPlace.value()\n}\nwatch(() => props.disabled, effect2, { flush: 'post' })\nlet release3: (() => void) | undefined\nconst effect3 = () => {\n release3?.()\n const ran = nameTip(previousLink.value, props.messages.previous, styles.linkTip)\n release3 = () => {\n ran()\n }\n}\nonMounted(effect3)\nwatch(() => [linked.value, props.page, props.pageCount, props.messages.previous], effect3, {\n flush: 'post',\n})\nonBeforeUnmount(() => release3?.())\nlet release4: (() => void) | undefined\nconst effect4 = () => {\n release4?.()\n const ran = nameTip(nextLink.value, props.messages.next, styles.linkTip)\n release4 = () => {\n ran()\n }\n}\nonMounted(effect4)\nwatch(() => [linked.value, props.page, props.pageCount, props.messages.next], effect4, {\n flush: 'post',\n})\nonBeforeUnmount(() => release4?.())\nlet release5: (() => void) | undefined\nconst effect5 = () => {\n release5?.()\n const ran = agentMember({\n member: 'Pagination',\n element: () => root.value,\n state: () => ({ page: props.page, 'page-count': props.pageCount, disabled: props.disabled }),\n actions: {\n set: {\n argument: 'number',\n run: (value) =>\n (() => {\n if (!Number.isInteger(value) || value < 1 || value > props.pageCount) {\n throw new Error(\n `There is no page ${value}; the pages run from 1 to ${props.pageCount}.`,\n )\n }\n if (value !== props.page) emit('pageChange', value)\n })(),\n },\n },\n withholds: () => root.value,\n })\n release5 = () => {\n ran()\n }\n}\nonMounted(effect5)\nonBeforeUnmount(() => release5?.())\n</script>\n\n<template>\n <nav\n v-if=\"entries.length > 0\"\n ref=\"root\"\n :class=\"styles.pagination\"\n :aria-label=\"label\"\n :data-disabled=\"disabled ? '' : undefined\"\n tabindex=\"-1\"\n data-member=\"pagination\"\n @focusin=\"focusIn($event)\"\n @focusout=\"focusOut($event)\"\n >\n <Inline :gap=\"1\" align=\"center\" :wrap=\"true\">\n <!-- link -->\n <a\n v-if=\"linked && page > 1 && page - 1 <= pageCount\"\n ref=\"previousLink\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(page - 1)\"\n :aria-label=\"messages.previous\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n data-icon-only=\"\"\n @click=\"follow($event, page - 1)\"\n >\n <!-- glyph -->\n <span :class=\"styles.linkGlyph\">\n <Icon name=\"previous\" size=\"sm\" />\n </span>\n </a>\n <Button\n v-else\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"previous\"\n :label=\"messages.previous\"\n :disabled=\"disabled || page <= 1\"\n @click=\"emit('pageChange', page - 1)\"\n />\n <template\n v-for=\"(entry, at) in entries\"\n :key=\"entry === PAGINATION_ELLIPSIS ? `gap-${at}` : entry\"\n >\n <span v-if=\"entry === PAGINATION_ELLIPSIS\" :class=\"styles.ellipsis\" aria-hidden=\"true\">\n …\n </span>\n <!-- link -->\n <a\n v-else-if=\"linked && entry !== page\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(entry)\"\n :aria-label=\"messages.page(entry)\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n @click=\"follow($event, entry)\"\n >\n <!-- label -->\n <span :class=\"styles.linkLabel\">\n {{ String(entry) }}\n </span>\n </a>\n <Button\n v-else\n :variant=\"entry === page ? 'soft' : 'ghost'\"\n :tone=\"entry === page ? 'accent' : 'neutral'\"\n size=\"sm\"\n :current=\"entry === page\"\n :label=\"String(entry)\"\n :aria-label=\"messages.page(entry)\"\n :disabled=\"disabled\"\n @click=\"entry !== page && emit('pageChange', entry)\"\n />\n </template>\n <!-- link -->\n <a\n v-if=\"linked && page < pageCount && page + 1 >= 1\"\n ref=\"nextLink\"\n :class=\"styles.link\"\n :href=\"getPageHref?.(page + 1)\"\n :aria-label=\"messages.next\"\n data-variant=\"ghost\"\n data-size=\"sm\"\n data-tone=\"neutral\"\n data-icon-only=\"\"\n @click=\"follow($event, page + 1)\"\n >\n <!-- glyph -->\n <span :class=\"styles.linkGlyph\">\n <Icon name=\"next\" size=\"sm\" />\n </span>\n </a>\n <Button\n v-else\n variant=\"ghost\"\n tone=\"neutral\"\n size=\"sm\"\n :iconOnly=\"true\"\n icon=\"next\"\n :label=\"messages.next\"\n :disabled=\"disabled || page >= pageCount\"\n @click=\"emit('pageChange', page + 1)\"\n />\n </Inline>\n </nav>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDA,IAAM,IAAQ,GAUR,IAAO,GACP,IAAU,EAAI,IAA0B,GACxC,IAAiB,EAAI,IAA8B,GACnD,IAAQ,EAAI,IAA8B,GAC1C,IAAW,EAA4B,UAAU,GACjD,IAAe,EAA4B,cAAc,GACzD,IAAO,EAA4B,MAAM,GACzC,IAAU,QAAe,EAAiB,EAAM,MAAM,EAAM,WAAW,EAAM,YAAY,CAAC,GAC1F,IAAW,QAAe;GAC9B;GACA,GAAG,EAAQ,MAAM,QAAQ,MAAU,MAAU,CAAmB;GAChE;EACF,CAAC,GACK,IAAU,SAAgB,MAAsB;GACpD,IAAM,IAAS,EAAM,QACf,IAAQ,EAAK,OACb,IAAsC,EAAS,OAC/C,IAAK,MAAU,OAAO,KAAK,CAAC,GAAG,EAAM,iBAAiB,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAM;GAE9F,AADA,EAAQ,QAAQ,GAChB,EAAe,QAAQ,IAAK,IAAI,OAAQ,E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AA;KACvB,MAAM,MAAU,EAAA,OAAI,WAAA;KACrB,MAAK;KACJ,SAAS,MAAU,EAAA;KACnB,OAAO,OAAO,CAAK;KACnB,cAAY,EAAA,SAAS,KAAK,CAAK;KAC/B,UAAU,EAAA;KACV,UAAK,MAAE,MAAU,EAAA,QAAQ,EAAI,cAAe,CAAK;;;;;;;;;;IAK9C,EAAA,SAAU,EAAA,OAAO,EAAA,aAAa,EAAA,OAAI,KAAA,KAAA,EAAA,GAD1C,EAgBI,KAAA;;cAdE;KAAJ,KAAI;KACH,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,IAAI;KAClB,MAAM,EAAA,cAAc,EAAA,OAAI,CAAA;KACxB,cAAY,EAAA,SAAS;KACtB,gBAAa;KACb,aAAU;KACV,aAAU;KACV,kBAAe;KACd,SAAK,AAAA,EAAA,QAAA,MAAE,EAAA,MAAO,GAAQ,EAAA,OAAI,CAAA;QAG3B,EAEO,QAAA,EAFA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,SAAS,EAAA,GAAA,CAC5B,EAA8B,EAAA,CAAA,GAAA;KAAxB,MAAK;KAAO,MAAK;8BAG3B,EAUE,GAAA;;KARA,SAAQ;KACR,MAAK;KACL,MAAK;KACJ,UAAU;KACX,MAAK;KACJ,OAAO,EAAA,SAAS;KAChB,UAAU,EAAA,YAAY,EAAA,QAAQ,EAAA;KAC9B,SAAK,AAAA,EAAA,QAAA,MAAE,EAAI,cAAe,EAAA,OAAI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.js","names":[],"sources":["../../../src/structure/ScrollArea.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Token-styled scrollbar for a region that already scrolls (`design/components/scroll-area.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/scroll-area.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, useId } from 'vue'\n\nimport * as zag from '@zag-js/scroll-area'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/scroll-area.module.css'\n\nexport type ScrollAreaOrientation = NonNullable<ScrollAreaProps['orientation']>\n\nexport type ScrollAreaType = NonNullable<ScrollAreaProps['type']>\n\nexport interface ScrollAreaProps {\n /**\n * Names the region for keyboard users once it overflows, as in CodeBlock. Required rather than\n * defaulted. The content identifies the region, but a default name would be in one fixed\n * language, and the app's language is unknown here.\n */\n label: string\n /**\n * Which axes may pan; `'both'` draws two rails and the corner.\n */\n orientation?: 'horizontal' | 'vertical' | 'both'\n type?: 'hover' | 'always'\n}\n\ndefineOptions({ name: 'ScrollArea', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScrollAreaProps>(), {\n orientation: 'vertical',\n type: 'always',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst fades = computed(() => props.type === 'hover')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({ id: uid, dir: documentDirection.value })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst overflowing = computed(() => api.value.hasOverflowX || api.value.hasOverflowY)\n</script>\n\n<template>\n <div v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"scroll-area\">\n <div\n v-bind=\"api.getViewportProps()\"\n :class=\"styles.viewport\"\n :style=\"{\n overflowX: orientation === 'vertical' ? 'hidden' : 'scroll',\n overflowY: orientation === 'horizontal' ? 'hidden' : 'scroll',\n scrollbarWidth: 'none',\n }\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'region' : undefined\"\n :aria-label=\"overflowing ? label : undefined\"\n >\n <div v-bind=\"api.getContentProps()\">\n <slot />\n </div>\n </div>\n <template v-if=\"orientation === 'both' || orientation === 'vertical'\">\n <div\n v-if=\"api.hasOverflowY\"\n v-bind=\"api.getScrollbarProps({ orientation: 'vertical' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'vertical' }).hovering ||\n api.getScrollbarState({ orientation: 'vertical' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'vertical' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <template v-if=\"orientation === 'both' || orientation === 'horizontal'\">\n <div\n v-if=\"api.hasOverflowX\"\n v-bind=\"api.getScrollbarProps({ orientation: 'horizontal' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'horizontal' }).hovering ||\n api.getScrollbarState({ orientation: 'horizontal' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'horizontal' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <div\n v-if=\"orientation === 'both'\"\n v-bind=\"api.getCornerProps()\"\n :class=\"styles.corner\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ScrollArea.js","names":[],"sources":["../../../src/structure/ScrollArea.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Token-styled scrollbar for a region that already scrolls (`design/components/scroll-area.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/scroll-area.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, useId, useTemplateRef } from 'vue'\n\nimport * as zag from '@zag-js/scroll-area'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/scroll-area.module.css'\n\nexport type ScrollAreaOrientation = NonNullable<ScrollAreaProps['orientation']>\n\nexport type ScrollAreaType = NonNullable<ScrollAreaProps['type']>\n\nexport interface ScrollAreaProps {\n /**\n * Names the region for keyboard users once it overflows, as in CodeBlock. Required rather than\n * defaulted. The content identifies the region, but a default name would be in one fixed\n * language, and the app's language is unknown here.\n */\n label: string\n /**\n * Which axes may pan; `'both'` draws two rails and the corner.\n */\n orientation?: 'horizontal' | 'vertical' | 'both'\n type?: 'hover' | 'always'\n}\n\ndefineOptions({ name: 'ScrollArea', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScrollAreaProps>(), {\n orientation: 'vertical',\n type: 'always',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst root = useTemplateRef<HTMLElement>('root')\nconst fades = computed(() => props.type === 'hover')\nconst documentDirection = useDirection(() => root.value)\nconst service = useMachine(\n zag.machine,\n computed(() => ({ id: uid, dir: documentDirection.value })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst overflowing = computed(() => api.value.hasOverflowX || api.value.hasOverflowY)\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"scroll-area\">\n <div\n v-bind=\"api.getViewportProps()\"\n :class=\"styles.viewport\"\n :style=\"{\n overflowX: orientation === 'vertical' ? 'hidden' : 'scroll',\n overflowY: orientation === 'horizontal' ? 'hidden' : 'scroll',\n scrollbarWidth: 'none',\n }\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'region' : undefined\"\n :aria-label=\"overflowing ? label : undefined\"\n >\n <div v-bind=\"api.getContentProps()\">\n <slot />\n </div>\n </div>\n <template v-if=\"orientation === 'both' || orientation === 'vertical'\">\n <div\n v-if=\"api.hasOverflowY\"\n v-bind=\"api.getScrollbarProps({ orientation: 'vertical' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'vertical' }).hovering ||\n api.getScrollbarState({ orientation: 'vertical' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'vertical' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <template v-if=\"orientation === 'both' || orientation === 'horizontal'\">\n <div\n v-if=\"api.hasOverflowX\"\n v-bind=\"api.getScrollbarProps({ orientation: 'horizontal' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'horizontal' }).hovering ||\n api.getScrollbarState({ orientation: 'horizontal' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'horizontal' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <div\n v-if=\"orientation === 'both'\"\n v-bind=\"api.getCornerProps()\"\n :class=\"styles.corner\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import e from "./scroll-area.module.js";
|
|
2
2
|
import { useDirection as t } from "@polymorph/vue";
|
|
3
|
-
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, unref as p, useId as m } from "vue";
|
|
4
|
-
import { normalizeProps as
|
|
5
|
-
import * as
|
|
3
|
+
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, guardReactiveProps as c, mergeProps as l, normalizeProps as u, openBlock as d, renderSlot as f, unref as p, useId as m, useTemplateRef as h } from "vue";
|
|
4
|
+
import { normalizeProps as g, useMachine as _ } from "@zag-js/vue";
|
|
5
|
+
import * as v from "@zag-js/scroll-area";
|
|
6
6
|
//#region src/structure/ScrollArea.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var y = [
|
|
8
8
|
"tabindex",
|
|
9
9
|
"role",
|
|
10
10
|
"aria-label"
|
|
11
|
-
],
|
|
11
|
+
], b = ["data-state"], x = ["data-state"], S = /*@__PURE__*/ s({
|
|
12
12
|
name: "ScrollArea",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "ScrollArea",
|
|
@@ -18,44 +18,47 @@ var v = [
|
|
|
18
18
|
type: { default: "always" }
|
|
19
19
|
},
|
|
20
20
|
setup(s) {
|
|
21
|
-
let
|
|
22
|
-
id:
|
|
23
|
-
dir:
|
|
24
|
-
}))),
|
|
25
|
-
return (t, r) => (d(), a("div", l(
|
|
21
|
+
let S = s, C = m(), w = h("root"), T = r(() => S.type === "hover"), E = t(() => w.value), D = _(v.machine, r(() => ({
|
|
22
|
+
id: C,
|
|
23
|
+
dir: E.value
|
|
24
|
+
}))), O = r(() => v.connect(D, g)), k = r(() => O.value.hasOverflowX || O.value.hasOverflowY);
|
|
25
|
+
return (t, r) => (d(), a("div", l({
|
|
26
|
+
ref_key: "root",
|
|
27
|
+
ref: w
|
|
28
|
+
}, O.value.getRootProps(), {
|
|
26
29
|
class: p(e).root,
|
|
27
30
|
"data-member": "scroll-area"
|
|
28
31
|
}), [
|
|
29
|
-
o("div", l(
|
|
32
|
+
o("div", l(O.value.getViewportProps(), {
|
|
30
33
|
class: p(e).viewport,
|
|
31
34
|
style: {
|
|
32
35
|
overflowX: s.orientation === "vertical" ? "hidden" : "scroll",
|
|
33
36
|
overflowY: s.orientation === "horizontal" ? "hidden" : "scroll",
|
|
34
37
|
scrollbarWidth: "none"
|
|
35
38
|
},
|
|
36
|
-
tabindex:
|
|
37
|
-
role:
|
|
38
|
-
"aria-label":
|
|
39
|
-
}), [o("div", u(c(
|
|
40
|
-
s.orientation === "both" || s.orientation === "vertical" ? (d(), a(n, { key: 0 }, [
|
|
39
|
+
tabindex: k.value ? 0 : void 0,
|
|
40
|
+
role: k.value ? "region" : void 0,
|
|
41
|
+
"aria-label": k.value ? s.label : void 0
|
|
42
|
+
}), [o("div", u(c(O.value.getContentProps())), [f(t.$slots, "default")], 16)], 16, y),
|
|
43
|
+
s.orientation === "both" || s.orientation === "vertical" ? (d(), a(n, { key: 0 }, [O.value.hasOverflowY ? (d(), a("div", l({ key: 0 }, O.value.getScrollbarProps({ orientation: "vertical" }), {
|
|
41
44
|
class: [
|
|
42
45
|
p(e).rail,
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
T.value ? p(e).hover : void 0,
|
|
47
|
+
T.value ? void 0 : p(e).always
|
|
45
48
|
],
|
|
46
49
|
"aria-hidden": "true",
|
|
47
|
-
"data-state":
|
|
48
|
-
}), [o("div", l(
|
|
49
|
-
s.orientation === "both" || s.orientation === "horizontal" ? (d(), a(n, { key: 1 }, [
|
|
50
|
+
"data-state": T.value ? O.value.getScrollbarState({ orientation: "vertical" }).hovering || O.value.getScrollbarState({ orientation: "vertical" }).scrolling ? "visible" : "hidden" : void 0
|
|
51
|
+
}), [o("div", l(O.value.getThumbProps({ orientation: "vertical" }), { class: p(e).thumb }), null, 16)], 16, b)) : i("", !0)], 64)) : i("", !0),
|
|
52
|
+
s.orientation === "both" || s.orientation === "horizontal" ? (d(), a(n, { key: 1 }, [O.value.hasOverflowX ? (d(), a("div", l({ key: 0 }, O.value.getScrollbarProps({ orientation: "horizontal" }), {
|
|
50
53
|
class: [
|
|
51
54
|
p(e).rail,
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
T.value ? p(e).hover : void 0,
|
|
56
|
+
T.value ? void 0 : p(e).always
|
|
54
57
|
],
|
|
55
58
|
"aria-hidden": "true",
|
|
56
|
-
"data-state":
|
|
57
|
-
}), [o("div", l(
|
|
58
|
-
s.orientation === "both" ? (d(), a("div", l({ key: 2 },
|
|
59
|
+
"data-state": T.value ? O.value.getScrollbarState({ orientation: "horizontal" }).hovering || O.value.getScrollbarState({ orientation: "horizontal" }).scrolling ? "visible" : "hidden" : void 0
|
|
60
|
+
}), [o("div", l(O.value.getThumbProps({ orientation: "horizontal" }), { class: p(e).thumb }), null, 16)], 16, x)) : i("", !0)], 64)) : i("", !0),
|
|
61
|
+
s.orientation === "both" ? (d(), a("div", l({ key: 2 }, O.value.getCornerProps(), {
|
|
59
62
|
class: p(e).corner,
|
|
60
63
|
"aria-hidden": "true"
|
|
61
64
|
}), null, 16)) : i("", !0)
|
|
@@ -63,6 +66,6 @@ var v = [
|
|
|
63
66
|
}
|
|
64
67
|
});
|
|
65
68
|
//#endregion
|
|
66
|
-
export {
|
|
69
|
+
export { S as default };
|
|
67
70
|
|
|
68
71
|
//# sourceMappingURL=ScrollArea.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollArea.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/ScrollArea.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Token-styled scrollbar for a region that already scrolls (`design/components/scroll-area.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/scroll-area.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, useId } from 'vue'\n\nimport * as zag from '@zag-js/scroll-area'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/scroll-area.module.css'\n\nexport type ScrollAreaOrientation = NonNullable<ScrollAreaProps['orientation']>\n\nexport type ScrollAreaType = NonNullable<ScrollAreaProps['type']>\n\nexport interface ScrollAreaProps {\n /**\n * Names the region for keyboard users once it overflows, as in CodeBlock. Required rather than\n * defaulted. The content identifies the region, but a default name would be in one fixed\n * language, and the app's language is unknown here.\n */\n label: string\n /**\n * Which axes may pan; `'both'` draws two rails and the corner.\n */\n orientation?: 'horizontal' | 'vertical' | 'both'\n type?: 'hover' | 'always'\n}\n\ndefineOptions({ name: 'ScrollArea', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScrollAreaProps>(), {\n orientation: 'vertical',\n type: 'always',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst fades = computed(() => props.type === 'hover')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({ id: uid, dir: documentDirection.value })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst overflowing = computed(() => api.value.hasOverflowX || api.value.hasOverflowY)\n</script>\n\n<template>\n <div v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"scroll-area\">\n <div\n v-bind=\"api.getViewportProps()\"\n :class=\"styles.viewport\"\n :style=\"{\n overflowX: orientation === 'vertical' ? 'hidden' : 'scroll',\n overflowY: orientation === 'horizontal' ? 'hidden' : 'scroll',\n scrollbarWidth: 'none',\n }\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'region' : undefined\"\n :aria-label=\"overflowing ? label : undefined\"\n >\n <div v-bind=\"api.getContentProps()\">\n <slot />\n </div>\n </div>\n <template v-if=\"orientation === 'both' || orientation === 'vertical'\">\n <div\n v-if=\"api.hasOverflowY\"\n v-bind=\"api.getScrollbarProps({ orientation: 'vertical' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'vertical' }).hovering ||\n api.getScrollbarState({ orientation: 'vertical' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'vertical' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <template v-if=\"orientation === 'both' || orientation === 'horizontal'\">\n <div\n v-if=\"api.hasOverflowX\"\n v-bind=\"api.getScrollbarProps({ orientation: 'horizontal' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'horizontal' }).hovering ||\n api.getScrollbarState({ orientation: 'horizontal' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'horizontal' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <div\n v-if=\"orientation === 'both'\"\n v-bind=\"api.getCornerProps()\"\n :class=\"styles.corner\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAoCA,IAAM,IAAQ,GAKR,IAAM,EAAM,GACZ,IAAQ,QAAe,EAAM,SAAS,OAAO,GAC7C,IAAoB,
|
|
1
|
+
{"version":3,"file":"ScrollArea.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/structure/ScrollArea.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Token-styled scrollbar for a region that already scrolls (`design/components/scroll-area.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/scroll-area.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, useId, useTemplateRef } from 'vue'\n\nimport * as zag from '@zag-js/scroll-area'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport { useDirection } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/scroll-area.module.css'\n\nexport type ScrollAreaOrientation = NonNullable<ScrollAreaProps['orientation']>\n\nexport type ScrollAreaType = NonNullable<ScrollAreaProps['type']>\n\nexport interface ScrollAreaProps {\n /**\n * Names the region for keyboard users once it overflows, as in CodeBlock. Required rather than\n * defaulted. The content identifies the region, but a default name would be in one fixed\n * language, and the app's language is unknown here.\n */\n label: string\n /**\n * Which axes may pan; `'both'` draws two rails and the corner.\n */\n orientation?: 'horizontal' | 'vertical' | 'both'\n type?: 'hover' | 'always'\n}\n\ndefineOptions({ name: 'ScrollArea', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScrollAreaProps>(), {\n orientation: 'vertical',\n type: 'always',\n})\ndefineSlots<{ default: (props: Record<string, never>) => unknown }>()\nconst uid = useId()\nconst root = useTemplateRef<HTMLElement>('root')\nconst fades = computed(() => props.type === 'hover')\nconst documentDirection = useDirection(() => root.value)\nconst service = useMachine(\n zag.machine,\n computed(() => ({ id: uid, dir: documentDirection.value })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst overflowing = computed(() => api.value.hasOverflowX || api.value.hasOverflowY)\n</script>\n\n<template>\n <div ref=\"root\" v-bind=\"api.getRootProps()\" :class=\"styles.root\" data-member=\"scroll-area\">\n <div\n v-bind=\"api.getViewportProps()\"\n :class=\"styles.viewport\"\n :style=\"{\n overflowX: orientation === 'vertical' ? 'hidden' : 'scroll',\n overflowY: orientation === 'horizontal' ? 'hidden' : 'scroll',\n scrollbarWidth: 'none',\n }\"\n :tabindex=\"overflowing ? 0 : undefined\"\n :role=\"overflowing ? 'region' : undefined\"\n :aria-label=\"overflowing ? label : undefined\"\n >\n <div v-bind=\"api.getContentProps()\">\n <slot />\n </div>\n </div>\n <template v-if=\"orientation === 'both' || orientation === 'vertical'\">\n <div\n v-if=\"api.hasOverflowY\"\n v-bind=\"api.getScrollbarProps({ orientation: 'vertical' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'vertical' }).hovering ||\n api.getScrollbarState({ orientation: 'vertical' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'vertical' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <template v-if=\"orientation === 'both' || orientation === 'horizontal'\">\n <div\n v-if=\"api.hasOverflowX\"\n v-bind=\"api.getScrollbarProps({ orientation: 'horizontal' })\"\n :class=\"[styles.rail, fades ? styles.hover : undefined, !fades ? styles.always : undefined]\"\n aria-hidden=\"true\"\n :data-state=\"\n fades\n ? api.getScrollbarState({ orientation: 'horizontal' }).hovering ||\n api.getScrollbarState({ orientation: 'horizontal' }).scrolling\n ? 'visible'\n : 'hidden'\n : undefined\n \"\n >\n <div v-bind=\"api.getThumbProps({ orientation: 'horizontal' })\" :class=\"styles.thumb\" />\n </div>\n </template>\n <div\n v-if=\"orientation === 'both'\"\n v-bind=\"api.getCornerProps()\"\n :class=\"styles.corner\"\n aria-hidden=\"true\"\n />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAoCA,IAAM,IAAQ,GAKR,IAAM,EAAM,GACZ,IAAO,EAA4B,MAAM,GACzC,IAAQ,QAAe,EAAM,SAAS,OAAO,GAC7C,IAAoB,QAAmB,EAAK,KAAK,GACjD,IAAU,EACd,EAAI,SACJ,SAAgB;GAAE,IAAI;GAAK,KAAK,EAAkB;EAAM,EAAE,CAC5D,GACM,IAAM,QAAe,EAAI,QAAQ,GAAS,CAAc,CAAC,GACzD,IAAc,QAAe,EAAI,MAAM,gBAAgB,EAAI,MAAM,YAAY;yBAIjF,EA2DM,OA3DN,EA2DM;YA3DG;GAAJ,KAAI;KAAe,EAAA,MAAI,aAAY,GAAA;GAAK,OAAO,EAAA,CAAA,CAAM,CAAC;GAAM,eAAY;;GAC3E,EAeM,OAfN,EACU,EAcJ,MAdQ,iBAAgB,GAAA;IAC3B,OAAO,EAAA,CAAA,CAAM,CAAC;IACd,OAAK;gBAAuB,EAAA,gBAAW,aAAA,WAAA;gBAA0D,EAAA,gBAAW,eAAA,WAAA;;;IAK5G,UAAU,EAAA,QAAW,IAAO,KAAA;IAC5B,MAAM,EAAA,QAAW,WAAc,KAAA;IAC/B,cAAY,EAAA,QAAc,EAAA,QAAQ,KAAA;QAEnC,EAEM,OAAA,EAAA,EAFO,EAAA,MAAI,gBAAe,CAAA,CAAA,GAAA,CAC9B,EAAQ,EAAA,QAAA,SAAA,CAAA,GAAA,EAAA,CAAA,GAAA,IAAA,CAAA;GAGI,EAAA,gBAAW,UAAe,EAAA,gBAAW,cAAA,EAAA,GAArD,EAiBW,GAAA,EAAA,KAAA,EAAA,GAAA,CAfD,EAAA,MAAI,gBAAA,EAAA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