@nxgt/material-vue 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/camera-BXYeDCKt.js +108 -0
- package/dist/chart-canvas-Cl7rQEpv.js +40 -0
- package/dist/components/ui/code/code-moonlight.css +73 -0
- package/dist/components-DbRdoZ6P.js +116647 -0
- package/dist/components.js +4 -0
- package/dist/composables.js +70 -0
- package/dist/date.utils-C08DvLLr.js +2669 -0
- package/dist/dnd-MJFkrG2f.js +806 -0
- package/dist/dnd.js +2 -0
- package/dist/es-BuwtGDrj.js +372 -0
- package/dist/i18n-DXZMN9FA.js +4863 -0
- package/dist/i18n.js +2 -0
- package/dist/icon-button-Do3YaRdv.js +827 -0
- package/dist/image-cropper-canvas-D-k9BvLV.js +3546 -0
- package/dist/lib/lib/components/index.d.ts +148 -0
- package/dist/lib/lib/components/ui/accordion/Accordion.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/accordion/AccordionContent.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/accordion/AccordionItem.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/accordion/AccordionTrigger.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/accordion/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/accordion-card/accordion-card.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/accordion-card/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/action-card/action-card.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/action-card/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/activity/activity.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/activity/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialog.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/lib/lib/components/ui/app-bar/bottom-app-bar.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/app-bar/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/app-bar/top-app-bar.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/app-shell/activity-content.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/app-shell/activity-layout.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/app-shell/app-breadcrumb.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/app-shell/app-header.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/app-shell/app-shell.utils.d.ts +24 -0
- package/dist/lib/lib/components/ui/app-shell/app-sidebar.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/app-shell/index.d.ts +12 -0
- package/dist/lib/lib/components/ui/app-shell/types.d.ts +24 -0
- package/dist/lib/lib/components/ui/attributes/attribute-dialog.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/attributes/attribute-form.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/attributes/attribute-values-form.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/attributes/attributes-field.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/attributes/attributes-list.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/attributes/attributes.store.d.ts +15 -0
- package/dist/lib/lib/components/ui/attributes/consts.d.ts +2 -0
- package/dist/lib/lib/components/ui/attributes/form-schema.d.ts +66 -0
- package/dist/lib/lib/components/ui/attributes/index.d.ts +20 -0
- package/dist/lib/lib/components/ui/attributes/models.d.ts +27 -0
- package/dist/lib/lib/components/ui/attributes/partials/attribute-form-fields.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/attributes/partials/attribute-options-field.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/attributes/partials/attribute-value-form-field.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/attributes/utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/autocomplete/autocomplete-keyboard.d.ts +12 -0
- package/dist/lib/lib/components/ui/autocomplete/autocomplete.vue.d.ts +33 -0
- package/dist/lib/lib/components/ui/autocomplete/filter-options.d.ts +7 -0
- package/dist/lib/lib/components/ui/autocomplete/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/autocomplete/partials/autocomplete-box.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/autocomplete/partials/autocomplete-list.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/avatar/Avatar.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/avatar/AvatarFallback.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/avatar/AvatarImage.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/avatar/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/avatar-group/avatar-group.utils.d.ts +5 -0
- package/dist/lib/lib/components/ui/avatar-group/avatar-group.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/avatar-group/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/background/background.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/background/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/badge/Badge.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/badge/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/banner/banner.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/banner/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/barecode/barecode-options.d.ts +47 -0
- package/dist/lib/lib/components/ui/barecode/barecode.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/barecode/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/barecode/render-barcode.d.ts +2 -0
- package/dist/lib/lib/components/ui/breadcrumb/Breadcrumb.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/button/Button.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/button/button.compound-variants.d.ts +113 -0
- package/dist/lib/lib/components/ui/button/button.variants.d.ts +7 -0
- package/dist/lib/lib/components/ui/button/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/button-group/button-group.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/button-group/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/calendar/Calendar.vue.d.ts +42 -0
- package/dist/lib/lib/components/ui/calendar/CalendarCell.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarCellTrigger.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/calendar/CalendarGrid.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarGridBody.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/calendar/CalendarGridHead.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarGridRow.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarHeadCell.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarHeader.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarHeading.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/calendar/CalendarNextButton.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/CalendarPrevButton.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/calendar/index.d.ts +13 -0
- package/dist/lib/lib/components/ui/camera/camera-content.vue.d.ts +4 -0
- package/dist/lib/lib/components/ui/camera/camera-context.d.ts +12 -0
- package/dist/lib/lib/components/ui/camera/camera-provider.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/camera/camera.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/camera/camera.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/camera/camera.vue.d.ts +4 -0
- package/dist/lib/lib/components/ui/camera/capture-photo.d.ts +7 -0
- package/dist/lib/lib/components/ui/camera/consts.d.ts +2 -0
- package/dist/lib/lib/components/ui/camera/index.d.ts +15 -0
- package/dist/lib/lib/components/ui/camera/types.d.ts +42 -0
- package/dist/lib/lib/components/ui/camera/use-camera.d.ts +1 -0
- package/dist/lib/lib/components/ui/card/Card.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardAction.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardContent.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardDescription.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardFooter.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/CardTitle.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/card/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/carousel/carousel-content.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/carousel/carousel-item.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/carousel/carousel-next.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/carousel/carousel-previous.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/carousel/carousel.vue.d.ts +40 -0
- package/dist/lib/lib/components/ui/carousel/index.d.ts +12 -0
- package/dist/lib/lib/components/ui/carousel/use-carousel.d.ts +23 -0
- package/dist/lib/lib/components/ui/charts/area-chart.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/charts/bar-chart.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/charts/build-cartesian-option.d.ts +30 -0
- package/dist/lib/lib/components/ui/charts/build-heatmap-option.d.ts +10 -0
- package/dist/lib/lib/components/ui/charts/build-polar-option.d.ts +28 -0
- package/dist/lib/lib/components/ui/charts/chart-canvas.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/charts/chart-container.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/charts/chart-frame.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/charts/chart-option.utils.d.ts +53 -0
- package/dist/lib/lib/components/ui/charts/chart-view.d.ts +12 -0
- package/dist/lib/lib/components/ui/charts/funnel-chart.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/charts/heatmap-chart.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/charts/index.d.ts +18 -0
- package/dist/lib/lib/components/ui/charts/line-chart.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/charts/pie-chart.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/charts/radar-chart.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/charts/register-echarts.d.ts +1 -0
- package/dist/lib/lib/components/ui/charts/resolve-chart-theme.d.ts +6 -0
- package/dist/lib/lib/components/ui/charts/scatter-chart.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/charts/stories-dark-theme.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/charts/types.d.ts +47 -0
- package/dist/lib/lib/components/ui/charts/use-chart-frame.d.ts +11 -0
- package/dist/lib/lib/components/ui/charts/use-chart-theme.d.ts +20 -0
- package/dist/lib/lib/components/ui/chat/chat-composer.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/chat/chat-composer.vue.d.ts +41 -0
- package/dist/lib/lib/components/ui/chat/chat-conversation-item.vue.d.ts +38 -0
- package/dist/lib/lib/components/ui/chat/chat-copy-text.d.ts +2 -0
- package/dist/lib/lib/components/ui/chat/chat-markdown-inline.d.ts +3 -0
- package/dist/lib/lib/components/ui/chat/chat-markdown.utils.d.ts +2 -0
- package/dist/lib/lib/components/ui/chat/chat-markdown.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/chat/chat-message-list.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/chat/chat-message-list.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/chat/chat-message-separator.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/chat/chat-message.variants.d.ts +6 -0
- package/dist/lib/lib/components/ui/chat/chat-message.vue.d.ts +44 -0
- package/dist/lib/lib/components/ui/chat/chat-reaction-group.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/chat/chat-thread.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/chat/chat-typing-indicator.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/chat/chat-unseen.d.ts +1 -0
- package/dist/lib/lib/components/ui/chat/index.d.ts +28 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-avatar.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-composer-attachment-chip.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-composer-attachment-list.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-composer-attachments.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-markdown-block.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-markdown-inline.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-message-empty.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/chat/partials/chat-message-meta.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/chat/stories-dark-theme.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/chat/types.d.ts +51 -0
- package/dist/lib/lib/components/ui/chat/use-chat-composer-attachments.d.ts +27 -0
- package/dist/lib/lib/components/ui/chat/use-chat-message-list.d.ts +11 -0
- package/dist/lib/lib/components/ui/check-card-field/check-card-field.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/check-card-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/checkbox/Checkbox.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/checkbox/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/checkbox-group/checkbox-group.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/checkbox-group/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/chip/chip.vue.d.ts +53 -0
- package/dist/lib/lib/components/ui/chip/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/code/code-block.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/code/code-diff.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/code/code-editor-chrome.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/code/code-editor.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/code/highlight.d.ts +2 -0
- package/dist/lib/lib/components/ui/code/index.d.ts +15 -0
- package/dist/lib/lib/components/ui/code/json-node.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/code/json-viewer.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/code/languages.d.ts +7 -0
- package/dist/lib/lib/components/ui/code/monaco-diff-editor.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/code/monaco-editor.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/code/moonlight-monaco.d.ts +3 -0
- package/dist/lib/lib/components/ui/code/moonlight-style.d.ts +15 -0
- package/dist/lib/lib/components/ui/code/moonlight-tokens.d.ts +33 -0
- package/dist/lib/lib/components/ui/code/parse-json.d.ts +11 -0
- package/dist/lib/lib/components/ui/collapsible/Collapsible.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/collapsible/CollapsibleContent.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/collapsible/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/color-field/color-field.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/color-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/color-field/normalize-hex.d.ts +2 -0
- package/dist/lib/lib/components/ui/combobox-field/combobox-field.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/combobox-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/command/Command.vue.d.ts +37 -0
- package/dist/lib/lib/components/ui/command/CommandDialog.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/command/CommandEmpty.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/command/CommandGroup.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/command/CommandInput.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/command/CommandItem.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/command/CommandList.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/command/CommandSeparator.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/command/CommandShortcut.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/command/index.d.ts +90 -0
- package/dist/lib/lib/components/ui/contacts/consts.d.ts +8 -0
- package/dist/lib/lib/components/ui/contacts/contact-dialog.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/contacts/contact-item.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/contacts/contacts.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/contacts/index.d.ts +10 -0
- package/dist/lib/lib/components/ui/contacts/models.d.ts +25 -0
- package/dist/lib/lib/components/ui/contacts/partials/contact-dialog-fields.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/contacts/utils.d.ts +11 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenu.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuContent.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuGroup.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuItem.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuLabel.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuPortal.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuSub.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/context-menu/index.d.ts +14 -0
- package/dist/lib/lib/components/ui/copy-button/copy-button.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/copy-button/copy-to-clipboard.d.ts +1 -0
- package/dist/lib/lib/components/ui/copy-button/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/count-badge/count-badge.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/count-badge/format-count.d.ts +1 -0
- package/dist/lib/lib/components/ui/count-badge/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/country-field/country-field.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/country-field/country-options.d.ts +5 -0
- package/dist/lib/lib/components/ui/country-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/currency-field/currency-field.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/currency-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/currency-field/parse-currency.d.ts +1 -0
- package/dist/lib/lib/components/ui/data-table/data-table-column-header.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/data-table/data-table-pagination.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/data-table/data-table-view-options.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/data-table/data-table.vue.d.ts +66 -0
- package/dist/lib/lib/components/ui/data-table/features.d.ts +13 -0
- package/dist/lib/lib/components/ui/data-table/hooks.d.ts +2 -0
- package/dist/lib/lib/components/ui/data-table/index.d.ts +16 -0
- package/dist/lib/lib/components/ui/data-table/partials/data-table-body.vue.d.ts +39 -0
- package/dist/lib/lib/components/ui/data-table/partials/data-table-delete-confirm.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/data-table/partials/data-table-empty.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/data-table/use-column-helpers.d.ts +41 -0
- package/dist/lib/lib/components/ui/data-table/use-delete-rows-handler.d.ts +23 -0
- package/dist/lib/lib/components/ui/date-field/date-field.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/date-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/date-field/partials/date-field-content.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/date-field/partials/date-field-trigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/date-field/to-calendar-date.d.ts +3 -0
- package/dist/lib/lib/components/ui/date-range-field/date-range-field.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/date-range-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/date-range-field/partials/date-range-calendar.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/date-range-field/partials/date-range-field-trigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/description/description.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/description/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/dialog/Dialog.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/dialog/DialogContent.vue.d.ts +35 -0
- package/dist/lib/lib/components/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/dialog/DialogFooter.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/dialog/index.d.ts +10 -0
- package/dist/lib/lib/components/ui/dnd/array-move.d.ts +1 -0
- package/dist/lib/lib/components/ui/dnd/collision.d.ts +5 -0
- package/dist/lib/lib/components/ui/dnd/compose-refs.d.ts +5 -0
- package/dist/lib/lib/components/ui/dnd/create-dnd-context.d.ts +9 -0
- package/dist/lib/lib/components/ui/dnd/css.d.ts +9 -0
- package/dist/lib/lib/components/ui/dnd/dnd-context.d.ts +34 -0
- package/dist/lib/lib/components/ui/dnd/dnd-item-context.d.ts +25 -0
- package/dist/lib/lib/components/ui/dnd/dnd-overlay.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/dnd/dnd-provider.vue.d.ts +38 -0
- package/dist/lib/lib/components/ui/dnd/dnd-runtime.d.ts +9 -0
- package/dist/lib/lib/components/ui/dnd/drag-handle.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/dnd/draggable-droppable.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/dnd/draggable.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/dnd/droppable.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/dnd/index.d.ts +26 -0
- package/dist/lib/lib/components/ui/dnd/insert-ids.d.ts +1 -0
- package/dist/lib/lib/components/ui/dnd/sortable-context.d.ts +8 -0
- package/dist/lib/lib/components/ui/dnd/sortable-provider.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/dnd/sortable.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/dnd/sorting-strategy.d.ts +3 -0
- package/dist/lib/lib/components/ui/dnd/types.d.ts +71 -0
- package/dist/lib/lib/components/ui/dnd/use-dnd-active-id.d.ts +1 -0
- package/dist/lib/lib/components/ui/dnd/use-draggable.d.ts +33 -0
- package/dist/lib/lib/components/ui/dnd/use-droppable.d.ts +13 -0
- package/dist/lib/lib/components/ui/dnd/use-sortable.d.ts +28 -0
- package/dist/lib/lib/components/ui/drawer/Drawer.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/drawer/DrawerClose.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/drawer/DrawerContent.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/drawer/DrawerDescription.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/drawer/DrawerFooter.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/drawer/DrawerHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/drawer/DrawerOverlay.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/drawer/DrawerTitle.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/drawer/DrawerTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/drawer/index.d.ts +9 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/lib/lib/components/ui/duration-field/duration-field.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/duration-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/duration-field/parse-duration.d.ts +5 -0
- package/dist/lib/lib/components/ui/education/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/education/questions/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/education/questions/question-boolean.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/questions/question-card.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/education/questions/question-choice.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/questions/question-multi.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/questions/question-options.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/education/questions/question-text.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/questions/question.utils.d.ts +6 -0
- package/dist/lib/lib/components/ui/education/questions/types.d.ts +25 -0
- package/dist/lib/lib/components/ui/education/quizzes/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/quizzes/partials/quiz-body.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/education/quizzes/partials/quiz-empty.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/education/quizzes/partials/quiz-nav.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/education/quizzes/partials/quiz-progress.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/education/quizzes/partials/quiz-results.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/education/quizzes/quiz-context.d.ts +6 -0
- package/dist/lib/lib/components/ui/education/quizzes/quiz.store.d.ts +8 -0
- package/dist/lib/lib/components/ui/education/quizzes/quiz.utils.d.ts +12 -0
- package/dist/lib/lib/components/ui/education/quizzes/quiz.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/education/quizzes/types.d.ts +19 -0
- package/dist/lib/lib/components/ui/education/quizzes/use-quiz.d.ts +42 -0
- package/dist/lib/lib/components/ui/email-field/email-field.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/email-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/email-field/is-email.d.ts +1 -0
- package/dist/lib/lib/components/ui/entity-header/entity-header.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/entity-header/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar-context.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar-events.utils.d.ts +14 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.container.d.ts +9 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.ids.d.ts +11 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.keyboard.d.ts +22 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.preview.d.ts +4 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.spans.d.ts +13 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.utils.d.ts +22 -0
- package/dist/lib/lib/components/ui/event-calendar/event-calendar.vue.d.ts +36 -0
- package/dist/lib/lib/components/ui/event-calendar/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/agenda-view.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/all-day-lane.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-board-pane.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-board.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-date-picker.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-event-chip.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-now-line.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/calendar-toolbar.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/day-view.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/event-color-swatches.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/event-preview.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/event-resize-handle.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/month-day-cell.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/month-day-dialog.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/month-more.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/month-view.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/month-week-row.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/span-event.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/time-column.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/time-grid-event.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/time-grid.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/partials/week-view.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/event-calendar/types.d.ts +56 -0
- package/dist/lib/lib/components/ui/event-calendar/use-event-calendar.d.ts +47 -0
- package/dist/lib/lib/components/ui/event-calendar/use-month-create.d.ts +18 -0
- package/dist/lib/lib/components/ui/event-calendar/use-slot-create.d.ts +20 -0
- package/dist/lib/lib/components/ui/event-chip/event-chip.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/event-chip/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/extended-label/extended-label.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/extended-label/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/feedback/circular-progress.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/feedback/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/feedback/spinner.compound-variants.d.ts +125 -0
- package/dist/lib/lib/components/ui/feedback/spinner.variants.d.ts +6 -0
- package/dist/lib/lib/components/ui/feedback/spinner.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/field/field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/field/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/field/resolve-field.d.ts +7 -0
- package/dist/lib/lib/components/ui/field/types.d.ts +68 -0
- package/dist/lib/lib/components/ui/file-list/file-list-field.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/file-list/file-list-s3-field.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/file-list/file-list.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/file-list/format-file-size.d.ts +1 -0
- package/dist/lib/lib/components/ui/file-list/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/file-list/partials/file-list-dropzone.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/file-list/partials/file-list-field-row.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/file-list/partials/file-list-row.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/file-list/types.d.ts +46 -0
- package/dist/lib/lib/components/ui/filter/consts.d.ts +27 -0
- package/dist/lib/lib/components/ui/filter/filter-context.d.ts +5 -0
- package/dist/lib/lib/components/ui/filter/filter-field-map.utils.d.ts +34 -0
- package/dist/lib/lib/components/ui/filter/filter-persistence-main.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/filter/filter-persistence-presets.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/filter/filter-persistence-storage.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/filter/filter-persistence-url.utils.d.ts +5 -0
- package/dist/lib/lib/components/ui/filter/filter-persistence.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/filter/filter-preset.utils.d.ts +5 -0
- package/dist/lib/lib/components/ui/filter/filter-schema.utils.d.ts +10 -0
- package/dist/lib/lib/components/ui/filter/filter-validation.utils.d.ts +24 -0
- package/dist/lib/lib/components/ui/filter/filter-value.utils.d.ts +8 -0
- package/dist/lib/lib/components/ui/filter/filter.store-actions.d.ts +42 -0
- package/dist/lib/lib/components/ui/filter/filter.store.d.ts +15 -0
- package/dist/lib/lib/components/ui/filter/filter.stories-grouped.d.ts +2 -0
- package/dist/lib/lib/components/ui/filter/filter.stories-schema.d.ts +3 -0
- package/dist/lib/lib/components/ui/filter/filter.utils.d.ts +3 -0
- package/dist/lib/lib/components/ui/filter/filter.vue.d.ts +41 -0
- package/dist/lib/lib/components/ui/filter/index.d.ts +25 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-actions.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-chips.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-content.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-dialog.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-drawer.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field-basic.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field-choice.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field-control.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field-number-range.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field-slider-range.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-field.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-group.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-groups.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-inline.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-popover.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-presets-save-dialog.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-presets.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-provider.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-sheet.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/filter/partials/filter-trigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/filter/types.d.ts +216 -0
- package/dist/lib/lib/components/ui/filter/use-filter-actions.d.ts +47 -0
- package/dist/lib/lib/components/ui/filter/use-filter-effects.d.ts +8 -0
- package/dist/lib/lib/components/ui/filter/use-filter-modal.d.ts +6 -0
- package/dist/lib/lib/components/ui/filter/use-filter.d.ts +3 -0
- package/dist/lib/lib/components/ui/forms/attribute-values-form-field-set.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/forms/attributes-form-field.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/forms/autocomplete-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/check-card-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/checkbox-group-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/color-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/combobox-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/contacts-form-field.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/forms/country-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/currency-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/date-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/date-range-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/duration-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/email-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/file-list-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/file-list-s3-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/filter-form-field.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/forms/image-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/image-s3-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/index.d.ts +46 -0
- package/dist/lib/lib/components/ui/forms/input-group-form-field.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/forms/network-upload-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/number-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/opening-hours-form-field.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/forms/otp-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/password-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/percent-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/phone-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/postal-address-form-field.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/forms/radio-group-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/rating-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/rich-text-editor-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/s3-upload-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/search-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/select-card-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/select-chip-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/select-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/slider-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/sortable-list-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/switch-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/text-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/textarea-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/time-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/timezone-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/transfer-list-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/upload-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/forms/url-form-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/galleries/gallery-context.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/gallery-download.d.ts +12 -0
- package/dist/lib/lib/components/ui/galleries/gallery-keyboard.d.ts +14 -0
- package/dist/lib/lib/components/ui/galleries/gallery.presets.d.ts +4 -0
- package/dist/lib/lib/components/ui/galleries/gallery.store.d.ts +11 -0
- package/dist/lib/lib/components/ui/galleries/gallery.utils.d.ts +14 -0
- package/dist/lib/lib/components/ui/galleries/gallery.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/galleries/index.d.ts +10 -0
- package/dist/lib/lib/components/ui/galleries/lightbox-gallery.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/galleries/mini-gallery.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-carousel.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-chrome.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-empty.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-featured.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-grid.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-justified.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-lightbox.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-masonry.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-media.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-selection-bar.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-stage.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-strip.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-tile.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/galleries/partials/gallery-trigger.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/galleries/types.d.ts +56 -0
- package/dist/lib/lib/components/ui/galleries/use-gallery.d.ts +56 -0
- package/dist/lib/lib/components/ui/helper-text/helper-text.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/helper-text/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/hover-card/HoverCard.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/hover-card/HoverCardContent.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/hover-card/HoverCardTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/hover-card/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/hydrate-loading/hydrate-loading.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/hydrate-loading/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/icon/icon.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/icon/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/icon-button/icon-button.compound-variants.d.ts +85 -0
- package/dist/lib/lib/components/ui/icon-button/icon-button.variants.d.ts +6 -0
- package/dist/lib/lib/components/ui/icon-button/icon-button.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/icon-button/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/image-cropper/crop-image.d.ts +18 -0
- package/dist/lib/lib/components/ui/image-cropper/image-cropper-dialog.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/image-cropper/image-cropper.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/image-cropper/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/image-cropper/partials/image-cropper-actions.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/image-cropper/partials/image-cropper-aspect.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/image-cropper/partials/image-cropper-canvas.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/image-cropper/types.d.ts +33 -0
- package/dist/lib/lib/components/ui/image-field/image-field.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/image-field/image-s3-field.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/image-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/image-field/partials/image-field-actions.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/image-field/partials/image-field-preview.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/image-field/types.d.ts +40 -0
- package/dist/lib/lib/components/ui/inline-edit/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/inline-edit/inline-edit.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/input/Input.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/input/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/input-group/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/input-group/input-group-addon.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/input-group/input-group-button.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/input-group/input-group-input.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/input-group/input-group-text.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/input-group/input-group-textarea.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/input-group/input-group.variants.d.ts +5 -0
- package/dist/lib/lib/components/ui/input-group/input-group.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/input-group-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/input-group-field/input-group-field.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/input-otp/InputOTP.vue.d.ts +42 -0
- package/dist/lib/lib/components/ui/input-otp/InputOTPGroup.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/input-otp/InputOTPSeparator.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/input-otp/InputOTPSlot.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/input-otp/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/kanban/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/kanban/kanban-context.d.ts +6 -0
- package/dist/lib/lib/components/ui/kanban/kanban.keyboard.d.ts +25 -0
- package/dist/lib/lib/components/ui/kanban/kanban.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/kanban/kanban.utils.d.ts +24 -0
- package/dist/lib/lib/components/ui/kanban/kanban.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-board.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-card-preview.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-card.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-column-header.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-column.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-composer.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-empty.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/kanban/partials/kanban-group.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/kanban/types.d.ts +64 -0
- package/dist/lib/lib/components/ui/kanban/use-kanban.d.ts +42 -0
- package/dist/lib/lib/components/ui/kbd/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/kbd/kbd-shortcut.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/kbd/kbd.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/kbd/shortcut-glyph.d.ts +2 -0
- package/dist/lib/lib/components/ui/label/Label.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/label/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/language-switcher/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/language-switcher/language-switcher.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/layout/index.d.ts +275 -0
- package/dist/lib/lib/components/ui/layout/list-details-context.d.ts +11 -0
- package/dist/lib/lib/components/ui/layout/list-details-details.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/layout/list-details-layout.vue.d.ts +33 -0
- package/dist/lib/lib/components/ui/layout/list-details-list.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/layout/list-details-trigger.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/layout/pane-layout-content.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/layout/pane-layout-context.d.ts +11 -0
- package/dist/lib/lib/components/ui/layout/pane-layout-pane.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/layout/pane-layout-trigger.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/layout/pane-layout.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/layout/thread-layout.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/link-button/icon-link-button.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/link-button/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/link-button/link-button.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/link-button/responsive-link-button.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/link-button/types.d.ts +6 -0
- package/dist/lib/lib/components/ui/list-tile/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/list-tile/list-tile.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/load-more-button/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/load-more-button/load-more-button.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/menubar/Menubar.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/menubar/MenubarContent.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/menubar/MenubarGroup.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/menubar/MenubarItem.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/menubar/MenubarLabel.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/menubar/MenubarMenu.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/menubar/MenubarRadioGroup.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/menubar/MenubarRadioItem.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/menubar/MenubarSeparator.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/menubar/MenubarShortcut.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/menubar/MenubarSub.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/menubar/MenubarSubContent.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/menubar/MenubarSubTrigger.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/menubar/MenubarTrigger.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/menubar/index.d.ts +15 -0
- package/dist/lib/lib/components/ui/native-select/NativeSelect.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/native-select/NativeSelectOption.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/native-select/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/navigation-rail/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/navigation-rail/navigation-rail.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/notifications/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/notifications/notifications-context.d.ts +5 -0
- package/dist/lib/lib/components/ui/notifications/notifications.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/notifications.utils.d.ts +8 -0
- package/dist/lib/lib/components/ui/notifications/notifications.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-bell.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-categories.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-empty.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-inbox.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-item.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-list.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-popover.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/notifications/partials/notifications-toolbar.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/notifications/types.d.ts +40 -0
- package/dist/lib/lib/components/ui/notifications/use-notifications.d.ts +27 -0
- package/dist/lib/lib/components/ui/number-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/number-field/number-field.vue.d.ts +37 -0
- package/dist/lib/lib/components/ui/number-field/parse-number.d.ts +3 -0
- package/dist/lib/lib/components/ui/opening-hours/consts.d.ts +20 -0
- package/dist/lib/lib/components/ui/opening-hours/index.d.ts +10 -0
- package/dist/lib/lib/components/ui/opening-hours/models.d.ts +7 -0
- package/dist/lib/lib/components/ui/opening-hours/opening-hours-dialog.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/opening-hours/opening-hours-item.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/opening-hours/opening-hours.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/opening-hours/partials/opening-hours-dialog-fields.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/opening-hours/time-string.d.ts +2 -0
- package/dist/lib/lib/components/ui/otp-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/otp-field/otp-field.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/pagination/Pagination.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/pagination/PaginationContent.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/pagination/PaginationEllipsis.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/pagination/PaginationFirst.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/pagination/PaginationItem.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/pagination/PaginationLast.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/pagination/PaginationNext.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/pagination/PaginationPrevious.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/pagination/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/password-field/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/password-field/password-field.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/password-field/password-strength-meter.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/password-field/password-strength.d.ts +2 -0
- package/dist/lib/lib/components/ui/pdf-viewer/index.d.ts +129 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-empty-state.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-error-state.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-loading-overlay.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-outline-row.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-outline-sidebar.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-page-list.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-page.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-password-form.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-reader-body.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-sidebar.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-thumbnail-sidebar.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-toolbar-actions.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-toolbar-nav.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-toolbar-search.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-toolbar-zoom.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/pdf-viewer/partials/pdf-toolbar.vue.d.ts +43 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-download.d.ts +3 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-escape.d.ts +7 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-page-render.d.ts +15 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-reader-keyboard.d.ts +25 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-reader.store.d.ts +7 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-reader.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdf-search.d.ts +8 -0
- package/dist/lib/lib/components/ui/pdf-viewer/pdfjs.lazy.d.ts +16 -0
- package/dist/lib/lib/components/ui/pdf-viewer/types.d.ts +36 -0
- package/dist/lib/lib/components/ui/pdf-viewer/use-pdf-document.d.ts +14 -0
- package/dist/lib/lib/components/ui/pdf-viewer/use-pdf-reader.d.ts +33 -0
- package/dist/lib/lib/components/ui/pdf-viewer/use-pdf-search-hits.d.ts +11 -0
- package/dist/lib/lib/components/ui/percent-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/percent-field/percent-field.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/phone-field/countries.d.ts +8 -0
- package/dist/lib/lib/components/ui/phone-field/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/phone-field/parse-phone.d.ts +15 -0
- package/dist/lib/lib/components/ui/phone-field/phone-country-menu.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/phone-field/phone-field.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/popover/Popover.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/popover/PopoverAnchor.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/popover/PopoverContent.vue.d.ts +35 -0
- package/dist/lib/lib/components/ui/popover/PopoverTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/popover/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/postal-address/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/postal-address/models.d.ts +11 -0
- package/dist/lib/lib/components/ui/postal-address/partials/postal-address-dialog-fields.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/postal-address/postal-address-dialog.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/postal-address/postal-address.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/postal-address/utils.d.ts +7 -0
- package/dist/lib/lib/components/ui/print/components/print-badge.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/print/components/print-card-field.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/print/components/print-card.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/print/components/print-header.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/print/components/print-info-row.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/print/components/print-section.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/print/components/print-table-cell.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/print/components/print-table-header.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/print/components/print-table-row.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/print/components/print-table.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/print/components/print-total-row.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/print/components/print-totals.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/print/index.d.ts +24 -0
- package/dist/lib/lib/components/ui/print/styles.d.ts +34 -0
- package/dist/lib/lib/components/ui/print/tailwind.d.ts +5 -0
- package/dist/lib/lib/components/ui/print/utils.d.ts +5 -0
- package/dist/lib/lib/components/ui/progress/Progress.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/progress/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/qrcode/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/qrcode/qrcode.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/qrcode/render-qr.d.ts +10 -0
- package/dist/lib/lib/components/ui/radio-group/RadioGroup.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/radio-group/RadioGroupItem.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/radio-group/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/radio-group-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/radio-group-field/radio-group-field.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/rating-field/clamp-rating.d.ts +1 -0
- package/dist/lib/lib/components/ui/rating-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/rating-field/rating-field.variants.d.ts +5 -0
- package/dist/lib/lib/components/ui/rating-field/rating-field.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/resizable/ResizableHandle.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/resizable/ResizablePanel.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/resizable/ResizablePanelGroup.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/resizable/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/responsive-button/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/responsive-button/responsive-button.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/responsive-grid/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/responsive-grid/responsive-grid.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/bubble-menu/bubble-menu.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/bubble-menu/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/code/editor-code-block.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/code/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/code/lowlight.d.ts +14 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/color/color-picker-popover.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/color/editor-color-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/color/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/accordion-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/accordion-item-edit-form.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/const.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/editor-accordion-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/extension.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/accordion/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-item-edit-form.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-settings-form.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/const.d.ts +15 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/editor-action-card-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/extension.d.ts +14 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/action-card/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-edit-form.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-insert-menu.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/const.d.ts +14 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/extension.d.ts +15 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/callout/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/checkbox-group-edit-form.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/checkbox-group-node-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/const.d.ts +8 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/editor-checkbox-group-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/extension.d.ts +16 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/const.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/editor-gallery-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/extension.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/gallery-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/gallery-edit-form.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/gallery/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/const.d.ts +8 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/editor-radio-group-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/extension.d.ts +16 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/radio-group-edit-form.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/radio-group/radio-group-node-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/const.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/editor-select-card-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/extension.d.ts +16 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-item-edit-form.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-node-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-option.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-settings-form.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/const.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/editor-select-chip-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/extension.d.ts +16 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/select-chip-edit-form.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/select-chip/select-chip-node-component.vue.d.ts +93 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/shared/icon-options.d.ts +10 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/shared/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/shared/insert-node-button.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/custom/shared/repeating-field-list.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/emoji/consts.d.ts +31 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/emoji/emoji-list.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/emoji/emoji-picker.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/emoji/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/font-family/editor-font-family-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/font-family/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/heading/heading-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/heading/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/highlight/editor-highlight-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/highlight/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/image/editor-image-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/image/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/index.d.ts +12 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/link/editor-link-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/link/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/marks/editor-mark-buttons.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/marks/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/mention/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/mention/mention-list.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/mention/suggestions.d.ts +3 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/extension.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-basic.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-insert.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-items.d.ts +4 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-list.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-types.d.ts +18 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/editor-table-menu.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/editor-table-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/table-cell.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/table-properties-form.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/table/table.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/text-align/editor-text-align-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/text-align/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/youtube/editor-youtube-wrapper.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/extensions/youtube/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/rich-text-editor/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/parse-json.d.ts +2 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/node-edit-dialog.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/rich-text-editor-shell.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/rich-text-editor-toolbar.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/rich-text-editor-wrapper.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/toolbar-custom.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/toolbar-insert.vue.d.ts +9 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/toolbar-lists.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/rich-text-editor/partials/url-prompt-dialog.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/rich-text-editor/rich-text-editor.story-data.d.ts +3 -0
- package/dist/lib/lib/components/ui/rich-text-editor/rich-text-editor.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/rich-text-editor/types.d.ts +46 -0
- package/dist/lib/lib/components/ui/rich-text-editor/use-editor-state.d.ts +13 -0
- package/dist/lib/lib/components/ui/scroll-area/ScrollArea.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/scroll-to-top/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/scroll-to-top/scroll-to-top.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/search-field/debounce.d.ts +5 -0
- package/dist/lib/lib/components/ui/search-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/search-field/search-field.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/select/Select.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist/lib/lib/components/ui/select/SelectGroup.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/select/SelectItem.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/select/index.d.ts +11 -0
- package/dist/lib/lib/components/ui/select-card-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/select-card-field/select-card-field.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/select-chip-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/select-chip-field/select-chip-field.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/select-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/select-field/select-field.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/separator/Separator.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/separator/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/sheet/Sheet.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/sheet/SheetContent.vue.d.ts +35 -0
- package/dist/lib/lib/components/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/sheet/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/sidebar/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar-content.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar-footer.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar-header.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar-menu-item.vue.d.ts +21 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar-menu-label.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/sidebar/sidebar.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/skeleton/Skeleton.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/skeleton/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/slider/Slider.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/slider/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/slider-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/slider-field/slider-field.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/sonner/Sonner.vue.d.ts +4 -0
- package/dist/lib/lib/components/ui/sonner/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/sortable-list/index.d.ts +6 -0
- package/dist/lib/lib/components/ui/sortable-list/partials/sortable-list-dnd.vue.d.ts +22 -0
- package/dist/lib/lib/components/ui/sortable-list/partials/sortable-list-empty.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/sortable-list/partials/sortable-list-item.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/sortable-list/partials/sortable-list-row.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/sortable-list/sortable-list.keyboard.d.ts +19 -0
- package/dist/lib/lib/components/ui/sortable-list/sortable-list.utils.d.ts +1 -0
- package/dist/lib/lib/components/ui/sortable-list/sortable-list.vue.d.ts +44 -0
- package/dist/lib/lib/components/ui/sortable-list/types.d.ts +20 -0
- package/dist/lib/lib/components/ui/sortable-list/use-sortable-list.d.ts +18 -0
- package/dist/lib/lib/components/ui/split-button/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/split-button/split-button.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/stat-card/format-stat-delta.d.ts +5 -0
- package/dist/lib/lib/components/ui/stat-card/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/stat-card/stat-card.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/status-indicator/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/status-indicator/status-indicator.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/stepper/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/stepper/step-state.d.ts +3 -0
- package/dist/lib/lib/components/ui/stepper/stepper.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/stx-player/consts.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/format-time.d.ts +2 -0
- package/dist/lib/lib/components/ui/stx-player/index.d.ts +43 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-artwork.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-captions-menu.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-frame.vue.d.ts +10 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-overlays.vue.d.ts +3 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-rate-menu.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-seek-bar.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/stx-player/partials/stx-player-volume.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-context.d.ts +18 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-controls.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-extras.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-keyboard.d.ts +17 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-mini.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-provider.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-queue.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player-viewport.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player.store.d.ts +9 -0
- package/dist/lib/lib/components/ui/stx-player/stx-player.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/stx-player/types.d.ts +66 -0
- package/dist/lib/lib/components/ui/stx-player/use-media-bindings.d.ts +43 -0
- package/dist/lib/lib/components/ui/stx-player/use-media-events.d.ts +20 -0
- package/dist/lib/lib/components/ui/stx-player/use-player-shell.d.ts +24 -0
- package/dist/lib/lib/components/ui/stx-player/use-stx-player.d.ts +3 -0
- package/dist/lib/lib/components/ui/summary-data/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/summary-data/summary-data.vue.d.ts +29 -0
- package/dist/lib/lib/components/ui/switch/Switch.vue.d.ts +41 -0
- package/dist/lib/lib/components/ui/switch/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/switch/switch-control.vue.d.ts +25 -0
- package/dist/lib/lib/components/ui/switch-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/switch-field/switch-field.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/switcher/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/switcher/switcher.vue.d.ts +31 -0
- package/dist/lib/lib/components/ui/table/Table.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableBody.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableCaption.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableCell.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableEmpty.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/table/TableFooter.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableHead.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableHeader.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/TableRow.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/table/index.d.ts +9 -0
- package/dist/lib/lib/components/ui/tabs/Tabs.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/tabs/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/text-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/text-field/text-field.vue.d.ts +33 -0
- package/dist/lib/lib/components/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/textarea/index.d.ts +1 -0
- package/dist/lib/lib/components/ui/textarea-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/textarea-field/textarea-field.vue.d.ts +24 -0
- package/dist/lib/lib/components/ui/theme-toggle/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/theme-toggle/theme-toggle.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/time-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/time-field/partials/time-field-trigger.vue.d.ts +15 -0
- package/dist/lib/lib/components/ui/time-field/time-field.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/time-picker/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/time-picker/time-picker-utils.d.ts +3 -0
- package/dist/lib/lib/components/ui/time-picker/time-picker.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/timeline/format-relative-time.d.ts +8 -0
- package/dist/lib/lib/components/ui/timeline/index.d.ts +8 -0
- package/dist/lib/lib/components/ui/timeline/relative-time.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/timeline/timeline-item.vue.d.ts +11 -0
- package/dist/lib/lib/components/ui/timeline/timeline.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/timeline/types.d.ts +10 -0
- package/dist/lib/lib/components/ui/timezone-field/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/timezone-field/timezone-field.vue.d.ts +13 -0
- package/dist/lib/lib/components/ui/timezone-field/timezones.d.ts +4 -0
- package/dist/lib/lib/components/ui/toggle/Toggle.vue.d.ts +34 -0
- package/dist/lib/lib/components/ui/toggle/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/toggle-group/ToggleGroup.vue.d.ts +32 -0
- package/dist/lib/lib/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +30 -0
- package/dist/lib/lib/components/ui/toggle-group/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/tooltip/Tooltip.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/lib/lib/components/ui/tooltip/TooltipProvider.vue.d.ts +16 -0
- package/dist/lib/lib/components/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/tooltip/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/transfer-list/index.d.ts +5 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-actions.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-board.vue.d.ts +23 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-dnd.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-droppable.vue.d.ts +27 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-empty.vue.d.ts +6 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-item-row.vue.d.ts +45 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-item.vue.d.ts +37 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-pane-body.vue.d.ts +43 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-pane-header.vue.d.ts +17 -0
- package/dist/lib/lib/components/ui/transfer-list/partials/transfer-list-pane.vue.d.ts +59 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list-context.d.ts +17 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.dnd.d.ts +10 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.keyboard.d.ts +46 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.labels.d.ts +6 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.store.d.ts +3 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.stories.data.d.ts +3 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.utils.d.ts +20 -0
- package/dist/lib/lib/components/ui/transfer-list/transfer-list.vue.d.ts +51 -0
- package/dist/lib/lib/components/ui/transfer-list/types.d.ts +45 -0
- package/dist/lib/lib/components/ui/transfer-list/use-transfer-list-board.d.ts +21 -0
- package/dist/lib/lib/components/ui/transfer-list/use-transfer-list.d.ts +54 -0
- package/dist/lib/lib/components/ui/tree/index.d.ts +7 -0
- package/dist/lib/lib/components/ui/tree/tree-item.vue.d.ts +18 -0
- package/dist/lib/lib/components/ui/tree/tree.utils.d.ts +4 -0
- package/dist/lib/lib/components/ui/tree/tree.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/tree/types.d.ts +28 -0
- package/dist/lib/lib/components/ui/tree/use-tree.d.ts +17 -0
- package/dist/lib/lib/components/ui/typography/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/typography/typography.variants.d.ts +5 -0
- package/dist/lib/lib/components/ui/typography/typography.vue.d.ts +19 -0
- package/dist/lib/lib/components/ui/upload/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/__stories__/mock-upload.d.ts +8 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/index.d.ts +9 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/network-upload-field.store.d.ts +5 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/network-upload-field.utils.d.ts +11 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/network-upload-field.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/network-upload-item.vue.d.ts +12 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/partials/network-upload-dropzone.vue.d.ts +20 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/partials/network-upload-item-actions.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/partials/network-upload-item-preview.vue.d.ts +7 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/types.d.ts +61 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/use-file-drag-drop.d.ts +14 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/use-image-preview.d.ts +1 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/use-network-upload-field.d.ts +18 -0
- package/dist/lib/lib/components/ui/upload/network-upload-field/use-upload-items.d.ts +13 -0
- package/dist/lib/lib/components/ui/upload/s3-upload-field/index.d.ts +4 -0
- package/dist/lib/lib/components/ui/upload/s3-upload-field/s3-upload-field.utils.d.ts +10 -0
- package/dist/lib/lib/components/ui/upload/s3-upload-field/s3-upload-field.vue.d.ts +8 -0
- package/dist/lib/lib/components/ui/upload/s3-upload-field/types.d.ts +19 -0
- package/dist/lib/lib/components/ui/upload-field/index.d.ts +2 -0
- package/dist/lib/lib/components/ui/upload-field/upload-field.vue.d.ts +35 -0
- package/dist/lib/lib/components/ui/url-field/index.d.ts +3 -0
- package/dist/lib/lib/components/ui/url-field/parse-url.d.ts +2 -0
- package/dist/lib/lib/components/ui/url-field/url-field.vue.d.ts +14 -0
- package/dist/lib/lib/components/ui/video-player/index.d.ts +2 -0
- package/dist/lib/lib/composables/index.d.ts +10 -0
- package/dist/lib/lib/composables/resolve-theme.d.ts +7 -0
- package/dist/lib/lib/composables/use-allowed-transitions.d.ts +22 -0
- package/dist/lib/lib/composables/use-is-client.d.ts +2 -0
- package/dist/lib/lib/composables/use-localized-date.d.ts +9 -0
- package/dist/lib/lib/composables/use-mobile.d.ts +1 -0
- package/dist/lib/lib/composables/use-navigation.d.ts +10 -0
- package/dist/lib/lib/composables/use-number-formatter.d.ts +7 -0
- package/dist/lib/lib/composables/use-options.d.ts +28 -0
- package/dist/lib/lib/composables/use-search-param.d.ts +4 -0
- package/dist/lib/lib/composables/use-theme.d.ts +7 -0
- package/dist/lib/lib/dnd/index.d.ts +1 -0
- package/dist/lib/lib/i18n/consts.d.ts +7 -0
- package/dist/lib/lib/i18n/i18n-provider.d.ts +42 -0
- package/dist/lib/lib/i18n/index.d.ts +8 -0
- package/dist/lib/lib/i18n/merge-resources.d.ts +40 -0
- package/dist/lib/lib/i18n/resources/en/index.d.ts +894 -0
- package/dist/lib/lib/i18n/resources/en/material.json.d.ts +886 -0
- package/dist/lib/lib/i18n/resources/fr/index.d.ts +894 -0
- package/dist/lib/lib/i18n/resources/fr/material.json.d.ts +886 -0
- package/dist/lib/lib/i18n/resources/index.d.ts +1778 -0
- package/dist/lib/lib/i18n/translator.d.ts +28 -0
- package/dist/lib/lib/i18n/types.d.ts +43 -0
- package/dist/lib/lib/i18n/use-material-translation.d.ts +10 -0
- package/dist/lib/lib/i18n/use-typed-translation.d.ts +11 -0
- package/dist/lib/lib/lib/array.utils.d.ts +13 -0
- package/dist/lib/lib/lib/build-field-options.d.ts +7 -0
- package/dist/lib/lib/lib/client-only.utils.d.ts +9 -0
- package/dist/lib/lib/lib/date.utils.d.ts +28 -0
- package/dist/lib/lib/lib/format.utils.d.ts +4 -0
- package/dist/lib/lib/lib/index.d.ts +17 -0
- package/dist/lib/lib/lib/number.utils.d.ts +17 -0
- package/dist/lib/lib/lib/object.utils.d.ts +11 -0
- package/dist/lib/lib/lib/pinia/define-local-store.d.ts +21 -0
- package/dist/lib/lib/lib/pinia/filter-store.d.ts +4 -0
- package/dist/lib/lib/lib/pinia/index.d.ts +7 -0
- package/dist/lib/lib/lib/pinia/run-status.d.ts +10 -0
- package/dist/lib/lib/lib/pinia/status-store.d.ts +3 -0
- package/dist/lib/lib/lib/pinia/step-form-store.d.ts +6 -0
- package/dist/lib/lib/lib/promise.utils.d.ts +1 -0
- package/dist/lib/lib/lib/storage.utils.d.ts +8 -0
- package/dist/lib/lib/lib/string.utils.d.ts +6 -0
- package/dist/lib/lib/lib/styles.utils.d.ts +5 -0
- package/dist/lib/lib/lib/ui.utils.d.ts +7 -0
- package/dist/lib/lib/lib/upload.utils.d.ts +1 -0
- package/dist/lib/lib/lib/url.utils.d.ts +2 -0
- package/dist/lib/lib/lib/utils.d.ts +2 -0
- package/dist/lib/lib/lib/zod-error-map.d.ts +26 -0
- package/dist/lib/lib/main.d.ts +6 -0
- package/dist/lib/lib/models/index.d.ts +1 -0
- package/dist/lib/lib/models/status.d.ts +5 -0
- package/dist/lib/lib/nuxt/component-names.d.ts +1 -0
- package/dist/lib/lib/nuxt/module.d.ts +12 -0
- package/dist/lib/lib/types/functions.d.ts +36 -0
- package/dist/lib/lib/types/index.d.ts +1 -0
- package/dist/lib/src/App.vue.d.ts +3 -0
- package/dist/lib/src/main.d.ts +1 -0
- package/dist/lib-kSGjbZgz.js +584 -0
- package/dist/lib.js +4 -0
- package/dist/main.js +12 -0
- package/dist/material-vue.css +2 -0
- package/dist/models.js +0 -0
- package/dist/pdf-D_G-uiri.js +15053 -0
- package/dist/pdf-outline-sidebar-Dl78ZiCE.js +64 -0
- package/dist/pdf-page-BQh_RTTA.js +196 -0
- package/dist/pdf-page-list-DgB7sXKt.js +47 -0
- package/dist/pdf-reader-CSEFRTX0.js +413 -0
- package/dist/pdf-sidebar-C9hc2zxS.js +103 -0
- package/dist/pdf-thumbnail-sidebar-zEjOyZY1.js +61 -0
- package/dist/pdf-toolbar-BTFwhiXg.js +433 -0
- package/dist/pdf.worker.min-DRpqlnXj.js +4 -0
- package/dist/stx-player-D6NHJCLt.js +131 -0
- package/dist/styles.css +469 -0
- package/dist/types.js +0 -0
- package/dist/use-localized-date-C8vHzgho.js +459 -0
- package/dist/utils-Cy-ByIEo.js +1734 -0
- package/lib/components/ui/code/code-moonlight.css +73 -0
- package/lib/nuxt/component-names.test.ts +17 -0
- package/lib/nuxt/component-names.ts +486 -0
- package/lib/nuxt/module.ts +94 -0
- package/lib/nuxt/runtime/plugin.ts +9 -0
- package/lib/styles.css +469 -0
- package/package.json +187 -0
|
@@ -0,0 +1,3546 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, ref as c, renderList as l, renderSlot as u, resolveComponent as d, resolveDynamicComponent as f, unref as p, vShow as m, watch as h, withCtx as g, withDirectives as _, withModifiers as v } from "vue";
|
|
2
|
+
//#region node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
|
|
3
|
+
function y(e, t) {
|
|
4
|
+
var n = Object.keys(e);
|
|
5
|
+
if (Object.getOwnPropertySymbols) {
|
|
6
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
7
|
+
t && (r = r.filter((function(t) {
|
|
8
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
9
|
+
}))), n.push.apply(n, r);
|
|
10
|
+
}
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function b(e) {
|
|
14
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
15
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
16
|
+
t % 2 ? y(Object(n), !0).forEach((function(t) {
|
|
17
|
+
x(e, t, n[t]);
|
|
18
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y(Object(n)).forEach((function(t) {
|
|
19
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function x(e, t, n) {
|
|
25
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
26
|
+
value: n,
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0
|
|
30
|
+
}) : e[t] = n, e;
|
|
31
|
+
}
|
|
32
|
+
function ee(e, t) {
|
|
33
|
+
if (e == null) return {};
|
|
34
|
+
var n, r, i = function(e, t) {
|
|
35
|
+
if (e == null) return {};
|
|
36
|
+
var n, r, i = {}, a = Object.keys(e);
|
|
37
|
+
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]);
|
|
38
|
+
return i;
|
|
39
|
+
}(e, t);
|
|
40
|
+
if (Object.getOwnPropertySymbols) {
|
|
41
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
42
|
+
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
43
|
+
}
|
|
44
|
+
return i;
|
|
45
|
+
}
|
|
46
|
+
function S(e) {
|
|
47
|
+
return function(e) {
|
|
48
|
+
if (Array.isArray(e)) return te(e);
|
|
49
|
+
}(e) || function(e) {
|
|
50
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
51
|
+
}(e) || function(e, t) {
|
|
52
|
+
if (e) {
|
|
53
|
+
if (typeof e == "string") return te(e, t);
|
|
54
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
55
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
56
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return te(e, t);
|
|
57
|
+
}
|
|
58
|
+
}(e) || function() {
|
|
59
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60
|
+
}();
|
|
61
|
+
}
|
|
62
|
+
function te(e, t) {
|
|
63
|
+
(t == null || t > e.length) && (t = e.length);
|
|
64
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
var ne, re, C, w = (ne = function(e) {
|
|
68
|
+
(function() {
|
|
69
|
+
var t = {}.hasOwnProperty;
|
|
70
|
+
function n() {
|
|
71
|
+
for (var e = [], r = 0; r < arguments.length; r++) {
|
|
72
|
+
var i = arguments[r];
|
|
73
|
+
if (i) {
|
|
74
|
+
var a = typeof i;
|
|
75
|
+
if (a === "string" || a === "number") e.push(i);
|
|
76
|
+
else if (Array.isArray(i)) {
|
|
77
|
+
if (i.length) {
|
|
78
|
+
var o = n.apply(null, i);
|
|
79
|
+
o && e.push(o);
|
|
80
|
+
}
|
|
81
|
+
} else if (a === "object") if (i.toString === Object.prototype.toString) for (var s in i) t.call(i, s) && i[s] && e.push(s);
|
|
82
|
+
else e.push(i.toString());
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return e.join(" ");
|
|
86
|
+
}
|
|
87
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
88
|
+
})();
|
|
89
|
+
}, ne(C = {
|
|
90
|
+
path: re,
|
|
91
|
+
exports: {},
|
|
92
|
+
require: function(e, t) {
|
|
93
|
+
return function() {
|
|
94
|
+
throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
95
|
+
}(t == null && C.path);
|
|
96
|
+
}
|
|
97
|
+
}, C.exports), C.exports), T = function(e) {
|
|
98
|
+
return function(t, n) {
|
|
99
|
+
if (!t) return e;
|
|
100
|
+
var r;
|
|
101
|
+
typeof t == "string" ? r = t : n = t;
|
|
102
|
+
var i = e;
|
|
103
|
+
return r && (i += "__" + r), i + (n ? Object.keys(n).reduce((function(e, t) {
|
|
104
|
+
var r = n[t];
|
|
105
|
+
return r && (e += " " + (typeof r == "boolean" ? i + "--" + t : i + "--" + t + "_" + r)), e;
|
|
106
|
+
}), "") : "");
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
function ie(e, t, n) {
|
|
110
|
+
var r, i, a, o, s;
|
|
111
|
+
function c() {
|
|
112
|
+
var l = Date.now() - o;
|
|
113
|
+
l < t && l >= 0 ? r = setTimeout(c, t - l) : (r = null, n || (s = e.apply(a, i), a = i = null));
|
|
114
|
+
}
|
|
115
|
+
t ??= 100;
|
|
116
|
+
var l = function() {
|
|
117
|
+
a = this, i = arguments, o = Date.now();
|
|
118
|
+
var l = n && !r;
|
|
119
|
+
return r ||= setTimeout(c, t), l && (s = e.apply(a, i), a = i = null), s;
|
|
120
|
+
};
|
|
121
|
+
return l.clear = function() {
|
|
122
|
+
r &&= (clearTimeout(r), null);
|
|
123
|
+
}, l.flush = function() {
|
|
124
|
+
r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
|
|
125
|
+
}, l;
|
|
126
|
+
}
|
|
127
|
+
ie.debounce = ie;
|
|
128
|
+
var ae = ie, E = function() {
|
|
129
|
+
return E = Object.assign || function(e) {
|
|
130
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
131
|
+
return e;
|
|
132
|
+
}, E.apply(this, arguments);
|
|
133
|
+
};
|
|
134
|
+
function oe(e, t) {
|
|
135
|
+
var n, r;
|
|
136
|
+
return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), r = e + "-" + t) : (n = e || t, r = e || t), {
|
|
137
|
+
name: n,
|
|
138
|
+
classname: r
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function se(e) {
|
|
142
|
+
return /^blob:/.test(e);
|
|
143
|
+
}
|
|
144
|
+
function ce(e) {
|
|
145
|
+
return se(e) || function(e) {
|
|
146
|
+
return /^data:/.test(e);
|
|
147
|
+
}(e);
|
|
148
|
+
}
|
|
149
|
+
function D(e) {
|
|
150
|
+
return !!(e && e.constructor && e.call && e.apply);
|
|
151
|
+
}
|
|
152
|
+
function O(e) {
|
|
153
|
+
return e === void 0;
|
|
154
|
+
}
|
|
155
|
+
function k(e) {
|
|
156
|
+
return typeof e == "object" && !!e;
|
|
157
|
+
}
|
|
158
|
+
function le(e, t, n) {
|
|
159
|
+
var r = {};
|
|
160
|
+
return k(e) ? (Object.keys(t).forEach((function(i) {
|
|
161
|
+
O(e[i]) ? r[i] = t[i] : k(t[i]) ? k(e[i]) ? r[i] = le(e[i], t[i], n[i]) : r[i] = e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? r[i] = !!e[i] : r[i] = e[i];
|
|
162
|
+
})), r) : e ? t : n;
|
|
163
|
+
}
|
|
164
|
+
function A(e) {
|
|
165
|
+
var t = Number(e);
|
|
166
|
+
return Number.isNaN(t) ? e : t;
|
|
167
|
+
}
|
|
168
|
+
function ue(e) {
|
|
169
|
+
return typeof (e == "number" || function(e) {
|
|
170
|
+
return typeof e == "object" && !!e;
|
|
171
|
+
}(e) && toString.call(e) == "[object Number]") && !de(e);
|
|
172
|
+
}
|
|
173
|
+
function de(e) {
|
|
174
|
+
return e != e;
|
|
175
|
+
}
|
|
176
|
+
function fe(e, t) {
|
|
177
|
+
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
178
|
+
}
|
|
179
|
+
var j = function(e, t) {
|
|
180
|
+
e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
|
|
181
|
+
}, pe = function(e, t) {
|
|
182
|
+
t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
|
|
183
|
+
}, me = function(e) {
|
|
184
|
+
this.type = "move", this.directions = e;
|
|
185
|
+
}, he = function() {
|
|
186
|
+
function e(e, t, n, r, i) {
|
|
187
|
+
this.type = "drag", this.nativeEvent = e, this.position = n, this.previousPosition = r, this.element = t, this.anchor = i;
|
|
188
|
+
}
|
|
189
|
+
return e.prototype.shift = function() {
|
|
190
|
+
var e = this, t = e.element, n = e.anchor, r = e.position;
|
|
191
|
+
if (t) {
|
|
192
|
+
var i = t.getBoundingClientRect(), a = i.left, o = i.top;
|
|
193
|
+
return {
|
|
194
|
+
left: r.left - a - n.left,
|
|
195
|
+
top: r.top - o - n.top
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
left: 0,
|
|
200
|
+
top: 0
|
|
201
|
+
};
|
|
202
|
+
}, e;
|
|
203
|
+
}(), ge = {
|
|
204
|
+
name: "DraggableElement",
|
|
205
|
+
props: { classname: { type: String } },
|
|
206
|
+
beforeMount: function() {
|
|
207
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
208
|
+
},
|
|
209
|
+
beforeUnmount: function() {
|
|
210
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
211
|
+
},
|
|
212
|
+
mounted: function() {
|
|
213
|
+
if (!this.$refs.draggable) throw Error("You should add ref \"draggable\" to your root element to use draggable mixin");
|
|
214
|
+
this.touches = [], this.hovered = !1;
|
|
215
|
+
},
|
|
216
|
+
methods: {
|
|
217
|
+
onMouseOver: function() {
|
|
218
|
+
this.hovered || (this.hovered = !0, this.$emit("enter"));
|
|
219
|
+
},
|
|
220
|
+
onMouseLeave: function() {
|
|
221
|
+
this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
|
|
222
|
+
},
|
|
223
|
+
onTouchStart: function(e) {
|
|
224
|
+
e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = S(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
|
|
225
|
+
return {
|
|
226
|
+
clientX: t.clientX + n.clientX / e.touches.length,
|
|
227
|
+
clientY: t.clientY + n.clientY / e.touches.length
|
|
228
|
+
};
|
|
229
|
+
}), {
|
|
230
|
+
clientX: 0,
|
|
231
|
+
clientY: 0
|
|
232
|
+
})), e.preventDefault && e.preventDefault(), e.stopPropagation());
|
|
233
|
+
},
|
|
234
|
+
onTouchEnd: function() {
|
|
235
|
+
this.processEnd();
|
|
236
|
+
},
|
|
237
|
+
onTouchMove: function(e) {
|
|
238
|
+
this.touches.length && (this.processMove(e, e.touches), e.preventDefault && e.preventDefault(), e.stopPropagation && e.stopPropagation());
|
|
239
|
+
},
|
|
240
|
+
onMouseDown: function(e) {
|
|
241
|
+
if (!this.disabled) {
|
|
242
|
+
var t = {
|
|
243
|
+
fake: !0,
|
|
244
|
+
clientX: e.clientX,
|
|
245
|
+
clientY: e.clientY
|
|
246
|
+
};
|
|
247
|
+
this.touches = [t], this.initAnchor(t), e.stopPropagation();
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
onMouseMove: function(e) {
|
|
251
|
+
this.touches.length && (this.processMove(e, [{
|
|
252
|
+
fake: !0,
|
|
253
|
+
clientX: e.clientX,
|
|
254
|
+
clientY: e.clientY
|
|
255
|
+
}]), e.preventDefault && e.preventDefault());
|
|
256
|
+
},
|
|
257
|
+
onMouseUp: function() {
|
|
258
|
+
this.processEnd();
|
|
259
|
+
},
|
|
260
|
+
initAnchor: function(e) {
|
|
261
|
+
var t = this.$refs.draggable.getBoundingClientRect(), n = t.left, r = t.right, i = t.bottom, a = t.top;
|
|
262
|
+
this.anchor = {
|
|
263
|
+
left: e.clientX - n,
|
|
264
|
+
top: e.clientY - a,
|
|
265
|
+
bottom: i - e.clientY,
|
|
266
|
+
right: r - e.clientX
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
processMove: function(e, t) {
|
|
270
|
+
var n = S(t);
|
|
271
|
+
if (this.touches.length) {
|
|
272
|
+
if (this.touches.length === 1 && n.length === 1) {
|
|
273
|
+
var r = this.$refs.draggable;
|
|
274
|
+
this.$emit("drag", new he(e, r, {
|
|
275
|
+
left: n[0].clientX,
|
|
276
|
+
top: n[0].clientY
|
|
277
|
+
}, {
|
|
278
|
+
left: this.touches[0].clientX,
|
|
279
|
+
top: this.touches[0].clientY
|
|
280
|
+
}, this.anchor));
|
|
281
|
+
}
|
|
282
|
+
this.touches = n;
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
processEnd: function() {
|
|
286
|
+
this.touches.length && this.$emit("drag-end"), this.hovered &&= (this.$emit("leave"), !1), this.touches = [];
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
emits: [
|
|
290
|
+
"drag",
|
|
291
|
+
"drag-end",
|
|
292
|
+
"leave",
|
|
293
|
+
"enter"
|
|
294
|
+
]
|
|
295
|
+
};
|
|
296
|
+
ge.render = function(e, t, r, i, a, o) {
|
|
297
|
+
return s(), n("div", {
|
|
298
|
+
ref: "draggable",
|
|
299
|
+
class: r.classname,
|
|
300
|
+
onTouchstart: t[1] ||= function() {
|
|
301
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
302
|
+
},
|
|
303
|
+
onMousedown: t[2] ||= function() {
|
|
304
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
305
|
+
},
|
|
306
|
+
onMouseover: t[3] ||= function() {
|
|
307
|
+
return o.onMouseOver && o.onMouseOver.apply(o, arguments);
|
|
308
|
+
},
|
|
309
|
+
onMouseleave: t[4] ||= function() {
|
|
310
|
+
return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
|
|
311
|
+
}
|
|
312
|
+
}, [u(e.$slots, "default")], 34);
|
|
313
|
+
};
|
|
314
|
+
var _e = T("vue-handler-wrapper"), ve = {
|
|
315
|
+
name: "HandlerWrapper",
|
|
316
|
+
components: { DraggableElement: ge },
|
|
317
|
+
props: {
|
|
318
|
+
horizontalPosition: { type: String },
|
|
319
|
+
verticalPosition: { type: String },
|
|
320
|
+
disabled: {
|
|
321
|
+
type: Boolean,
|
|
322
|
+
default: !1
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
computed: { classes: function() {
|
|
326
|
+
var e;
|
|
327
|
+
if (this.horizontalPosition || this.verticalPosition) {
|
|
328
|
+
var t, n = oe(this.horizontalPosition, this.verticalPosition);
|
|
329
|
+
e = _e((x(t = {}, n.classname, !0), x(t, "disabled", this.disabled), t));
|
|
330
|
+
} else e = _e({ disabled: this.disabled });
|
|
331
|
+
return {
|
|
332
|
+
root: e,
|
|
333
|
+
draggable: _e("draggable")
|
|
334
|
+
};
|
|
335
|
+
} },
|
|
336
|
+
emits: [
|
|
337
|
+
"leave",
|
|
338
|
+
"enter",
|
|
339
|
+
"drag",
|
|
340
|
+
"drag-end"
|
|
341
|
+
]
|
|
342
|
+
};
|
|
343
|
+
ve.render = function(e, t, r, a, o, c) {
|
|
344
|
+
var l = d("DraggableElement");
|
|
345
|
+
return s(), n("div", { class: c.classes.root }, [i(l, {
|
|
346
|
+
class: c.classes.draggable,
|
|
347
|
+
onDrag: t[1] ||= function(t) {
|
|
348
|
+
return e.$emit("drag", t);
|
|
349
|
+
},
|
|
350
|
+
onDragEnd: t[2] ||= function(t) {
|
|
351
|
+
return e.$emit("drag-end");
|
|
352
|
+
},
|
|
353
|
+
onLeave: t[3] ||= function(t) {
|
|
354
|
+
return e.$emit("leave");
|
|
355
|
+
},
|
|
356
|
+
onEnter: t[4] ||= function(t) {
|
|
357
|
+
return e.$emit("enter");
|
|
358
|
+
}
|
|
359
|
+
}, {
|
|
360
|
+
default: g((function() {
|
|
361
|
+
return [u(e.$slots, "default")];
|
|
362
|
+
})),
|
|
363
|
+
_: 3
|
|
364
|
+
}, 8, ["class"])], 2);
|
|
365
|
+
};
|
|
366
|
+
var ye = T("vue-line-wrapper"), be = {
|
|
367
|
+
name: "LineWrapper",
|
|
368
|
+
components: { DraggableElement: ge },
|
|
369
|
+
props: {
|
|
370
|
+
position: {
|
|
371
|
+
type: String,
|
|
372
|
+
required: !0
|
|
373
|
+
},
|
|
374
|
+
disabled: {
|
|
375
|
+
type: Boolean,
|
|
376
|
+
default: !1
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
computed: { classname: function() {
|
|
380
|
+
var e;
|
|
381
|
+
return ye((x(e = {}, this.position, !0), x(e, "disabled", this.disabled), e));
|
|
382
|
+
} },
|
|
383
|
+
emits: [
|
|
384
|
+
"leave",
|
|
385
|
+
"enter",
|
|
386
|
+
"drag",
|
|
387
|
+
"drag-end"
|
|
388
|
+
]
|
|
389
|
+
};
|
|
390
|
+
be.render = function(e, t, r, i, a, o) {
|
|
391
|
+
var c = d("DraggableElement");
|
|
392
|
+
return s(), n(c, {
|
|
393
|
+
class: o.classname,
|
|
394
|
+
onDrag: t[1] ||= function(t) {
|
|
395
|
+
return e.$emit("drag", t);
|
|
396
|
+
},
|
|
397
|
+
onDragEnd: t[2] ||= function(t) {
|
|
398
|
+
return e.$emit("drag-end");
|
|
399
|
+
},
|
|
400
|
+
onLeave: t[3] ||= function(t) {
|
|
401
|
+
return e.$emit("leave");
|
|
402
|
+
},
|
|
403
|
+
onEnter: t[4] ||= function(t) {
|
|
404
|
+
return e.$emit("enter");
|
|
405
|
+
}
|
|
406
|
+
}, {
|
|
407
|
+
default: g((function() {
|
|
408
|
+
return [u(e.$slots, "default")];
|
|
409
|
+
})),
|
|
410
|
+
_: 3
|
|
411
|
+
}, 8, ["class"]);
|
|
412
|
+
};
|
|
413
|
+
var M = [
|
|
414
|
+
"left",
|
|
415
|
+
"right",
|
|
416
|
+
"top",
|
|
417
|
+
"bottom"
|
|
418
|
+
], xe = ["left", "right"], Se = ["top", "bottom"], Ce = ["left", "top"], we = [
|
|
419
|
+
"fill-area",
|
|
420
|
+
"fit-area",
|
|
421
|
+
"stencil",
|
|
422
|
+
"none"
|
|
423
|
+
], Te = {
|
|
424
|
+
left: 0,
|
|
425
|
+
top: 0,
|
|
426
|
+
width: 0,
|
|
427
|
+
height: 0
|
|
428
|
+
};
|
|
429
|
+
function Ee(e, t, n) {
|
|
430
|
+
return !(n ||= [
|
|
431
|
+
"width",
|
|
432
|
+
"height",
|
|
433
|
+
"left",
|
|
434
|
+
"top"
|
|
435
|
+
]).some((function(n) {
|
|
436
|
+
return e[n] !== t[n];
|
|
437
|
+
}));
|
|
438
|
+
}
|
|
439
|
+
function N(e) {
|
|
440
|
+
return {
|
|
441
|
+
left: e.left,
|
|
442
|
+
top: e.top,
|
|
443
|
+
right: e.left + e.width,
|
|
444
|
+
bottom: e.top + e.height
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function P(e, t) {
|
|
448
|
+
return {
|
|
449
|
+
left: e.left - t.left,
|
|
450
|
+
top: e.top - t.top
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
function F(e) {
|
|
454
|
+
return {
|
|
455
|
+
left: e.left + e.width / 2,
|
|
456
|
+
top: e.top + e.height / 2
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
function I(e, t) {
|
|
460
|
+
var n = {
|
|
461
|
+
left: 0,
|
|
462
|
+
top: 0,
|
|
463
|
+
right: 0,
|
|
464
|
+
bottom: 0
|
|
465
|
+
};
|
|
466
|
+
return M.forEach((function(r) {
|
|
467
|
+
var i = t[r], a = N(e)[r];
|
|
468
|
+
n[r] = i !== void 0 && a !== void 0 ? r === "left" || r === "top" ? Math.max(0, i - a) : Math.max(0, a - i) : 0;
|
|
469
|
+
})), n;
|
|
470
|
+
}
|
|
471
|
+
function L(e, t) {
|
|
472
|
+
return {
|
|
473
|
+
left: e.left - t.left,
|
|
474
|
+
top: e.top - t.top,
|
|
475
|
+
width: e.width + t.left + t.right,
|
|
476
|
+
height: e.height + t.top + t.bottom
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function R(e) {
|
|
480
|
+
return {
|
|
481
|
+
left: -e.left,
|
|
482
|
+
top: -e.top
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
function z(e, t) {
|
|
486
|
+
return E(E({}, e), {
|
|
487
|
+
left: e.left + t.left,
|
|
488
|
+
top: e.top + t.top
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
function B(e, t, n, r) {
|
|
492
|
+
if (t !== 1) {
|
|
493
|
+
if (n) {
|
|
494
|
+
var i = F(e);
|
|
495
|
+
return {
|
|
496
|
+
width: e.width * t,
|
|
497
|
+
height: e.height * t,
|
|
498
|
+
left: e.left + e.width * (1 - t) / 2 + (n.left - i.left) * (r || 1 - t),
|
|
499
|
+
top: e.top + e.height * (1 - t) / 2 + (n.top - i.top) * (r || 1 - t)
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
return {
|
|
503
|
+
width: e.width * t,
|
|
504
|
+
height: e.height * t,
|
|
505
|
+
left: e.left + e.width * (1 - t) / 2,
|
|
506
|
+
top: e.top + e.height * (1 - t) / 2
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
return e;
|
|
510
|
+
}
|
|
511
|
+
function V(e) {
|
|
512
|
+
return e.width / e.height;
|
|
513
|
+
}
|
|
514
|
+
function H(e, t) {
|
|
515
|
+
return Math.min(t.right !== void 0 && t.left !== void 0 ? (t.right - t.left) / e.width : Infinity, t.bottom !== void 0 && t.top !== void 0 ? (t.bottom - t.top) / e.height : Infinity);
|
|
516
|
+
}
|
|
517
|
+
function U(e, t) {
|
|
518
|
+
var n = {
|
|
519
|
+
left: 0,
|
|
520
|
+
top: 0
|
|
521
|
+
}, r = I(e, t);
|
|
522
|
+
return r.left && r.left > 0 ? n.left = r.left : r.right && r.right > 0 && (n.left = -r.right), r.top && r.top > 0 ? n.top = r.top : r.bottom && r.bottom > 0 && (n.top = -r.bottom), n;
|
|
523
|
+
}
|
|
524
|
+
function De(e, t) {
|
|
525
|
+
var n;
|
|
526
|
+
return t.minimum && e < t.minimum ? n = t.minimum : t.maximum && e > t.maximum && (n = t.maximum), n;
|
|
527
|
+
}
|
|
528
|
+
function Oe(e, t) {
|
|
529
|
+
var n = V(e), r = V(t);
|
|
530
|
+
return t.width < Infinity && t.height < Infinity ? n > r ? {
|
|
531
|
+
width: t.width,
|
|
532
|
+
height: t.width / n
|
|
533
|
+
} : {
|
|
534
|
+
width: t.height * n,
|
|
535
|
+
height: t.height
|
|
536
|
+
} : t.width < Infinity ? {
|
|
537
|
+
width: t.width,
|
|
538
|
+
height: t.width / n
|
|
539
|
+
} : t.height < Infinity ? {
|
|
540
|
+
width: t.height * n,
|
|
541
|
+
height: t.height
|
|
542
|
+
} : e;
|
|
543
|
+
}
|
|
544
|
+
function ke(e, t) {
|
|
545
|
+
var n = t * Math.PI / 180;
|
|
546
|
+
return {
|
|
547
|
+
width: Math.abs(e.width * Math.cos(n)) + Math.abs(e.height * Math.sin(n)),
|
|
548
|
+
height: Math.abs(e.width * Math.sin(n)) + Math.abs(e.height * Math.cos(n))
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
function W(e, t) {
|
|
552
|
+
var n = t * Math.PI / 180;
|
|
553
|
+
return {
|
|
554
|
+
left: e.left * Math.cos(n) - e.top * Math.sin(n),
|
|
555
|
+
top: e.left * Math.sin(n) + e.top * Math.cos(n)
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
function G(e, t) {
|
|
559
|
+
var n = I(K(e, t), t);
|
|
560
|
+
return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, H(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, H(e, t)) : 1;
|
|
561
|
+
}
|
|
562
|
+
function K(e, t, n) {
|
|
563
|
+
n === void 0 && (n = !1);
|
|
564
|
+
var r = U(e, t);
|
|
565
|
+
return z(e, n ? R(r) : r);
|
|
566
|
+
}
|
|
567
|
+
function Ae(e) {
|
|
568
|
+
return {
|
|
569
|
+
width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left : Infinity,
|
|
570
|
+
height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top : Infinity
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function je(e, t) {
|
|
574
|
+
return E(E({}, e), {
|
|
575
|
+
minWidth: Math.min(t.width, e.minWidth),
|
|
576
|
+
minHeight: Math.min(t.height, e.minHeight),
|
|
577
|
+
maxWidth: Math.min(t.width, e.maxWidth),
|
|
578
|
+
maxHeight: Math.min(t.height, e.maxHeight)
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
function Me(e, t, n) {
|
|
582
|
+
n === void 0 && (n = !0);
|
|
583
|
+
var r = {};
|
|
584
|
+
return M.forEach((function(i) {
|
|
585
|
+
var a = e[i], o = t[i];
|
|
586
|
+
a !== void 0 && o !== void 0 ? r[i] = i === "left" || i === "top" ? n ? Math.max(a, o) : Math.min(a, o) : n ? Math.min(a, o) : Math.max(a, o) : o === void 0 ? a !== void 0 && (r[i] = a) : r[i] = o;
|
|
587
|
+
})), r;
|
|
588
|
+
}
|
|
589
|
+
function q(e, t) {
|
|
590
|
+
return Me(e, t, !0);
|
|
591
|
+
}
|
|
592
|
+
function Ne(e) {
|
|
593
|
+
var t = e.size, n = e.aspectRatio, r = e.ignoreMinimum, i = e.sizeRestrictions;
|
|
594
|
+
return !!((t.correctRatio || V(t) >= n.minimum && V(t) <= n.maximum) && t.height <= i.maxHeight && t.width <= i.maxWidth && t.width && t.height && (r || t.height >= i.minHeight && t.width >= i.minWidth));
|
|
595
|
+
}
|
|
596
|
+
function Pe(e, t) {
|
|
597
|
+
return (e.width - t.width) ** 2 + (e.height - t.height) ** 2;
|
|
598
|
+
}
|
|
599
|
+
function J(e) {
|
|
600
|
+
var t = e.width, n = e.height, r = e.sizeRestrictions, i = {
|
|
601
|
+
minimum: e.aspectRatio && e.aspectRatio.minimum || 0,
|
|
602
|
+
maximum: e.aspectRatio && e.aspectRatio.maximum || Infinity
|
|
603
|
+
}, a = {
|
|
604
|
+
width: Math.max(r.minWidth, Math.min(r.maxWidth, t)),
|
|
605
|
+
height: Math.max(r.minHeight, Math.min(r.maxHeight, n))
|
|
606
|
+
};
|
|
607
|
+
function o(e, a) {
|
|
608
|
+
return a === void 0 && (a = !1), e.reduce((function(e, o) {
|
|
609
|
+
return Ne({
|
|
610
|
+
size: o,
|
|
611
|
+
aspectRatio: i,
|
|
612
|
+
sizeRestrictions: r,
|
|
613
|
+
ignoreMinimum: a
|
|
614
|
+
}) && (!e || Pe(o, {
|
|
615
|
+
width: t,
|
|
616
|
+
height: n
|
|
617
|
+
}) < Pe(e, {
|
|
618
|
+
width: t,
|
|
619
|
+
height: n
|
|
620
|
+
})) ? o : e;
|
|
621
|
+
}), null);
|
|
622
|
+
}
|
|
623
|
+
var s = [];
|
|
624
|
+
i && [i.minimum, i.maximum].forEach((function(e) {
|
|
625
|
+
e && s.push({
|
|
626
|
+
width: a.width,
|
|
627
|
+
height: a.width / e,
|
|
628
|
+
correctRatio: !0
|
|
629
|
+
}, {
|
|
630
|
+
width: a.height * e,
|
|
631
|
+
height: a.height,
|
|
632
|
+
correctRatio: !0
|
|
633
|
+
});
|
|
634
|
+
})), Ne({
|
|
635
|
+
size: a,
|
|
636
|
+
aspectRatio: i,
|
|
637
|
+
sizeRestrictions: r
|
|
638
|
+
}) && s.push(a);
|
|
639
|
+
var c = o(s) || o(s, !0);
|
|
640
|
+
return c && {
|
|
641
|
+
width: c.width,
|
|
642
|
+
height: c.height
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function Fe(e) {
|
|
646
|
+
var t = e.event, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = z(n, t.directions);
|
|
647
|
+
return z(a, U(a, i));
|
|
648
|
+
}
|
|
649
|
+
function Ie(e) {
|
|
650
|
+
var t = e.coordinates, n = e.transform, r = e.imageSize, i = e.sizeRestrictions, a = e.positionRestrictions, o = e.aspectRatio, s = e.visibleArea, c = function(e, t) {
|
|
651
|
+
return Fe({
|
|
652
|
+
coordinates: e,
|
|
653
|
+
positionRestrictions: a,
|
|
654
|
+
event: new me({
|
|
655
|
+
left: t.left - e.left,
|
|
656
|
+
top: t.top - e.top
|
|
657
|
+
})
|
|
658
|
+
});
|
|
659
|
+
}, l = E({}, t);
|
|
660
|
+
return (Array.isArray(n) ? n : [n]).forEach((function(e) {
|
|
661
|
+
var t = {};
|
|
662
|
+
O((t = typeof e == "function" ? e({
|
|
663
|
+
coordinates: l,
|
|
664
|
+
imageSize: r,
|
|
665
|
+
visibleArea: s
|
|
666
|
+
}) : e).width) && O(t.height) || (l = function(e, t) {
|
|
667
|
+
return c(E(E(E({}, e), J({
|
|
668
|
+
width: t.width,
|
|
669
|
+
height: t.height,
|
|
670
|
+
sizeRestrictions: i,
|
|
671
|
+
aspectRatio: o
|
|
672
|
+
})), {
|
|
673
|
+
left: 0,
|
|
674
|
+
top: 0
|
|
675
|
+
}), {
|
|
676
|
+
left: e.left,
|
|
677
|
+
top: e.top
|
|
678
|
+
});
|
|
679
|
+
}(l, E(E({}, l), t))), O(t.left) && O(t.top) || (l = c(l, E(E({}, l), t)));
|
|
680
|
+
})), l;
|
|
681
|
+
}
|
|
682
|
+
function Le(e) {
|
|
683
|
+
e.event;
|
|
684
|
+
var t = e.getAreaRestrictions, n = e.boundaries, r = e.coordinates, i = e.visibleArea;
|
|
685
|
+
e.aspectRatio;
|
|
686
|
+
var a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions;
|
|
687
|
+
e.stencilReference;
|
|
688
|
+
var c, l, u, d = E({}, r), f = E({}, i), p = E({}, a);
|
|
689
|
+
c = V(p), l = V(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = E(E({}, d), J({
|
|
690
|
+
sizeRestrictions: o,
|
|
691
|
+
width: d.width,
|
|
692
|
+
height: d.height,
|
|
693
|
+
aspectRatio: {
|
|
694
|
+
minimum: V(p),
|
|
695
|
+
maximum: V(p)
|
|
696
|
+
}
|
|
697
|
+
})));
|
|
698
|
+
var m = G(f = B(f, d.width * n.width / (f.width * p.width)), t({
|
|
699
|
+
visibleArea: f,
|
|
700
|
+
type: "resize"
|
|
701
|
+
}));
|
|
702
|
+
return m !== 1 && (f = B(f, m), d = B(d, m)), f = K(f = z(f, P(F(d), F(f))), t({
|
|
703
|
+
visibleArea: f,
|
|
704
|
+
type: "move"
|
|
705
|
+
})), {
|
|
706
|
+
coordinates: d = K(d, q(N(f), s)),
|
|
707
|
+
visibleArea: f
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function Re(e) {
|
|
711
|
+
var t = e.event, n = e.getAreaRestrictions, r = e.boundaries, i = e.coordinates, a = e.visibleArea;
|
|
712
|
+
e.aspectRatio, e.stencilSize, e.sizeRestrictions;
|
|
713
|
+
var o = e.positionRestrictions;
|
|
714
|
+
e.stencilReference;
|
|
715
|
+
var s = E({}, i), c = E({}, a);
|
|
716
|
+
if (i && a && t.type !== "manipulateImage") {
|
|
717
|
+
var l = {
|
|
718
|
+
width: 0,
|
|
719
|
+
height: 0
|
|
720
|
+
};
|
|
721
|
+
c.width, r.width, V(r) > V(s) ? (l.height = .8 * r.height, l.width = l.height * V(s)) : (l.width = .8 * r.width, l.height = l.width * V(s));
|
|
722
|
+
var u = G(c = B(c, s.width * r.width / (c.width * l.width)), n({
|
|
723
|
+
visibleArea: c,
|
|
724
|
+
type: "resize"
|
|
725
|
+
}));
|
|
726
|
+
c = B(c, u), u !== 1 && (l.height /= u, l.width /= u), c = K(c = z(c, P(F(s), F(c))), n({
|
|
727
|
+
visibleArea: c,
|
|
728
|
+
type: "move"
|
|
729
|
+
})), s = K(s, q(N(c), o));
|
|
730
|
+
}
|
|
731
|
+
return {
|
|
732
|
+
coordinates: s,
|
|
733
|
+
visibleArea: c
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function ze(e) {
|
|
737
|
+
var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = E({}, r), o = E({}, n);
|
|
738
|
+
if (t.type === "setCoordinates") {
|
|
739
|
+
var s = Math.max(0, o.width - a.width), c = Math.max(0, o.height - a.height);
|
|
740
|
+
s > c ? a = B(a, Math.min(o.width / a.width, H(a, i({
|
|
741
|
+
visibleArea: a,
|
|
742
|
+
type: "resize"
|
|
743
|
+
})))) : c > s && (a = B(a, Math.min(o.height / a.height, H(a, i({
|
|
744
|
+
visibleArea: a,
|
|
745
|
+
type: "resize"
|
|
746
|
+
}))))), a = K(a = z(a, R(U(o, N(a)))), i({
|
|
747
|
+
visibleArea: a,
|
|
748
|
+
type: "move"
|
|
749
|
+
}));
|
|
750
|
+
}
|
|
751
|
+
return {
|
|
752
|
+
visibleArea: a,
|
|
753
|
+
coordinates: o
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function Be(e) {
|
|
757
|
+
var t = e.imageSize, n = e.visibleArea, r = e.coordinates, i = n || t;
|
|
758
|
+
return {
|
|
759
|
+
left: (n ? n.left : 0) + i.width / 2 - r.width / 2,
|
|
760
|
+
top: (n ? n.top : 0) + i.height / 2 - r.height / 2
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function Ve(e) {
|
|
764
|
+
var t = e.imageSize, n = e.visibleArea, r = e.aspectRatio, i = e.sizeRestrictions, a = n || t, o = Math.min(r.maximum || Infinity, Math.max(r.minimum || 0, V(a))), s = a.width < a.height ? {
|
|
765
|
+
width: .8 * a.width,
|
|
766
|
+
height: .8 * a.width / o
|
|
767
|
+
} : {
|
|
768
|
+
height: .8 * a.height,
|
|
769
|
+
width: .8 * a.height * o
|
|
770
|
+
};
|
|
771
|
+
return J(E(E({}, s), {
|
|
772
|
+
aspectRatio: r,
|
|
773
|
+
sizeRestrictions: i
|
|
774
|
+
}));
|
|
775
|
+
}
|
|
776
|
+
function He(e) {
|
|
777
|
+
var t, n, r = e.imageSize, i = e.visibleArea, a = e.boundaries, o = e.aspectRatio, s = e.sizeRestrictions, c = e.stencilSize, l = i || r;
|
|
778
|
+
return V(l) > V(a) ? n = (t = c.height * l.height / a.height) * V(c) : t = (n = c.width * l.width / a.width) / V(c), J({
|
|
779
|
+
width: n,
|
|
780
|
+
height: t,
|
|
781
|
+
aspectRatio: o,
|
|
782
|
+
sizeRestrictions: s
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
function Ue(e) {
|
|
786
|
+
var t = e.getAreaRestrictions, n = e.coordinates, r = e.imageSize, i = V(e.boundaries);
|
|
787
|
+
if (n) {
|
|
788
|
+
var a = {
|
|
789
|
+
height: Math.max(n.height, r.height),
|
|
790
|
+
width: Math.max(n.width, r.width)
|
|
791
|
+
}, o = Oe({
|
|
792
|
+
width: V(a) > i ? a.width : a.height * i,
|
|
793
|
+
height: V(a) > i ? a.width / i : a.height
|
|
794
|
+
}, Ae(t())), s = {
|
|
795
|
+
left: n.left + n.width / 2 - o.width / 2,
|
|
796
|
+
top: n.top + n.height / 2 - o.height / 2,
|
|
797
|
+
width: o.width,
|
|
798
|
+
height: o.height
|
|
799
|
+
}, c = I(n, N(E({
|
|
800
|
+
left: 0,
|
|
801
|
+
top: 0
|
|
802
|
+
}, r))), l = {};
|
|
803
|
+
return !c.left && !c.right && s.width <= r.width && (l.left = 0, l.right = r.width), !c.top && !c.bottom && s.height <= r.height && (l.top = 0, l.bottom = r.height), K(s, l);
|
|
804
|
+
}
|
|
805
|
+
var u = V(r);
|
|
806
|
+
return o = {
|
|
807
|
+
height: u > i ? r.height : r.width / i,
|
|
808
|
+
width: u > i ? r.height * i : r.width
|
|
809
|
+
}, {
|
|
810
|
+
left: r.width / 2 - o.width / 2,
|
|
811
|
+
top: r.height / 2 - o.height / 2,
|
|
812
|
+
width: o.width,
|
|
813
|
+
height: o.height
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
function Y(e, t) {
|
|
817
|
+
return Me(e, N(t));
|
|
818
|
+
}
|
|
819
|
+
function We(e) {
|
|
820
|
+
var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = E({}, r), d = E({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
|
|
821
|
+
u = z(u, {
|
|
822
|
+
left: l.left || 0,
|
|
823
|
+
top: l.top || 0
|
|
824
|
+
});
|
|
825
|
+
var h = {
|
|
826
|
+
stencil: {
|
|
827
|
+
minimum: Math.max(i.minWidth ? i.minWidth / d.width : 0, i.minHeight ? i.minHeight / d.height : 0),
|
|
828
|
+
maximum: Math.min(i.maxWidth ? i.maxWidth / d.width : Infinity, i.maxHeight ? i.maxHeight / d.height : Infinity, H(d, o))
|
|
829
|
+
},
|
|
830
|
+
area: { maximum: H(u, a({
|
|
831
|
+
visibleArea: u,
|
|
832
|
+
type: "resize"
|
|
833
|
+
})) }
|
|
834
|
+
};
|
|
835
|
+
c.factor && m && (c.factor < 1 ? (p = Math.max(c.factor, h.stencil.minimum)) > 1 && (p = 1) : c.factor > 1 && (p = Math.min(c.factor, Math.min(h.area.maximum, h.stencil.maximum))) < 1 && (p = 1)), p && (u = B(u, p, c.center));
|
|
836
|
+
var g = n.left - r.left, _ = r.width + r.left - (n.width + n.left), v = n.top - r.top, y = r.height + r.top - (n.height + n.top);
|
|
837
|
+
return u = K(u = z(u, U(u, {
|
|
838
|
+
left: o.left === void 0 ? void 0 : o.left - g * p,
|
|
839
|
+
top: o.top === void 0 ? void 0 : o.top - v * p,
|
|
840
|
+
bottom: o.bottom === void 0 ? void 0 : o.bottom + y * p,
|
|
841
|
+
right: o.right === void 0 ? void 0 : o.right + _ * p
|
|
842
|
+
})), a({
|
|
843
|
+
visibleArea: u,
|
|
844
|
+
type: "move"
|
|
845
|
+
})), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = K(d, q(N(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = z(u = K(u = B(u, f, c.factor > 1 ? c.center : F(d)), a({
|
|
846
|
+
visibleArea: u,
|
|
847
|
+
type: "move"
|
|
848
|
+
})), R(U(d, N(u)))))), {
|
|
849
|
+
coordinates: d,
|
|
850
|
+
visibleArea: u
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
function Ge(e) {
|
|
854
|
+
var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = E({}, r), d = E({}, i), f = W(F(E({
|
|
855
|
+
left: 0,
|
|
856
|
+
top: 0
|
|
857
|
+
}, c)), l);
|
|
858
|
+
return (u = E(E({}, J({
|
|
859
|
+
sizeRestrictions: a,
|
|
860
|
+
aspectRatio: t,
|
|
861
|
+
width: u.width,
|
|
862
|
+
height: u.height
|
|
863
|
+
})), W(F(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = B(d, G(d, n({
|
|
864
|
+
visibleArea: d,
|
|
865
|
+
type: "resize"
|
|
866
|
+
}))), {
|
|
867
|
+
coordinates: u = K(u, o),
|
|
868
|
+
visibleArea: d = K(d = z(d, P(F(u), F(r))), n({
|
|
869
|
+
visibleArea: d,
|
|
870
|
+
type: "move"
|
|
871
|
+
}))
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function Ke(e) {
|
|
875
|
+
var t = e.flip, n = e.previousFlip, r = e.rotate;
|
|
876
|
+
e.aspectRatio;
|
|
877
|
+
var i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = E({}, a), l = E({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
|
|
878
|
+
if (u || d) {
|
|
879
|
+
var f = W({
|
|
880
|
+
left: s.width / 2,
|
|
881
|
+
top: s.height / 2
|
|
882
|
+
}, -r), p = W(F(c), -r), m = W({
|
|
883
|
+
left: u ? f.left - (p.left - f.left) : p.left,
|
|
884
|
+
top: d ? f.top - (p.top - f.top) : p.top
|
|
885
|
+
}, r);
|
|
886
|
+
c = z(c, P(m, F(c))), p = W(F(l), -r), l = K(l = z(l, P(m = W({
|
|
887
|
+
left: u ? f.left - (p.left - f.left) : p.left,
|
|
888
|
+
top: d ? f.top - (p.top - f.top) : p.top
|
|
889
|
+
}, r), F(l))), i({
|
|
890
|
+
visibleArea: l,
|
|
891
|
+
type: "move"
|
|
892
|
+
}));
|
|
893
|
+
}
|
|
894
|
+
return {
|
|
895
|
+
coordinates: c,
|
|
896
|
+
visibleArea: l
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
function qe(e) {
|
|
900
|
+
var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = E({}, t), l = L(n, c).width, u = L(n, c).height;
|
|
901
|
+
l < 0 && (c.left < 0 && c.right < 0 ? (c.left = -(n.width - a.minWidth) / (c.left / c.right), c.right = -(n.width - a.minWidth) / (c.right / c.left)) : c.left < 0 ? c.left = -(n.width - a.minWidth) : c.right < 0 && (c.right = -(n.width - a.minWidth))), u < 0 && (c.top < 0 && c.bottom < 0 ? (c.top = -(n.height - a.minHeight) / (c.top / c.bottom), c.bottom = -(n.height - a.minHeight) / (c.bottom / c.top)) : c.top < 0 ? c.top = -(n.height - a.minHeight) : c.bottom < 0 && (c.bottom = -(n.height - a.minHeight)));
|
|
902
|
+
var d = I(L(n, c), i);
|
|
903
|
+
s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = I(L(n, c), i));
|
|
904
|
+
var f = {
|
|
905
|
+
width: Infinity,
|
|
906
|
+
height: Infinity,
|
|
907
|
+
left: Infinity,
|
|
908
|
+
right: Infinity,
|
|
909
|
+
top: Infinity,
|
|
910
|
+
bottom: Infinity
|
|
911
|
+
};
|
|
912
|
+
if (M.forEach((function(e) {
|
|
913
|
+
var t = d[e];
|
|
914
|
+
t && c[e] && (f[e] = Math.max(0, 1 - t / c[e]));
|
|
915
|
+
})), o) {
|
|
916
|
+
var p = Math.min.apply(null, M.map((function(e) {
|
|
917
|
+
return f[e];
|
|
918
|
+
})));
|
|
919
|
+
p !== Infinity && M.forEach((function(e) {
|
|
920
|
+
c[e] *= p;
|
|
921
|
+
}));
|
|
922
|
+
} else M.forEach((function(e) {
|
|
923
|
+
f[e] !== Infinity && (c[e] *= f[e]);
|
|
924
|
+
}));
|
|
925
|
+
if (l = L(n, c).width, u = L(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
|
|
926
|
+
var m = Math.min(f.width, f.height);
|
|
927
|
+
m !== Infinity && M.forEach((function(e) {
|
|
928
|
+
c[e] *= m;
|
|
929
|
+
}));
|
|
930
|
+
} else f.width !== Infinity && xe.forEach((function(e) {
|
|
931
|
+
c[e] *= f.width;
|
|
932
|
+
})), f.height !== Infinity && Se.forEach((function(e) {
|
|
933
|
+
c[e] *= f.height;
|
|
934
|
+
}));
|
|
935
|
+
return c;
|
|
936
|
+
}
|
|
937
|
+
function X(e, t, n) {
|
|
938
|
+
return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
|
|
939
|
+
}
|
|
940
|
+
var Je = T("vue-simple-handler"), Ye = T("vue-simple-handler-wrapper"), Z = {
|
|
941
|
+
name: "SimpleHandler",
|
|
942
|
+
components: { HandlerWrapper: ve },
|
|
943
|
+
props: {
|
|
944
|
+
defaultClass: { type: String },
|
|
945
|
+
hoverClass: { type: String },
|
|
946
|
+
wrapperClass: { type: String },
|
|
947
|
+
horizontalPosition: { type: String },
|
|
948
|
+
verticalPosition: { type: String },
|
|
949
|
+
disabled: {
|
|
950
|
+
type: Boolean,
|
|
951
|
+
default: !1
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
data: function() {
|
|
955
|
+
return { hover: !1 };
|
|
956
|
+
},
|
|
957
|
+
computed: { classes: function() {
|
|
958
|
+
var e, t = (x(e = {}, this.horizontalPosition, !!this.horizontalPosition), x(e, this.verticalPosition, !!this.verticalPosition), x(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), x(e, "hover", this.hover), e);
|
|
959
|
+
return {
|
|
960
|
+
default: w(Je(t), this.defaultClass, this.hover && this.hoverClass),
|
|
961
|
+
wrapper: w(Ye(t), this.wrapperClass)
|
|
962
|
+
};
|
|
963
|
+
} },
|
|
964
|
+
methods: {
|
|
965
|
+
onDrag: function(e) {
|
|
966
|
+
this.$emit("drag", e);
|
|
967
|
+
},
|
|
968
|
+
onEnter: function() {
|
|
969
|
+
this.hover = !0;
|
|
970
|
+
},
|
|
971
|
+
onLeave: function() {
|
|
972
|
+
this.hover = !1;
|
|
973
|
+
},
|
|
974
|
+
onDragEnd: function() {
|
|
975
|
+
this.$emit("drag-end");
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
emits: ["drag", "drag-end"]
|
|
979
|
+
};
|
|
980
|
+
Z.render = function(e, t, r, a, o, c) {
|
|
981
|
+
var l = d("HandlerWrapper");
|
|
982
|
+
return s(), n(l, {
|
|
983
|
+
class: c.classes.wrapper,
|
|
984
|
+
"vertical-position": r.verticalPosition,
|
|
985
|
+
"horizontal-position": r.horizontalPosition,
|
|
986
|
+
disabled: r.disabled,
|
|
987
|
+
onDrag: c.onDrag,
|
|
988
|
+
onDragEnd: c.onDragEnd,
|
|
989
|
+
onEnter: c.onEnter,
|
|
990
|
+
onLeave: c.onLeave
|
|
991
|
+
}, {
|
|
992
|
+
default: g((function() {
|
|
993
|
+
return [i("div", { class: c.classes.default }, null, 2)];
|
|
994
|
+
})),
|
|
995
|
+
_: 1
|
|
996
|
+
}, 8, [
|
|
997
|
+
"class",
|
|
998
|
+
"vertical-position",
|
|
999
|
+
"horizontal-position",
|
|
1000
|
+
"disabled",
|
|
1001
|
+
"onDrag",
|
|
1002
|
+
"onDragEnd",
|
|
1003
|
+
"onEnter",
|
|
1004
|
+
"onLeave"
|
|
1005
|
+
]);
|
|
1006
|
+
};
|
|
1007
|
+
var Xe = T("vue-simple-line"), Ze = T("vue-simple-line-wrapper"), Q = {
|
|
1008
|
+
name: "SimpleLine",
|
|
1009
|
+
components: { LineWrapper: be },
|
|
1010
|
+
props: {
|
|
1011
|
+
defaultClass: { type: String },
|
|
1012
|
+
hoverClass: { type: String },
|
|
1013
|
+
wrapperClass: { type: String },
|
|
1014
|
+
position: { type: String },
|
|
1015
|
+
disabled: {
|
|
1016
|
+
type: Boolean,
|
|
1017
|
+
default: !1
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
data: function() {
|
|
1021
|
+
return { hover: !1 };
|
|
1022
|
+
},
|
|
1023
|
+
computed: { classes: function() {
|
|
1024
|
+
return {
|
|
1025
|
+
root: w(Xe(x({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
|
|
1026
|
+
wrapper: w(Ze(x({}, this.position, !0)), this.wrapperClass)
|
|
1027
|
+
};
|
|
1028
|
+
} },
|
|
1029
|
+
methods: {
|
|
1030
|
+
onDrag: function(e) {
|
|
1031
|
+
this.$emit("drag", e);
|
|
1032
|
+
},
|
|
1033
|
+
onEnter: function() {
|
|
1034
|
+
this.hover = !0;
|
|
1035
|
+
},
|
|
1036
|
+
onLeave: function() {
|
|
1037
|
+
this.hover = !1;
|
|
1038
|
+
},
|
|
1039
|
+
onDragEnd: function() {
|
|
1040
|
+
this.$emit("drag-end");
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
emits: ["drag", "drag-end"]
|
|
1044
|
+
};
|
|
1045
|
+
Q.render = function(e, t, r, a, o, c) {
|
|
1046
|
+
var l = d("LineWrapper");
|
|
1047
|
+
return s(), n(l, {
|
|
1048
|
+
class: c.classes.wrapper,
|
|
1049
|
+
position: r.position,
|
|
1050
|
+
disabled: r.disabled,
|
|
1051
|
+
onDrag: c.onDrag,
|
|
1052
|
+
onDragEnd: c.onDragEnd,
|
|
1053
|
+
onEnter: c.onEnter,
|
|
1054
|
+
onLeave: c.onLeave
|
|
1055
|
+
}, {
|
|
1056
|
+
default: g((function() {
|
|
1057
|
+
return [i("div", { class: c.classes.root }, null, 2)];
|
|
1058
|
+
})),
|
|
1059
|
+
_: 1
|
|
1060
|
+
}, 8, [
|
|
1061
|
+
"class",
|
|
1062
|
+
"position",
|
|
1063
|
+
"disabled",
|
|
1064
|
+
"onDrag",
|
|
1065
|
+
"onDragEnd",
|
|
1066
|
+
"onEnter",
|
|
1067
|
+
"onLeave"
|
|
1068
|
+
]);
|
|
1069
|
+
};
|
|
1070
|
+
var Qe = T("vue-bounding-box"), $e = [
|
|
1071
|
+
"east",
|
|
1072
|
+
"west",
|
|
1073
|
+
null
|
|
1074
|
+
], et = [
|
|
1075
|
+
"south",
|
|
1076
|
+
"north",
|
|
1077
|
+
null
|
|
1078
|
+
], tt = {
|
|
1079
|
+
name: "BoundingBox",
|
|
1080
|
+
props: {
|
|
1081
|
+
width: { type: Number },
|
|
1082
|
+
height: { type: Number },
|
|
1083
|
+
transitions: { type: Object },
|
|
1084
|
+
handlers: {
|
|
1085
|
+
type: Object,
|
|
1086
|
+
default: function() {
|
|
1087
|
+
return {
|
|
1088
|
+
eastNorth: !0,
|
|
1089
|
+
north: !0,
|
|
1090
|
+
westNorth: !0,
|
|
1091
|
+
west: !0,
|
|
1092
|
+
westSouth: !0,
|
|
1093
|
+
south: !0,
|
|
1094
|
+
eastSouth: !0,
|
|
1095
|
+
east: !0
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
handlersComponent: {
|
|
1100
|
+
type: [Object, String],
|
|
1101
|
+
default: function() {
|
|
1102
|
+
return Z;
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
handlersClasses: {
|
|
1106
|
+
type: Object,
|
|
1107
|
+
default: function() {
|
|
1108
|
+
return {};
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
handlersWrappersClasses: {
|
|
1112
|
+
type: Object,
|
|
1113
|
+
default: function() {
|
|
1114
|
+
return {};
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
lines: {
|
|
1118
|
+
type: Object,
|
|
1119
|
+
default: function() {
|
|
1120
|
+
return {
|
|
1121
|
+
west: !0,
|
|
1122
|
+
north: !0,
|
|
1123
|
+
east: !0,
|
|
1124
|
+
south: !0
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
linesComponent: {
|
|
1129
|
+
type: [Object, String],
|
|
1130
|
+
default: function() {
|
|
1131
|
+
return Q;
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
linesClasses: {
|
|
1135
|
+
type: Object,
|
|
1136
|
+
default: function() {
|
|
1137
|
+
return {};
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
linesWrappersClasses: {
|
|
1141
|
+
type: Object,
|
|
1142
|
+
default: function() {
|
|
1143
|
+
return {};
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
resizable: {
|
|
1147
|
+
type: Boolean,
|
|
1148
|
+
default: !0
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
data: function() {
|
|
1152
|
+
var e = [];
|
|
1153
|
+
return $e.forEach((function(t) {
|
|
1154
|
+
et.forEach((function(n) {
|
|
1155
|
+
if (t !== n) {
|
|
1156
|
+
var r = oe(t, n), i = r.name, a = r.classname;
|
|
1157
|
+
e.push({
|
|
1158
|
+
name: i,
|
|
1159
|
+
classname: a,
|
|
1160
|
+
verticalDirection: n,
|
|
1161
|
+
horizontalDirection: t
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
}));
|
|
1165
|
+
})), { points: e };
|
|
1166
|
+
},
|
|
1167
|
+
computed: {
|
|
1168
|
+
style: function() {
|
|
1169
|
+
var e = {};
|
|
1170
|
+
return this.width && this.height && (e.width = `${this.width}px`, e.height = `${this.height}px`, this.transitions && this.transitions.enabled && (e.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`)), e;
|
|
1171
|
+
},
|
|
1172
|
+
classes: function() {
|
|
1173
|
+
var e = this.handlersClasses, t = this.handlersWrappersClasses, n = this.linesClasses, r = this.linesWrappersClasses;
|
|
1174
|
+
return {
|
|
1175
|
+
root: Qe(),
|
|
1176
|
+
handlers: e,
|
|
1177
|
+
handlersWrappers: t,
|
|
1178
|
+
lines: n,
|
|
1179
|
+
linesWrappers: r
|
|
1180
|
+
};
|
|
1181
|
+
},
|
|
1182
|
+
lineNodes: function() {
|
|
1183
|
+
var e = this, t = [];
|
|
1184
|
+
return this.points.forEach((function(n) {
|
|
1185
|
+
n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
|
|
1186
|
+
name: n.name,
|
|
1187
|
+
component: e.linesComponent,
|
|
1188
|
+
class: w(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
|
|
1189
|
+
wrapperClass: w(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
|
|
1190
|
+
hoverClass: e.classes.lines.hover,
|
|
1191
|
+
verticalDirection: n.verticalDirection,
|
|
1192
|
+
horizontalDirection: n.horizontalDirection,
|
|
1193
|
+
disabled: !e.resizable
|
|
1194
|
+
});
|
|
1195
|
+
})), t;
|
|
1196
|
+
},
|
|
1197
|
+
handlerNodes: function() {
|
|
1198
|
+
var e = this, t = [], n = this.width, r = this.height;
|
|
1199
|
+
return this.points.forEach((function(i) {
|
|
1200
|
+
if (e.handlers[i.name]) {
|
|
1201
|
+
var a = {
|
|
1202
|
+
name: i.name,
|
|
1203
|
+
component: e.handlersComponent,
|
|
1204
|
+
class: w(e.classes.handlers.default, e.classes.handlers[i.name]),
|
|
1205
|
+
wrapperClass: w(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
|
|
1206
|
+
hoverClass: e.classes.handlers.hover,
|
|
1207
|
+
verticalDirection: i.verticalDirection,
|
|
1208
|
+
horizontalDirection: i.horizontalDirection,
|
|
1209
|
+
disabled: !e.resizable
|
|
1210
|
+
};
|
|
1211
|
+
if (n && r) {
|
|
1212
|
+
var o = i.horizontalDirection, s = i.verticalDirection, c = o === "east" ? n : o === "west" ? 0 : n / 2, l = s === "south" ? r : s === "north" ? 0 : r / 2;
|
|
1213
|
+
a.wrapperClass = Qe("handler"), a.wrapperStyle = { transform: `translate(${c}px, ${l}px)` }, e.transitions && e.transitions.enabled && (a.wrapperStyle.transition = `${e.transitions.time}ms ${e.transitions.timingFunction}`);
|
|
1214
|
+
} else a.wrapperClass = Qe("handler", x({}, i.classname, !0));
|
|
1215
|
+
t.push(a);
|
|
1216
|
+
}
|
|
1217
|
+
})), t;
|
|
1218
|
+
}
|
|
1219
|
+
},
|
|
1220
|
+
beforeMount: function() {
|
|
1221
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
1222
|
+
},
|
|
1223
|
+
beforeUnmount: function() {
|
|
1224
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
1225
|
+
},
|
|
1226
|
+
mounted: function() {
|
|
1227
|
+
this.touches = [];
|
|
1228
|
+
},
|
|
1229
|
+
methods: {
|
|
1230
|
+
onEnd: function() {
|
|
1231
|
+
this.$emit("resize-end");
|
|
1232
|
+
},
|
|
1233
|
+
onHandlerDrag: function(e, t, n) {
|
|
1234
|
+
var r, i = e.shift(), a = i.left, o = i.top, s = {
|
|
1235
|
+
left: 0,
|
|
1236
|
+
right: 0,
|
|
1237
|
+
top: 0,
|
|
1238
|
+
bottom: 0
|
|
1239
|
+
};
|
|
1240
|
+
t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new pe(s, {
|
|
1241
|
+
allowedDirections: {
|
|
1242
|
+
left: t === "west" || !t,
|
|
1243
|
+
right: t === "east" || !t,
|
|
1244
|
+
bottom: n === "south" || !n,
|
|
1245
|
+
top: n === "north" || !n
|
|
1246
|
+
},
|
|
1247
|
+
preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey,
|
|
1248
|
+
respectDirection: r
|
|
1249
|
+
}));
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
emits: ["resize", "resize-end"]
|
|
1253
|
+
};
|
|
1254
|
+
tt.render = function(t, r, a, o, c, d) {
|
|
1255
|
+
return s(), n("div", {
|
|
1256
|
+
ref: "box",
|
|
1257
|
+
class: d.classes.root,
|
|
1258
|
+
style: d.style
|
|
1259
|
+
}, [
|
|
1260
|
+
u(t.$slots, "default"),
|
|
1261
|
+
i("div", null, [(s(!0), n(e, null, l(d.lineNodes, (function(e) {
|
|
1262
|
+
return s(), n(f(e.component), {
|
|
1263
|
+
key: e.name,
|
|
1264
|
+
"default-class": e.class,
|
|
1265
|
+
"hover-class": e.hoverClass,
|
|
1266
|
+
"wrapper-class": e.wrapperClass,
|
|
1267
|
+
position: e.name,
|
|
1268
|
+
disabled: e.disabled,
|
|
1269
|
+
onDrag: function(t) {
|
|
1270
|
+
return d.onHandlerDrag(t, e.horizontalDirection, e.verticalDirection);
|
|
1271
|
+
},
|
|
1272
|
+
onDragEnd: r[1] ||= function(e) {
|
|
1273
|
+
return d.onEnd();
|
|
1274
|
+
}
|
|
1275
|
+
}, null, 8, [
|
|
1276
|
+
"default-class",
|
|
1277
|
+
"hover-class",
|
|
1278
|
+
"wrapper-class",
|
|
1279
|
+
"position",
|
|
1280
|
+
"disabled",
|
|
1281
|
+
"onDrag"
|
|
1282
|
+
]);
|
|
1283
|
+
})), 128))]),
|
|
1284
|
+
(s(!0), n(e, null, l(d.handlerNodes, (function(e) {
|
|
1285
|
+
return s(), n("div", {
|
|
1286
|
+
key: e.name,
|
|
1287
|
+
style: e.wrapperStyle,
|
|
1288
|
+
class: e.wrapperClass
|
|
1289
|
+
}, [(s(), n(f(e.component), {
|
|
1290
|
+
"default-class": e.class,
|
|
1291
|
+
"hover-class": e.hoverClass,
|
|
1292
|
+
"wrapper-class": e.wrapperClass,
|
|
1293
|
+
"horizontal-position": e.horizontalDirection,
|
|
1294
|
+
"vertical-position": e.verticalDirection,
|
|
1295
|
+
disabled: e.disabled,
|
|
1296
|
+
onDrag: function(t) {
|
|
1297
|
+
return d.onHandlerDrag(t, e.horizontalDirection, e.verticalDirection);
|
|
1298
|
+
},
|
|
1299
|
+
onDragEnd: r[2] ||= function(e) {
|
|
1300
|
+
return d.onEnd();
|
|
1301
|
+
}
|
|
1302
|
+
}, null, 8, [
|
|
1303
|
+
"default-class",
|
|
1304
|
+
"hover-class",
|
|
1305
|
+
"wrapper-class",
|
|
1306
|
+
"horizontal-position",
|
|
1307
|
+
"vertical-position",
|
|
1308
|
+
"disabled",
|
|
1309
|
+
"onDrag"
|
|
1310
|
+
]))], 6);
|
|
1311
|
+
})), 128))
|
|
1312
|
+
], 6);
|
|
1313
|
+
};
|
|
1314
|
+
var nt = T("vue-draggable-area"), rt = {
|
|
1315
|
+
name: "DraggableArea",
|
|
1316
|
+
props: {
|
|
1317
|
+
movable: {
|
|
1318
|
+
type: Boolean,
|
|
1319
|
+
default: !0
|
|
1320
|
+
},
|
|
1321
|
+
activationDistance: {
|
|
1322
|
+
type: Number,
|
|
1323
|
+
default: 20
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
computed: { classnames: function() {
|
|
1327
|
+
return { default: nt() };
|
|
1328
|
+
} },
|
|
1329
|
+
beforeMount: function() {
|
|
1330
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
1331
|
+
},
|
|
1332
|
+
beforeUnmount: function() {
|
|
1333
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
1334
|
+
},
|
|
1335
|
+
mounted: function() {
|
|
1336
|
+
this.touches = [], this.touchStarted = !1;
|
|
1337
|
+
},
|
|
1338
|
+
methods: {
|
|
1339
|
+
onTouchStart: function(e) {
|
|
1340
|
+
if (e.cancelable) {
|
|
1341
|
+
var t = this.movable && e.touches.length === 1;
|
|
1342
|
+
t && (this.touches = S(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
onTouchEnd: function() {
|
|
1346
|
+
this.touchStarted = !1, this.processEnd();
|
|
1347
|
+
},
|
|
1348
|
+
onTouchMove: function(e) {
|
|
1349
|
+
this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : fe({
|
|
1350
|
+
x: this.touches[0].clientX,
|
|
1351
|
+
y: this.touches[0].clientY
|
|
1352
|
+
}, {
|
|
1353
|
+
x: e.touches[0].clientX,
|
|
1354
|
+
y: e.touches[0].clientY
|
|
1355
|
+
}) > this.activationDistance && (this.initAnchor({
|
|
1356
|
+
clientX: e.touches[0].clientX,
|
|
1357
|
+
clientY: e.touches[0].clientY
|
|
1358
|
+
}), this.touchStarted = !0));
|
|
1359
|
+
},
|
|
1360
|
+
onMouseDown: function(e) {
|
|
1361
|
+
if (this.movable && e.button === 0) {
|
|
1362
|
+
var t = {
|
|
1363
|
+
fake: !0,
|
|
1364
|
+
clientX: e.clientX,
|
|
1365
|
+
clientY: e.clientY
|
|
1366
|
+
};
|
|
1367
|
+
this.touches = [t], this.initAnchor(t), e.stopPropagation();
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
onMouseMove: function(e) {
|
|
1371
|
+
this.touches.length && (this.processMove(e, [{
|
|
1372
|
+
fake: !0,
|
|
1373
|
+
clientX: e.clientX,
|
|
1374
|
+
clientY: e.clientY
|
|
1375
|
+
}]), e.preventDefault && e.cancelable && e.preventDefault(), e.stopPropagation());
|
|
1376
|
+
},
|
|
1377
|
+
onMouseUp: function() {
|
|
1378
|
+
this.processEnd();
|
|
1379
|
+
},
|
|
1380
|
+
initAnchor: function(e) {
|
|
1381
|
+
var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top;
|
|
1382
|
+
this.anchor = {
|
|
1383
|
+
x: e.clientX - n,
|
|
1384
|
+
y: e.clientY - r
|
|
1385
|
+
};
|
|
1386
|
+
},
|
|
1387
|
+
processMove: function(e, t) {
|
|
1388
|
+
var n = S(t);
|
|
1389
|
+
if (this.touches.length) {
|
|
1390
|
+
var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
|
|
1391
|
+
this.touches.length === 1 && n.length === 1 && this.$emit("move", new me({
|
|
1392
|
+
left: n[0].clientX - (i + this.anchor.x),
|
|
1393
|
+
top: n[0].clientY - (a + this.anchor.y)
|
|
1394
|
+
}));
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
processEnd: function() {
|
|
1398
|
+
this.touches.length && this.$emit("move-end"), this.touches = [];
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
emits: ["move", "move-end"]
|
|
1402
|
+
};
|
|
1403
|
+
rt.render = function(e, t, r, i, a, o) {
|
|
1404
|
+
return s(), n("div", {
|
|
1405
|
+
ref: "container",
|
|
1406
|
+
onTouchstart: t[1] ||= function() {
|
|
1407
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1408
|
+
},
|
|
1409
|
+
onMousedown: t[2] ||= function() {
|
|
1410
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1411
|
+
}
|
|
1412
|
+
}, [u(e.$slots, "default")], 544);
|
|
1413
|
+
};
|
|
1414
|
+
function it(e) {
|
|
1415
|
+
return {
|
|
1416
|
+
rotate: e.rotate || 0,
|
|
1417
|
+
flip: {
|
|
1418
|
+
horizontal: e?.flip?.horizontal || !1,
|
|
1419
|
+
vertical: e?.flip?.vertical || !1
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
function at(e) {
|
|
1424
|
+
return new Promise((function(t, n) {
|
|
1425
|
+
try {
|
|
1426
|
+
if (e) if (/^data:/i.test(e)) t(function(e) {
|
|
1427
|
+
e = e.replace(/^data:([^;]+);base64,/gim, "");
|
|
1428
|
+
for (var t = atob(e), n = t.length, r = new ArrayBuffer(n), i = new Uint8Array(r), a = 0; a < n; a++) i[a] = t.charCodeAt(a);
|
|
1429
|
+
return r;
|
|
1430
|
+
}(e));
|
|
1431
|
+
else if (/^blob:/i.test(e)) {
|
|
1432
|
+
var r = new FileReader();
|
|
1433
|
+
r.onload = function(e) {
|
|
1434
|
+
t(e.target.result);
|
|
1435
|
+
}, a = e, o = function(e) {
|
|
1436
|
+
r.readAsArrayBuffer(e);
|
|
1437
|
+
}, (s = new XMLHttpRequest()).open("GET", a, !0), s.responseType = "blob", s.onload = function() {
|
|
1438
|
+
this.status != 200 && this.status !== 0 || o(this.response);
|
|
1439
|
+
}, s.send();
|
|
1440
|
+
} else {
|
|
1441
|
+
var i = new XMLHttpRequest();
|
|
1442
|
+
i.onreadystatechange = function() {
|
|
1443
|
+
i.readyState === 4 && (i.status === 200 || i.status === 0 ? t(i.response) : n("Warning: could not load an image to parse its orientation"), i = null);
|
|
1444
|
+
}, i.onprogress = function() {
|
|
1445
|
+
i.getResponseHeader("content-type") !== "image/jpeg" && i.abort();
|
|
1446
|
+
}, i.withCredentials = !1, i.open("GET", e, !0), i.responseType = "arraybuffer", i.send(null);
|
|
1447
|
+
}
|
|
1448
|
+
else n("Error: the image is empty");
|
|
1449
|
+
} catch (e) {
|
|
1450
|
+
n(e);
|
|
1451
|
+
}
|
|
1452
|
+
var a, o, s;
|
|
1453
|
+
}));
|
|
1454
|
+
}
|
|
1455
|
+
function ot(e) {
|
|
1456
|
+
var t = e.rotate, n = e.flip, r = e.scaleX, i = e.scaleY, a = "";
|
|
1457
|
+
return a += " rotate(" + t + "deg) ", a += " scaleX(" + r * (n.horizontal ? -1 : 1) + ") ", a += " scaleY(" + i * (n.vertical ? -1 : 1) + ") ";
|
|
1458
|
+
}
|
|
1459
|
+
function st(e) {
|
|
1460
|
+
try {
|
|
1461
|
+
var t, n = new DataView(e), r = void 0, i = void 0, a = void 0, o = void 0;
|
|
1462
|
+
if (n.getUint8(0) === 255 && n.getUint8(1) === 216) for (var s = n.byteLength, c = 2; c + 1 < s;) {
|
|
1463
|
+
if (n.getUint8(c) === 255 && n.getUint8(c + 1) === 225) {
|
|
1464
|
+
a = c;
|
|
1465
|
+
break;
|
|
1466
|
+
}
|
|
1467
|
+
c++;
|
|
1468
|
+
}
|
|
1469
|
+
if (a && (r = a + 10, function(e, t, n) {
|
|
1470
|
+
var r, i = "";
|
|
1471
|
+
for (r = t, n += t; r < n; r++) i += String.fromCharCode(e.getUint8(r));
|
|
1472
|
+
return i;
|
|
1473
|
+
}(n, a + 4, 4) === "Exif")) {
|
|
1474
|
+
var l = n.getUint16(r);
|
|
1475
|
+
if (((i = l === 18761) || l === 19789) && n.getUint16(r + 2, i) === 42) {
|
|
1476
|
+
var u = n.getUint32(r + 4, i);
|
|
1477
|
+
u >= 8 && (o = r + u);
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
if (o) {
|
|
1481
|
+
for (var d = n.getUint16(o, i), f = 0; f < d; f++) if (c = o + 12 * f + 2, n.getUint16(c, i) === 274) {
|
|
1482
|
+
c += 8, t = n.getUint16(c, i), n.setUint16(c, 1, i);
|
|
1483
|
+
break;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
return t;
|
|
1487
|
+
} catch {
|
|
1488
|
+
return null;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
var ct = T("vue-preview-result"), lt = {
|
|
1492
|
+
name: "PreviewResult",
|
|
1493
|
+
props: {
|
|
1494
|
+
image: { type: Object },
|
|
1495
|
+
transitions: { type: Object },
|
|
1496
|
+
stencilCoordinates: {
|
|
1497
|
+
type: Object,
|
|
1498
|
+
default: function() {
|
|
1499
|
+
return {
|
|
1500
|
+
width: 0,
|
|
1501
|
+
height: 0,
|
|
1502
|
+
left: 0,
|
|
1503
|
+
top: 0
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
imageClass: { type: String }
|
|
1508
|
+
},
|
|
1509
|
+
computed: {
|
|
1510
|
+
classes: function() {
|
|
1511
|
+
return {
|
|
1512
|
+
root: ct(),
|
|
1513
|
+
wrapper: ct("wrapper"),
|
|
1514
|
+
imageWrapper: ct("image-wrapper"),
|
|
1515
|
+
image: w(ct("image"), this.imageClass)
|
|
1516
|
+
};
|
|
1517
|
+
},
|
|
1518
|
+
wrapperStyle: function() {
|
|
1519
|
+
var e = {
|
|
1520
|
+
width: `${this.stencilCoordinates.width}px`,
|
|
1521
|
+
height: `${this.stencilCoordinates.height}px`,
|
|
1522
|
+
left: `calc(50% - ${this.stencilCoordinates.width / 2}px)`,
|
|
1523
|
+
top: `calc(50% - ${this.stencilCoordinates.height / 2}px)`
|
|
1524
|
+
};
|
|
1525
|
+
return this.transitions && this.transitions.enabled && (e.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), e;
|
|
1526
|
+
},
|
|
1527
|
+
imageStyle: function() {
|
|
1528
|
+
var e = this.image.transforms, t = ke({
|
|
1529
|
+
width: this.image.width,
|
|
1530
|
+
height: this.image.height
|
|
1531
|
+
}, e.rotate), n = {
|
|
1532
|
+
width: `${this.image.width}px`,
|
|
1533
|
+
height: `${this.image.height}px`,
|
|
1534
|
+
left: "0px",
|
|
1535
|
+
top: "0px"
|
|
1536
|
+
}, r = {
|
|
1537
|
+
left: (this.image.width - t.width) * e.scaleX / 2,
|
|
1538
|
+
top: (this.image.height - t.height) * e.scaleY / 2
|
|
1539
|
+
}, i = {
|
|
1540
|
+
left: (1 - e.scaleX) * this.image.width / 2,
|
|
1541
|
+
top: (1 - e.scaleY) * this.image.height / 2
|
|
1542
|
+
};
|
|
1543
|
+
return n.transform = `translate(
|
|
1544
|
+
${-this.stencilCoordinates.left - e.translateX - r.left - i.left}px,${-this.stencilCoordinates.top - e.translateY - r.top - i.top}px) ` + ot(e), this.transitions && this.transitions.enabled && (n.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), n;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
function ut(e, t) {
|
|
1549
|
+
var n = t.getBoundingClientRect(), r = n.left, i = n.top, a = {
|
|
1550
|
+
left: 0,
|
|
1551
|
+
top: 0
|
|
1552
|
+
}, o = 0;
|
|
1553
|
+
return e.forEach((function(t) {
|
|
1554
|
+
a.left += (t.clientX - r) / e.length, a.top += (t.clientY - i) / e.length;
|
|
1555
|
+
})), e.forEach((function(e) {
|
|
1556
|
+
o += fe({
|
|
1557
|
+
x: a.left,
|
|
1558
|
+
y: a.top
|
|
1559
|
+
}, {
|
|
1560
|
+
x: e.clientX - r,
|
|
1561
|
+
y: e.clientY - i
|
|
1562
|
+
});
|
|
1563
|
+
})), {
|
|
1564
|
+
centerMass: a,
|
|
1565
|
+
spread: o,
|
|
1566
|
+
count: e.length
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
lt.render = function(e, t, r, a, o, c) {
|
|
1570
|
+
return s(), n("div", { class: c.classes.root }, [i("div", {
|
|
1571
|
+
ref: "wrapper",
|
|
1572
|
+
class: c.classes.wrapper,
|
|
1573
|
+
style: c.wrapperStyle
|
|
1574
|
+
}, [i("img", {
|
|
1575
|
+
ref: "image",
|
|
1576
|
+
src: r.image.src,
|
|
1577
|
+
class: c.classes.image,
|
|
1578
|
+
style: c.imageStyle
|
|
1579
|
+
}, null, 14, ["src"])], 6)], 2);
|
|
1580
|
+
};
|
|
1581
|
+
var dt = {
|
|
1582
|
+
props: {
|
|
1583
|
+
touchMove: {
|
|
1584
|
+
type: Boolean,
|
|
1585
|
+
required: !0
|
|
1586
|
+
},
|
|
1587
|
+
mouseMove: {
|
|
1588
|
+
type: Boolean,
|
|
1589
|
+
required: !0
|
|
1590
|
+
},
|
|
1591
|
+
touchResize: {
|
|
1592
|
+
type: Boolean,
|
|
1593
|
+
required: !0
|
|
1594
|
+
},
|
|
1595
|
+
wheelResize: {
|
|
1596
|
+
type: [Boolean, Object],
|
|
1597
|
+
required: !0
|
|
1598
|
+
},
|
|
1599
|
+
eventsFilter: {
|
|
1600
|
+
type: Function,
|
|
1601
|
+
required: !1
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
beforeMount: function() {
|
|
1605
|
+
window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
|
|
1606
|
+
},
|
|
1607
|
+
beforeUnmount: function() {
|
|
1608
|
+
window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
|
|
1609
|
+
},
|
|
1610
|
+
created: function() {
|
|
1611
|
+
this.transforming = !1, this.debouncedProcessEnd = ae(this.processEnd), this.touches = [];
|
|
1612
|
+
},
|
|
1613
|
+
methods: {
|
|
1614
|
+
processMove: function(e, t) {
|
|
1615
|
+
if (this.touches.length) {
|
|
1616
|
+
if (this.touches.length === 1 && t.length === 1) this.$emit("move", new j({
|
|
1617
|
+
left: this.touches[0].clientX - t[0].clientX,
|
|
1618
|
+
top: this.touches[0].clientY - t[0].clientY
|
|
1619
|
+
}));
|
|
1620
|
+
else if (this.touches.length > 1 && this.touchResize) {
|
|
1621
|
+
var n = ut(t, this.$refs.container), r = this.oldGeometricProperties;
|
|
1622
|
+
r.count === n.count && r.count > 1 && this.$emit("resize", new j({
|
|
1623
|
+
left: r.centerMass.left - n.centerMass.left,
|
|
1624
|
+
top: r.centerMass.top - n.centerMass.top
|
|
1625
|
+
}, {
|
|
1626
|
+
factor: r.spread / n.spread,
|
|
1627
|
+
center: n.centerMass
|
|
1628
|
+
})), this.oldGeometricProperties = n;
|
|
1629
|
+
}
|
|
1630
|
+
this.touches = t;
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
processEnd: function() {
|
|
1634
|
+
this.transforming && (this.transforming = !1, this.$emit("transform-end"));
|
|
1635
|
+
},
|
|
1636
|
+
processStart: function() {
|
|
1637
|
+
this.transforming = !0, this.debouncedProcessEnd.clear();
|
|
1638
|
+
},
|
|
1639
|
+
processEvent: function(e) {
|
|
1640
|
+
return this.eventsFilter ? !1 !== this.eventsFilter(e, this.transforming) : (e.preventDefault(), e.stopPropagation(), !0);
|
|
1641
|
+
},
|
|
1642
|
+
onTouchStart: function(e) {
|
|
1643
|
+
if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
|
|
1644
|
+
var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
|
|
1645
|
+
this.touches = S(e.touches).filter((function(e) {
|
|
1646
|
+
return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
|
|
1647
|
+
})), this.oldGeometricProperties = ut(this.touches, t);
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
onTouchEnd: function(e) {
|
|
1651
|
+
e.touches.length === 0 && (this.touches = [], this.processEnd());
|
|
1652
|
+
},
|
|
1653
|
+
onTouchMove: function(e) {
|
|
1654
|
+
var t = this;
|
|
1655
|
+
if (this.touches.length) {
|
|
1656
|
+
var n = S(e.touches).filter((function(e) {
|
|
1657
|
+
return !e.identifier || t.touches.find((function(t) {
|
|
1658
|
+
return t.identifier === e.identifier;
|
|
1659
|
+
}));
|
|
1660
|
+
}));
|
|
1661
|
+
this.processEvent(e) && (this.processMove(e, n), this.processStart());
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
onMouseDown: function(e) {
|
|
1665
|
+
if (this.mouseMove && "buttons" in e && e.buttons === 1 && this.processEvent(e)) {
|
|
1666
|
+
var t = {
|
|
1667
|
+
fake: !0,
|
|
1668
|
+
clientX: e.clientX,
|
|
1669
|
+
clientY: e.clientY
|
|
1670
|
+
};
|
|
1671
|
+
this.touches = [t], this.processStart();
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
onMouseMove: function(e) {
|
|
1675
|
+
this.touches.length && this.processEvent(e) && this.processMove(e, [{
|
|
1676
|
+
clientX: e.clientX,
|
|
1677
|
+
clientY: e.clientY
|
|
1678
|
+
}]);
|
|
1679
|
+
},
|
|
1680
|
+
onMouseUp: function() {
|
|
1681
|
+
this.touches = [], this.processEnd();
|
|
1682
|
+
},
|
|
1683
|
+
onWheel: function(e) {
|
|
1684
|
+
if (this.wheelResize && this.processEvent(e)) {
|
|
1685
|
+
var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || de(s) ? s : s > 0 ? 1 : -1), a = {
|
|
1686
|
+
left: e.clientX - n,
|
|
1687
|
+
top: e.clientY - r
|
|
1688
|
+
};
|
|
1689
|
+
this.$emit("resize", new j({}, {
|
|
1690
|
+
factor: i,
|
|
1691
|
+
center: a
|
|
1692
|
+
})), this.touches.length || this.debouncedProcessEnd();
|
|
1693
|
+
}
|
|
1694
|
+
var o, s;
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
emits: [
|
|
1698
|
+
"resize",
|
|
1699
|
+
"move",
|
|
1700
|
+
"transform-end"
|
|
1701
|
+
]
|
|
1702
|
+
};
|
|
1703
|
+
dt.render = function(e, t, r, i, a, o) {
|
|
1704
|
+
return s(), n("div", {
|
|
1705
|
+
ref: "container",
|
|
1706
|
+
onTouchstart: t[1] ||= function() {
|
|
1707
|
+
return o.onTouchStart && o.onTouchStart.apply(o, arguments);
|
|
1708
|
+
},
|
|
1709
|
+
onMousedown: t[2] ||= function() {
|
|
1710
|
+
return o.onMouseDown && o.onMouseDown.apply(o, arguments);
|
|
1711
|
+
},
|
|
1712
|
+
onWheel: t[3] ||= function() {
|
|
1713
|
+
return o.onWheel && o.onWheel.apply(o, arguments);
|
|
1714
|
+
}
|
|
1715
|
+
}, [u(e.$slots, "default")], 544);
|
|
1716
|
+
};
|
|
1717
|
+
var ft = {
|
|
1718
|
+
components: { TransformableImage: dt },
|
|
1719
|
+
props: {
|
|
1720
|
+
touchMove: {
|
|
1721
|
+
type: Boolean,
|
|
1722
|
+
required: !0
|
|
1723
|
+
},
|
|
1724
|
+
mouseMove: {
|
|
1725
|
+
type: Boolean,
|
|
1726
|
+
required: !0
|
|
1727
|
+
},
|
|
1728
|
+
touchResize: {
|
|
1729
|
+
type: Boolean,
|
|
1730
|
+
required: !0
|
|
1731
|
+
},
|
|
1732
|
+
wheelResize: {
|
|
1733
|
+
type: [Boolean, Object],
|
|
1734
|
+
required: !0
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
emits: ["resize", "move"]
|
|
1738
|
+
};
|
|
1739
|
+
ft.render = function(e, t, r, i, a, o) {
|
|
1740
|
+
var c = d("transformable-image");
|
|
1741
|
+
return s(), n(c, {
|
|
1742
|
+
"touch-move": r.touchMove,
|
|
1743
|
+
"touch-resize": r.touchResize,
|
|
1744
|
+
"mouse-move": r.mouseMove,
|
|
1745
|
+
"wheel-resize": r.wheelResize,
|
|
1746
|
+
onMove: t[1] ||= function(t) {
|
|
1747
|
+
return e.$emit("move", t);
|
|
1748
|
+
},
|
|
1749
|
+
onResize: t[2] ||= function(t) {
|
|
1750
|
+
return e.$emit("resize", t);
|
|
1751
|
+
}
|
|
1752
|
+
}, {
|
|
1753
|
+
default: g((function() {
|
|
1754
|
+
return [u(e.$slots, "default")];
|
|
1755
|
+
})),
|
|
1756
|
+
_: 3
|
|
1757
|
+
}, 8, [
|
|
1758
|
+
"touch-move",
|
|
1759
|
+
"touch-resize",
|
|
1760
|
+
"mouse-move",
|
|
1761
|
+
"wheel-resize"
|
|
1762
|
+
]);
|
|
1763
|
+
};
|
|
1764
|
+
var pt = T("vue-preview"), mt = {
|
|
1765
|
+
props: {
|
|
1766
|
+
coordinates: { type: Object },
|
|
1767
|
+
transitions: { type: Object },
|
|
1768
|
+
image: {
|
|
1769
|
+
type: Object,
|
|
1770
|
+
default: function() {
|
|
1771
|
+
return {};
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
imageClass: { type: String },
|
|
1775
|
+
width: { type: Number },
|
|
1776
|
+
height: { type: Number },
|
|
1777
|
+
fill: { type: Boolean }
|
|
1778
|
+
},
|
|
1779
|
+
data: function() {
|
|
1780
|
+
return {
|
|
1781
|
+
calculatedImageSize: {
|
|
1782
|
+
width: 0,
|
|
1783
|
+
height: 0
|
|
1784
|
+
},
|
|
1785
|
+
calculatedSize: {
|
|
1786
|
+
width: 0,
|
|
1787
|
+
height: 0
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
},
|
|
1791
|
+
computed: {
|
|
1792
|
+
classes: function() {
|
|
1793
|
+
return {
|
|
1794
|
+
root: pt({ fill: this.fill }),
|
|
1795
|
+
wrapper: pt("wrapper"),
|
|
1796
|
+
imageWrapper: pt("image-wrapper"),
|
|
1797
|
+
image: w(pt("image"), this.imageClass)
|
|
1798
|
+
};
|
|
1799
|
+
},
|
|
1800
|
+
style: function() {
|
|
1801
|
+
if (this.fill) return {};
|
|
1802
|
+
var e = {};
|
|
1803
|
+
return this.width && (e.width = `${this.size.width}px`), this.height && (e.height = `${this.size.height}px`), this.transitions && this.transitions.enabled && (e.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), e;
|
|
1804
|
+
},
|
|
1805
|
+
wrapperStyle: function() {
|
|
1806
|
+
var e = {
|
|
1807
|
+
width: `${this.size.width}px`,
|
|
1808
|
+
height: `${this.size.height}px`,
|
|
1809
|
+
left: `calc(50% - ${this.size.width / 2}px)`,
|
|
1810
|
+
top: `calc(50% - ${this.size.height / 2}px)`
|
|
1811
|
+
};
|
|
1812
|
+
return this.transitions && this.transitions.enabled && (e.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), e;
|
|
1813
|
+
},
|
|
1814
|
+
imageStyle: function() {
|
|
1815
|
+
if (this.coordinates && this.image) {
|
|
1816
|
+
var e = this.coordinates.width / this.size.width, t = b(b({
|
|
1817
|
+
rotate: 0,
|
|
1818
|
+
flip: {
|
|
1819
|
+
horizontal: !1,
|
|
1820
|
+
vertical: !1
|
|
1821
|
+
}
|
|
1822
|
+
}, this.image.transforms), {}, {
|
|
1823
|
+
scaleX: 1 / e,
|
|
1824
|
+
scaleY: 1 / e
|
|
1825
|
+
}), n = this.imageSize.width, r = this.imageSize.height, i = ke({
|
|
1826
|
+
width: n,
|
|
1827
|
+
height: r
|
|
1828
|
+
}, t.rotate), a = {
|
|
1829
|
+
width: `${n}px`,
|
|
1830
|
+
height: `${r}px`,
|
|
1831
|
+
left: "0px",
|
|
1832
|
+
top: "0px"
|
|
1833
|
+
}, o = {
|
|
1834
|
+
rotate: {
|
|
1835
|
+
left: (n - i.width) * t.scaleX / 2,
|
|
1836
|
+
top: (r - i.height) * t.scaleY / 2
|
|
1837
|
+
},
|
|
1838
|
+
scale: {
|
|
1839
|
+
left: (1 - t.scaleX) * n / 2,
|
|
1840
|
+
top: (1 - t.scaleY) * r / 2
|
|
1841
|
+
}
|
|
1842
|
+
};
|
|
1843
|
+
return a.transform = `translate(
|
|
1844
|
+
${-this.coordinates.left / e - o.rotate.left - o.scale.left}px,${-this.coordinates.top / e - o.rotate.top - o.scale.top}px) ` + ot(t), this.transitions && this.transitions.enabled && (a.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), a;
|
|
1845
|
+
}
|
|
1846
|
+
return {};
|
|
1847
|
+
},
|
|
1848
|
+
size: function() {
|
|
1849
|
+
return {
|
|
1850
|
+
width: this.width || this.calculatedSize.width,
|
|
1851
|
+
height: this.height || this.calculatedSize.height
|
|
1852
|
+
};
|
|
1853
|
+
},
|
|
1854
|
+
imageSize: function() {
|
|
1855
|
+
return {
|
|
1856
|
+
width: this.image.width || this.calculatedImageSize.width,
|
|
1857
|
+
height: this.image.height || this.calculatedImageSize.height
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
},
|
|
1861
|
+
watch: { image: function(e) {
|
|
1862
|
+
(e.width || e.height) && this.onChangeImage();
|
|
1863
|
+
} },
|
|
1864
|
+
mounted: function() {
|
|
1865
|
+
var e = this;
|
|
1866
|
+
this.onChangeImage(), this.$refs.image.addEventListener("load", (function() {
|
|
1867
|
+
e.refreshImage();
|
|
1868
|
+
})), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
|
|
1869
|
+
},
|
|
1870
|
+
unmounted: function() {
|
|
1871
|
+
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh);
|
|
1872
|
+
},
|
|
1873
|
+
methods: {
|
|
1874
|
+
refreshImage: function() {
|
|
1875
|
+
var e = this.$refs.image;
|
|
1876
|
+
this.calculatedImageSize.height = e.naturalHeight, this.calculatedImageSize.width = e.naturalWidth;
|
|
1877
|
+
},
|
|
1878
|
+
refresh: function() {
|
|
1879
|
+
var e = this.$refs.root;
|
|
1880
|
+
this.width || (this.calculatedSize.width = e.clientWidth), this.height || (this.calculatedSize.height = e.clientHeight);
|
|
1881
|
+
},
|
|
1882
|
+
onChangeImage: function() {
|
|
1883
|
+
var e = this.$refs.image;
|
|
1884
|
+
e && e.complete && this.refreshImage(), this.refresh();
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
};
|
|
1888
|
+
mt.render = function(e, t, r, a, o, c) {
|
|
1889
|
+
return s(), n("div", {
|
|
1890
|
+
ref: "root",
|
|
1891
|
+
class: c.classes.root,
|
|
1892
|
+
style: c.style
|
|
1893
|
+
}, [i("div", {
|
|
1894
|
+
ref: "wrapper",
|
|
1895
|
+
class: c.classes.wrapper,
|
|
1896
|
+
style: c.wrapperStyle
|
|
1897
|
+
}, [_(i("img", {
|
|
1898
|
+
ref: "image",
|
|
1899
|
+
src: r.image && r.image.src,
|
|
1900
|
+
class: c.classes.image,
|
|
1901
|
+
style: c.imageStyle
|
|
1902
|
+
}, null, 14, ["src"]), [[m, r.image && r.image.src]])], 6)], 6);
|
|
1903
|
+
};
|
|
1904
|
+
var ht = {
|
|
1905
|
+
components: { Preview: mt },
|
|
1906
|
+
inheritAttrs: !1
|
|
1907
|
+
};
|
|
1908
|
+
ht.render = function(e, t, r, i, a, c) {
|
|
1909
|
+
var l = d("preview");
|
|
1910
|
+
return s(), n(l, o(e.$attrs, { fill: !0 }), null, 16);
|
|
1911
|
+
};
|
|
1912
|
+
var gt = T("vue-rectangle-stencil"), _t = {
|
|
1913
|
+
name: "RectangleStencil",
|
|
1914
|
+
components: {
|
|
1915
|
+
StencilPreview: ht,
|
|
1916
|
+
BoundingBox: tt,
|
|
1917
|
+
DraggableArea: rt
|
|
1918
|
+
},
|
|
1919
|
+
props: {
|
|
1920
|
+
image: { type: Object },
|
|
1921
|
+
coordinates: { type: Object },
|
|
1922
|
+
stencilCoordinates: { type: Object },
|
|
1923
|
+
handlers: { type: Object },
|
|
1924
|
+
handlersComponent: {
|
|
1925
|
+
type: [Object, String],
|
|
1926
|
+
default: function() {
|
|
1927
|
+
return Z;
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
lines: { type: Object },
|
|
1931
|
+
linesComponent: {
|
|
1932
|
+
type: [Object, String],
|
|
1933
|
+
default: function() {
|
|
1934
|
+
return Q;
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
aspectRatio: { type: [Number, String] },
|
|
1938
|
+
minAspectRatio: { type: [Number, String] },
|
|
1939
|
+
maxAspectRatio: { type: [Number, String] },
|
|
1940
|
+
movable: {
|
|
1941
|
+
type: Boolean,
|
|
1942
|
+
default: !0
|
|
1943
|
+
},
|
|
1944
|
+
resizable: {
|
|
1945
|
+
type: Boolean,
|
|
1946
|
+
default: !0
|
|
1947
|
+
},
|
|
1948
|
+
transitions: { type: Object },
|
|
1949
|
+
movingClass: { type: String },
|
|
1950
|
+
resizingClass: { type: String },
|
|
1951
|
+
previewClass: { type: String },
|
|
1952
|
+
boundingBoxClass: { type: String },
|
|
1953
|
+
linesClasses: {
|
|
1954
|
+
type: Object,
|
|
1955
|
+
default: function() {
|
|
1956
|
+
return {};
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
linesWrappersClasses: {
|
|
1960
|
+
type: Object,
|
|
1961
|
+
default: function() {
|
|
1962
|
+
return {};
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
handlersClasses: {
|
|
1966
|
+
type: Object,
|
|
1967
|
+
default: function() {
|
|
1968
|
+
return {};
|
|
1969
|
+
}
|
|
1970
|
+
},
|
|
1971
|
+
handlersWrappersClasses: {
|
|
1972
|
+
type: Object,
|
|
1973
|
+
default: function() {
|
|
1974
|
+
return {};
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
},
|
|
1978
|
+
data: function() {
|
|
1979
|
+
return {
|
|
1980
|
+
moving: !1,
|
|
1981
|
+
resizing: !1
|
|
1982
|
+
};
|
|
1983
|
+
},
|
|
1984
|
+
computed: {
|
|
1985
|
+
classes: function() {
|
|
1986
|
+
return {
|
|
1987
|
+
stencil: w(gt({
|
|
1988
|
+
movable: this.movable,
|
|
1989
|
+
moving: this.moving,
|
|
1990
|
+
resizing: this.resizing
|
|
1991
|
+
}), this.moving && this.movingClass, this.resizing && this.resizingClass),
|
|
1992
|
+
preview: w(gt("preview"), this.previewClass),
|
|
1993
|
+
boundingBox: w(gt("bounding-box"), this.boundingBoxClass)
|
|
1994
|
+
};
|
|
1995
|
+
},
|
|
1996
|
+
style: function() {
|
|
1997
|
+
var e = this.stencilCoordinates, t = e.height, n = e.width, r = e.left, i = e.top, a = {
|
|
1998
|
+
width: `${n}px`,
|
|
1999
|
+
height: `${t}px`,
|
|
2000
|
+
transform: `translate(${r}px, ${i}px)`
|
|
2001
|
+
};
|
|
2002
|
+
return this.transitions && this.transitions.enabled && (a.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), a;
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
methods: {
|
|
2006
|
+
onMove: function(e) {
|
|
2007
|
+
this.$emit("move", e), this.moving = !0;
|
|
2008
|
+
},
|
|
2009
|
+
onMoveEnd: function() {
|
|
2010
|
+
this.$emit("move-end"), this.moving = !1;
|
|
2011
|
+
},
|
|
2012
|
+
onResize: function(e) {
|
|
2013
|
+
this.$emit("resize", e), this.resizing = !0;
|
|
2014
|
+
},
|
|
2015
|
+
onResizeEnd: function() {
|
|
2016
|
+
this.$emit("resize-end"), this.resizing = !1;
|
|
2017
|
+
},
|
|
2018
|
+
aspectRatios: function() {
|
|
2019
|
+
return {
|
|
2020
|
+
minimum: this.aspectRatio || this.minAspectRatio,
|
|
2021
|
+
maximum: this.aspectRatio || this.maxAspectRatio
|
|
2022
|
+
};
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
emits: [
|
|
2026
|
+
"resize",
|
|
2027
|
+
"resize-end",
|
|
2028
|
+
"move",
|
|
2029
|
+
"move-end"
|
|
2030
|
+
]
|
|
2031
|
+
};
|
|
2032
|
+
_t.render = function(e, t, r, a, o, c) {
|
|
2033
|
+
var l = d("stencil-preview"), u = d("draggable-area"), f = d("bounding-box");
|
|
2034
|
+
return s(), n("div", {
|
|
2035
|
+
class: c.classes.stencil,
|
|
2036
|
+
style: c.style
|
|
2037
|
+
}, [i(f, {
|
|
2038
|
+
width: r.stencilCoordinates.width,
|
|
2039
|
+
height: r.stencilCoordinates.height,
|
|
2040
|
+
transitions: r.transitions,
|
|
2041
|
+
class: c.classes.boundingBox,
|
|
2042
|
+
handlers: r.handlers,
|
|
2043
|
+
"handlers-component": r.handlersComponent,
|
|
2044
|
+
"handlers-classes": r.handlersClasses,
|
|
2045
|
+
"handlers-wrappers-classes": r.handlersWrappersClasses,
|
|
2046
|
+
lines: r.lines,
|
|
2047
|
+
"lines-component": r.linesComponent,
|
|
2048
|
+
"lines-classes": r.linesClasses,
|
|
2049
|
+
"lines-wrappers-classes": r.linesWrappersClasses,
|
|
2050
|
+
resizable: r.resizable,
|
|
2051
|
+
onResize: c.onResize,
|
|
2052
|
+
onResizeEnd: c.onResizeEnd
|
|
2053
|
+
}, {
|
|
2054
|
+
default: g((function() {
|
|
2055
|
+
return [i(u, {
|
|
2056
|
+
movable: r.movable,
|
|
2057
|
+
onMove: c.onMove,
|
|
2058
|
+
onMoveEnd: c.onMoveEnd
|
|
2059
|
+
}, {
|
|
2060
|
+
default: g((function() {
|
|
2061
|
+
return [i(l, {
|
|
2062
|
+
image: r.image,
|
|
2063
|
+
coordinates: r.coordinates,
|
|
2064
|
+
width: r.stencilCoordinates.width,
|
|
2065
|
+
height: r.stencilCoordinates.height,
|
|
2066
|
+
class: c.classes.preview,
|
|
2067
|
+
transitions: r.transitions
|
|
2068
|
+
}, null, 8, [
|
|
2069
|
+
"image",
|
|
2070
|
+
"coordinates",
|
|
2071
|
+
"width",
|
|
2072
|
+
"height",
|
|
2073
|
+
"class",
|
|
2074
|
+
"transitions"
|
|
2075
|
+
])];
|
|
2076
|
+
})),
|
|
2077
|
+
_: 1
|
|
2078
|
+
}, 8, [
|
|
2079
|
+
"movable",
|
|
2080
|
+
"onMove",
|
|
2081
|
+
"onMoveEnd"
|
|
2082
|
+
])];
|
|
2083
|
+
})),
|
|
2084
|
+
_: 1
|
|
2085
|
+
}, 8, [
|
|
2086
|
+
"width",
|
|
2087
|
+
"height",
|
|
2088
|
+
"transitions",
|
|
2089
|
+
"class",
|
|
2090
|
+
"handlers",
|
|
2091
|
+
"handlers-component",
|
|
2092
|
+
"handlers-classes",
|
|
2093
|
+
"handlers-wrappers-classes",
|
|
2094
|
+
"lines",
|
|
2095
|
+
"lines-component",
|
|
2096
|
+
"lines-classes",
|
|
2097
|
+
"lines-wrappers-classes",
|
|
2098
|
+
"resizable",
|
|
2099
|
+
"onResize",
|
|
2100
|
+
"onResizeEnd"
|
|
2101
|
+
])], 6);
|
|
2102
|
+
};
|
|
2103
|
+
var vt = T("vue-circle-stencil"), yt = {
|
|
2104
|
+
components: {
|
|
2105
|
+
StencilPreview: ht,
|
|
2106
|
+
BoundingBox: tt,
|
|
2107
|
+
DraggableArea: rt
|
|
2108
|
+
},
|
|
2109
|
+
props: {
|
|
2110
|
+
image: { type: Object },
|
|
2111
|
+
coordinates: { type: Object },
|
|
2112
|
+
stencilCoordinates: { type: Object },
|
|
2113
|
+
handlers: {
|
|
2114
|
+
type: Object,
|
|
2115
|
+
default: function() {
|
|
2116
|
+
return {
|
|
2117
|
+
eastNorth: !0,
|
|
2118
|
+
westNorth: !0,
|
|
2119
|
+
westSouth: !0,
|
|
2120
|
+
eastSouth: !0
|
|
2121
|
+
};
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
handlersComponent: {
|
|
2125
|
+
type: [Object, String],
|
|
2126
|
+
default: function() {
|
|
2127
|
+
return Z;
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
handlersClasses: {
|
|
2131
|
+
type: Object,
|
|
2132
|
+
default: function() {
|
|
2133
|
+
return {};
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
handlersWrappersClasses: {
|
|
2137
|
+
type: Object,
|
|
2138
|
+
default: function() {
|
|
2139
|
+
return {};
|
|
2140
|
+
}
|
|
2141
|
+
},
|
|
2142
|
+
lines: { type: Object },
|
|
2143
|
+
linesComponent: {
|
|
2144
|
+
type: [Object, String],
|
|
2145
|
+
default: function() {
|
|
2146
|
+
return Q;
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2149
|
+
linesClasses: {
|
|
2150
|
+
type: Object,
|
|
2151
|
+
default: function() {
|
|
2152
|
+
return {};
|
|
2153
|
+
}
|
|
2154
|
+
},
|
|
2155
|
+
linesWrappersClasses: {
|
|
2156
|
+
type: Object,
|
|
2157
|
+
default: function() {
|
|
2158
|
+
return {};
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
movable: {
|
|
2162
|
+
type: Boolean,
|
|
2163
|
+
default: !0
|
|
2164
|
+
},
|
|
2165
|
+
resizable: {
|
|
2166
|
+
type: Boolean,
|
|
2167
|
+
default: !0
|
|
2168
|
+
},
|
|
2169
|
+
transitions: { type: Object },
|
|
2170
|
+
movingClass: { type: String },
|
|
2171
|
+
resizingClass: { type: String },
|
|
2172
|
+
previewClass: { type: String },
|
|
2173
|
+
boundingBoxClass: { type: String }
|
|
2174
|
+
},
|
|
2175
|
+
data: function() {
|
|
2176
|
+
return {
|
|
2177
|
+
moving: !1,
|
|
2178
|
+
resizing: !1
|
|
2179
|
+
};
|
|
2180
|
+
},
|
|
2181
|
+
computed: {
|
|
2182
|
+
classes: function() {
|
|
2183
|
+
return {
|
|
2184
|
+
stencil: w(vt({
|
|
2185
|
+
movable: this.movable,
|
|
2186
|
+
moving: this.moving,
|
|
2187
|
+
resizing: this.resizing
|
|
2188
|
+
}), this.moving && this.movingClass, this.resizing && this.resizingClass),
|
|
2189
|
+
preview: w(vt("preview"), this.previewClass),
|
|
2190
|
+
boundingBox: w(vt("bounding-box"), this.boundingBoxClass)
|
|
2191
|
+
};
|
|
2192
|
+
},
|
|
2193
|
+
style: function() {
|
|
2194
|
+
var e = this.stencilCoordinates, t = e.height, n = e.width, r = e.left, i = e.top, a = {
|
|
2195
|
+
width: `${n}px`,
|
|
2196
|
+
height: `${t}px`,
|
|
2197
|
+
transform: `translate(${r}px, ${i}px)`
|
|
2198
|
+
};
|
|
2199
|
+
return this.transitions && this.transitions.enabled && (a.transition = `${this.transitions.time}ms ${this.transitions.timingFunction}`), a;
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
methods: {
|
|
2203
|
+
onMove: function(e) {
|
|
2204
|
+
this.$emit("move", e), this.moving = !0;
|
|
2205
|
+
},
|
|
2206
|
+
onMoveEnd: function() {
|
|
2207
|
+
this.$emit("move-end"), this.moving = !1;
|
|
2208
|
+
},
|
|
2209
|
+
onResize: function(e) {
|
|
2210
|
+
this.$emit("resize", e), this.resizing = !0;
|
|
2211
|
+
},
|
|
2212
|
+
onResizeEnd: function() {
|
|
2213
|
+
this.$emit("resize-end"), this.resizing = !1;
|
|
2214
|
+
},
|
|
2215
|
+
aspectRatios: function() {
|
|
2216
|
+
return {
|
|
2217
|
+
minimum: 1,
|
|
2218
|
+
maximum: 1
|
|
2219
|
+
};
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
emits: [
|
|
2223
|
+
"resize",
|
|
2224
|
+
"resize-end",
|
|
2225
|
+
"move",
|
|
2226
|
+
"move-end"
|
|
2227
|
+
]
|
|
2228
|
+
};
|
|
2229
|
+
yt.render = function(e, t, r, a, o, c) {
|
|
2230
|
+
var l = d("stencil-preview"), u = d("draggable-area"), f = d("bounding-box");
|
|
2231
|
+
return s(), n("div", {
|
|
2232
|
+
class: c.classes.stencil,
|
|
2233
|
+
style: c.style
|
|
2234
|
+
}, [i(f, {
|
|
2235
|
+
width: r.stencilCoordinates.width,
|
|
2236
|
+
height: r.stencilCoordinates.height,
|
|
2237
|
+
transitions: r.transitions,
|
|
2238
|
+
class: c.classes.boundingBox,
|
|
2239
|
+
handlers: r.handlers,
|
|
2240
|
+
"handlers-component": r.handlersComponent,
|
|
2241
|
+
"handlers-classes": r.handlersClasses,
|
|
2242
|
+
"handlers-wrappers-classes": r.handlersWrappersClasses,
|
|
2243
|
+
lines: r.lines,
|
|
2244
|
+
"lines-component": r.linesComponent,
|
|
2245
|
+
"lines-classes": r.linesClasses,
|
|
2246
|
+
"lines-wrappers-classes": r.linesWrappersClasses,
|
|
2247
|
+
resizable: r.resizable,
|
|
2248
|
+
onResize: c.onResize,
|
|
2249
|
+
onResizeEnd: c.onResizeEnd
|
|
2250
|
+
}, {
|
|
2251
|
+
default: g((function() {
|
|
2252
|
+
return [i(u, {
|
|
2253
|
+
movable: r.movable,
|
|
2254
|
+
onMove: c.onMove,
|
|
2255
|
+
onMoveEnd: c.onMoveEnd
|
|
2256
|
+
}, {
|
|
2257
|
+
default: g((function() {
|
|
2258
|
+
return [i(l, {
|
|
2259
|
+
image: r.image,
|
|
2260
|
+
coordinates: r.coordinates,
|
|
2261
|
+
width: r.stencilCoordinates.width,
|
|
2262
|
+
height: r.stencilCoordinates.height,
|
|
2263
|
+
class: c.classes.preview,
|
|
2264
|
+
transitions: r.transitions
|
|
2265
|
+
}, null, 8, [
|
|
2266
|
+
"image",
|
|
2267
|
+
"coordinates",
|
|
2268
|
+
"width",
|
|
2269
|
+
"height",
|
|
2270
|
+
"class",
|
|
2271
|
+
"transitions"
|
|
2272
|
+
])];
|
|
2273
|
+
})),
|
|
2274
|
+
_: 1
|
|
2275
|
+
}, 8, [
|
|
2276
|
+
"movable",
|
|
2277
|
+
"onMove",
|
|
2278
|
+
"onMoveEnd"
|
|
2279
|
+
])];
|
|
2280
|
+
})),
|
|
2281
|
+
_: 1
|
|
2282
|
+
}, 8, [
|
|
2283
|
+
"width",
|
|
2284
|
+
"height",
|
|
2285
|
+
"transitions",
|
|
2286
|
+
"class",
|
|
2287
|
+
"handlers",
|
|
2288
|
+
"handlers-component",
|
|
2289
|
+
"handlers-classes",
|
|
2290
|
+
"handlers-wrappers-classes",
|
|
2291
|
+
"lines",
|
|
2292
|
+
"lines-component",
|
|
2293
|
+
"lines-classes",
|
|
2294
|
+
"lines-wrappers-classes",
|
|
2295
|
+
"resizable",
|
|
2296
|
+
"onResize",
|
|
2297
|
+
"onResizeEnd"
|
|
2298
|
+
])], 6);
|
|
2299
|
+
};
|
|
2300
|
+
var bt = ["transitions"], $ = T("vue-advanced-cropper"), xt = {
|
|
2301
|
+
name: "Cropper",
|
|
2302
|
+
components: { BackgroundWrapper: ft },
|
|
2303
|
+
props: {
|
|
2304
|
+
src: {
|
|
2305
|
+
type: String,
|
|
2306
|
+
default: null
|
|
2307
|
+
},
|
|
2308
|
+
stencilComponent: {
|
|
2309
|
+
type: [Object, String],
|
|
2310
|
+
default: function() {
|
|
2311
|
+
return _t;
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
backgroundWrapperComponent: {
|
|
2315
|
+
type: [Object, String],
|
|
2316
|
+
default: function() {
|
|
2317
|
+
return ft;
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
stencilProps: {
|
|
2321
|
+
type: Object,
|
|
2322
|
+
default: function() {
|
|
2323
|
+
return {};
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
autoZoom: {
|
|
2327
|
+
type: Boolean,
|
|
2328
|
+
default: !1
|
|
2329
|
+
},
|
|
2330
|
+
imageClass: { type: String },
|
|
2331
|
+
boundariesClass: { type: String },
|
|
2332
|
+
backgroundClass: { type: String },
|
|
2333
|
+
foregroundClass: { type: String },
|
|
2334
|
+
minWidth: { type: [Number, String] },
|
|
2335
|
+
minHeight: { type: [Number, String] },
|
|
2336
|
+
maxWidth: { type: [Number, String] },
|
|
2337
|
+
maxHeight: { type: [Number, String] },
|
|
2338
|
+
debounce: {
|
|
2339
|
+
type: [Boolean, Number],
|
|
2340
|
+
default: 500
|
|
2341
|
+
},
|
|
2342
|
+
transitions: {
|
|
2343
|
+
type: Boolean,
|
|
2344
|
+
default: !0
|
|
2345
|
+
},
|
|
2346
|
+
checkOrientation: {
|
|
2347
|
+
type: Boolean,
|
|
2348
|
+
default: !0
|
|
2349
|
+
},
|
|
2350
|
+
canvas: {
|
|
2351
|
+
type: [Object, Boolean],
|
|
2352
|
+
default: !0
|
|
2353
|
+
},
|
|
2354
|
+
crossOrigin: {
|
|
2355
|
+
type: [Boolean, String],
|
|
2356
|
+
default: void 0
|
|
2357
|
+
},
|
|
2358
|
+
transitionTime: {
|
|
2359
|
+
type: Number,
|
|
2360
|
+
default: 300
|
|
2361
|
+
},
|
|
2362
|
+
imageRestriction: {
|
|
2363
|
+
type: String,
|
|
2364
|
+
default: "fit-area",
|
|
2365
|
+
validator: function(e) {
|
|
2366
|
+
return we.indexOf(e) !== -1;
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
roundResult: {
|
|
2370
|
+
type: Boolean,
|
|
2371
|
+
default: !0
|
|
2372
|
+
},
|
|
2373
|
+
defaultSize: { type: [Function, Object] },
|
|
2374
|
+
defaultPosition: { type: [Function, Object] },
|
|
2375
|
+
defaultVisibleArea: { type: [Function, Object] },
|
|
2376
|
+
defaultTransforms: { type: [Function, Object] },
|
|
2377
|
+
defaultBoundaries: {
|
|
2378
|
+
type: [Function, String],
|
|
2379
|
+
validator: function(e) {
|
|
2380
|
+
return !(typeof e == "string" && e !== "fill" && e !== "fit");
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
priority: {
|
|
2384
|
+
type: String,
|
|
2385
|
+
default: "coordinates"
|
|
2386
|
+
},
|
|
2387
|
+
stencilSize: { type: [Object, Function] },
|
|
2388
|
+
resizeImage: {
|
|
2389
|
+
type: [Boolean, Object],
|
|
2390
|
+
default: !0
|
|
2391
|
+
},
|
|
2392
|
+
moveImage: {
|
|
2393
|
+
type: [Boolean, Object],
|
|
2394
|
+
default: !0
|
|
2395
|
+
},
|
|
2396
|
+
autoZoomAlgorithm: { type: Function },
|
|
2397
|
+
resizeAlgorithm: {
|
|
2398
|
+
type: Function,
|
|
2399
|
+
default: function(e) {
|
|
2400
|
+
var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = E(E({}, n), {
|
|
2401
|
+
right: n.left + n.width,
|
|
2402
|
+
bottom: n.top + n.height
|
|
2403
|
+
}), s = t.params || {}, c = E({}, t.directions), l = s.allowedDirections || {
|
|
2404
|
+
left: !0,
|
|
2405
|
+
right: !0,
|
|
2406
|
+
bottom: !0,
|
|
2407
|
+
top: !0
|
|
2408
|
+
};
|
|
2409
|
+
a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), M.forEach((function(e) {
|
|
2410
|
+
l[e] || (c[e] = 0);
|
|
2411
|
+
}));
|
|
2412
|
+
var u = L(o, c = qe({
|
|
2413
|
+
coordinates: o,
|
|
2414
|
+
directions: c,
|
|
2415
|
+
sizeRestrictions: a,
|
|
2416
|
+
positionRestrictions: i
|
|
2417
|
+
})).width, d = L(o, c).height, f = s.preserveRatio ? V(o) : De(u / d, r);
|
|
2418
|
+
if (f) {
|
|
2419
|
+
var p = s.respectDirection;
|
|
2420
|
+
if (p ||= o.width >= o.height || f === 1 ? "width" : "height", p === "width") {
|
|
2421
|
+
var m = u / f - o.height;
|
|
2422
|
+
if (l.top && l.bottom) {
|
|
2423
|
+
var h = c.top, g = c.bottom;
|
|
2424
|
+
c.bottom = X(m, g, h), c.top = X(m, h, g);
|
|
2425
|
+
} else l.bottom ? c.bottom = m : l.top ? c.top = m : l.right ? c.right = 0 : l.left && (c.left = 0);
|
|
2426
|
+
} else if (p === "height") {
|
|
2427
|
+
var _ = o.width - d * f;
|
|
2428
|
+
if (l.left && l.right) {
|
|
2429
|
+
var v = c.left, y = c.right;
|
|
2430
|
+
c.left = -X(_, v, y), c.right = -X(_, y, v);
|
|
2431
|
+
} else l.left ? c.left = -_ : l.right ? c.right = -_ : l.top ? c.top = 0 : l.bottom && (c.bottom = 0);
|
|
2432
|
+
}
|
|
2433
|
+
c = qe({
|
|
2434
|
+
directions: c,
|
|
2435
|
+
coordinates: o,
|
|
2436
|
+
sizeRestrictions: a,
|
|
2437
|
+
positionRestrictions: i,
|
|
2438
|
+
preserveRatio: !0,
|
|
2439
|
+
compensate: s.compensate
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
return u = L(o, c).width, d = L(o, c).height, (f = s.preserveRatio ? V(o) : De(u / d, r)) && Math.abs(f - u / d) > .001 && M.forEach((function(e) {
|
|
2443
|
+
l[e] || (c[e] = 0);
|
|
2444
|
+
})), Fe({
|
|
2445
|
+
event: new me({
|
|
2446
|
+
left: -c.left,
|
|
2447
|
+
top: -c.top
|
|
2448
|
+
}),
|
|
2449
|
+
coordinates: {
|
|
2450
|
+
width: n.width + c.right + c.left,
|
|
2451
|
+
height: n.height + c.top + c.bottom,
|
|
2452
|
+
left: n.left,
|
|
2453
|
+
top: n.top
|
|
2454
|
+
},
|
|
2455
|
+
positionRestrictions: i
|
|
2456
|
+
});
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
moveAlgorithm: {
|
|
2460
|
+
type: Function,
|
|
2461
|
+
default: Fe
|
|
2462
|
+
},
|
|
2463
|
+
initStretcher: {
|
|
2464
|
+
type: Function,
|
|
2465
|
+
default: function(e) {
|
|
2466
|
+
var t = e.stretcher, n = e.imageSize, r = V(n);
|
|
2467
|
+
t.style.width = n.width + "px", t.style.height = t.clientWidth / r + "px", t.style.width = t.clientWidth + "px";
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
fitCoordinates: {
|
|
2471
|
+
type: Function,
|
|
2472
|
+
default: function(e) {
|
|
2473
|
+
var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = E(E({}, n), J({
|
|
2474
|
+
width: n.width,
|
|
2475
|
+
height: n.height,
|
|
2476
|
+
aspectRatio: r,
|
|
2477
|
+
sizeRestrictions: {
|
|
2478
|
+
maxWidth: t.width,
|
|
2479
|
+
maxHeight: t.height,
|
|
2480
|
+
minHeight: Math.min(t.height, i.minHeight),
|
|
2481
|
+
minWidth: Math.min(t.width, i.minWidth)
|
|
2482
|
+
}
|
|
2483
|
+
}));
|
|
2484
|
+
return o = K(o = z(o, P(F(n), F(o))), q(N(t), a));
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
fitVisibleArea: {
|
|
2488
|
+
type: Function,
|
|
2489
|
+
default: function(e) {
|
|
2490
|
+
var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = E({}, t);
|
|
2491
|
+
a.height = a.width / V(n), a.top += (t.height - a.height) / 2, (i.height - a.height > 0 || i.width - a.width > 0) && (a = B(a, Math.max(i.height / a.height, i.width / a.width)));
|
|
2492
|
+
var o = R(U(i, N(a = B(a, G(a, r({
|
|
2493
|
+
visibleArea: a,
|
|
2494
|
+
type: "resize"
|
|
2495
|
+
}))))));
|
|
2496
|
+
return a.width < i.width && (o.left = 0), a.height < i.height && (o.top = 0), a = K(a = z(a, o), r({
|
|
2497
|
+
visibleArea: a,
|
|
2498
|
+
type: "move"
|
|
2499
|
+
}));
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
areaRestrictionsAlgorithm: {
|
|
2503
|
+
type: Function,
|
|
2504
|
+
default: function(e) {
|
|
2505
|
+
var t = e.visibleArea, n = e.boundaries, r = e.imageSize, i = e.imageRestriction, a = e.type, o = {};
|
|
2506
|
+
return i === "fill-area" ? o = {
|
|
2507
|
+
left: 0,
|
|
2508
|
+
top: 0,
|
|
2509
|
+
right: r.width,
|
|
2510
|
+
bottom: r.height
|
|
2511
|
+
} : i === "fit-area" && (V(n) > V(r) ? (o = {
|
|
2512
|
+
top: 0,
|
|
2513
|
+
bottom: r.height
|
|
2514
|
+
}, t && a === "move" && (t.width > r.width ? (o.left = -(t.width - r.width) / 2, o.right = r.width - o.left) : (o.left = 0, o.right = r.width))) : (o = {
|
|
2515
|
+
left: 0,
|
|
2516
|
+
right: r.width
|
|
2517
|
+
}, t && a === "move" && (t.height > r.height ? (o.top = -(t.height - r.height) / 2, o.bottom = r.height - o.top) : (o.top = 0, o.bottom = r.height)))), o;
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
sizeRestrictionsAlgorithm: {
|
|
2521
|
+
type: Function,
|
|
2522
|
+
default: function(e) {
|
|
2523
|
+
return {
|
|
2524
|
+
minWidth: e.minWidth,
|
|
2525
|
+
minHeight: e.minHeight,
|
|
2526
|
+
maxWidth: e.maxWidth,
|
|
2527
|
+
maxHeight: e.maxHeight
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
},
|
|
2531
|
+
positionRestrictionsAlgorithm: {
|
|
2532
|
+
type: Function,
|
|
2533
|
+
default: function(e) {
|
|
2534
|
+
var t = e.imageSize, n = {};
|
|
2535
|
+
return e.imageRestriction !== "none" && (n = {
|
|
2536
|
+
left: 0,
|
|
2537
|
+
top: 0,
|
|
2538
|
+
right: t.width,
|
|
2539
|
+
bottom: t.height
|
|
2540
|
+
}), n;
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
data: function() {
|
|
2545
|
+
return {
|
|
2546
|
+
transitionsActive: !1,
|
|
2547
|
+
imageLoaded: !1,
|
|
2548
|
+
imageAttributes: {
|
|
2549
|
+
width: null,
|
|
2550
|
+
height: null,
|
|
2551
|
+
crossOrigin: null,
|
|
2552
|
+
src: null
|
|
2553
|
+
},
|
|
2554
|
+
defaultImageTransforms: {
|
|
2555
|
+
rotate: 0,
|
|
2556
|
+
flip: {
|
|
2557
|
+
horizontal: !1,
|
|
2558
|
+
vertical: !1
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
appliedImageTransforms: {
|
|
2562
|
+
rotate: 0,
|
|
2563
|
+
flip: {
|
|
2564
|
+
horizontal: !1,
|
|
2565
|
+
vertical: !1
|
|
2566
|
+
}
|
|
2567
|
+
},
|
|
2568
|
+
boundaries: {
|
|
2569
|
+
width: 0,
|
|
2570
|
+
height: 0
|
|
2571
|
+
},
|
|
2572
|
+
visibleArea: null,
|
|
2573
|
+
coordinates: b({}, Te)
|
|
2574
|
+
};
|
|
2575
|
+
},
|
|
2576
|
+
computed: {
|
|
2577
|
+
image: function() {
|
|
2578
|
+
return {
|
|
2579
|
+
src: this.imageAttributes.src,
|
|
2580
|
+
width: this.imageAttributes.width,
|
|
2581
|
+
height: this.imageAttributes.height,
|
|
2582
|
+
transforms: this.imageTransforms
|
|
2583
|
+
};
|
|
2584
|
+
},
|
|
2585
|
+
imageTransforms: function() {
|
|
2586
|
+
return {
|
|
2587
|
+
rotate: this.appliedImageTransforms.rotate,
|
|
2588
|
+
flip: {
|
|
2589
|
+
horizontal: this.appliedImageTransforms.flip.horizontal,
|
|
2590
|
+
vertical: this.appliedImageTransforms.flip.vertical
|
|
2591
|
+
},
|
|
2592
|
+
translateX: this.visibleArea ? this.visibleArea.left / this.coefficient : 0,
|
|
2593
|
+
translateY: this.visibleArea ? this.visibleArea.top / this.coefficient : 0,
|
|
2594
|
+
scaleX: 1 / this.coefficient,
|
|
2595
|
+
scaleY: 1 / this.coefficient
|
|
2596
|
+
};
|
|
2597
|
+
},
|
|
2598
|
+
imageSize: function() {
|
|
2599
|
+
var e = function(e) {
|
|
2600
|
+
return e * Math.PI / 180;
|
|
2601
|
+
}(this.imageTransforms.rotate);
|
|
2602
|
+
return {
|
|
2603
|
+
width: Math.abs(this.imageAttributes.width * Math.cos(e)) + Math.abs(this.imageAttributes.height * Math.sin(e)),
|
|
2604
|
+
height: Math.abs(this.imageAttributes.width * Math.sin(e)) + Math.abs(this.imageAttributes.height * Math.cos(e))
|
|
2605
|
+
};
|
|
2606
|
+
},
|
|
2607
|
+
initialized: function() {
|
|
2608
|
+
return !!(this.visibleArea && this.imageLoaded);
|
|
2609
|
+
},
|
|
2610
|
+
settings: function() {
|
|
2611
|
+
var e = le(this.resizeImage, {
|
|
2612
|
+
touch: !0,
|
|
2613
|
+
wheel: { ratio: .1 },
|
|
2614
|
+
adjustStencil: !0
|
|
2615
|
+
}, {
|
|
2616
|
+
touch: !1,
|
|
2617
|
+
wheel: !1,
|
|
2618
|
+
adjustStencil: !1
|
|
2619
|
+
});
|
|
2620
|
+
return {
|
|
2621
|
+
moveImage: le(this.moveImage, {
|
|
2622
|
+
touch: !0,
|
|
2623
|
+
mouse: !0
|
|
2624
|
+
}, {
|
|
2625
|
+
touch: !1,
|
|
2626
|
+
mouse: !1
|
|
2627
|
+
}),
|
|
2628
|
+
resizeImage: e
|
|
2629
|
+
};
|
|
2630
|
+
},
|
|
2631
|
+
coefficient: function() {
|
|
2632
|
+
return this.visibleArea ? this.visibleArea.width / this.boundaries.width : 0;
|
|
2633
|
+
},
|
|
2634
|
+
areaRestrictions: function() {
|
|
2635
|
+
return this.imageLoaded ? this.areaRestrictionsAlgorithm({
|
|
2636
|
+
imageSize: this.imageSize,
|
|
2637
|
+
imageRestriction: this.imageRestriction,
|
|
2638
|
+
boundaries: this.boundaries
|
|
2639
|
+
}) : {};
|
|
2640
|
+
},
|
|
2641
|
+
transitionsOptions: function() {
|
|
2642
|
+
return {
|
|
2643
|
+
enabled: this.transitionsActive,
|
|
2644
|
+
timingFunction: "ease-in-out",
|
|
2645
|
+
time: 350
|
|
2646
|
+
};
|
|
2647
|
+
},
|
|
2648
|
+
sizeRestrictions: function() {
|
|
2649
|
+
if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
|
|
2650
|
+
var e = this.sizeRestrictionsAlgorithm({
|
|
2651
|
+
imageSize: this.imageSize,
|
|
2652
|
+
minWidth: O(this.minWidth) ? 0 : A(this.minWidth),
|
|
2653
|
+
minHeight: O(this.minHeight) ? 0 : A(this.minHeight),
|
|
2654
|
+
maxWidth: O(this.maxWidth) ? Infinity : A(this.maxWidth),
|
|
2655
|
+
maxHeight: O(this.maxHeight) ? Infinity : A(this.maxHeight)
|
|
2656
|
+
});
|
|
2657
|
+
if (e = function(e) {
|
|
2658
|
+
var t = e.areaRestrictions, n = e.sizeRestrictions;
|
|
2659
|
+
e.imageSize;
|
|
2660
|
+
var r = e.boundaries, i = e.positionRestrictions;
|
|
2661
|
+
e.imageRestriction;
|
|
2662
|
+
var a = E(E({}, n), {
|
|
2663
|
+
minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
|
|
2664
|
+
minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
|
|
2665
|
+
maxWidth: n.maxWidth === void 0 ? Infinity : n.maxWidth,
|
|
2666
|
+
maxHeight: n.maxHeight === void 0 ? Infinity : n.maxHeight
|
|
2667
|
+
});
|
|
2668
|
+
i.left !== void 0 && i.right !== void 0 && (a.maxWidth = Math.min(a.maxWidth, i.right - i.left)), i.bottom !== void 0 && i.top !== void 0 && (a.maxHeight = Math.min(a.maxHeight, i.bottom - i.top));
|
|
2669
|
+
var o = Ae(t), s = Oe(r, o);
|
|
2670
|
+
return o.width < Infinity && (!a.maxWidth || a.maxWidth > s.width) && (a.maxWidth = Math.min(a.maxWidth, s.width)), o.height < Infinity && (!a.maxHeight || a.maxHeight > s.height) && (a.maxHeight = Math.min(a.maxHeight, s.height)), a.minWidth > a.maxWidth && (a.minWidth = a.maxWidth, a.widthFrozen = !0), a.minHeight > a.maxHeight && (a.minHeight = a.maxHeight, a.heightFrozen = !0), a;
|
|
2671
|
+
}({
|
|
2672
|
+
sizeRestrictions: e,
|
|
2673
|
+
areaRestrictions: this.getAreaRestrictions({
|
|
2674
|
+
visibleArea: this.visibleArea,
|
|
2675
|
+
type: "resize"
|
|
2676
|
+
}),
|
|
2677
|
+
imageSize: this.imageSize,
|
|
2678
|
+
boundaries: this.boundaries,
|
|
2679
|
+
positionRestrictions: this.positionRestrictions,
|
|
2680
|
+
imageRestriction: this.imageRestriction,
|
|
2681
|
+
visibleArea: this.visibleArea,
|
|
2682
|
+
stencilSize: this.getStencilSize()
|
|
2683
|
+
}), this.visibleArea && this.stencilSize) {
|
|
2684
|
+
var t = this.getStencilSize(), n = Ae(this.getAreaRestrictions({
|
|
2685
|
+
visibleArea: this.visibleArea,
|
|
2686
|
+
type: "resize"
|
|
2687
|
+
}));
|
|
2688
|
+
e.maxWidth = Math.min(e.maxWidth, n.width * t.width / this.boundaries.width), e.maxHeight = Math.min(e.maxHeight, n.height * t.height / this.boundaries.height), e.maxWidth < e.minWidth && (e.minWidth = e.maxWidth), e.maxHeight < e.minHeight && (e.minHeight = e.maxHeight);
|
|
2689
|
+
}
|
|
2690
|
+
return e;
|
|
2691
|
+
}
|
|
2692
|
+
return {
|
|
2693
|
+
minWidth: 0,
|
|
2694
|
+
minHeight: 0,
|
|
2695
|
+
maxWidth: 0,
|
|
2696
|
+
maxHeight: 0
|
|
2697
|
+
};
|
|
2698
|
+
},
|
|
2699
|
+
positionRestrictions: function() {
|
|
2700
|
+
return this.positionRestrictionsAlgorithm({
|
|
2701
|
+
imageSize: this.imageSize,
|
|
2702
|
+
imageRestriction: this.imageRestriction
|
|
2703
|
+
});
|
|
2704
|
+
},
|
|
2705
|
+
classes: function() {
|
|
2706
|
+
return {
|
|
2707
|
+
cropper: $(),
|
|
2708
|
+
image: w($("image"), this.imageClass),
|
|
2709
|
+
stencil: $("stencil"),
|
|
2710
|
+
boundaries: w($("boundaries"), this.boundariesClass),
|
|
2711
|
+
stretcher: w($("stretcher")),
|
|
2712
|
+
background: w($("background"), this.backgroundClass),
|
|
2713
|
+
foreground: w($("foreground"), this.foregroundClass),
|
|
2714
|
+
imageWrapper: w($("image-wrapper")),
|
|
2715
|
+
cropperWrapper: w($("cropper-wrapper"))
|
|
2716
|
+
};
|
|
2717
|
+
},
|
|
2718
|
+
stencilCoordinates: function() {
|
|
2719
|
+
if (this.initialized) {
|
|
2720
|
+
var e = this.coordinates, t = e.width, n = e.height, r = e.left, i = e.top;
|
|
2721
|
+
return {
|
|
2722
|
+
width: t / this.coefficient,
|
|
2723
|
+
height: n / this.coefficient,
|
|
2724
|
+
left: (r - this.visibleArea.left) / this.coefficient,
|
|
2725
|
+
top: (i - this.visibleArea.top) / this.coefficient
|
|
2726
|
+
};
|
|
2727
|
+
}
|
|
2728
|
+
return this.defaultCoordinates();
|
|
2729
|
+
},
|
|
2730
|
+
boundariesStyle: function() {
|
|
2731
|
+
var e = {
|
|
2732
|
+
width: this.boundaries.width ? `${Math.round(this.boundaries.width)}px` : "auto",
|
|
2733
|
+
height: this.boundaries.height ? `${Math.round(this.boundaries.height)}px` : "auto",
|
|
2734
|
+
transition: `opacity ${this.transitionTime}ms`,
|
|
2735
|
+
pointerEvents: this.imageLoaded ? "all" : "none"
|
|
2736
|
+
};
|
|
2737
|
+
return this.imageLoaded || (e.opacity = "0"), e;
|
|
2738
|
+
},
|
|
2739
|
+
imageStyle: function() {
|
|
2740
|
+
var e = this.imageAttributes.width > this.imageAttributes.height ? {
|
|
2741
|
+
width: Math.min(1024, this.imageAttributes.width),
|
|
2742
|
+
height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height)
|
|
2743
|
+
} : {
|
|
2744
|
+
height: Math.min(1024, this.imageAttributes.height),
|
|
2745
|
+
width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height)
|
|
2746
|
+
}, t = {
|
|
2747
|
+
left: (e.width - this.imageSize.width) / (2 * this.coefficient),
|
|
2748
|
+
top: (e.height - this.imageSize.height) / (2 * this.coefficient)
|
|
2749
|
+
}, n = {
|
|
2750
|
+
left: (1 - 1 / this.coefficient) * e.width / 2,
|
|
2751
|
+
top: (1 - 1 / this.coefficient) * e.height / 2
|
|
2752
|
+
}, r = b(b({}, this.imageTransforms), {}, {
|
|
2753
|
+
scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width),
|
|
2754
|
+
scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height)
|
|
2755
|
+
}), i = {
|
|
2756
|
+
width: `${e.width}px`,
|
|
2757
|
+
height: `${e.height}px`,
|
|
2758
|
+
left: "0px",
|
|
2759
|
+
top: "0px",
|
|
2760
|
+
transform: `translate(${-t.left - n.left - this.imageTransforms.translateX}px, ${-t.top - n.top - this.imageTransforms.translateY}px)` + ot(r)
|
|
2761
|
+
};
|
|
2762
|
+
return this.transitionsOptions.enabled && (i.transition = `${this.transitionsOptions.time}ms ${this.transitionsOptions.timingFunction}`), i;
|
|
2763
|
+
}
|
|
2764
|
+
},
|
|
2765
|
+
watch: {
|
|
2766
|
+
src: function() {
|
|
2767
|
+
this.onChangeImage();
|
|
2768
|
+
},
|
|
2769
|
+
stencilComponent: function() {
|
|
2770
|
+
var e = this;
|
|
2771
|
+
this.$nextTick((function() {
|
|
2772
|
+
e.resetCoordinates(), e.runAutoZoom("setCoordinates"), e.onChange();
|
|
2773
|
+
}));
|
|
2774
|
+
},
|
|
2775
|
+
minWidth: function() {
|
|
2776
|
+
this.onPropsChange();
|
|
2777
|
+
},
|
|
2778
|
+
maxWidth: function() {
|
|
2779
|
+
this.onPropsChange();
|
|
2780
|
+
},
|
|
2781
|
+
minHeight: function() {
|
|
2782
|
+
this.onPropsChange();
|
|
2783
|
+
},
|
|
2784
|
+
maxHeight: function() {
|
|
2785
|
+
this.onPropsChange();
|
|
2786
|
+
},
|
|
2787
|
+
imageRestriction: function() {
|
|
2788
|
+
this.reset();
|
|
2789
|
+
},
|
|
2790
|
+
stencilProps: function(e, t) {
|
|
2791
|
+
[
|
|
2792
|
+
"aspectRatio",
|
|
2793
|
+
"minAspectRatio",
|
|
2794
|
+
"maxAspectRatio"
|
|
2795
|
+
].find((function(n) {
|
|
2796
|
+
return e[n] !== t[n];
|
|
2797
|
+
})) && this.$nextTick(this.onPropsChange);
|
|
2798
|
+
}
|
|
2799
|
+
},
|
|
2800
|
+
created: function() {
|
|
2801
|
+
this.debouncedUpdate = ae(this.update, this.debounce), this.debouncedDisableTransitions = ae(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
|
|
2802
|
+
},
|
|
2803
|
+
mounted: function() {
|
|
2804
|
+
this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
|
|
2805
|
+
},
|
|
2806
|
+
unmounted: function() {
|
|
2807
|
+
window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh), this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.debouncedUpdate.clear(), this.debouncedDisableTransitions.clear();
|
|
2808
|
+
},
|
|
2809
|
+
methods: {
|
|
2810
|
+
getResult: function() {
|
|
2811
|
+
var e = this.initialized ? this.prepareResult(b({}, this.coordinates)) : this.defaultCoordinates(), t = {
|
|
2812
|
+
rotate: this.imageTransforms.rotate % 360,
|
|
2813
|
+
flip: b({}, this.imageTransforms.flip)
|
|
2814
|
+
};
|
|
2815
|
+
if (this.src && this.imageLoaded) {
|
|
2816
|
+
var n = this;
|
|
2817
|
+
return {
|
|
2818
|
+
image: this.image,
|
|
2819
|
+
coordinates: e,
|
|
2820
|
+
visibleArea: this.visibleArea ? b({}, this.visibleArea) : null,
|
|
2821
|
+
imageTransforms: t,
|
|
2822
|
+
get canvas() {
|
|
2823
|
+
return n.canvas ? n.getCanvas() : void 0;
|
|
2824
|
+
}
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
return {
|
|
2828
|
+
image: this.image,
|
|
2829
|
+
coordinates: e,
|
|
2830
|
+
visibleArea: this.visibleArea ? b({}, this.visibleArea) : null,
|
|
2831
|
+
canvas: void 0,
|
|
2832
|
+
imageTransforms: t
|
|
2833
|
+
};
|
|
2834
|
+
},
|
|
2835
|
+
zoom: function(e, t) {
|
|
2836
|
+
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
2837
|
+
this.onManipulateImage(new j({}, {
|
|
2838
|
+
factor: 1 / e,
|
|
2839
|
+
center: t
|
|
2840
|
+
}), {
|
|
2841
|
+
normalize: !1,
|
|
2842
|
+
transitions: r
|
|
2843
|
+
});
|
|
2844
|
+
},
|
|
2845
|
+
move: function(e, t) {
|
|
2846
|
+
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
2847
|
+
this.onManipulateImage(new j({
|
|
2848
|
+
left: e || 0,
|
|
2849
|
+
top: t || 0
|
|
2850
|
+
}), {
|
|
2851
|
+
normalize: !1,
|
|
2852
|
+
transitions: r
|
|
2853
|
+
});
|
|
2854
|
+
},
|
|
2855
|
+
setCoordinates: function(e) {
|
|
2856
|
+
var t = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.autoZoom, i = r === void 0 || r, a = n.transitions, o = a === void 0 || a;
|
|
2857
|
+
this.$nextTick((function() {
|
|
2858
|
+
t.imageLoaded ? (t.transitionsActive || (o && t.enableTransitions(), t.coordinates = t.applyTransform(e), i && t.runAutoZoom("setCoordinates"), o && t.debouncedDisableTransitions()), t.onChange()) : t.delayedTransforms = e;
|
|
2859
|
+
}));
|
|
2860
|
+
},
|
|
2861
|
+
refresh: function() {
|
|
2862
|
+
var e = this, t = this.$refs.image;
|
|
2863
|
+
if (this.src && t) return this.initialized ? this.updateVisibleArea().then((function() {
|
|
2864
|
+
e.onChange();
|
|
2865
|
+
})) : this.resetVisibleArea().then((function() {
|
|
2866
|
+
e.onChange();
|
|
2867
|
+
}));
|
|
2868
|
+
},
|
|
2869
|
+
reset: function() {
|
|
2870
|
+
var e = this;
|
|
2871
|
+
return this.resetVisibleArea().then((function() {
|
|
2872
|
+
e.onChange(!1);
|
|
2873
|
+
}));
|
|
2874
|
+
},
|
|
2875
|
+
awaitRender: function(e) {
|
|
2876
|
+
var t = this;
|
|
2877
|
+
this.awaiting || (this.awaiting = !0, this.$nextTick((function() {
|
|
2878
|
+
e(), t.awaiting = !1;
|
|
2879
|
+
})));
|
|
2880
|
+
},
|
|
2881
|
+
prepareResult: function(e) {
|
|
2882
|
+
return this.roundResult ? function(e) {
|
|
2883
|
+
var t = e.coordinates, n = e.sizeRestrictions, r = e.positionRestrictions, i = {
|
|
2884
|
+
width: Math.round(t.width),
|
|
2885
|
+
height: Math.round(t.height),
|
|
2886
|
+
left: Math.round(t.left),
|
|
2887
|
+
top: Math.round(t.top)
|
|
2888
|
+
};
|
|
2889
|
+
return i.width > n.maxWidth ? i.width = Math.floor(t.width) : i.width < n.minWidth && (i.width = Math.ceil(t.width)), i.height > n.maxHeight ? i.height = Math.floor(t.height) : i.height < n.minHeight && (i.height = Math.ceil(t.height)), K(i, r);
|
|
2890
|
+
}(b(b({}, this.getPublicProperties()), {}, {
|
|
2891
|
+
positionRestrictions: Y(this.positionRestrictions, this.visibleArea),
|
|
2892
|
+
coordinates: e
|
|
2893
|
+
})) : e;
|
|
2894
|
+
},
|
|
2895
|
+
processAutoZoom: function(e, t, n, r) {
|
|
2896
|
+
var i = this.autoZoomAlgorithm;
|
|
2897
|
+
i ||= this.stencilSize ? Le : this.autoZoom ? Re : ze;
|
|
2898
|
+
var a = i({
|
|
2899
|
+
event: {
|
|
2900
|
+
type: e,
|
|
2901
|
+
params: r
|
|
2902
|
+
},
|
|
2903
|
+
visibleArea: t,
|
|
2904
|
+
coordinates: n,
|
|
2905
|
+
boundaries: this.boundaries,
|
|
2906
|
+
aspectRatio: this.getAspectRatio(),
|
|
2907
|
+
positionRestrictions: this.positionRestrictions,
|
|
2908
|
+
getAreaRestrictions: this.getAreaRestrictions,
|
|
2909
|
+
sizeRestrictions: this.sizeRestrictions,
|
|
2910
|
+
stencilSize: this.getStencilSize()
|
|
2911
|
+
});
|
|
2912
|
+
return b(b({}, a), {}, { changed: !Ee(a.visibleArea, t) || !Ee(a.coordinates, n) });
|
|
2913
|
+
},
|
|
2914
|
+
runAutoZoom: function(e) {
|
|
2915
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = ee(t, bt), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
|
|
2916
|
+
r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
|
|
2917
|
+
},
|
|
2918
|
+
normalizeEvent: function(e) {
|
|
2919
|
+
return function(e) {
|
|
2920
|
+
var t = e.event, n = e.visibleArea, r = e.coefficient;
|
|
2921
|
+
if (t.type === "manipulateImage") return E(E({}, t), {
|
|
2922
|
+
move: {
|
|
2923
|
+
left: t.move && t.move.left ? r * t.move.left : 0,
|
|
2924
|
+
top: t.move && t.move.top ? r * t.move.top : 0
|
|
2925
|
+
},
|
|
2926
|
+
scale: {
|
|
2927
|
+
factor: t.scale && t.scale.factor ? t.scale.factor : 1,
|
|
2928
|
+
center: t.scale && t.scale.center ? {
|
|
2929
|
+
left: t.scale.center.left * r + n.left,
|
|
2930
|
+
top: t.scale.center.top * r + n.top
|
|
2931
|
+
} : null
|
|
2932
|
+
}
|
|
2933
|
+
});
|
|
2934
|
+
if (t.type === "resize") {
|
|
2935
|
+
var i = E(E({}, t), { directions: E({}, t.directions) });
|
|
2936
|
+
return M.forEach((function(e) {
|
|
2937
|
+
i.directions[e] *= r;
|
|
2938
|
+
})), i;
|
|
2939
|
+
}
|
|
2940
|
+
if (t.type === "move") {
|
|
2941
|
+
var a = E(E({}, t), { directions: E({}, t.directions) });
|
|
2942
|
+
return Ce.forEach((function(e) {
|
|
2943
|
+
a.directions[e] *= r;
|
|
2944
|
+
})), a;
|
|
2945
|
+
}
|
|
2946
|
+
return t;
|
|
2947
|
+
}(b(b({}, this.getPublicProperties()), {}, { event: e }));
|
|
2948
|
+
},
|
|
2949
|
+
getCanvas: function() {
|
|
2950
|
+
if (this.$refs.canvas) {
|
|
2951
|
+
var e = this.$refs.canvas, t = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(e, t, n) {
|
|
2952
|
+
var r = n.rotate, i = n.flip, a = {
|
|
2953
|
+
width: t.naturalWidth,
|
|
2954
|
+
height: t.naturalHeight
|
|
2955
|
+
}, o = ke(a, r), s = e.getContext("2d");
|
|
2956
|
+
e.height = o.height, e.width = o.width, s.save();
|
|
2957
|
+
var c = W(F(E({
|
|
2958
|
+
left: 0,
|
|
2959
|
+
top: 0
|
|
2960
|
+
}, a)), r);
|
|
2961
|
+
return s.translate(-(c.left - o.width / 2), -(c.top - o.height / 2)), s.rotate(r * Math.PI / 180), s.translate(i.horizontal ? a.width : 0, i.vertical ? a.height : 0), s.scale(i.horizontal ? -1 : 1, i.vertical ? -1 : 1), s.drawImage(t, 0, 0, a.width, a.height), s.restore(), e;
|
|
2962
|
+
}(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = b({
|
|
2963
|
+
minWidth: 0,
|
|
2964
|
+
minHeight: 0,
|
|
2965
|
+
maxWidth: Infinity,
|
|
2966
|
+
maxHeight: Infinity,
|
|
2967
|
+
maxArea: this.maxCanvasSize,
|
|
2968
|
+
imageSmoothingEnabled: !0,
|
|
2969
|
+
imageSmoothingQuality: "high",
|
|
2970
|
+
fillColor: "transparent"
|
|
2971
|
+
}, this.canvas), i = function(e) {
|
|
2972
|
+
return e.find((function(e) {
|
|
2973
|
+
return t = e, !Number.isNaN(parseFloat(t)) && isFinite(t);
|
|
2974
|
+
var t;
|
|
2975
|
+
}));
|
|
2976
|
+
}, a = J({
|
|
2977
|
+
sizeRestrictions: {
|
|
2978
|
+
minWidth: i([r.width, r.minWidth]) || 0,
|
|
2979
|
+
minHeight: i([r.height, r.minHeight]) || 0,
|
|
2980
|
+
maxWidth: i([r.width, r.maxWidth]) || Infinity,
|
|
2981
|
+
maxHeight: i([r.height, r.maxHeight]) || Infinity
|
|
2982
|
+
},
|
|
2983
|
+
width: this.coordinates.width,
|
|
2984
|
+
height: this.coordinates.height,
|
|
2985
|
+
aspectRatio: {
|
|
2986
|
+
minimum: this.coordinates.width / this.coordinates.height,
|
|
2987
|
+
maximum: this.coordinates.width / this.coordinates.height
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2990
|
+
if (r.maxArea && a.width * a.height > r.maxArea) {
|
|
2991
|
+
var o = Math.sqrt(r.maxArea / (a.width * a.height));
|
|
2992
|
+
a = {
|
|
2993
|
+
width: Math.round(o * a.width),
|
|
2994
|
+
height: Math.round(o * a.height)
|
|
2995
|
+
};
|
|
2996
|
+
}
|
|
2997
|
+
return function(e, t, n, r, i) {
|
|
2998
|
+
e.width = r ? r.width : n.width, e.height = r ? r.height : n.height;
|
|
2999
|
+
var a = e.getContext("2d");
|
|
3000
|
+
a.clearRect(0, 0, e.width, e.height), i && (i.imageSmoothingEnabled && (a.imageSmoothingEnabled = i.imageSmoothingEnabled), i.imageSmoothingQuality && (a.imageSmoothingQuality = i.imageSmoothingQuality), i.fillColor && (a.fillStyle = i.fillColor, a.fillRect(0, 0, e.width, e.height), a.save()));
|
|
3001
|
+
var o = n.left < 0 ? -n.left : 0, s = n.top < 0 ? -n.top : 0;
|
|
3002
|
+
a.drawImage(t, n.left + o, n.top + s, n.width, n.height, o * (e.width / n.width), s * (e.height / n.height), e.width, e.height);
|
|
3003
|
+
}(e, n, this.coordinates, a, r), e;
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
update: function() {
|
|
3007
|
+
this.$emit("change", this.getResult());
|
|
3008
|
+
},
|
|
3009
|
+
applyTransform: function(e) {
|
|
3010
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = this.visibleArea && t ? je(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, r = this.visibleArea && t ? Y(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
|
|
3011
|
+
return Ie({
|
|
3012
|
+
transform: e,
|
|
3013
|
+
coordinates: this.coordinates,
|
|
3014
|
+
imageSize: this.imageSize,
|
|
3015
|
+
sizeRestrictions: n,
|
|
3016
|
+
positionRestrictions: r,
|
|
3017
|
+
aspectRatio: this.getAspectRatio(),
|
|
3018
|
+
visibleArea: this.visibleArea
|
|
3019
|
+
});
|
|
3020
|
+
},
|
|
3021
|
+
resetCoordinates: function() {
|
|
3022
|
+
var e = this;
|
|
3023
|
+
if (this.$refs.image) {
|
|
3024
|
+
this.$refs.cropper, this.$refs.image;
|
|
3025
|
+
var t = this.defaultSize;
|
|
3026
|
+
t ||= this.stencilSize ? He : Ve;
|
|
3027
|
+
var n = this.sizeRestrictions;
|
|
3028
|
+
n.minWidth, n.minHeight, n.maxWidth, n.maxHeight;
|
|
3029
|
+
var r = D(t) ? t({
|
|
3030
|
+
boundaries: this.boundaries,
|
|
3031
|
+
imageSize: this.imageSize,
|
|
3032
|
+
aspectRatio: this.getAspectRatio(),
|
|
3033
|
+
sizeRestrictions: this.sizeRestrictions,
|
|
3034
|
+
stencilSize: this.getStencilSize(),
|
|
3035
|
+
visibleArea: this.visibleArea
|
|
3036
|
+
}) : t, i = this.defaultPosition || Be, a = [r, function(t) {
|
|
3037
|
+
var n = t.coordinates;
|
|
3038
|
+
return b({}, D(i) ? i({
|
|
3039
|
+
coordinates: n,
|
|
3040
|
+
imageSize: e.imageSize,
|
|
3041
|
+
visibleArea: e.visibleArea
|
|
3042
|
+
}) : e.defaultPosition);
|
|
3043
|
+
}];
|
|
3044
|
+
this.delayedTransforms && a.push.apply(a, S(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(a, !0), this.delayedTransforms = null;
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
clearImage: function() {
|
|
3048
|
+
var e = this;
|
|
3049
|
+
this.imageLoaded = !1, setTimeout((function() {
|
|
3050
|
+
var t = e.$refs.stretcher;
|
|
3051
|
+
t && (t.style.height = "auto", t.style.width = "auto"), e.coordinates = e.defaultCoordinates(), e.boundaries = {
|
|
3052
|
+
width: 0,
|
|
3053
|
+
height: 0
|
|
3054
|
+
};
|
|
3055
|
+
}), this.transitionTime);
|
|
3056
|
+
},
|
|
3057
|
+
enableTransitions: function() {
|
|
3058
|
+
this.transitions && (this.transitionsActive = !0);
|
|
3059
|
+
},
|
|
3060
|
+
disableTransitions: function() {
|
|
3061
|
+
this.transitionsActive = !1;
|
|
3062
|
+
},
|
|
3063
|
+
updateBoundaries: function() {
|
|
3064
|
+
var e = this, t = this.$refs.stretcher, n = this.$refs.cropper;
|
|
3065
|
+
return this.initStretcher({
|
|
3066
|
+
cropper: n,
|
|
3067
|
+
stretcher: t,
|
|
3068
|
+
imageSize: this.imageSize
|
|
3069
|
+
}), this.$nextTick().then((function() {
|
|
3070
|
+
var t = {
|
|
3071
|
+
cropper: n,
|
|
3072
|
+
imageSize: e.imageSize
|
|
3073
|
+
};
|
|
3074
|
+
if (D(e.defaultBoundaries) ? e.boundaries = e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? e.boundaries = function(e) {
|
|
3075
|
+
var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
|
|
3076
|
+
return o > i && (o = i, a = n.height * i / n.width), {
|
|
3077
|
+
width: o,
|
|
3078
|
+
height: a
|
|
3079
|
+
};
|
|
3080
|
+
}(t) : e.boundaries = function(e) {
|
|
3081
|
+
var t = e.cropper;
|
|
3082
|
+
return {
|
|
3083
|
+
width: t.clientWidth,
|
|
3084
|
+
height: t.clientHeight
|
|
3085
|
+
};
|
|
3086
|
+
}(t), !e.boundaries.width || !e.boundaries.height) throw Error("It's impossible to fit the cropper in the current container");
|
|
3087
|
+
}));
|
|
3088
|
+
},
|
|
3089
|
+
resetVisibleArea: function() {
|
|
3090
|
+
var e = this;
|
|
3091
|
+
return this.appliedImageTransforms = b(b({}, this.defaultImageTransforms), {}, { flip: b({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
|
|
3092
|
+
e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
|
|
3093
|
+
var t, n, r, i, a, o, s = e.defaultVisibleArea || Ue;
|
|
3094
|
+
e.visibleArea = D(s) ? s({
|
|
3095
|
+
imageSize: e.imageSize,
|
|
3096
|
+
boundaries: e.boundaries,
|
|
3097
|
+
coordinates: e.priority === "visible-area" ? null : e.coordinates,
|
|
3098
|
+
getAreaRestrictions: e.getAreaRestrictions,
|
|
3099
|
+
stencilSize: e.getStencilSize()
|
|
3100
|
+
}) : e.defaultVisibleArea, e.visibleArea = (t = {
|
|
3101
|
+
visibleArea: e.visibleArea,
|
|
3102
|
+
boundaries: e.boundaries,
|
|
3103
|
+
getAreaRestrictions: e.getAreaRestrictions
|
|
3104
|
+
}, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = E({}, n), o = V(r), a.width / a.height !== o && (a.height = a.width / o), K(a, i({
|
|
3105
|
+
visibleArea: a,
|
|
3106
|
+
type: "move"
|
|
3107
|
+
}))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({
|
|
3108
|
+
visibleArea: e.visibleArea,
|
|
3109
|
+
coordinates: e.coordinates,
|
|
3110
|
+
aspectRatio: e.getAspectRatio(),
|
|
3111
|
+
positionRestrictions: e.positionRestrictions,
|
|
3112
|
+
sizeRestrictions: e.sizeRestrictions
|
|
3113
|
+
}), e.runAutoZoom("resetVisibleArea");
|
|
3114
|
+
})).catch((function() {
|
|
3115
|
+
e.visibleArea = null;
|
|
3116
|
+
}));
|
|
3117
|
+
},
|
|
3118
|
+
updateVisibleArea: function() {
|
|
3119
|
+
var e = this;
|
|
3120
|
+
return this.updateBoundaries().then((function() {
|
|
3121
|
+
e.visibleArea = e.fitVisibleArea({
|
|
3122
|
+
imageSize: e.imageSize,
|
|
3123
|
+
boundaries: e.boundaries,
|
|
3124
|
+
visibleArea: e.visibleArea,
|
|
3125
|
+
coordinates: e.coordinates,
|
|
3126
|
+
getAreaRestrictions: e.getAreaRestrictions
|
|
3127
|
+
}), e.coordinates = e.fitCoordinates({
|
|
3128
|
+
visibleArea: e.visibleArea,
|
|
3129
|
+
coordinates: e.coordinates,
|
|
3130
|
+
aspectRatio: e.getAspectRatio(),
|
|
3131
|
+
positionRestrictions: e.positionRestrictions,
|
|
3132
|
+
sizeRestrictions: e.sizeRestrictions
|
|
3133
|
+
}), e.runAutoZoom("updateVisibleArea");
|
|
3134
|
+
})).catch((function() {
|
|
3135
|
+
e.visibleArea = null;
|
|
3136
|
+
}));
|
|
3137
|
+
},
|
|
3138
|
+
onChange: function() {
|
|
3139
|
+
(!(arguments.length > 0 && arguments[0] !== void 0) || arguments[0]) && this.debounce ? this.debouncedUpdate() : this.update();
|
|
3140
|
+
},
|
|
3141
|
+
onChangeImage: function() {
|
|
3142
|
+
var e, t = this;
|
|
3143
|
+
if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
|
|
3144
|
+
if (function(e) {
|
|
3145
|
+
if (ce(e)) return !1;
|
|
3146
|
+
var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
|
|
3147
|
+
protocol: n[1] || "",
|
|
3148
|
+
host: n[2] || "",
|
|
3149
|
+
port: n[3] || ""
|
|
3150
|
+
}, i = function(e) {
|
|
3151
|
+
return e.port || ((e.protocol || t.protocol) === "http" ? 80 : 433);
|
|
3152
|
+
};
|
|
3153
|
+
return !(!r.protocol && !r.host && !r.port || r.protocol && r.protocol == t.protocol && r.host && r.host == t.host && r.host && i(r) == i(t));
|
|
3154
|
+
}(this.src)) {
|
|
3155
|
+
var n = O(this.crossOrigin) ? this.canvas : this.crossOrigin;
|
|
3156
|
+
!0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
|
|
3157
|
+
}
|
|
3158
|
+
if (this.checkOrientation) {
|
|
3159
|
+
var r = (e = this.src, new Promise((function(t) {
|
|
3160
|
+
at(e).then((function(n) {
|
|
3161
|
+
var r = st(n);
|
|
3162
|
+
t(n ? {
|
|
3163
|
+
source: e,
|
|
3164
|
+
arrayBuffer: n,
|
|
3165
|
+
orientation: r
|
|
3166
|
+
} : {
|
|
3167
|
+
source: e,
|
|
3168
|
+
arrayBuffer: null,
|
|
3169
|
+
orientation: null
|
|
3170
|
+
});
|
|
3171
|
+
})).catch((function(n) {
|
|
3172
|
+
console.warn(n), t({
|
|
3173
|
+
source: e,
|
|
3174
|
+
arrayBuffer: null,
|
|
3175
|
+
orientation: null
|
|
3176
|
+
});
|
|
3177
|
+
}));
|
|
3178
|
+
})));
|
|
3179
|
+
setTimeout((function() {
|
|
3180
|
+
r.then(t.onParseImage);
|
|
3181
|
+
}), this.transitionTime);
|
|
3182
|
+
} else setTimeout((function() {
|
|
3183
|
+
t.onParseImage({ source: t.src });
|
|
3184
|
+
}), this.transitionTime);
|
|
3185
|
+
} else this.clearImage();
|
|
3186
|
+
},
|
|
3187
|
+
onFailLoadImage: function() {
|
|
3188
|
+
this.imageAttributes.src && (this.clearImage(), this.$emit("error"));
|
|
3189
|
+
},
|
|
3190
|
+
onSuccessLoadImage: function() {
|
|
3191
|
+
var e = this, t = this.$refs.image;
|
|
3192
|
+
t && !this.imageLoaded && (this.imageAttributes.height = t.naturalHeight, this.imageAttributes.width = t.naturalWidth, this.imageLoaded = !0, this.resetVisibleArea().then((function() {
|
|
3193
|
+
e.$emit("ready"), e.onChange(!1);
|
|
3194
|
+
})));
|
|
3195
|
+
},
|
|
3196
|
+
onParseImage: function(e) {
|
|
3197
|
+
var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
|
|
3198
|
+
this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? se(n) || !ce(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
|
|
3199
|
+
for (var t = [], n = new Uint8Array(e); n.length > 0;) {
|
|
3200
|
+
var r = n.subarray(0, 8192);
|
|
3201
|
+
t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
|
|
3202
|
+
}
|
|
3203
|
+
return "data:image/jpeg;base64," + btoa(t.join(""));
|
|
3204
|
+
}(r) : this.imageAttributes.src = n, D(this.defaultTransforms) ? this.appliedImageTransforms = it(this.defaultTransforms()) : k(this.defaultTransforms) ? this.appliedImageTransforms = it(this.defaultTransforms) : this.appliedImageTransforms = function(e) {
|
|
3205
|
+
var t = it({});
|
|
3206
|
+
if (e) switch (e) {
|
|
3207
|
+
case 2:
|
|
3208
|
+
t.flip.horizontal = !0;
|
|
3209
|
+
break;
|
|
3210
|
+
case 3:
|
|
3211
|
+
t.rotate = -180;
|
|
3212
|
+
break;
|
|
3213
|
+
case 4:
|
|
3214
|
+
t.flip.vertical = !0;
|
|
3215
|
+
break;
|
|
3216
|
+
case 5:
|
|
3217
|
+
t.rotate = 90, t.flip.vertical = !0;
|
|
3218
|
+
break;
|
|
3219
|
+
case 6:
|
|
3220
|
+
t.rotate = 90;
|
|
3221
|
+
break;
|
|
3222
|
+
case 7:
|
|
3223
|
+
t.rotate = 90, t.flip.horizontal = !0;
|
|
3224
|
+
break;
|
|
3225
|
+
case 8: t.rotate = -90;
|
|
3226
|
+
}
|
|
3227
|
+
return t;
|
|
3228
|
+
}(i), this.defaultImageTransforms = b(b({}, this.appliedImageTransforms), {}, { flip: b({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
|
|
3229
|
+
var e = t.$refs.image;
|
|
3230
|
+
e && e.complete && (function(e) {
|
|
3231
|
+
return !!e.naturalWidth;
|
|
3232
|
+
}(e) ? t.onSuccessLoadImage() : t.onFailLoadImage());
|
|
3233
|
+
}));
|
|
3234
|
+
},
|
|
3235
|
+
onResizeEnd: function() {
|
|
3236
|
+
this.runAutoZoom("resize", { transitions: !0 });
|
|
3237
|
+
},
|
|
3238
|
+
onMoveEnd: function() {
|
|
3239
|
+
this.runAutoZoom("move", { transitions: !0 });
|
|
3240
|
+
},
|
|
3241
|
+
onMove: function(e) {
|
|
3242
|
+
var t = this;
|
|
3243
|
+
this.transitionsOptions.enabled || this.awaitRender((function() {
|
|
3244
|
+
t.coordinates = t.moveAlgorithm(b(b({}, t.getPublicProperties()), {}, {
|
|
3245
|
+
positionRestrictions: Y(t.positionRestrictions, t.visibleArea),
|
|
3246
|
+
coordinates: t.coordinates,
|
|
3247
|
+
event: t.normalizeEvent(e)
|
|
3248
|
+
})), t.onChange();
|
|
3249
|
+
}));
|
|
3250
|
+
},
|
|
3251
|
+
onResize: function(e) {
|
|
3252
|
+
var t = this;
|
|
3253
|
+
this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
|
|
3254
|
+
var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
|
|
3255
|
+
t.coordinates = t.resizeAlgorithm(b(b({}, t.getPublicProperties()), {}, {
|
|
3256
|
+
positionRestrictions: Y(t.positionRestrictions, t.visibleArea),
|
|
3257
|
+
sizeRestrictions: {
|
|
3258
|
+
maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
|
|
3259
|
+
maxHeight: Math.min(n.maxHeight, t.visibleArea.height),
|
|
3260
|
+
minWidth: Math.max(n.minWidth, r),
|
|
3261
|
+
minHeight: Math.max(n.minHeight, r)
|
|
3262
|
+
},
|
|
3263
|
+
event: t.normalizeEvent(e)
|
|
3264
|
+
})), t.onChange(), t.ticking = !1;
|
|
3265
|
+
}));
|
|
3266
|
+
},
|
|
3267
|
+
onManipulateImage: function(e) {
|
|
3268
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3269
|
+
if (!this.transitionsOptions.enabled) {
|
|
3270
|
+
var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
|
|
3271
|
+
r && this.enableTransitions();
|
|
3272
|
+
var o = We(b(b({}, this.getPublicProperties()), {}, {
|
|
3273
|
+
event: a ? this.normalizeEvent(e) : e,
|
|
3274
|
+
getAreaRestrictions: this.getAreaRestrictions,
|
|
3275
|
+
imageRestriction: this.imageRestriction,
|
|
3276
|
+
adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil
|
|
3277
|
+
})), s = o.visibleArea, c = o.coordinates;
|
|
3278
|
+
this.visibleArea = s, this.coordinates = c, this.runAutoZoom("manipulateImage"), this.onChange(), r && this.debouncedDisableTransitions();
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3281
|
+
onPropsChange: function() {
|
|
3282
|
+
this.coordinates = this.applyTransform(this.coordinates, !0), this.onChange(!1);
|
|
3283
|
+
},
|
|
3284
|
+
getAreaRestrictions: function() {
|
|
3285
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.visibleArea, n = e.type, r = n === void 0 ? "move" : n;
|
|
3286
|
+
return this.areaRestrictionsAlgorithm({
|
|
3287
|
+
boundaries: this.boundaries,
|
|
3288
|
+
imageSize: this.imageSize,
|
|
3289
|
+
imageRestriction: this.imageRestriction,
|
|
3290
|
+
visibleArea: t,
|
|
3291
|
+
type: r
|
|
3292
|
+
});
|
|
3293
|
+
},
|
|
3294
|
+
getAspectRatio: function(e) {
|
|
3295
|
+
var t, n, r = this.stencilProps, i = r.aspectRatio, a = r.minAspectRatio, o = r.maxAspectRatio;
|
|
3296
|
+
if (this.$refs.stencil && this.$refs.stencil.aspectRatios) {
|
|
3297
|
+
var s = this.$refs.stencil.aspectRatios();
|
|
3298
|
+
t = s.minimum, n = s.maximum;
|
|
3299
|
+
}
|
|
3300
|
+
if (O(t) && (t = O(i) ? a : i), O(n) && (n = O(i) ? o : i), !e && (O(t) || O(n))) {
|
|
3301
|
+
var c = this.getStencilSize(), l = c ? V(c) : null;
|
|
3302
|
+
O(t) && (t = ue(l) ? l : void 0), O(n) && (n = ue(l) ? l : void 0);
|
|
3303
|
+
}
|
|
3304
|
+
return {
|
|
3305
|
+
minimum: t,
|
|
3306
|
+
maximum: n
|
|
3307
|
+
};
|
|
3308
|
+
},
|
|
3309
|
+
getStencilSize: function() {
|
|
3310
|
+
if (this.stencilSize) return e = {
|
|
3311
|
+
currentStencilSize: {
|
|
3312
|
+
width: this.stencilCoordinates.width,
|
|
3313
|
+
height: this.stencilCoordinates.height
|
|
3314
|
+
},
|
|
3315
|
+
stencilSize: this.stencilSize,
|
|
3316
|
+
boundaries: this.boundaries,
|
|
3317
|
+
coefficient: this.coefficient,
|
|
3318
|
+
coordinates: this.coordinates,
|
|
3319
|
+
aspectRatio: this.getAspectRatio(!0)
|
|
3320
|
+
}, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, De(V(i = D(n) ? n({
|
|
3321
|
+
boundaries: t,
|
|
3322
|
+
aspectRatio: r
|
|
3323
|
+
}) : n), r) && (i = J({
|
|
3324
|
+
sizeRestrictions: {
|
|
3325
|
+
maxWidth: t.width,
|
|
3326
|
+
maxHeight: t.height,
|
|
3327
|
+
minWidth: 0,
|
|
3328
|
+
minHeight: 0
|
|
3329
|
+
},
|
|
3330
|
+
width: i.width,
|
|
3331
|
+
height: i.height,
|
|
3332
|
+
aspectRatio: {
|
|
3333
|
+
minimum: r.minimum,
|
|
3334
|
+
maximum: r.maximum
|
|
3335
|
+
}
|
|
3336
|
+
})), (i.width > t.width || i.height > t.height) && (i = J({
|
|
3337
|
+
sizeRestrictions: {
|
|
3338
|
+
maxWidth: t.width,
|
|
3339
|
+
maxHeight: t.height,
|
|
3340
|
+
minWidth: 0,
|
|
3341
|
+
minHeight: 0
|
|
3342
|
+
},
|
|
3343
|
+
width: i.width,
|
|
3344
|
+
height: i.height,
|
|
3345
|
+
aspectRatio: {
|
|
3346
|
+
minimum: V(i),
|
|
3347
|
+
maximum: V(i)
|
|
3348
|
+
}
|
|
3349
|
+
})), i;
|
|
3350
|
+
var e, t, n, r, i;
|
|
3351
|
+
},
|
|
3352
|
+
getPublicProperties: function() {
|
|
3353
|
+
return {
|
|
3354
|
+
coefficient: this.coefficient,
|
|
3355
|
+
visibleArea: this.visibleArea,
|
|
3356
|
+
coordinates: this.coordinates,
|
|
3357
|
+
boundaries: this.boundaries,
|
|
3358
|
+
sizeRestrictions: this.sizeRestrictions,
|
|
3359
|
+
positionRestrictions: this.positionRestrictions,
|
|
3360
|
+
aspectRatio: this.getAspectRatio(),
|
|
3361
|
+
imageRestriction: this.imageRestriction
|
|
3362
|
+
};
|
|
3363
|
+
},
|
|
3364
|
+
defaultCoordinates: function() {
|
|
3365
|
+
return b({}, Te);
|
|
3366
|
+
},
|
|
3367
|
+
flip: function(e, t) {
|
|
3368
|
+
var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
|
|
3369
|
+
if (!this.transitionsActive) {
|
|
3370
|
+
r && this.enableTransitions();
|
|
3371
|
+
var i = b({}, this.imageTransforms.flip), a = Ke({
|
|
3372
|
+
flip: {
|
|
3373
|
+
horizontal: e ? !i.horizontal : i.horizontal,
|
|
3374
|
+
vertical: t ? !i.vertical : i.vertical
|
|
3375
|
+
},
|
|
3376
|
+
previousFlip: i,
|
|
3377
|
+
rotate: this.imageTransforms.rotate,
|
|
3378
|
+
visibleArea: this.visibleArea,
|
|
3379
|
+
coordinates: this.coordinates,
|
|
3380
|
+
imageSize: this.imageSize,
|
|
3381
|
+
positionRestrictions: this.positionRestrictions,
|
|
3382
|
+
sizeRestrictions: this.sizeRestrictions,
|
|
3383
|
+
getAreaRestrictions: this.getAreaRestrictions,
|
|
3384
|
+
aspectRatio: this.getAspectRatio()
|
|
3385
|
+
}), o = a.visibleArea, s = a.coordinates;
|
|
3386
|
+
e && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), t && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = o, this.coordinates = s, this.onChange(), r && this.debouncedDisableTransitions();
|
|
3387
|
+
}
|
|
3388
|
+
},
|
|
3389
|
+
rotate: function(e) {
|
|
3390
|
+
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
|
|
3391
|
+
if (!this.transitionsActive) {
|
|
3392
|
+
n && this.enableTransitions();
|
|
3393
|
+
var r = b({}, this.imageSize);
|
|
3394
|
+
this.appliedImageTransforms.rotate += e;
|
|
3395
|
+
var i = Ge({
|
|
3396
|
+
visibleArea: this.visibleArea,
|
|
3397
|
+
coordinates: this.coordinates,
|
|
3398
|
+
previousImageSize: r,
|
|
3399
|
+
imageSize: this.imageSize,
|
|
3400
|
+
angle: e,
|
|
3401
|
+
positionRestrictions: this.positionRestrictions,
|
|
3402
|
+
sizeRestrictions: this.sizeRestrictions,
|
|
3403
|
+
getAreaRestrictions: this.getAreaRestrictions,
|
|
3404
|
+
aspectRatio: this.getAspectRatio()
|
|
3405
|
+
}), a = i.visibleArea, o = i.coordinates, s = this.processAutoZoom("rotateImage", a, o);
|
|
3406
|
+
a = s.visibleArea, o = s.coordinates, this.visibleArea = a, this.coordinates = o, this.onChange(), n && this.debouncedDisableTransitions();
|
|
3407
|
+
}
|
|
3408
|
+
}
|
|
3409
|
+
},
|
|
3410
|
+
emits: [
|
|
3411
|
+
"change",
|
|
3412
|
+
"error",
|
|
3413
|
+
"ready"
|
|
3414
|
+
]
|
|
3415
|
+
}, St = {
|
|
3416
|
+
key: 0,
|
|
3417
|
+
ref: "canvas",
|
|
3418
|
+
style: { display: "none" }
|
|
3419
|
+
}, Ct = {
|
|
3420
|
+
key: 1,
|
|
3421
|
+
ref: "sourceCanvas",
|
|
3422
|
+
style: { display: "none" }
|
|
3423
|
+
};
|
|
3424
|
+
xt.render = function(e, t, a, c, l, u) {
|
|
3425
|
+
return s(), n("div", {
|
|
3426
|
+
ref: "cropper",
|
|
3427
|
+
class: u.classes.cropper
|
|
3428
|
+
}, [i("div", {
|
|
3429
|
+
ref: "stretcher",
|
|
3430
|
+
class: u.classes.stretcher
|
|
3431
|
+
}, null, 2), i("div", {
|
|
3432
|
+
class: u.classes.boundaries,
|
|
3433
|
+
style: u.boundariesStyle
|
|
3434
|
+
}, [(s(), n(f(a.backgroundWrapperComponent), {
|
|
3435
|
+
class: u.classes.cropperWrapper,
|
|
3436
|
+
"wheel-resize": u.settings.resizeImage.wheel,
|
|
3437
|
+
"touch-resize": u.settings.resizeImage.touch,
|
|
3438
|
+
"touch-move": u.settings.moveImage.touch,
|
|
3439
|
+
"mouse-move": u.settings.moveImage.mouse,
|
|
3440
|
+
onMove: u.onManipulateImage,
|
|
3441
|
+
onResize: u.onManipulateImage
|
|
3442
|
+
}, {
|
|
3443
|
+
default: g((function() {
|
|
3444
|
+
return [
|
|
3445
|
+
i("div", {
|
|
3446
|
+
class: u.classes.background,
|
|
3447
|
+
style: u.boundariesStyle
|
|
3448
|
+
}, null, 6),
|
|
3449
|
+
i("div", { class: u.classes.imageWrapper }, [i("img", {
|
|
3450
|
+
ref: "image",
|
|
3451
|
+
crossorigin: l.imageAttributes.crossOrigin,
|
|
3452
|
+
src: l.imageAttributes.src,
|
|
3453
|
+
class: u.classes.image,
|
|
3454
|
+
style: u.imageStyle,
|
|
3455
|
+
onMousedown: t[1] ||= v((function() {}), ["prevent"])
|
|
3456
|
+
}, null, 46, ["crossorigin", "src"])], 2),
|
|
3457
|
+
i("div", {
|
|
3458
|
+
class: u.classes.foreground,
|
|
3459
|
+
style: u.boundariesStyle
|
|
3460
|
+
}, null, 6),
|
|
3461
|
+
_((s(), n(f(a.stencilComponent), o({
|
|
3462
|
+
ref: "stencil",
|
|
3463
|
+
image: u.image,
|
|
3464
|
+
coordinates: l.coordinates,
|
|
3465
|
+
"stencil-coordinates": u.stencilCoordinates,
|
|
3466
|
+
transitions: u.transitionsOptions
|
|
3467
|
+
}, a.stencilProps, {
|
|
3468
|
+
onResize: u.onResize,
|
|
3469
|
+
onResizeEnd: u.onResizeEnd,
|
|
3470
|
+
onMove: u.onMove,
|
|
3471
|
+
onMoveEnd: u.onMoveEnd
|
|
3472
|
+
}), null, 16, [
|
|
3473
|
+
"image",
|
|
3474
|
+
"coordinates",
|
|
3475
|
+
"stencil-coordinates",
|
|
3476
|
+
"transitions",
|
|
3477
|
+
"onResize",
|
|
3478
|
+
"onResizeEnd",
|
|
3479
|
+
"onMove",
|
|
3480
|
+
"onMoveEnd"
|
|
3481
|
+
])), [[m, l.imageLoaded]]),
|
|
3482
|
+
a.canvas ? (s(), n("canvas", St, null, 512)) : r("", !0),
|
|
3483
|
+
a.canvas ? (s(), n("canvas", Ct, null, 512)) : r("", !0)
|
|
3484
|
+
];
|
|
3485
|
+
})),
|
|
3486
|
+
_: 1
|
|
3487
|
+
}, 8, [
|
|
3488
|
+
"class",
|
|
3489
|
+
"wheel-resize",
|
|
3490
|
+
"touch-resize",
|
|
3491
|
+
"touch-move",
|
|
3492
|
+
"mouse-move",
|
|
3493
|
+
"onMove",
|
|
3494
|
+
"onResize"
|
|
3495
|
+
]))], 6)], 2);
|
|
3496
|
+
};
|
|
3497
|
+
//#endregion
|
|
3498
|
+
//#region lib/components/ui/image-cropper/partials/image-cropper-canvas.vue
|
|
3499
|
+
var wt = /* @__PURE__ */ a({
|
|
3500
|
+
__name: "image-cropper-canvas",
|
|
3501
|
+
props: {
|
|
3502
|
+
src: {},
|
|
3503
|
+
aspect: {},
|
|
3504
|
+
cropShape: { default: "rect" },
|
|
3505
|
+
zoom: { default: 1 },
|
|
3506
|
+
rotation: { default: 0 }
|
|
3507
|
+
},
|
|
3508
|
+
emits: ["change"],
|
|
3509
|
+
setup(e, { emit: r }) {
|
|
3510
|
+
let i = e, a = r, o = c(null), l = t(() => i.cropShape === "round" ? yt : _t), u = t(() => i.aspect == null ? {} : { aspectRatio: i.aspect });
|
|
3511
|
+
h(() => i.zoom, (e, t) => {
|
|
3512
|
+
t == null || e === t || o.value?.zoom(e / t);
|
|
3513
|
+
}), h(() => i.rotation, (e, t) => {
|
|
3514
|
+
o.value?.rotate(e - (t ?? 0));
|
|
3515
|
+
});
|
|
3516
|
+
function d(e) {
|
|
3517
|
+
a("change", {
|
|
3518
|
+
area: {
|
|
3519
|
+
x: e.coordinates.left,
|
|
3520
|
+
y: e.coordinates.top,
|
|
3521
|
+
width: e.coordinates.width,
|
|
3522
|
+
height: e.coordinates.height
|
|
3523
|
+
},
|
|
3524
|
+
canvas: e.canvas ?? null
|
|
3525
|
+
});
|
|
3526
|
+
}
|
|
3527
|
+
return (t, r) => (s(), n(p(xt), {
|
|
3528
|
+
ref_key: "cropperRef",
|
|
3529
|
+
ref: o,
|
|
3530
|
+
class: "image-cropper-canvas h-full w-full",
|
|
3531
|
+
src: e.src,
|
|
3532
|
+
"stencil-component": l.value,
|
|
3533
|
+
"stencil-props": u.value,
|
|
3534
|
+
debounce: 0,
|
|
3535
|
+
"image-restriction": "stencil",
|
|
3536
|
+
canvas: !0,
|
|
3537
|
+
onChange: d
|
|
3538
|
+
}, null, 8, [
|
|
3539
|
+
"src",
|
|
3540
|
+
"stencil-component",
|
|
3541
|
+
"stencil-props"
|
|
3542
|
+
]));
|
|
3543
|
+
}
|
|
3544
|
+
});
|
|
3545
|
+
//#endregion
|
|
3546
|
+
export { wt as default };
|