@vtj/materials 0.18.26 → 0.18.28
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/assets/antdv/index.umd.js +3 -3
- package/dist/assets/charts/index.umd.js +3 -3
- package/dist/assets/element/index.umd.js +4 -4
- package/dist/assets/icons/index.umd.js +3 -3
- package/dist/assets/ui/index.umd.js +3 -3
- package/dist/assets/uni-h5/index.umd.js +3 -3
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +5 -5
- package/dist/deps/@vtj/charts/index.umd.js +3 -3
- package/dist/deps/@vtj/icons/index.umd.js +3 -3
- package/dist/deps/@vtj/ui/index.umd.js +11 -4
- package/dist/deps/@vtj/utils/index.umd.js +43 -5
- package/dist/deps/@vueuse/shared/index.iife.min.js +1 -1
- package/dist/deps/ant-design-vue/antd.min.js +1 -1
- package/dist/deps/pinia/pinia.iife.js +23 -28
- package/dist/deps/pinia/pinia.iife.prod.js +3 -3
- package/dist/deps/uni-app/index.umd.js +1 -1
- package/dist/deps/uni-h5/index.umd.js +4 -4
- package/dist/deps/uni-h5/style.css +1 -1
- package/dist/deps/uni-h5-vue/index.umd.js +2 -2
- package/dist/deps/uni-h5-vue/uni-h5-vue.js +2 -2
- package/dist/deps/uni-h5-vue/uni-h5-vue.prod.js +2 -2
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/dist/deps/vue/vue.global.js +129 -55
- package/dist/deps/vue/vue.global.prod.js +9 -9
- package/dist/deps/vxe-table/index.umd.min.js +1 -1
- package/dist/deps/vxe-table/style.min.css +1 -1
- package/package.json +6 -6
- package/src/version.ts +2 -2
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* pinia v3.0.
|
|
2
|
+
* pinia v3.0.2
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
var Pinia = (function (exports, vue, devtoolsApi) {
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
const IS_CLIENT = typeof window !== 'undefined';
|
|
10
|
-
|
|
11
9
|
/**
|
|
12
10
|
* setActivePinia must be called to handle SSR at the top of functions like
|
|
13
11
|
* `fetch`, `setup`, `serverPrefetch` and others
|
|
@@ -24,15 +22,7 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
24
22
|
/**
|
|
25
23
|
* Get the currently active pinia if there is any.
|
|
26
24
|
*/
|
|
27
|
-
const getActivePinia = () =>
|
|
28
|
-
const pinia = vue.hasInjectionContext() && vue.inject(piniaSymbol);
|
|
29
|
-
if (!pinia && !IS_CLIENT) {
|
|
30
|
-
console.error(`[🍍]: Pinia instance not found in context. This falls back to the global activePinia which exposes you to cross-request pollution on the server. Most of the time, it means you are calling "useStore()" in the wrong place.\n` +
|
|
31
|
-
`Read https://vuejs.org/guide/reusability/composables.html to learn more`);
|
|
32
|
-
}
|
|
33
|
-
return pinia || activePinia;
|
|
34
|
-
}
|
|
35
|
-
;
|
|
25
|
+
const getActivePinia = () => (vue.hasInjectionContext() && vue.inject(piniaSymbol)) || activePinia;
|
|
36
26
|
const piniaSymbol = (Symbol('pinia') );
|
|
37
27
|
|
|
38
28
|
function isPlainObject(
|
|
@@ -73,6 +63,8 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
73
63
|
// maybe reset? for $state = {} and $reset
|
|
74
64
|
})(exports.MutationType || (exports.MutationType = {}));
|
|
75
65
|
|
|
66
|
+
const IS_CLIENT = typeof window !== 'undefined';
|
|
67
|
+
|
|
76
68
|
/*
|
|
77
69
|
* FileSaver.js A saveAs() FileSaver implementation.
|
|
78
70
|
*
|
|
@@ -1138,10 +1130,13 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1138
1130
|
|
|
1139
1131
|
const noop = () => { };
|
|
1140
1132
|
function addSubscription(subscriptions, callback, detached, onCleanup = noop) {
|
|
1141
|
-
subscriptions.
|
|
1133
|
+
subscriptions.push(callback);
|
|
1142
1134
|
const removeSubscription = () => {
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1135
|
+
const idx = subscriptions.indexOf(callback);
|
|
1136
|
+
if (idx > -1) {
|
|
1137
|
+
subscriptions.splice(idx, 1);
|
|
1138
|
+
onCleanup();
|
|
1139
|
+
}
|
|
1145
1140
|
};
|
|
1146
1141
|
if (!detached && vue.getCurrentScope()) {
|
|
1147
1142
|
vue.onScopeDispose(removeSubscription);
|
|
@@ -1149,7 +1144,7 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1149
1144
|
return removeSubscription;
|
|
1150
1145
|
}
|
|
1151
1146
|
function triggerSubscriptions(subscriptions, ...args) {
|
|
1152
|
-
subscriptions.forEach((callback) => {
|
|
1147
|
+
subscriptions.slice().forEach((callback) => {
|
|
1153
1148
|
callback(...args);
|
|
1154
1149
|
});
|
|
1155
1150
|
}
|
|
@@ -1289,8 +1284,8 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1289
1284
|
// internal state
|
|
1290
1285
|
let isListening; // set to true at the end
|
|
1291
1286
|
let isSyncListening; // set to true at the end
|
|
1292
|
-
let subscriptions =
|
|
1293
|
-
let actionSubscriptions =
|
|
1287
|
+
let subscriptions = [];
|
|
1288
|
+
let actionSubscriptions = [];
|
|
1294
1289
|
let debuggerEvents;
|
|
1295
1290
|
const initialState = pinia.state.value[$id];
|
|
1296
1291
|
// avoid setting the state for option stores if it is set
|
|
@@ -1355,8 +1350,8 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1355
1350
|
;
|
|
1356
1351
|
function $dispose() {
|
|
1357
1352
|
scope.stop();
|
|
1358
|
-
subscriptions
|
|
1359
|
-
actionSubscriptions
|
|
1353
|
+
subscriptions = [];
|
|
1354
|
+
actionSubscriptions = [];
|
|
1360
1355
|
pinia._s.delete($id);
|
|
1361
1356
|
}
|
|
1362
1357
|
/**
|
|
@@ -1372,13 +1367,13 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1372
1367
|
const wrappedAction = function () {
|
|
1373
1368
|
setActivePinia(pinia);
|
|
1374
1369
|
const args = Array.from(arguments);
|
|
1375
|
-
const
|
|
1376
|
-
const
|
|
1370
|
+
const afterCallbackList = [];
|
|
1371
|
+
const onErrorCallbackList = [];
|
|
1377
1372
|
function after(callback) {
|
|
1378
|
-
|
|
1373
|
+
afterCallbackList.push(callback);
|
|
1379
1374
|
}
|
|
1380
1375
|
function onError(callback) {
|
|
1381
|
-
|
|
1376
|
+
onErrorCallbackList.push(callback);
|
|
1382
1377
|
}
|
|
1383
1378
|
// @ts-expect-error
|
|
1384
1379
|
triggerSubscriptions(actionSubscriptions, {
|
|
@@ -1394,22 +1389,22 @@ var Pinia = (function (exports, vue, devtoolsApi) {
|
|
|
1394
1389
|
// handle sync errors
|
|
1395
1390
|
}
|
|
1396
1391
|
catch (error) {
|
|
1397
|
-
triggerSubscriptions(
|
|
1392
|
+
triggerSubscriptions(onErrorCallbackList, error);
|
|
1398
1393
|
throw error;
|
|
1399
1394
|
}
|
|
1400
1395
|
if (ret instanceof Promise) {
|
|
1401
1396
|
return ret
|
|
1402
1397
|
.then((value) => {
|
|
1403
|
-
triggerSubscriptions(
|
|
1398
|
+
triggerSubscriptions(afterCallbackList, value);
|
|
1404
1399
|
return value;
|
|
1405
1400
|
})
|
|
1406
1401
|
.catch((error) => {
|
|
1407
|
-
triggerSubscriptions(
|
|
1402
|
+
triggerSubscriptions(onErrorCallbackList, error);
|
|
1408
1403
|
return Promise.reject(error);
|
|
1409
1404
|
});
|
|
1410
1405
|
}
|
|
1411
1406
|
// trigger after callbacks
|
|
1412
|
-
triggerSubscriptions(
|
|
1407
|
+
triggerSubscriptions(afterCallbackList, ret);
|
|
1413
1408
|
return ret;
|
|
1414
1409
|
};
|
|
1415
1410
|
wrappedAction[ACTION_MARKER] = true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* pinia v3.0.
|
|
2
|
+
* pinia v3.0.2
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
var Pinia=function(t,e){"use strict";let n;const o=t=>n=t,
|
|
7
|
-
/*! #__NO_SIDE_EFFECTS__ */let
|
|
6
|
+
var Pinia=function(t,e){"use strict";let n;const o=t=>n=t,i=Symbol();function c(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var r;t.MutationType=void 0,(r=t.MutationType||(t.MutationType={})).direct="direct",r.patchObject="patch object",r.patchFunction="patch function";const s=()=>{};function a(t,n,o,i=s){t.push(n);const c=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),i())};return!o&&e.getCurrentScope()&&e.onScopeDispose(c),c}function u(t,...e){t.slice().forEach((t=>{t(...e)}))}const f=t=>t(),p=Symbol(),l=Symbol();function h(t,n){t instanceof Map&&n instanceof Map?n.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const o in n){if(!n.hasOwnProperty(o))continue;const i=n[o],r=t[o];t[o]=c(r)&&c(i)&&t.hasOwnProperty(o)&&!e.isRef(i)&&!e.isReactive(i)?h(r,i):i}return t}const y=Symbol();function d(t){return!c(t)||!Object.prototype.hasOwnProperty.call(t,y)}const{assign:v}=Object;function b(n,i,c={},r,y,b){let $;const _=v({actions:{}},c),j={deep:!0};let S,m,O,R=[],g=[];const P=r.state.value[n];let A;function M(o){let i;S=m=!1,"function"==typeof o?(o(r.state.value[n]),i={type:t.MutationType.patchFunction,storeId:n,events:O}):(h(r.state.value[n],o),i={type:t.MutationType.patchObject,payload:o,storeId:n,events:O});const c=A=Symbol();e.nextTick().then((()=>{A===c&&(S=!0)})),m=!0,u(R,i,r.state.value[n])}b||P||(r.state.value[n]={}),e.ref({});const w=b?function(){const{state:t}=c,e=t?t():{};this.$patch((t=>{v(t,e)}))}:s;const k=(t,e="")=>{if(p in t)return t[l]=e,t;const i=function(){o(r);const e=Array.from(arguments),c=[],s=[];let a;u(g,{args:e,name:i[l],store:x,after:function(t){c.push(t)},onError:function(t){s.push(t)}});try{a=t.apply(this&&this.$id===n?this:x,e)}catch(t){throw u(s,t),t}return a instanceof Promise?a.then((t=>(u(c,t),t))).catch((t=>(u(s,t),Promise.reject(t)))):(u(c,a),a)};return i[p]=!0,i[l]=e,i},T={_p:r,$id:n,$onAction:a.bind(null,g),$patch:M,$reset:w,$subscribe(o,i={}){const c=a(R,o,i.detached,(()=>s())),s=$.run((()=>e.watch((()=>r.state.value[n]),(e=>{("sync"===i.flush?m:S)&&o({storeId:n,type:t.MutationType.direct,events:O},e)}),v({},j,i))));return c},$dispose:function(){$.stop(),R=[],g=[],r._s.delete(n)}},x=e.reactive(T);r._s.set(n,x);const E=(r._a&&r._a.runWithContext||f)((()=>r._e.run((()=>($=e.effectScope()).run((()=>i({action:k})))))));for(const t in E){const o=E[t];if(e.isRef(o)&&(!e.isRef(I=o)||!I.effect)||e.isReactive(o))b||(P&&d(o)&&(e.isRef(o)?o.value=P[t]:h(o,P[t])),r.state.value[n][t]=o);else if("function"==typeof o){const e=k(o,t);E[t]=e,_.actions[t]=o}}var I;return v(x,E),v(e.toRaw(x),E),Object.defineProperty(x,"$state",{get:()=>r.state.value[n],set:t=>{M((e=>{v(e,t)}))}}),r._p.forEach((t=>{v(x,$.run((()=>t({store:x,app:r._a,pinia:r,options:_}))))})),P&&b&&c.hydrate&&c.hydrate(x.$state,P),S=!0,m=!0,x}
|
|
7
|
+
/*! #__NO_SIDE_EFFECTS__ */let $="Store";function _(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]=function(){const n=t(this.$pinia),i=e[o];return"function"==typeof i?i.call(this,n):n[i]},n)),{})}const j=_;return t.acceptHMRUpdate=function(t,e){return()=>{}},t.createPinia=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let c=[],r=[];const s=e.markRaw({install(t){o(s),s._a=t,t.provide(i,s),t.config.globalProperties.$pinia=s,r.forEach((t=>c.push(t))),r=[]},use(t){return this._a?c.push(t):r.push(t),this},_p:c,_a:null,_e:t,_s:new Map,state:n});return s},t.defineStore=function(t,c,r){let s;const a="function"==typeof c;function u(r,u){const f=e.hasInjectionContext();(r=r||(f?e.inject(i,null):null))&&o(r),(r=n)._s.has(t)||(a?b(t,c,s,r):function(t,n,i){const{state:c,actions:r,getters:s}=n,a=i.state.value[t];let u;u=b(t,(function(){a||(i.state.value[t]=c?c():{});const n=e.toRefs(i.state.value[t]);return v(n,r,Object.keys(s||{}).reduce(((n,c)=>(n[c]=e.markRaw(e.computed((()=>{o(i);const e=i._s.get(t);return s[c].call(e,e)}))),n)),{}))}),n,i,0,!0)}(t,s,r));return r._s.get(t)}return s=a?r:c,u.$id=t,u},t.disposePinia=function(t){t._e.stop(),t._s.clear(),t._p.splice(0),t.state.value={},t._a=null},t.getActivePinia=()=>e.hasInjectionContext()&&e.inject(i)||n,t.mapActions=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(...e){return t(this.$pinia)[n](...e)},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]=function(...n){return t(this.$pinia)[e[o]](...n)},n)),{})},t.mapGetters=j,t.mapState=_,t.mapStores=function(...t){return t.reduce(((t,e)=>(t[e.$id+$]=function(){return e(this.$pinia)},t)),{})},t.mapWritableState=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}},e)),{}):Object.keys(e).reduce(((n,o)=>(n[o]={get(){return t(this.$pinia)[e[o]]},set(n){return t(this.$pinia)[e[o]]=n}},n)),{})},t.setActivePinia=o,t.setMapStoreSuffix=function(t){$=t},t.shouldHydrate=d,t.skipHydrate=function(t){return Object.defineProperty(t,y,{})},t.storeToRefs=function(t){const n=e.toRaw(t),o={};for(const i in n){const c=n[i];c.effect?o[i]=e.computed({get:()=>t[i],set(e){t[i]=e}}):(e.isRef(c)||e.isReactive(c))&&(o[i]=e.toRef(t,i))}return o},t}({},Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,i){typeof exports=="object"&&typeof module!="undefined"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(n=typeof globalThis!="undefined"?globalThis:n||self,i(n.UniApp={}))})(this,
|
|
1
|
+
(function(n,i){typeof exports=="object"&&typeof module!="undefined"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(n=typeof globalThis!="undefined"?globalThis:n||self,i(n.UniApp={}))})(this,function(n){"use strict";const i=Object.assign,d=Object.prototype.hasOwnProperty,S=(o,e)=>d.call(o,e),O=Object.prototype.toString,h=o=>O.call(o),g=o=>h(o)==="[object Object]",A=(o=>{const e=Object.create(null);return a=>e[a]||(e[a]=o(a))})(o=>o.charAt(0).toUpperCase()+o.slice(1)),T="__uniSSR",N="data",R="globalData",I="onShow",f="onHide",C="onLaunch",E="onError",P="onThemeChange",B="onPageNotFound",L="onUnhandledRejection",U="onLastPageBackPress",v="onExit",D="onLoad",p="onReady",w="onUnload",y="onInit",H="onSaveExitState",b="onUploadDouyinVideo",m="onLiveMount",V="onTitleClick",F="onResize",j="onBackPress",G="onPageScroll",M="onTabItemTap",k="onReachBottom",z="onPullDownRefresh",K="onShareTimeline",Y="onShareChat",q="onCopyUrl",J="onAddToFavorites",W="onShareAppMessage",X="onNavigationBarButtonTap",Z="onNavigationBarSearchInputClicked",$="onNavigationBarSearchInputChanged",Q="onNavigationBarSearchInputConfirmed",x="onNavigationBarSearchInputFocusChanged",nn=o=>o&&JSON.parse(JSON.stringify(o))||o;function on(){return Vue.getCurrentInstance()?N:R}function tn(o,e=!1){if(!o)throw new Error(`${e?"shallowSsrRef":"ssrRef"}: You must provide a key.`)}const l=(o,e,a=!1)=>{const c=a?Vue.shallowRef(o):Vue.ref(o);if(typeof window=="undefined")return c;const s=window[T];if(!s)return c;const r=on();return tn(e,a),S(s[r],e)&&(c.value=s[r][e],r===N&&delete s[r][e]),c},en={},an=(o,e)=>l(o,e),cn=(o,e)=>l(o,e,!0);function sn(){return nn(en)}function rn(){return uni.getSubNVueById(plus.webview.currentWebview().id)}function un(o){return weex.requireModule(o)}function _n(o,e,...a){uni.__log__?uni.__log__(o,e,...a):console[o].apply(console,[...a,e])}function Sn(o,e,...a){e&&a.push(e),console[o].apply(console,a)}function Nn(o,e){return typeof o=="string"?e:o}const t=(o,e=0)=>(a,c=Vue.getCurrentInstance())=>{!Vue.isInSSRComponentSetup&&Vue.injectHook(o,a,c)},u=t(I,3),_=t(f,3),ln=t(C,1),dn=t(E,1),On=t(P,1),hn=t(B,1),gn=t(L,1),An=t(U,1),Tn=t(v,1),Rn=t(y,6),In=t(D,2),fn=t(p,2),Cn=t(w,2),En=t(F,2),Pn=t(j,2),Bn=t(G,2),Ln=t(M,2),Un=t(k,2),vn=t(z,2),Dn=t(H,2),pn=t(V,2),wn=t(K,2),yn=t(Y,2),Hn=t(J,2),bn=t(W,2),mn=t(q,2),Vn=t(b,2),Fn=t(m,2),jn=t(X,2),Gn=t($,2),Mn=t(Z,2),kn=t(Q,2),zn=t(x,2),Kn=_,Yn=u,qn=_,Jn=u;function Wn(o,e,a=null){return o[e]?o[e](a):null}n.capitalize=A,n.extend=i,n.formatAppLog=_n,n.formatLog=Sn,n.getCurrentSubNVue=rn,n.getSsrGlobalData=sn,n.hasOwn=S,n.isPlainObject=g,n.onAddToFavorites=Hn,n.onAppHide=qn,n.onAppShow=Jn,n.onBackPress=Pn,n.onCopyUrl=mn,n.onError=dn,n.onExit=Tn,n.onHide=_,n.onInit=Rn,n.onLastPageBackPress=An,n.onLaunch=ln,n.onLiveMount=Fn,n.onLoad=In,n.onNavigationBarButtonTap=jn,n.onNavigationBarSearchInputChanged=Gn,n.onNavigationBarSearchInputClicked=Mn,n.onNavigationBarSearchInputConfirmed=kn,n.onNavigationBarSearchInputFocusChanged=zn,n.onPageHide=Kn,n.onPageNotFound=hn,n.onPageScroll=Bn,n.onPageShow=Yn,n.onPullDownRefresh=vn,n.onReachBottom=Un,n.onReady=fn,n.onResize=En,n.onSaveExitState=Dn,n.onShareAppMessage=bn,n.onShareChat=yn,n.onShareTimeline=wn,n.onShow=u,n.onTabItemTap=Ln,n.onThemeChange=On,n.onTitleClick=pn,n.onUnhandledRejection=gn,n.onUnload=Cn,n.onUploadDouyinVideo=Vn,n.renderComponentSlot=Wn,n.requireNativePlugin=un,n.resolveEasycom=Nn,n.shallowSsrRef=cn,n.ssrRef=an,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|