yxuse 3.0.26 → 3.0.27
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/lib/_commonjsHelpers.cjs.js +1 -0
- package/lib/_commonjsHelpers.es.js +8 -0
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +12 -10
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +3 -2
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -0
- package/lib/index.cjs2.js +5 -36
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.cjs6.js +32 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.es.js +16 -14
- package/lib/index.es10.js +310 -0
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es2.js +1806 -7140
- package/lib/index.es2.js.gz +0 -0
- package/lib/index.es6.js +5373 -304
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +2 -2
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es9.js +4 -4
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +12 -10
- package/lib/translate.cjs.js +1 -0
- package/lib/translate.es.js +11 -0
- package/package.json +6 -1
- package/types/translate/index.d.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|
package/lib/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs3.js");require("./index.cjs7.js");require("element-plus");require("./index.cjs4.js");require("./index.cjs8.js");require("./index.cjs5.js");require("vue");require("./index.cjs6.js");require("./index.cjs9.js");exports.Toolbar=e.Toolbar;exports.Update=e.Update;exports.YxDialog=e._sfc_main;exports.YxForm=e.form;exports.YxFormV2=e._sfc_main$3;exports.YxIcon=e.index$1;exports.YxSearchForm=e.index;exports.YxTable=e._sfc_main$1;exports.YxUpload=e._sfc_main$2;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js");require("./index.cjs3.js");require("./index.cjs7.js");require("element-plus");require("./index.cjs4.js");require("./index.cjs8.js");require("./index.cjs5.js");require("vue");require("./index.cjs6.js");require("./_commonjsHelpers.cjs.js");require("./index.cjs9.js");require("./index.cjs10.js");exports.Toolbar=e.Toolbar;exports.Update=e.Update;exports.YxDialog=e._sfc_main;exports.YxForm=e.form;exports.YxFormV2=e._sfc_main$3;exports.YxIcon=e.index$1;exports.YxSearchForm=e.index;exports.YxTable=e._sfc_main$1;exports.YxUpload=e._sfc_main$2;
|
package/lib/components.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as
|
|
1
|
+
import { T as c, U as d, _ as F, f as T, d as U, b as f, i as g, a as h, c as n } from "./index.es2.js";
|
|
2
2
|
import "./index.es3.js";
|
|
3
3
|
import "./index.es7.js";
|
|
4
4
|
import "element-plus";
|
|
@@ -7,15 +7,17 @@ import "./index.es8.js";
|
|
|
7
7
|
import "./index.es5.js";
|
|
8
8
|
import "vue";
|
|
9
9
|
import "./index.es6.js";
|
|
10
|
+
import "./_commonjsHelpers.es.js";
|
|
10
11
|
import "./index.es9.js";
|
|
12
|
+
import "./index.es10.js";
|
|
11
13
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
c as Toolbar,
|
|
15
|
+
d as Update,
|
|
16
|
+
F as YxDialog,
|
|
17
|
+
T as YxForm,
|
|
18
|
+
U as YxFormV2,
|
|
19
|
+
f as YxIcon,
|
|
20
|
+
g as YxSearchForm,
|
|
21
|
+
h as YxTable,
|
|
22
|
+
n as YxUpload
|
|
21
23
|
};
|
package/lib/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs10.js");require("vue");require("./_commonjsHelpers.cjs.js");exports.useTime=e.useTime;
|
package/lib/hooks.es.js
CHANGED
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs3.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs3.js"),t=require("./index.cjs4.js"),i=require("./index.cjs5.js"),e=require("./index.cjs2.js"),u=require("./index.cjs6.js");require("./index.cjs9.js");const n=require("./index.cjs10.js");require("./index.cjs7.js");require("element-plus");require("./index.cjs8.js");require("vue");require("./_commonjsHelpers.cjs.js");exports.utils=r.utils2;exports.yxIcon=t.yxIcon2;exports.api=i.api2;exports.BC=e.BC;exports.components=e.components2;exports.default=e.index$2;exports.theme=e.theme2;exports.yxi18n=e.yxi18n2;exports.translate=u.translate2;exports.useTime=n.useTime;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const tt=require("vue"),P=require("./_commonjsHelpers.cjs.js");var B={exports:{}};(function(Y,st){(function(A,k){Y.exports=k()})(P.commonjsGlobal,function(){var A=1e3,k=6e4,z=36e5,I="millisecond",S="second",w="minute",_="hour",M="day",j="week",m="month",E="quarter",y="year",O="date",J="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,K=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},X={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),i=t-e<0,u=n.clone().add(r+(i?-1:1),m);return+(-(r+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:m,y,w:j,d:M,D:O,h:_,m:w,s:S,ms:I,Q:E}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},x="en",D={};D[x]=R;var Z="$isDayjsObject",N=function(s){return s instanceof L||!(!s||!s[Z])},C=function s(n,t,r){var e;if(!n)return x;if(typeof n=="string"){var i=n.toLowerCase();D[i]&&(e=i),t&&(D[i]=t,e=i);var u=n.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(x=e),e||!r&&x},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new L(t)},a=X;a.l=C,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=function(){function s(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(Q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,u=a.p(t),o=function(p,l){var v=a.w(e.$u?Date.UTC(e.$y,l,p):new Date(e.$y,l,p),e);return i?v:v.endOf(M)},c=function(p,l){return a.w(e.toDate()[p].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(l)),e)},h=this.$W,d=this.$M,$=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return i?o(1,0):o(31,11);case m:return i?o(1,d):o(0,d+1);case j:var g=this.$locale().weekStart||0,H=(h<g?h+7:h)-g;return o(i?$-H:$+(6-H),d);case M:case O:return c(b+"Hours",0);case _:return c(b+"Minutes",1);case w:return c(b+"Seconds",2);case S:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[_]=u+"Hours",e[w]=u+"Minutes",e[S]=u+"Seconds",e[I]=u+"Milliseconds",e)[i],c=i===M?this.$D+(r-this.$W):r;if(i===m||i===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var u=a.p(r),o=function(d){var $=f(i);return a.w($.date($.date()+Math.round(d*t)),i)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===j)return o(7);var c=(e={},e[w]=k,e[_]=z,e[S]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,$=e.months,b=e.meridiem,g=function(l,v,T,W){return l&&(l[v]||l(r,i))||T[v].slice(0,W)},H=function(l){return a.s(o%12||12,l,"0")},p=b||function(l,v,T){var W=l<12?"AM":"PM";return T?W.toLowerCase():W};return i.replace(K,function(l,v){return v||function(T){switch(T){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,$,3);case"MMMM":return g($,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return p(o,c,!0);case"A":return p(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}(l)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,$=function(){return a.m(u,c)};switch(o){case y:i=$()/12;break;case m:i=$();break;case E:i=$()/3;break;case j:i=(d-h)/6048e5;break;case M:i=(d-h)/864e5;break;case _:i=d/z;break;case w:i=d/k;break;case S:i=d/A;break;default:i=d}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=C(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s}(),q=L.prototype;return f.prototype=q,[["$ms",I],["$s",S],["$m",w],["$H",_],["$W",M],["$M",m],["$y",y],["$D",O]].forEach(function(s){q[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),f.extend=function(s,n){return s.$i||(s(n,L,f),s.$i=!0),f},f.locale=C,f.isDayjs=N,f.unix=function(s){return f(1e3*s)},f.en=D[x],f.Ls=D,f.p={},f})})(B);var et=B.exports;const nt=P.getDefaultExportFromCjs(et),V=tt.ref("");let U;const G=()=>{const Y=()=>{U=setTimeout(()=>{V.value=nt().format("YYYY-MM-DD HH:mm:ss"),U&&clearTimeout(U),Y()},1e3)};return Y(),{time:V}},rt=Object.freeze(Object.defineProperty({__proto__:null,useTime:G},Symbol.toStringTag,{value:"Module"}));exports.useTime=G;exports.yxHooks=rt;
|