ablok-components 0.3.104 → 0.3.106
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/dist/_virtual/_plugin-vue_export-helper.js +7 -8
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/ablok-components.css +2 -1
- package/dist/ablok-components.umd.js +4 -4
- package/dist/assets/img/guide.js +4 -0
- package/dist/components/atoms/base-button/base-button.js +6 -0
- package/dist/components/atoms/base-button/base-button.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/components/atoms/base-headline/base-headline.js +5 -0
- package/dist/components/atoms/base-headline/base-headline.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/atoms/base-image/base-image.js +6 -0
- package/dist/components/atoms/base-image/base-image.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/atoms/base-input/base-input.js +6 -0
- package/dist/components/atoms/base-input/base-input.vue_vue_type_script_setup_true_lang.js +196 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.js +5 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.js +6 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/components/atoms/check-group/check-group.js +6 -0
- package/dist/components/atoms/check-group/check-group.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/atoms/custom-html/custom-html.js +5 -0
- package/dist/components/atoms/custom-html/custom-html.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.js +6 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/atoms/input-datetime/input-datetime.js +5 -0
- package/dist/components/atoms/input-datetime/input-datetime.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/atoms/input-file/input-file.js +5 -0
- package/dist/components/atoms/input-file/input-file.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/components/atoms/input-passcode/input-passcode.js +5 -0
- package/dist/components/atoms/input-passcode/input-passcode.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/atoms/input-password/input-password.js +5 -0
- package/dist/components/atoms/input-password/input-password.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/atoms/input-textarea/input-textarea.js +5 -0
- package/dist/components/atoms/input-textarea/input-textarea.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.js +6 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/atoms/radio-group/radio-group.js +6 -0
- package/dist/components/atoms/radio-group/radio-group.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/components/atoms/svg-icon/svg-icon.js +6 -0
- package/dist/components/atoms/svg-icon/svg-icon.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.js +6 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/molecules/accordion/accordion-item.js +6 -0
- package/dist/components/molecules/accordion/accordion-item.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/molecules/accordion/accordion.js +10 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.js +6 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/components/molecules/base-camera/base-camera.js +6 -0
- package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_async_true_setup_true_lang.js +505 -0
- package/dist/components/molecules/base-map/base-map.js +6 -0
- package/dist/components/molecules/base-map/base-map.vue_vue_type_script_setup_true_lang.js +390 -0
- package/dist/components/molecules/bulk-upload/bulk-upload.js +6 -0
- package/dist/components/molecules/bulk-upload/bulk-upload.vue_vue_type_script_setup_true_lang.js +188 -0
- package/dist/components/molecules/color-palette/color-palette.js +6 -0
- package/dist/components/molecules/color-palette/color-palette.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.js +5 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/molecules/file-upload/file-upload.js +6 -0
- package/dist/components/molecules/file-upload/file-upload.vue_vue_type_script_setup_true_lang.js +196 -0
- package/dist/components/molecules/hint-system/hint-system.js +6 -0
- package/dist/components/molecules/hint-system/hint-system.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/components/molecules/image-crop/image-crop.js +5 -0
- package/dist/components/molecules/image-crop/image-crop.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.js +5 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/image-resize/image-resize.js +5 -0
- package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/molecules/image-upload/image-upload.js +6 -0
- package/dist/components/molecules/image-upload/image-upload.vue_vue_type_script_setup_true_lang.js +264 -0
- package/dist/components/molecules/image-zoom/image-zoom.js +6 -0
- package/dist/components/molecules/image-zoom/image-zoom.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/molecules/input-color/input-color.js +6 -0
- package/dist/components/molecules/input-color/input-color.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.js +6 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.vue_vue_type_script_setup_true_lang.js +337 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.js +6 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.vue_vue_type_script_setup_true_lang.js +169 -0
- package/dist/components/molecules/link-sharing/link-sharing.js +6 -0
- package/dist/components/molecules/link-sharing/link-sharing.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/molecules/location-list/location-list.js +6 -0
- package/dist/components/molecules/location-list/location-list.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.js +6 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.js +6 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.js +6 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/components/molecules/progress-steps/progress-steps.js +6 -0
- package/dist/components/molecules/progress-steps/progress-steps.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/components/molecules/qr-code/qr-code.js +6 -0
- package/dist/components/molecules/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.js +6 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/molecules/rte-editor/rte-editor.js +6 -0
- package/dist/components/molecules/rte-editor/rte-editor.vue_vue_type_script_setup_true_lang.js +384 -0
- package/dist/components/molecules/select-media/select-media.js +6 -0
- package/dist/components/molecules/select-media/select-media.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/molecules/upload-group/upload-group.js +6 -0
- package/dist/components/molecules/upload-group/upload-group.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.js +5 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/organisms/location-finder/location-finder.js +6 -0
- package/dist/components/organisms/location-finder/location-finder.vue_vue_type_script_setup_true_lang.js +609 -0
- package/dist/components/organisms/preset-uploader/preset-uploader.js +6 -0
- package/dist/components/organisms/preset-uploader/preset-uploader.vue_vue_type_script_setup_true_lang.js +592 -0
- package/dist/components/templates/base-carousel/base-carousel.js +6 -0
- package/dist/components/templates/base-carousel/base-carousel.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/templates/base-form/base-form.js +6 -0
- package/dist/components/templates/base-form/base-form.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/templates/modal-dialog/modal-dialog.js +6 -0
- package/dist/components/templates/modal-dialog/modal-dialog.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/components/templates/popover-dialog/popover-dialog.js +6 -0
- package/dist/components/templates/popover-dialog/popover-dialog.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/templates/sortable-list/sortable-list.js +6 -0
- package/dist/components/templates/sortable-list/sortable-list.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.js +6 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/composables/useCameraFilter.js +60 -55
- package/dist/composables/useConfetti.js +9 -11
- package/dist/composables/useDirections.js +54 -59
- package/dist/composables/useDragAndDrop.js +28 -28
- package/dist/composables/useGeocoding.js +81 -83
- package/dist/composables/useGeolocation.js +61 -70
- package/dist/composables/useLocalFileUrl.js +16 -13
- package/dist/composables/useSanitize.js +81 -21
- package/dist/composables/useUploadTransport.js +28 -27
- package/dist/index.js +60 -161
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +161 -162
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatLong.js +31 -36
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/localize.js +210 -158
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/match.js +113 -111
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de.js +18 -18
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +19 -19
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr.js +18 -18
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -16
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js +13 -14
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -21
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js +10 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js +13 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js +55 -60
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js +11 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js +14 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js +24 -28
- package/dist/utilities/helpers.js +55 -70
- package/package.json +12 -11
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/debounce.js +0 -7
- package/dist/assets/img/guide.png.js +0 -4
- package/dist/components/atoms/base-button/base-button.vue.js +0 -92
- package/dist/components/atoms/base-button/base-button3.vue.js +0 -5
- package/dist/components/atoms/base-headline/base-headline.vue.js +0 -30
- package/dist/components/atoms/base-headline/base-headline2.vue.js +0 -4
- package/dist/components/atoms/base-image/base-image.vue.js +0 -75
- package/dist/components/atoms/base-image/base-image3.vue.js +0 -5
- package/dist/components/atoms/base-input/base-input.vue.js +0 -184
- package/dist/components/atoms/base-input/base-input3.vue.js +0 -5
- package/dist/components/atoms/base-paragraph/base-paragraph.vue.js +0 -21
- package/dist/components/atoms/base-paragraph/base-paragraph2.vue.js +0 -4
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue.js +0 -113
- package/dist/components/atoms/canvas-confetti/canvas-confetti3.vue.js +0 -5
- package/dist/components/atoms/check-group/check-group.vue.js +0 -86
- package/dist/components/atoms/check-group/check-group3.vue.js +0 -5
- package/dist/components/atoms/custom-html/custom-html.vue.js +0 -26
- package/dist/components/atoms/custom-html/custom-html2.vue.js +0 -4
- package/dist/components/atoms/input-checkbox/input-checkbox.vue.js +0 -84
- package/dist/components/atoms/input-checkbox/input-checkbox3.vue.js +0 -5
- package/dist/components/atoms/input-datetime/input-datetime.vue.js +0 -99
- package/dist/components/atoms/input-datetime/input-datetime2.vue.js +0 -4
- package/dist/components/atoms/input-file/input-file.vue.js +0 -130
- package/dist/components/atoms/input-file/input-file2.vue.js +0 -4
- package/dist/components/atoms/input-passcode/input-passcode.vue.js +0 -149
- package/dist/components/atoms/input-passcode/input-passcode2.vue.js +0 -4
- package/dist/components/atoms/input-password/input-password.vue.js +0 -118
- package/dist/components/atoms/input-password/input-password2.vue.js +0 -4
- package/dist/components/atoms/input-textarea/input-textarea.vue.js +0 -105
- package/dist/components/atoms/input-textarea/input-textarea2.vue.js +0 -4
- package/dist/components/atoms/loading-spinner/loading-spinner.vue.js +0 -38
- package/dist/components/atoms/loading-spinner/loading-spinner3.vue.js +0 -5
- package/dist/components/atoms/radio-group/radio-group.vue.js +0 -99
- package/dist/components/atoms/radio-group/radio-group3.vue.js +0 -5
- package/dist/components/atoms/svg-icon/svg-icon.vue.js +0 -44
- package/dist/components/atoms/svg-icon/svg-icon3.vue.js +0 -5
- package/dist/components/atoms/zoom-slider/zoom-slider.vue.js +0 -59
- package/dist/components/atoms/zoom-slider/zoom-slider3.vue.js +0 -5
- package/dist/components/molecules/accordion/accordion-item.vue.js +0 -84
- package/dist/components/molecules/accordion/accordion-item3.vue.js +0 -5
- package/dist/components/molecules/accordion/accordion.vue.js +0 -12
- package/dist/components/molecules/auto-suggest/auto-suggest.vue.js +0 -132
- package/dist/components/molecules/auto-suggest/auto-suggest3.vue.js +0 -5
- package/dist/components/molecules/base-camera/base-camera.vue.js +0 -530
- package/dist/components/molecules/base-camera/base-camera3.vue.js +0 -5
- package/dist/components/molecules/base-map/base-map.vue.js +0 -386
- package/dist/components/molecules/base-map/base-map3.vue.js +0 -5
- package/dist/components/molecules/bulk-upload/bulk-upload.vue.js +0 -256
- package/dist/components/molecules/bulk-upload/bulk-upload3.vue.js +0 -5
- package/dist/components/molecules/color-palette/color-palette.vue.js +0 -72
- package/dist/components/molecules/color-palette/color-palette3.vue.js +0 -5
- package/dist/components/molecules/dom-renderer/dom-renderer.vue.js +0 -102
- package/dist/components/molecules/dom-renderer/dom-renderer2.vue.js +0 -4
- package/dist/components/molecules/file-upload/file-upload.vue.js +0 -215
- package/dist/components/molecules/file-upload/file-upload3.vue.js +0 -5
- package/dist/components/molecules/hint-system/hint-system.vue.js +0 -111
- package/dist/components/molecules/hint-system/hint-system3.vue.js +0 -5
- package/dist/components/molecules/image-crop/image-crop.vue.js +0 -82
- package/dist/components/molecules/image-crop/image-crop2.vue.js +0 -4
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.js +0 -120
- package/dist/components/molecules/image-crop-resize/image-crop-resize2.vue.js +0 -4
- package/dist/components/molecules/image-resize/image-resize.vue.js +0 -143
- package/dist/components/molecules/image-resize/image-resize2.vue.js +0 -4
- package/dist/components/molecules/image-upload/image-upload.vue.js +0 -289
- package/dist/components/molecules/image-upload/image-upload3.vue.js +0 -5
- package/dist/components/molecules/image-zoom/image-zoom.vue.js +0 -209
- package/dist/components/molecules/image-zoom/image-zoom3.vue.js +0 -5
- package/dist/components/molecules/input-color/input-color.vue.js +0 -105
- package/dist/components/molecules/input-color/input-color3.vue.js +0 -5
- package/dist/components/molecules/input-datepicker/input-datepicker.vue.js +0 -291
- package/dist/components/molecules/input-datepicker/input-datepicker3.vue.js +0 -5
- package/dist/components/molecules/input-dropdown/input-dropdown.vue.js +0 -207
- package/dist/components/molecules/input-dropdown/input-dropdown3.vue.js +0 -5
- package/dist/components/molecules/link-sharing/link-sharing.vue.js +0 -177
- package/dist/components/molecules/link-sharing/link-sharing3.vue.js +0 -7
- package/dist/components/molecules/location-list/location-list.vue.js +0 -98
- package/dist/components/molecules/location-list/location-list3.vue.js +0 -5
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue.js +0 -87
- package/dist/components/molecules/media-thumbnails/media-thumbnails3.vue.js +0 -5
- package/dist/components/molecules/popover-notifications/popover-notifications.vue.js +0 -135
- package/dist/components/molecules/popover-notifications/popover-notifications3.vue.js +0 -5
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.js +0 -134
- package/dist/components/molecules/popover-tooltip/popover-tooltip3.vue.js +0 -5
- package/dist/components/molecules/progress-steps/progress-steps.vue.js +0 -84
- package/dist/components/molecules/progress-steps/progress-steps3.vue.js +0 -5
- package/dist/components/molecules/qr-code/qr-code.vue.js +0 -103
- package/dist/components/molecules/qr-code/qr-code3.vue.js +0 -5
- package/dist/components/molecules/radio-buttons/radio-buttons.vue.js +0 -79
- package/dist/components/molecules/radio-buttons/radio-buttons3.vue.js +0 -5
- package/dist/components/molecules/rte-editor/rte-editor.vue.js +0 -478
- package/dist/components/molecules/rte-editor/rte-editor3.vue.js +0 -5
- package/dist/components/molecules/select-media/select-media.vue.js +0 -87
- package/dist/components/molecules/select-media/select-media3.vue.js +0 -5
- package/dist/components/molecules/upload-group/upload-group.vue.js +0 -193
- package/dist/components/molecules/upload-group/upload-group3.vue.js +0 -5
- package/dist/components/organisms/asset-uploader/asset-uploader.vue.js +0 -160
- package/dist/components/organisms/asset-uploader/asset-uploader2.vue.js +0 -4
- package/dist/components/organisms/location-finder/location-finder.vue.js +0 -634
- package/dist/components/organisms/location-finder/location-finder3.vue.js +0 -5
- package/dist/components/organisms/preset-uploader/preset-uploader.vue.js +0 -569
- package/dist/components/organisms/preset-uploader/preset-uploader3.vue.js +0 -5
- package/dist/components/templates/base-carousel/base-carousel.vue.js +0 -93
- package/dist/components/templates/base-carousel/base-carousel3.vue.js +0 -5
- package/dist/components/templates/base-form/base-form.vue.js +0 -35
- package/dist/components/templates/base-form/base-form3.vue.js +0 -5
- package/dist/components/templates/modal-dialog/modal-dialog.vue.js +0 -123
- package/dist/components/templates/modal-dialog/modal-dialog3.vue.js +0 -5
- package/dist/components/templates/popover-dialog/popover-dialog.vue.js +0 -95
- package/dist/components/templates/popover-dialog/popover-dialog3.vue.js +0 -5
- package/dist/components/templates/sortable-list/sortable-list.vue.js +0 -204
- package/dist/components/templates/sortable-list/sortable-list3.vue.js +0 -5
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue.js +0 -76
- package/dist/components/templates/touch-wrapper/touch-wrapper3.vue.js +0 -5
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as f, computed as g, watch as b, onMounted as C, openBlock as l, createElementBlock as m, createElementVNode as o, createBlock as v, withCtx as y, withModifiers as c, toDisplayString as r, createCommentVNode as u, createVNode as V, renderSlot as B } from "vue";
|
|
2
|
-
import z from "../image-resize/image-resize.vue.js";
|
|
3
|
-
import N from "../image-crop/image-crop.vue.js";
|
|
4
|
-
import S from "../../atoms/base-image/base-image.vue.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
import _ from "../../atoms/svg-icon/svg-icon.vue.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
const x = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "image-crop-resize position-relative"
|
|
11
|
-
}, E = { class: "row" }, M = { class: "col" }, R = {
|
|
12
|
-
key: 3,
|
|
13
|
-
class: "alert alert-warning mt-4 small p-2"
|
|
14
|
-
}, U = { key: 4 }, W = { class: "row" }, q = { class: "col-12" }, D = { class: "d-flex" }, I = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "d-flex gap-3"
|
|
17
|
-
}, j = { class: "caption" }, A = { class: "caption" }, F = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "ms-auto"
|
|
20
|
-
}, Q = /* @__PURE__ */ h({
|
|
21
|
-
__name: "image-crop-resize",
|
|
22
|
-
props: {
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',
|
|
26
|
-
required: !0
|
|
27
|
-
},
|
|
28
|
-
spinner: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
ready: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
},
|
|
36
|
-
aspectRatio: Number
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:modelValue"],
|
|
39
|
-
setup(d, { emit: k }) {
|
|
40
|
-
const p = d, $ = k, s = f(!1), a = f(!1), i = g({
|
|
41
|
-
get: () => p.modelValue,
|
|
42
|
-
set: (t) => $("update:modelValue", t)
|
|
43
|
-
}), w = g(() => p.modelValue.startsWith("data:image/svg+xml"));
|
|
44
|
-
return b(() => [s.value, i.value], (t, e) => {
|
|
45
|
-
t[0] && t[0] === e[0] && (s.value = !1);
|
|
46
|
-
}), b(() => [a.value, i.value], (t, e) => {
|
|
47
|
-
t[0] && t[0] === e[0] && (a.value = !1);
|
|
48
|
-
}), C(() => {
|
|
49
|
-
}), (t, e) => d.modelValue ? (l(), m("div", x, [
|
|
50
|
-
o("div", E, [
|
|
51
|
-
o("div", M, [
|
|
52
|
-
s.value || a.value ? s.value ? (l(), v(z, {
|
|
53
|
-
key: 1,
|
|
54
|
-
modelValue: i.value,
|
|
55
|
-
"onUpdate:modelValue": e[1] || (e[1] = (n) => i.value = n)
|
|
56
|
-
}, {
|
|
57
|
-
actions: y(() => [
|
|
58
|
-
o("button", {
|
|
59
|
-
class: "btn btn-outline-ccontrast",
|
|
60
|
-
onClick: e[0] || (e[0] = c((n) => s.value = !1, ["prevent", "stop"]))
|
|
61
|
-
}, r(t.$t("common.cancel")), 1)
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["modelValue"])) : a.value ? (l(), v(N, {
|
|
65
|
-
key: 2,
|
|
66
|
-
modelValue: i.value,
|
|
67
|
-
"onUpdate:modelValue": e[3] || (e[3] = (n) => i.value = n),
|
|
68
|
-
"suggested-aspect-ratio": d.aspectRatio
|
|
69
|
-
}, {
|
|
70
|
-
actions: y(() => [
|
|
71
|
-
o("button", {
|
|
72
|
-
class: "btn btn-sm btn-outline-ccontrast",
|
|
73
|
-
onClick: e[2] || (e[2] = c((n) => a.value = !1, ["prevent", "stop"]))
|
|
74
|
-
}, r(t.$t("common.cancel")), 1)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["modelValue", "suggested-aspect-ratio"])) : u("", !0) : (l(), v(S, {
|
|
78
|
-
key: 0,
|
|
79
|
-
ref: "targetImage",
|
|
80
|
-
class: "",
|
|
81
|
-
animate: !1,
|
|
82
|
-
src: d.modelValue
|
|
83
|
-
}, null, 8, ["src"])),
|
|
84
|
-
w.value ? (l(), m("div", R, r(t.$t("common.svgWarning")), 1)) : u("", !0),
|
|
85
|
-
!a.value && !s.value ? (l(), m("hr", U)) : u("", !0),
|
|
86
|
-
o("div", W, [
|
|
87
|
-
o("div", q, [
|
|
88
|
-
o("div", D, [
|
|
89
|
-
!a.value && !s.value ? (l(), m("div", I, [
|
|
90
|
-
o("button", {
|
|
91
|
-
type: "button",
|
|
92
|
-
class: "btn btn-light",
|
|
93
|
-
onClick: e[4] || (e[4] = c((n) => a.value = !a.value, ["prevent", "stop"]))
|
|
94
|
-
}, [
|
|
95
|
-
V(_, { symbol: "crop" }),
|
|
96
|
-
o("span", j, r(t.$t("common.crop")), 1)
|
|
97
|
-
]),
|
|
98
|
-
o("button", {
|
|
99
|
-
type: "button",
|
|
100
|
-
class: "btn btn-light",
|
|
101
|
-
onClick: e[5] || (e[5] = c((n) => s.value = !s.value, ["prevent", "stop"]))
|
|
102
|
-
}, [
|
|
103
|
-
V(_, { symbol: "image-upscale" }),
|
|
104
|
-
o("span", A, r(t.$t("common.resize")), 1)
|
|
105
|
-
])
|
|
106
|
-
])) : u("", !0),
|
|
107
|
-
!a.value && !s.value ? (l(), m("div", F, [
|
|
108
|
-
B(t.$slots, "submit")
|
|
109
|
-
])) : u("", !0)
|
|
110
|
-
])
|
|
111
|
-
])
|
|
112
|
-
])
|
|
113
|
-
])
|
|
114
|
-
])
|
|
115
|
-
])) : u("", !0);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
export {
|
|
119
|
-
Q as default
|
|
120
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, useTemplateRef as E, ref as d, watch as v, onMounted as k, openBlock as h, createElementBlock as R, createElementVNode as t, createVNode as p, createBlock as S, createCommentVNode as _, withDirectives as $, vModelText as B, renderSlot as I, withModifiers as N, toDisplayString as z } from "vue";
|
|
2
|
-
import C from "../../../_virtual/debounce.js";
|
|
3
|
-
import { resizeImageElementToDataUrl as U } from "../../../utilities/helpers.js";
|
|
4
|
-
import b from "../../atoms/base-image/base-image.vue.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
import y from "../../atoms/base-input/base-input.vue.js";
|
|
7
|
-
/* empty css */
|
|
8
|
-
const q = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "image-editor position-relative"
|
|
11
|
-
}, D = { class: "row mb-3" }, H = { class: "col" }, T = { class: "row gap-2 mb-4" }, W = { class: "col-12" }, A = { class: "input mb-2" }, F = { class: "col" }, L = { class: "input mb-0" }, j = { class: "col" }, G = { class: "input mb-0" }, J = { class: "row" }, K = { class: "col d-flex justify-content-end gap-2" }, O = ["disabled"], ae = /* @__PURE__ */ x({
|
|
12
|
-
__name: "image-resize",
|
|
13
|
-
props: {
|
|
14
|
-
modelValue: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',
|
|
17
|
-
required: !0
|
|
18
|
-
},
|
|
19
|
-
spinner: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !1
|
|
22
|
-
},
|
|
23
|
-
ready: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !1
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:modelValue"],
|
|
29
|
-
setup(f, { emit: V }) {
|
|
30
|
-
const w = V, m = E("image"), n = d(1), l = d(0), i = d(0), r = d(null), s = d(0), u = d(0);
|
|
31
|
-
function M() {
|
|
32
|
-
r.value && (w("update:modelValue", r.value), n.value = 1);
|
|
33
|
-
}
|
|
34
|
-
const g = () => {
|
|
35
|
-
if (!s.value || !u.value) return;
|
|
36
|
-
l.value = Math.round(s.value * n.value);
|
|
37
|
-
const a = u.value / s.value;
|
|
38
|
-
i.value = Math.round(l.value * a);
|
|
39
|
-
const e = m.value?.$el;
|
|
40
|
-
if (!e) return;
|
|
41
|
-
const o = e.querySelector("img");
|
|
42
|
-
o && (r.value = U(o, l.value, i.value, "image/png"));
|
|
43
|
-
}, c = C(g, 300);
|
|
44
|
-
return v(n, () => {
|
|
45
|
-
s.value && (l.value = Math.round(s.value * n.value), c());
|
|
46
|
-
}), v(l, () => {
|
|
47
|
-
if (!s.value || l.value === 0) return;
|
|
48
|
-
const a = l.value / s.value;
|
|
49
|
-
Math.abs(a - n.value) > 1e-4 && (n.value = Number(a.toFixed(4)));
|
|
50
|
-
const e = u.value / s.value;
|
|
51
|
-
i.value = Math.round(l.value * e), c();
|
|
52
|
-
}), v(i, () => {
|
|
53
|
-
if (!u.value || i.value === 0) return;
|
|
54
|
-
const a = i.value / u.value;
|
|
55
|
-
Math.abs(a - n.value) > 1e-4 && (n.value = Number(a.toFixed(4)));
|
|
56
|
-
const e = s.value / u.value;
|
|
57
|
-
l.value = Math.round(i.value * e), c();
|
|
58
|
-
}), k(() => {
|
|
59
|
-
const a = m.value?.$el;
|
|
60
|
-
if (!a) return;
|
|
61
|
-
const e = a.querySelector("img");
|
|
62
|
-
if (!e) return;
|
|
63
|
-
const o = () => {
|
|
64
|
-
s.value = e.naturalWidth, u.value = e.naturalHeight, g();
|
|
65
|
-
};
|
|
66
|
-
e.complete ? o() : e.addEventListener("load", o);
|
|
67
|
-
}), (a, e) => f.modelValue ? (h(), R("div", q, [
|
|
68
|
-
t("div", D, [
|
|
69
|
-
t("div", H, [
|
|
70
|
-
p(b, {
|
|
71
|
-
ref_key: "image",
|
|
72
|
-
ref: m,
|
|
73
|
-
class: "d-none",
|
|
74
|
-
src: f.modelValue,
|
|
75
|
-
animate: !1
|
|
76
|
-
}, null, 8, ["src"]),
|
|
77
|
-
r.value ? (h(), S(b, {
|
|
78
|
-
key: 0,
|
|
79
|
-
ref: "targetImage",
|
|
80
|
-
class: "",
|
|
81
|
-
src: r.value,
|
|
82
|
-
animate: !1
|
|
83
|
-
}, null, 8, ["src"])) : _("", !0)
|
|
84
|
-
])
|
|
85
|
-
]),
|
|
86
|
-
t("div", T, [
|
|
87
|
-
t("div", W, [
|
|
88
|
-
t("div", A, [
|
|
89
|
-
$(t("input", {
|
|
90
|
-
type: "range",
|
|
91
|
-
class: "form-range",
|
|
92
|
-
id: "scaleRange",
|
|
93
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => n.value = o),
|
|
94
|
-
min: "0",
|
|
95
|
-
max: "2",
|
|
96
|
-
step: "0.0001"
|
|
97
|
-
}, null, 512), [
|
|
98
|
-
[B, n.value]
|
|
99
|
-
])
|
|
100
|
-
])
|
|
101
|
-
]),
|
|
102
|
-
t("div", F, [
|
|
103
|
-
t("div", L, [
|
|
104
|
-
p(y, {
|
|
105
|
-
type: "number",
|
|
106
|
-
class: "form-input mb-0",
|
|
107
|
-
id: "targetWidth",
|
|
108
|
-
modelValue: l.value,
|
|
109
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => l.value = o)
|
|
110
|
-
}, null, 8, ["modelValue"])
|
|
111
|
-
])
|
|
112
|
-
]),
|
|
113
|
-
e[3] || (e[3] = t("div", { class: "col-auto d-flex align-items-center" }, [
|
|
114
|
-
t("output", null, "×")
|
|
115
|
-
], -1)),
|
|
116
|
-
t("div", j, [
|
|
117
|
-
t("div", G, [
|
|
118
|
-
p(y, {
|
|
119
|
-
type: "number",
|
|
120
|
-
class: "form-input mb-0",
|
|
121
|
-
id: "targetHeight",
|
|
122
|
-
modelValue: i.value,
|
|
123
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) => i.value = o)
|
|
124
|
-
}, null, 8, ["modelValue"])
|
|
125
|
-
])
|
|
126
|
-
])
|
|
127
|
-
]),
|
|
128
|
-
t("div", J, [
|
|
129
|
-
t("div", K, [
|
|
130
|
-
I(a.$slots, "actions"),
|
|
131
|
-
t("button", {
|
|
132
|
-
class: "btn btn-sm btn-primary",
|
|
133
|
-
disabled: !r.value,
|
|
134
|
-
onClick: N(M, ["prevent", "stop"])
|
|
135
|
-
}, z(a.$t("common.apply")), 9, O)
|
|
136
|
-
])
|
|
137
|
-
])
|
|
138
|
-
])) : _("", !0);
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
ae as default
|
|
143
|
-
};
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as u, toRef as Q, computed as H, watch as v, onBeforeUnmount as O, openBlock as s, createElementBlock as p, normalizeClass as C, unref as $, Fragment as q, createVNode as d, normalizeStyle as E, createElementVNode as n, withModifiers as h, createCommentVNode as V, renderSlot as j, Transition as A, withCtx as B, createBlock as G, toDisplayString as J } from "vue";
|
|
2
|
-
import K from "../image-crop-resize/image-crop-resize.vue.js";
|
|
3
|
-
import X from "../../atoms/base-image/base-image.vue.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import z from "../../atoms/svg-icon/svg-icon.vue.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
import Y from "../../atoms/input-file/input-file.vue.js";
|
|
8
|
-
import Z from "../../templates/modal-dialog/modal-dialog.vue.js";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import { useDragAndDrop as _ } from "../../../composables/useDragAndDrop.js";
|
|
11
|
-
import { useUploadTransport as ee } from "../../../composables/useUploadTransport.js";
|
|
12
|
-
import { useLocalFileUrl as te } from "../../../composables/useLocalFileUrl.js";
|
|
13
|
-
import { sanitizeHtml as ae } from "../../../composables/useSanitize.js";
|
|
14
|
-
import { resizeImageFileByMaxWidth as le, uniqueId as N, srcToFile as oe } from "../../../utilities/helpers.js";
|
|
15
|
-
const ie = { class: "image-upload__controls" }, ne = { class: "d-flex gap-1 align-items-center" }, re = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "image-upload__controls"
|
|
18
|
-
}, ue = ["for"], se = ["innerHTML"], de = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "image-upload__loading-spinner"
|
|
21
|
-
}, ke = /* @__PURE__ */ P({
|
|
22
|
-
__name: "image-upload",
|
|
23
|
-
props: {
|
|
24
|
-
modelValue: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
src: {
|
|
29
|
-
type: String
|
|
30
|
-
},
|
|
31
|
-
name: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: () => N()
|
|
34
|
-
},
|
|
35
|
-
id: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: () => N()
|
|
38
|
-
},
|
|
39
|
-
label: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: ""
|
|
42
|
-
},
|
|
43
|
-
placeholder: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ""
|
|
46
|
-
},
|
|
47
|
-
variant: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: ""
|
|
50
|
-
},
|
|
51
|
-
disabled: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: !1
|
|
54
|
-
},
|
|
55
|
-
readOnly: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !1
|
|
58
|
-
},
|
|
59
|
-
required: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !1
|
|
62
|
-
},
|
|
63
|
-
pattern: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: null
|
|
66
|
-
},
|
|
67
|
-
accept: {
|
|
68
|
-
type: String,
|
|
69
|
-
default: "image/*"
|
|
70
|
-
},
|
|
71
|
-
maxFileSize: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: 0
|
|
74
|
-
},
|
|
75
|
-
endpoint: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: ""
|
|
78
|
-
},
|
|
79
|
-
toDataUrl: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: !0
|
|
82
|
-
},
|
|
83
|
-
authToken: {
|
|
84
|
-
type: String,
|
|
85
|
-
default: ""
|
|
86
|
-
},
|
|
87
|
-
customFetch: null,
|
|
88
|
-
baseResponsePath: {
|
|
89
|
-
type: String,
|
|
90
|
-
default: "/api/v1/assets"
|
|
91
|
-
},
|
|
92
|
-
enablePreview: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !0
|
|
95
|
-
},
|
|
96
|
-
previewWidth: {
|
|
97
|
-
type: Number,
|
|
98
|
-
default: 0
|
|
99
|
-
},
|
|
100
|
-
dropFiles: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
default: !1
|
|
103
|
-
},
|
|
104
|
-
enableReview: {
|
|
105
|
-
type: Boolean,
|
|
106
|
-
default: !0
|
|
107
|
-
},
|
|
108
|
-
maxImageWidth: {
|
|
109
|
-
type: Number,
|
|
110
|
-
default: 4096
|
|
111
|
-
},
|
|
112
|
-
aspectRatio: Number,
|
|
113
|
-
localUrlFormat: {
|
|
114
|
-
type: String,
|
|
115
|
-
default: "dataUrl"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
emits: ["update:modelValue", "update:src"],
|
|
119
|
-
setup(a, { emit: T }) {
|
|
120
|
-
const o = a, y = T, D = u(), f = u([]), b = u(!1), r = u(!1), m = u(null), l = u(null), F = u(null);
|
|
121
|
-
let c = !1;
|
|
122
|
-
const { pending: L, uploadFile: R } = ee(o), { toLocalUrl: S, revoke: g } = te(Q(o, "localUrlFormat")), { isDragging: x } = _(D, {
|
|
123
|
-
enabled: () => o.dropFiles,
|
|
124
|
-
onDrop: (t) => {
|
|
125
|
-
f.value = t;
|
|
126
|
-
}
|
|
127
|
-
}), w = H(() => o.modelValue ? o.modelValue : o.src ? { type: "", src: o.src } : m.value);
|
|
128
|
-
function U(t) {
|
|
129
|
-
g(m.value?.src), m.value = t;
|
|
130
|
-
}
|
|
131
|
-
function k() {
|
|
132
|
-
U(null), f.value = [], b.value = !1, y("update:modelValue", void 0), y("update:src", "");
|
|
133
|
-
}
|
|
134
|
-
function W() {
|
|
135
|
-
k();
|
|
136
|
-
}
|
|
137
|
-
v(() => f.value, async (t) => {
|
|
138
|
-
if (!t || !t.length || !t[0]) return;
|
|
139
|
-
b.value = !1;
|
|
140
|
-
const e = await le(t[0], o.maxImageWidth);
|
|
141
|
-
o.enableReview ? (l.value = {
|
|
142
|
-
src: await S(e),
|
|
143
|
-
type: e.type
|
|
144
|
-
}, c = !0, r.value = !0) : U({
|
|
145
|
-
src: o.toDataUrl ? await S(e) : await R(e),
|
|
146
|
-
type: e.type
|
|
147
|
-
});
|
|
148
|
-
}), v(() => m.value, (t) => {
|
|
149
|
-
y("update:modelValue", t || void 0), y("update:src", t?.src || "");
|
|
150
|
-
}), v(() => F.value, async (t) => {
|
|
151
|
-
if (t) {
|
|
152
|
-
try {
|
|
153
|
-
U({
|
|
154
|
-
src: o.toDataUrl ? await S(t) : await R(t),
|
|
155
|
-
type: t.type
|
|
156
|
-
});
|
|
157
|
-
} catch (e) {
|
|
158
|
-
console.error(`Failed to process file "${t.name}"`, e);
|
|
159
|
-
}
|
|
160
|
-
F.value = null;
|
|
161
|
-
}
|
|
162
|
-
}), v(() => r.value, (t, e) => {
|
|
163
|
-
!t && e && l.value && (c && g(l.value.src), c = !1, l.value = null, W());
|
|
164
|
-
}), v(() => o.src, (t) => {
|
|
165
|
-
!t && m.value && W();
|
|
166
|
-
});
|
|
167
|
-
function I(t, e) {
|
|
168
|
-
c = !1, l.value = { src: t, type: e }, r.value = !0;
|
|
169
|
-
}
|
|
170
|
-
async function M() {
|
|
171
|
-
l.value && (F.value = await oe(
|
|
172
|
-
l.value.src,
|
|
173
|
-
"file",
|
|
174
|
-
l.value.type
|
|
175
|
-
), c && g(l.value.src)), c = !1, l.value = null, r.value = !1;
|
|
176
|
-
}
|
|
177
|
-
return O(() => {
|
|
178
|
-
g(m.value?.src);
|
|
179
|
-
}), (t, e) => (s(), p("div", {
|
|
180
|
-
ref_key: "root",
|
|
181
|
-
ref: D,
|
|
182
|
-
class: C(["image-upload", {
|
|
183
|
-
"has-dragging": a.dropFiles,
|
|
184
|
-
"is-dragging": $(x)
|
|
185
|
-
}])
|
|
186
|
-
}, [
|
|
187
|
-
!r.value && w.value ? (s(), p("div", {
|
|
188
|
-
key: 0,
|
|
189
|
-
class: C(["mb-2", a.enablePreview ? "image-upload__thumbnail" : "image-upload__reset"])
|
|
190
|
-
}, [
|
|
191
|
-
a.enablePreview ? (s(), p(q, { key: 0 }, [
|
|
192
|
-
d(X, {
|
|
193
|
-
src: `${w.value.src}${a.previewWidth ? `?width=${a.previewWidth}` : ""}`,
|
|
194
|
-
class: "img-thumbnail rounded",
|
|
195
|
-
ready: b.value,
|
|
196
|
-
"onUpdate:ready": e[0] || (e[0] = (i) => b.value = i),
|
|
197
|
-
animate: !1,
|
|
198
|
-
style: E({ maxWidth: a.previewWidth ? `${a.previewWidth}px` : "auto", height: "auto" })
|
|
199
|
-
}, null, 8, ["src", "ready", "style"]),
|
|
200
|
-
n("div", ie, [
|
|
201
|
-
n("div", ne, [
|
|
202
|
-
n("button", {
|
|
203
|
-
type: "button",
|
|
204
|
-
onClick: e[1] || (e[1] = h((i) => I(w.value.src, w.value.type), ["prevent", "stop"])),
|
|
205
|
-
class: "btn btn--edit btn-sm btn-light"
|
|
206
|
-
}, [
|
|
207
|
-
d(z, { symbol: "edit-2" })
|
|
208
|
-
]),
|
|
209
|
-
n("button", {
|
|
210
|
-
type: "button",
|
|
211
|
-
onClick: e[2] || (e[2] = h((i) => k(), ["prevent", "stop"])),
|
|
212
|
-
class: "btn btn--close btn-sm btn-light"
|
|
213
|
-
}, [
|
|
214
|
-
d(z, { symbol: "x" })
|
|
215
|
-
])
|
|
216
|
-
])
|
|
217
|
-
])
|
|
218
|
-
], 64)) : (s(), p("div", re, [
|
|
219
|
-
n("button", {
|
|
220
|
-
onClick: e[3] || (e[3] = h((i) => k(), ["prevent", "stop"])),
|
|
221
|
-
class: "btn btn--close btn-outline-contrast"
|
|
222
|
-
}, [
|
|
223
|
-
d(z, { symbol: "x" })
|
|
224
|
-
])
|
|
225
|
-
]))
|
|
226
|
-
], 2)) : V("", !0),
|
|
227
|
-
d(Y, {
|
|
228
|
-
modelValue: f.value,
|
|
229
|
-
"onUpdate:modelValue": e[4] || (e[4] = (i) => f.value = i),
|
|
230
|
-
id: a.id,
|
|
231
|
-
name: a.name,
|
|
232
|
-
accept: a.accept,
|
|
233
|
-
"max-file-size": a.maxFileSize,
|
|
234
|
-
class: "d-none"
|
|
235
|
-
}, null, 8, ["modelValue", "id", "name", "accept", "max-file-size"]),
|
|
236
|
-
a.src ? V("", !0) : (s(), p("label", {
|
|
237
|
-
key: 1,
|
|
238
|
-
for: a.id,
|
|
239
|
-
class: "image-upload__label"
|
|
240
|
-
}, [
|
|
241
|
-
j(t.$slots, "button", {}, () => [
|
|
242
|
-
n("span", {
|
|
243
|
-
class: "btn btn-outline-contrast",
|
|
244
|
-
innerHTML: $(ae)(a.label || t.$t("common.selectFile"))
|
|
245
|
-
}, null, 8, se)
|
|
246
|
-
]),
|
|
247
|
-
d(A, { name: "fade" }, {
|
|
248
|
-
default: B(() => [
|
|
249
|
-
$(L) ? (s(), p("span", de, [...e[7] || (e[7] = [
|
|
250
|
-
n("span", {
|
|
251
|
-
class: "spinner-border",
|
|
252
|
-
role: "status"
|
|
253
|
-
}, [
|
|
254
|
-
n("span", { class: "visually-hidden" }, "Loading...")
|
|
255
|
-
], -1)
|
|
256
|
-
])])) : V("", !0)
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
})
|
|
260
|
-
], 8, ue)),
|
|
261
|
-
d(Z, {
|
|
262
|
-
modelValue: r.value,
|
|
263
|
-
"onUpdate:modelValue": e[6] || (e[6] = (i) => r.value = i),
|
|
264
|
-
footer: !1
|
|
265
|
-
}, {
|
|
266
|
-
default: B(() => [
|
|
267
|
-
r.value && l.value ? (s(), G(K, {
|
|
268
|
-
key: 0,
|
|
269
|
-
modelValue: l.value.src,
|
|
270
|
-
"onUpdate:modelValue": e[5] || (e[5] = (i) => l.value.src = i),
|
|
271
|
-
"aspect-ratio": a.aspectRatio
|
|
272
|
-
}, {
|
|
273
|
-
submit: B(() => [
|
|
274
|
-
n("button", {
|
|
275
|
-
class: "btn btn-primary",
|
|
276
|
-
onClick: h(M, ["prevent", "stop"])
|
|
277
|
-
}, J(t.$t("common.save")), 1)
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["modelValue", "aspect-ratio"])) : V("", !0)
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}, 8, ["modelValue"])
|
|
284
|
-
], 2));
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
export {
|
|
288
|
-
ke as default
|
|
289
|
-
};
|