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