@ozdao/prometheus-framework 0.2.328 → 0.2.329

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/dist/Media-CWhzBol_.mjs +111 -0
  2. package/dist/Media-fFP2RH4B.js +1 -0
  3. package/dist/main-E34nRzn4.mjs +13068 -0
  4. package/dist/main-QhB2uZ6b.js +92 -0
  5. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +93 -0
  6. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs.map +1 -1
  7. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +94 -1
  8. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js.map +1 -1
  9. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +0 -93
  10. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
  11. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -94
  12. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js.map +1 -1
  13. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  18. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
  19. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
  21. package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/events/components/sections/EventsHot.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +2 -2
  24. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
  25. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +2 -2
  26. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +1 -1
  27. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +2 -2
  30. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs.map +1 -1
  31. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +1 -1
  32. package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js.map +1 -1
  33. package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar2.vue.cjs +37 -0
  34. package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar2.vue.cjs.map +1 -0
  35. package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar2.vue.js +37 -0
  36. package/dist/prometheus-framework/src/modules/icons/entities/IconCalendar2.vue.js.map +1 -0
  37. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +2 -2
  38. package/dist/prometheus-framework/src/modules/icons/icons.client.js +1 -1
  39. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +637 -637
  42. package/dist/prometheus-framework/src/modules/pages/pages.client.js +637 -637
  43. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  51. package/dist/prometheus-framework.cjs.js +1 -1
  52. package/dist/prometheus-framework.es.js +1 -1
  53. package/package.json +1 -1
  54. package/src/modules/events/components/pages/Event.vue +1 -1
  55. package/src/modules/events/components/sections/HeroEvent.vue +1 -1
  56. package/src/modules/globals/views/components/elements/ButtonDate.vue +1 -1
  57. package/src/modules/icons/entities/IconCalendar2.vue +24 -0
  58. package/src/modules/icons/icons.client.js +1 -1
  59. package/src/modules/icons/entities/IconCalendar.vue +0 -24
@@ -0,0 +1,111 @@
1
+ import { ref as u, computed as m, onMounted as N, onUnmounted as P, openBlock as c, createElementBlock as d, mergeProps as V, createElementVNode as S, createCommentVNode as f, toDisplayString as q } from "vue";
2
+ import { _ as z } from "./main-E34nRzn4.mjs";
3
+ const D = { class: "media-container" }, T = ["src", "data-src", "alt"], U = ["controls", "loop", "muted", "autoplay", "playsinline", "preload"], _ = ["src", "type"], $ = {
4
+ key: 2,
5
+ class: "media-placeholder"
6
+ }, A = {
7
+ key: 3,
8
+ class: "media-error"
9
+ }, F = {
10
+ __name: "Media",
11
+ props: {
12
+ url: {
13
+ type: String,
14
+ required: !0
15
+ },
16
+ options: {
17
+ type: Object,
18
+ default: () => ({
19
+ muted: !0,
20
+ loop: !0,
21
+ playsinline: !0,
22
+ preload: "metadata"
23
+ // 'none' | 'metadata' | 'auto'
24
+ })
25
+ }
26
+ },
27
+ setup(e) {
28
+ const g = e, a = u(null), y = u(null), l = u(!1), v = u(null), h = u(!1);
29
+ let s = null, E = !1;
30
+ const p = m(() => {
31
+ var t, n, o;
32
+ return (o = (n = (t = g.url) == null ? void 0 : t.split(".")) == null ? void 0 : n.pop()) == null ? void 0 : o.toLowerCase();
33
+ }), b = m(() => ["jpg", "jpeg", "png", "gif", "webp", "svg", "avif"].includes(p.value)), x = m(() => ["mp4", "webm", "ogg"].includes(p.value)), j = m(() => ({
34
+ mp4: "video/mp4",
35
+ webm: "video/webm",
36
+ ogg: "video/ogg"
37
+ })[p.value] || "");
38
+ function k() {
39
+ l.value = !0;
40
+ }
41
+ function C(t) {
42
+ v.value = `Ошибка загрузки медиа: ${t.message}`, l.value = !1;
43
+ }
44
+ async function O() {
45
+ if (a.value)
46
+ try {
47
+ a.value.paused && !E && (await a.value.play(), E = !0);
48
+ } catch (t) {
49
+ C(t);
50
+ }
51
+ }
52
+ function B() {
53
+ const t = {
54
+ root: null,
55
+ rootMargin: "50px",
56
+ threshold: 0.1
57
+ };
58
+ s = new IntersectionObserver((o) => {
59
+ o.forEach((i) => {
60
+ var r;
61
+ h.value = i.isIntersecting, i.isIntersecting && (x.value && ((r = g.options) != null && r.autoplay) && O(), s.disconnect());
62
+ });
63
+ }, t);
64
+ const n = b.value ? y.value : a.value;
65
+ n && s.observe(n);
66
+ }
67
+ return N(() => {
68
+ B();
69
+ }), P(() => {
70
+ s && s.disconnect();
71
+ }), (t, n) => {
72
+ var o, i, r, I, w, L, M;
73
+ return c(), d("div", D, [
74
+ b.value ? (c(), d("img", V({
75
+ key: 0,
76
+ src: h.value ? e.url : "",
77
+ "data-src": e.url,
78
+ alt: ((o = e.options) == null ? void 0 : o.alt) || "Image",
79
+ class: ["media-item", { loading: !l.value }],
80
+ loading: "lazy",
81
+ onLoad: k
82
+ }, e.options, {
83
+ ref_key: "imageElement",
84
+ ref: y
85
+ }), null, 16, T)) : x.value ? (c(), d("video", V({
86
+ key: 1,
87
+ ref_key: "videoElement",
88
+ ref: a,
89
+ class: [{ loading: !l.value }, "media-item"],
90
+ controls: !((i = e.options) != null && i.hideControls),
91
+ loop: ((r = e.options) == null ? void 0 : r.loop) !== !1,
92
+ muted: ((I = e.options) == null ? void 0 : I.muted) !== !1,
93
+ autoplay: (w = e.options) == null ? void 0 : w.autoplay,
94
+ playsinline: ((L = e.options) == null ? void 0 : L.playsinline) !== !1,
95
+ preload: ((M = e.options) == null ? void 0 : M.preload) || "metadata",
96
+ onLoadeddata: k
97
+ }, e.options), [
98
+ S("source", {
99
+ src: e.url,
100
+ type: j.value
101
+ }, null, 8, _)
102
+ ], 16, U)) : f("", !0),
103
+ l.value ? f("", !0) : (c(), d("div", $, " Загрузка... ")),
104
+ v.value ? (c(), d("div", A, q(v.value), 1)) : f("", !0)
105
+ ]);
106
+ };
107
+ }
108
+ }, J = /* @__PURE__ */ z(F, [["__scopeId", "data-v-94bcf726"]]);
109
+ export {
110
+ J as default
111
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./main-QhB2uZ6b.js"),L={class:"media-container"},M=["src","data-src","alt"],j=["controls","loop","muted","autoplay","playsinline","preload"],N=["src","type"],O={key:2,class:"media-placeholder"},P={key:3,class:"media-error"},S={__name:"Media",props:{url:{type:String,required:!0},options:{type:Object,default:()=>({muted:!0,loop:!0,playsinline:!0,preload:"metadata"})}},setup(t){const m=t,a=e.ref(null),p=e.ref(null),s=e.ref(!1),u=e.ref(null),v=e.ref(!1);let i=null,f=!1;const d=e.computed(()=>{var o,l,n;return(n=(l=(o=m.url)==null?void 0:o.split("."))==null?void 0:l.pop())==null?void 0:n.toLowerCase()}),g=e.computed(()=>["jpg","jpeg","png","gif","webp","svg","avif"].includes(d.value)),y=e.computed(()=>["mp4","webm","ogg"].includes(d.value)),x=e.computed(()=>({mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg"})[d.value]||"");function E(){s.value=!0}function I(o){u.value=`Ошибка загрузки медиа: ${o.message}`,s.value=!1}async function w(){if(a.value)try{a.value.paused&&!f&&(await a.value.play(),f=!0)}catch(o){I(o)}}function V(){const o={root:null,rootMargin:"50px",threshold:.1};i=new IntersectionObserver(n=>{n.forEach(r=>{var c;v.value=r.isIntersecting,r.isIntersecting&&(y.value&&((c=m.options)!=null&&c.autoplay)&&w(),i.disconnect())})},o);const l=g.value?p.value:a.value;l&&i.observe(l)}return e.onMounted(()=>{V()}),e.onUnmounted(()=>{i&&i.disconnect()}),(o,l)=>{var n,r,c,k,h,b,B;return e.openBlock(),e.createElementBlock("div",L,[g.value?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0,src:v.value?t.url:"","data-src":t.url,alt:((n=t.options)==null?void 0:n.alt)||"Image",class:["media-item",{loading:!s.value}],loading:"lazy",onLoad:E},t.options,{ref_key:"imageElement",ref:p}),null,16,M)):y.value?(e.openBlock(),e.createElementBlock("video",e.mergeProps({key:1,ref_key:"videoElement",ref:a,class:[{loading:!s.value},"media-item"],controls:!((r=t.options)!=null&&r.hideControls),loop:((c=t.options)==null?void 0:c.loop)!==!1,muted:((k=t.options)==null?void 0:k.muted)!==!1,autoplay:(h=t.options)==null?void 0:h.autoplay,playsinline:((b=t.options)==null?void 0:b.playsinline)!==!1,preload:((B=t.options)==null?void 0:B.preload)||"metadata",onLoadeddata:E},t.options),[e.createElementVNode("source",{src:t.url,type:x.value},null,8,N)],16,j)):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",O," Загрузка... ")),u.value?(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])}}},q=C._export_sfc(S,[["__scopeId","data-v-94bcf726"]]);exports.default=q;