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,386 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, shallowRef as G, ref as C, onMounted as H, markRaw as m, watch as S, computed as f, nextTick as J, openBlock as u, createElementBlock as k, renderSlot as K, toDisplayString as w, createCommentVNode as y, createElementVNode as Q, normalizeStyle as X, normalizeClass as ee, createBlock as d, resolveDynamicComponent as p, withCtx as h, Fragment as te, renderList as ae, createTextVNode as U } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
const le = { class: "base-map" }, ne = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "base-map__label"
|
|
6
|
-
}, re = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "base-map__hint"
|
|
9
|
-
}, se = /* @__PURE__ */ q({
|
|
10
|
-
__name: "base-map",
|
|
11
|
-
props: {
|
|
12
|
-
label: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
modelValue: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: null
|
|
19
|
-
},
|
|
20
|
-
center: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default: () => ({ lat: 48.8566, lng: 2.3522 })
|
|
23
|
-
},
|
|
24
|
-
zoom: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 13
|
|
27
|
-
},
|
|
28
|
-
markers: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: () => []
|
|
31
|
-
},
|
|
32
|
-
routeCoordinates: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default: () => []
|
|
35
|
-
},
|
|
36
|
-
routeColor: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "#2563eb"
|
|
39
|
-
},
|
|
40
|
-
routeWeight: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default: 5
|
|
43
|
-
},
|
|
44
|
-
selectionRadius: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: 0
|
|
47
|
-
},
|
|
48
|
-
selectionRadiusCenter: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default: null
|
|
51
|
-
},
|
|
52
|
-
selectionRadiusColor: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "#2563eb"
|
|
55
|
-
},
|
|
56
|
-
selectionRadiusFillColor: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "#60a5fa"
|
|
59
|
-
},
|
|
60
|
-
selectionRadiusFillOpacity: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: 0.14
|
|
63
|
-
},
|
|
64
|
-
selectionRadiusOpacity: {
|
|
65
|
-
type: Number,
|
|
66
|
-
default: 0.65
|
|
67
|
-
},
|
|
68
|
-
selectionRadiusStrokeWeight: {
|
|
69
|
-
type: Number,
|
|
70
|
-
default: 2
|
|
71
|
-
},
|
|
72
|
-
userLocation: {
|
|
73
|
-
type: Object,
|
|
74
|
-
default: null
|
|
75
|
-
},
|
|
76
|
-
userLocationLabel: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "Your location"
|
|
79
|
-
},
|
|
80
|
-
selectedLocationLabel: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: "Selected location"
|
|
83
|
-
},
|
|
84
|
-
height: {
|
|
85
|
-
type: String,
|
|
86
|
-
default: "20rem"
|
|
87
|
-
},
|
|
88
|
-
interactive: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: !1
|
|
91
|
-
},
|
|
92
|
-
disabled: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !1
|
|
95
|
-
},
|
|
96
|
-
showSelectedMarker: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: !0
|
|
99
|
-
},
|
|
100
|
-
helperText: {
|
|
101
|
-
type: String,
|
|
102
|
-
default: ""
|
|
103
|
-
},
|
|
104
|
-
mapStyle: {
|
|
105
|
-
type: String,
|
|
106
|
-
default: "streets"
|
|
107
|
-
},
|
|
108
|
-
tileLayerUrl: {
|
|
109
|
-
type: String,
|
|
110
|
-
default: ""
|
|
111
|
-
},
|
|
112
|
-
tileLayerAttribution: {
|
|
113
|
-
type: String,
|
|
114
|
-
default: ""
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
emits: ["update:modelValue", "update:center", "update:zoom", "map-click", "marker-click"],
|
|
118
|
-
setup(n, { emit: $ }) {
|
|
119
|
-
function v(e, t) {
|
|
120
|
-
return t({
|
|
121
|
-
className: "base-map__marker-wrapper",
|
|
122
|
-
html: `<span class="base-map__marker-pin base-map__marker-pin--${e}"><span class="base-map__marker-core"></span></span>`,
|
|
123
|
-
iconSize: [24, 24],
|
|
124
|
-
iconAnchor: [12, 24],
|
|
125
|
-
popupAnchor: [0, -20]
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
const N = {
|
|
129
|
-
lat: 48.8566,
|
|
130
|
-
lng: 2.3522
|
|
131
|
-
}, x = {
|
|
132
|
-
streets: {
|
|
133
|
-
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
134
|
-
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
135
|
-
},
|
|
136
|
-
light: {
|
|
137
|
-
url: "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png",
|
|
138
|
-
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
|
|
139
|
-
},
|
|
140
|
-
dark: {
|
|
141
|
-
url: "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
|
|
142
|
-
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
|
|
143
|
-
},
|
|
144
|
-
minimal: {
|
|
145
|
-
url: "https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",
|
|
146
|
-
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
|
|
147
|
-
},
|
|
148
|
-
popover: {
|
|
149
|
-
url: "https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}{r}.png",
|
|
150
|
-
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
|
|
151
|
-
}
|
|
152
|
-
}, a = n, c = $, s = G(null), L = C(null), M = C(null), z = C(a.zoom), r = C(o(a.modelValue));
|
|
153
|
-
H(async () => {
|
|
154
|
-
if (typeof window > "u")
|
|
155
|
-
return;
|
|
156
|
-
const [e, t] = await Promise.all([
|
|
157
|
-
import("@vue-leaflet/vue-leaflet"),
|
|
158
|
-
import("leaflet")
|
|
159
|
-
]), l = e.default ?? e, i = t.default ?? t;
|
|
160
|
-
s.value = m({
|
|
161
|
-
LCircle: m(l.LCircle),
|
|
162
|
-
LMap: m(l.LMap),
|
|
163
|
-
LMarker: m(l.LMarker),
|
|
164
|
-
LPopup: m(l.LPopup),
|
|
165
|
-
LPolyline: m(l.LPolyline),
|
|
166
|
-
LTileLayer: m(l.LTileLayer)
|
|
167
|
-
}), L.value = {
|
|
168
|
-
list: v("list", i.divIcon),
|
|
169
|
-
selected: v("selected", i.divIcon),
|
|
170
|
-
search: v("search", i.divIcon),
|
|
171
|
-
user: v("user", i.divIcon)
|
|
172
|
-
};
|
|
173
|
-
}), S(() => a.zoom, (e) => {
|
|
174
|
-
z.value = e;
|
|
175
|
-
}), S(() => a.modelValue, (e) => {
|
|
176
|
-
r.value = o(e);
|
|
177
|
-
}), S(() => a.center, (e) => {
|
|
178
|
-
const t = o(e);
|
|
179
|
-
t && g(t);
|
|
180
|
-
}, { deep: !0 }), S(
|
|
181
|
-
() => [
|
|
182
|
-
a.height,
|
|
183
|
-
a.markers.length,
|
|
184
|
-
a.routeCoordinates.length,
|
|
185
|
-
a.center?.lat,
|
|
186
|
-
a.center?.lng,
|
|
187
|
-
a.modelValue?.lat,
|
|
188
|
-
a.modelValue?.lng,
|
|
189
|
-
a.userLocation?.lat,
|
|
190
|
-
a.userLocation?.lng
|
|
191
|
-
],
|
|
192
|
-
() => {
|
|
193
|
-
V();
|
|
194
|
-
},
|
|
195
|
-
{ flush: "post" }
|
|
196
|
-
);
|
|
197
|
-
const b = f(() => o(a.userLocation)), R = f(() => o(a.selectionRadiusCenter) || r.value), B = f(() => {
|
|
198
|
-
const e = (a.markers || []).map((t) => {
|
|
199
|
-
const l = o(t);
|
|
200
|
-
return l ? {
|
|
201
|
-
...t,
|
|
202
|
-
...l,
|
|
203
|
-
type: t.type || (r.value && P(t, r.value) ? "selected" : "list")
|
|
204
|
-
} : null;
|
|
205
|
-
}).filter((t) => !!t);
|
|
206
|
-
return a.showSelectedMarker && r.value && !e.some((t) => P(t, r.value)) && e.push({
|
|
207
|
-
id: "selected-location",
|
|
208
|
-
label: a.selectedLocationLabel,
|
|
209
|
-
type: "search",
|
|
210
|
-
...r.value
|
|
211
|
-
}), e;
|
|
212
|
-
}), T = f(() => (a.routeCoordinates || []).map((e) => W(e)).filter((e) => !!e)), E = f(() => {
|
|
213
|
-
const e = o(a.center) || r.value || o(a.markers[0]) || N;
|
|
214
|
-
return [e.lat, e.lng];
|
|
215
|
-
}), I = f(() => {
|
|
216
|
-
if (a.tileLayerUrl.trim())
|
|
217
|
-
return a.tileLayerUrl;
|
|
218
|
-
const e = a.mapStyle === "custom" ? "streets" : a.mapStyle;
|
|
219
|
-
return x[e].url;
|
|
220
|
-
}), j = f(() => {
|
|
221
|
-
if (a.tileLayerAttribution.trim())
|
|
222
|
-
return a.tileLayerAttribution;
|
|
223
|
-
const e = a.mapStyle === "custom" ? "streets" : a.mapStyle;
|
|
224
|
-
return x[e].attribution;
|
|
225
|
-
});
|
|
226
|
-
function O(e = "list") {
|
|
227
|
-
if (L.value)
|
|
228
|
-
return L.value[e] || L.value.list;
|
|
229
|
-
}
|
|
230
|
-
function A(e = "list") {
|
|
231
|
-
switch (e) {
|
|
232
|
-
case "user":
|
|
233
|
-
return 450;
|
|
234
|
-
case "selected":
|
|
235
|
-
return 350;
|
|
236
|
-
case "search":
|
|
237
|
-
return 250;
|
|
238
|
-
default:
|
|
239
|
-
return 150;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function o(e) {
|
|
243
|
-
if (!e)
|
|
244
|
-
return null;
|
|
245
|
-
const t = Number(e.lat), l = Number(e.lng);
|
|
246
|
-
return Number.isNaN(t) || Number.isNaN(l) ? null : { lat: t, lng: l };
|
|
247
|
-
}
|
|
248
|
-
function W(e) {
|
|
249
|
-
if (Array.isArray(e)) {
|
|
250
|
-
const l = Number(e[0]), i = Number(e[1]);
|
|
251
|
-
return Number.isFinite(l) && Number.isFinite(i) ? [l, i] : null;
|
|
252
|
-
}
|
|
253
|
-
const t = o(e);
|
|
254
|
-
return t ? [t.lat, t.lng] : null;
|
|
255
|
-
}
|
|
256
|
-
function P(e, t) {
|
|
257
|
-
const l = o(e), i = o(t);
|
|
258
|
-
return !l || !i ? !1 : Math.abs(l.lat - i.lat) < 1e-6 && Math.abs(l.lng - i.lng) < 1e-6;
|
|
259
|
-
}
|
|
260
|
-
async function V() {
|
|
261
|
-
await J(), M.value?.invalidateSize();
|
|
262
|
-
}
|
|
263
|
-
function g(e) {
|
|
264
|
-
M.value?.panTo([e.lat, e.lng]);
|
|
265
|
-
}
|
|
266
|
-
function D(e) {
|
|
267
|
-
M.value = e, g(o(a.center) || r.value || N), V();
|
|
268
|
-
}
|
|
269
|
-
function Z(e) {
|
|
270
|
-
z.value = e, c("update:zoom", e);
|
|
271
|
-
}
|
|
272
|
-
function Y(e) {
|
|
273
|
-
const t = o(e);
|
|
274
|
-
t && (g(t), c("update:center", t));
|
|
275
|
-
}
|
|
276
|
-
function _(e) {
|
|
277
|
-
if (!a.interactive || a.disabled)
|
|
278
|
-
return;
|
|
279
|
-
const t = {
|
|
280
|
-
lat: Number(e.latlng.lat.toFixed(6)),
|
|
281
|
-
lng: Number(e.latlng.lng.toFixed(6))
|
|
282
|
-
};
|
|
283
|
-
r.value = t, g(t), c("update:modelValue", t), c("update:center", t), c("map-click", t);
|
|
284
|
-
}
|
|
285
|
-
function F(e) {
|
|
286
|
-
r.value = {
|
|
287
|
-
lat: Number(e.lat),
|
|
288
|
-
lng: Number(e.lng)
|
|
289
|
-
}, g(r.value), c("update:modelValue", r.value), c("update:center", r.value), c("marker-click", e);
|
|
290
|
-
}
|
|
291
|
-
return (e, t) => (u(), k("div", le, [
|
|
292
|
-
K(e.$slots, "label", {}, () => [
|
|
293
|
-
n.label ? (u(), k("label", ne, w(n.label), 1)) : y("", !0)
|
|
294
|
-
]),
|
|
295
|
-
Q("div", {
|
|
296
|
-
class: ee(["base-map__frame", {
|
|
297
|
-
"base-map__frame--interactive": n.interactive && !n.disabled,
|
|
298
|
-
"base-map__frame--disabled": n.disabled
|
|
299
|
-
}]),
|
|
300
|
-
style: X({ height: n.height }),
|
|
301
|
-
"data-testid": "base-map"
|
|
302
|
-
}, [
|
|
303
|
-
s.value ? (u(), d(p(s.value?.LMap), {
|
|
304
|
-
key: 0,
|
|
305
|
-
class: "base-map__canvas",
|
|
306
|
-
"use-global-leaflet": !1,
|
|
307
|
-
zoom: z.value,
|
|
308
|
-
center: E.value,
|
|
309
|
-
onReady: D,
|
|
310
|
-
onClick: _,
|
|
311
|
-
"onUpdate:zoom": Z,
|
|
312
|
-
"onUpdate:center": Y
|
|
313
|
-
}, {
|
|
314
|
-
default: h(() => [
|
|
315
|
-
(u(), d(p(s.value.LTileLayer), {
|
|
316
|
-
url: I.value,
|
|
317
|
-
attribution: j.value,
|
|
318
|
-
"layer-type": "base",
|
|
319
|
-
name: "OpenStreetMap"
|
|
320
|
-
}, null, 8, ["url", "attribution"])),
|
|
321
|
-
T.value.length > 1 ? (u(), d(p(s.value.LPolyline), {
|
|
322
|
-
key: 0,
|
|
323
|
-
"lat-lngs": T.value,
|
|
324
|
-
color: n.routeColor,
|
|
325
|
-
weight: n.routeWeight
|
|
326
|
-
}, null, 8, ["lat-lngs", "color", "weight"])) : y("", !0),
|
|
327
|
-
R.value && n.selectionRadius > 0 ? (u(), d(p(s.value.LCircle), {
|
|
328
|
-
key: 1,
|
|
329
|
-
"lat-lng": [R.value.lat, R.value.lng],
|
|
330
|
-
radius: n.selectionRadius,
|
|
331
|
-
color: n.selectionRadiusColor,
|
|
332
|
-
"fill-color": n.selectionRadiusFillColor,
|
|
333
|
-
"fill-opacity": n.selectionRadiusFillOpacity,
|
|
334
|
-
opacity: n.selectionRadiusOpacity,
|
|
335
|
-
weight: n.selectionRadiusStrokeWeight
|
|
336
|
-
}, null, 8, ["lat-lng", "radius", "color", "fill-color", "fill-opacity", "opacity", "weight"])) : y("", !0),
|
|
337
|
-
(u(!0), k(te, null, ae(B.value, (l, i) => (u(), d(p(s.value.LMarker), {
|
|
338
|
-
key: l.id ?? `${l.lat}-${l.lng}-${i}`,
|
|
339
|
-
"lat-lng": [l.lat, l.lng],
|
|
340
|
-
icon: O(l.type),
|
|
341
|
-
"z-index-offset": A(l.type),
|
|
342
|
-
onClick: (oe) => F(l)
|
|
343
|
-
}, {
|
|
344
|
-
default: h(() => [
|
|
345
|
-
l.label ? (u(), d(p(s.value.LPopup), { key: 0 }, {
|
|
346
|
-
default: h(() => [
|
|
347
|
-
U(w(l.label), 1)
|
|
348
|
-
]),
|
|
349
|
-
_: 2
|
|
350
|
-
}, 1024)) : y("", !0)
|
|
351
|
-
]),
|
|
352
|
-
_: 2
|
|
353
|
-
}, 1032, ["lat-lng", "icon", "z-index-offset", "onClick"]))), 128)),
|
|
354
|
-
b.value ? (u(), d(p(s.value.LMarker), {
|
|
355
|
-
key: `user-${b.value.lat}-${b.value.lng}`,
|
|
356
|
-
"lat-lng": [b.value.lat, b.value.lng],
|
|
357
|
-
icon: O("user"),
|
|
358
|
-
"z-index-offset": A("user"),
|
|
359
|
-
onClick: t[0] || (t[0] = (l) => F({
|
|
360
|
-
id: "user-location",
|
|
361
|
-
label: n.userLocationLabel,
|
|
362
|
-
type: "user",
|
|
363
|
-
...b.value
|
|
364
|
-
}))
|
|
365
|
-
}, {
|
|
366
|
-
default: h(() => [
|
|
367
|
-
(u(), d(p(s.value.LPopup), null, {
|
|
368
|
-
default: h(() => [
|
|
369
|
-
U(w(n.userLocationLabel), 1)
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
}))
|
|
373
|
-
]),
|
|
374
|
-
_: 1
|
|
375
|
-
}, 8, ["lat-lng", "icon", "z-index-offset"])) : y("", !0)
|
|
376
|
-
]),
|
|
377
|
-
_: 1
|
|
378
|
-
}, 40, ["zoom", "center"])) : y("", !0)
|
|
379
|
-
], 6),
|
|
380
|
-
n.interactive && n.helperText ? (u(), k("p", re, w(n.helperText), 1)) : y("", !0)
|
|
381
|
-
]));
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
export {
|
|
385
|
-
se as default
|
|
386
|
-
};
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, computed as V, ref as k, resolveComponent as x, openBlock as n, createElementBlock as i, createElementVNode as l, unref as N, renderSlot as $, withModifiers as M, createVNode as f, createCommentVNode as u, toDisplayString as g, withCtx as F, normalizeClass as U, Fragment as A, withDirectives as E, vModelText as R, nextTick as K } from "vue";
|
|
2
|
-
import j from "../file-upload/file-upload.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { sanitizeHtml as q } from "../../../composables/useSanitize.js";
|
|
5
|
-
const G = { class: "container" }, J = { class: "row" }, O = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "col-12"
|
|
8
|
-
}, Q = { class: "py-4 px-3 d-flex align-items-center border border-bottom-0" }, W = ["innerHTML"], X = { class: "col-12" }, Y = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "grid place-items-center text-center text-muted py-5 border border-bottom-0"
|
|
11
|
-
}, Z = { class: "m-0" }, ee = { class: "preview-item border-bottom p-3" }, te = { class: "d-flex gap-3" }, le = { class: "col-2" }, oe = { class: "col d-flex flex-column" }, se = { class: "file-meta text-muted small mb-2" }, ae = { class: "fw-semibold" }, ne = { key: 0 }, ie = { key: 1 }, de = ["onUpdate:modelValue", "id"], re = ["innerHTML"], ue = {
|
|
12
|
-
key: 2,
|
|
13
|
-
class: "upload-progress mt-3 mb-0"
|
|
14
|
-
}, ce = ["value"], pe = { class: "col-auto d-flex flex-column gap-2" }, me = ["onClick"], fe = ["onClick"], ve = { class: "file-upload__label" }, be = { class: "d-flex align-items-end p-3" }, he = ["for"], ge = ["innerHTML"], Me = /* @__PURE__ */ I({
|
|
15
|
-
__name: "bulk-upload",
|
|
16
|
-
props: {
|
|
17
|
-
storeId: String,
|
|
18
|
-
id: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => `bulk-upload-${Math.random().toString(36).substring(2, 9)}`
|
|
21
|
-
},
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default: []
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: () => 120
|
|
33
|
-
},
|
|
34
|
-
messages: {
|
|
35
|
-
type: null
|
|
36
|
-
},
|
|
37
|
-
hasHeader: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !0
|
|
40
|
-
},
|
|
41
|
-
title: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: ""
|
|
44
|
-
},
|
|
45
|
-
hasBulkRemove: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: !0
|
|
48
|
-
},
|
|
49
|
-
hasCaptions: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !0
|
|
52
|
-
},
|
|
53
|
-
editCaptions: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !0
|
|
56
|
-
},
|
|
57
|
-
allowDuplicateFiles: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !1
|
|
60
|
-
},
|
|
61
|
-
maxFiles: {
|
|
62
|
-
type: Number,
|
|
63
|
-
default: 0
|
|
64
|
-
},
|
|
65
|
-
showProgress: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !0
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
emits: ["update:modelValue"],
|
|
71
|
-
setup(d, { emit: z }) {
|
|
72
|
-
const r = d, w = z, C = (e) => `${e.name ?? ""}|${e.size ?? 0}|${e.lastModified ?? 0}|${e.type ?? ""}`, c = V({
|
|
73
|
-
get: () => {
|
|
74
|
-
const e = r.modelValue || [];
|
|
75
|
-
return b.value = e.map((t) => t.caption || ""), e.map((t) => ({
|
|
76
|
-
type: t.type,
|
|
77
|
-
src: t.src,
|
|
78
|
-
...t.name ? { name: t.name } : {},
|
|
79
|
-
...t.size ? { size: t.size } : {},
|
|
80
|
-
...t.lastModified ? { lastModified: t.lastModified } : {},
|
|
81
|
-
...t.uploadProgress ? { uploadProgress: t.uploadProgress } : {}
|
|
82
|
-
}));
|
|
83
|
-
},
|
|
84
|
-
set: (e) => {
|
|
85
|
-
const t = c.value || [], a = Array.isArray(e) ? e : [], p = r.allowDuplicateFiles ? a : a.filter((y) => {
|
|
86
|
-
const _ = C(y);
|
|
87
|
-
return !t.some((P) => C(P) === _);
|
|
88
|
-
}), o = r.maxFiles > 0 ? Math.max(0, r.maxFiles - t.length) : void 0, s = typeof o == "number" ? p.slice(0, o) : p;
|
|
89
|
-
if (!r.allowDuplicateFiles && a.length > 0 && s.length === 0)
|
|
90
|
-
return;
|
|
91
|
-
const m = s.length <= t.length && s.every((y) => t.some((_) => _.src === y.src));
|
|
92
|
-
h(m ? s : [...t, ...s]);
|
|
93
|
-
}
|
|
94
|
-
}), B = k(null), v = k({}), b = k({}), H = V(() => r.disabled || r.maxFiles > 0 && c.value.length >= r.maxFiles);
|
|
95
|
-
function S(e) {
|
|
96
|
-
const t = [...r.modelValue || []];
|
|
97
|
-
t.splice(e, 1), w("update:modelValue", t);
|
|
98
|
-
}
|
|
99
|
-
async function D(e) {
|
|
100
|
-
v.value[e] = !v.value[e], v.value[e] || h(), await K(), B.value?.querySelector(`#caption-${e}`)?.focus();
|
|
101
|
-
}
|
|
102
|
-
function T(e) {
|
|
103
|
-
if (e == null) return "";
|
|
104
|
-
const t = ["B", "KB", "MB", "GB", "TB"];
|
|
105
|
-
let a = e, p = t.shift();
|
|
106
|
-
for (; a >= 1024 && t.length; )
|
|
107
|
-
a /= 1024, p = t.shift();
|
|
108
|
-
return `${a.toFixed(1)} ${p}`;
|
|
109
|
-
}
|
|
110
|
-
function L(e) {
|
|
111
|
-
return e ? new Date(e).toLocaleDateString() : "";
|
|
112
|
-
}
|
|
113
|
-
function h(e) {
|
|
114
|
-
w("update:modelValue", (e || c.value).map((t, a) => ({
|
|
115
|
-
...t,
|
|
116
|
-
caption: b.value[a] || ""
|
|
117
|
-
})));
|
|
118
|
-
}
|
|
119
|
-
return (e, t) => {
|
|
120
|
-
const a = x("svg-icon"), p = x("base-image");
|
|
121
|
-
return n(), i("div", {
|
|
122
|
-
class: "bulk-upload",
|
|
123
|
-
ref_key: "root",
|
|
124
|
-
ref: B
|
|
125
|
-
}, [
|
|
126
|
-
l("div", G, [
|
|
127
|
-
l("div", J, [
|
|
128
|
-
d.hasHeader ? (n(), i("div", O, [
|
|
129
|
-
l("div", Q, [
|
|
130
|
-
l("p", {
|
|
131
|
-
class: "fw-bold m-0",
|
|
132
|
-
innerHTML: N(q)(d.title || e.$t("fileInput.bulkUploadHeadline"))
|
|
133
|
-
}, null, 8, W),
|
|
134
|
-
$(e.$slots, "bulk-remove", {}, () => [
|
|
135
|
-
d.hasBulkRemove ? (n(), i("button", {
|
|
136
|
-
key: 0,
|
|
137
|
-
onClick: t[0] || (t[0] = M((o) => c.value = [], ["prevent"])),
|
|
138
|
-
class: "btn btn--close ms-auto p-0"
|
|
139
|
-
}, [
|
|
140
|
-
f(a, { symbol: "x" })
|
|
141
|
-
])) : u("", !0)
|
|
142
|
-
])
|
|
143
|
-
])
|
|
144
|
-
])) : u("", !0),
|
|
145
|
-
l("div", X, [
|
|
146
|
-
c.value.length ? u("", !0) : (n(), i("div", Y, [
|
|
147
|
-
l("p", Z, g(e.$t("fileInput.noFilesSelected")), 1)
|
|
148
|
-
])),
|
|
149
|
-
f(j, {
|
|
150
|
-
id: `${d.id}-file-upload`,
|
|
151
|
-
modelValue: c.value,
|
|
152
|
-
"onUpdate:modelValue": t[2] || (t[2] = (o) => c.value = o),
|
|
153
|
-
multiple: !0,
|
|
154
|
-
accept: "image/*",
|
|
155
|
-
"drop-files": !0,
|
|
156
|
-
"to-data-url": !0,
|
|
157
|
-
"local-url-format": "objectUrl",
|
|
158
|
-
class: "d-flex flex-column border"
|
|
159
|
-
}, {
|
|
160
|
-
"preview-item": F(({ bind: { item: o, index: s } }) => [
|
|
161
|
-
l("div", ee, [
|
|
162
|
-
l("div", te, [
|
|
163
|
-
l("div", le, [
|
|
164
|
-
f(p, {
|
|
165
|
-
src: o.src,
|
|
166
|
-
alt: "",
|
|
167
|
-
class: "img-thumbnail"
|
|
168
|
-
}, null, 8, ["src"])
|
|
169
|
-
]),
|
|
170
|
-
l("div", oe, [
|
|
171
|
-
l("div", se, [
|
|
172
|
-
l("div", ae, g(o.name || e.$t("fileInput.unknownFile")), 1),
|
|
173
|
-
l("div", null, [
|
|
174
|
-
o.size ? (n(), i("span", ne, g(T(o.size)), 1)) : u("", !0),
|
|
175
|
-
o.lastModified ? (n(), i("span", ie, " · " + g(L(o.lastModified)), 1)) : u("", !0)
|
|
176
|
-
])
|
|
177
|
-
]),
|
|
178
|
-
d.hasCaptions ? (n(), i(A, { key: 0 }, [
|
|
179
|
-
v.value[s] && d.editCaptions ? E((n(), i("textarea", {
|
|
180
|
-
key: 0,
|
|
181
|
-
"onUpdate:modelValue": (m) => b.value[s] = m,
|
|
182
|
-
id: `caption-${s}`,
|
|
183
|
-
class: "form-control rounded-0 h-100",
|
|
184
|
-
onChangeCapture: t[1] || (t[1] = (m) => h())
|
|
185
|
-
}, null, 40, de)), [
|
|
186
|
-
[R, b.value[s]]
|
|
187
|
-
]) : (n(), i("p", {
|
|
188
|
-
key: 1,
|
|
189
|
-
class: "m-0",
|
|
190
|
-
innerHTML: b.value[s] || `<small>${e.$t("fileInput.noCaption")}</small>`
|
|
191
|
-
}, null, 8, re)),
|
|
192
|
-
d.showProgress && o.uploadProgress ? (n(), i("div", ue, [
|
|
193
|
-
$(e.$slots, "upload-progress", {
|
|
194
|
-
bind: { item: o, index: s }
|
|
195
|
-
}, () => [
|
|
196
|
-
l("progress", {
|
|
197
|
-
value: o.uploadProgress,
|
|
198
|
-
max: "100",
|
|
199
|
-
class: "w-100"
|
|
200
|
-
}, null, 8, ce)
|
|
201
|
-
])
|
|
202
|
-
])) : u("", !0)
|
|
203
|
-
], 64)) : u("", !0)
|
|
204
|
-
]),
|
|
205
|
-
l("div", pe, [
|
|
206
|
-
l("button", {
|
|
207
|
-
onClick: M((m) => S(s), ["prevent"]),
|
|
208
|
-
class: "btn btn--close"
|
|
209
|
-
}, [
|
|
210
|
-
f(a, { symbol: "x" })
|
|
211
|
-
], 8, me),
|
|
212
|
-
d.editCaptions ? (n(), i("button", {
|
|
213
|
-
key: 0,
|
|
214
|
-
onClick: M((m) => D(s), ["prevent"]),
|
|
215
|
-
class: "btn btn--close"
|
|
216
|
-
}, [
|
|
217
|
-
f(a, {
|
|
218
|
-
symbol: v.value[s] ? "check" : "edit-3"
|
|
219
|
-
}, null, 8, ["symbol"])
|
|
220
|
-
], 8, fe)) : u("", !0)
|
|
221
|
-
])
|
|
222
|
-
])
|
|
223
|
-
])
|
|
224
|
-
]),
|
|
225
|
-
label: F(() => [
|
|
226
|
-
$(e.$slots, "button", {}, () => [
|
|
227
|
-
l("span", ve, [
|
|
228
|
-
l("span", be, [
|
|
229
|
-
l("label", {
|
|
230
|
-
for: `${d.id}-file-upload`,
|
|
231
|
-
class: U(["btn btn-primary btn-sm ms-auto d-flex align-items-center gap-2", { disabled: H.value }])
|
|
232
|
-
}, [
|
|
233
|
-
f(a, {
|
|
234
|
-
symbol: "upload",
|
|
235
|
-
size: "small"
|
|
236
|
-
}),
|
|
237
|
-
l("span", {
|
|
238
|
-
innerHTML: e.$t("common.selectFile")
|
|
239
|
-
}, null, 8, ge)
|
|
240
|
-
], 10, he)
|
|
241
|
-
])
|
|
242
|
-
])
|
|
243
|
-
])
|
|
244
|
-
]),
|
|
245
|
-
_: 3
|
|
246
|
-
}, 8, ["id", "modelValue"])
|
|
247
|
-
])
|
|
248
|
-
])
|
|
249
|
-
])
|
|
250
|
-
], 512);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
export {
|
|
255
|
-
Me as default
|
|
256
|
-
};
|