ablok-components 0.3.57 → 0.3.59
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 +9 -0
- package/dist/ablok-components.umd.js +2 -2
- package/dist/assets/img/guide.png.js +4 -0
- package/dist/components/atoms/base-button/base-button.vue.js +92 -0
- package/dist/components/atoms/base-button/base-button.vue3.js +5 -0
- package/dist/components/atoms/base-headline/base-headline.vue.js +30 -0
- package/dist/components/atoms/base-headline/base-headline.vue2.js +4 -0
- package/dist/components/atoms/base-image/base-image.vue.js +75 -0
- package/dist/components/atoms/base-image/base-image.vue3.js +5 -0
- package/dist/components/atoms/base-input/base-input.vue.js +181 -0
- package/dist/components/atoms/base-input/base-input.vue3.js +5 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.vue.js +21 -0
- package/dist/components/atoms/base-paragraph/base-paragraph.vue2.js +4 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue.js +113 -0
- package/dist/components/atoms/canvas-confetti/canvas-confetti.vue3.js +5 -0
- package/dist/components/atoms/check-group/check-group.vue.js +86 -0
- package/dist/components/atoms/check-group/check-group.vue3.js +5 -0
- package/dist/components/atoms/custom-html/custom-html.vue.js +26 -0
- package/dist/components/atoms/custom-html/custom-html.vue2.js +4 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.vue.js +84 -0
- package/dist/components/atoms/input-checkbox/input-checkbox.vue3.js +5 -0
- package/dist/components/atoms/input-datetime/input-datetime.vue.js +99 -0
- package/dist/components/atoms/input-datetime/input-datetime.vue2.js +4 -0
- package/dist/components/atoms/input-file/input-file.vue.js +130 -0
- package/dist/components/atoms/input-file/input-file.vue2.js +4 -0
- package/dist/components/atoms/input-passcode/input-passcode.vue.js +149 -0
- package/dist/components/atoms/input-passcode/input-passcode.vue2.js +4 -0
- package/dist/components/atoms/input-password/input-password.vue.js +118 -0
- package/dist/components/atoms/input-password/input-password.vue2.js +4 -0
- package/dist/components/atoms/input-textarea/input-textarea.vue.js +105 -0
- package/dist/components/atoms/input-textarea/input-textarea.vue2.js +4 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.vue.js +38 -0
- package/dist/components/atoms/loading-spinner/loading-spinner.vue3.js +5 -0
- package/dist/components/atoms/radio-group/radio-group.vue.js +99 -0
- package/dist/components/atoms/radio-group/radio-group.vue3.js +5 -0
- package/dist/components/atoms/svg-icon/svg-icon.vue.js +44 -0
- package/dist/components/atoms/svg-icon/svg-icon.vue3.js +5 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.vue.js +59 -0
- package/dist/components/atoms/zoom-slider/zoom-slider.vue3.js +5 -0
- package/dist/components/molecules/accordion/accordion-item.vue.js +76 -0
- package/dist/components/molecules/accordion/accordion-item.vue3.js +5 -0
- package/dist/components/molecules/accordion/accordion.vue.js +12 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.vue.js +132 -0
- package/dist/components/molecules/auto-suggest/auto-suggest.vue3.js +5 -0
- package/dist/components/molecules/base-camera/base-camera.vue.js +392 -0
- package/dist/components/molecules/base-camera/base-camera.vue3.js +5 -0
- package/dist/components/molecules/base-map/base-map.vue.js +386 -0
- package/dist/components/molecules/base-map/base-map.vue3.js +5 -0
- package/dist/components/molecules/color-palette/color-palette.vue.js +72 -0
- package/dist/components/molecules/color-palette/color-palette.vue3.js +5 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.vue.js +102 -0
- package/dist/components/molecules/dom-renderer/dom-renderer.vue2.js +4 -0
- package/dist/components/molecules/file-upload/file-upload.vue.js +177 -0
- package/dist/components/molecules/file-upload/file-upload.vue3.js +5 -0
- package/dist/components/molecules/hint-system/hint-system.vue.d.ts +1 -1
- package/dist/components/molecules/hint-system/hint-system.vue.js +111 -0
- package/dist/components/molecules/hint-system/hint-system.vue3.js +5 -0
- package/dist/components/molecules/image-crop/image-crop.vue.js +82 -0
- package/dist/components/molecules/image-crop/image-crop.vue2.js +4 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.js +120 -0
- package/dist/components/molecules/image-crop-resize/image-crop-resize.vue2.js +4 -0
- package/dist/components/molecules/image-resize/image-resize.vue.js +143 -0
- package/dist/components/molecules/image-resize/image-resize.vue2.js +4 -0
- package/dist/components/molecules/image-upload/image-upload.vue.js +274 -0
- package/dist/components/molecules/image-upload/image-upload.vue3.js +5 -0
- package/dist/components/molecules/image-zoom/image-zoom.vue.js +209 -0
- package/dist/components/molecules/image-zoom/image-zoom.vue3.js +5 -0
- package/dist/components/molecules/input-color/input-color.vue.js +105 -0
- package/dist/components/molecules/input-color/input-color.vue3.js +5 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.vue.js +263 -0
- package/dist/components/molecules/input-datepicker/input-datepicker.vue3.js +5 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.vue.js +207 -0
- package/dist/components/molecules/input-dropdown/input-dropdown.vue3.js +5 -0
- package/dist/components/molecules/link-sharing/link-sharing.vue.js +177 -0
- package/dist/components/molecules/link-sharing/link-sharing.vue3.js +7 -0
- package/dist/components/molecules/location-list/location-list.vue.js +98 -0
- package/dist/components/molecules/location-list/location-list.vue3.js +5 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue.js +55 -0
- package/dist/components/molecules/media-thumbnails/media-thumbnails.vue3.js +5 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.vue.js +135 -0
- package/dist/components/molecules/popover-notifications/popover-notifications.vue3.js +5 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.js +134 -0
- package/dist/components/molecules/popover-tooltip/popover-tooltip.vue3.js +5 -0
- package/dist/components/molecules/progress-steps/progress-steps.vue.js +84 -0
- package/dist/components/molecules/progress-steps/progress-steps.vue3.js +5 -0
- package/dist/components/molecules/qr-code/qr-code.vue.js +103 -0
- package/dist/components/molecules/qr-code/qr-code.vue3.js +5 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.vue.js +79 -0
- package/dist/components/molecules/radio-buttons/radio-buttons.vue3.js +5 -0
- package/dist/components/molecules/rte-editor/rte-editor.vue.js +455 -0
- package/dist/components/molecules/rte-editor/rte-editor.vue3.js +5 -0
- package/dist/components/molecules/select-media/select-media.vue.js +87 -0
- package/dist/components/molecules/select-media/select-media.vue3.js +5 -0
- package/dist/components/molecules/upload-group/upload-group.vue.js +178 -0
- package/dist/components/molecules/upload-group/upload-group.vue3.js +5 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.vue.js +126 -0
- package/dist/components/organisms/asset-uploader/asset-uploader.vue3.js +5 -0
- package/dist/components/organisms/location-finder/location-finder.vue.js +634 -0
- package/dist/components/organisms/location-finder/location-finder.vue3.js +5 -0
- package/dist/components/templates/base-carousel/base-carousel.vue.js +94 -0
- package/dist/components/templates/base-carousel/base-carousel.vue3.js +5 -0
- package/dist/components/templates/base-form/base-form.vue.js +35 -0
- package/dist/components/templates/base-form/base-form.vue3.js +5 -0
- package/dist/components/templates/modal-dialog/modal-dialog.vue.js +123 -0
- package/dist/components/templates/modal-dialog/modal-dialog.vue3.js +5 -0
- package/dist/components/templates/popover-dialog/popover-dialog.vue.js +95 -0
- package/dist/components/templates/popover-dialog/popover-dialog.vue3.js +5 -0
- package/dist/components/templates/sortable-list/sortable-list.vue.js +158 -0
- package/dist/components/templates/sortable-list/sortable-list.vue3.js +5 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue.js +85 -0
- package/dist/components/templates/touch-wrapper/touch-wrapper.vue3.js +5 -0
- package/dist/composables/useCameraFilter.js +56 -0
- package/dist/composables/useConfetti.js +12 -0
- package/dist/composables/useDirections.js +62 -0
- package/dist/composables/useFileUpload.js +79 -0
- package/dist/composables/useGeocoding.js +85 -0
- package/dist/composables/useGeolocation.js +71 -0
- package/dist/composables/useSanitize.js +23 -0
- package/dist/i18n.d.ts +3 -0
- package/dist/index.js +156 -0
- package/dist/locales/en.d.ts +3 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +163 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatLong.js +37 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/localize.js +161 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/match.js +112 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de.js +20 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +70 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/localize.js +121 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/match.js +110 -0
- package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr.js +20 -0
- package/dist/utilities/helpers.js +79 -0
- package/package.json +80 -25
- package/dist/ablok-components.es.js +0 -8654
- package/dist/components/atoms/base-button/base-button.spec.d.ts +0 -1
- package/dist/components/atoms/base-headline/base-headline.spec.d.ts +0 -1
- package/dist/components/atoms/base-image/base-image.spec.d.ts +0 -1
- package/dist/components/atoms/base-input/base-input.spec.d.ts +0 -1
- package/dist/components/atoms/base-paragraph/base-paragraph.spec.d.ts +0 -1
- package/dist/components/atoms/canvas-confetti/canvas-confetti.spec.d.ts +0 -1
- package/dist/components/atoms/check-group/check-group.spec.d.ts +0 -1
- package/dist/components/atoms/custom-html/custom-html.spec.d.ts +0 -1
- package/dist/components/atoms/input-checkbox/input-checkbox.spec.d.ts +0 -1
- package/dist/components/atoms/input-file/input-file.spec.d.ts +0 -1
- package/dist/components/atoms/input-passcode/input-passcode.spec.d.ts +0 -1
- package/dist/components/atoms/input-password/input-password.spec.d.ts +0 -1
- package/dist/components/atoms/input-textarea/input-textarea.spec.d.ts +0 -1
- package/dist/components/atoms/loading-spinner/loading-spinner.spec.d.ts +0 -1
- package/dist/components/atoms/radio-group/radio-group.spec.d.ts +0 -1
- package/dist/components/atoms/svg-icon/svg-icon.spec.d.ts +0 -1
- package/dist/components/atoms/zoom-slider/zoom-slider.spec.d.ts +0 -1
- package/dist/components/molecules/accordion/accordion-item.spec.d.ts +0 -1
- package/dist/components/molecules/auto-suggest/auto-suggest.spec.d.ts +0 -1
- package/dist/components/molecules/base-map/base-map.spec.d.ts +0 -1
- package/dist/components/molecules/color-palette/color-palette.spec.d.ts +0 -1
- package/dist/components/molecules/dom-renderer/dom-renderer.spec.d.ts +0 -1
- package/dist/components/molecules/file-upload/file-upload.spec.d.ts +0 -1
- package/dist/components/molecules/hint-system/hint-system.spec.d.ts +0 -1
- package/dist/components/molecules/image-crop/image-crop.spec.d.ts +0 -1
- package/dist/components/molecules/image-crop-resize/image-crop-resize.spec.d.ts +0 -1
- package/dist/components/molecules/image-resize/image-resize.spec.d.ts +0 -1
- package/dist/components/molecules/image-upload/image-upload.spec.d.ts +0 -1
- package/dist/components/molecules/image-zoom/image-zoom.spec.d.ts +0 -1
- package/dist/components/molecules/input-color/input-color.spec.d.ts +0 -1
- package/dist/components/molecules/input-datepicker/input-datepicker.spec.d.ts +0 -1
- package/dist/components/molecules/input-dropdown/input-dropdown.spec.d.ts +0 -1
- package/dist/components/molecules/link-sharing/link-sharing.spec.d.ts +0 -1
- package/dist/components/molecules/media-thumbnails/media-thumbnails.spec.d.ts +0 -1
- package/dist/components/molecules/popover-notifications/popover-notifications.spec.d.ts +0 -1
- package/dist/components/molecules/popover-tooltip/popover-tooltip.spec.d.ts +0 -1
- package/dist/components/molecules/progress-steps/progress-steps.spec.d.ts +0 -1
- package/dist/components/molecules/qr-code/qr-code.spec.d.ts +0 -1
- package/dist/components/molecules/radio-buttons/radio-buttons.spec.d.ts +0 -1
- package/dist/components/molecules/rte-editor/rte-editor.spec.d.ts +0 -1
- package/dist/components/molecules/select-media/select-media.spec.d.ts +0 -1
- package/dist/components/molecules/upload-group/upload-group.spec.d.ts +0 -1
- package/dist/components/organisms/asset-uploader/asset-uploader.spec.d.ts +0 -1
- package/dist/components/organisms/location-finder/location-finder.spec.d.ts +0 -1
- package/dist/components/templates/base-carousel/base-carousel.spec.d.ts +0 -1
- package/dist/components/templates/base-form/base-form.spec.d.ts +0 -1
- package/dist/components/templates/modal-dialog/modal-dialog.spec.d.ts +0 -1
- package/dist/components/templates/popover-dialog/popover-dialog.spec.d.ts +0 -1
- package/dist/components/templates/sortable-list/sortable-list.spec.d.ts +0 -1
- package/dist/components/templates/touch-wrapper/touch-wrapper.spec.d.ts +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as u, createElementBlock as m, createElementVNode as t, normalizeClass as a, renderSlot as d, toDisplayString as g, unref as p } from "vue";
|
|
2
|
+
import { uniqueId as b } from "../../../utilities/helpers.js";
|
|
3
|
+
import { useSanitize as f } from "../../../composables/useSanitize.js";
|
|
4
|
+
const y = { class: "accordion-item" }, h = ["id"], S = ["data-bs-target", "aria-controls"], V = { class: "flex-grow-1" }, $ = ["id", "aria-labelledby", "data-bs-parent"], q = ["innerHTML"], z = /* @__PURE__ */ r({
|
|
5
|
+
__name: "accordion-item",
|
|
6
|
+
props: {
|
|
7
|
+
id: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: () => b()
|
|
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: n }) {
|
|
34
|
+
const o = e, l = n, s = f(() => o.body);
|
|
35
|
+
function c() {
|
|
36
|
+
l("update:modelValue", !o.modelValue);
|
|
37
|
+
}
|
|
38
|
+
return (i, v) => (u(), m("div", y, [
|
|
39
|
+
t("div", {
|
|
40
|
+
class: "accordion-header",
|
|
41
|
+
id: `heading-${e.id}`
|
|
42
|
+
}, [
|
|
43
|
+
t("button", {
|
|
44
|
+
class: a(["accordion-button", !e.modelValue && "collapsed"]),
|
|
45
|
+
type: "button",
|
|
46
|
+
"data-bs-toggle": "collapse",
|
|
47
|
+
"data-bs-target": `#target${e.id}`,
|
|
48
|
+
"aria-expanded": "true",
|
|
49
|
+
"aria-controls": `target${e.id}`,
|
|
50
|
+
onClick: c
|
|
51
|
+
}, [
|
|
52
|
+
d(i.$slots, "toggle", {}, () => [
|
|
53
|
+
t("span", V, g(e.title), 1)
|
|
54
|
+
])
|
|
55
|
+
], 10, S)
|
|
56
|
+
], 8, h),
|
|
57
|
+
t("div", {
|
|
58
|
+
class: a(["accordion-collapse collapse", e.modelValue && "show"]),
|
|
59
|
+
id: `target${e.id}`,
|
|
60
|
+
"aria-labelledby": `heading${e.id}`,
|
|
61
|
+
"data-bs-parent": e.parent
|
|
62
|
+
}, [
|
|
63
|
+
t("div", {
|
|
64
|
+
class: a(["accordion-body", e.noPadding ? "p-0" : ""])
|
|
65
|
+
}, [
|
|
66
|
+
d(i.$slots, "body", {}, () => [
|
|
67
|
+
t("article", { innerHTML: p(s) }, null, 8, q)
|
|
68
|
+
])
|
|
69
|
+
], 2)
|
|
70
|
+
], 10, $)
|
|
71
|
+
]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export {
|
|
75
|
+
z as default
|
|
76
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
};
|