@hotelinking/ui 5.39.2 → 5.39.5

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/ui.es.js CHANGED
@@ -2414,8 +2414,8 @@ const Jd = Vo(Od, [["render", function(l2, r2, s2, d2, u2, c2) {
2414
2414
  } }), Ou = { class: "uiGallery" }, Mu = { key: 1, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Du = { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, Eu = ["src"], Tu = ["onClick"], Iu = { class: "pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900" }, _u = { class: "flex items-center justify-between" }, ju = { class: "pointer-events-none block text-sm font-medium text-gray-500" }, Pu = { key: 2, role: "list", class: "grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6" }, Ru = [i("div", { class: "group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4" }, null, -1), i("p", { class: "animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2" }, null, -1)], Bu = { name: "uiGallery" }, Au = Object.assign(Bu, { props: { galleryId: String, gallery: Array, loading: Boolean, literals: Object }, setup(l2, { emit: n2 }) {
2415
2415
  const r2 = n2, d2 = s(false);
2416
2416
  return (n3, s2) => (e(), a("div", Ou, [l2.loading ? R("", true) : (e(), t(fo, { key: 0, open: d2.value, modalName: "deleteAllImagesModal", title: l2.literals.modalTitle, type: "warning", actions: [{ value: "close", name: l2.literals.closeAction }, { value: `deleteGallery_${l2.galleryId}`, name: l2.literals.deleteAction }], onModalAction: s2[0] || (s2[0] = (e2) => {
2417
+ return t2 = e2, d2.value = false, void r2("modalAction", t2);
2417
2418
  var t2;
2418
- "close" !== (t2 = e2).action ? r2("modalAction", t2) : d2.value = false;
2419
2419
  }) }, { default: T(() => [i("p", null, _(l2.literals.modalText), 1)]), _: 1 }, 8, ["open", "title", "actions"])), l2.loading ? (e(), a("ul", Pu, [(e(), a(k, null, P(4, (e2) => i("li", null, Ru)), 64))])) : (e(), a("ul", Mu, [(e(true), a(k, null, P(l2.gallery, (t2) => (e(), a("li", { key: t2.source, class: "relative" }, [i("div", Du, [i("img", { src: t2.source, alt: "", class: "pointer-events-none object-cover group-hover:opacity-75" }, null, 8, Eu), i("button", { type: "button", class: "absolute inset-0 focus:outline-none", onClick: (e2) => n3.$emit("imgClicked", t2) }, null, 8, Tu)]), i("p", Iu, _(t2.title), 1), i("div", _u, [i("p", ju, _(t2.size), 1), o(J, { class: "cursor-pointer", icon: u(kn), color: "red", loading: false, onClick: (e2) => r2("deleteImage", t2) }, null, 8, ["icon", "onClick"])])]))), 128))])), l2.gallery.length > 0 && !l2.loading ? (e(), t(ee, { key: 3, onClick: s2[1] || (s2[1] = (e2) => d2.value = true), class: "mt-8", loading: false, color: "red", size: "small" }, { default: T(() => [I(_(l2.literals.deleteAllImages), 1)]), _: 1 })) : R("", true)]));
2420
2420
  } }), Lu = { class: "cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400" }, Fu = { class: "flex flex-row items-center w-full" }, Nu = { class: "content text-sm grow" }, zu = { class: "font-bold" }, $u = { key: 0 }, Vu = { class: "font-bold text-gray-400" }, Hu = { key: 1, class: "animate-pulse" }, Yu = [z('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>', 5)], qu = { name: "uiDragAndDrop" }, Uu = Object.assign(qu, { props: { elements: { type: Array, required: true }, loading: true }, setup(l2) {
2421
2421
  const n2 = l2;