ablok-components 0.3.105 → 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 +3 -2
- 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 -306
- 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,478 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as f, shallowRef as p, onMounted as M, onBeforeUnmount as V, watch as E, openBlock as u, createBlock as r, Teleport as U, createElementVNode as l, normalizeClass as b, createElementBlock as h, createVNode as i, createCommentVNode as y, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import n from "../../atoms/svg-icon/svg-icon.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
const R = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "rte-editor__controls mb-2"
|
|
7
|
-
}, I = ["disabled"], N = ["disabled"], O = { class: "btn-group" }, j = ["disabled"], z = ["disabled"], D = { class: "btn-group" }, K = { class: "dropdown" }, q = {
|
|
8
|
-
class: "btn dropdown-toggle btn-light",
|
|
9
|
-
"data-bs-toggle": "dropdown",
|
|
10
|
-
role: "button",
|
|
11
|
-
type: "button"
|
|
12
|
-
}, G = { class: "dropdown-menu" }, J = { class: "dropdown" }, Q = {
|
|
13
|
-
class: "btn dropdown-toggle btn-light",
|
|
14
|
-
"data-bs-toggle": "dropdown",
|
|
15
|
-
role: "button",
|
|
16
|
-
type: "button"
|
|
17
|
-
}, W = { class: "dropdown-menu" }, X = { class: "btn-group" }, Y = ["disabled"], Z = ["disabled"], _ = ["title"], it = /* @__PURE__ */ S({
|
|
18
|
-
inheritAttrs: !1,
|
|
19
|
-
__name: "rte-editor",
|
|
20
|
-
props: {
|
|
21
|
-
modelValue: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
disabled: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
iconBasePath: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "/rte-icons-defs.svg"
|
|
32
|
-
},
|
|
33
|
-
allowFullscreen: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:modelValue"],
|
|
39
|
-
setup(a, { emit: k }) {
|
|
40
|
-
const g = a, A = k, v = f(!1), d = f(!1), t = p(void 0), m = p(null);
|
|
41
|
-
M(async () => {
|
|
42
|
-
const [
|
|
43
|
-
{ Editor: c, mergeAttributes: e },
|
|
44
|
-
{ EditorContent: s },
|
|
45
|
-
{ default: L },
|
|
46
|
-
{ default: x },
|
|
47
|
-
{ default: T },
|
|
48
|
-
{ default: $ },
|
|
49
|
-
{ default: w }
|
|
50
|
-
] = await Promise.all([
|
|
51
|
-
import("@tiptap/core"),
|
|
52
|
-
import("@tiptap/vue-3"),
|
|
53
|
-
import("@tiptap/extension-highlight"),
|
|
54
|
-
import("@tiptap/extension-text-align"),
|
|
55
|
-
import("@tiptap/extension-link"),
|
|
56
|
-
import("@tiptap/starter-kit"),
|
|
57
|
-
import("@tiptap/extension-bold")
|
|
58
|
-
]);
|
|
59
|
-
m.value = s, t.value = new c({
|
|
60
|
-
content: g.modelValue,
|
|
61
|
-
onUpdate: () => {
|
|
62
|
-
A("update:modelValue", t.value?.getHTML());
|
|
63
|
-
},
|
|
64
|
-
extensions: [
|
|
65
|
-
$.configure({
|
|
66
|
-
bold: !1,
|
|
67
|
-
link: !1
|
|
68
|
-
}),
|
|
69
|
-
w.extend({
|
|
70
|
-
addAttributes() {
|
|
71
|
-
return {
|
|
72
|
-
class: {
|
|
73
|
-
default: null
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
parseHTML() {
|
|
78
|
-
return [
|
|
79
|
-
{ tag: "strong" },
|
|
80
|
-
{ tag: "b" }
|
|
81
|
-
];
|
|
82
|
-
},
|
|
83
|
-
renderHTML({ HTMLAttributes: o }) {
|
|
84
|
-
return ["strong", e(this.options.HTMLAttributes, o), 0];
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
x.configure({
|
|
88
|
-
types: ["heading", "paragraph"]
|
|
89
|
-
}),
|
|
90
|
-
L,
|
|
91
|
-
T.extend({
|
|
92
|
-
addAttributes() {
|
|
93
|
-
return {
|
|
94
|
-
...this.parent?.(),
|
|
95
|
-
// Allow any attribute on anchor tags
|
|
96
|
-
class: {
|
|
97
|
-
default: null
|
|
98
|
-
},
|
|
99
|
-
id: {
|
|
100
|
-
default: null
|
|
101
|
-
},
|
|
102
|
-
title: {
|
|
103
|
-
default: null
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
parseHTML() {
|
|
108
|
-
return [
|
|
109
|
-
// Parse anchor tags with href (default behavior)
|
|
110
|
-
{
|
|
111
|
-
tag: "a[href]",
|
|
112
|
-
getAttrs: (o) => ({
|
|
113
|
-
href: o.getAttribute("href"),
|
|
114
|
-
target: o.getAttribute("target"),
|
|
115
|
-
rel: o.getAttribute("rel"),
|
|
116
|
-
class: o.getAttribute("class"),
|
|
117
|
-
id: o.getAttribute("id"),
|
|
118
|
-
title: o.getAttribute("title")
|
|
119
|
-
})
|
|
120
|
-
},
|
|
121
|
-
// Also parse plain anchor tags without href
|
|
122
|
-
{
|
|
123
|
-
tag: "a:not([href])",
|
|
124
|
-
getAttrs: (o) => ({
|
|
125
|
-
href: null,
|
|
126
|
-
target: o.getAttribute("target"),
|
|
127
|
-
rel: o.getAttribute("rel"),
|
|
128
|
-
class: o.getAttribute("class"),
|
|
129
|
-
id: o.getAttribute("id"),
|
|
130
|
-
title: o.getAttribute("title")
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
];
|
|
134
|
-
},
|
|
135
|
-
renderHTML({ HTMLAttributes: o }) {
|
|
136
|
-
if (!o.href) {
|
|
137
|
-
const { href: tt, target: et, rel: lt, ...H } = o;
|
|
138
|
-
return ["a", e(H), 0];
|
|
139
|
-
}
|
|
140
|
-
return ["a", e(this.options.HTMLAttributes, o), 0];
|
|
141
|
-
}
|
|
142
|
-
}).configure({
|
|
143
|
-
openOnClick: !1,
|
|
144
|
-
autolink: !0,
|
|
145
|
-
defaultProtocol: "https",
|
|
146
|
-
protocols: ["http", "https"],
|
|
147
|
-
HTMLAttributes: {
|
|
148
|
-
target: "_blank",
|
|
149
|
-
rel: "noopener noreferrer"
|
|
150
|
-
}
|
|
151
|
-
})
|
|
152
|
-
]
|
|
153
|
-
});
|
|
154
|
-
}), V(() => {
|
|
155
|
-
t.value?.destroy();
|
|
156
|
-
}), E(() => g.modelValue, (c, e) => {
|
|
157
|
-
if (t.value) {
|
|
158
|
-
if (t.value.getHTML() === c)
|
|
159
|
-
return;
|
|
160
|
-
t.value.commands.setContent(c);
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
function B() {
|
|
164
|
-
const c = t.value?.getAttributes("link").href, e = window.prompt("URL", c);
|
|
165
|
-
if (e !== null) {
|
|
166
|
-
if (e === "") {
|
|
167
|
-
t.value?.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
try {
|
|
171
|
-
t.value?.chain().focus().extendMarkRange("link").setLink({ href: e }).run();
|
|
172
|
-
} catch (s) {
|
|
173
|
-
alert(s.message);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
const P = () => {
|
|
178
|
-
t.value?.commands.setContent(`<textarea>${t.value.getHTML()}</textarea>`), v.value = !0;
|
|
179
|
-
}, C = () => {
|
|
180
|
-
t.value?.commands.setContent(t.value.getText()), v.value = !1;
|
|
181
|
-
};
|
|
182
|
-
return (c, e) => (u(), r(U, {
|
|
183
|
-
to: "body",
|
|
184
|
-
disabled: !d.value
|
|
185
|
-
}, [
|
|
186
|
-
l("div", {
|
|
187
|
-
class: b([d.value ? "" : c.$attrs.class, "rte-editor", { "rte-editor--fullscreen": d.value }])
|
|
188
|
-
}, [
|
|
189
|
-
t.value ? (u(), h("div", R, [
|
|
190
|
-
v.value ? (u(), h("button", {
|
|
191
|
-
key: 1,
|
|
192
|
-
class: "btn btn-sm btn-light is-active",
|
|
193
|
-
onClick: C,
|
|
194
|
-
disabled: !t.value.can().chain().focus().toggleCode().run(),
|
|
195
|
-
title: "Toggle Source"
|
|
196
|
-
}, [
|
|
197
|
-
i(n, {
|
|
198
|
-
symbol: "source",
|
|
199
|
-
"base-path": a.iconBasePath
|
|
200
|
-
}, null, 8, ["base-path"])
|
|
201
|
-
], 8, N)) : (u(), h("button", {
|
|
202
|
-
key: 0,
|
|
203
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("code") }]),
|
|
204
|
-
onClick: P,
|
|
205
|
-
disabled: !t.value.can().chain().focus().toggleCode().run(),
|
|
206
|
-
title: "Toggle Source"
|
|
207
|
-
}, [
|
|
208
|
-
i(n, {
|
|
209
|
-
symbol: "source",
|
|
210
|
-
"base-path": a.iconBasePath
|
|
211
|
-
}, null, 8, ["base-path"])
|
|
212
|
-
], 10, I)),
|
|
213
|
-
l("div", O, [
|
|
214
|
-
l("button", {
|
|
215
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("bold") }]),
|
|
216
|
-
onClick: e[0] || (e[0] = (s) => t.value?.chain().focus().toggleBold().run()),
|
|
217
|
-
disabled: !t.value.can().chain().focus().toggleBold().run(),
|
|
218
|
-
title: "Toggle Bold"
|
|
219
|
-
}, [
|
|
220
|
-
i(n, {
|
|
221
|
-
symbol: "bold",
|
|
222
|
-
"base-path": a.iconBasePath
|
|
223
|
-
}, null, 8, ["base-path"])
|
|
224
|
-
], 10, j),
|
|
225
|
-
l("button", {
|
|
226
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("italic") }]),
|
|
227
|
-
onClick: e[1] || (e[1] = (s) => t.value?.chain().focus().toggleItalic().run()),
|
|
228
|
-
disabled: !t.value.can().chain().focus().toggleItalic().run(),
|
|
229
|
-
title: "Toggle Italic"
|
|
230
|
-
}, [
|
|
231
|
-
i(n, {
|
|
232
|
-
symbol: "italic",
|
|
233
|
-
"base-path": a.iconBasePath
|
|
234
|
-
}, null, 8, ["base-path"])
|
|
235
|
-
], 10, z)
|
|
236
|
-
]),
|
|
237
|
-
l("div", D, [
|
|
238
|
-
l("div", K, [
|
|
239
|
-
l("button", q, [
|
|
240
|
-
t.value.isActive("heading", { level: 1 }) ? (u(), r(n, {
|
|
241
|
-
key: 0,
|
|
242
|
-
symbol: "h1",
|
|
243
|
-
"base-path": a.iconBasePath
|
|
244
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 2 }) ? (u(), r(n, {
|
|
245
|
-
key: 1,
|
|
246
|
-
symbol: "h2",
|
|
247
|
-
"base-path": a.iconBasePath
|
|
248
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 3 }) ? (u(), r(n, {
|
|
249
|
-
key: 2,
|
|
250
|
-
symbol: "h3",
|
|
251
|
-
"base-path": a.iconBasePath
|
|
252
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 4 }) ? (u(), r(n, {
|
|
253
|
-
key: 3,
|
|
254
|
-
symbol: "h4",
|
|
255
|
-
"base-path": a.iconBasePath
|
|
256
|
-
}, null, 8, ["base-path"])) : (u(), r(n, {
|
|
257
|
-
key: 4,
|
|
258
|
-
symbol: "headline",
|
|
259
|
-
"base-path": a.iconBasePath
|
|
260
|
-
}, null, 8, ["base-path"]))
|
|
261
|
-
]),
|
|
262
|
-
l("ul", G, [
|
|
263
|
-
l("li", null, [
|
|
264
|
-
l("button", {
|
|
265
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 1 }) }]),
|
|
266
|
-
onClick: e[2] || (e[2] = (s) => t.value?.chain().focus().setHeading({ level: 1 }).run()),
|
|
267
|
-
title: "Set Heading 1"
|
|
268
|
-
}, [
|
|
269
|
-
i(n, {
|
|
270
|
-
symbol: "h1",
|
|
271
|
-
"base-path": a.iconBasePath
|
|
272
|
-
}, null, 8, ["base-path"])
|
|
273
|
-
], 2)
|
|
274
|
-
]),
|
|
275
|
-
l("li", null, [
|
|
276
|
-
l("button", {
|
|
277
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 2 }) }]),
|
|
278
|
-
onClick: e[3] || (e[3] = (s) => t.value?.chain().focus().setHeading({ level: 2 }).run()),
|
|
279
|
-
title: "Set Heading 2"
|
|
280
|
-
}, [
|
|
281
|
-
i(n, {
|
|
282
|
-
symbol: "h2",
|
|
283
|
-
"base-path": a.iconBasePath
|
|
284
|
-
}, null, 8, ["base-path"])
|
|
285
|
-
], 2)
|
|
286
|
-
]),
|
|
287
|
-
l("li", null, [
|
|
288
|
-
l("button", {
|
|
289
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 3 }) }]),
|
|
290
|
-
onClick: e[4] || (e[4] = (s) => t.value?.chain().focus().setHeading({ level: 3 }).run()),
|
|
291
|
-
title: "Set Heading 3"
|
|
292
|
-
}, [
|
|
293
|
-
i(n, {
|
|
294
|
-
symbol: "h3",
|
|
295
|
-
"base-path": a.iconBasePath
|
|
296
|
-
}, null, 8, ["base-path"])
|
|
297
|
-
], 2)
|
|
298
|
-
]),
|
|
299
|
-
l("li", null, [
|
|
300
|
-
l("button", {
|
|
301
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 4 }) }]),
|
|
302
|
-
onClick: e[5] || (e[5] = (s) => t.value?.chain().focus().setHeading({ level: 4 }).run()),
|
|
303
|
-
title: "Set Heading 4"
|
|
304
|
-
}, [
|
|
305
|
-
i(n, {
|
|
306
|
-
symbol: "h4",
|
|
307
|
-
"base-path": a.iconBasePath
|
|
308
|
-
}, null, 8, ["base-path"])
|
|
309
|
-
], 2)
|
|
310
|
-
])
|
|
311
|
-
])
|
|
312
|
-
]),
|
|
313
|
-
l("button", {
|
|
314
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("paragraph") }]),
|
|
315
|
-
onClick: e[6] || (e[6] = (s) => t.value?.chain().focus().setParagraph().run()),
|
|
316
|
-
title: "Set Paragraph"
|
|
317
|
-
}, [
|
|
318
|
-
i(n, {
|
|
319
|
-
symbol: "paragraph",
|
|
320
|
-
"base-path": a.iconBasePath
|
|
321
|
-
}, null, 8, ["base-path"])
|
|
322
|
-
], 2),
|
|
323
|
-
l("button", {
|
|
324
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("bulletList") }]),
|
|
325
|
-
onClick: e[7] || (e[7] = (s) => t.value?.chain().focus().toggleBulletList().run()),
|
|
326
|
-
title: "Toggle Bullet List"
|
|
327
|
-
}, [
|
|
328
|
-
i(n, {
|
|
329
|
-
symbol: "list",
|
|
330
|
-
"base-path": a.iconBasePath
|
|
331
|
-
}, null, 8, ["base-path"])
|
|
332
|
-
], 2),
|
|
333
|
-
l("button", {
|
|
334
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("orderedList") }]),
|
|
335
|
-
onClick: e[8] || (e[8] = (s) => t.value?.chain().focus().toggleOrderedList().run()),
|
|
336
|
-
title: "Toggle Ordered List"
|
|
337
|
-
}, [
|
|
338
|
-
i(n, {
|
|
339
|
-
symbol: "ordered-list",
|
|
340
|
-
"base-path": a.iconBasePath
|
|
341
|
-
}, null, 8, ["base-path"])
|
|
342
|
-
], 2)
|
|
343
|
-
]),
|
|
344
|
-
l("div", J, [
|
|
345
|
-
l("button", Q, [
|
|
346
|
-
t.value.isActive({ textAlign: "center" }) ? (u(), r(n, {
|
|
347
|
-
key: 0,
|
|
348
|
-
symbol: "align-center",
|
|
349
|
-
"base-path": a.iconBasePath
|
|
350
|
-
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "left" }) ? (u(), r(n, {
|
|
351
|
-
key: 1,
|
|
352
|
-
symbol: "align-left",
|
|
353
|
-
"base-path": a.iconBasePath
|
|
354
|
-
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "right" }) ? (u(), r(n, {
|
|
355
|
-
key: 2,
|
|
356
|
-
symbol: "align-right",
|
|
357
|
-
"base-path": a.iconBasePath
|
|
358
|
-
}, null, 8, ["base-path"])) : (u(), r(n, {
|
|
359
|
-
key: 3,
|
|
360
|
-
symbol: "align-justify",
|
|
361
|
-
"base-path": a.iconBasePath
|
|
362
|
-
}, null, 8, ["base-path"]))
|
|
363
|
-
]),
|
|
364
|
-
l("ul", W, [
|
|
365
|
-
l("li", null, [
|
|
366
|
-
l("button", {
|
|
367
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "left" }) }]),
|
|
368
|
-
onClick: e[9] || (e[9] = (s) => t.value?.chain().focus().setTextAlign("left").run())
|
|
369
|
-
}, [
|
|
370
|
-
i(n, {
|
|
371
|
-
symbol: "align-left",
|
|
372
|
-
"base-path": a.iconBasePath
|
|
373
|
-
}, null, 8, ["base-path"])
|
|
374
|
-
], 2)
|
|
375
|
-
]),
|
|
376
|
-
l("li", null, [
|
|
377
|
-
l("button", {
|
|
378
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "center" }) }]),
|
|
379
|
-
onClick: e[10] || (e[10] = (s) => t.value?.chain().focus().setTextAlign("center").run())
|
|
380
|
-
}, [
|
|
381
|
-
i(n, {
|
|
382
|
-
symbol: "align-center",
|
|
383
|
-
"base-path": a.iconBasePath
|
|
384
|
-
}, null, 8, ["base-path"])
|
|
385
|
-
], 2)
|
|
386
|
-
]),
|
|
387
|
-
l("li", null, [
|
|
388
|
-
l("button", {
|
|
389
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "right" }) }]),
|
|
390
|
-
onClick: e[11] || (e[11] = (s) => t.value?.chain().focus().setTextAlign("right").run())
|
|
391
|
-
}, [
|
|
392
|
-
i(n, {
|
|
393
|
-
symbol: "align-right",
|
|
394
|
-
"base-path": a.iconBasePath
|
|
395
|
-
}, null, 8, ["base-path"])
|
|
396
|
-
], 2)
|
|
397
|
-
]),
|
|
398
|
-
l("li", null, [
|
|
399
|
-
l("button", {
|
|
400
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "pretty" }) }]),
|
|
401
|
-
onClick: e[12] || (e[12] = (s) => t.value?.chain().focus().setTextAlign("right").run())
|
|
402
|
-
}, [
|
|
403
|
-
i(n, {
|
|
404
|
-
symbol: "align-justify",
|
|
405
|
-
"base-path": a.iconBasePath
|
|
406
|
-
}, null, 8, ["base-path"])
|
|
407
|
-
], 2)
|
|
408
|
-
])
|
|
409
|
-
])
|
|
410
|
-
]),
|
|
411
|
-
t.value.isActive("link") ? (u(), h("button", {
|
|
412
|
-
key: 3,
|
|
413
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
414
|
-
onClick: e[13] || (e[13] = (s) => t.value.chain().focus().unsetLink().run()),
|
|
415
|
-
title: "Unset Link"
|
|
416
|
-
}, [
|
|
417
|
-
i(n, {
|
|
418
|
-
symbol: "unlink",
|
|
419
|
-
"base-path": a.iconBasePath
|
|
420
|
-
}, null, 8, ["base-path"])
|
|
421
|
-
], 2)) : (u(), h("button", {
|
|
422
|
-
key: 2,
|
|
423
|
-
class: b(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
424
|
-
onClick: B,
|
|
425
|
-
title: "Set Link"
|
|
426
|
-
}, [
|
|
427
|
-
i(n, {
|
|
428
|
-
symbol: "link",
|
|
429
|
-
"base-path": a.iconBasePath
|
|
430
|
-
}, null, 8, ["base-path"])
|
|
431
|
-
], 2)),
|
|
432
|
-
l("div", X, [
|
|
433
|
-
l("button", {
|
|
434
|
-
class: "btn btn-sm btn-light",
|
|
435
|
-
onClick: e[14] || (e[14] = (s) => t.value?.chain().focus().undo().run()),
|
|
436
|
-
disabled: !t.value.can().chain().focus().undo().run(),
|
|
437
|
-
title: "Undo"
|
|
438
|
-
}, [
|
|
439
|
-
i(n, {
|
|
440
|
-
symbol: "undo",
|
|
441
|
-
"base-path": a.iconBasePath
|
|
442
|
-
}, null, 8, ["base-path"])
|
|
443
|
-
], 8, Y),
|
|
444
|
-
l("button", {
|
|
445
|
-
class: "btn btn-sm btn-light",
|
|
446
|
-
onClick: e[15] || (e[15] = (s) => t.value?.chain().focus().redo().run()),
|
|
447
|
-
disabled: !t.value.can().chain().focus().redo().run(),
|
|
448
|
-
title: "Redo"
|
|
449
|
-
}, [
|
|
450
|
-
i(n, {
|
|
451
|
-
symbol: "redo",
|
|
452
|
-
"base-path": a.iconBasePath
|
|
453
|
-
}, null, 8, ["base-path"])
|
|
454
|
-
], 8, Z)
|
|
455
|
-
]),
|
|
456
|
-
a.allowFullscreen ? (u(), h("button", {
|
|
457
|
-
key: 4,
|
|
458
|
-
class: "btn btn-sm btn-light ms-auto",
|
|
459
|
-
onClick: e[16] || (e[16] = (s) => d.value = !d.value),
|
|
460
|
-
title: d.value ? "Exit Fullscreen" : "Fullscreen"
|
|
461
|
-
}, [
|
|
462
|
-
i(n, {
|
|
463
|
-
symbol: d.value ? "close" : "maximize",
|
|
464
|
-
"base-path": a.iconBasePath
|
|
465
|
-
}, null, 8, ["symbol", "base-path"])
|
|
466
|
-
], 8, _)) : y("", !0)
|
|
467
|
-
])) : y("", !0),
|
|
468
|
-
(u(), r(F(m.value), {
|
|
469
|
-
class: "rte-editor__content",
|
|
470
|
-
editor: t.value
|
|
471
|
-
}, null, 8, ["editor"]))
|
|
472
|
-
], 2)
|
|
473
|
-
], 8, ["disabled"]));
|
|
474
|
-
}
|
|
475
|
-
});
|
|
476
|
-
export {
|
|
477
|
-
it as default
|
|
478
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as r, openBlock as n, createElementBlock as c, createVNode as f, withCtx as y, createElementVNode as x, normalizeClass as b, createBlock as V, createCommentVNode as p } from "vue";
|
|
2
|
-
import { uniqueId as o } from "../../../utilities/helpers.js";
|
|
3
|
-
import g from "../../atoms/radio-group/radio-group.vue.js";
|
|
4
|
-
/* empty css */
|
|
5
|
-
import q from "../../atoms/base-image/base-image.vue.js";
|
|
6
|
-
/* empty css */
|
|
7
|
-
const v = { class: "select-media" }, B = ["for"], $ = /* @__PURE__ */ u({
|
|
8
|
-
__name: "select-media",
|
|
9
|
-
props: {
|
|
10
|
-
modelValue: {
|
|
11
|
-
type: null,
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
assets: {
|
|
15
|
-
type: Array,
|
|
16
|
-
default: []
|
|
17
|
-
},
|
|
18
|
-
name: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => o()
|
|
21
|
-
},
|
|
22
|
-
id: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: () => o()
|
|
25
|
-
},
|
|
26
|
-
label: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
disabled: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
required: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
emitKey: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "src"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["update:modelValue", "update:selection"],
|
|
43
|
-
setup(e, { emit: m }) {
|
|
44
|
-
const a = e, d = m, i = r({
|
|
45
|
-
get() {
|
|
46
|
-
return a.modelValue;
|
|
47
|
-
},
|
|
48
|
-
set(s) {
|
|
49
|
-
const l = a.assets.find((t) => t.id === s);
|
|
50
|
-
d("update:modelValue", a.emitKey ? l[a.emitKey] : l), a.emitKey && a.emitKey !== "id" && d("update:selection", l.id);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return (s, l) => (n(), c("div", v, [
|
|
54
|
-
f(g, {
|
|
55
|
-
modelValue: i.value,
|
|
56
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) => i.value = t),
|
|
57
|
-
options: e.assets.map((t) => t.id),
|
|
58
|
-
name: e.name,
|
|
59
|
-
id: e.id,
|
|
60
|
-
disabled: e.disabled,
|
|
61
|
-
required: e.required,
|
|
62
|
-
class: "d-flex flex-wrap flex-row justify-content-center",
|
|
63
|
-
itemClass: "col-6 p-2"
|
|
64
|
-
}, {
|
|
65
|
-
"option-label": y((t) => [
|
|
66
|
-
x("label", {
|
|
67
|
-
for: `${e.id}-${t.index}`,
|
|
68
|
-
class: b(["w-100", {
|
|
69
|
-
"is-active": e.assets[t.index].id === i.value
|
|
70
|
-
}]),
|
|
71
|
-
role: "button"
|
|
72
|
-
}, [
|
|
73
|
-
e.assets[t.index].thumbnail ? (n(), V(q, {
|
|
74
|
-
key: 0,
|
|
75
|
-
src: e.assets[t.index].thumbnail,
|
|
76
|
-
alt: e.assets[t.index].id
|
|
77
|
-
}, null, 8, ["src", "alt"])) : p("", !0)
|
|
78
|
-
], 10, B)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["modelValue", "options", "name", "id", "disabled", "required"])
|
|
82
|
-
]));
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
$ as default
|
|
87
|
-
};
|