@validol4ik/uikit 0.11.11 → 0.11.13

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 (40) hide show
  1. package/dist/{AppButtonCopy-CAEUEECs.js → AppButtonCopy-WPuHiwae.js} +3 -2
  2. package/dist/AppButtonCopy-eLy6djTq.cjs +1 -0
  3. package/dist/BottomSheet-CnlDmlV-.cjs +1 -0
  4. package/dist/{BottomSheet-z1zJLQP6.js → BottomSheet-znHa17-p.js} +42 -38
  5. package/dist/index-BcNnLkUI.js +1123 -0
  6. package/dist/index-jT4cK_YR.cjs +1 -0
  7. package/dist/kl.woff +0 -0
  8. package/dist/style.css +1 -1
  9. package/dist/types/components/AppIcon/iconsList.d.ts +2 -2
  10. package/dist/types/components/buttons/AppButton/AppButton.vue.d.ts +1 -0
  11. package/dist/types/components/buttons/AppButton/types.d.ts +1 -0
  12. package/dist/types/components/buttons/CloseButton/CloseButton.vue.d.ts +1 -0
  13. package/dist/types/components/buttons/CloseButton/types.d.ts +2 -0
  14. package/dist/types/components/buttons/DropdownButton/DropdownButton.vue.d.ts +1 -0
  15. package/dist/types/components/buttons/DropdownButton/types.d.ts +1 -0
  16. package/dist/types/components/form/AppCodeInput/AppCodeInput.vue.d.ts +1 -0
  17. package/dist/types/components/form/AppCodeInput/types.d.ts +1 -0
  18. package/dist/types/components/form/AppSegment/AppSegment.vue.d.ts +1 -1
  19. package/dist/types/components/form/AppSegment/types.d.ts +3 -2
  20. package/dist/types/components/form/AppSelect/AppSelect.vue.d.ts +1 -0
  21. package/dist/types/components/form/AppSelect/types.d.ts +1 -0
  22. package/dist/types/components/form/AppToggle/AppToggle.vue.d.ts +1 -0
  23. package/dist/types/components/form/AppToggle/types.d.ts +1 -0
  24. package/dist/types/components/menu/BottomSheet/BottomSheet.vue.d.ts +1 -0
  25. package/dist/types/components/menu/BottomSheet/types.d.ts +1 -0
  26. package/dist/types/components/menu/MenuItem/MenuItem.vue.d.ts +3 -1
  27. package/dist/types/components/menu/MenuItem/types.d.ts +1 -0
  28. package/dist/types/components/menu/PopupItem/PopupItem.vue.d.ts +3 -1
  29. package/dist/types/components/menu/PopupItem/types.d.ts +1 -0
  30. package/dist/types/components/menu/SystemMenu.vue.d.ts +6 -1
  31. package/dist/types/components/navigation/AppPagination/AppPagination.vue.d.ts +1 -0
  32. package/dist/types/components/navigation/AppPagination/types.d.ts +1 -0
  33. package/dist/types/index.d.ts +6 -0
  34. package/dist/uikit.cjs +1 -1
  35. package/dist/uikit.es.js +1 -1
  36. package/package.json +1 -1
  37. package/dist/AppButtonCopy-Du8bRJpY.cjs +0 -1
  38. package/dist/BottomSheet-CIDbGivE.cjs +0 -1
  39. package/dist/index-CBlxoTW0.cjs +0 -1
  40. package/dist/index-d1_xAcWk.js +0 -1068
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, ref as i, openBlock as s, createBlock 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-d1_xAcWk.js";
4
+ import { C as _, A as h } from "./index-BcNnLkUI.js";
5
5
  const t = {
6
6
  COPY: "copy_o",
7
7
  COPIED: "copied_o"
@@ -25,7 +25,8 @@ const t = {
25
25
  submit: { type: Boolean },
26
26
  ariaLabel: {},
27
27
  label: {},
28
- download: {}
28
+ download: {},
29
+ dark: { type: Boolean }
29
30
  },
30
31
  setup(l) {
31
32
  const n = l, o = i(t.COPY), r = () => {
@@ -0,0 +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-jT4cK_YR.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;
@@ -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"),N=require("quasar/src/components/spinner/QSpinner.js"),y=require("./index-jT4cK_YR.cjs"),w={class:"bottom-sheet__header"},$={key:0,class:"bottom-sheet__title"},z={class:"bottom-sheet__body"},T={key:0,class:"bottom-sheet__loading"},b=6,Y=12,q=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:B}){const m=c,d=t.useModel(c,"modelValue"),p=B,r=t.ref(null),n=t.ref(!1),s=t.ref(0);let v=0,f=0,a=null,i=null;const k=t.computed(()=>({maxHeight:`${m.maxHeight} !important`,transform:s.value?`translateY(${s.value}px)`:void 0})),S=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-S.value)}px`,"--bs-backdrop-blur-dur":n.value?"0s":"0.32s"}),h=()=>d.value=!1,V=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},M=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=V(o),n.value=!1)},P=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)},C=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},E=()=>{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:E,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(k.value),onPointerdown:M,onPointermove:P,onPointerup:g,onPointercancel:g,onTouchmove:C},[t.createElementVNode("div",w,[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",$,[t.createTextVNode(t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"title",{},void 0,!0)])):t.createCommentVNode("",!0),t.createVNode(y.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(N),{size:"55px",thickness:3,color:"grey-5"})])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)])],38)]),_:3},8,["modelValue","persistent","class","style"]))}}),D=y._export_sfc(q,[["__scopeId","data-v-4770265e"]]);exports.default=D;
@@ -1,14 +1,14 @@
1
- import { defineComponent as N, useModel as R, ref as c, computed as m, openBlock as p, createBlock as X, unref as M, normalizeStyle as S, normalizeClass as P, withCtx as L, createElementVNode as u, renderSlot as f, createElementBlock as V, createTextVNode as U, toDisplayString as A, createCommentVNode as Q, createVNode as k, mergeModels as C } from "vue";
2
- import G from "quasar/src/components/dialog/QDialog.js";
3
- import O from "quasar/src/components/spinner/QSpinner.js";
4
- import { a as j, _ as q } from "./index-d1_xAcWk.js";
1
+ import { defineComponent as R, useModel as X, ref as m, computed as c, openBlock as p, createBlock as A, unref as k, normalizeStyle as M, normalizeClass as S, withCtx as L, createElementVNode as u, renderSlot as f, createElementBlock as P, createTextVNode as U, toDisplayString as Q, createCommentVNode as q, createVNode as V, mergeModels as C } from "vue";
2
+ import x from "quasar/src/components/dialog/QDialog.js";
3
+ import G from "quasar/src/components/spinner/QSpinner.js";
4
+ import { a as O, _ as j } from "./index-BcNnLkUI.js";
5
5
  const F = { class: "bottom-sheet__header" }, J = {
6
6
  key: 0,
7
7
  class: "bottom-sheet__title"
8
8
  }, K = { class: "bottom-sheet__body" }, W = {
9
9
  key: 0,
10
10
  class: "bottom-sheet__loading"
11
- }, H = 6, Z = 12, ee = /* @__PURE__ */ N({
11
+ }, H = 6, Z = 12, ee = /* @__PURE__ */ R({
12
12
  __name: "BottomSheet",
13
13
  props: /* @__PURE__ */ C({
14
14
  modelValue: { type: Boolean },
@@ -18,27 +18,28 @@ const F = { class: "bottom-sheet__header" }, J = {
18
18
  maxHeight: { default: "95vh" },
19
19
  glass: { type: Boolean },
20
20
  noBlur: { type: Boolean },
21
- splitContent: { type: Boolean }
21
+ splitContent: { type: Boolean },
22
+ dark: { type: Boolean, default: void 0 }
22
23
  }, {
23
24
  modelValue: { type: Boolean },
24
25
  modelModifiers: {}
25
26
  }),
26
27
  emits: /* @__PURE__ */ C(["hide", "beforeShow"], ["update:modelValue"]),
27
28
  setup(h, { emit: w }) {
28
- const v = h, d = R(h, "modelValue"), b = w, s = c(null), l = c(!1), n = c(0);
29
- let g = 0, y = 0, a = null, r = null;
30
- const $ = m(() => ({
29
+ const v = h, d = X(h, "modelValue"), g = w, s = m(null), l = m(!1), n = m(0);
30
+ let b = 0, y = 0, a = null, r = null;
31
+ const $ = c(() => ({
31
32
  // `!important` beats Quasar's `.q-ios-padding` max-height rule
32
33
  maxHeight: `${v.maxHeight} !important`,
33
34
  transform: n.value ? `translateY(${n.value}px)` : void 0
34
- })), Y = m(() => {
35
+ })), Y = c(() => {
35
36
  var t;
36
37
  const e = ((t = s.value) == null ? void 0 : t.offsetHeight) ?? 0;
37
38
  return e ? Math.min(1, n.value / e) : 0;
38
- }), x = m(() => v.noBlur ? {} : {
39
+ }), D = c(() => v.noBlur ? {} : {
39
40
  "--bs-backdrop-blur": `${Z * (1 - Y.value)}px`,
40
41
  "--bs-backdrop-blur-dur": l.value ? "0s" : "0.32s"
41
- }), _ = () => d.value = !1, D = (e) => {
42
+ }), _ = () => d.value = !1, I = (e) => {
42
43
  let t = e instanceof HTMLElement ? e : null;
43
44
  for (; t && t !== s.value; ) {
44
45
  const { overflowY: o } = getComputedStyle(t);
@@ -47,16 +48,16 @@ const F = { class: "bottom-sheet__header" }, J = {
47
48
  t = t.parentElement;
48
49
  }
49
50
  return null;
50
- }, I = (e) => {
51
+ }, T = (e) => {
51
52
  if (e.button > 0) return;
52
53
  const t = e.target;
53
- t.closest(".bottom-sheet__close, input, textarea, [contenteditable]") || (a = e.pointerId, g = e.clientX, y = e.clientY, r = D(t), l.value = !1);
54
- }, T = (e) => {
54
+ t.closest(".bottom-sheet__close, input, textarea, [contenteditable]") || (a = e.pointerId, b = e.clientX, y = e.clientY, r = I(t), l.value = !1);
55
+ }, z = (e) => {
55
56
  var o;
56
57
  if (e.pointerId !== a) return;
57
58
  const t = e.clientY - y;
58
59
  if (!l.value) {
59
- const i = e.clientX - g;
60
+ const i = e.clientX - b;
60
61
  if (Math.abs(t) < H && Math.abs(i) < H) return;
61
62
  if (t <= 0 || Math.abs(i) > Math.abs(t) || ((r == null ? void 0 : r.scrollTop) ?? 0) > 0) {
62
63
  a = null;
@@ -65,7 +66,7 @@ const F = { class: "bottom-sheet__header" }, J = {
65
66
  l.value = !0, typeof ((o = s.value) == null ? void 0 : o.setPointerCapture) == "function" && s.value.setPointerCapture(e.pointerId);
66
67
  }
67
68
  n.value = Math.max(0, t);
68
- }, z = (e) => {
69
+ }, E = (e) => {
69
70
  l.value && e.cancelable && e.preventDefault();
70
71
  }, B = (e) => {
71
72
  var i;
@@ -77,53 +78,56 @@ const F = { class: "bottom-sheet__header" }, J = {
77
78
  return;
78
79
  }
79
80
  n.value = 0;
80
- }, E = () => {
81
- l.value = !1, a = null, r = null, n.value = 0, b("hide");
81
+ }, N = () => {
82
+ l.value = !1, a = null, r = null, n.value = 0, g("hide");
82
83
  };
83
- return (e, t) => (p(), X(M(G), {
84
+ return (e, t) => (p(), A(k(x), {
84
85
  modelValue: d.value,
85
86
  "onUpdate:modelValue": t[0] || (t[0] = (o) => d.value = o),
86
87
  position: "bottom",
87
88
  persistent: e.persistent,
88
- class: P(["bottom-sheet-dialog", { "bottom-sheet-dialog_blur": !e.noBlur }]),
89
- style: S(x.value),
90
- onHide: E,
91
- onBeforeShow: t[1] || (t[1] = (o) => b("beforeShow"))
89
+ class: S(["bottom-sheet-dialog", { "bottom-sheet-dialog_blur": !e.noBlur }]),
90
+ style: M(D.value),
91
+ onHide: N,
92
+ onBeforeShow: t[1] || (t[1] = (o) => g("beforeShow"))
92
93
  }, {
93
94
  default: L(() => [
94
95
  u("div", {
95
96
  ref_key: "sheetRef",
96
97
  ref: s,
97
- class: P(["bottom-sheet", {
98
+ class: S(["bottom-sheet", {
98
99
  "bottom-sheet_dragging": l.value,
99
100
  "bottom-sheet_glass": e.glass,
100
- "bottom-sheet_splited": e.splitContent
101
+ "bottom-sheet_splited": e.splitContent,
102
+ "bottom-sheet_dark": e.dark ?? e.$q.dark.isActive
101
103
  }]),
102
- style: S($.value),
103
- onPointerdown: I,
104
- onPointermove: T,
104
+ style: M($.value),
105
+ onPointerdown: T,
106
+ onPointermove: z,
105
107
  onPointerup: B,
106
108
  onPointercancel: B,
107
- onTouchmove: z
109
+ onTouchmove: E
108
110
  }, [
109
111
  u("div", F, [
110
112
  t[2] || (t[2] = u("div", { class: "bottom-sheet__grabber" }, null, -1)),
111
113
  u("div", null, [
112
114
  f(e.$slots, "header", {}, void 0, !0)
113
115
  ]),
114
- e.title ? (p(), V("div", J, [
115
- U(A(e.title), 1),
116
+ e.title ? (p(), P("div", J, [
117
+ U(Q(e.title), 1),
116
118
  f(e.$slots, "title", {}, void 0, !0)
117
- ])) : Q("", !0),
118
- k(j, {
119
+ ])) : q("", !0),
120
+ V(O, {
119
121
  class: "bottom-sheet__close",
120
122
  size: "xl",
123
+ glass: e.glass,
124
+ dark: e.dark,
121
125
  onClick: _
122
- })
126
+ }, null, 8, ["glass", "dark"])
123
127
  ]),
124
128
  u("div", K, [
125
- e.loading ? (p(), V("div", W, [
126
- k(M(O), {
129
+ e.loading ? (p(), P("div", W, [
130
+ V(k(G), {
127
131
  size: "55px",
128
132
  thickness: 3,
129
133
  color: "grey-5"
@@ -135,7 +139,7 @@ const F = { class: "bottom-sheet__header" }, J = {
135
139
  _: 3
136
140
  }, 8, ["modelValue", "persistent", "class", "style"]));
137
141
  }
138
- }), se = /* @__PURE__ */ q(ee, [["__scopeId", "data-v-e565b67f"]]);
142
+ }), se = /* @__PURE__ */ j(ee, [["__scopeId", "data-v-4770265e"]]);
139
143
  export {
140
144
  se as default
141
145
  };