ablok-components 0.3.58 → 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.
Files changed (196) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/ablok-components.umd.js +1 -1
  3. package/dist/assets/img/guide.png.js +4 -0
  4. package/dist/components/atoms/base-button/base-button.vue.js +92 -0
  5. package/dist/components/atoms/base-button/base-button.vue3.js +5 -0
  6. package/dist/components/atoms/base-headline/base-headline.vue.js +30 -0
  7. package/dist/components/atoms/base-headline/base-headline.vue2.js +4 -0
  8. package/dist/components/atoms/base-image/base-image.vue.js +75 -0
  9. package/dist/components/atoms/base-image/base-image.vue3.js +5 -0
  10. package/dist/components/atoms/base-input/base-input.vue.js +181 -0
  11. package/dist/components/atoms/base-input/base-input.vue3.js +5 -0
  12. package/dist/components/atoms/base-paragraph/base-paragraph.vue.js +21 -0
  13. package/dist/components/atoms/base-paragraph/base-paragraph.vue2.js +4 -0
  14. package/dist/components/atoms/canvas-confetti/canvas-confetti.vue.js +113 -0
  15. package/dist/components/atoms/canvas-confetti/canvas-confetti.vue3.js +5 -0
  16. package/dist/components/atoms/check-group/check-group.vue.js +86 -0
  17. package/dist/components/atoms/check-group/check-group.vue3.js +5 -0
  18. package/dist/components/atoms/custom-html/custom-html.vue.js +26 -0
  19. package/dist/components/atoms/custom-html/custom-html.vue2.js +4 -0
  20. package/dist/components/atoms/input-checkbox/input-checkbox.vue.js +84 -0
  21. package/dist/components/atoms/input-checkbox/input-checkbox.vue3.js +5 -0
  22. package/dist/components/atoms/input-datetime/input-datetime.vue.js +99 -0
  23. package/dist/components/atoms/input-datetime/input-datetime.vue2.js +4 -0
  24. package/dist/components/atoms/input-file/input-file.vue.js +130 -0
  25. package/dist/components/atoms/input-file/input-file.vue2.js +4 -0
  26. package/dist/components/atoms/input-passcode/input-passcode.vue.js +149 -0
  27. package/dist/components/atoms/input-passcode/input-passcode.vue2.js +4 -0
  28. package/dist/components/atoms/input-password/input-password.vue.js +118 -0
  29. package/dist/components/atoms/input-password/input-password.vue2.js +4 -0
  30. package/dist/components/atoms/input-textarea/input-textarea.vue.js +105 -0
  31. package/dist/components/atoms/input-textarea/input-textarea.vue2.js +4 -0
  32. package/dist/components/atoms/loading-spinner/loading-spinner.vue.js +38 -0
  33. package/dist/components/atoms/loading-spinner/loading-spinner.vue3.js +5 -0
  34. package/dist/components/atoms/radio-group/radio-group.vue.js +99 -0
  35. package/dist/components/atoms/radio-group/radio-group.vue3.js +5 -0
  36. package/dist/components/atoms/svg-icon/svg-icon.vue.js +44 -0
  37. package/dist/components/atoms/svg-icon/svg-icon.vue3.js +5 -0
  38. package/dist/components/atoms/zoom-slider/zoom-slider.vue.js +59 -0
  39. package/dist/components/atoms/zoom-slider/zoom-slider.vue3.js +5 -0
  40. package/dist/components/molecules/accordion/accordion-item.vue.js +76 -0
  41. package/dist/components/molecules/accordion/accordion-item.vue3.js +5 -0
  42. package/dist/components/molecules/accordion/accordion.vue.js +12 -0
  43. package/dist/components/molecules/auto-suggest/auto-suggest.vue.js +132 -0
  44. package/dist/components/molecules/auto-suggest/auto-suggest.vue3.js +5 -0
  45. package/dist/components/molecules/base-camera/base-camera.vue.js +392 -0
  46. package/dist/components/molecules/base-camera/base-camera.vue3.js +5 -0
  47. package/dist/components/molecules/base-map/base-map.vue.js +386 -0
  48. package/dist/components/molecules/base-map/base-map.vue3.js +5 -0
  49. package/dist/components/molecules/color-palette/color-palette.vue.js +72 -0
  50. package/dist/components/molecules/color-palette/color-palette.vue3.js +5 -0
  51. package/dist/components/molecules/dom-renderer/dom-renderer.vue.js +102 -0
  52. package/dist/components/molecules/dom-renderer/dom-renderer.vue2.js +4 -0
  53. package/dist/components/molecules/file-upload/file-upload.vue.js +177 -0
  54. package/dist/components/molecules/file-upload/file-upload.vue3.js +5 -0
  55. package/dist/components/molecules/hint-system/hint-system.vue.d.ts +1 -1
  56. package/dist/components/molecules/hint-system/hint-system.vue.js +111 -0
  57. package/dist/components/molecules/hint-system/hint-system.vue3.js +5 -0
  58. package/dist/components/molecules/image-crop/image-crop.vue.js +82 -0
  59. package/dist/components/molecules/image-crop/image-crop.vue2.js +4 -0
  60. package/dist/components/molecules/image-crop-resize/image-crop-resize.vue.js +120 -0
  61. package/dist/components/molecules/image-crop-resize/image-crop-resize.vue2.js +4 -0
  62. package/dist/components/molecules/image-resize/image-resize.vue.js +143 -0
  63. package/dist/components/molecules/image-resize/image-resize.vue2.js +4 -0
  64. package/dist/components/molecules/image-upload/image-upload.vue.js +274 -0
  65. package/dist/components/molecules/image-upload/image-upload.vue3.js +5 -0
  66. package/dist/components/molecules/image-zoom/image-zoom.vue.js +209 -0
  67. package/dist/components/molecules/image-zoom/image-zoom.vue3.js +5 -0
  68. package/dist/components/molecules/input-color/input-color.vue.js +105 -0
  69. package/dist/components/molecules/input-color/input-color.vue3.js +5 -0
  70. package/dist/components/molecules/input-datepicker/input-datepicker.vue.js +263 -0
  71. package/dist/components/molecules/input-datepicker/input-datepicker.vue3.js +5 -0
  72. package/dist/components/molecules/input-dropdown/input-dropdown.vue.js +207 -0
  73. package/dist/components/molecules/input-dropdown/input-dropdown.vue3.js +5 -0
  74. package/dist/components/molecules/link-sharing/link-sharing.vue.js +177 -0
  75. package/dist/components/molecules/link-sharing/link-sharing.vue3.js +7 -0
  76. package/dist/components/molecules/location-list/location-list.vue.js +98 -0
  77. package/dist/components/molecules/location-list/location-list.vue3.js +5 -0
  78. package/dist/components/molecules/media-thumbnails/media-thumbnails.vue.js +55 -0
  79. package/dist/components/molecules/media-thumbnails/media-thumbnails.vue3.js +5 -0
  80. package/dist/components/molecules/popover-notifications/popover-notifications.vue.js +135 -0
  81. package/dist/components/molecules/popover-notifications/popover-notifications.vue3.js +5 -0
  82. package/dist/components/molecules/popover-tooltip/popover-tooltip.vue.js +134 -0
  83. package/dist/components/molecules/popover-tooltip/popover-tooltip.vue3.js +5 -0
  84. package/dist/components/molecules/progress-steps/progress-steps.vue.js +84 -0
  85. package/dist/components/molecules/progress-steps/progress-steps.vue3.js +5 -0
  86. package/dist/components/molecules/qr-code/qr-code.vue.js +103 -0
  87. package/dist/components/molecules/qr-code/qr-code.vue3.js +5 -0
  88. package/dist/components/molecules/radio-buttons/radio-buttons.vue.js +79 -0
  89. package/dist/components/molecules/radio-buttons/radio-buttons.vue3.js +5 -0
  90. package/dist/components/molecules/rte-editor/rte-editor.vue.js +455 -0
  91. package/dist/components/molecules/rte-editor/rte-editor.vue3.js +5 -0
  92. package/dist/components/molecules/select-media/select-media.vue.js +87 -0
  93. package/dist/components/molecules/select-media/select-media.vue3.js +5 -0
  94. package/dist/components/molecules/upload-group/upload-group.vue.js +178 -0
  95. package/dist/components/molecules/upload-group/upload-group.vue3.js +5 -0
  96. package/dist/components/organisms/asset-uploader/asset-uploader.vue.js +126 -0
  97. package/dist/components/organisms/asset-uploader/asset-uploader.vue3.js +5 -0
  98. package/dist/components/organisms/location-finder/location-finder.vue.js +634 -0
  99. package/dist/components/organisms/location-finder/location-finder.vue3.js +5 -0
  100. package/dist/components/templates/base-carousel/base-carousel.vue.js +94 -0
  101. package/dist/components/templates/base-carousel/base-carousel.vue3.js +5 -0
  102. package/dist/components/templates/base-form/base-form.vue.js +35 -0
  103. package/dist/components/templates/base-form/base-form.vue3.js +5 -0
  104. package/dist/components/templates/modal-dialog/modal-dialog.vue.js +123 -0
  105. package/dist/components/templates/modal-dialog/modal-dialog.vue3.js +5 -0
  106. package/dist/components/templates/popover-dialog/popover-dialog.vue.js +95 -0
  107. package/dist/components/templates/popover-dialog/popover-dialog.vue3.js +5 -0
  108. package/dist/components/templates/sortable-list/sortable-list.vue.js +158 -0
  109. package/dist/components/templates/sortable-list/sortable-list.vue3.js +5 -0
  110. package/dist/components/templates/touch-wrapper/touch-wrapper.vue.js +85 -0
  111. package/dist/components/templates/touch-wrapper/touch-wrapper.vue3.js +5 -0
  112. package/dist/composables/useCameraFilter.js +56 -0
  113. package/dist/composables/useConfetti.js +12 -0
  114. package/dist/composables/useDirections.js +62 -0
  115. package/dist/composables/useFileUpload.js +79 -0
  116. package/dist/composables/useGeocoding.js +85 -0
  117. package/dist/composables/useGeolocation.js +71 -0
  118. package/dist/composables/useSanitize.js +23 -0
  119. package/dist/i18n.d.ts +3 -0
  120. package/dist/index.js +156 -0
  121. package/dist/locales/en.d.ts +3 -0
  122. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  123. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  124. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  125. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  126. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +163 -0
  127. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatLong.js +37 -0
  128. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +11 -0
  129. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/localize.js +161 -0
  130. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/match.js +112 -0
  131. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de.js +20 -0
  132. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  133. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  134. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  135. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  136. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  137. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/en-US.js +20 -0
  138. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +70 -0
  139. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +33 -0
  140. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -0
  141. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/localize.js +121 -0
  142. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr/_lib/match.js +110 -0
  143. package/dist/node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/fr.js +20 -0
  144. package/dist/utilities/helpers.js +79 -0
  145. package/package.json +80 -25
  146. package/dist/ablok-components.es.js +0 -8655
  147. package/dist/components/atoms/base-button/base-button.spec.d.ts +0 -1
  148. package/dist/components/atoms/base-headline/base-headline.spec.d.ts +0 -1
  149. package/dist/components/atoms/base-image/base-image.spec.d.ts +0 -1
  150. package/dist/components/atoms/base-input/base-input.spec.d.ts +0 -1
  151. package/dist/components/atoms/base-paragraph/base-paragraph.spec.d.ts +0 -1
  152. package/dist/components/atoms/canvas-confetti/canvas-confetti.spec.d.ts +0 -1
  153. package/dist/components/atoms/check-group/check-group.spec.d.ts +0 -1
  154. package/dist/components/atoms/custom-html/custom-html.spec.d.ts +0 -1
  155. package/dist/components/atoms/input-checkbox/input-checkbox.spec.d.ts +0 -1
  156. package/dist/components/atoms/input-file/input-file.spec.d.ts +0 -1
  157. package/dist/components/atoms/input-passcode/input-passcode.spec.d.ts +0 -1
  158. package/dist/components/atoms/input-password/input-password.spec.d.ts +0 -1
  159. package/dist/components/atoms/input-textarea/input-textarea.spec.d.ts +0 -1
  160. package/dist/components/atoms/loading-spinner/loading-spinner.spec.d.ts +0 -1
  161. package/dist/components/atoms/radio-group/radio-group.spec.d.ts +0 -1
  162. package/dist/components/atoms/svg-icon/svg-icon.spec.d.ts +0 -1
  163. package/dist/components/atoms/zoom-slider/zoom-slider.spec.d.ts +0 -1
  164. package/dist/components/molecules/accordion/accordion-item.spec.d.ts +0 -1
  165. package/dist/components/molecules/auto-suggest/auto-suggest.spec.d.ts +0 -1
  166. package/dist/components/molecules/base-map/base-map.spec.d.ts +0 -1
  167. package/dist/components/molecules/color-palette/color-palette.spec.d.ts +0 -1
  168. package/dist/components/molecules/dom-renderer/dom-renderer.spec.d.ts +0 -1
  169. package/dist/components/molecules/file-upload/file-upload.spec.d.ts +0 -1
  170. package/dist/components/molecules/hint-system/hint-system.spec.d.ts +0 -1
  171. package/dist/components/molecules/image-crop/image-crop.spec.d.ts +0 -1
  172. package/dist/components/molecules/image-crop-resize/image-crop-resize.spec.d.ts +0 -1
  173. package/dist/components/molecules/image-resize/image-resize.spec.d.ts +0 -1
  174. package/dist/components/molecules/image-upload/image-upload.spec.d.ts +0 -1
  175. package/dist/components/molecules/image-zoom/image-zoom.spec.d.ts +0 -1
  176. package/dist/components/molecules/input-color/input-color.spec.d.ts +0 -1
  177. package/dist/components/molecules/input-datepicker/input-datepicker.spec.d.ts +0 -1
  178. package/dist/components/molecules/input-dropdown/input-dropdown.spec.d.ts +0 -1
  179. package/dist/components/molecules/link-sharing/link-sharing.spec.d.ts +0 -1
  180. package/dist/components/molecules/media-thumbnails/media-thumbnails.spec.d.ts +0 -1
  181. package/dist/components/molecules/popover-notifications/popover-notifications.spec.d.ts +0 -1
  182. package/dist/components/molecules/popover-tooltip/popover-tooltip.spec.d.ts +0 -1
  183. package/dist/components/molecules/progress-steps/progress-steps.spec.d.ts +0 -1
  184. package/dist/components/molecules/qr-code/qr-code.spec.d.ts +0 -1
  185. package/dist/components/molecules/radio-buttons/radio-buttons.spec.d.ts +0 -1
  186. package/dist/components/molecules/rte-editor/rte-editor.spec.d.ts +0 -1
  187. package/dist/components/molecules/select-media/select-media.spec.d.ts +0 -1
  188. package/dist/components/molecules/upload-group/upload-group.spec.d.ts +0 -1
  189. package/dist/components/organisms/asset-uploader/asset-uploader.spec.d.ts +0 -1
  190. package/dist/components/organisms/location-finder/location-finder.spec.d.ts +0 -1
  191. package/dist/components/templates/base-carousel/base-carousel.spec.d.ts +0 -1
  192. package/dist/components/templates/base-form/base-form.spec.d.ts +0 -1
  193. package/dist/components/templates/modal-dialog/modal-dialog.spec.d.ts +0 -1
  194. package/dist/components/templates/popover-dialog/popover-dialog.spec.d.ts +0 -1
  195. package/dist/components/templates/sortable-list/sortable-list.spec.d.ts +0 -1
  196. package/dist/components/templates/touch-wrapper/touch-wrapper.spec.d.ts +0 -1
@@ -0,0 +1,98 @@
1
+ import { defineComponent as b, openBlock as s, createElementBlock as i, toDisplayString as o, createCommentVNode as u, Fragment as k, renderList as v, normalizeClass as C, createElementVNode as S } from "vue";
2
+ const V = {
3
+ class: "location-list",
4
+ "data-testid": "location-list"
5
+ }, $ = {
6
+ key: 0,
7
+ class: "location-list__label"
8
+ }, D = {
9
+ key: 1,
10
+ class: "location-list__items"
11
+ }, L = ["data-testid", "onClick"], N = { class: "location-list__title" }, w = {
12
+ key: 0,
13
+ class: "location-list__description"
14
+ }, K = {
15
+ key: 1,
16
+ class: "location-list__distance"
17
+ }, T = {
18
+ key: 2,
19
+ class: "location-list__empty"
20
+ }, x = /* @__PURE__ */ b({
21
+ __name: "location-list",
22
+ props: {
23
+ modelValue: {
24
+ type: null,
25
+ default: null
26
+ },
27
+ locations: {
28
+ type: Array,
29
+ default: () => []
30
+ },
31
+ label: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ titleKey: {
36
+ type: String,
37
+ default: "title"
38
+ },
39
+ descriptionKey: {
40
+ type: String,
41
+ default: "address"
42
+ },
43
+ emptyText: {
44
+ type: String,
45
+ default: "No locations found."
46
+ },
47
+ showDistance: {
48
+ type: Boolean,
49
+ default: !0
50
+ }
51
+ },
52
+ emits: ["update:modelValue", "select"],
53
+ setup(l, { emit: y }) {
54
+ const r = l, d = y;
55
+ function m(t) {
56
+ return t?.[r.titleKey] || t?.label || t?.name || "Location";
57
+ }
58
+ function _(t) {
59
+ return t?.[r.descriptionKey] || t?.description || t?.subtitle || "";
60
+ }
61
+ function a(t, n = 0) {
62
+ return t ? typeof t != "object" ? t : t.id ?? t.value ?? m(t) ?? n : n;
63
+ }
64
+ function f(t, n = 0) {
65
+ return `${a(t, n)}`.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
66
+ }
67
+ function p(t, n = 0) {
68
+ return a(r.modelValue) === a(t, n);
69
+ }
70
+ function g(t) {
71
+ return Number.isFinite(t) ? t >= 1e3 ? `${(t / 1e3).toFixed(1)} km` : `${Math.round(t)} m` : "—";
72
+ }
73
+ function h(t) {
74
+ d("update:modelValue", t), d("select", t);
75
+ }
76
+ return (t, n) => (s(), i("div", V, [
77
+ l.label ? (s(), i("p", $, o(l.label), 1)) : u("", !0),
78
+ l.locations.length ? (s(), i("div", D, [
79
+ (s(!0), i(k, null, v(l.locations, (e, c) => (s(), i("button", {
80
+ key: a(e, c),
81
+ type: "button",
82
+ class: C(["location-list__item", {
83
+ "location-list__item--active": p(e, c)
84
+ }]),
85
+ "data-testid": `location-option-${f(e, c)}`,
86
+ onClick: (B) => h(e)
87
+ }, [
88
+ S("strong", N, o(m(e)), 1),
89
+ _(e) ? (s(), i("small", w, o(_(e)), 1)) : u("", !0),
90
+ l.showDistance && e?.distance !== void 0 && e?.distance !== null ? (s(), i("small", K, o(g(Number(e.distance))) + " away ", 1)) : u("", !0)
91
+ ], 10, L))), 128))
92
+ ])) : (s(), i("p", T, o(l.emptyText), 1))
93
+ ]));
94
+ }
95
+ });
96
+ export {
97
+ x as default
98
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./location-list.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as o, ref as u, openBlock as d, createElementBlock as r, createVNode as s, withCtx as _, createElementVNode as m, normalizeClass as f } from "vue";
2
+ import h from "../../templates/base-carousel/base-carousel.vue.js";
3
+ /* empty css */
4
+ import b from "../../atoms/base-image/base-image.vue.js";
5
+ /* empty css */
6
+ const v = { class: "media-thumbnails" }, C = ["onClick", "title"], V = { class: "img-container" }, B = /* @__PURE__ */ o({
7
+ __name: "media-thumbnails",
8
+ props: {
9
+ modelValue: {
10
+ default: null
11
+ },
12
+ config: {
13
+ type: Object,
14
+ default: null
15
+ },
16
+ messages: {
17
+ type: Object,
18
+ default: {}
19
+ },
20
+ assets: {
21
+ type: Array,
22
+ default: []
23
+ }
24
+ },
25
+ emits: ["update:modelValue", "select"],
26
+ setup(i, { emit: n }) {
27
+ const l = n, a = u(-1);
28
+ function c(t) {
29
+ a.value = t, l("update:modelValue", t), l("select", t);
30
+ }
31
+ return (t, $) => (d(), r("div", v, [
32
+ s(h, { items: i.assets }, {
33
+ "carousel-item": _((e) => [
34
+ m("button", {
35
+ type: "button",
36
+ class: f(["carousel__item media-thumbnails__thumbnail", e.index === i.modelValue || e.index === a.value ? "is-active" : ""]),
37
+ onClick: (k) => c(e.index),
38
+ title: `${t.$t("thumbnails.thumbnail")} ${e.index + 1}`
39
+ }, [
40
+ m("div", V, [
41
+ s(b, {
42
+ src: e.item.thumbnail || e.item.src,
43
+ class: "img-fluid"
44
+ }, null, 8, ["src"])
45
+ ])
46
+ ], 10, C)
47
+ ]),
48
+ _: 1
49
+ }, 8, ["items"])
50
+ ]));
51
+ }
52
+ });
53
+ export {
54
+ B as default
55
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./media-thumbnails.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,135 @@
1
+ import { defineComponent as B, ref as f, computed as I, watch as C, onMounted as S, onBeforeUnmount as V, openBlock as h, createElementBlock as T, normalizeClass as q, Fragment as z, renderList as H, createBlock as N, normalizeStyle as $, withCtx as E, renderSlot as L, createElementVNode as p, toDisplayString as U, withModifiers as R } from "vue";
2
+ import j from "../../templates/popover-dialog/popover-dialog.vue.js";
3
+ /* empty css */
4
+ import { sanitizeHtml as A } from "../../../composables/useSanitize.js";
5
+ const D = { class: "popover-notification__header d-flex justify-content-between mb-2" }, F = { class: "popover-notification__title" }, Q = ["onClick"], G = ["innerHTML"], J = 240, X = /* @__PURE__ */ B({
6
+ __name: "popover-notifications",
7
+ props: {
8
+ modelValue: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ id: {
13
+ type: String,
14
+ default: () => `popover-notifications-${Math.random().toString(36).substr(2, 9)}`
15
+ },
16
+ items: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ debounceItem: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ closeTimeout: {
25
+ type: Number,
26
+ default: 8e3
27
+ },
28
+ collapsible: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ collapseItems: {
33
+ type: Number,
34
+ default: 3
35
+ }
36
+ },
37
+ setup(y, { expose: g }) {
38
+ const l = y, n = f([]), i = f([]), u = f(null), s = /* @__PURE__ */ new Map(), b = I(
39
+ () => n.value.map((e) => ({
40
+ ...e,
41
+ content: A(e.content || "")
42
+ }))
43
+ ), c = f(!1), k = I(() => c.value ? [...b.value].reverse() : b.value);
44
+ function m(e, o) {
45
+ o === !1 && _(e);
46
+ }
47
+ function r(e) {
48
+ const o = s.get(e);
49
+ o && (clearTimeout(o), s.delete(e));
50
+ }
51
+ function w(e) {
52
+ const o = e.closeTimeout ?? l.closeTimeout;
53
+ r(e.id), o && s.set(e.id, window.setTimeout(() => {
54
+ r(e.id), _(e);
55
+ }, o));
56
+ }
57
+ function _(e) {
58
+ e.visible === !1 && s.has(e.id) || (r(e.id), e.visible = !1, s.set(e.id, window.setTimeout(() => {
59
+ n.value = n.value.filter((o) => o.id !== e.id), s.delete(e.id), n.value.length === 0 && (c.value = !1);
60
+ }, J)));
61
+ }
62
+ function x(e) {
63
+ if (l.collapsible && n.value.length >= l.collapseItems) {
64
+ const t = n.value.shift();
65
+ t && r(t.id);
66
+ }
67
+ l.collapsible && n.value.length + 1 >= l.collapseItems && (c.value = !0), n.value.forEach((t) => {
68
+ t.stackIndex = (t.stackIndex ?? 0) + 1;
69
+ });
70
+ const o = { ...e, closeTimeout: e.closeTimeout ?? l.closeTimeout, visible: !0, stackIndex: 0 };
71
+ n.value.push(o), w(o);
72
+ }
73
+ C(() => l.items, (e, o) => {
74
+ const t = e.filter((v) => !o.some((a) => a.id === v.id));
75
+ t.length && (i.value = [...i.value, ...t], d());
76
+ });
77
+ function d() {
78
+ u.value !== null || !i.value.length || (u.value = window.setTimeout(() => {
79
+ u.value = null;
80
+ const e = i.value.shift();
81
+ e && x(e), i.value.length > 0 && d();
82
+ }, n.value.length ? l.debounceItem : 0));
83
+ }
84
+ function M(e) {
85
+ i.value.push(e), d();
86
+ }
87
+ return S(() => {
88
+ i.value = [...l.items], l.collapsible && i.value.length >= l.collapseItems && (c.value = !0), d();
89
+ }), V(() => {
90
+ u.value !== null && clearTimeout(u.value);
91
+ for (const e of s.values())
92
+ clearTimeout(e);
93
+ s.clear();
94
+ }), g({
95
+ addItem: M
96
+ }), (e, o) => (h(), T("div", {
97
+ class: q(["popover-notifications", { "popover-notifications--stacked": c.value }])
98
+ }, [
99
+ (h(!0), T(z, null, H(k.value, (t, v) => (h(), N(j, {
100
+ key: t.id,
101
+ id: t.id,
102
+ "close-timeout": 0,
103
+ type: "manual",
104
+ class: "popover-notification",
105
+ modelValue: t.visible,
106
+ "onUpdate:modelValue": [(a) => t.visible = a, (a) => m(t, a)],
107
+ style: $({ "--stack-index": t.stackIndex ?? v })
108
+ }, {
109
+ default: E(() => [
110
+ L(e.$slots, "item", {
111
+ item: t,
112
+ removeItem: m
113
+ }, () => [
114
+ p("div", D, [
115
+ p("span", F, U(t.title), 1),
116
+ p("button", {
117
+ type: "button",
118
+ class: "btn btn-close p-0",
119
+ onClick: R((a) => m(t, !1), ["stop"]),
120
+ "aria-label": "Close notification"
121
+ }, null, 8, Q)
122
+ ]),
123
+ p("span", {
124
+ innerHTML: t.content
125
+ }, null, 8, G)
126
+ ])
127
+ ]),
128
+ _: 2
129
+ }, 1032, ["id", "modelValue", "onUpdate:modelValue", "style"]))), 128))
130
+ ], 2));
131
+ }
132
+ });
133
+ export {
134
+ X as default
135
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./popover-notifications.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,134 @@
1
+ import { defineComponent as $, computed as V, ref as p, openBlock as n, createElementBlock as i, createElementVNode as l, renderSlot as d, createVNode as k, normalizeClass as S, withCtx as B, unref as f, createCommentVNode as u, toDisplayString as C } from "vue";
2
+ import z from "../../templates/popover-dialog/popover-dialog.vue.js";
3
+ /* empty css */
4
+ import { useSanitize as m } from "../../../composables/useSanitize.js";
5
+ const L = { class: "popover-tooltip" }, M = ["popovertarget", "disabled", "aria-describedby", "aria-label"], T = { class: "popover-tooltip__content d-flex flex-column" }, H = {
6
+ key: 0,
7
+ class: "popover-tooltip__header d-flex p-3 border-bottom"
8
+ }, N = ["innerHTML"], D = { class: "popover-tooltip__body" }, x = ["innerHTML"], E = {
9
+ key: 1,
10
+ class: "popover-tooltip__footer d-flex p-3 border-top"
11
+ }, j = /* @__PURE__ */ $({
12
+ __name: "popover-tooltip",
13
+ props: {
14
+ modelValue: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ id: {
19
+ type: String,
20
+ default: () => `popover-tooltip-${Math.random().toString(36).substr(2, 9)}`
21
+ },
22
+ size: {
23
+ type: String
24
+ },
25
+ exclusive: {
26
+ type: Boolean,
27
+ default: !0
28
+ },
29
+ header: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ footer: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ title: {
38
+ type: String,
39
+ default: ""
40
+ },
41
+ content: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ hover: {
46
+ type: Boolean,
47
+ default: !0
48
+ },
49
+ hoverDelay: {
50
+ type: Number,
51
+ default: 400
52
+ },
53
+ disabled: {
54
+ type: Boolean,
55
+ default: !1
56
+ },
57
+ ariaLabel: {
58
+ type: String,
59
+ default: ""
60
+ }
61
+ },
62
+ emits: ["update:modelValue", "confirm", "cancel"],
63
+ setup(e, { emit: c }) {
64
+ const r = e, v = c, b = m(() => r.title), y = m(() => r.content), a = V({
65
+ get() {
66
+ return r.modelValue;
67
+ },
68
+ set(t) {
69
+ v("update:modelValue", t);
70
+ }
71
+ }), g = p(), h = p();
72
+ return (t, o) => (n(), i("span", L, [
73
+ l("button", {
74
+ type: "button",
75
+ popovertarget: e.id,
76
+ disabled: e.disabled,
77
+ "aria-describedby": e.id,
78
+ "aria-label": e.ariaLabel || t.$te("common.moreInfo") ? t.$t("common.moreInfo") : void 0,
79
+ ref_key: "trigger",
80
+ ref: g
81
+ }, [
82
+ d(t.$slots, "button", {}, () => [
83
+ o[3] || (o[3] = l("span", { class: "popover-tooltip__trigger" }, " i ", -1))
84
+ ])
85
+ ], 8, M),
86
+ k(z, {
87
+ id: e.id,
88
+ modelValue: a.value,
89
+ "onUpdate:modelValue": o[2] || (o[2] = (s) => a.value = s),
90
+ hover: e.hover,
91
+ "hover-delay": e.hoverDelay,
92
+ ref_key: "dialog",
93
+ ref: h,
94
+ role: "tooltip",
95
+ class: S(e.size ? `popover-tooltip--${e.size}` : "")
96
+ }, {
97
+ default: B(() => [
98
+ l("div", T, [
99
+ e.header ? (n(), i("div", H, [
100
+ e.title ? (n(), i("h5", {
101
+ key: 0,
102
+ class: "popover-tooltip__title",
103
+ innerHTML: f(b)
104
+ }, null, 8, N)) : u("", !0),
105
+ l("button", {
106
+ type: "button",
107
+ class: "btn-close ms-auto border-radius-none",
108
+ "aria-label": "Close",
109
+ onClick: o[0] || (o[0] = (s) => a.value = !1)
110
+ })
111
+ ])) : u("", !0),
112
+ l("div", D, [
113
+ d(t.$slots, "default", {}, () => [
114
+ l("span", { innerHTML: f(y) }, null, 8, x)
115
+ ])
116
+ ]),
117
+ e.footer ? (n(), i("div", E, [
118
+ d(t.$slots, "footer"),
119
+ l("button", {
120
+ type: "button",
121
+ class: "btn ms-auto",
122
+ onClick: o[1] || (o[1] = (s) => a.value = !1)
123
+ }, C(t.$t("common.close")), 1)
124
+ ])) : u("", !0)
125
+ ])
126
+ ]),
127
+ _: 3
128
+ }, 8, ["id", "modelValue", "hover", "hover-delay", "class"])
129
+ ]));
130
+ }
131
+ });
132
+ export {
133
+ j as default
134
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./popover-tooltip.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,84 @@
1
+ import { defineComponent as f, openBlock as o, createElementBlock as a, createElementVNode as l, Fragment as g, renderList as h, normalizeClass as b, renderSlot as n, unref as u } from "vue";
2
+ import { sanitizeHtml as c } from "../../../composables/useSanitize.js";
3
+ const _ = { class: "progress-steps" }, y = { class: "progress-steps__list" }, v = { class: "progress-step" }, k = ["checked", "id", "value", "disabled", "read-only", "required", "onChange"], $ = ["for"], H = ["innerHTML"], L = ["for"], V = ["innerHTML"], B = /* @__PURE__ */ f({
4
+ __name: "progress-steps",
5
+ props: {
6
+ modelValue: {
7
+ type: Number,
8
+ default: 0
9
+ },
10
+ progress: {
11
+ type: Number,
12
+ default: 0
13
+ },
14
+ steps: {
15
+ type: Array
16
+ },
17
+ label: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ reveal: {
22
+ type: Boolean,
23
+ default: !1
24
+ }
25
+ },
26
+ emits: ["update:modelValue", "update:progress"],
27
+ setup(s, { emit: p }) {
28
+ const i = s, d = p;
29
+ function m(r) {
30
+ d("update:modelValue", r), r >= i.progress && d("update:progress", r);
31
+ }
32
+ return (r, C) => (o(), a("div", _, [
33
+ l("ul", y, [
34
+ (o(!0), a(g, null, h(s.steps, (t, e) => (o(), a("li", {
35
+ key: e,
36
+ class: b(["progress-steps__step", {
37
+ "progress-steps__step--disabled": e > s.progress + (s.reveal ? 1 : 0),
38
+ "progress-steps__step--active": e === (s.modelValue || 0)
39
+ }])
40
+ }, [
41
+ n(r.$slots, "step", {}, () => [
42
+ l("div", v, [
43
+ l("input", {
44
+ type: "radio",
45
+ checked: e <= (s.progress || 0),
46
+ id: `step-${e}`,
47
+ name: "step",
48
+ class: "form-check-input",
49
+ value: t.value,
50
+ disabled: t.disabled || e > s.progress + (s.reveal ? 1 : 0),
51
+ "read-only": t.readOnly,
52
+ required: t.required,
53
+ onChange: (M) => m(e)
54
+ }, null, 40, k),
55
+ l("label", {
56
+ for: `step-${e}`
57
+ }, [
58
+ n(r.$slots, "button", { step: t }, () => [
59
+ l("span", {
60
+ class: "btn rounded-circle",
61
+ innerHTML: u(c)(t.text || "")
62
+ }, null, 8, H)
63
+ ])
64
+ ], 8, $),
65
+ l("label", {
66
+ for: `step-${e}`
67
+ }, [
68
+ n(r.$slots, "label", { step: t }, () => [
69
+ l("span", {
70
+ class: "form-check-label",
71
+ innerHTML: u(c)(t.label || "")
72
+ }, null, 8, V)
73
+ ])
74
+ ], 8, L)
75
+ ])
76
+ ])
77
+ ], 2))), 128))
78
+ ])
79
+ ]));
80
+ }
81
+ });
82
+ export {
83
+ B as default
84
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./progress-steps.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,103 @@
1
+ import { defineComponent as p, ref as f, computed as m, watch as g, onMounted as y, openBlock as a, createElementBlock as i } from "vue";
2
+ import l from "qr-code-styling";
3
+ const w = { class: "qr-code" }, h = ["innerHTML"], C = /* @__PURE__ */ p({
4
+ __name: "qr-code",
5
+ props: {
6
+ data: null,
7
+ image: null,
8
+ download: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
12
+ filename: {
13
+ type: String,
14
+ default: "qr-code"
15
+ }
16
+ },
17
+ emits: ["update:dataUrl"],
18
+ setup(s, { expose: c, emit: v }) {
19
+ const e = s, o = f(), t = m(() => ({
20
+ width: 300,
21
+ height: 300,
22
+ type: "canvas",
23
+ data: e.data,
24
+ ...e.image ? { image: e.image } : {},
25
+ margin: 10,
26
+ qrOptions: {
27
+ typeNumber: 0,
28
+ mode: "Byte",
29
+ errorCorrectionLevel: "Q"
30
+ },
31
+ imageOptions: {
32
+ hideBackgroundDots: !0,
33
+ imageSize: 0.4,
34
+ margin: 20,
35
+ crossOrigin: "anonymous"
36
+ },
37
+ dotsOptions: {
38
+ // color: '#21C8C8',
39
+ // gradient: {
40
+ // type: 'linear', // 'radial'
41
+ // rotation: 0,
42
+ // colorStops: [{ offset: 0, color: '#8688B2' }, { offset: 1, color: '#77779C' }]
43
+ // },
44
+ type: "rounded"
45
+ },
46
+ backgroundOptions: {
47
+ color: "#ffffff"
48
+ // gradient: {
49
+ // type: 'linear', // 'radial'
50
+ // rotation: 0,
51
+ // colorStops: [{ offset: 0, color: '#ededff' }, { offset: 1, color: '#e6e7ff' }]
52
+ // },
53
+ },
54
+ cornersSquareOptions: {
55
+ color: "#333333",
56
+ type: "extra-rounded"
57
+ // gradient: {
58
+ // type: 'linear', // 'radial'
59
+ // rotation: 180,
60
+ // colorStops: [{ offset: 0, color: '#25456e' }, { offset: 1, color: '#4267b2' }]
61
+ // },
62
+ },
63
+ cornersDotOptions: {
64
+ color: "#333333",
65
+ type: "dot"
66
+ // gradient: {
67
+ // type: 'linear', // 'radial'
68
+ // rotation: 180,
69
+ // colorStops: [{ offset: 0, color: '#00266e' }, { offset: 1, color: '#4060b3' }]
70
+ // },
71
+ }
72
+ }));
73
+ function r(n = null, u = null) {
74
+ typeof window < "u" && (o.value && (o.value.innerHTML = ""), new l(n || t.value).append(o.value));
75
+ }
76
+ function d() {
77
+ new l({
78
+ ...t.value,
79
+ width: 1200,
80
+ height: 1200
81
+ }).download({ name: e.filename, extension: "png" });
82
+ }
83
+ return g(() => t.value, r, { deep: !0, immediate: !0 }), y(() => {
84
+ typeof window < "u" && r();
85
+ }), c({
86
+ download: d
87
+ }), (n, u) => (a(), i("div", w, [
88
+ e.download ? (a(), i("button", {
89
+ key: 0,
90
+ class: "btn btn-outline-contrast mb-3",
91
+ onClick: d,
92
+ innerHTML: n.$t("qrlink.download")
93
+ }, null, 8, h)) : (a(), i("div", {
94
+ key: 1,
95
+ ref_key: "canvas",
96
+ ref: o
97
+ }, null, 512))
98
+ ]));
99
+ }
100
+ });
101
+ export {
102
+ C as default
103
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./qr-code.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };