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
package/dist/components/molecules/input-color/input-color.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { uniqueId as e } from "../../../utilities/helpers.js";
|
|
2
|
+
import t from "../../atoms/base-input/base-input.js";
|
|
3
|
+
import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, vModelText as c, withCtx as l, withDirectives as u } from "vue";
|
|
4
|
+
//#region src/components/molecules/input-color/input-color.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var d = { class: "input-color" }, f = { class: "base-input__color-swatch" }, p = [
|
|
6
|
+
"name",
|
|
7
|
+
"id",
|
|
8
|
+
"disabled",
|
|
9
|
+
"read-only",
|
|
10
|
+
"required",
|
|
11
|
+
"aria-label"
|
|
12
|
+
], m = /*@__PURE__*/ o({
|
|
13
|
+
__name: "input-color",
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: [
|
|
17
|
+
String,
|
|
18
|
+
Number,
|
|
19
|
+
Boolean,
|
|
20
|
+
Date
|
|
21
|
+
],
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
type: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "text"
|
|
27
|
+
},
|
|
28
|
+
name: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: () => e()
|
|
31
|
+
},
|
|
32
|
+
id: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: () => e()
|
|
35
|
+
},
|
|
36
|
+
label: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
variant: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: ""
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !1
|
|
51
|
+
},
|
|
52
|
+
readOnly: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
required: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !1
|
|
59
|
+
},
|
|
60
|
+
maxlength: { type: Number },
|
|
61
|
+
pattern: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: null
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
emits: ["update:modelValue"],
|
|
67
|
+
setup(e, { emit: o }) {
|
|
68
|
+
let m = e, h = o, g = n({
|
|
69
|
+
get() {
|
|
70
|
+
return m.modelValue;
|
|
71
|
+
},
|
|
72
|
+
set(e) {
|
|
73
|
+
h("update:modelValue", e);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return (n, o) => (s(), r("div", d, [a(t, {
|
|
77
|
+
modelValue: g.value,
|
|
78
|
+
"onUpdate:modelValue": o[1] ||= (e) => g.value = e,
|
|
79
|
+
type: e.type === "color" ? "text" : e.type,
|
|
80
|
+
id: e.id,
|
|
81
|
+
name: e.name,
|
|
82
|
+
placeholder: e.placeholder,
|
|
83
|
+
pattern: e.pattern,
|
|
84
|
+
label: e.label,
|
|
85
|
+
disabled: e.disabled,
|
|
86
|
+
"read-only": e.readOnly,
|
|
87
|
+
required: e.required,
|
|
88
|
+
maxlength: e.maxlength
|
|
89
|
+
}, {
|
|
90
|
+
"input-append": l((t) => [i("span", f, [u(i("input", {
|
|
91
|
+
"onUpdate:modelValue": o[0] ||= (e) => g.value = e,
|
|
92
|
+
type: "color",
|
|
93
|
+
name: `${e.name}-color`,
|
|
94
|
+
id: `${e.id}-color`,
|
|
95
|
+
disabled: e.disabled,
|
|
96
|
+
"read-only": e.readOnly,
|
|
97
|
+
required: e.required,
|
|
98
|
+
class: "form-control",
|
|
99
|
+
"aria-label": e.label
|
|
100
|
+
}, null, 8, p), [[c, g.value]])])]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, [
|
|
103
|
+
"modelValue",
|
|
104
|
+
"type",
|
|
105
|
+
"id",
|
|
106
|
+
"name",
|
|
107
|
+
"placeholder",
|
|
108
|
+
"pattern",
|
|
109
|
+
"label",
|
|
110
|
+
"disabled",
|
|
111
|
+
"read-only",
|
|
112
|
+
"required",
|
|
113
|
+
"maxlength"
|
|
114
|
+
])]));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
//#endregion
|
|
118
|
+
export { m as default };
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { sanitizeHtml as e } from "../../../composables/useSanitize.js";
|
|
2
|
+
import { uniqueId as t } from "../../../utilities/helpers.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { de as n } from "../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de.js";
|
|
5
|
+
import r from "../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js";
|
|
6
|
+
import i from "../../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr.js";
|
|
7
|
+
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, resolveDynamicComponent as g, shallowRef as _, unref as v, watch as y } from "vue";
|
|
8
|
+
import { useI18n as b } from "vue-i18n";
|
|
9
|
+
import { WeekStart as x } from "@vuepic/vue-datepicker";
|
|
10
|
+
//#region src/components/molecules/input-datepicker/input-datepicker.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var S = { class: "row" }, C = { class: "col-12" }, w = ["for", "innerHTML"], T = { key: 0 }, E = { class: "input-group justify-content-center" }, D = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "row"
|
|
14
|
+
}, O = { class: "col-12 col-md-6" }, k = { class: "col-12 col-md-6" }, A = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "row"
|
|
17
|
+
}, j = { class: "col-12" }, M = /*@__PURE__*/ u({
|
|
18
|
+
__name: "input-datepicker",
|
|
19
|
+
props: {
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: null,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
from: {
|
|
25
|
+
type: [
|
|
26
|
+
String,
|
|
27
|
+
Number,
|
|
28
|
+
Boolean,
|
|
29
|
+
Date
|
|
30
|
+
],
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
to: {
|
|
34
|
+
type: [
|
|
35
|
+
String,
|
|
36
|
+
Number,
|
|
37
|
+
Boolean,
|
|
38
|
+
Date
|
|
39
|
+
],
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "datetime-local"
|
|
45
|
+
},
|
|
46
|
+
name: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: () => t()
|
|
49
|
+
},
|
|
50
|
+
id: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: () => t()
|
|
53
|
+
},
|
|
54
|
+
label: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
disabled: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
readOnly: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !1
|
|
65
|
+
},
|
|
66
|
+
required: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
range: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !1
|
|
73
|
+
},
|
|
74
|
+
textRange: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
},
|
|
78
|
+
inline: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
textInput: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !0
|
|
85
|
+
},
|
|
86
|
+
picker: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !0
|
|
89
|
+
},
|
|
90
|
+
locale: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "en"
|
|
93
|
+
},
|
|
94
|
+
utcStore: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !1
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
emits: [
|
|
100
|
+
"update:modelValue",
|
|
101
|
+
"update:from",
|
|
102
|
+
"update:to"
|
|
103
|
+
],
|
|
104
|
+
setup(t, { emit: u }) {
|
|
105
|
+
let M = _(null);
|
|
106
|
+
f(async () => {
|
|
107
|
+
let { VueDatePicker: e } = await import("@vuepic/vue-datepicker");
|
|
108
|
+
M.value = e, console.log("VueDatePicker loaded:", F.value, N.locale);
|
|
109
|
+
});
|
|
110
|
+
let N = t, P = u, { t: ee, locale: F } = b(), I = {
|
|
111
|
+
en: r,
|
|
112
|
+
de: n,
|
|
113
|
+
fr: i
|
|
114
|
+
}, L = a(() => {
|
|
115
|
+
let e = N.locale || F.value;
|
|
116
|
+
return I[e] || r;
|
|
117
|
+
}), R = a(() => {
|
|
118
|
+
switch (N.locale || F.value) {
|
|
119
|
+
case "en": return x.Sunday;
|
|
120
|
+
case "de":
|
|
121
|
+
case "fr": return x.Monday;
|
|
122
|
+
default: return x.Sunday;
|
|
123
|
+
}
|
|
124
|
+
}), z = a(() => N.inline || !N.picker ? {
|
|
125
|
+
openMenu: !1,
|
|
126
|
+
format: L.value
|
|
127
|
+
} : !0);
|
|
128
|
+
function B(e) {
|
|
129
|
+
return !e || Number.isNaN(e.getTime()) ? null : e.toISOString().replace("Z", "");
|
|
130
|
+
}
|
|
131
|
+
function V(e) {
|
|
132
|
+
return !e || Array.isArray(e) ? null : B(/* @__PURE__ */ new Date(`${e}Z`));
|
|
133
|
+
}
|
|
134
|
+
function H(e) {
|
|
135
|
+
if (!e || Array.isArray(e)) return null;
|
|
136
|
+
let t = new Date(e);
|
|
137
|
+
return Number.isNaN(t.getTime()) ? null : (t.setUTCHours(t.getHours()), B(t));
|
|
138
|
+
}
|
|
139
|
+
function U() {
|
|
140
|
+
let e = N.from || (Array.isArray(N.modelValue) ? N.modelValue[0] : null), t = N.to || (Array.isArray(N.modelValue) ? N.modelValue[1] : null);
|
|
141
|
+
return N.utcStore ? (e = e ? Z(e) : null, t = t ? Z(t) : null) : (e = V(e), t = V(t)), [e, t];
|
|
142
|
+
}
|
|
143
|
+
let W = m(U());
|
|
144
|
+
y(() => [
|
|
145
|
+
N.modelValue,
|
|
146
|
+
N.from,
|
|
147
|
+
N.to,
|
|
148
|
+
N.utcStore
|
|
149
|
+
], () => {
|
|
150
|
+
if (!N.range) return;
|
|
151
|
+
let e = U();
|
|
152
|
+
(e[0] !== W.value[0] || e[1] !== W.value[1]) && (W.value = e);
|
|
153
|
+
});
|
|
154
|
+
function G(e, t) {
|
|
155
|
+
N.utcStore ? (e = e ? Q(e) : null, t = t ? Q(t) : null) : (e = H(e), t = H(t)), P("update:modelValue", [e, t]), P("update:from", e), P("update:to", t);
|
|
156
|
+
}
|
|
157
|
+
function K(e, t) {
|
|
158
|
+
W.value = [e ?? null, t ?? null], G(e ?? null, t ?? null);
|
|
159
|
+
}
|
|
160
|
+
let q = a({
|
|
161
|
+
get() {
|
|
162
|
+
if (N.range) {
|
|
163
|
+
let e = N.from || (Array.isArray(N.modelValue) ? N.modelValue[0] : null), t = N.to || (Array.isArray(N.modelValue) ? N.modelValue[1] : null);
|
|
164
|
+
return N.utcStore ? (e = e ? Z(e) : null, t = t ? Z(t) : null) : (e = V(e), t = V(t)), [...e ? [e] : [], ...t ? [t] : []];
|
|
165
|
+
}
|
|
166
|
+
if (N.utcStore) {
|
|
167
|
+
let e = N.modelValue;
|
|
168
|
+
return e && Z(e) || "";
|
|
169
|
+
}
|
|
170
|
+
return V(N.modelValue) || "";
|
|
171
|
+
},
|
|
172
|
+
set(e) {
|
|
173
|
+
if (N.range && Array.isArray(e)) {
|
|
174
|
+
let [t, n] = e;
|
|
175
|
+
N.utcStore ? (t = Q(t) || null, n = Q(n) || null) : (t = H(t), n = H(n)), P("update:modelValue", [t, n]), P("update:from", t), P("update:to", n);
|
|
176
|
+
} else if (N.utcStore) {
|
|
177
|
+
let t = Q(e);
|
|
178
|
+
P("update:modelValue", t);
|
|
179
|
+
} else P("update:modelValue", H(e));
|
|
180
|
+
}
|
|
181
|
+
}), J = a({
|
|
182
|
+
get() {
|
|
183
|
+
return W.value[0];
|
|
184
|
+
},
|
|
185
|
+
set(e) {
|
|
186
|
+
K(e, W.value[1]);
|
|
187
|
+
}
|
|
188
|
+
}), Y = a({
|
|
189
|
+
get() {
|
|
190
|
+
return W.value[1];
|
|
191
|
+
},
|
|
192
|
+
set(e) {
|
|
193
|
+
K(W.value[0], e);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
function X(e) {
|
|
197
|
+
if (!e) return;
|
|
198
|
+
let t = e.getDate(), n = e.getMonth() + 1, r = e.getFullYear(), i = e.getMinutes(), a = e.getHours();
|
|
199
|
+
switch (L.value) {
|
|
200
|
+
case "de": return `${t}.${n}.${r} ${a < 10 ? "0" + a : a}:${i < 10 ? "0" + i : i}`;
|
|
201
|
+
case "fr": return `${t}/${n}/${r} ${a < 10 ? "0" + a : a}:${i < 10 ? "0" + i : i}`;
|
|
202
|
+
default: return `${n}/${t}/${r} ${a < 10 ? "0" + a : a}:${i < 10 ? "0" + i : i}`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
function Z(e) {
|
|
206
|
+
if (!e || Array.isArray(e)) return null;
|
|
207
|
+
let t = e instanceof Date ? new Date(e) : /* @__PURE__ */ new Date(`${e}Z`);
|
|
208
|
+
return Number.isNaN(t.getTime()) ? null : `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}T${String(t.getHours()).padStart(2, "0")}:${String(t.getMinutes()).padStart(2, "0")}:${String(t.getSeconds()).padStart(2, "0")}`;
|
|
209
|
+
}
|
|
210
|
+
function Q(e) {
|
|
211
|
+
if (!e || Array.isArray(e)) return null;
|
|
212
|
+
let t = e instanceof Date ? new Date(e) : new Date(String(e));
|
|
213
|
+
return Number.isNaN(t.getTime()) ? null : t.toISOString().split(".")[0];
|
|
214
|
+
}
|
|
215
|
+
let $ = (e) => (e = Array.isArray(e) ? e.map((e) => X(e)).join(" - ") : X(e), e);
|
|
216
|
+
return (n, r) => (p(), c("div", { class: d(["input", "input--datepicker"]) }, [
|
|
217
|
+
h(n.$slots, "label", {}, () => [l("div", S, [l("div", C, [t.label ? (p(), c("label", {
|
|
218
|
+
key: 0,
|
|
219
|
+
for: t.id,
|
|
220
|
+
class: "input__label",
|
|
221
|
+
innerHTML: v(e)(`${t.label}${t.required ? " *" : ""}`)
|
|
222
|
+
}, null, 8, w)) : s("", !0)])])]),
|
|
223
|
+
t.textInput ? (p(), c("div", T, [l("div", E, [
|
|
224
|
+
h(n.$slots, "input-prepend", { slotScope: "props" }),
|
|
225
|
+
t.range && !t.textRange ? (p(), c("div", D, [l("div", O, [(p(), o(g(M.value), {
|
|
226
|
+
uid: `${t.id}-from`,
|
|
227
|
+
modelValue: J.value,
|
|
228
|
+
"onUpdate:modelValue": r[0] ||= (e) => J.value = e,
|
|
229
|
+
locale: L.value,
|
|
230
|
+
format: $,
|
|
231
|
+
"text-input": z.value,
|
|
232
|
+
disabled: t.disabled,
|
|
233
|
+
"read-only": t.readOnly,
|
|
234
|
+
required: t.required,
|
|
235
|
+
"max-date": Y.value,
|
|
236
|
+
"auto-apply": !0,
|
|
237
|
+
"week-start": R.value
|
|
238
|
+
}, null, 8, [
|
|
239
|
+
"uid",
|
|
240
|
+
"modelValue",
|
|
241
|
+
"locale",
|
|
242
|
+
"text-input",
|
|
243
|
+
"disabled",
|
|
244
|
+
"read-only",
|
|
245
|
+
"required",
|
|
246
|
+
"max-date",
|
|
247
|
+
"week-start"
|
|
248
|
+
]))]), l("div", k, [(p(), o(g(M.value), {
|
|
249
|
+
uid: `${t.id}-to`,
|
|
250
|
+
modelValue: Y.value,
|
|
251
|
+
"onUpdate:modelValue": r[1] ||= (e) => Y.value = e,
|
|
252
|
+
locale: L.value,
|
|
253
|
+
format: $,
|
|
254
|
+
"text-input": z.value,
|
|
255
|
+
disabled: t.disabled,
|
|
256
|
+
"read-only": t.readOnly,
|
|
257
|
+
required: t.required,
|
|
258
|
+
"min-date": J.value,
|
|
259
|
+
"auto-apply": !0,
|
|
260
|
+
"week-start": R.value
|
|
261
|
+
}, null, 8, [
|
|
262
|
+
"uid",
|
|
263
|
+
"modelValue",
|
|
264
|
+
"locale",
|
|
265
|
+
"text-input",
|
|
266
|
+
"disabled",
|
|
267
|
+
"read-only",
|
|
268
|
+
"required",
|
|
269
|
+
"min-date",
|
|
270
|
+
"week-start"
|
|
271
|
+
]))])])) : (p(), o(g(M.value), {
|
|
272
|
+
key: 1,
|
|
273
|
+
uid: `${t.id}-input-to`,
|
|
274
|
+
modelValue: q.value,
|
|
275
|
+
"onUpdate:modelValue": r[2] ||= (e) => q.value = e,
|
|
276
|
+
format: $,
|
|
277
|
+
locale: L.value,
|
|
278
|
+
range: t.textRange,
|
|
279
|
+
"text-input": z.value,
|
|
280
|
+
disabled: t.disabled,
|
|
281
|
+
"read-only": t.readOnly,
|
|
282
|
+
required: t.required,
|
|
283
|
+
"auto-apply": !0,
|
|
284
|
+
"week-start": R.value
|
|
285
|
+
}, null, 8, [
|
|
286
|
+
"uid",
|
|
287
|
+
"modelValue",
|
|
288
|
+
"locale",
|
|
289
|
+
"range",
|
|
290
|
+
"text-input",
|
|
291
|
+
"disabled",
|
|
292
|
+
"read-only",
|
|
293
|
+
"required",
|
|
294
|
+
"week-start"
|
|
295
|
+
])),
|
|
296
|
+
h(n.$slots, "input-append", { slotScope: "props" })
|
|
297
|
+
])])) : s("", !0),
|
|
298
|
+
t.inline ? (p(), c("div", A, [l("div", j, [(p(), o(g(M.value), {
|
|
299
|
+
uid: `${t.id}-inline`,
|
|
300
|
+
modelValue: q.value,
|
|
301
|
+
"onUpdate:modelValue": r[3] ||= (e) => q.value = e,
|
|
302
|
+
locale: L.value,
|
|
303
|
+
cancelText: "abbrechen",
|
|
304
|
+
selectText: "auswählen",
|
|
305
|
+
range: t.range,
|
|
306
|
+
"multi-calendars": t.range,
|
|
307
|
+
inline: { input: !1 },
|
|
308
|
+
"auto-apply": !0,
|
|
309
|
+
"partial-range": t.range,
|
|
310
|
+
"partial-flow": !0,
|
|
311
|
+
"start-time": {
|
|
312
|
+
hours: 0,
|
|
313
|
+
minutes: 0
|
|
314
|
+
},
|
|
315
|
+
class: "justify-content-center",
|
|
316
|
+
disabled: t.disabled,
|
|
317
|
+
"read-only": t.readOnly,
|
|
318
|
+
required: t.required,
|
|
319
|
+
"month-name-format": "long",
|
|
320
|
+
"week-start": R.value
|
|
321
|
+
}, null, 8, [
|
|
322
|
+
"uid",
|
|
323
|
+
"modelValue",
|
|
324
|
+
"locale",
|
|
325
|
+
"range",
|
|
326
|
+
"multi-calendars",
|
|
327
|
+
"partial-range",
|
|
328
|
+
"disabled",
|
|
329
|
+
"read-only",
|
|
330
|
+
"required",
|
|
331
|
+
"week-start"
|
|
332
|
+
]))])])) : s("", !0)
|
|
333
|
+
]));
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
//#endregion
|
|
337
|
+
export { M as default };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { uniqueId as e } from "../../../utilities/helpers.js";
|
|
2
|
+
import t from "../../atoms/base-button/base-button.js";
|
|
3
|
+
import { Fragment as n, Transition as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, vModelCheckbox as h, vModelRadio as g, withCtx as _, withDirectives as v } from "vue";
|
|
4
|
+
import { useI18n as y } from "vue-i18n";
|
|
5
|
+
//#region src/components/molecules/input-dropdown/input-dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var b = ["id"], x = ["for", "innerHTML"], S = { class: "dropdown" }, C = { class: "caption" }, w = ["innerHTML"], T = { class: "caption__text" }, E = { class: "d-block text-truncate" }, D = { class: "dropdown-menu" }, O = { class: "form-check d-flex" }, k = [
|
|
7
|
+
"value",
|
|
8
|
+
"id",
|
|
9
|
+
"name",
|
|
10
|
+
"label",
|
|
11
|
+
"required",
|
|
12
|
+
"disabled"
|
|
13
|
+
], A = [
|
|
14
|
+
"value",
|
|
15
|
+
"id",
|
|
16
|
+
"name",
|
|
17
|
+
"label",
|
|
18
|
+
"required",
|
|
19
|
+
"disabled"
|
|
20
|
+
], j = ["for"], M = /*@__PURE__*/ l({
|
|
21
|
+
__name: "input-dropdown",
|
|
22
|
+
props: {
|
|
23
|
+
id: { type: String },
|
|
24
|
+
name: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: () => `dropdown-${e()}`
|
|
27
|
+
},
|
|
28
|
+
label: { type: String },
|
|
29
|
+
error: { type: String },
|
|
30
|
+
disabled: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
readOnly: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
required: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
modelValue: { type: null },
|
|
43
|
+
options: {
|
|
44
|
+
type: Array,
|
|
45
|
+
required: !0
|
|
46
|
+
},
|
|
47
|
+
multiple: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
showSelectionCount: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
toggleCaption: { type: String },
|
|
56
|
+
placeholder: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
icon: {
|
|
61
|
+
default: "chevron-down",
|
|
62
|
+
type: String
|
|
63
|
+
},
|
|
64
|
+
variant: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: ""
|
|
67
|
+
},
|
|
68
|
+
color: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
},
|
|
72
|
+
outlined: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
exactMatch: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
emits: ["update:modelValue"],
|
|
82
|
+
setup(e, { emit: l }) {
|
|
83
|
+
let { t: M } = y(), N = e, P = l, F = i({
|
|
84
|
+
get() {
|
|
85
|
+
return N.multiple && !N.modelValue ? [] : N.modelValue;
|
|
86
|
+
},
|
|
87
|
+
set(e) {
|
|
88
|
+
P("update:modelValue", e);
|
|
89
|
+
}
|
|
90
|
+
}), I = i(() => N.options && N.options.map((e) => (e = typeof e == "string" ? {
|
|
91
|
+
text: e,
|
|
92
|
+
value: e
|
|
93
|
+
} : e, {
|
|
94
|
+
...e,
|
|
95
|
+
active: N.modelValue && e.value && (N.exactMatch ? N.modelValue === e.value : N.multiple ? N.modelValue.includes(e.value) : N.modelValue === e.value)
|
|
96
|
+
}))), L = i(() => {
|
|
97
|
+
if (!N.modelValue) return N.placeholder || `${M("common.select")}`;
|
|
98
|
+
if (N.multiple && Array.isArray(N.modelValue) && N.modelValue.length) return I.value.reduce((e, t) => N.modelValue.includes(t.value) ? `${e}${e ? ", " : ""}${t.text}` : e, "");
|
|
99
|
+
if (!N.multiple) {
|
|
100
|
+
let e = I.value.find((e) => typeof e.value == "object" && e.value !== null ? JSON.stringify(e.value) === JSON.stringify(N.modelValue) : e.value === N.modelValue);
|
|
101
|
+
return e ? e.text : N.placeholder || `${M("common.select")}`;
|
|
102
|
+
}
|
|
103
|
+
return N.placeholder || `${M("common.select")}`;
|
|
104
|
+
});
|
|
105
|
+
return (i, l) => (d(), o("div", {
|
|
106
|
+
class: "input input-dropdown",
|
|
107
|
+
id: `${e.id || e.name}`
|
|
108
|
+
}, [p(i.$slots, "label", {}, () => [e.label ? (d(), o("label", {
|
|
109
|
+
key: 0,
|
|
110
|
+
for: `${e.id || e.name}--dropdown-toggle`,
|
|
111
|
+
class: "input__label",
|
|
112
|
+
innerHTML: `${e.label}${e.required ? " *" : ""}`
|
|
113
|
+
}, null, 8, x)) : a("", !0)]), s("div", S, [c(t, {
|
|
114
|
+
id: `${e.id || e.name}--dropdown-toggle`,
|
|
115
|
+
"data-bs-toggle": "dropdown",
|
|
116
|
+
role: "button",
|
|
117
|
+
type: "button",
|
|
118
|
+
title: L.value,
|
|
119
|
+
class: "btn dropdown-toggle",
|
|
120
|
+
color: e.color,
|
|
121
|
+
outlined: e.outlined,
|
|
122
|
+
disabled: e.disabled
|
|
123
|
+
}, {
|
|
124
|
+
default: _(() => [s("span", C, [c(r, { name: "bounce" }, {
|
|
125
|
+
default: _(() => [e.showSelectionCount && e.modelValue.length ? (d(), o("i", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: "caption__count",
|
|
128
|
+
innerHTML: e.modelValue.length
|
|
129
|
+
}, null, 8, w)) : a("", !0)]),
|
|
130
|
+
_: 1
|
|
131
|
+
}), s("span", T, [s("span", E, m(e.toggleCaption || L.value), 1)])])]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, [
|
|
134
|
+
"id",
|
|
135
|
+
"title",
|
|
136
|
+
"color",
|
|
137
|
+
"outlined",
|
|
138
|
+
"disabled"
|
|
139
|
+
]), s("ul", D, [(d(!0), o(n, null, f(I.value, (t, n) => (d(), o("li", { key: `${t.value}-${n}` }, [s("div", { class: u(["dropdown-item", t.active && "active"]) }, [s("div", O, [e.multiple ? v((d(), o("input", {
|
|
140
|
+
type: "checkbox",
|
|
141
|
+
"onUpdate:modelValue": l[0] ||= (e) => F.value = e,
|
|
142
|
+
value: t.value,
|
|
143
|
+
key: `${e.name}-${t.value}-${n}__if`,
|
|
144
|
+
id: `${e.name}-${t.value}-${n}`,
|
|
145
|
+
name: e.name,
|
|
146
|
+
label: t.text,
|
|
147
|
+
required: e.required,
|
|
148
|
+
disabled: t.selectable === !1,
|
|
149
|
+
class: "form-check-input"
|
|
150
|
+
}, null, 8, k)), [[h, F.value]]) : v((d(), o("input", {
|
|
151
|
+
type: "radio",
|
|
152
|
+
"onUpdate:modelValue": l[1] ||= (e) => F.value = e,
|
|
153
|
+
value: t.value,
|
|
154
|
+
key: `${e.name}-${t.value}-${n}__else`,
|
|
155
|
+
id: `${e.name}-${t.value}-${n}`,
|
|
156
|
+
name: e.name,
|
|
157
|
+
label: t.text,
|
|
158
|
+
required: e.required,
|
|
159
|
+
disabled: t.selectable === !1,
|
|
160
|
+
class: "form-check-input visually-hidden"
|
|
161
|
+
}, null, 8, A)), [[g, F.value]]), s("label", {
|
|
162
|
+
class: "form-check-label flex-grow-1",
|
|
163
|
+
onclick: "event.stopPropagation",
|
|
164
|
+
for: `${e.name}-${t.value}-${n}`
|
|
165
|
+
}, m(t.text), 9, j)])], 2)]))), 128))])])], 8, b));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
//#endregion
|
|
169
|
+
export { M as default };
|