@vtj/materials 0.13.33 → 0.13.35

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.
@@ -1,4 +1,4 @@
1
- /*! Element Plus v2.11.5 */
1
+ /*! Element Plus v2.11.9 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -20,7 +20,10 @@
20
20
  alphaLabel: "\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C",
21
21
  alphaDescription: "\u900F\u660E\u5EA6 {alpha}, \u5F53\u524D\u989C\u8272 {color}",
22
22
  hueLabel: "\u9009\u62E9\u8272\u76F8\u503C",
23
- hueDescription: "\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}"
23
+ hueDescription: "\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}",
24
+ svLabel: "\u9009\u62E9\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6\u7684\u503C",
25
+ svDescription: "\u9971\u548C\u5EA6 {saturation}, \u660E\u5EA6 {brightness}, \u5F53\u524D\u989C\u8272 {color}",
26
+ predefineDescription: "\u9009\u62E9 {value} \u4F5C\u4E3A\u989C\u8272"
24
27
  },
25
28
  datepicker: {
26
29
  now: "\u6B64\u523B",
@@ -1,11 +1,13 @@
1
1
  /*!
2
- * pinia v3.0.3
2
+ * pinia v3.0.4
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
+
9
11
  /**
10
12
  * setActivePinia must be called to handle SSR at the top of functions like
11
13
  * `fetch`, `setup`, `serverPrefetch` and others
@@ -22,7 +24,15 @@ var Pinia = (function (exports, vue, devtoolsApi) {
22
24
  /**
23
25
  * Get the currently active pinia if there is any.
24
26
  */
25
- const getActivePinia = () => (vue.hasInjectionContext() && vue.inject(piniaSymbol)) || activePinia;
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
+ ;
26
36
  const piniaSymbol = (Symbol('pinia') );
27
37
 
28
38
  function isPlainObject(
@@ -63,8 +73,6 @@ var Pinia = (function (exports, vue, devtoolsApi) {
63
73
  // maybe reset? for $state = {} and $reset
64
74
  })(exports.MutationType || (exports.MutationType = {}));
65
75
 
66
- const IS_CLIENT = typeof window !== 'undefined';
67
-
68
76
  /*
69
77
  * FileSaver.js A saveAs() FileSaver implementation.
70
78
  *
@@ -1130,13 +1138,10 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1130
1138
 
1131
1139
  const noop = () => { };
1132
1140
  function addSubscription(subscriptions, callback, detached, onCleanup = noop) {
1133
- subscriptions.push(callback);
1141
+ subscriptions.add(callback);
1134
1142
  const removeSubscription = () => {
1135
- const idx = subscriptions.indexOf(callback);
1136
- if (idx > -1) {
1137
- subscriptions.splice(idx, 1);
1138
- onCleanup();
1139
- }
1143
+ const isDel = subscriptions.delete(callback);
1144
+ isDel && onCleanup();
1140
1145
  };
1141
1146
  if (!detached && vue.getCurrentScope()) {
1142
1147
  vue.onScopeDispose(removeSubscription);
@@ -1144,7 +1149,7 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1144
1149
  return removeSubscription;
1145
1150
  }
1146
1151
  function triggerSubscriptions(subscriptions, ...args) {
1147
- subscriptions.slice().forEach((callback) => {
1152
+ subscriptions.forEach((callback) => {
1148
1153
  callback(...args);
1149
1154
  });
1150
1155
  }
@@ -1284,8 +1289,8 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1284
1289
  // internal state
1285
1290
  let isListening; // set to true at the end
1286
1291
  let isSyncListening; // set to true at the end
1287
- let subscriptions = [];
1288
- let actionSubscriptions = [];
1292
+ let subscriptions = new Set();
1293
+ let actionSubscriptions = new Set();
1289
1294
  let debuggerEvents;
1290
1295
  const initialState = pinia.state.value[$id];
1291
1296
  // avoid setting the state for option stores if it is set
@@ -1350,8 +1355,8 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1350
1355
  ;
1351
1356
  function $dispose() {
1352
1357
  scope.stop();
1353
- subscriptions = [];
1354
- actionSubscriptions = [];
1358
+ subscriptions.clear();
1359
+ actionSubscriptions.clear();
1355
1360
  pinia._s.delete($id);
1356
1361
  }
1357
1362
  /**
@@ -1367,13 +1372,13 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1367
1372
  const wrappedAction = function () {
1368
1373
  setActivePinia(pinia);
1369
1374
  const args = Array.from(arguments);
1370
- const afterCallbackList = [];
1371
- const onErrorCallbackList = [];
1375
+ const afterCallbackSet = new Set();
1376
+ const onErrorCallbackSet = new Set();
1372
1377
  function after(callback) {
1373
- afterCallbackList.push(callback);
1378
+ afterCallbackSet.add(callback);
1374
1379
  }
1375
1380
  function onError(callback) {
1376
- onErrorCallbackList.push(callback);
1381
+ onErrorCallbackSet.add(callback);
1377
1382
  }
1378
1383
  // @ts-expect-error
1379
1384
  triggerSubscriptions(actionSubscriptions, {
@@ -1389,22 +1394,22 @@ var Pinia = (function (exports, vue, devtoolsApi) {
1389
1394
  // handle sync errors
1390
1395
  }
1391
1396
  catch (error) {
1392
- triggerSubscriptions(onErrorCallbackList, error);
1397
+ triggerSubscriptions(onErrorCallbackSet, error);
1393
1398
  throw error;
1394
1399
  }
1395
1400
  if (ret instanceof Promise) {
1396
1401
  return ret
1397
1402
  .then((value) => {
1398
- triggerSubscriptions(afterCallbackList, value);
1403
+ triggerSubscriptions(afterCallbackSet, value);
1399
1404
  return value;
1400
1405
  })
1401
1406
  .catch((error) => {
1402
- triggerSubscriptions(onErrorCallbackList, error);
1407
+ triggerSubscriptions(onErrorCallbackSet, error);
1403
1408
  return Promise.reject(error);
1404
1409
  });
1405
1410
  }
1406
1411
  // trigger after callbacks
1407
- triggerSubscriptions(afterCallbackList, ret);
1412
+ triggerSubscriptions(afterCallbackSet, ret);
1408
1413
  return ret;
1409
1414
  };
1410
1415
  wrappedAction[ACTION_MARKER] = true;
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * pinia v3.0.3
2
+ * pinia v3.0.4
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,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);
6
+ var Pinia=function(t,e){"use strict";let n;const o=t=>n=t,c=Symbol();function i(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,c=s){t.add(n);const i=()=>{t.delete(n)&&c()};return!o&&e.getCurrentScope()&&e.onScopeDispose(i),i}function u(t,...e){t.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 c=n[o],r=t[o];t[o]=i(r)&&i(c)&&t.hasOwnProperty(o)&&!e.isRef(c)&&!e.isReactive(c)?h(r,c):c}return t}const d=Symbol();function y(t){return!i(t)||!Object.prototype.hasOwnProperty.call(t,d)}const{assign:v}=Object;function b(n,c,i={},r,d,b){let S;const $=v({actions:{}},i),_={deep:!0};let j,m,O,R=new Set,g=new Set;const w=r.state.value[n];let P;function A(o){let c;j=m=!1,"function"==typeof o?(o(r.state.value[n]),c={type:t.MutationType.patchFunction,storeId:n,events:O}):(h(r.state.value[n],o),c={type:t.MutationType.patchObject,payload:o,storeId:n,events:O});const i=P=Symbol();e.nextTick().then((()=>{P===i&&(j=!0)})),m=!0,u(R,c,r.state.value[n])}b||w||(r.state.value[n]={}),e.ref({});const M=b?function(){const{state:t}=i,e=t?t():{};this.$patch((t=>{v(t,e)}))}:s;const k=(t,e="")=>{if(p in t)return t[l]=e,t;const c=function(){o(r);const e=Array.from(arguments),i=new Set,s=new Set;let a;u(g,{args:e,name:c[l],store:E,after:function(t){i.add(t)},onError:function(t){s.add(t)}});try{a=t.apply(this&&this.$id===n?this:E,e)}catch(t){throw u(s,t),t}return a instanceof Promise?a.then((t=>(u(i,t),t))).catch((t=>(u(s,t),Promise.reject(t)))):(u(i,a),a)};return c[p]=!0,c[l]=e,c},T={_p:r,$id:n,$onAction:a.bind(null,g),$patch:A,$reset:M,$subscribe(o,c={}){const i=a(R,o,c.detached,(()=>s())),s=S.run((()=>e.watch((()=>r.state.value[n]),(e=>{("sync"===c.flush?m:j)&&o({storeId:n,type:t.MutationType.direct,events:O},e)}),v({},_,c))));return i},$dispose:function(){S.stop(),R.clear(),g.clear(),r._s.delete(n)}},E=e.reactive(T);r._s.set(n,E);const x=(r._a&&r._a.runWithContext||f)((()=>r._e.run((()=>(S=e.effectScope()).run((()=>c({action:k})))))));for(const t in x){const o=x[t];if(e.isRef(o)&&(!e.isRef(I=o)||!I.effect)||e.isReactive(o))b||(w&&y(o)&&(e.isRef(o)?o.value=w[t]:h(o,w[t])),r.state.value[n][t]=o);else if("function"==typeof o){const e=k(o,t);x[t]=e,$.actions[t]=o}}var I;return v(E,x),v(e.toRaw(E),x),Object.defineProperty(E,"$state",{get:()=>r.state.value[n],set:t=>{A((e=>{v(e,t)}))}}),r._p.forEach((t=>{v(E,S.run((()=>t({store:E,app:r._a,pinia:r,options:$}))))})),w&&b&&i.hydrate&&i.hydrate(E.$state,w),j=!0,m=!0,E}
7
+ /*! #__NO_SIDE_EFFECTS__ */let S="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),c=e[o];return"function"==typeof c?c.call(this,n):n[c]},n)),{})}const _=$;return t.acceptHMRUpdate=function(t,e){return()=>{}},t.createPinia=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let i=[],r=[];const s=e.markRaw({install(t){o(s),s._a=t,t.provide(c,s),t.config.globalProperties.$pinia=s,r.forEach((t=>i.push(t))),r=[]},use(t){return this._a?i.push(t):r.push(t),this},_p:i,_a:null,_e:t,_s:new Map,state:n});return s},t.defineStore=function(t,i,r){let s;const a="function"==typeof i;function u(r,u){const f=e.hasInjectionContext();(r=r||(f?e.inject(c,null):null))&&o(r),(r=n)._s.has(t)||(a?b(t,i,s,r):function(t,n,c){const{state:i,actions:r,getters:s}=n,a=c.state.value[t];let u;u=b(t,(function(){a||(c.state.value[t]=i?i():{});const n=e.toRefs(c.state.value[t]);return v(n,r,Object.keys(s||{}).reduce(((n,i)=>(n[i]=e.markRaw(e.computed((()=>{o(c);const e=c._s.get(t);return s[i].call(e,e)}))),n)),{}))}),n,c,0,!0)}(t,s,r));return r._s.get(t)}return s=a?r:i,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(c)||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=_,t.mapState=$,t.mapStores=function(...t){return t.reduce(((t,e)=>(t[e.$id+S]=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){S=t},t.shouldHydrate=y,t.skipHydrate=function(t){return Object.defineProperty(t,d,{})},t.storeToRefs=function(t){const n=e.toRaw(t),o={};for(const c in n){const i=n[c];i.effect?o[c]=e.computed({get:()=>t[c],set(e){t[c]=e}}):(e.isRef(i)||e.isReactive(i))&&(o[c]=e.toRef(t,c))}return o},t}({},Vue);