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,207 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, computed as f, openBlock as u, createElementBlock as o, renderSlot as S, createCommentVNode as y, createElementVNode as n, createVNode as g, withCtx as b, Transition as x, toDisplayString as h, Fragment as q, renderList as C, normalizeClass as B, withDirectives as $, vModelCheckbox as M, vModelRadio as p } from "vue";
|
|
2
|
-
import { useI18n as L } from "vue-i18n";
|
|
3
|
-
import { uniqueId as N } from "../../../utilities/helpers.js";
|
|
4
|
-
import T from "../../atoms/base-button/base-button.vue.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
const H = ["id"], O = ["for", "innerHTML"], A = { class: "dropdown" }, D = { class: "caption" }, E = ["innerHTML"], I = { class: "caption__text" }, J = { class: "d-block text-truncate" }, U = { class: "dropdown-menu" }, j = { class: "form-check d-flex" }, z = ["value", "id", "name", "label", "required", "disabled"], F = ["value", "id", "name", "label", "required", "disabled"], P = ["for"], X = /* @__PURE__ */ k({
|
|
7
|
-
__name: "input-dropdown",
|
|
8
|
-
props: {
|
|
9
|
-
id: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
name: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: () => `dropdown-${N()}`
|
|
15
|
-
},
|
|
16
|
-
label: {
|
|
17
|
-
type: String
|
|
18
|
-
},
|
|
19
|
-
error: {
|
|
20
|
-
type: String
|
|
21
|
-
},
|
|
22
|
-
disabled: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
readOnly: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
required: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
modelValue: {
|
|
35
|
-
type: null
|
|
36
|
-
},
|
|
37
|
-
// value: {
|
|
38
|
-
// type: String,
|
|
39
|
-
// },
|
|
40
|
-
options: {
|
|
41
|
-
type: Array,
|
|
42
|
-
required: !0
|
|
43
|
-
},
|
|
44
|
-
multiple: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
showSelectionCount: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
},
|
|
52
|
-
toggleCaption: {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
placeholder: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: ""
|
|
58
|
-
},
|
|
59
|
-
icon: {
|
|
60
|
-
default: "chevron-down",
|
|
61
|
-
type: String
|
|
62
|
-
},
|
|
63
|
-
variant: {
|
|
64
|
-
type: String,
|
|
65
|
-
default: ""
|
|
66
|
-
},
|
|
67
|
-
color: {
|
|
68
|
-
type: String,
|
|
69
|
-
default: ""
|
|
70
|
-
},
|
|
71
|
-
outlined: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: !1
|
|
74
|
-
},
|
|
75
|
-
exactMatch: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !1
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
emits: ["update:modelValue"],
|
|
81
|
-
setup(e, { emit: V }) {
|
|
82
|
-
const { t: s } = L(), l = e, w = V, r = f({
|
|
83
|
-
get() {
|
|
84
|
-
return l.multiple && !l.modelValue ? [] : l.modelValue;
|
|
85
|
-
},
|
|
86
|
-
set(t) {
|
|
87
|
-
w("update:modelValue", t);
|
|
88
|
-
}
|
|
89
|
-
}), c = f(
|
|
90
|
-
() => l.options && l.options.map((t) => (t = typeof t == "string" ? {
|
|
91
|
-
text: t,
|
|
92
|
-
value: t
|
|
93
|
-
} : t, {
|
|
94
|
-
...t,
|
|
95
|
-
active: l.modelValue && t.value && (l.exactMatch ? l.modelValue === t.value : l.multiple ? l.modelValue.includes(t.value) : l.modelValue === t.value)
|
|
96
|
-
// Use === for single values
|
|
97
|
-
}))
|
|
98
|
-
), v = f(() => {
|
|
99
|
-
if (!l.modelValue)
|
|
100
|
-
return l.placeholder || `${s("common.select")}`;
|
|
101
|
-
if (l.multiple && Array.isArray(l.modelValue) && l.modelValue.length)
|
|
102
|
-
return c.value.reduce(
|
|
103
|
-
(t, d) => l.modelValue.includes(d.value) ? `${t}${t ? ", " : ""}${d.text}` : t,
|
|
104
|
-
""
|
|
105
|
-
);
|
|
106
|
-
if (!l.multiple) {
|
|
107
|
-
const t = c.value.find(
|
|
108
|
-
(d) => typeof d.value == "object" && d.value !== null ? JSON.stringify(d.value) === JSON.stringify(l.modelValue) : d.value === l.modelValue
|
|
109
|
-
);
|
|
110
|
-
return t ? t.text : l.placeholder || `${s("common.select")}`;
|
|
111
|
-
}
|
|
112
|
-
return l.placeholder || `${s("common.select")}`;
|
|
113
|
-
});
|
|
114
|
-
return (t, d) => (u(), o("div", {
|
|
115
|
-
class: "input input-dropdown",
|
|
116
|
-
id: `${e.id || e.name}`
|
|
117
|
-
}, [
|
|
118
|
-
S(t.$slots, "label", {}, () => [
|
|
119
|
-
e.label ? (u(), o("label", {
|
|
120
|
-
key: 0,
|
|
121
|
-
for: `${e.id || e.name}--dropdown-toggle`,
|
|
122
|
-
class: "input__label",
|
|
123
|
-
innerHTML: `${e.label}${e.required ? " *" : ""}`
|
|
124
|
-
}, null, 8, O)) : y("", !0)
|
|
125
|
-
]),
|
|
126
|
-
n("div", A, [
|
|
127
|
-
g(T, {
|
|
128
|
-
id: `${e.id || e.name}--dropdown-toggle`,
|
|
129
|
-
"data-bs-toggle": "dropdown",
|
|
130
|
-
role: "button",
|
|
131
|
-
type: "button",
|
|
132
|
-
title: v.value,
|
|
133
|
-
class: "btn dropdown-toggle",
|
|
134
|
-
color: e.color,
|
|
135
|
-
outlined: e.outlined,
|
|
136
|
-
disabled: e.disabled
|
|
137
|
-
}, {
|
|
138
|
-
default: b(() => [
|
|
139
|
-
n("span", D, [
|
|
140
|
-
g(x, { name: "bounce" }, {
|
|
141
|
-
default: b(() => [
|
|
142
|
-
e.showSelectionCount && e.modelValue.length ? (u(), o("i", {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "caption__count",
|
|
145
|
-
innerHTML: e.modelValue.length
|
|
146
|
-
}, null, 8, E)) : y("", !0)
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}),
|
|
150
|
-
n("span", I, [
|
|
151
|
-
n("span", J, h(e.toggleCaption || v.value), 1)
|
|
152
|
-
])
|
|
153
|
-
])
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
}, 8, ["id", "title", "color", "outlined", "disabled"]),
|
|
157
|
-
n("ul", U, [
|
|
158
|
-
(u(!0), o(q, null, C(c.value, (a, i) => (u(), o("li", {
|
|
159
|
-
key: `${a.value}-${i}`
|
|
160
|
-
}, [
|
|
161
|
-
n("div", {
|
|
162
|
-
class: B(["dropdown-item", a.active && "active"])
|
|
163
|
-
}, [
|
|
164
|
-
n("div", j, [
|
|
165
|
-
e.multiple ? $((u(), o("input", {
|
|
166
|
-
type: "checkbox",
|
|
167
|
-
"onUpdate:modelValue": d[0] || (d[0] = (m) => r.value = m),
|
|
168
|
-
value: a.value,
|
|
169
|
-
key: `${e.name}-${a.value}-${i}__if`,
|
|
170
|
-
id: `${e.name}-${a.value}-${i}`,
|
|
171
|
-
name: e.name,
|
|
172
|
-
label: a.text,
|
|
173
|
-
required: e.required,
|
|
174
|
-
disabled: a.selectable === !1,
|
|
175
|
-
class: "form-check-input"
|
|
176
|
-
}, null, 8, z)), [
|
|
177
|
-
[M, r.value]
|
|
178
|
-
]) : $((u(), o("input", {
|
|
179
|
-
type: "radio",
|
|
180
|
-
"onUpdate:modelValue": d[1] || (d[1] = (m) => r.value = m),
|
|
181
|
-
value: a.value,
|
|
182
|
-
key: `${e.name}-${a.value}-${i}__else`,
|
|
183
|
-
id: `${e.name}-${a.value}-${i}`,
|
|
184
|
-
name: e.name,
|
|
185
|
-
label: a.text,
|
|
186
|
-
required: e.required,
|
|
187
|
-
disabled: a.selectable === !1,
|
|
188
|
-
class: "form-check-input visually-hidden"
|
|
189
|
-
}, null, 8, F)), [
|
|
190
|
-
[p, r.value]
|
|
191
|
-
]),
|
|
192
|
-
n("label", {
|
|
193
|
-
class: "form-check-label flex-grow-1",
|
|
194
|
-
onclick: "event.stopPropagation",
|
|
195
|
-
for: `${e.name}-${a.value}-${i}`
|
|
196
|
-
}, h(a.text), 9, P)
|
|
197
|
-
])
|
|
198
|
-
], 2)
|
|
199
|
-
]))), 128))
|
|
200
|
-
])
|
|
201
|
-
])
|
|
202
|
-
], 8, H));
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
export {
|
|
206
|
-
X as default
|
|
207
|
-
};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, ref as _, computed as h, openBlock as n, createElementBlock as a, createElementVNode as t, createVNode as i, toDisplayString as o, createCommentVNode as l, withModifiers as p, createTextVNode as f } from "vue";
|
|
2
|
-
import r from "../../atoms/svg-icon/svg-icon.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
const $ = { class: "link-sharing" }, w = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "link-sharing__links container"
|
|
7
|
-
}, C = { class: "row" }, A = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "col-12 col-md-6"
|
|
10
|
-
}, j = ["href"], S = { class: "caption" }, x = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "col-12 col-md-6"
|
|
13
|
-
}, I = ["href"], N = { class: "caption" }, T = {
|
|
14
|
-
key: 2,
|
|
15
|
-
class: "col-12 col-md-6"
|
|
16
|
-
}, V = { class: "caption" }, B = {
|
|
17
|
-
key: 3,
|
|
18
|
-
class: "col-12 col-md-6"
|
|
19
|
-
}, E = ["href"], M = { class: "caption" }, R = {
|
|
20
|
-
key: 4,
|
|
21
|
-
class: "col-12 col-md-6"
|
|
22
|
-
}, U = ["href"], D = { class: "caption" }, H = {
|
|
23
|
-
key: 5,
|
|
24
|
-
class: "col-12 col-md-6"
|
|
25
|
-
}, O = { class: "caption" }, q = {
|
|
26
|
-
key: 6,
|
|
27
|
-
class: "col-12 col-md-6"
|
|
28
|
-
}, z = ["href"], F = { class: "caption" }, G = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "link-sharing__instructions pt-5"
|
|
31
|
-
}, J = { class: "row" }, K = { class: "col-12 text-center py-0" }, L = { class: "mb-5" }, P = (e) => e.replace(/<(?:.|\n)*?>/gm, ""), Y = /* @__PURE__ */ v({
|
|
32
|
-
__name: "link-sharing",
|
|
33
|
-
props: {
|
|
34
|
-
url: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ""
|
|
37
|
-
},
|
|
38
|
-
subject: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
hashtags: Array,
|
|
43
|
-
text: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ""
|
|
46
|
-
},
|
|
47
|
-
media: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: ""
|
|
50
|
-
},
|
|
51
|
-
services: {
|
|
52
|
-
type: Object,
|
|
53
|
-
default: {
|
|
54
|
-
facebook: !0,
|
|
55
|
-
instagram: !0,
|
|
56
|
-
linkedin: !0,
|
|
57
|
-
whatsapp: !0,
|
|
58
|
-
mailto: !0,
|
|
59
|
-
clipboard: !0,
|
|
60
|
-
bluesky: !0
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
setup(e) {
|
|
65
|
-
const d = e, c = _(!1), m = h(() => encodeURIComponent(d.url));
|
|
66
|
-
h(() => encodeURIComponent(d.media));
|
|
67
|
-
const b = h(() => P(d.text)), k = h(() => !!(navigator && navigator.userAgent && /Mobi|Android/i.test(navigator.userAgent)));
|
|
68
|
-
async function g() {
|
|
69
|
-
const s = document.createElement("textarea");
|
|
70
|
-
document.body.appendChild(s), s.value = d.url, s.select(), s.setSelectionRange(0, 99999), navigator.clipboard.writeText(s.value), document.body.removeChild(s);
|
|
71
|
-
}
|
|
72
|
-
return (s, u) => (n(), a("div", $, [
|
|
73
|
-
c.value ? (n(), a("div", G, [
|
|
74
|
-
t("div", J, [
|
|
75
|
-
t("div", K, [
|
|
76
|
-
t("div", L, [
|
|
77
|
-
t("p", null, o(s.$t("sharing.instructions", { service: "Instagram" })), 1),
|
|
78
|
-
t("p", null, [
|
|
79
|
-
t("strong", null, o(Array.isArray(e.hashtags) ? e.hashtags.join(", ") : e.hashtags), 1)
|
|
80
|
-
]),
|
|
81
|
-
t("button", {
|
|
82
|
-
type: "button",
|
|
83
|
-
class: "btn btn-text",
|
|
84
|
-
onClick: u[1] || (u[1] = p((y) => c.value = !c.value, ["prevent"]))
|
|
85
|
-
}, [
|
|
86
|
-
i(r, { symbol: "arrow-left" }),
|
|
87
|
-
f(" " + o(s.$t("common.back")), 1)
|
|
88
|
-
])
|
|
89
|
-
])
|
|
90
|
-
])
|
|
91
|
-
])
|
|
92
|
-
])) : (n(), a("div", w, [
|
|
93
|
-
t("div", C, [
|
|
94
|
-
e.services.facebook ? (n(), a("div", A, [
|
|
95
|
-
t("a", {
|
|
96
|
-
class: "link-sharing__link btn btn-primary",
|
|
97
|
-
href: `https://www.facebook.com/sharer.php?u=${m.value}`,
|
|
98
|
-
target: "_blank",
|
|
99
|
-
rel: "noopener"
|
|
100
|
-
}, [
|
|
101
|
-
i(r, { symbol: "facebook" }),
|
|
102
|
-
t("span", S, o(s.$t("sharing.facebook")), 1)
|
|
103
|
-
], 8, j)
|
|
104
|
-
])) : l("", !0),
|
|
105
|
-
e.services.bluesky ? (n(), a("div", x, [
|
|
106
|
-
t("a", {
|
|
107
|
-
class: "link-sharing__link btn btn-primary",
|
|
108
|
-
href: `https://bsky.app/intent/compose?text=${b.value}${b.value ? "%20" : ""}${e.url}`,
|
|
109
|
-
target: "_blank",
|
|
110
|
-
rel: "noopener"
|
|
111
|
-
}, [
|
|
112
|
-
i(r, { symbol: "bluesky-logo" }),
|
|
113
|
-
t("span", N, o(s.$t("sharing.bluesky")), 1)
|
|
114
|
-
], 8, I)
|
|
115
|
-
])) : l("", !0),
|
|
116
|
-
e.services.instagram ? (n(), a("div", T, [
|
|
117
|
-
t("button", {
|
|
118
|
-
type: "button",
|
|
119
|
-
class: "link-sharing__link btn btn-primary",
|
|
120
|
-
onClick: u[0] || (u[0] = p((y) => c.value = !c.value, ["prevent"]))
|
|
121
|
-
}, [
|
|
122
|
-
i(r, { symbol: "instagram" }),
|
|
123
|
-
t("span", V, o(s.$t("sharing.instagram")), 1)
|
|
124
|
-
])
|
|
125
|
-
])) : l("", !0),
|
|
126
|
-
e.services.linkedin ? (n(), a("div", B, [
|
|
127
|
-
t("a", {
|
|
128
|
-
class: "link-sharing__link btn btn-primary",
|
|
129
|
-
href: `https://www.linkedin.com/shareArticle?mini=true&url=${m.value}&title=${e.subject}`,
|
|
130
|
-
target: "_blank",
|
|
131
|
-
rel: "noopener"
|
|
132
|
-
}, [
|
|
133
|
-
i(r, { symbol: "linkedin" }),
|
|
134
|
-
t("span", M, o(s.$t("sharing.linkedin")), 1)
|
|
135
|
-
], 8, E)
|
|
136
|
-
])) : l("", !0),
|
|
137
|
-
e.services.whatsapp && k.value ? (n(), a("div", R, [
|
|
138
|
-
t("a", {
|
|
139
|
-
class: "link-sharing__link btn btn-primary",
|
|
140
|
-
href: `whatsapp://send?text=${m.value}`,
|
|
141
|
-
target: "_blank",
|
|
142
|
-
rel: "noopener"
|
|
143
|
-
}, [
|
|
144
|
-
i(r, { symbol: "whatsapp" }),
|
|
145
|
-
t("span", D, o(s.$t("sharing.whatsapp")), 1)
|
|
146
|
-
], 8, U)
|
|
147
|
-
])) : l("", !0),
|
|
148
|
-
e.services.clipboard ? (n(), a("div", H, [
|
|
149
|
-
t("button", {
|
|
150
|
-
type: "button",
|
|
151
|
-
class: "link-sharing__link btn btn-primary",
|
|
152
|
-
onClick: p(g, ["prevent", "stop"])
|
|
153
|
-
}, [
|
|
154
|
-
i(r, { symbol: "copy" }),
|
|
155
|
-
t("span", O, o(s.$t("sharing.clipboard")), 1)
|
|
156
|
-
])
|
|
157
|
-
])) : l("", !0),
|
|
158
|
-
e.services.mailto ? (n(), a("div", q, [
|
|
159
|
-
t("a", {
|
|
160
|
-
class: "link-sharing__link btn btn-primary",
|
|
161
|
-
href: `mailto:?subject=${e.subject}&body=${b.value}%0D%0A${e.url}`,
|
|
162
|
-
target: "_blank",
|
|
163
|
-
rel: "noopener"
|
|
164
|
-
}, [
|
|
165
|
-
i(r, { symbol: "mail" }),
|
|
166
|
-
t("span", F, o(s.$t("sharing.mailto")), 1)
|
|
167
|
-
], 8, z)
|
|
168
|
-
])) : l("", !0)
|
|
169
|
-
])
|
|
170
|
-
]))
|
|
171
|
-
]));
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
export {
|
|
175
|
-
Y as default,
|
|
176
|
-
P as stripHtml
|
|
177
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, openBlock as s, createElementBlock as i, toDisplayString as o, createCommentVNode as u, Fragment as k, renderList as v, normalizeClass as C, createElementVNode as S } from "vue";
|
|
2
|
-
const V = {
|
|
3
|
-
class: "location-list",
|
|
4
|
-
"data-testid": "location-list"
|
|
5
|
-
}, $ = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "location-list__label"
|
|
8
|
-
}, D = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "location-list__items"
|
|
11
|
-
}, L = ["data-testid", "onClick"], N = { class: "location-list__title" }, w = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "location-list__description"
|
|
14
|
-
}, K = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "location-list__distance"
|
|
17
|
-
}, T = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "location-list__empty"
|
|
20
|
-
}, x = /* @__PURE__ */ b({
|
|
21
|
-
__name: "location-list",
|
|
22
|
-
props: {
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: null,
|
|
25
|
-
default: null
|
|
26
|
-
},
|
|
27
|
-
locations: {
|
|
28
|
-
type: Array,
|
|
29
|
-
default: () => []
|
|
30
|
-
},
|
|
31
|
-
label: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
titleKey: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: "title"
|
|
38
|
-
},
|
|
39
|
-
descriptionKey: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "address"
|
|
42
|
-
},
|
|
43
|
-
emptyText: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "No locations found."
|
|
46
|
-
},
|
|
47
|
-
showDistance: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: !0
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
emits: ["update:modelValue", "select"],
|
|
53
|
-
setup(l, { emit: y }) {
|
|
54
|
-
const r = l, d = y;
|
|
55
|
-
function m(t) {
|
|
56
|
-
return t?.[r.titleKey] || t?.label || t?.name || "Location";
|
|
57
|
-
}
|
|
58
|
-
function _(t) {
|
|
59
|
-
return t?.[r.descriptionKey] || t?.description || t?.subtitle || "";
|
|
60
|
-
}
|
|
61
|
-
function a(t, n = 0) {
|
|
62
|
-
return t ? typeof t != "object" ? t : t.id ?? t.value ?? m(t) ?? n : n;
|
|
63
|
-
}
|
|
64
|
-
function f(t, n = 0) {
|
|
65
|
-
return `${a(t, n)}`.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
66
|
-
}
|
|
67
|
-
function p(t, n = 0) {
|
|
68
|
-
return a(r.modelValue) === a(t, n);
|
|
69
|
-
}
|
|
70
|
-
function g(t) {
|
|
71
|
-
return Number.isFinite(t) ? t >= 1e3 ? `${(t / 1e3).toFixed(1)} km` : `${Math.round(t)} m` : "—";
|
|
72
|
-
}
|
|
73
|
-
function h(t) {
|
|
74
|
-
d("update:modelValue", t), d("select", t);
|
|
75
|
-
}
|
|
76
|
-
return (t, n) => (s(), i("div", V, [
|
|
77
|
-
l.label ? (s(), i("p", $, o(l.label), 1)) : u("", !0),
|
|
78
|
-
l.locations.length ? (s(), i("div", D, [
|
|
79
|
-
(s(!0), i(k, null, v(l.locations, (e, c) => (s(), i("button", {
|
|
80
|
-
key: a(e, c),
|
|
81
|
-
type: "button",
|
|
82
|
-
class: C(["location-list__item", {
|
|
83
|
-
"location-list__item--active": p(e, c)
|
|
84
|
-
}]),
|
|
85
|
-
"data-testid": `location-option-${f(e, c)}`,
|
|
86
|
-
onClick: (B) => h(e)
|
|
87
|
-
}, [
|
|
88
|
-
S("strong", N, o(m(e)), 1),
|
|
89
|
-
_(e) ? (s(), i("small", w, o(_(e)), 1)) : u("", !0),
|
|
90
|
-
l.showDistance && e?.distance !== void 0 && e?.distance !== null ? (s(), i("small", K, o(g(Number(e.distance))) + " away ", 1)) : u("", !0)
|
|
91
|
-
], 10, L))), 128))
|
|
92
|
-
])) : (s(), i("p", T, o(l.emptyText), 1))
|
|
93
|
-
]));
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
x as default
|
|
98
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, ref as _, openBlock as t, createElementBlock as i, createVNode as s, withCtx as b, createElementVNode as y, normalizeClass as o, Fragment as g, renderList as k, createBlock as C, toDisplayString as v, createCommentVNode as V } from "vue";
|
|
2
|
-
import $ from "../../templates/base-carousel/base-carousel.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import m from "../../atoms/base-image/base-image.vue.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
const x = { class: "media-thumbnails" }, B = ["onClick", "title"], j = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "img-container"
|
|
9
|
-
}, O = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "media-thumbnails__count-badge"
|
|
12
|
-
}, w = {
|
|
13
|
-
key: 2,
|
|
14
|
-
class: "img-container"
|
|
15
|
-
}, I = /* @__PURE__ */ h({
|
|
16
|
-
__name: "media-thumbnails",
|
|
17
|
-
props: {
|
|
18
|
-
modelValue: {
|
|
19
|
-
default: null
|
|
20
|
-
},
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
messages: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default: {}
|
|
28
|
-
},
|
|
29
|
-
assets: {
|
|
30
|
-
type: Array,
|
|
31
|
-
default: []
|
|
32
|
-
},
|
|
33
|
-
stacked: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
showCount: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !1
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["update:modelValue", "select"],
|
|
43
|
-
setup(a, { emit: d }) {
|
|
44
|
-
const c = d, u = _(-1);
|
|
45
|
-
function r(l) {
|
|
46
|
-
u.value = l, c("update:modelValue", l), c("select", l);
|
|
47
|
-
}
|
|
48
|
-
return (l, N) => (t(), i("div", x, [
|
|
49
|
-
s($, { items: a.assets }, {
|
|
50
|
-
"carousel-item": b((e) => [
|
|
51
|
-
y("button", {
|
|
52
|
-
type: "button",
|
|
53
|
-
class: o(["carousel__item media-thumbnails__thumbnail", e.index === a.modelValue || e.index === u.value ? "is-active" : ""]),
|
|
54
|
-
onClick: (n) => r(e.index),
|
|
55
|
-
title: `${l.$t("thumbnails.thumbnail")} ${e.index + 1}`
|
|
56
|
-
}, [
|
|
57
|
-
e.item.type === "preset" && e.item.thumbnail ? (t(), i("div", j, [
|
|
58
|
-
s(m, {
|
|
59
|
-
src: e.item.thumbnail,
|
|
60
|
-
class: "img-fluid"
|
|
61
|
-
}, null, 8, ["src"])
|
|
62
|
-
])) : e.item.type === "preset" ? (t(), i("div", {
|
|
63
|
-
key: 1,
|
|
64
|
-
class: o(["img-container img-container--multi", { "img-container--stacked": a.stacked }])
|
|
65
|
-
}, [
|
|
66
|
-
(t(!0), i(g, null, k(e.item.items, (n, f) => (t(), C(m, {
|
|
67
|
-
key: f,
|
|
68
|
-
src: n.thumbnail || n.src,
|
|
69
|
-
class: "img-fluid"
|
|
70
|
-
}, null, 8, ["src"]))), 128)),
|
|
71
|
-
a.showCount && Object.keys(e.item.items || {}).length ? (t(), i("span", O, v(Object.keys(e.item.items || {}).length), 1)) : V("", !0)
|
|
72
|
-
], 2)) : (t(), i("div", w, [
|
|
73
|
-
s(m, {
|
|
74
|
-
src: e.item.thumbnail || e.item.src,
|
|
75
|
-
class: "img-fluid"
|
|
76
|
-
}, null, 8, ["src"])
|
|
77
|
-
]))
|
|
78
|
-
], 10, B)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["items"])
|
|
82
|
-
]));
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
I as default
|
|
87
|
-
};
|