@validol4ik/uikit 0.12.4 → 0.12.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/{AppButtonCopy-DkKIzW9L.js → AppButtonCopy-CLZCSKyr.js} +3 -3
- package/dist/{AppButtonCopy-D7F2P8Pu.cjs → AppButtonCopy-XI1HWz10.cjs} +1 -1
- package/dist/{BottomSheet-DBb5RCTS.js → BottomSheet-DqBEWidj.js} +18 -17
- package/dist/BottomSheet-b8Poogb3.cjs +1 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{index-CLm0CauV.js → index-2PkAza2F.js} +252 -262
- package/dist/index-DHlCr_6h.cjs +1 -0
- package/dist/pdf/pdf.cjs +1 -0
- package/dist/pdf/pdf.es.js +196 -0
- package/dist/style.css +1 -1
- package/dist/types/components/media/AppPdfViewer/AppPdfViewer.vue.d.ts +9 -0
- package/dist/types/components/media/AppPdfViewer/types.d.ts +5 -0
- package/dist/types/components/media/AppVideo/AppVideo.vue.d.ts +7 -0
- package/dist/types/components/media/AppVideo/types.d.ts +40 -0
- package/dist/types/components/media/AppVideo/videoMode.d.ts +3 -0
- package/dist/types/components/menu/BottomSheet/BottomSheet.vue.d.ts +2 -2
- package/dist/types/index.d.ts +6 -54
- package/dist/types/pdf.d.ts +3 -0
- package/dist/types/video.d.ts +3 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/dist/video/video.cjs +1 -0
- package/dist/video/video.es.js +246 -0
- package/package.json +43 -1
- package/dist/BottomSheet-BHNOYwU-.cjs +0 -1
- package/dist/index-lSGx0PZ1.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as c, ref as i,
|
|
1
|
+
import { defineComponent as c, ref as i, createBlock as s, openBlock as d, unref as u, withCtx as a, createVNode as f, mergeProps as m, withModifiers as C, renderSlot as y } from "vue";
|
|
2
2
|
import B from "quasar/src/utils/copy-to-clipboard/copy-to-clipboard.js";
|
|
3
3
|
import O from "quasar/src/components/no-ssr/QNoSsr.js";
|
|
4
|
-
import { C as _, A as h } from "./index-
|
|
4
|
+
import { C as _, A as h } from "./index-2PkAza2F.js";
|
|
5
5
|
const t = {
|
|
6
6
|
COPY: "copy_o",
|
|
7
7
|
COPIED: "copied_o"
|
|
@@ -38,7 +38,7 @@ const t = {
|
|
|
38
38
|
console.log(e);
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
return (e, P) => (
|
|
41
|
+
return (e, P) => (d(), s(u(O), null, {
|
|
42
42
|
default: a(() => [
|
|
43
43
|
f(h, m(n, {
|
|
44
44
|
"icon-middle": o.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("quasar/src/utils/copy-to-clipboard/copy-to-clipboard.js"),d=require("quasar/src/components/no-ssr/QNoSsr.js"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("quasar/src/utils/copy-to-clipboard/copy-to-clipboard.js"),d=require("quasar/src/components/no-ssr/QNoSsr.js"),r=require("./index-DHlCr_6h.cjs"),n={COPY:"copy_o",COPIED:"copied_o"},p=e.defineComponent({__name:"AppButtonCopy",props:{text:{},size:{},transparent:{type:Boolean,default:!0},flat:{type:Boolean},rounded:{type:Boolean},color:{default:r.COLORS.INFO},iconLeft:{},iconRight:{},iconMiddle:{},disabled:{type:Boolean},loading:{type:Boolean},to:{},href:{},target:{},submit:{type:Boolean},ariaLabel:{},label:{},download:{},dark:{type:Boolean}},setup(a){const l=a,o=e.ref(n.COPY),c=()=>{o.value=n.COPIED,setTimeout(()=>{o.value=n.COPY},2e3)},i=()=>{s(l.text).then(c).catch(t=>{console.log(t)})};return(t,u)=>(e.openBlock(),e.createBlock(e.unref(d),null,{default:e.withCtx(()=>[e.createVNode(r.AppButton,e.mergeProps(l,{"icon-middle":o.value,onClick:e.withModifiers(i,["prevent"])}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["icon-middle"])]),_:3}))}});exports.default=p;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as R, useModel as X, ref as m, computed as c,
|
|
1
|
+
import { defineComponent as R, mergeModels as k, useModel as X, ref as m, computed as c, createBlock as A, openBlock as p, unref as M, normalizeStyle as S, normalizeClass as P, withCtx as L, createElementVNode as u, createElementBlock as V, createCommentVNode as U, createVNode as C, renderSlot as f, createTextVNode as Q, toDisplayString as q } from "vue";
|
|
2
2
|
import x from "quasar/src/components/dialog/QDialog.js";
|
|
3
3
|
import G from "quasar/src/components/spinner/QSpinner.js";
|
|
4
|
-
import { a as O
|
|
4
|
+
import { a as O } from "./index-2PkAza2F.js";
|
|
5
|
+
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
6
|
const F = { class: "bottom-sheet__header" }, J = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "bottom-sheet__title"
|
|
@@ -10,7 +11,7 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
10
11
|
class: "bottom-sheet__loading"
|
|
11
12
|
}, H = 6, Z = 12, ee = /* @__PURE__ */ R({
|
|
12
13
|
__name: "BottomSheet",
|
|
13
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ k({
|
|
14
15
|
modelValue: { type: Boolean },
|
|
15
16
|
title: {},
|
|
16
17
|
loading: { type: Boolean },
|
|
@@ -24,7 +25,7 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
24
25
|
modelValue: { type: Boolean },
|
|
25
26
|
modelModifiers: {}
|
|
26
27
|
}),
|
|
27
|
-
emits: /* @__PURE__ */
|
|
28
|
+
emits: /* @__PURE__ */ k(["hide", "beforeShow"], ["update:modelValue"]),
|
|
28
29
|
setup(h, { emit: w }) {
|
|
29
30
|
const v = h, d = X(h, "modelValue"), g = w, s = m(null), l = m(!1), n = m(0);
|
|
30
31
|
let b = 0, y = 0, a = null, r = null;
|
|
@@ -81,13 +82,13 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
81
82
|
}, N = () => {
|
|
82
83
|
l.value = !1, a = null, r = null, n.value = 0, g("hide");
|
|
83
84
|
};
|
|
84
|
-
return (e, t) => (p(), A(
|
|
85
|
+
return (e, t) => (p(), A(M(x), {
|
|
85
86
|
modelValue: d.value,
|
|
86
87
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => d.value = o),
|
|
87
88
|
position: "bottom",
|
|
88
89
|
persistent: e.persistent,
|
|
89
|
-
class:
|
|
90
|
-
style:
|
|
90
|
+
class: P(["bottom-sheet-dialog", { "bottom-sheet-dialog_blur": !e.noBlur }]),
|
|
91
|
+
style: S(D.value),
|
|
91
92
|
onHide: N,
|
|
92
93
|
onBeforeShow: t[1] || (t[1] = (o) => g("beforeShow"))
|
|
93
94
|
}, {
|
|
@@ -95,13 +96,13 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
95
96
|
u("div", {
|
|
96
97
|
ref_key: "sheetRef",
|
|
97
98
|
ref: s,
|
|
98
|
-
class:
|
|
99
|
+
class: P(["bottom-sheet", {
|
|
99
100
|
"bottom-sheet_dragging": l.value,
|
|
100
101
|
"bottom-sheet_glass": e.glass,
|
|
101
102
|
"bottom-sheet_splited": e.splitContent,
|
|
102
103
|
"bottom-sheet_dark": e.dark ?? e.$q.dark.isActive
|
|
103
104
|
}]),
|
|
104
|
-
style:
|
|
105
|
+
style: S($.value),
|
|
105
106
|
onPointerdown: T,
|
|
106
107
|
onPointermove: z,
|
|
107
108
|
onPointerup: B,
|
|
@@ -113,11 +114,11 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
113
114
|
u("div", null, [
|
|
114
115
|
f(e.$slots, "header", {}, void 0, !0)
|
|
115
116
|
]),
|
|
116
|
-
e.title ? (p(),
|
|
117
|
-
|
|
117
|
+
e.title ? (p(), V("div", J, [
|
|
118
|
+
Q(q(e.title), 1),
|
|
118
119
|
f(e.$slots, "title", {}, void 0, !0)
|
|
119
|
-
])) :
|
|
120
|
-
|
|
120
|
+
])) : U("", !0),
|
|
121
|
+
C(O, {
|
|
121
122
|
class: "bottom-sheet__close",
|
|
122
123
|
size: "xl",
|
|
123
124
|
glass: e.glass,
|
|
@@ -126,8 +127,8 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
126
127
|
}, null, 8, ["glass", "dark"])
|
|
127
128
|
]),
|
|
128
129
|
u("div", K, [
|
|
129
|
-
e.loading ? (p(),
|
|
130
|
-
|
|
130
|
+
e.loading ? (p(), V("div", W, [
|
|
131
|
+
C(M(G), {
|
|
131
132
|
size: "55px",
|
|
132
133
|
thickness: 3,
|
|
133
134
|
color: "grey-5"
|
|
@@ -139,7 +140,7 @@ const F = { class: "bottom-sheet__header" }, J = {
|
|
|
139
140
|
_: 3
|
|
140
141
|
}, 8, ["modelValue", "persistent", "class", "style"]));
|
|
141
142
|
}
|
|
142
|
-
}),
|
|
143
|
+
}), ae = /* @__PURE__ */ j(ee, [["__scopeId", "data-v-4770265e"]]);
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
ae as default
|
|
145
146
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),H=require("quasar/src/components/dialog/QDialog.js"),E=require("quasar/src/components/spinner/QSpinner.js"),N=require("./index-DHlCr_6h.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$={class:"bottom-sheet__header"},q={key:0,class:"bottom-sheet__title"},z={class:"bottom-sheet__body"},T={key:0,class:"bottom-sheet__loading"},b=6,Y=12,D=t.defineComponent({__name:"BottomSheet",props:t.mergeModels({modelValue:{type:Boolean},title:{},loading:{type:Boolean},persistent:{type:Boolean},maxHeight:{default:"95vh"},glass:{type:Boolean},noBlur:{type:Boolean},splitContent:{type:Boolean},dark:{type:Boolean,default:void 0}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["hide","beforeShow"],["update:modelValue"]),setup(c,{emit:y}){const m=c,d=t.useModel(c,"modelValue"),p=y,r=t.ref(null),n=t.ref(!1),s=t.ref(0);let v=0,f=0,a=null,i=null;const B=t.computed(()=>({maxHeight:`${m.maxHeight} !important`,transform:s.value?`translateY(${s.value}px)`:void 0})),k=t.computed(()=>{var o;const e=((o=r.value)==null?void 0:o.offsetHeight)??0;return e?Math.min(1,s.value/e):0}),_=t.computed(()=>m.noBlur?{}:{"--bs-backdrop-blur":`${Y*(1-k.value)}px`,"--bs-backdrop-blur-dur":n.value?"0s":"0.32s"}),h=()=>d.value=!1,S=e=>{let o=e instanceof HTMLElement?e:null;for(;o&&o!==r.value;){const{overflowY:l}=getComputedStyle(o);if((l==="auto"||l==="scroll")&&o.scrollHeight>o.clientHeight)return o;o=o.parentElement}return null},V=e=>{if(e.button>0)return;const o=e.target;o.closest(".bottom-sheet__close, input, textarea, [contenteditable]")||(a=e.pointerId,v=e.clientX,f=e.clientY,i=S(o),n.value=!1)},M=e=>{var l;if(e.pointerId!==a)return;const o=e.clientY-f;if(!n.value){const u=e.clientX-v;if(Math.abs(o)<b&&Math.abs(u)<b)return;if(o<=0||Math.abs(u)>Math.abs(o)||((i==null?void 0:i.scrollTop)??0)>0){a=null;return}n.value=!0,typeof((l=r.value)==null?void 0:l.setPointerCapture)=="function"&&r.value.setPointerCapture(e.pointerId)}s.value=Math.max(0,o)},P=e=>{n.value&&e.cancelable&&e.preventDefault()},g=e=>{var u;if(e.pointerId!==a||(a=null,!n.value))return;n.value=!1;const o=((u=r.value)==null?void 0:u.offsetHeight)??0,l=Math.min(120,o*.25||120);if(s.value>l){h();return}s.value=0},C=()=>{n.value=!1,a=null,i=null,s.value=0,p("hide")};return(e,o)=>(t.openBlock(),t.createBlock(t.unref(H),{modelValue:d.value,"onUpdate:modelValue":o[0]||(o[0]=l=>d.value=l),position:"bottom",persistent:e.persistent,class:t.normalizeClass(["bottom-sheet-dialog",{"bottom-sheet-dialog_blur":!e.noBlur}]),style:t.normalizeStyle(_.value),onHide:C,onBeforeShow:o[1]||(o[1]=l=>p("beforeShow"))},{default:t.withCtx(()=>[t.createElementVNode("div",{ref_key:"sheetRef",ref:r,class:t.normalizeClass(["bottom-sheet",{"bottom-sheet_dragging":n.value,"bottom-sheet_glass":e.glass,"bottom-sheet_splited":e.splitContent,"bottom-sheet_dark":e.dark??e.$q.dark.isActive}]),style:t.normalizeStyle(B.value),onPointerdown:V,onPointermove:M,onPointerup:g,onPointercancel:g,onTouchmove:P},[t.createElementVNode("div",$,[o[2]||(o[2]=t.createElementVNode("div",{class:"bottom-sheet__grabber"},null,-1)),t.createElementVNode("div",null,[t.renderSlot(e.$slots,"header",{},void 0,!0)]),e.title?(t.openBlock(),t.createElementBlock("div",q,[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"title",{},void 0,!0)])):t.createCommentVNode("",!0),t.createVNode(N.CloseButton,{class:"bottom-sheet__close",size:"xl",glass:e.glass,dark:e.dark,onClick:h},null,8,["glass","dark"])]),t.createElementVNode("div",z,[e.loading?(t.openBlock(),t.createElementBlock("div",T,[t.createVNode(t.unref(E),{size:"55px",thickness:3,color:"grey-5"})])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)])],38)]),_:3},8,["modelValue","persistent","class","style"]))}}),I=w._export_sfc(D,[["__scopeId","data-v-4770265e"]]);exports.default=I;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=(t,o)=>{const c=t.__vccOpts||t;for(const[r,s]of o)c[r]=s;return c};exports._export_sfc=e;
|