prlg-ui 1.7.44 → 1.7.46

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/icons.d.ts CHANGED
@@ -35,6 +35,8 @@ export declare const BriefcaseIcon: DefineComponent< {}, {}, {}, {}, {}, Comp
35
35
 
36
36
  export declare const CalendarIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
37
37
 
38
+ export declare const CameraIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
39
+
38
40
  export declare const CarIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
39
41
 
40
42
  export declare const CarSearchIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
package/dist/index.d.ts CHANGED
@@ -228,9 +228,12 @@ declare type __VLS_Props_13 = {
228
228
  cols?: number;
229
229
  maxHeight?: number;
230
230
  error?: boolean;
231
+ errorText?: string;
232
+ smallText?: string;
231
233
  inputId?: string;
232
234
  size?: 'default' | 'small' | 'large';
233
235
  maxlength?: number;
236
+ resizable?: boolean;
234
237
  };
235
238
 
236
239
  declare type __VLS_Props_14 = {
@@ -0,0 +1 @@
1
+ "use strict";const d=require("vue"),s=new WeakMap;function f(t){const n=d.unref(t);return n?.$el??n}function p(t){return typeof t=="string"?document.querySelector(t):f(t)}function g(t,n,r={}){const e=p(t);if(!e)return()=>{};const u=s.get(e);u&&(u(),s.delete(e));const i=c=>{const a=c.target instanceof Node?c.target:null;if(!a)return;const m=(d.toValue(r.ignore)??[]).map(o=>typeof o=="string"?document.querySelector(o):f(o)).filter(o=>o!=null);e.contains(a)||m.some(o=>o.contains(a))||n(c)};document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("touchstart",i,{capture:!0});const l=()=>{document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("touchstart",i,{capture:!0}),s.delete(e)};return s.set(e,l),l}const v=t=>{const n=["b","kb","mb","gb","tb"],r=t.match(/[a-zA-Z]+/)?.[0]||"b",e=parseFloat(t.replace(r,"")),u=n.indexOf(r.toLowerCase());return e*Math.pow(1024,u)};function w(t){if(isNaN(t)||t<0)return"0 Б";const n=["Б","КБ","МБ","ГБ","ТБ"];let r=0,e=t;for(;e>=1024&&r<n.length-1;)e=e/1024,r++;return`${e%1===0?e:e.toFixed(1)} ${n[r]}`}exports.formatFileSize=w;exports.onClickOutside=g;exports.parseFileSize=v;
@@ -0,0 +1,44 @@
1
+ import { toValue as m, unref as p } from "vue";
2
+ const i = /* @__PURE__ */ new WeakMap();
3
+ function d(t) {
4
+ const n = p(t);
5
+ return n?.$el ?? n;
6
+ }
7
+ function g(t) {
8
+ return typeof t == "string" ? document.querySelector(t) : d(t);
9
+ }
10
+ function E(t, n, r = {}) {
11
+ const e = g(t);
12
+ if (!e) return () => {
13
+ };
14
+ const u = i.get(e);
15
+ u && (u(), i.delete(e));
16
+ const s = (c) => {
17
+ const a = c.target instanceof Node ? c.target : null;
18
+ if (!a) return;
19
+ const f = (m(r.ignore) ?? []).map((o) => typeof o == "string" ? document.querySelector(o) : d(o)).filter((o) => o != null);
20
+ e.contains(a) || f.some((o) => o.contains(a)) || n(c);
21
+ };
22
+ document.addEventListener("mousedown", s, { capture: !0 }), document.addEventListener("touchstart", s, { capture: !0 });
23
+ const l = () => {
24
+ document.removeEventListener("mousedown", s, { capture: !0 }), document.removeEventListener("touchstart", s, { capture: !0 }), i.delete(e);
25
+ };
26
+ return i.set(e, l), l;
27
+ }
28
+ const h = (t) => {
29
+ const n = ["b", "kb", "mb", "gb", "tb"], r = t.match(/[a-zA-Z]+/)?.[0] || "b", e = parseFloat(t.replace(r, "")), u = n.indexOf(r.toLowerCase());
30
+ return e * Math.pow(1024, u);
31
+ };
32
+ function x(t) {
33
+ if (isNaN(t) || t < 0) return "0 Б";
34
+ const n = ["Б", "КБ", "МБ", "ГБ", "ТБ"];
35
+ let r = 0, e = t;
36
+ for (; e >= 1024 && r < n.length - 1; )
37
+ e = e / 1024, r++;
38
+ return `${e % 1 === 0 ? e : e.toFixed(1)} ${n[r]}`;
39
+ }
40
+ export {
41
+ x as f,
42
+ E as o,
43
+ h as p
44
+ };