ablok-components 0.3.104 → 0.3.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/ablok-components.css +2 -1
- package/dist/ablok-components.umd.js +4 -4
- package/dist/assets/img/guide.js +4 -0
- package/dist/components/atoms/base-button/base-button.js +6 -0
- package/dist/components/atoms/base-button/base-button.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/components/atoms/base-headline/base-headline.js +5 -0
- package/dist/components/atoms/base-headline/base-headline.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/atoms/base-image/base-image.js +6 -0
- package/dist/components/atoms/base-image/base-image.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/atoms/base-input/base-input.js +6 -0
- package/dist/components/atoms/base-input/base-input.vue_vue_type_script_setup_true_lang.js +196 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.js +5 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.js +6 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/components/atoms/check-group/check-group.js +6 -0
- package/dist/components/atoms/check-group/check-group.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/atoms/custom-html/custom-html.js +5 -0
- package/dist/components/atoms/custom-html/custom-html.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.js +6 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/atoms/input-datetime/input-datetime.js +5 -0
- package/dist/components/atoms/input-datetime/input-datetime.vue_vue_type_script_setup_true_lang.js +104 -0
- package/dist/components/atoms/input-file/input-file.js +5 -0
- package/dist/components/atoms/input-file/input-file.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/components/atoms/input-passcode/input-passcode.js +5 -0
- package/dist/components/atoms/input-passcode/input-passcode.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/atoms/input-password/input-password.js +5 -0
- package/dist/components/atoms/input-password/input-password.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/atoms/input-textarea/input-textarea.js +5 -0
- package/dist/components/atoms/input-textarea/input-textarea.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.js +6 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/atoms/radio-group/radio-group.js +6 -0
- package/dist/components/atoms/radio-group/radio-group.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/components/atoms/svg-icon/svg-icon.js +6 -0
- package/dist/components/atoms/svg-icon/svg-icon.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.js +6 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/molecules/accordion/accordion-item.js +6 -0
- package/dist/components/molecules/accordion/accordion-item.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/molecules/accordion/accordion.js +10 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.js +6 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.vue_vue_type_script_setup_true_lang.js +106 -0
- package/dist/components/molecules/base-camera/base-camera.js +6 -0
- package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_async_true_setup_true_lang.js +505 -0
- package/dist/components/molecules/base-map/base-map.js +6 -0
- package/dist/components/molecules/base-map/base-map.vue_vue_type_script_setup_true_lang.js +390 -0
- package/dist/components/molecules/bulk-upload/bulk-upload.js +6 -0
- package/dist/components/molecules/bulk-upload/bulk-upload.vue_vue_type_script_setup_true_lang.js +188 -0
- package/dist/components/molecules/color-palette/color-palette.js +6 -0
- package/dist/components/molecules/color-palette/color-palette.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.js +5 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/molecules/file-upload/file-upload.js +6 -0
- package/dist/components/molecules/file-upload/file-upload.vue_vue_type_script_setup_true_lang.js +196 -0
- package/dist/components/molecules/hint-system/hint-system.js +6 -0
- package/dist/components/molecules/hint-system/hint-system.vue_vue_type_script_setup_true_lang.js +96 -0
- package/dist/components/molecules/image-crop/image-crop.js +5 -0
- package/dist/components/molecules/image-crop/image-crop.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.js +5 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/image-resize/image-resize.js +5 -0
- package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/molecules/image-upload/image-upload.js +6 -0
- package/dist/components/molecules/image-upload/image-upload.vue_vue_type_script_setup_true_lang.js +264 -0
- package/dist/components/molecules/image-zoom/image-zoom.js +6 -0
- package/dist/components/molecules/image-zoom/image-zoom.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/molecules/input-color/input-color.js +6 -0
- package/dist/components/molecules/input-color/input-color.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.js +6 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.vue_vue_type_script_setup_true_lang.js +337 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.js +6 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.vue_vue_type_script_setup_true_lang.js +169 -0
- package/dist/components/molecules/link-sharing/link-sharing.js +6 -0
- package/dist/components/molecules/link-sharing/link-sharing.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/molecules/location-list/location-list.js +6 -0
- package/dist/components/molecules/location-list/location-list.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.js +6 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.js +6 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.js +6 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue_vue_type_script_setup_true_lang.js +127 -0
- package/dist/components/molecules/progress-steps/progress-steps.js +6 -0
- package/dist/components/molecules/progress-steps/progress-steps.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/components/molecules/qr-code/qr-code.js +6 -0
- package/dist/components/molecules/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.js +6 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/molecules/rte-editor/rte-editor.js +6 -0
- package/dist/components/molecules/rte-editor/rte-editor.vue_vue_type_script_setup_true_lang.js +384 -0
- package/dist/components/molecules/select-media/select-media.js +6 -0
- package/dist/components/molecules/select-media/select-media.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/molecules/upload-group/upload-group.js +6 -0
- package/dist/components/molecules/upload-group/upload-group.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.js +5 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/organisms/location-finder/location-finder.js +6 -0
- package/dist/components/organisms/location-finder/location-finder.vue_vue_type_script_setup_true_lang.js +609 -0
- package/dist/components/organisms/preset-uploader/preset-uploader.js +6 -0
- package/dist/components/organisms/preset-uploader/preset-uploader.vue_vue_type_script_setup_true_lang.js +592 -0
- package/dist/components/templates/base-carousel/base-carousel.js +6 -0
- package/dist/components/templates/base-carousel/base-carousel.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/components/templates/base-form/base-form.js +6 -0
- package/dist/components/templates/base-form/base-form.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/templates/modal-dialog/modal-dialog.js +6 -0
- package/dist/components/templates/modal-dialog/modal-dialog.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/components/templates/popover-dialog/popover-dialog.js +6 -0
- package/dist/components/templates/popover-dialog/popover-dialog.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/components/templates/sortable-list/sortable-list.js +6 -0
- package/dist/components/templates/sortable-list/sortable-list.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.js +6 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/composables/useCameraFilter.js +60 -55
- package/dist/composables/useConfetti.js +9 -11
- package/dist/composables/useDirections.js +54 -59
- package/dist/composables/useDragAndDrop.js +28 -28
- package/dist/composables/useGeocoding.js +81 -83
- package/dist/composables/useGeolocation.js +61 -70
- package/dist/composables/useLocalFileUrl.js +16 -13
- package/dist/composables/useSanitize.js +81 -21
- package/dist/composables/useUploadTransport.js +28 -27
- package/dist/index.js +60 -161
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +161 -162
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatLong.js +31 -36
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/localize.js +210 -158
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de/_lib/match.js +113 -111
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/de.js +18 -18
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +19 -19
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/fr.js +18 -18
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -16
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js +13 -14
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -21
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js +10 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js +13 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js +55 -60
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js +11 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js +14 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js +12 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js +24 -28
- package/dist/utilities/helpers.js +55 -70
- package/package.json +12 -11
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/debounce.js +0 -7
- package/dist/assets/img/guide.png.js +0 -4
- package/dist/components/atoms/base-button/base-button.vue.js +0 -92
- package/dist/components/atoms/base-button/base-button3.vue.js +0 -5
- package/dist/components/atoms/base-headline/base-headline.vue.js +0 -30
- package/dist/components/atoms/base-headline/base-headline2.vue.js +0 -4
- package/dist/components/atoms/base-image/base-image.vue.js +0 -75
- package/dist/components/atoms/base-image/base-image3.vue.js +0 -5
- package/dist/components/atoms/base-input/base-input.vue.js +0 -184
- package/dist/components/atoms/base-input/base-input3.vue.js +0 -5
- package/dist/components/atoms/base-paragraph/base-paragraph.vue.js +0 -21
- package/dist/components/atoms/base-paragraph/base-paragraph2.vue.js +0 -4
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue.js +0 -113
- package/dist/components/atoms/canvas-confetti/canvas-confetti3.vue.js +0 -5
- package/dist/components/atoms/check-group/check-group.vue.js +0 -86
- package/dist/components/atoms/check-group/check-group3.vue.js +0 -5
- package/dist/components/atoms/custom-html/custom-html.vue.js +0 -26
- package/dist/components/atoms/custom-html/custom-html2.vue.js +0 -4
- package/dist/components/atoms/input-checkbox/input-checkbox.vue.js +0 -84
- package/dist/components/atoms/input-checkbox/input-checkbox3.vue.js +0 -5
- package/dist/components/atoms/input-datetime/input-datetime.vue.js +0 -99
- package/dist/components/atoms/input-datetime/input-datetime2.vue.js +0 -4
- package/dist/components/atoms/input-file/input-file.vue.js +0 -130
- package/dist/components/atoms/input-file/input-file2.vue.js +0 -4
- package/dist/components/atoms/input-passcode/input-passcode.vue.js +0 -149
- package/dist/components/atoms/input-passcode/input-passcode2.vue.js +0 -4
- package/dist/components/atoms/input-password/input-password.vue.js +0 -118
- package/dist/components/atoms/input-password/input-password2.vue.js +0 -4
- package/dist/components/atoms/input-textarea/input-textarea.vue.js +0 -105
- package/dist/components/atoms/input-textarea/input-textarea2.vue.js +0 -4
- package/dist/components/atoms/loading-spinner/loading-spinner.vue.js +0 -38
- package/dist/components/atoms/loading-spinner/loading-spinner3.vue.js +0 -5
- package/dist/components/atoms/radio-group/radio-group.vue.js +0 -99
- package/dist/components/atoms/radio-group/radio-group3.vue.js +0 -5
- package/dist/components/atoms/svg-icon/svg-icon.vue.js +0 -44
- package/dist/components/atoms/svg-icon/svg-icon3.vue.js +0 -5
- package/dist/components/atoms/zoom-slider/zoom-slider.vue.js +0 -59
- package/dist/components/atoms/zoom-slider/zoom-slider3.vue.js +0 -5
- package/dist/components/molecules/accordion/accordion-item.vue.js +0 -84
- package/dist/components/molecules/accordion/accordion-item3.vue.js +0 -5
- package/dist/components/molecules/accordion/accordion.vue.js +0 -12
- package/dist/components/molecules/auto-suggest/auto-suggest.vue.js +0 -132
- package/dist/components/molecules/auto-suggest/auto-suggest3.vue.js +0 -5
- package/dist/components/molecules/base-camera/base-camera.vue.js +0 -530
- package/dist/components/molecules/base-camera/base-camera3.vue.js +0 -5
- package/dist/components/molecules/base-map/base-map.vue.js +0 -386
- package/dist/components/molecules/base-map/base-map3.vue.js +0 -5
- package/dist/components/molecules/bulk-upload/bulk-upload.vue.js +0 -256
- package/dist/components/molecules/bulk-upload/bulk-upload3.vue.js +0 -5
- package/dist/components/molecules/color-palette/color-palette.vue.js +0 -72
- package/dist/components/molecules/color-palette/color-palette3.vue.js +0 -5
- package/dist/components/molecules/dom-renderer/dom-renderer.vue.js +0 -102
- package/dist/components/molecules/dom-renderer/dom-renderer2.vue.js +0 -4
- package/dist/components/molecules/file-upload/file-upload.vue.js +0 -215
- package/dist/components/molecules/file-upload/file-upload3.vue.js +0 -5
- package/dist/components/molecules/hint-system/hint-system.vue.js +0 -111
- package/dist/components/molecules/hint-system/hint-system3.vue.js +0 -5
- package/dist/components/molecules/image-crop/image-crop.vue.js +0 -82
- package/dist/components/molecules/image-crop/image-crop2.vue.js +0 -4
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.js +0 -120
- package/dist/components/molecules/image-crop-resize/image-crop-resize2.vue.js +0 -4
- package/dist/components/molecules/image-resize/image-resize.vue.js +0 -143
- package/dist/components/molecules/image-resize/image-resize2.vue.js +0 -4
- package/dist/components/molecules/image-upload/image-upload.vue.js +0 -289
- package/dist/components/molecules/image-upload/image-upload3.vue.js +0 -5
- package/dist/components/molecules/image-zoom/image-zoom.vue.js +0 -209
- package/dist/components/molecules/image-zoom/image-zoom3.vue.js +0 -5
- package/dist/components/molecules/input-color/input-color.vue.js +0 -105
- package/dist/components/molecules/input-color/input-color3.vue.js +0 -5
- package/dist/components/molecules/input-datepicker/input-datepicker.vue.js +0 -291
- package/dist/components/molecules/input-datepicker/input-datepicker3.vue.js +0 -5
- package/dist/components/molecules/input-dropdown/input-dropdown.vue.js +0 -207
- package/dist/components/molecules/input-dropdown/input-dropdown3.vue.js +0 -5
- package/dist/components/molecules/link-sharing/link-sharing.vue.js +0 -177
- package/dist/components/molecules/link-sharing/link-sharing3.vue.js +0 -7
- package/dist/components/molecules/location-list/location-list.vue.js +0 -98
- package/dist/components/molecules/location-list/location-list3.vue.js +0 -5
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue.js +0 -87
- package/dist/components/molecules/media-thumbnails/media-thumbnails3.vue.js +0 -5
- package/dist/components/molecules/popover-notifications/popover-notifications.vue.js +0 -135
- package/dist/components/molecules/popover-notifications/popover-notifications3.vue.js +0 -5
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.js +0 -134
- package/dist/components/molecules/popover-tooltip/popover-tooltip3.vue.js +0 -5
- package/dist/components/molecules/progress-steps/progress-steps.vue.js +0 -84
- package/dist/components/molecules/progress-steps/progress-steps3.vue.js +0 -5
- package/dist/components/molecules/qr-code/qr-code.vue.js +0 -103
- package/dist/components/molecules/qr-code/qr-code3.vue.js +0 -5
- package/dist/components/molecules/radio-buttons/radio-buttons.vue.js +0 -79
- package/dist/components/molecules/radio-buttons/radio-buttons3.vue.js +0 -5
- package/dist/components/molecules/rte-editor/rte-editor.vue.js +0 -478
- package/dist/components/molecules/rte-editor/rte-editor3.vue.js +0 -5
- package/dist/components/molecules/select-media/select-media.vue.js +0 -87
- package/dist/components/molecules/select-media/select-media3.vue.js +0 -5
- package/dist/components/molecules/upload-group/upload-group.vue.js +0 -193
- package/dist/components/molecules/upload-group/upload-group3.vue.js +0 -5
- package/dist/components/organisms/asset-uploader/asset-uploader.vue.js +0 -160
- package/dist/components/organisms/asset-uploader/asset-uploader2.vue.js +0 -4
- package/dist/components/organisms/location-finder/location-finder.vue.js +0 -634
- package/dist/components/organisms/location-finder/location-finder3.vue.js +0 -5
- package/dist/components/organisms/preset-uploader/preset-uploader.vue.js +0 -569
- package/dist/components/organisms/preset-uploader/preset-uploader3.vue.js +0 -5
- package/dist/components/templates/base-carousel/base-carousel.vue.js +0 -93
- package/dist/components/templates/base-carousel/base-carousel3.vue.js +0 -5
- package/dist/components/templates/base-form/base-form.vue.js +0 -35
- package/dist/components/templates/base-form/base-form3.vue.js +0 -5
- package/dist/components/templates/modal-dialog/modal-dialog.vue.js +0 -123
- package/dist/components/templates/modal-dialog/modal-dialog3.vue.js +0 -5
- package/dist/components/templates/popover-dialog/popover-dialog.vue.js +0 -95
- package/dist/components/templates/popover-dialog/popover-dialog3.vue.js +0 -5
- package/dist/components/templates/sortable-list/sortable-list.vue.js +0 -204
- package/dist/components/templates/sortable-list/sortable-list3.vue.js +0 -5
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue.js +0 -76
- package/dist/components/templates/touch-wrapper/touch-wrapper3.vue.js +0 -5
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, computed as c, openBlock as y, createElementBlock as p, renderSlot as l, withDirectives as b, createElementVNode as i, normalizeClass as r, vModelText as g } from "vue";
|
|
2
|
-
import { sanitizeInput as h, uniqueId as o } from "../../../utilities/helpers.js";
|
|
3
|
-
const x = { class: "input input--textarea" }, S = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "aria-label"], B = ["for", "innerHTML"], V = /* @__PURE__ */ f({
|
|
4
|
-
__name: "input-textarea",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: ""
|
|
9
|
-
},
|
|
10
|
-
type: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: "text"
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: () => o()
|
|
17
|
-
},
|
|
18
|
-
id: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => o()
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
placeholder: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
variant: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
disabled: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
},
|
|
38
|
-
readOnly: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: !1
|
|
41
|
-
},
|
|
42
|
-
required: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
maxlength: {
|
|
47
|
-
type: Number
|
|
48
|
-
},
|
|
49
|
-
pattern: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: null
|
|
52
|
-
},
|
|
53
|
-
checked: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: !1
|
|
56
|
-
},
|
|
57
|
-
sanitize: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !0
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
emits: ["update:modelValue"],
|
|
63
|
-
setup(e, { emit: u }) {
|
|
64
|
-
const a = e, m = u, n = c({
|
|
65
|
-
get() {
|
|
66
|
-
return a.modelValue;
|
|
67
|
-
},
|
|
68
|
-
set(t) {
|
|
69
|
-
a.sanitize && typeof t == "string" && (t = h(t)), m("update:modelValue", t);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
return (t, d) => (y(), p("div", x, [
|
|
73
|
-
l(t.$slots, "input-prepend"),
|
|
74
|
-
b(i("textarea", {
|
|
75
|
-
"onUpdate:modelValue": d[0] || (d[0] = (s) => n.value = s),
|
|
76
|
-
type: e.type,
|
|
77
|
-
id: e.id,
|
|
78
|
-
name: e.name,
|
|
79
|
-
placeholder: e.placeholder,
|
|
80
|
-
pattern: e.pattern,
|
|
81
|
-
disabled: e.disabled,
|
|
82
|
-
"read-only": e.readOnly,
|
|
83
|
-
required: e.required,
|
|
84
|
-
maxlength: e.maxlength,
|
|
85
|
-
class: r(["form-control", {}]),
|
|
86
|
-
"aria-label": e.label
|
|
87
|
-
}, null, 8, S), [
|
|
88
|
-
[g, n.value]
|
|
89
|
-
]),
|
|
90
|
-
l(t.$slots, "input-append"),
|
|
91
|
-
l(t.$slots, "label", {}, () => [
|
|
92
|
-
i("label", {
|
|
93
|
-
for: e.id,
|
|
94
|
-
class: r(["input__label", {
|
|
95
|
-
"form-check-label": e.type === "checkbox"
|
|
96
|
-
}]),
|
|
97
|
-
innerHTML: `${e.label}${e.required ? " *" : ""}`
|
|
98
|
-
}, null, 10, B)
|
|
99
|
-
])
|
|
100
|
-
]));
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
V as default
|
|
105
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as r, createElementBlock as a, createElementVNode as e, renderSlot as s } from "vue";
|
|
2
|
-
const i = { class: "loading-spinner d-block" }, d = /* @__PURE__ */ o({
|
|
3
|
-
__name: "loading-spinner",
|
|
4
|
-
props: {
|
|
5
|
-
color: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: "#fff"
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
setup(p) {
|
|
11
|
-
return (n, t) => (r(), a("span", i, [
|
|
12
|
-
t[0] || (t[0] = e("span", { class: "loading-spinner__animation" }, [
|
|
13
|
-
e("svg", {
|
|
14
|
-
version: "1.1",
|
|
15
|
-
x: "0px",
|
|
16
|
-
y: "0px",
|
|
17
|
-
viewBox: "0 0 100 100"
|
|
18
|
-
}, [
|
|
19
|
-
e("path", { d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50" }, [
|
|
20
|
-
e("animateTransform", {
|
|
21
|
-
attributeName: "transform",
|
|
22
|
-
attributeType: "XML",
|
|
23
|
-
type: "rotate",
|
|
24
|
-
dur: "1s",
|
|
25
|
-
from: "0 50 50",
|
|
26
|
-
to: "360 50 50",
|
|
27
|
-
repeatCount: "indefinite"
|
|
28
|
-
})
|
|
29
|
-
])
|
|
30
|
-
])
|
|
31
|
-
], -1)),
|
|
32
|
-
s(n.$slots, "default")
|
|
33
|
-
]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
d as default
|
|
38
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as n, createElementBlock as d, Fragment as y, renderList as h, normalizeClass as u, createElementVNode as r, renderSlot as i, unref as k, toDisplayString as g, createCommentVNode as b } from "vue";
|
|
2
|
-
import { uniqueId as m } from "../../../utilities/helpers.js";
|
|
3
|
-
import { sanitizeHtml as v } from "../../../composables/useSanitize.js";
|
|
4
|
-
const $ = { class: "input radio-group" }, V = ["id", "name", "value", "checked", "disabled", "read-only", "required", "onChange"], C = ["for", "innerHTML"], S = ["for"], z = /* @__PURE__ */ f({
|
|
5
|
-
__name: "radio-group",
|
|
6
|
-
props: {
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: null
|
|
9
|
-
},
|
|
10
|
-
options: {
|
|
11
|
-
type: Array,
|
|
12
|
-
default: []
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: () => m()
|
|
17
|
-
},
|
|
18
|
-
id: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: () => m()
|
|
21
|
-
},
|
|
22
|
-
label: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
variant: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
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
|
-
keyOption: {
|
|
43
|
-
// type: String as PropType<'any' | 'all'>,
|
|
44
|
-
type: null
|
|
45
|
-
},
|
|
46
|
-
itemClass: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["change", "update:modelValue"],
|
|
52
|
-
setup(e, { emit: o }) {
|
|
53
|
-
const c = o;
|
|
54
|
-
function s(t) {
|
|
55
|
-
c("update:modelValue", t);
|
|
56
|
-
}
|
|
57
|
-
return (t, q) => (n(), d("div", $, [
|
|
58
|
-
(n(!0), d(y, null, h(e.options, (l, a) => (n(), d("div", {
|
|
59
|
-
key: a,
|
|
60
|
-
class: u(["form-check", e.itemClass])
|
|
61
|
-
}, [
|
|
62
|
-
r("input", {
|
|
63
|
-
type: "radio",
|
|
64
|
-
id: `${e.id}-${a}`,
|
|
65
|
-
name: e.name,
|
|
66
|
-
class: u(["form-check-input", `
|
|
67
|
-
${a === e.keyOption || l.key ? "form-check-input--key" : ""}
|
|
68
|
-
${(a === e.keyOption || l.key) && l.value === e.modelValue?.value ? "form-check-input--match" : ""}
|
|
69
|
-
`]),
|
|
70
|
-
value: l.value || l,
|
|
71
|
-
checked: l.value ? l.value === e.modelValue?.value : l === e.modelValue,
|
|
72
|
-
disabled: e.disabled,
|
|
73
|
-
"read-only": e.readOnly,
|
|
74
|
-
required: e.required,
|
|
75
|
-
onChange: (B) => s(l)
|
|
76
|
-
}, null, 42, V),
|
|
77
|
-
i(t.$slots, "option-label", {
|
|
78
|
-
option: l,
|
|
79
|
-
index: a
|
|
80
|
-
}, () => [
|
|
81
|
-
r("label", {
|
|
82
|
-
class: "form-check-label",
|
|
83
|
-
for: `${e.id}-${a}`,
|
|
84
|
-
innerHTML: k(v)(l.text || "")
|
|
85
|
-
}, null, 8, C)
|
|
86
|
-
])
|
|
87
|
-
], 2))), 128)),
|
|
88
|
-
i(t.$slots, "label", {}, () => [
|
|
89
|
-
e.label ? (n(), d("label", {
|
|
90
|
-
key: 0,
|
|
91
|
-
for: e.id
|
|
92
|
-
}, g(e.label), 9, S)) : b("", !0)
|
|
93
|
-
])
|
|
94
|
-
]));
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
z as default
|
|
99
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as t, createElementBlock as n, normalizeClass as i, createElementVNode as l } from "vue";
|
|
2
|
-
const a = {
|
|
3
|
-
class: "icon",
|
|
4
|
-
preserveAspectRatio: "xMaxYMin"
|
|
5
|
-
}, o = ["xlink:href"], m = /* @__PURE__ */ s({
|
|
6
|
-
__name: "svg-icon",
|
|
7
|
-
props: {
|
|
8
|
-
basePath: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: "/symbol-defs.svg"
|
|
11
|
-
},
|
|
12
|
-
prefix: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "icon-"
|
|
15
|
-
},
|
|
16
|
-
symbol: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
size: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "default"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(e) {
|
|
26
|
-
return (c, r) => (t(), n("i", {
|
|
27
|
-
class: i(["svg-icon", {
|
|
28
|
-
[`svg-icon--${e.size}`]: e.size
|
|
29
|
-
}])
|
|
30
|
-
}, [
|
|
31
|
-
(t(), n("svg", a, [
|
|
32
|
-
l("use", {
|
|
33
|
-
"xlink:href": `${e.basePath}#${e.prefix}${e.symbol}`,
|
|
34
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
35
|
-
x: "0",
|
|
36
|
-
y: "0"
|
|
37
|
-
}, null, 8, o)
|
|
38
|
-
]))
|
|
39
|
-
], 2));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
m as default
|
|
44
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as o, openBlock as l, createElementBlock as s, createElementVNode as i, Fragment as f, renderList as k, normalizeClass as v } from "vue";
|
|
2
|
-
const y = { class: "zoom-slider" }, h = ["min", "max", "step", "value"], b = { class: "zoom-slider__ticks" }, x = {
|
|
3
|
-
name: "ZoomSlider",
|
|
4
|
-
inheritAttrs: !1
|
|
5
|
-
}, V = /* @__PURE__ */ _({
|
|
6
|
-
...x,
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: Number,
|
|
10
|
-
default: 1
|
|
11
|
-
},
|
|
12
|
-
min: {
|
|
13
|
-
type: Number,
|
|
14
|
-
default: 1
|
|
15
|
-
},
|
|
16
|
-
max: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 2
|
|
19
|
-
},
|
|
20
|
-
step: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 0.01
|
|
23
|
-
},
|
|
24
|
-
ticks: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 51
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["update:modelValue"],
|
|
30
|
-
setup(e, { emit: n }) {
|
|
31
|
-
const a = e, r = n, c = o(() => a.ticks), m = o(() => Math.round((a.ticks - 1) / 2)), d = o(() => Math.round((a.ticks - 1) / 10));
|
|
32
|
-
function p(u) {
|
|
33
|
-
r("update:modelValue", parseFloat(u.target.value));
|
|
34
|
-
}
|
|
35
|
-
return (u, z) => (l(), s("div", y, [
|
|
36
|
-
i("input", {
|
|
37
|
-
type: "range",
|
|
38
|
-
min: e.min,
|
|
39
|
-
max: e.max,
|
|
40
|
-
step: e.step,
|
|
41
|
-
value: e.modelValue,
|
|
42
|
-
onInput: p,
|
|
43
|
-
"aria-label": "Zoom"
|
|
44
|
-
}, null, 40, h),
|
|
45
|
-
i("div", b, [
|
|
46
|
-
(l(!0), s(f, null, k(c.value, (t) => (l(), s("span", {
|
|
47
|
-
key: t,
|
|
48
|
-
class: v(["zoom-slider__tick", {
|
|
49
|
-
"zoom-slider__tick--major": (t - 1) % m.value === 0,
|
|
50
|
-
"zoom-slider__tick--mid": (t - 1) % d.value === 0 && (t - 1) % m.value !== 0
|
|
51
|
-
}])
|
|
52
|
-
}, null, 2))), 128))
|
|
53
|
-
])
|
|
54
|
-
]));
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
export {
|
|
58
|
-
V as default
|
|
59
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, ref as m, watch as p, openBlock as f, createElementBlock as g, createElementVNode as a, normalizeClass as n, renderSlot as l, toDisplayString as h, createVNode as y, Transition as v, withCtx as b, withDirectives as S, unref as V, vShow as $ } from "vue";
|
|
2
|
-
import { uniqueId as q } from "../../../utilities/helpers.js";
|
|
3
|
-
import { useSanitize as w } from "../../../composables/useSanitize.js";
|
|
4
|
-
const x = { class: "accordion-item" }, B = ["id"], _ = ["aria-expanded", "aria-controls"], C = { class: "flex-grow-1" }, T = ["id", "aria-labelledby"], k = ["innerHTML"], N = /* @__PURE__ */ u({
|
|
5
|
-
__name: "accordion-item",
|
|
6
|
-
props: {
|
|
7
|
-
id: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: () => q()
|
|
10
|
-
},
|
|
11
|
-
modelValue: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
title: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "Accordion Title"
|
|
18
|
-
},
|
|
19
|
-
body: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"
|
|
22
|
-
},
|
|
23
|
-
parent: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: ""
|
|
26
|
-
},
|
|
27
|
-
noPadding: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !1
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
emits: ["update:modelValue"],
|
|
33
|
-
setup(e, { emit: d }) {
|
|
34
|
-
const o = e, s = d, t = m(o.modelValue);
|
|
35
|
-
p(() => o.modelValue, (i) => {
|
|
36
|
-
t.value = i;
|
|
37
|
-
});
|
|
38
|
-
const c = w(() => o.body);
|
|
39
|
-
function r() {
|
|
40
|
-
t.value = !t.value, s("update:modelValue", t.value);
|
|
41
|
-
}
|
|
42
|
-
return (i, z) => (f(), g("div", x, [
|
|
43
|
-
a("div", {
|
|
44
|
-
class: "accordion-header",
|
|
45
|
-
id: `heading-${e.id}`
|
|
46
|
-
}, [
|
|
47
|
-
a("button", {
|
|
48
|
-
class: n(["accordion-button", !t.value && "collapsed"]),
|
|
49
|
-
type: "button",
|
|
50
|
-
"aria-expanded": t.value,
|
|
51
|
-
"aria-controls": `target${e.id}`,
|
|
52
|
-
onClick: r
|
|
53
|
-
}, [
|
|
54
|
-
l(i.$slots, "toggle", {}, () => [
|
|
55
|
-
a("span", C, h(e.title), 1)
|
|
56
|
-
])
|
|
57
|
-
], 10, _)
|
|
58
|
-
], 8, B),
|
|
59
|
-
y(v, { name: "accordion" }, {
|
|
60
|
-
default: b(() => [
|
|
61
|
-
S(a("div", {
|
|
62
|
-
class: "accordion-collapse",
|
|
63
|
-
id: `target${e.id}`,
|
|
64
|
-
"aria-labelledby": `heading-${e.id}`
|
|
65
|
-
}, [
|
|
66
|
-
a("div", {
|
|
67
|
-
class: n(["accordion-body", e.noPadding ? "p-0" : ""])
|
|
68
|
-
}, [
|
|
69
|
-
l(i.$slots, "body", {}, () => [
|
|
70
|
-
a("article", { innerHTML: V(c) }, null, 8, k)
|
|
71
|
-
])
|
|
72
|
-
], 2)
|
|
73
|
-
], 8, T), [
|
|
74
|
-
[$, t.value]
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
_: 3
|
|
78
|
-
})
|
|
79
|
-
]));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
N as default
|
|
84
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as c, renderSlot as r } from "vue";
|
|
2
|
-
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const n = {}, s = { class: "accordion" };
|
|
4
|
-
function a(o, d) {
|
|
5
|
-
return e(), c("div", s, [
|
|
6
|
-
r(o.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const i = /* @__PURE__ */ t(n, [["render", a]]);
|
|
10
|
-
export {
|
|
11
|
-
i as default
|
|
12
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as c, computed as d, watch as w, onBeforeMount as B, onBeforeUnmount as E, openBlock as a, createElementBlock as r, createElementVNode as p, renderSlot as $, createVNode as x, mergeProps as C, Fragment as L, renderList as H, withModifiers as M, createCommentVNode as b } from "vue";
|
|
2
|
-
import N from "../../atoms/base-input/base-input.vue.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import { sanitizeHtml as O } from "../../../composables/useSanitize.js";
|
|
5
|
-
const F = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "auto-suggest__suggestions position-relative"
|
|
8
|
-
}, R = { class: "suggestions dropdown-menu show w-100 mt-2" }, T = ["onClick"], U = ["innerHTML"], D = /* @__PURE__ */ S({
|
|
9
|
-
__name: "auto-suggest",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
type: String
|
|
13
|
-
},
|
|
14
|
-
id: {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
name: {
|
|
18
|
-
type: String
|
|
19
|
-
},
|
|
20
|
-
label: {
|
|
21
|
-
type: String
|
|
22
|
-
},
|
|
23
|
-
error: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
readOnly: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
required: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
},
|
|
38
|
-
options: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default: []
|
|
41
|
-
},
|
|
42
|
-
placeholder: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
color: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: ""
|
|
49
|
-
},
|
|
50
|
-
outlined: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
selection: {
|
|
55
|
-
type: String
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
emits: ["update:modelValue", "update:selection"],
|
|
59
|
-
setup(f, { emit: v }) {
|
|
60
|
-
const l = f, u = v, m = c(), o = c(!1), s = d({
|
|
61
|
-
get() {
|
|
62
|
-
return l.modelValue;
|
|
63
|
-
},
|
|
64
|
-
set(e) {
|
|
65
|
-
u("update:modelValue", e);
|
|
66
|
-
}
|
|
67
|
-
}), i = d(() => {
|
|
68
|
-
const e = new RegExp(`(${s.value})`, "i");
|
|
69
|
-
return s.value ? l.options.filter((t) => e.test(t)) : l.options;
|
|
70
|
-
}), y = d(() => {
|
|
71
|
-
const e = new RegExp(`(${s.value})`, "i");
|
|
72
|
-
return i.value.map((t) => {
|
|
73
|
-
const n = t.replace(e, "<strong>$1</strong>");
|
|
74
|
-
return O(n);
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
w(() => l.options, (e, t) => {
|
|
78
|
-
e.length && (o.value = !0);
|
|
79
|
-
}, { deep: !0 });
|
|
80
|
-
function _() {
|
|
81
|
-
l.options.length && (o.value = !0);
|
|
82
|
-
}
|
|
83
|
-
function h(e) {
|
|
84
|
-
o.value = !1;
|
|
85
|
-
const t = i.value[e];
|
|
86
|
-
u("update:modelValue", t), u("update:selection", t);
|
|
87
|
-
}
|
|
88
|
-
const g = c();
|
|
89
|
-
function k(e) {
|
|
90
|
-
const t = e.target;
|
|
91
|
-
o.value && t && !m.value.contains(t) && (o.value = !1);
|
|
92
|
-
}
|
|
93
|
-
return B(() => {
|
|
94
|
-
g.value = document.addEventListener("click", k);
|
|
95
|
-
}), E(() => {
|
|
96
|
-
document.removeEventListener("click", g.value);
|
|
97
|
-
}), (e, t) => (a(), r("div", {
|
|
98
|
-
class: "auto-suggest",
|
|
99
|
-
ref_key: "container",
|
|
100
|
-
ref: m
|
|
101
|
-
}, [
|
|
102
|
-
p("div", {
|
|
103
|
-
class: "auto-suggest__input",
|
|
104
|
-
onFocusCapture: _
|
|
105
|
-
}, [
|
|
106
|
-
$(e.$slots, "default", {}, () => [
|
|
107
|
-
x(N, C({
|
|
108
|
-
modelValue: s.value,
|
|
109
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => s.value = n)
|
|
110
|
-
}, e.$props), null, 16, ["modelValue"])
|
|
111
|
-
])
|
|
112
|
-
], 32),
|
|
113
|
-
o.value && i.value.length ? (a(), r("div", F, [
|
|
114
|
-
p("ul", R, [
|
|
115
|
-
(a(!0), r(L, null, H(y.value, (n, V) => (a(), r("li", {
|
|
116
|
-
key: n,
|
|
117
|
-
class: "suggestions__item dropdown-item",
|
|
118
|
-
onClick: M((q) => h(V), ["prevent"])
|
|
119
|
-
}, [
|
|
120
|
-
p("p", {
|
|
121
|
-
class: "text-truncate my-2",
|
|
122
|
-
innerHTML: n
|
|
123
|
-
}, null, 8, U)
|
|
124
|
-
], 8, T))), 128))
|
|
125
|
-
])
|
|
126
|
-
])) : b("", !0)
|
|
127
|
-
], 512));
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
export {
|
|
131
|
-
D as default
|
|
132
|
-
};
|