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,592 @@
|
|
|
1
|
+
import e from "../../atoms/svg-icon/svg-icon.js";
|
|
2
|
+
import { sanitizeHtml as t } from "../../../composables/useSanitize.js";
|
|
3
|
+
import { uniqueId as n } from "../../../utilities/helpers.js";
|
|
4
|
+
import r from "../../molecules/input-dropdown/input-dropdown.js";
|
|
5
|
+
import i from "../../molecules/file-upload/file-upload.js";
|
|
6
|
+
import a from "../../templates/sortable-list/sortable-list.js";
|
|
7
|
+
import o from "../../molecules/image-upload/image-upload.js";
|
|
8
|
+
import s from "../../templates/popover-dialog/popover-dialog.js";
|
|
9
|
+
import { Fragment as c, computed as ee, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, nextTick as te, normalizeStyle as g, openBlock as _, reactive as v, ref as ne, renderList as re, unref as ie, watch as y, withCtx as b, withModifiers as x } from "vue";
|
|
10
|
+
//#region src/components/organisms/preset-uploader/preset-uploader.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var ae = { class: "preset-uploader" }, oe = ["innerHTML"], se = { class: "preset-uploader__list" }, ce = ["popovertarget"], le = ["src"], S = ["onClick"], C = { class: "preset-uploader__popover p-2 d-flex gap-2 align-items-start" }, ue = ["popovertarget"], de = ["src"], fe = { class: "d-flex flex-column gap-2" }, pe = {
|
|
12
|
+
role: "button",
|
|
13
|
+
class: "btn btn-sm w-100 d-inline-flex align-items-center"
|
|
14
|
+
}, me = {
|
|
15
|
+
role: "button",
|
|
16
|
+
class: "btn btn-sm w-100 d-inline-flex align-items-center"
|
|
17
|
+
}, w = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "preset-group border border-2 rounded d-flex gap-1 p-1"
|
|
20
|
+
}, T = ["popovertarget"], E = ["src"], D = ["src"], O = ["onClick"], k = { class: "preset-uploader__popover p-2 d-flex gap-2 align-items-start" }, A = ["popovertarget"], j = ["src"], M = { class: "d-flex flex-column gap-2" }, N = {
|
|
21
|
+
role: "button",
|
|
22
|
+
class: "img-thumbnail text-dark d-flex justify-content-center align-items-center"
|
|
23
|
+
}, P = {
|
|
24
|
+
role: "button",
|
|
25
|
+
class: "img-thumbnail text-dark d-flex justify-content-center align-items-center"
|
|
26
|
+
}, F = { class: "preset-uploader__popover p-2 d-flex gap-2 align-items-start" }, I = ["onClick"], L = {
|
|
27
|
+
role: "button",
|
|
28
|
+
class: "img-thumbnail d-flex justify-content-center align-items-center"
|
|
29
|
+
}, R = {
|
|
30
|
+
role: "button",
|
|
31
|
+
class: "img-thumbnail text-dark d-flex justify-content-center align-items-center"
|
|
32
|
+
}, z = /*@__PURE__*/ h({
|
|
33
|
+
__name: "preset-uploader",
|
|
34
|
+
props: {
|
|
35
|
+
modelValue: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
name: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: () => n()
|
|
42
|
+
},
|
|
43
|
+
id: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: () => n()
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
},
|
|
51
|
+
label: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: ""
|
|
54
|
+
},
|
|
55
|
+
variant: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: ""
|
|
58
|
+
},
|
|
59
|
+
disabled: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
required: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
accept: { type: String },
|
|
68
|
+
maxFileSize: {
|
|
69
|
+
type: Number,
|
|
70
|
+
default: 0
|
|
71
|
+
},
|
|
72
|
+
endpoint: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ""
|
|
75
|
+
},
|
|
76
|
+
authToken: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: ""
|
|
79
|
+
},
|
|
80
|
+
customFetch: null,
|
|
81
|
+
mediaTypeMap: {
|
|
82
|
+
type: Object,
|
|
83
|
+
default: () => ({
|
|
84
|
+
svg: "Svg",
|
|
85
|
+
png: "Image",
|
|
86
|
+
jpg: "Image",
|
|
87
|
+
jpeg: "Image",
|
|
88
|
+
webp: "Image",
|
|
89
|
+
mp4: "Video",
|
|
90
|
+
webm: "Video"
|
|
91
|
+
})
|
|
92
|
+
},
|
|
93
|
+
baseResponsePath: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "/api/v1/assets"
|
|
96
|
+
},
|
|
97
|
+
previewWidth: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 0
|
|
100
|
+
},
|
|
101
|
+
useImageUpload: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
maxImageWidth: {
|
|
106
|
+
type: Number,
|
|
107
|
+
default: 0
|
|
108
|
+
},
|
|
109
|
+
aspectRatio: Number,
|
|
110
|
+
showTypeDropdown: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !1
|
|
113
|
+
},
|
|
114
|
+
typeOptions: {
|
|
115
|
+
type: Array,
|
|
116
|
+
default: () => [
|
|
117
|
+
"background",
|
|
118
|
+
"overlay",
|
|
119
|
+
"object"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
emits: ["update:modelValue"],
|
|
124
|
+
setup(n, { emit: h }) {
|
|
125
|
+
let z = n, B = h;
|
|
126
|
+
function he(e) {
|
|
127
|
+
return e?.type === "preset";
|
|
128
|
+
}
|
|
129
|
+
function V(e) {
|
|
130
|
+
if (e.includes("data:image")) return e.includes("data:image/svg") ? "Svg" : "Image";
|
|
131
|
+
let t = e.split(".").pop()?.split("?")[0]?.toLowerCase() ?? "";
|
|
132
|
+
return z.mediaTypeMap[t] ?? "";
|
|
133
|
+
}
|
|
134
|
+
let H = ee({
|
|
135
|
+
get() {
|
|
136
|
+
return z.modelValue;
|
|
137
|
+
},
|
|
138
|
+
set(e) {
|
|
139
|
+
B("update:modelValue", e);
|
|
140
|
+
}
|
|
141
|
+
}), U = ne("");
|
|
142
|
+
y(U, async (e, t) => {
|
|
143
|
+
if (e && t !== e) {
|
|
144
|
+
let t = {
|
|
145
|
+
src: e,
|
|
146
|
+
name: `${z.name}-${z.modelValue.length}`,
|
|
147
|
+
mediaType: V(e)
|
|
148
|
+
};
|
|
149
|
+
z.type && z.typeOptions.includes(z.type) && (t.type = z.type), B("update:modelValue", [...z.modelValue, t]), await te(), U.value = "";
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
let W = v({}), G = v({}), K = v({}), q = v({}), J = v({}), Y = v({}), X = v({});
|
|
153
|
+
y(J, (e) => {
|
|
154
|
+
for (let [t, n] of Object.entries(e)) if (!n) {
|
|
155
|
+
let e = Number(t);
|
|
156
|
+
delete W[e], delete G[e];
|
|
157
|
+
}
|
|
158
|
+
}, { deep: !0 }), y(Y, (e) => {
|
|
159
|
+
for (let [t, n] of Object.entries(e)) if (!n) {
|
|
160
|
+
let e = Number(t);
|
|
161
|
+
delete K[e], delete q[e];
|
|
162
|
+
}
|
|
163
|
+
}, { deep: !0 });
|
|
164
|
+
function Z(e, t) {
|
|
165
|
+
t && (W[e] = t);
|
|
166
|
+
}
|
|
167
|
+
function Q(e, t) {
|
|
168
|
+
t && (K[e] = t, Y[e] = !0);
|
|
169
|
+
}
|
|
170
|
+
function $(e) {
|
|
171
|
+
let t = [...z.modelValue];
|
|
172
|
+
t.splice(e, 1), B("update:modelValue", t);
|
|
173
|
+
}
|
|
174
|
+
function ge(e, t) {
|
|
175
|
+
B("update:modelValue", z.modelValue.map((n, r) => r === e ? {
|
|
176
|
+
...n,
|
|
177
|
+
type: t
|
|
178
|
+
} : n));
|
|
179
|
+
}
|
|
180
|
+
function _e(e, t, n) {
|
|
181
|
+
let r = z.modelValue[e];
|
|
182
|
+
B("update:modelValue", z.modelValue.map((i, a) => a === e ? {
|
|
183
|
+
...i,
|
|
184
|
+
items: {
|
|
185
|
+
...i.items,
|
|
186
|
+
[t]: {
|
|
187
|
+
...r.items[t],
|
|
188
|
+
type: n
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
} : i));
|
|
192
|
+
}
|
|
193
|
+
function ve(e, t) {
|
|
194
|
+
G[e] = t, ye(e);
|
|
195
|
+
}
|
|
196
|
+
function ye(e) {
|
|
197
|
+
let t = z.modelValue[e], n = t.type || z.type || "item", r = W[e], i = G[e], a = {
|
|
198
|
+
type: "preset",
|
|
199
|
+
items: {
|
|
200
|
+
[n]: {
|
|
201
|
+
src: t.src,
|
|
202
|
+
thumbnail: t.src,
|
|
203
|
+
type: n,
|
|
204
|
+
mediaType: t.mediaType || V(t.src)
|
|
205
|
+
},
|
|
206
|
+
[i]: {
|
|
207
|
+
src: r,
|
|
208
|
+
thumbnail: r,
|
|
209
|
+
type: i,
|
|
210
|
+
mediaType: V(r)
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
delete W[e], delete G[e], J[e] = !1, B("update:modelValue", z.modelValue.map((t, n) => n === e ? a : t));
|
|
215
|
+
}
|
|
216
|
+
function be(e, t) {
|
|
217
|
+
q[e] = t, xe(e);
|
|
218
|
+
}
|
|
219
|
+
function xe(e) {
|
|
220
|
+
let t = K[e], n = q[e], r = z.modelValue[e], i = {
|
|
221
|
+
...r,
|
|
222
|
+
items: {
|
|
223
|
+
...r.items,
|
|
224
|
+
[n]: {
|
|
225
|
+
src: t,
|
|
226
|
+
thumbnail: t,
|
|
227
|
+
type: n,
|
|
228
|
+
mediaType: V(t)
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
delete K[e], delete q[e], Y[e] = !1, B("update:modelValue", z.modelValue.map((t, n) => n === e ? i : t));
|
|
233
|
+
}
|
|
234
|
+
function Se(e, t) {
|
|
235
|
+
let n = z.modelValue[e], r = Object.keys(n.items).filter((e) => e !== t);
|
|
236
|
+
if (r.length <= 1) {
|
|
237
|
+
let t = r[0], i = t ? n.items[t] : null;
|
|
238
|
+
if (i) {
|
|
239
|
+
let t = {
|
|
240
|
+
src: i.src,
|
|
241
|
+
name: `${z.name}-${e}`,
|
|
242
|
+
type: i.type,
|
|
243
|
+
mediaType: i.mediaType
|
|
244
|
+
};
|
|
245
|
+
B("update:modelValue", z.modelValue.map((n, r) => r === e ? t : n));
|
|
246
|
+
} else $(e);
|
|
247
|
+
} else {
|
|
248
|
+
let r = { ...n.items };
|
|
249
|
+
delete r[t], B("update:modelValue", z.modelValue.map((t, i) => i === e ? {
|
|
250
|
+
...n,
|
|
251
|
+
items: r
|
|
252
|
+
} : t));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return (ee, h) => (_(), d("div", ae, [n.label ? (_(), d("label", {
|
|
256
|
+
key: 0,
|
|
257
|
+
innerHTML: ie(t)(n.label)
|
|
258
|
+
}, null, 8, oe)) : u("", !0), f("div", se, [m(a, {
|
|
259
|
+
modelValue: H.value,
|
|
260
|
+
"onUpdate:modelValue": h[2] ||= (e) => H.value = e,
|
|
261
|
+
vertical: !1,
|
|
262
|
+
class: "mb-3"
|
|
263
|
+
}, {
|
|
264
|
+
"list-item": b(({ item: t, index: a }) => [he(t) ? (_(), d("div", w, [
|
|
265
|
+
(_(!0), d(c, null, re(t.items, (t, i) => (_(), d("div", {
|
|
266
|
+
key: i,
|
|
267
|
+
class: "img-container",
|
|
268
|
+
style: g(n.showTypeDropdown ? { anchorName: `--${n.name}-si-${a}-${i}` } : {})
|
|
269
|
+
}, [
|
|
270
|
+
n.showTypeDropdown ? (_(), d("button", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "img-trigger",
|
|
273
|
+
popovertarget: `${n.name}-si-${a}-${i}`
|
|
274
|
+
}, [f("img", {
|
|
275
|
+
src: t.thumbnail || t.src,
|
|
276
|
+
class: "img-thumbnail border-0 p-0"
|
|
277
|
+
}, null, 8, E)], 8, T)) : (_(), d("img", {
|
|
278
|
+
key: 1,
|
|
279
|
+
src: t.thumbnail || t.src,
|
|
280
|
+
class: "img-thumbnail border-0 p-0"
|
|
281
|
+
}, null, 8, D)),
|
|
282
|
+
f("button", {
|
|
283
|
+
onClick: x((e) => Se(a, String(i)), ["prevent"]),
|
|
284
|
+
class: "btn btn--close"
|
|
285
|
+
}, [m(e, { symbol: "x" })], 8, O),
|
|
286
|
+
n.showTypeDropdown ? (_(), l(s, {
|
|
287
|
+
key: 2,
|
|
288
|
+
id: `${n.name}-si-${a}-${i}`,
|
|
289
|
+
modelValue: X[`${a}-${i}`],
|
|
290
|
+
"onUpdate:modelValue": (e) => X[`${a}-${i}`] = e,
|
|
291
|
+
class: "preset-uploader__item-popover",
|
|
292
|
+
style: g({ positionAnchor: `--${n.name}-si-${a}-${i}` })
|
|
293
|
+
}, {
|
|
294
|
+
default: b(() => [f("div", k, [f("button", {
|
|
295
|
+
class: "img-trigger",
|
|
296
|
+
popovertarget: `${n.name}-si-${a}-${i}`,
|
|
297
|
+
popovertargetaction: "hide"
|
|
298
|
+
}, [f("img", {
|
|
299
|
+
src: t.thumbnail || t.src,
|
|
300
|
+
class: "img-thumbnail"
|
|
301
|
+
}, null, 8, j)], 8, A), f("div", M, [m(r, {
|
|
302
|
+
name: `${n.name}-si-type-${a}-${i}`,
|
|
303
|
+
options: n.typeOptions,
|
|
304
|
+
"model-value": t.type || null,
|
|
305
|
+
placeholder: "layer type",
|
|
306
|
+
"onUpdate:modelValue": (e) => _e(a, String(i), e)
|
|
307
|
+
}, null, 8, [
|
|
308
|
+
"name",
|
|
309
|
+
"options",
|
|
310
|
+
"model-value",
|
|
311
|
+
"onUpdate:modelValue"
|
|
312
|
+
])])])]),
|
|
313
|
+
_: 2
|
|
314
|
+
}, 1032, [
|
|
315
|
+
"id",
|
|
316
|
+
"modelValue",
|
|
317
|
+
"onUpdate:modelValue",
|
|
318
|
+
"style"
|
|
319
|
+
])) : u("", !0)
|
|
320
|
+
], 4))), 128)),
|
|
321
|
+
f("div", {
|
|
322
|
+
class: "img-container img-container--add",
|
|
323
|
+
style: g({ anchorName: `--${n.name}-ap-${a}` })
|
|
324
|
+
}, [n.useImageUpload ? (_(), l(o, {
|
|
325
|
+
key: 0,
|
|
326
|
+
src: "",
|
|
327
|
+
endpoint: n.endpoint,
|
|
328
|
+
"custom-fetch": n.customFetch,
|
|
329
|
+
"to-data-url": !n.endpoint,
|
|
330
|
+
"auth-token": n.authToken,
|
|
331
|
+
disabled: n.disabled,
|
|
332
|
+
"base-response-path": n.baseResponsePath,
|
|
333
|
+
accept: n.accept,
|
|
334
|
+
"max-file-size": n.maxFileSize,
|
|
335
|
+
"max-image-width": n.maxImageWidth,
|
|
336
|
+
"enable-preview": !1,
|
|
337
|
+
"aspect-ratio": n.aspectRatio,
|
|
338
|
+
"onUpdate:src": (e) => Q(a, e)
|
|
339
|
+
}, {
|
|
340
|
+
button: b(() => [f("span", N, [m(e, { symbol: "plus" })])]),
|
|
341
|
+
_: 1
|
|
342
|
+
}, 8, [
|
|
343
|
+
"endpoint",
|
|
344
|
+
"custom-fetch",
|
|
345
|
+
"to-data-url",
|
|
346
|
+
"auth-token",
|
|
347
|
+
"disabled",
|
|
348
|
+
"base-response-path",
|
|
349
|
+
"accept",
|
|
350
|
+
"max-file-size",
|
|
351
|
+
"max-image-width",
|
|
352
|
+
"aspect-ratio",
|
|
353
|
+
"onUpdate:src"
|
|
354
|
+
])) : (_(), l(i, {
|
|
355
|
+
key: 1,
|
|
356
|
+
src: "",
|
|
357
|
+
multiple: !1,
|
|
358
|
+
endpoint: n.endpoint,
|
|
359
|
+
"custom-fetch": n.customFetch,
|
|
360
|
+
"to-data-url": !n.endpoint,
|
|
361
|
+
"auth-token": n.authToken,
|
|
362
|
+
disabled: n.disabled,
|
|
363
|
+
"base-response-path": n.baseResponsePath,
|
|
364
|
+
accept: n.accept,
|
|
365
|
+
"max-file-size": n.maxFileSize,
|
|
366
|
+
"onUpdate:src": (e) => Q(a, e)
|
|
367
|
+
}, {
|
|
368
|
+
button: b(() => [f("span", P, [m(e, { symbol: "plus" })])]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, [
|
|
371
|
+
"endpoint",
|
|
372
|
+
"custom-fetch",
|
|
373
|
+
"to-data-url",
|
|
374
|
+
"auth-token",
|
|
375
|
+
"disabled",
|
|
376
|
+
"base-response-path",
|
|
377
|
+
"accept",
|
|
378
|
+
"max-file-size",
|
|
379
|
+
"onUpdate:src"
|
|
380
|
+
])), m(s, {
|
|
381
|
+
id: `${n.name}-ap-${a}`,
|
|
382
|
+
modelValue: Y[a],
|
|
383
|
+
"onUpdate:modelValue": (e) => Y[a] = e,
|
|
384
|
+
class: "preset-uploader__anchor-popover",
|
|
385
|
+
style: g({ positionAnchor: `--${n.name}-ap-${a}` })
|
|
386
|
+
}, {
|
|
387
|
+
default: b(() => [f("div", F, [m(r, {
|
|
388
|
+
class: "mb-0",
|
|
389
|
+
name: `${n.name}-add-type-${a}`,
|
|
390
|
+
options: n.typeOptions,
|
|
391
|
+
"model-value": q[a] || null,
|
|
392
|
+
placeholder: "layer type",
|
|
393
|
+
"onUpdate:modelValue": (e) => be(a, e)
|
|
394
|
+
}, null, 8, [
|
|
395
|
+
"name",
|
|
396
|
+
"options",
|
|
397
|
+
"model-value",
|
|
398
|
+
"onUpdate:modelValue"
|
|
399
|
+
])])]),
|
|
400
|
+
_: 2
|
|
401
|
+
}, 1032, [
|
|
402
|
+
"id",
|
|
403
|
+
"modelValue",
|
|
404
|
+
"onUpdate:modelValue",
|
|
405
|
+
"style"
|
|
406
|
+
])], 4),
|
|
407
|
+
f("button", {
|
|
408
|
+
onClick: x((e) => $(a), ["prevent"]),
|
|
409
|
+
class: "btn btn--close btn--close-preset"
|
|
410
|
+
}, [m(e, { symbol: "x" })], 8, I)
|
|
411
|
+
])) : (_(), d("div", {
|
|
412
|
+
key: 0,
|
|
413
|
+
class: "img-container",
|
|
414
|
+
style: g({ anchorName: `--${n.name}-pp-${a}` })
|
|
415
|
+
}, [
|
|
416
|
+
f("button", {
|
|
417
|
+
class: "img-trigger",
|
|
418
|
+
popovertarget: `${n.name}-pp-${a}`
|
|
419
|
+
}, [f("img", {
|
|
420
|
+
src: t.thumbnail || t.src,
|
|
421
|
+
class: "img-thumbnail"
|
|
422
|
+
}, null, 8, le)], 8, ce),
|
|
423
|
+
f("button", {
|
|
424
|
+
onClick: x((e) => $(a), ["prevent"]),
|
|
425
|
+
class: "btn btn--close"
|
|
426
|
+
}, [m(e, { symbol: "x" })], 8, S),
|
|
427
|
+
m(s, {
|
|
428
|
+
id: `${n.name}-pp-${a}`,
|
|
429
|
+
modelValue: J[a],
|
|
430
|
+
"onUpdate:modelValue": (e) => J[a] = e,
|
|
431
|
+
class: "preset-uploader__item-popover",
|
|
432
|
+
style: g({ positionAnchor: `--${n.name}-pp-${a}` })
|
|
433
|
+
}, {
|
|
434
|
+
default: b(() => [f("div", C, [f("button", {
|
|
435
|
+
class: "img-trigger",
|
|
436
|
+
popovertarget: `${n.name}-pp-${a}`,
|
|
437
|
+
popovertargetaction: "hide"
|
|
438
|
+
}, [f("img", {
|
|
439
|
+
src: t.thumbnail || t.src,
|
|
440
|
+
class: "img-thumbnail"
|
|
441
|
+
}, null, 8, de)], 8, ue), f("div", fe, [n.showTypeDropdown ? (_(), l(r, {
|
|
442
|
+
key: 0,
|
|
443
|
+
name: `${n.name}-type-${a}`,
|
|
444
|
+
options: n.typeOptions,
|
|
445
|
+
"model-value": t.type || null,
|
|
446
|
+
placeholder: "item type",
|
|
447
|
+
"onUpdate:modelValue": (e) => ge(a, e)
|
|
448
|
+
}, null, 8, [
|
|
449
|
+
"name",
|
|
450
|
+
"options",
|
|
451
|
+
"model-value",
|
|
452
|
+
"onUpdate:modelValue"
|
|
453
|
+
])) : u("", !0), W[a] ? (_(), l(r, {
|
|
454
|
+
key: 2,
|
|
455
|
+
name: `${n.name}-promote-type-${a}`,
|
|
456
|
+
options: n.typeOptions,
|
|
457
|
+
"model-value": G[a] || null,
|
|
458
|
+
placeholder: "new layer type",
|
|
459
|
+
"onUpdate:modelValue": (e) => ve(a, e)
|
|
460
|
+
}, null, 8, [
|
|
461
|
+
"name",
|
|
462
|
+
"options",
|
|
463
|
+
"model-value",
|
|
464
|
+
"onUpdate:modelValue"
|
|
465
|
+
])) : (_(), d(c, { key: 1 }, [n.useImageUpload ? (_(), l(o, {
|
|
466
|
+
key: 0,
|
|
467
|
+
src: "",
|
|
468
|
+
endpoint: n.endpoint,
|
|
469
|
+
"custom-fetch": n.customFetch,
|
|
470
|
+
"to-data-url": !n.endpoint,
|
|
471
|
+
"auth-token": n.authToken,
|
|
472
|
+
disabled: n.disabled,
|
|
473
|
+
"base-response-path": n.baseResponsePath,
|
|
474
|
+
accept: n.accept,
|
|
475
|
+
"max-file-size": n.maxFileSize,
|
|
476
|
+
"max-image-width": n.maxImageWidth,
|
|
477
|
+
"enable-preview": !1,
|
|
478
|
+
"aspect-ratio": n.aspectRatio,
|
|
479
|
+
"onUpdate:src": (e) => Z(a, e)
|
|
480
|
+
}, {
|
|
481
|
+
button: b(() => [f("span", pe, [m(e, { symbol: "plus" }), h[3] ||= p(" Add layer", -1)])]),
|
|
482
|
+
_: 1
|
|
483
|
+
}, 8, [
|
|
484
|
+
"endpoint",
|
|
485
|
+
"custom-fetch",
|
|
486
|
+
"to-data-url",
|
|
487
|
+
"auth-token",
|
|
488
|
+
"disabled",
|
|
489
|
+
"base-response-path",
|
|
490
|
+
"accept",
|
|
491
|
+
"max-file-size",
|
|
492
|
+
"max-image-width",
|
|
493
|
+
"aspect-ratio",
|
|
494
|
+
"onUpdate:src"
|
|
495
|
+
])) : (_(), l(i, {
|
|
496
|
+
key: 1,
|
|
497
|
+
src: "",
|
|
498
|
+
multiple: !1,
|
|
499
|
+
endpoint: n.endpoint,
|
|
500
|
+
"custom-fetch": n.customFetch,
|
|
501
|
+
"to-data-url": !n.endpoint,
|
|
502
|
+
"auth-token": n.authToken,
|
|
503
|
+
disabled: n.disabled,
|
|
504
|
+
"base-response-path": n.baseResponsePath,
|
|
505
|
+
accept: n.accept,
|
|
506
|
+
"max-file-size": n.maxFileSize,
|
|
507
|
+
"onUpdate:src": (e) => Z(a, e)
|
|
508
|
+
}, {
|
|
509
|
+
button: b(() => [f("span", me, [m(e, { symbol: "plus" }), h[4] ||= p(" Add layer", -1)])]),
|
|
510
|
+
_: 1
|
|
511
|
+
}, 8, [
|
|
512
|
+
"endpoint",
|
|
513
|
+
"custom-fetch",
|
|
514
|
+
"to-data-url",
|
|
515
|
+
"auth-token",
|
|
516
|
+
"disabled",
|
|
517
|
+
"base-response-path",
|
|
518
|
+
"accept",
|
|
519
|
+
"max-file-size",
|
|
520
|
+
"onUpdate:src"
|
|
521
|
+
]))], 64))])])]),
|
|
522
|
+
_: 2
|
|
523
|
+
}, 1032, [
|
|
524
|
+
"id",
|
|
525
|
+
"modelValue",
|
|
526
|
+
"onUpdate:modelValue",
|
|
527
|
+
"style"
|
|
528
|
+
])
|
|
529
|
+
], 4))]),
|
|
530
|
+
"list-append": b(() => [n.useImageUpload ? (_(), l(o, {
|
|
531
|
+
key: 0,
|
|
532
|
+
src: U.value,
|
|
533
|
+
"onUpdate:src": h[0] ||= (e) => U.value = e,
|
|
534
|
+
endpoint: n.endpoint,
|
|
535
|
+
"custom-fetch": n.customFetch,
|
|
536
|
+
"to-data-url": !n.endpoint,
|
|
537
|
+
"auth-token": n.authToken,
|
|
538
|
+
disabled: n.disabled,
|
|
539
|
+
"base-response-path": n.baseResponsePath,
|
|
540
|
+
accept: n.accept,
|
|
541
|
+
"max-file-size": n.maxFileSize,
|
|
542
|
+
"max-image-width": n.maxImageWidth,
|
|
543
|
+
"enable-preview": !1,
|
|
544
|
+
"aspect-ratio": n.aspectRatio
|
|
545
|
+
}, {
|
|
546
|
+
button: b(() => [f("span", L, [m(e, { symbol: "plus" })])]),
|
|
547
|
+
_: 1
|
|
548
|
+
}, 8, [
|
|
549
|
+
"src",
|
|
550
|
+
"endpoint",
|
|
551
|
+
"custom-fetch",
|
|
552
|
+
"to-data-url",
|
|
553
|
+
"auth-token",
|
|
554
|
+
"disabled",
|
|
555
|
+
"base-response-path",
|
|
556
|
+
"accept",
|
|
557
|
+
"max-file-size",
|
|
558
|
+
"max-image-width",
|
|
559
|
+
"aspect-ratio"
|
|
560
|
+
])) : (_(), l(i, {
|
|
561
|
+
key: 1,
|
|
562
|
+
src: U.value,
|
|
563
|
+
"onUpdate:src": h[1] ||= (e) => U.value = e,
|
|
564
|
+
multiple: !1,
|
|
565
|
+
endpoint: n.endpoint,
|
|
566
|
+
"custom-fetch": n.customFetch,
|
|
567
|
+
"to-data-url": !n.endpoint,
|
|
568
|
+
"auth-token": n.authToken,
|
|
569
|
+
disabled: n.disabled,
|
|
570
|
+
"base-response-path": n.baseResponsePath,
|
|
571
|
+
accept: n.accept,
|
|
572
|
+
"max-file-size": n.maxFileSize
|
|
573
|
+
}, {
|
|
574
|
+
button: b(() => [f("span", R, [m(e, { symbol: "plus" })])]),
|
|
575
|
+
_: 1
|
|
576
|
+
}, 8, [
|
|
577
|
+
"src",
|
|
578
|
+
"endpoint",
|
|
579
|
+
"custom-fetch",
|
|
580
|
+
"to-data-url",
|
|
581
|
+
"auth-token",
|
|
582
|
+
"disabled",
|
|
583
|
+
"base-response-path",
|
|
584
|
+
"accept",
|
|
585
|
+
"max-file-size"
|
|
586
|
+
]))]),
|
|
587
|
+
_: 1
|
|
588
|
+
}, 8, ["modelValue"])])]));
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
//#endregion
|
|
592
|
+
export { z as default };
|
package/dist/components/templates/base-carousel/base-carousel.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "../../atoms/svg-icon/svg-icon.js";
|
|
2
|
+
import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, renderSlot as d, toDisplayString as f, withModifiers as p } from "vue";
|
|
3
|
+
//#region src/components/templates/base-carousel/base-carousel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = { class: "carousel d-flex" }, h = ["title"], g = ["onClick"], _ = ["title"], v = /*@__PURE__*/ o({
|
|
5
|
+
__name: "base-carousel",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: -1
|
|
10
|
+
},
|
|
11
|
+
config: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
messages: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: {}
|
|
18
|
+
},
|
|
19
|
+
items: {
|
|
20
|
+
type: Array,
|
|
21
|
+
default: []
|
|
22
|
+
},
|
|
23
|
+
navigation: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:modelValue", "select"],
|
|
29
|
+
setup(o, { emit: v }) {
|
|
30
|
+
let y = v, b = l(), x = l();
|
|
31
|
+
function S() {
|
|
32
|
+
b.value.scrollTo({
|
|
33
|
+
top: 0,
|
|
34
|
+
left: b.value.scrollLeft - b.value.clientWidth > 0 ? b.value.scrollLeft - b.value.clientWidth : 0,
|
|
35
|
+
behavior: "smooth"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function C() {
|
|
39
|
+
b.value.scrollTo({
|
|
40
|
+
top: 0,
|
|
41
|
+
left: b.value.scrollLeft - b.value.clientWidth <= x.value.clientWidth ? b.value.scrollLeft + b.value.clientWidth : x.value.clientWidth,
|
|
42
|
+
behavior: "smooth"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function w(e) {
|
|
46
|
+
y("update:modelValue", e);
|
|
47
|
+
}
|
|
48
|
+
return (l, v) => (c(), r("div", m, [
|
|
49
|
+
o.navigation ? (c(), r("button", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "carousel__control btn btn-link text-light",
|
|
52
|
+
type: "button",
|
|
53
|
+
onClick: p(S, ["prevent", "stop"]),
|
|
54
|
+
title: l.$t("common.backward")
|
|
55
|
+
}, [a(e, { symbol: "chevron-left" })], 8, h)) : n("", !0),
|
|
56
|
+
i("div", {
|
|
57
|
+
ref_key: "viewport",
|
|
58
|
+
ref: b,
|
|
59
|
+
class: "carousel__viewport flex-grow-1"
|
|
60
|
+
}, [i("div", {
|
|
61
|
+
ref_key: "track",
|
|
62
|
+
ref: x,
|
|
63
|
+
class: "carousel__track d-flex justify-center align-items-center"
|
|
64
|
+
}, [(c(!0), r(t, null, u(o.items, (e, t) => d(l.$slots, "carousel-item", {
|
|
65
|
+
item: e,
|
|
66
|
+
index: t
|
|
67
|
+
}, () => [i("div", {
|
|
68
|
+
class: s(["carousel__item", t === o.modelValue ? "selected" : ""]),
|
|
69
|
+
onClick: (e) => w(t)
|
|
70
|
+
}, f(e), 11, g)], void 0, e.src)), 128))], 512)], 512),
|
|
71
|
+
o.navigation ? (c(), r("button", {
|
|
72
|
+
key: 1,
|
|
73
|
+
class: "carousel__control btn btn-link text-light",
|
|
74
|
+
type: "button",
|
|
75
|
+
onClick: p(C, ["prevent", "stop"]),
|
|
76
|
+
title: l.$t("common.forward")
|
|
77
|
+
}, [a(e, { symbol: "chevron-right" })], 8, _)) : n("", !0)
|
|
78
|
+
]));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//#endregion
|
|
82
|
+
export { v as default };
|