@vef-framework/shared 1.0.96 → 1.0.98

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/es/color.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{colord as o}from"colord";function isValidColor(i){return o(i).isValid()}export{isValidColor};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","gold","lime"],r=["primary","info","success","warning","error"],n=[...e,...r],a="creation",o="update",l="audit",i=[a,o,l];export{l as auditFormScene,n as colorTypes,a as creationFormScene,e as defaultColorTypes,i as presetFormScenes,r as semanticColorTypes,o as updateFormScene};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/context.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{useRef as t}from"react";import{createContext as r,useContextSelector as e,useContext as o}from"use-context-selector";import"./lib.js";import{isNullish as n}from"radashi";import{shallow as c}from"zustand/shallow";function createSelectableContext(u){const i=r(u);return{ContextProvider:i.Provider,useContextSelector:r=>{const o=t();return e(i,(t=>{if(n(t))return;const e=r(t);return o.current&&c(e,o.current)?o.current:(o.current=e,e)}))},useContext:()=>o(i)}}export{createSelectableContext};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/dom.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  function getElementHeight(t,e,n=!1){if(e){const n=t.querySelector(e);if(!n)return 0;t=n}const o=t.offsetHeight;if(!n)return o;const r=t.computedStyleMap();return o+r.get("margin-top").value+r.get("margin-bottom").value}export{getElementHeight};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/error.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  var e=Object.defineProperty,__publicField=(r,o,t)=>((r,o,t)=>o in r?e(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t)(r,"symbol"!=typeof o?o+"":o,t);class VefError extends Error{constructor(e,r){super(r),__publicField(this,"code"),Object.defineProperty(this,"code",{value:e,writable:!1,configurable:!1,enumerable:!0})}}export{VefError};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/event.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import t from"mitt";function createEventEmitter(){return t()}export{createEventEmitter};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/expression.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import"./lib.js";import{isObject as n,isString as i,isFunction as s}from"radashi";const o=new WeakMap;function isExpression(s){return n(s)&&"expression"in s&&i(s.expression)}function isFunctionOrExpression(n){return s(n)||isExpression(n)}function compileDynamicFn(n,...i){const s=o.get(n);if(s)return s;const r=new Function(...i);return o.set(n,r),r}export{compileDynamicFn,isExpression,isFunctionOrExpression};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/function.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  function mergeFns(...e){return(...n)=>{for(const r of e)r&&r(...n)}}export{mergeFns};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/icons.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{jsx as e}from"@emotion/react/jsx-runtime";function IconTick(l){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor",fillRule:"evenodd"})})}function IconTickCircle(l){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor",fillRule:"evenodd"})})}function IconInfoCircle(l){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor",fillRule:"evenodd"})})}function IconAlertCircle(l){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor",fillRule:"evenodd"})})}function IconAlertTriangle(l){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor",fillRule:"evenodd"})})}function IconCheck(l){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})}export{IconAlertCircle,IconAlertTriangle,IconCheck,IconInfoCircle,IconTick,IconTickCircle};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/id.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{customAlphabet as e}from"nanoid";const n=e("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);function generateId(){return n()}export{generateId};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  export{isValidColor}from"./color.js";export{auditFormScene,colorTypes,creationFormScene,defaultColorTypes,presetFormScenes,semanticColorTypes,updateFormScene}from"./constants.js";export{createSelectableContext}from"./context.js";export{getElementHeight}from"./dom.js";export{VefError}from"./error.js";export{createEventEmitter}from"./event.js";export{compileDynamicFn,isExpression,isFunctionOrExpression}from"./expression.js";export{mergeFns}from"./function.js";export{IconAlertCircle,IconAlertTriangle,IconCheck,IconInfoCircle,IconTick,IconTickCircle}from"./icons.js";export{generateId}from"./id.js";import"./lib.js";export{checkIcon,defaultMessageTitle,errorIcon,infoIcon,showConfirmation,showErrorAlert,showErrorMessage,showErrorNotification,showInfoAlert,showInfoMessage,showInfoNotification,showLoadingMessage,showSuccessAlert,showSuccessMessage,showSuccessNotification,showWarningAlert,showWarningMessage,showWarningNotification,successIcon,warningIcon}from"./message.js";export{extractBaseName,extractDirName,extractExtName,isAbsolutePath,joinPaths,normalizePath}from"./path.js";export{parsePinyin,parsePinyinFirstLetter}from"./pinyin.js";export{decryptRsa,encryptRsa}from"./security.js";export{createComponentStore,createStore,createUnboundStore,useUnboundStore}from"./store.js";export{bmq,breakpoints,styles}from"./styles.js";export{getNowDate,getNowDateString,getTodayString}from"./temporal.js";export{themeVariables}from"./theme-variables.js";export{buildRouteParentMenusMappings,constantCase,difference,invokeMaybeAsyncFn,isAsyncFunction,isIternalFunction}from"./utils.js";import*as e from"./validation.js";export{e as validator};export{loadYaml}from"./yaml.js";export{default as isDeepEqual}from"react-fast-compare";export{shallow as isShallowEqual}from"zustand/shallow";export{z}from"zod";export{assign,camel as camelCase,capitalize,clone,cloneDeep,cluster,dash as dashCase,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal as pascalCase,pick,set,similarity,snake as snakeCase,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/lib.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  export{assign,camel as camelCase,capitalize,clone,cloneDeep,cluster,dash as dashCase,debounce,get,isArray,isBoolean,isDate,isEmpty,isError,isFloat,isFunction,isInt,isIntString,isMap,isNullish,isNumber,isObject,isPlainObject,isPrimitive,isPromise,isRegExp,isSet,isString,isSymbol,isUndefined,isWeakMap,isWeakSet,max,memo as memoize,min,noop,omit,once,pascal as pascalCase,pick,set,similarity,snake as snakeCase,sum,template,throttle,toFloat,toInt,trim,unique}from"radashi";export{z}from"zod";export{default as isDeepEqual}from"react-fast-compare";export{shallow as isShallowEqual}from"zustand/shallow";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/message.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import o from"@ant-design/icons";import{Modal as n,message as t,notification as e}from"antd";import{createElement as r}from"react";import{IconCheck as i,IconTickCircle as s,IconInfoCircle as c,IconAlertTriangle as a,IconAlertCircle as f}from"./icons.js";import"./lib.js";import{isFunction as w}from"radashi";const{confirm:u,info:h,success:l,warning:g,error:p}=n,m=r(o,{component:i}),d=r(o,{component:s}),A=r(o,{component:c}),v=r(o,{component:a}),E=r(o,{component:f}),N=r(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:s}),y=r(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:c}),C=r(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:a}),M=r(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:f});function showSuccessMessage(o){t.open({type:"success",content:o,duration:2,icon:d})}function showInfoMessage(o){t.open({type:"info",content:o,duration:3,icon:A})}function showWarningMessage(o){t.open({type:"warning",content:o,duration:3,icon:v})}function showErrorMessage(o){t.open({type:"error",content:o,duration:4,icon:E})}function showLoadingMessage(o){const n=t.open({type:"loading",content:o,duration:0});return()=>n()}const b="提示";function showSuccessNotification(o,n,t){const r=arguments.length;if(r<1)throw new Error("showSuccessNotification requires at least one argument");const i=r>1?o:b,s=r>1?n:o,c=3===r?t:void 0;e.open({type:"success",message:i,description:s,duration:4,closable:!0,btn:c,icon:N})}function showInfoNotification(o,n,t){const r=arguments.length;if(r<1)throw new Error("showInfoNotification requires at least one argument");const i=r>1?o:b,s=r>1?n:o,c=3===r?t:void 0;e.open({type:"info",message:i,description:s,duration:5,closable:!0,btn:c,icon:y})}function showWarningNotification(o,n,t){const r=arguments.length;if(r<1)throw new Error("showWarningNotification requires at least one argument");const i=r>1?o:b,s=r>1?n:o,c=3===r?t:void 0;e.open({type:"warning",message:i,description:s,duration:6,closable:!0,btn:c,icon:C})}function showErrorNotification(o,n,t){const r=arguments.length;if(r<1)throw new Error("showErrorNotification requires at least one argument");const i=r>1?o:b,s=r>1?n:o,c=3===r?t:void 0;e.open({type:"error",message:i,description:s,duration:10,closable:!0,btn:c,icon:M})}const q={color:"default",variant:"text"},x={icon:m};function showConfirmation(o,n,t,e){const r=arguments.length;if(r<2)throw new Error("showConfirmation requires at least two arguments");const i=r>2?o:"提示",s=2===r?o:n,c=2===r?n:t,{okText:a,cancelText:f,onCancel:h,onAfterOpen:l,onAfterClose:g}=e??{},{destroy:p}=u({title:i,content:s,cancelButtonProps:q,okButtonProps:x,centered:!0,onOk:c,okText:a,cancelText:f,onCancel:h,afterOpenChange:w(l)||w(g)?o=>{o?l?.():g?.()}:void 0});return p}const I={success:l,info:h,warning:g,error:p},S={success:d,info:A,warning:v,error:E},W="👍🏻 好的,知道了";function showAlert(o,n,t=b,e,r){const{okText:i=W,onCancel:s,onAfterOpen:c,onAfterClose:a}=r??{},{destroy:f}=I[o]({title:t,content:n,icon:S[o],centered:!0,onOk:e,okText:i,onCancel:s,afterOpenChange:w(c)||w(a)?o=>{o?c?.():a?.()}:void 0});return f}function showSuccessAlert(o,n,t,e){const r=arguments.length;if(r<1)throw new Error("showSuccessAlert requires at least one argument");const i=1===r||w(n)?void 0:o;return showAlert("success",1===r||w(n)?o:n,i,2===r||w(n)?n:t,e)}function showInfoAlert(o,n,t,e){const r=arguments.length;if(r<1)throw new Error("showInfoAlert requires at least one argument");const i=1===r||w(n)?void 0:o;return showAlert("info",1===r||w(n)?o:n,i,2===r||w(n)?n:t,e)}function showWarningAlert(o,n,t,e){const r=arguments.length;if(r<1)throw new Error("showWarningAlert requires at least one argument");const i=1===r||w(n)?void 0:o;return showAlert("warning",1===r||w(n)?o:n,i,2===r||w(n)?n:t,e)}function showErrorAlert(o,n,t,e){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const i=1===r||w(n)?void 0:o;return showAlert("error",1===r||w(n)?o:n,i,2===r||w(n)?n:t,e)}export{m as checkIcon,b as defaultMessageTitle,E as errorIcon,A as infoIcon,showConfirmation,showErrorAlert,showErrorMessage,showErrorNotification,showInfoAlert,showInfoMessage,showInfoNotification,showLoadingMessage,showSuccessAlert,showSuccessMessage,showSuccessNotification,showWarningAlert,showWarningMessage,showWarningNotification,d as successIcon,v as warningIcon};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/path.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import t from"path-browserify";const{basename:e,dirname:n,extname:r,isAbsolute:a,join:o,normalize:i}=t;function extractBaseName(t,n=!0){const a=n?void 0:r(t);return e(t,a)}function extractExtName(t){return r(t)}function extractDirName(t){return n(t)}function joinPaths(...t){return o(...t)}function isAbsolutePath(t){return a(t)}function normalizePath(t){return i(t)}export{extractBaseName,extractDirName,extractExtName,isAbsolutePath,joinPaths,normalizePath};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/pinyin.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{pinyin as n}from"pinyin-pro";function parsePinyin(e){return n(e,{pattern:"pinyin",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}function parsePinyinFirstLetter(e){return n(e,{pattern:"first",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}export{parsePinyin,parsePinyinFirstLetter};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/security.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import t from"jsencrypt";function encryptRsa(e,r){const n=new t;n.setPublicKey(r);const c=n.encrypt(e);if(!c)throw new Error(`Failed to encrypt value [${e}] using RSA`);return c}function decryptRsa(e,r){const n=new t;n.setPrivateKey(r);const c=n.decrypt(e);if(!c)throw new Error(`Failed to decrypt value [${e}] using RSA`);return c}export{decryptRsa,encryptRsa};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/store.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{createContext as e,useState as t,useRef as r,useEffect as o,createElement as n,useContext as a}from"react";import{createJSONStorage as i,persist as u,subscribeWithSelector as s}from"zustand/middleware";import{createWithEqualityFn as c,useStoreWithEqualityFn as m}from"zustand/traditional";import{createStore as l}from"zustand/vanilla";import"./lib.js";import{constantCase as S}from"./utils.js";import{isNullish as d}from"radashi";import{shallow as f}from"zustand/shallow";function createStore(e,t){const r=t?.name??"UNKNOWN",o=t?.storage??"local",n=t?t.selector:()=>null,a=function createStorageProxy(e){const t=i((()=>"local"===e?localStorage:sessionStorage));return{getItem:t.getItem,setItem(e,r){d(r.state)||t.setItem(e,r)},removeItem:t.removeItem}}(o);return c(u(s(e),{name:`__VEF_STORE__${S(r)}__`,storage:a,version:1,partialize:n}),f)}function createUnboundStore(e){return l(s(e))}function useUnboundStore(e,t,r){return m(e,t,r??f)}function createComponentStore(i,u){const s=e(null),useStoreApi=()=>{const e=a(s);if(!e)throw new Error(`${i}Store can be used only inside ${i}StoreProvider`);return e};return{StoreProvider:({initialState:e,children:a})=>{const[i]=t((()=>createUnboundStore(u(e)))),c=r(!1);return o((()=>()=>{c.current=!1}),[]),o((()=>{c.current||(c.current=!0),e&&i.setState({...e})}),[e,i]),n(s.Provider,{value:i},a)},useStore:e=>useUnboundStore(useStoreApi(),e),useStoreApi:useStoreApi}}export{createComponentStore,createStore,createUnboundStore,useUnboundStore};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/styles.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{css as t}from"@emotion/react";const l={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},e=["xs","sm","md","lg","xl","xxl"],r=Object.keys(l).reduce(((t,e)=>(t[e]=`@media (min-width: ${l[e]}px)`,t)),{}),s={flexCenter:t({display:"flex",justifyContent:"center",alignItems:"center"}),fullHeight:t({height:"100%"}),fullWidth:t({width:"100%"}),scrollbar:t({scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.3) transparent",scrollbarGutter:"stable"})};export{r as bmq,e as breakpoints,s as styles};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/temporal.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{tz as t}from"@date-fns/tz";import{format as e}from"date-fns";import{zhCN as a}from"date-fns/locale";function getNowDate(){return new Date}function getNowDateString(){return e(getNowDate(),"yyyy-MM-dd",{locale:a,in:t("Asia/Shanghai")})}function getTodayString(){return e(getNowDate(),"PPPPpp",{locale:a,in:t("Asia/Shanghai")})}export{getNowDate,getNowDateString,getTodayString};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  const e={colorChart1:"hsl(221.2 83.2% 53.3%)",colorChart2:"hsl(216 92% 60%)",colorChart3:"hsl(212 95% 68%)",colorChart4:"hsl(210 98% 78%)",colorChart5:"hsl(212 97% 87%)",blue:"var(--vef-blue)",purple:"var(--vef-purple)",cyan:"var(--vef-cyan)",green:"var(--vef-green)",magenta:"var(--vef-magenta)",pink:"var(--vef-pink)",red:"var(--vef-red)",orange:"var(--vef-orange)",yellow:"var(--vef-yellow)",volcano:"var(--vef-volcano)",geekblue:"var(--vef-geekblue)",gold:"var(--vef-gold)",lime:"var(--vef-lime)",colorPrimary:"var(--vef-color-primary)",colorSuccess:"var(--vef-color-success)",colorWarning:"var(--vef-color-warning)",colorError:"var(--vef-color-error)",colorInfo:"var(--vef-color-info)",colorLink:"var(--vef-color-link)",colorTextBase:"var(--vef-color-text-base)",colorBgBase:"var(--vef-color-bg-base)",fontFamily:"var(--vef-font-family)",fontFamilyCode:"var(--vef-font-family-code)",fontSize:"var(--vef-font-size)",lineWidth:"var(--vef-line-width)",lineType:"var(--vef-line-type)",motionEaseOutCirc:"var(--vef-motion-ease-out-circ)",motionEaseInOutCirc:"var(--vef-motion-ease-in-out-circ)",motionEaseOut:"var(--vef-motion-ease-out)",motionEaseInOut:"var(--vef-motion-ease-in-out)",motionEaseOutBack:"var(--vef-motion-ease-out-back)",motionEaseInBack:"var(--vef-motion-ease-in-back)",motionEaseInQuint:"var(--vef-motion-ease-in-quint)",motionEaseOutQuint:"var(--vef-motion-ease-out-quint)",borderRadius:"var(--vef-border-radius)",sizePopupArrow:"var(--vef-size-popup-arrow)",controlHeight:"var(--vef-control-height)",zIndexBase:"var(--vef-z-index-base)",zIndexPopupBase:"var(--vef-z-index-popup-base)",opacityImage:"var(--vef-opacity-image)",colorBgLayout:"var(--vef-color-bg-layout)",colorBgSpotlight:"var(--vef-color-bg-spotlight)",blue1:"var(--vef-blue-1)",blue2:"var(--vef-blue-2)",blue3:"var(--vef-blue-3)",blue4:"var(--vef-blue-4)",blue5:"var(--vef-blue-5)",blue6:"var(--vef-blue-6)",blue7:"var(--vef-blue-7)",blue8:"var(--vef-blue-8)",blue9:"var(--vef-blue-9)",blue10:"var(--vef-blue-10)",purple1:"var(--vef-purple-1)",purple2:"var(--vef-purple-2)",purple3:"var(--vef-purple-3)",purple4:"var(--vef-purple-4)",purple5:"var(--vef-purple-5)",purple6:"var(--vef-purple-6)",purple7:"var(--vef-purple-7)",purple8:"var(--vef-purple-8)",purple9:"var(--vef-purple-9)",purple10:"var(--vef-purple-10)",cyan1:"var(--vef-cyan-1)",cyan2:"var(--vef-cyan-2)",cyan3:"var(--vef-cyan-3)",cyan4:"var(--vef-cyan-4)",cyan5:"var(--vef-cyan-5)",cyan6:"var(--vef-cyan-6)",cyan7:"var(--vef-cyan-7)",cyan8:"var(--vef-cyan-8)",cyan9:"var(--vef-cyan-9)",cyan10:"var(--vef-cyan-10)",green1:"var(--vef-green-1)",green2:"var(--vef-green-2)",green3:"var(--vef-green-3)",green4:"var(--vef-green-4)",green5:"var(--vef-green-5)",green6:"var(--vef-green-6)",green7:"var(--vef-green-7)",green8:"var(--vef-green-8)",green9:"var(--vef-green-9)",green10:"var(--vef-green-10)",magenta1:"var(--vef-magenta-1)",magenta2:"var(--vef-magenta-2)",magenta3:"var(--vef-magenta-3)",magenta4:"var(--vef-magenta-4)",magenta5:"var(--vef-magenta-5)",magenta6:"var(--vef-magenta-6)",magenta7:"var(--vef-magenta-7)",magenta8:"var(--vef-magenta-8)",magenta9:"var(--vef-magenta-9)",magenta10:"var(--vef-magenta-10)",pink1:"var(--vef-pink-1)",pink2:"var(--vef-pink-2)",pink3:"var(--vef-pink-3)",pink4:"var(--vef-pink-4)",pink5:"var(--vef-pink-5)",pink6:"var(--vef-pink-6)",pink7:"var(--vef-pink-7)",pink8:"var(--vef-pink-8)",pink9:"var(--vef-pink-9)",pink10:"var(--vef-pink-10)",red1:"var(--vef-red-1)",red2:"var(--vef-red-2)",red3:"var(--vef-red-3)",red4:"var(--vef-red-4)",red5:"var(--vef-red-5)",red6:"var(--vef-red-6)",red7:"var(--vef-red-7)",red8:"var(--vef-red-8)",red9:"var(--vef-red-9)",red10:"var(--vef-red-10)",orange1:"var(--vef-orange-1)",orange2:"var(--vef-orange-2)",orange3:"var(--vef-orange-3)",orange4:"var(--vef-orange-4)",orange5:"var(--vef-orange-5)",orange6:"var(--vef-orange-6)",orange7:"var(--vef-orange-7)",orange8:"var(--vef-orange-8)",orange9:"var(--vef-orange-9)",orange10:"var(--vef-orange-10)",yellow1:"var(--vef-yellow-1)",yellow2:"var(--vef-yellow-2)",yellow3:"var(--vef-yellow-3)",yellow4:"var(--vef-yellow-4)",yellow5:"var(--vef-yellow-5)",yellow6:"var(--vef-yellow-6)",yellow7:"var(--vef-yellow-7)",yellow8:"var(--vef-yellow-8)",yellow9:"var(--vef-yellow-9)",yellow10:"var(--vef-yellow-10)",volcano1:"var(--vef-volcano-1)",volcano2:"var(--vef-volcano-2)",volcano3:"var(--vef-volcano-3)",volcano4:"var(--vef-volcano-4)",volcano5:"var(--vef-volcano-5)",volcano6:"var(--vef-volcano-6)",volcano7:"var(--vef-volcano-7)",volcano8:"var(--vef-volcano-8)",volcano9:"var(--vef-volcano-9)",volcano10:"var(--vef-volcano-10)",geekblue1:"var(--vef-geekblue-1)",geekblue2:"var(--vef-geekblue-2)",geekblue3:"var(--vef-geekblue-3)",geekblue4:"var(--vef-geekblue-4)",geekblue5:"var(--vef-geekblue-5)",geekblue6:"var(--vef-geekblue-6)",geekblue7:"var(--vef-geekblue-7)",geekblue8:"var(--vef-geekblue-8)",geekblue9:"var(--vef-geekblue-9)",geekblue10:"var(--vef-geekblue-10)",gold1:"var(--vef-gold-1)",gold2:"var(--vef-gold-2)",gold3:"var(--vef-gold-3)",gold4:"var(--vef-gold-4)",gold5:"var(--vef-gold-5)",gold6:"var(--vef-gold-6)",gold7:"var(--vef-gold-7)",gold8:"var(--vef-gold-8)",gold9:"var(--vef-gold-9)",gold10:"var(--vef-gold-10)",lime1:"var(--vef-lime-1)",lime2:"var(--vef-lime-2)",lime3:"var(--vef-lime-3)",lime4:"var(--vef-lime-4)",lime5:"var(--vef-lime-5)",lime6:"var(--vef-lime-6)",lime7:"var(--vef-lime-7)",lime8:"var(--vef-lime-8)",lime9:"var(--vef-lime-9)",lime10:"var(--vef-lime-10)",colorText:"var(--vef-color-text)",colorTextSecondary:"var(--vef-color-text-secondary)",colorTextTertiary:"var(--vef-color-text-tertiary)",colorTextQuaternary:"var(--vef-color-text-quaternary)",colorTextSlate:"#64748b",colorFill:"var(--vef-color-fill)",colorFillSecondary:"var(--vef-color-fill-secondary)",colorFillTertiary:"var(--vef-color-fill-tertiary)",colorFillQuaternary:"var(--vef-color-fill-quaternary)",colorBgSolid:"var(--vef-color-bg-solid)",colorBgSolidHover:"var(--vef-color-bg-solid-hover)",colorBgSolidActive:"var(--vef-color-bg-solid-active)",colorBgContainer:"var(--vef-color-bg-container)",colorBgElevated:"var(--vef-color-bg-elevated)",colorBgBlur:"var(--vef-color-bg-blur)",colorBorder:"var(--vef-color-border)",colorBorderSecondary:"var(--vef-color-border-secondary)",colorPrimaryBg:"var(--vef-color-primary-bg)",colorPrimaryBgHover:"var(--vef-color-primary-bg-hover)",colorPrimaryBorder:"var(--vef-color-primary-border)",colorPrimaryBorderHover:"var(--vef-color-primary-border-hover)",colorPrimaryHover:"var(--vef-color-primary-hover)",colorPrimaryActive:"var(--vef-color-primary-active)",colorPrimaryTextHover:"var(--vef-color-primary-text-hover)",colorPrimaryText:"var(--vef-color-primary-text)",colorPrimaryTextActive:"var(--vef-color-primary-text-active)",colorSuccessBg:"var(--vef-color-success-bg)",colorSuccessBgHover:"var(--vef-color-success-bg-hover)",colorSuccessBorder:"var(--vef-color-success-border)",colorSuccessBorderHover:"var(--vef-color-success-border-hover)",colorSuccessHover:"var(--vef-color-success-hover)",colorSuccessActive:"var(--vef-color-success-active)",colorSuccessTextHover:"var(--vef-color-success-text-hover)",colorSuccessText:"var(--vef-color-success-text)",colorSuccessTextActive:"var(--vef-color-success-text-active)",colorErrorBg:"var(--vef-color-error-bg)",colorErrorBgHover:"var(--vef-color-error-bg-hover)",colorErrorBgFilledHover:"var(--vef-color-error-bg-filled-hover)",colorErrorBgActive:"var(--vef-color-error-bg-active)",colorErrorBorder:"var(--vef-color-error-border)",colorErrorBorderHover:"var(--vef-color-error-border-hover)",colorErrorHover:"var(--vef-color-error-hover)",colorErrorActive:"var(--vef-color-error-active)",colorErrorTextHover:"var(--vef-color-error-text-hover)",colorErrorText:"var(--vef-color-error-text)",colorErrorTextActive:"var(--vef-color-error-text-active)",colorWarningBg:"var(--vef-color-warning-bg)",colorWarningBgHover:"var(--vef-color-warning-bg-hover)",colorWarningBorder:"var(--vef-color-warning-border)",colorWarningBorderHover:"var(--vef-color-warning-border-hover)",colorWarningHover:"var(--vef-color-warning-hover)",colorWarningActive:"var(--vef-color-warning-active)",colorWarningTextHover:"var(--vef-color-warning-text-hover)",colorWarningText:"var(--vef-color-warning-text)",colorWarningTextActive:"var(--vef-color-warning-text-active)",colorInfoBg:"var(--vef-color-info-bg)",colorInfoBgHover:"var(--vef-color-info-bg-hover)",colorInfoBorder:"var(--vef-color-info-border)",colorInfoBorderHover:"var(--vef-color-info-border-hover)",colorInfoHover:"var(--vef-color-info-hover)",colorInfoActive:"var(--vef-color-info-active)",colorInfoTextHover:"var(--vef-color-info-text-hover)",colorInfoText:"var(--vef-color-info-text)",colorInfoTextActive:"var(--vef-color-info-text-active)",colorLinkHover:"var(--vef-color-link-hover)",colorLinkActive:"var(--vef-color-link-active)",colorBgMask:"var(--vef-color-bg-mask)",colorWhite:"var(--vef-color-white)",fontSizeSm:"var(--vef-font-size-sm)",fontSizeLg:"var(--vef-font-size-lg)",fontSizeXl:"var(--vef-font-size-xl)",fontSizeHeading1:"var(--vef-font-size-heading-1)",fontSizeHeading2:"var(--vef-font-size-heading-2)",fontSizeHeading3:"var(--vef-font-size-heading-3)",fontSizeHeading4:"var(--vef-font-size-heading-4)",fontSizeHeading5:"var(--vef-font-size-heading-5)",lineHeight:"var(--vef-line-height)",lineHeightLg:"var(--vef-line-height-lg)",lineHeightSm:"var(--vef-line-height-sm)",fontHeight:"var(--vef-font-height)",fontHeightLg:"var(--vef-font-height-lg)",fontHeightSm:"var(--vef-font-height-sm)",lineHeightHeading1:"var(--vef-line-height-heading-1)",lineHeightHeading2:"var(--vef-line-height-heading-2)",lineHeightHeading3:"var(--vef-line-height-heading-3)",lineHeightHeading4:"var(--vef-line-height-heading-4)",lineHeightHeading5:"var(--vef-line-height-heading-5)",controlHeightSm:"var(--vef-control-height-sm)",controlHeightXs:"var(--vef-control-height-xs)",controlHeightLg:"var(--vef-control-height-lg)",motionDurationFast:"var(--vef-motion-duration-fast)",motionDurationMid:"var(--vef-motion-duration-mid)",motionDurationSlow:"var(--vef-motion-duration-slow)",lineWidthBold:"var(--vef-line-width-bold)",borderRadiusXs:"var(--vef-border-radius-xs)",borderRadiusSm:"var(--vef-border-radius-sm)",borderRadiusLg:"var(--vef-border-radius-lg)",borderRadiusOuter:"var(--vef-border-radius-outer)",colorFillContent:"var(--vef-color-fill-content)",colorFillContentHover:"var(--vef-color-fill-content-hover)",colorFillAlt:"var(--vef-color-fill-alter)",colorBgContainerDisabled:"var(--vef-color-bg-container-disabled)",colorBorderBg:"var(--vef-color-border-bg)",colorSplit:"var(--vef-color-split)",colorTextPlaceholder:"var(--vef-color-text-placeholder)",colorTextDisabled:"var(--vef-color-text-disabled)",colorTextHeading:"var(--vef-color-text-heading)",colorTextLabel:"var(--vef-color-text-label)",colorTextDescription:"var(--vef-color-text-description)",colorTextLightSolid:"var(--vef-color-text-light-solid)",colorHighlight:"var(--vef-color-highlight)",colorBgTextHover:"var(--vef-color-bg-text-hover)",colorBgTextActive:"var(--vef-color-bg-text-active)",colorIcon:"var(--vef-color-icon)",colorIconHover:"var(--vef-color-icon-hover)",colorErrorOutline:"var(--vef-color-error-outline)",colorWarningOutline:"var(--vef-color-warning-outline)",fontSizeIcon:"var(--vef-font-size-icon)",lineWidthFocus:"var(--vef-line-width-focus)",controlOutlineWidth:"var(--vef-control-outline-width)",controlInteractiveSize:"var(--vef-control-interactive-size)",controlItemBgHover:"var(--vef-control-item-bg-hover)",controlItemBgActive:"var(--vef-control-item-bg-active)",controlItemBgActiveHover:"var(--vef-control-item-bg-active-hover)",controlItemBgActiveDisabled:"var(--vef-control-item-bg-active-disabled)",controlTmpOutline:"var(--vef-control-tmp-outline)",controlOutline:"var(--vef-control-outline)",fontWeightStrong:"var(--vef-font-weight-strong)",opacityLoading:"var(--vef-opacity-loading)",linkDecoration:"var(--vef-link-decoration)",linkHoverDecoration:"var(--vef-link-hover-decoration)",linkFocusDecoration:"var(--vef-link-focus-decoration)",controlPaddingHorizontal:"var(--vef-control-padding-horizontal)",controlPaddingHorizontalSm:"var(--vef-control-padding-horizontal-sm)",paddingXxs:"var(--vef-padding-xxs)",paddingXs:"var(--vef-padding-xs)",paddingSm:"var(--vef-padding-sm)",padding:"var(--vef-padding)",paddingMd:"var(--vef-padding-md)",paddingLg:"var(--vef-padding-lg)",paddingXl:"var(--vef-padding-xl)",paddingContentHorizontalLg:"var(--vef-padding-content-horizontal-lg)",paddingContentVerticalLg:"var(--vef-padding-content-vertical-lg)",paddingContentHorizontal:"var(--vef-padding-content-horizontal)",paddingContentVertical:"var(--vef-padding-content-vertical)",paddingContentHorizontalSm:"var(--vef-padding-content-horizontal-sm)",paddingContentVerticalSm:"var(--vef-padding-content-vertical-sm)",marginXxs:"var(--vef-margin-xxs)",marginXs:"var(--vef-margin-xs)",marginSm:"var(--vef-margin-sm)",margin:"var(--vef-margin)",marginMd:"var(--vef-margin-md)",marginLg:"var(--vef-margin-lg)",marginXl:"var(--vef-margin-xl)",marginXxl:"var(--vef-margin-xxl)",boxShadow:"var(--vef-box-shadow)",boxShadowSecondary:"var(--vef-box-shadow-secondary)",boxShadowTertiary:"var(--vef-box-shadow-tertiary)",boxShadowPopoverArrow:"var(--vef-box-shadow-popover-arrow)",boxShadowCard:"var(--vef-box-shadow-card)",boxShadowDrawerRight:"var(--vef-box-shadow-drawer-right)",boxShadowDrawerLeft:"var(--vef-box-shadow-drawer-left)",boxShadowDrawerUp:"var(--vef-box-shadow-drawer-up)",boxShadowDrawerDown:"var(--vef-box-shadow-drawer-down)",boxShadowTabsOverflowLeft:"var(--vef-box-shadow-tabs-overflow-left)",boxShadowTabsOverflowRight:"var(--vef-box-shadow-tabs-overflow-right)",boxShadowTabsOverflowTop:"var(--vef-box-shadow-tabs-overflow-top)",boxShadowTabsOverflowBottom:"var(--vef-box-shadow-tabs-overflow-bottom)",boxShadowElevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"};export{e as themeVariables};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/utils.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import"./lib.js";import{isFunction as n,snake as e}from"radashi";function isAsyncFunction(e){return!!n(e)&&("AsyncFunction"===e.constructor.name||"[object AsyncFunction]"===Object.prototype.toString.call(e)||e.toString().startsWith("async "))}async function invokeMaybeAsyncFn(n,{beforeInvoke:e,onSuccess:t,onFinally:i},...r){if(isAsyncFunction(n))try{e?.();const i=await n(...r);return t?.(i),i}finally{i?.()}else{const c=n(...r);if(!(c instanceof Promise))return c;try{e?.();const n=await c;return t?.(n),n}finally{i?.()}}}function difference(n,e){return Object.keys(e).filter((t=>n[t]!==e[t])).reduce(((n,t)=>(n[t]=e[t],n)),{})}function constantCase(n){return e(n).toUpperCase()}function isIternalFunction(n){return!!(isAsyncFunction(n)&&Reflect.has(n,"name")&&Reflect.has(n,"key")&&"apiFn"===Reflect.get(n,"name"))}function buildRouteParentMenusMappings(n){return new Map(doBuildRouteParentMenusMappings(n))}function doBuildRouteParentMenusMappings(n,e=[]){return n.flatMap((n=>{if("item"===n.type)return[[n.key,[n,e]]];if("submenu"===n.type||"group"===n.type){const{children:t,...i}=n;return[[i.key,[{...i,children:[]},e]],...doBuildRouteParentMenusMappings(t,[...e,{...i,children:t.filter((n=>"divider"!==n.type)).map((n=>"item"===n.type?{...n}:{...n,children:[]}))}])]}return[]}))}export{buildRouteParentMenusMappings,constantCase,difference,invokeMaybeAsyncFn,isAsyncFunction,isIternalFunction};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/validation.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import i from"validator";function isAlpha(n){return i.isAlpha(n)}function isAlphanumeric(n){return i.isAlphanumeric(n)}function isAscii(n){return i.isAscii(n)}function isNumeric(n){return i.isNumeric(n)}function isDecimal(n){return i.isDecimal(n)}function isFloat(n,r){return i.isFloat(n,r)}function isBoolean(n){return i.isBoolean(n,{loose:!1})}function isDate(n){return i.isDate(n,{format:"YYYY-MM-DD",strictMode:!0})}function isEmpty(n){return i.isEmpty(n)}function isBlank(n){return i.isEmpty(n,{ignore_whitespace:!0})}function isIdentityCard(n){return i.isIdentityCard(n,"zh-CN")}function isAfter(n,r){return i.isAfter(n,r)}function isBefore(n,r){return i.isBefore(n,r)}function isEmail(n){return i.isEmail(n)}function isHexColor(n){return i.isHexColor(n)}function isIn(n,r){return i.isIn(n,r)}function isInt(n,r){return i.isInt(n,r)}function isIp(n,r){return i.isIP(n,r)}function isIpRange(n,r){return i.isIPRange(n,r)}function isJson(n){return i.isJSON(n)}function isJwt(n){return i.isJWT(n)}function isLatLong(n){return i.isLatLong(n)}function isLength(n,r){return i.isLength(n,r)}function isMimeType(n){return i.isMimeType(n)}function isMobilePhone(n){return i.isMobilePhone(n,"zh-CN")}function isPort(n){return i.isPort(n)}function isPostalCode(n){return i.isPostalCode(n,"CN")}function isSemVer(n){return i.isSemVer(n)}function isSlug(n){return i.isSlug(n)}function isStrongPassword(n){return i.isStrongPassword(n,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})}function isTime(n,r){return i.isTime(n,r)}function isUrl(n){return i.isURL(n,{protocols:["http","https"],require_tld:!0,require_protocol:!0,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!0})}function isUri(n){return i.isURL(n,{protocols:[],require_tld:!1,require_protocol:!1,require_host:!1,require_port:!1,require_valid_protocol:!1,allow_underscores:!0,allow_fragments:!1,allow_query_components:!1,allow_protocol_relative_urls:!1})}function isUuid(n,r){return i.isUUID(n,r)}function isDateTime(i){const[n,r]=i.split(" ",2);return isDate(n)&&isTime(r)}function matches(n,r,e){return i.matches(n,r,e)}const n=/^[\u4E00-\u9FA5]+\d*$/;function isChineseName(i){return n.test(i)}export{isAfter,isAlpha,isAlphanumeric,isAscii,isBefore,isBlank,isBoolean,isChineseName,isDate,isDateTime,isDecimal,isEmail,isEmpty,isFloat,isHexColor,isIdentityCard,isIn,isInt,isIp,isIpRange,isJson,isJwt,isLatLong,isLength,isMimeType,isMobilePhone,isNumeric,isPort,isPostalCode,isSemVer,isSlug,isStrongPassword,isTime,isUri,isUrl,isUuid,matches};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/es/yaml.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  import{load as o}from"js-yaml";function loadYaml(a){return o(a)}export{loadYaml};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/color.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("colord");exports.isValidColor=function isValidColor(r){return o.colord(r).isValid()};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/constants.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","gold","lime"],o=["primary","info","success","warning","error"],r=[...e,...o],t="creation",s="update",n="audit",p=[t,s,n];exports.auditFormScene=n,exports.colorTypes=r,exports.creationFormScene=t,exports.defaultColorTypes=e,exports.presetFormScenes=p,exports.semanticColorTypes=o,exports.updateFormScene=s;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/context.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("use-context-selector");require("./lib.cjs");const r=require("radashi"),o=require("zustand/shallow");exports.createSelectableContext=function createSelectableContext(n){const u=t.createContext(n);return{ContextProvider:u.Provider,useContextSelector:n=>{const c=e.useRef();return t.useContextSelector(u,(e=>{if(r.isNullish(e))return;const t=n(e);return c.current&&o.shallow(t,c.current)?c.current:(c.current=t,t)}))},useContext:()=>t.useContext(u)}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/dom.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getElementHeight=function getElementHeight(e,t,o=!1){if(t){const o=e.querySelector(t);if(!o)return 0;e=o}const r=e.offsetHeight;if(!o)return r;const n=e.computedStyleMap();return r+n.get("margin-top").value+n.get("margin-bottom").value};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/error.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.defineProperty,__publicField=(r,o,t)=>((r,o,t)=>o in r?e(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t)(r,"symbol"!=typeof o?o+"":o,t);class VefError extends Error{constructor(e,r){super(r),__publicField(this,"code"),Object.defineProperty(this,"code",{value:e,writable:!1,configurable:!1,enumerable:!0})}}exports.VefError=VefError;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/event.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("mitt");exports.createEventEmitter=function createEventEmitter(){return t()};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const n=require("radashi"),i=new WeakMap;function isExpression(i){return n.isObject(i)&&"expression"in i&&n.isString(i.expression)}exports.compileDynamicFn=function compileDynamicFn(n,...e){const s=i.get(n);if(s)return s;const r=new Function(...e);return i.set(n,r),r},exports.isExpression=isExpression,exports.isFunctionOrExpression=function isFunctionOrExpression(i){return n.isFunction(i)||isExpression(i)};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/function.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.mergeFns=function mergeFns(...e){return(...r)=>{for(const t of e)t&&t(...r)}};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/icons.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime");exports.IconAlertCircle=function IconAlertCircle(l){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor",fillRule:"evenodd"})})},exports.IconAlertTriangle=function IconAlertTriangle(l){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor",fillRule:"evenodd"})})},exports.IconCheck=function IconCheck(l){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})},exports.IconInfoCircle=function IconInfoCircle(l){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor",fillRule:"evenodd"})})},exports.IconTick=function IconTick(l){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor",fillRule:"evenodd"})})},exports.IconTickCircle=function IconTickCircle(l){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:e.jsx("path",{clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor",fillRule:"evenodd"})})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/id.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("nanoid").customAlphabet("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);exports.generateId=function generateId(){return e()};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./color.cjs"),r=require("./constants.cjs"),t=require("./context.cjs"),o=require("./dom.cjs"),s=require("./error.cjs"),n=require("./event.cjs"),i=require("./expression.cjs"),a=require("./function.cjs"),p=require("./icons.cjs"),c=require("./id.cjs");require("./lib.cjs");const l=require("./message.cjs"),x=require("./path.cjs"),u=require("./pinyin.cjs"),b=require("./security.cjs"),m=require("./store.cjs"),g=require("./styles.cjs"),d=require("./temporal.cjs"),y=require("./theme-variables.cjs");require("./types.cjs");const f=require("./utils.cjs"),j=require("./validation.cjs"),P=require("./yaml.cjs"),O=require("react-fast-compare"),h=require("zustand/shallow"),S=require("zod"),I=require("radashi");exports.isValidColor=e.isValidColor,exports.auditFormScene=r.auditFormScene,exports.colorTypes=r.colorTypes,exports.creationFormScene=r.creationFormScene,exports.defaultColorTypes=r.defaultColorTypes,exports.presetFormScenes=r.presetFormScenes,exports.semanticColorTypes=r.semanticColorTypes,exports.updateFormScene=r.updateFormScene,exports.createSelectableContext=t.createSelectableContext,exports.getElementHeight=o.getElementHeight,exports.VefError=s.VefError,exports.createEventEmitter=n.createEventEmitter,exports.compileDynamicFn=i.compileDynamicFn,exports.isExpression=i.isExpression,exports.isFunctionOrExpression=i.isFunctionOrExpression,exports.mergeFns=a.mergeFns,exports.IconAlertCircle=p.IconAlertCircle,exports.IconAlertTriangle=p.IconAlertTriangle,exports.IconCheck=p.IconCheck,exports.IconInfoCircle=p.IconInfoCircle,exports.IconTick=p.IconTick,exports.IconTickCircle=p.IconTickCircle,exports.generateId=c.generateId,exports.checkIcon=l.checkIcon,exports.defaultMessageTitle=l.defaultMessageTitle,exports.errorIcon=l.errorIcon,exports.infoIcon=l.infoIcon,exports.showConfirmation=l.showConfirmation,exports.showErrorAlert=l.showErrorAlert,exports.showErrorMessage=l.showErrorMessage,exports.showErrorNotification=l.showErrorNotification,exports.showInfoAlert=l.showInfoAlert,exports.showInfoMessage=l.showInfoMessage,exports.showInfoNotification=l.showInfoNotification,exports.showLoadingMessage=l.showLoadingMessage,exports.showSuccessAlert=l.showSuccessAlert,exports.showSuccessMessage=l.showSuccessMessage,exports.showSuccessNotification=l.showSuccessNotification,exports.showWarningAlert=l.showWarningAlert,exports.showWarningMessage=l.showWarningMessage,exports.showWarningNotification=l.showWarningNotification,exports.successIcon=l.successIcon,exports.warningIcon=l.warningIcon,exports.extractBaseName=x.extractBaseName,exports.extractDirName=x.extractDirName,exports.extractExtName=x.extractExtName,exports.isAbsolutePath=x.isAbsolutePath,exports.joinPaths=x.joinPaths,exports.normalizePath=x.normalizePath,exports.parsePinyin=u.parsePinyin,exports.parsePinyinFirstLetter=u.parsePinyinFirstLetter,exports.decryptRsa=b.decryptRsa,exports.encryptRsa=b.encryptRsa,exports.createComponentStore=m.createComponentStore,exports.createStore=m.createStore,exports.createUnboundStore=m.createUnboundStore,exports.useUnboundStore=m.useUnboundStore,exports.bmq=g.bmq,exports.breakpoints=g.breakpoints,exports.styles=g.styles,exports.getNowDate=d.getNowDate,exports.getNowDateString=d.getNowDateString,exports.getTodayString=d.getTodayString,exports.themeVariables=y.themeVariables,exports.buildRouteParentMenusMappings=f.buildRouteParentMenusMappings,exports.constantCase=f.constantCase,exports.difference=f.difference,exports.invokeMaybeAsyncFn=f.invokeMaybeAsyncFn,exports.isAsyncFunction=f.isAsyncFunction,exports.isIternalFunction=f.isIternalFunction,exports.validator=j,exports.loadYaml=P.loadYaml,exports.isDeepEqual=O,Object.defineProperty(exports,"isShallowEqual",{enumerable:!0,get:()=>h.shallow}),Object.defineProperty(exports,"z",{enumerable:!0,get:()=>S.z}),Object.defineProperty(exports,"assign",{enumerable:!0,get:()=>I.assign}),Object.defineProperty(exports,"camelCase",{enumerable:!0,get:()=>I.camel}),Object.defineProperty(exports,"capitalize",{enumerable:!0,get:()=>I.capitalize}),Object.defineProperty(exports,"clone",{enumerable:!0,get:()=>I.clone}),Object.defineProperty(exports,"cloneDeep",{enumerable:!0,get:()=>I.cloneDeep}),Object.defineProperty(exports,"cluster",{enumerable:!0,get:()=>I.cluster}),Object.defineProperty(exports,"dashCase",{enumerable:!0,get:()=>I.dash}),Object.defineProperty(exports,"debounce",{enumerable:!0,get:()=>I.debounce}),Object.defineProperty(exports,"get",{enumerable:!0,get:()=>I.get}),Object.defineProperty(exports,"isArray",{enumerable:!0,get:()=>I.isArray}),Object.defineProperty(exports,"isBoolean",{enumerable:!0,get:()=>I.isBoolean}),Object.defineProperty(exports,"isDate",{enumerable:!0,get:()=>I.isDate}),Object.defineProperty(exports,"isEmpty",{enumerable:!0,get:()=>I.isEmpty}),Object.defineProperty(exports,"isError",{enumerable:!0,get:()=>I.isError}),Object.defineProperty(exports,"isFloat",{enumerable:!0,get:()=>I.isFloat}),Object.defineProperty(exports,"isFunction",{enumerable:!0,get:()=>I.isFunction}),Object.defineProperty(exports,"isInt",{enumerable:!0,get:()=>I.isInt}),Object.defineProperty(exports,"isIntString",{enumerable:!0,get:()=>I.isIntString}),Object.defineProperty(exports,"isMap",{enumerable:!0,get:()=>I.isMap}),Object.defineProperty(exports,"isNullish",{enumerable:!0,get:()=>I.isNullish}),Object.defineProperty(exports,"isNumber",{enumerable:!0,get:()=>I.isNumber}),Object.defineProperty(exports,"isObject",{enumerable:!0,get:()=>I.isObject}),Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:()=>I.isPlainObject}),Object.defineProperty(exports,"isPrimitive",{enumerable:!0,get:()=>I.isPrimitive}),Object.defineProperty(exports,"isPromise",{enumerable:!0,get:()=>I.isPromise}),Object.defineProperty(exports,"isRegExp",{enumerable:!0,get:()=>I.isRegExp}),Object.defineProperty(exports,"isSet",{enumerable:!0,get:()=>I.isSet}),Object.defineProperty(exports,"isString",{enumerable:!0,get:()=>I.isString}),Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:()=>I.isSymbol}),Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:()=>I.isUndefined}),Object.defineProperty(exports,"isWeakMap",{enumerable:!0,get:()=>I.isWeakMap}),Object.defineProperty(exports,"isWeakSet",{enumerable:!0,get:()=>I.isWeakSet}),Object.defineProperty(exports,"max",{enumerable:!0,get:()=>I.max}),Object.defineProperty(exports,"memoize",{enumerable:!0,get:()=>I.memo}),Object.defineProperty(exports,"min",{enumerable:!0,get:()=>I.min}),Object.defineProperty(exports,"noop",{enumerable:!0,get:()=>I.noop}),Object.defineProperty(exports,"omit",{enumerable:!0,get:()=>I.omit}),Object.defineProperty(exports,"once",{enumerable:!0,get:()=>I.once}),Object.defineProperty(exports,"pascalCase",{enumerable:!0,get:()=>I.pascal}),Object.defineProperty(exports,"pick",{enumerable:!0,get:()=>I.pick}),Object.defineProperty(exports,"set",{enumerable:!0,get:()=>I.set}),Object.defineProperty(exports,"similarity",{enumerable:!0,get:()=>I.similarity}),Object.defineProperty(exports,"snakeCase",{enumerable:!0,get:()=>I.snake}),Object.defineProperty(exports,"sum",{enumerable:!0,get:()=>I.sum}),Object.defineProperty(exports,"template",{enumerable:!0,get:()=>I.template}),Object.defineProperty(exports,"throttle",{enumerable:!0,get:()=>I.throttle}),Object.defineProperty(exports,"toFloat",{enumerable:!0,get:()=>I.toFloat}),Object.defineProperty(exports,"toInt",{enumerable:!0,get:()=>I.toInt}),Object.defineProperty(exports,"trim",{enumerable:!0,get:()=>I.trim}),Object.defineProperty(exports,"unique",{enumerable:!0,get:()=>I.unique});
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/lib.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("radashi"),t=require("zod"),r=require("react-fast-compare"),o=require("zustand/shallow");Object.defineProperty(exports,"assign",{enumerable:!0,get:()=>e.assign}),Object.defineProperty(exports,"camelCase",{enumerable:!0,get:()=>e.camel}),Object.defineProperty(exports,"capitalize",{enumerable:!0,get:()=>e.capitalize}),Object.defineProperty(exports,"clone",{enumerable:!0,get:()=>e.clone}),Object.defineProperty(exports,"cloneDeep",{enumerable:!0,get:()=>e.cloneDeep}),Object.defineProperty(exports,"cluster",{enumerable:!0,get:()=>e.cluster}),Object.defineProperty(exports,"dashCase",{enumerable:!0,get:()=>e.dash}),Object.defineProperty(exports,"debounce",{enumerable:!0,get:()=>e.debounce}),Object.defineProperty(exports,"get",{enumerable:!0,get:()=>e.get}),Object.defineProperty(exports,"isArray",{enumerable:!0,get:()=>e.isArray}),Object.defineProperty(exports,"isBoolean",{enumerable:!0,get:()=>e.isBoolean}),Object.defineProperty(exports,"isDate",{enumerable:!0,get:()=>e.isDate}),Object.defineProperty(exports,"isEmpty",{enumerable:!0,get:()=>e.isEmpty}),Object.defineProperty(exports,"isError",{enumerable:!0,get:()=>e.isError}),Object.defineProperty(exports,"isFloat",{enumerable:!0,get:()=>e.isFloat}),Object.defineProperty(exports,"isFunction",{enumerable:!0,get:()=>e.isFunction}),Object.defineProperty(exports,"isInt",{enumerable:!0,get:()=>e.isInt}),Object.defineProperty(exports,"isIntString",{enumerable:!0,get:()=>e.isIntString}),Object.defineProperty(exports,"isMap",{enumerable:!0,get:()=>e.isMap}),Object.defineProperty(exports,"isNullish",{enumerable:!0,get:()=>e.isNullish}),Object.defineProperty(exports,"isNumber",{enumerable:!0,get:()=>e.isNumber}),Object.defineProperty(exports,"isObject",{enumerable:!0,get:()=>e.isObject}),Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:()=>e.isPlainObject}),Object.defineProperty(exports,"isPrimitive",{enumerable:!0,get:()=>e.isPrimitive}),Object.defineProperty(exports,"isPromise",{enumerable:!0,get:()=>e.isPromise}),Object.defineProperty(exports,"isRegExp",{enumerable:!0,get:()=>e.isRegExp}),Object.defineProperty(exports,"isSet",{enumerable:!0,get:()=>e.isSet}),Object.defineProperty(exports,"isString",{enumerable:!0,get:()=>e.isString}),Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:()=>e.isSymbol}),Object.defineProperty(exports,"isUndefined",{enumerable:!0,get:()=>e.isUndefined}),Object.defineProperty(exports,"isWeakMap",{enumerable:!0,get:()=>e.isWeakMap}),Object.defineProperty(exports,"isWeakSet",{enumerable:!0,get:()=>e.isWeakSet}),Object.defineProperty(exports,"max",{enumerable:!0,get:()=>e.max}),Object.defineProperty(exports,"memoize",{enumerable:!0,get:()=>e.memo}),Object.defineProperty(exports,"min",{enumerable:!0,get:()=>e.min}),Object.defineProperty(exports,"noop",{enumerable:!0,get:()=>e.noop}),Object.defineProperty(exports,"omit",{enumerable:!0,get:()=>e.omit}),Object.defineProperty(exports,"once",{enumerable:!0,get:()=>e.once}),Object.defineProperty(exports,"pascalCase",{enumerable:!0,get:()=>e.pascal}),Object.defineProperty(exports,"pick",{enumerable:!0,get:()=>e.pick}),Object.defineProperty(exports,"set",{enumerable:!0,get:()=>e.set}),Object.defineProperty(exports,"similarity",{enumerable:!0,get:()=>e.similarity}),Object.defineProperty(exports,"snakeCase",{enumerable:!0,get:()=>e.snake}),Object.defineProperty(exports,"sum",{enumerable:!0,get:()=>e.sum}),Object.defineProperty(exports,"template",{enumerable:!0,get:()=>e.template}),Object.defineProperty(exports,"throttle",{enumerable:!0,get:()=>e.throttle}),Object.defineProperty(exports,"toFloat",{enumerable:!0,get:()=>e.toFloat}),Object.defineProperty(exports,"toInt",{enumerable:!0,get:()=>e.toInt}),Object.defineProperty(exports,"trim",{enumerable:!0,get:()=>e.trim}),Object.defineProperty(exports,"unique",{enumerable:!0,get:()=>e.unique}),Object.defineProperty(exports,"z",{enumerable:!0,get:()=>t.z}),exports.isDeepEqual=r,Object.defineProperty(exports,"isShallowEqual",{enumerable:!0,get:()=>o.shallow});
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/message.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@ant-design/icons"),n=require("antd"),e=require("react"),t=require("./icons.cjs");require("./lib.cjs");const i=require("radashi"),{confirm:r,info:s,success:c,warning:a,error:u}=n.Modal,l=e.createElement(o,{component:t.IconCheck}),f=e.createElement(o,{component:t.IconTickCircle}),w=e.createElement(o,{component:t.IconInfoCircle}),h=e.createElement(o,{component:t.IconAlertTriangle}),g=e.createElement(o,{component:t.IconAlertCircle}),p=e.createElement(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:t.IconTickCircle}),m=e.createElement(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:t.IconInfoCircle}),d=e.createElement(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:t.IconAlertTriangle}),x=e.createElement(o,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:t.IconAlertCircle});const E="提示";const A={color:"default",variant:"text"},I={icon:l};const v={success:c,info:s,warning:a,error:u},C={success:f,info:w,warning:h,error:g},F="👍🏻 好的,知道了";function showAlert(o,n,e=E,t,r){const{okText:s=F,onCancel:c,onAfterOpen:a,onAfterClose:u}=r??{},{destroy:l}=v[o]({title:e,content:n,icon:C[o],centered:!0,onOk:t,okText:s,onCancel:c,afterOpenChange:i.isFunction(a)||i.isFunction(u)?o=>{o?a?.():u?.()}:void 0});return l}exports.checkIcon=l,exports.defaultMessageTitle=E,exports.errorIcon=g,exports.infoIcon=w,exports.showConfirmation=function showConfirmation(o,n,e,t){const s=arguments.length;if(s<2)throw new Error("showConfirmation requires at least two arguments");const c=s>2?o:"提示",a=2===s?o:n,u=2===s?n:e,{okText:l,cancelText:f,onCancel:w,onAfterOpen:h,onAfterClose:g}=t??{},{destroy:p}=r({title:c,content:a,cancelButtonProps:A,okButtonProps:I,centered:!0,onOk:u,okText:l,cancelText:f,onCancel:w,afterOpenChange:i.isFunction(h)||i.isFunction(g)?o=>{o?h?.():g?.()}:void 0});return p},exports.showErrorAlert=function showErrorAlert(o,n,e,t){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const s=1===r||i.isFunction(n)?void 0:o;return showAlert("error",1===r||i.isFunction(n)?o:n,s,2===r||i.isFunction(n)?n:e,t)},exports.showErrorMessage=function showErrorMessage(o){n.message.open({type:"error",content:o,duration:4,icon:g})},exports.showErrorNotification=function showErrorNotification(o,e,t){const i=arguments.length;if(i<1)throw new Error("showErrorNotification requires at least one argument");const r=i>1?o:E,s=i>1?e:o,c=3===i?t:void 0;n.notification.open({type:"error",message:r,description:s,duration:10,closable:!0,btn:c,icon:x})},exports.showInfoAlert=function showInfoAlert(o,n,e,t){const r=arguments.length;if(r<1)throw new Error("showInfoAlert requires at least one argument");const s=1===r||i.isFunction(n)?void 0:o;return showAlert("info",1===r||i.isFunction(n)?o:n,s,2===r||i.isFunction(n)?n:e,t)},exports.showInfoMessage=function showInfoMessage(o){n.message.open({type:"info",content:o,duration:3,icon:w})},exports.showInfoNotification=function showInfoNotification(o,e,t){const i=arguments.length;if(i<1)throw new Error("showInfoNotification requires at least one argument");const r=i>1?o:E,s=i>1?e:o,c=3===i?t:void 0;n.notification.open({type:"info",message:r,description:s,duration:5,closable:!0,btn:c,icon:m})},exports.showLoadingMessage=function showLoadingMessage(o){const e=n.message.open({type:"loading",content:o,duration:0});return()=>e()},exports.showSuccessAlert=function showSuccessAlert(o,n,e,t){const r=arguments.length;if(r<1)throw new Error("showSuccessAlert requires at least one argument");const s=1===r||i.isFunction(n)?void 0:o;return showAlert("success",1===r||i.isFunction(n)?o:n,s,2===r||i.isFunction(n)?n:e,t)},exports.showSuccessMessage=function showSuccessMessage(o){n.message.open({type:"success",content:o,duration:2,icon:f})},exports.showSuccessNotification=function showSuccessNotification(o,e,t){const i=arguments.length;if(i<1)throw new Error("showSuccessNotification requires at least one argument");const r=i>1?o:E,s=i>1?e:o,c=3===i?t:void 0;n.notification.open({type:"success",message:r,description:s,duration:4,closable:!0,btn:c,icon:p})},exports.showWarningAlert=function showWarningAlert(o,n,e,t){const r=arguments.length;if(r<1)throw new Error("showWarningAlert requires at least one argument");const s=1===r||i.isFunction(n)?void 0:o;return showAlert("warning",1===r||i.isFunction(n)?o:n,s,2===r||i.isFunction(n)?n:e,t)},exports.showWarningMessage=function showWarningMessage(o){n.message.open({type:"warning",content:o,duration:3,icon:h})},exports.showWarningNotification=function showWarningNotification(o,e,t){const i=arguments.length;if(i<1)throw new Error("showWarningNotification requires at least one argument");const r=i>1?o:E,s=i>1?e:o,c=3===i?t:void 0;n.notification.open({type:"warning",message:r,description:s,duration:6,closable:!0,btn:c,icon:d})},exports.successIcon=f,exports.warningIcon=h;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/path.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("path-browserify"),{basename:e,dirname:r,extname:n,isAbsolute:a,join:o,normalize:i}=t;exports.extractBaseName=function extractBaseName(t,r=!0){const a=r?void 0:n(t);return e(t,a)},exports.extractDirName=function extractDirName(t){return r(t)},exports.extractExtName=function extractExtName(t){return n(t)},exports.isAbsolutePath=function isAbsolutePath(t){return a(t)},exports.joinPaths=function joinPaths(...t){return o(...t)},exports.normalizePath=function normalizePath(t){return i(t)};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/pinyin.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("pinyin-pro");exports.parsePinyin=function parsePinyin(e){return n.pinyin(e,{pattern:"pinyin",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})},exports.parsePinyinFirstLetter=function parsePinyinFirstLetter(e){return n.pinyin(e,{pattern:"first",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/security.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("jsencrypt");exports.decryptRsa=function decryptRsa(t,r){const n=new e;n.setPrivateKey(r);const o=n.decrypt(t);if(!o)throw new Error(`Failed to decrypt value [${t}] using RSA`);return o},exports.encryptRsa=function encryptRsa(t,r){const n=new e;n.setPublicKey(r);const o=n.encrypt(t);if(!o)throw new Error(`Failed to encrypt value [${t}] using RSA`);return o};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/store.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("zustand/middleware"),r=require("zustand/traditional"),o=require("zustand/vanilla");require("./lib.cjs");const n=require("./utils.cjs"),s=require("radashi"),u=require("zustand/shallow");function createUnboundStore(e){return o.createStore(t.subscribeWithSelector(e))}function useUnboundStore(e,t,o){return r.useStoreWithEqualityFn(e,t,o??u.shallow)}exports.createComponentStore=function createComponentStore(t,r){const o=e.createContext(null),useStoreApi=()=>{const r=e.useContext(o);if(!r)throw new Error(`${t}Store can be used only inside ${t}StoreProvider`);return r};return{StoreProvider:({initialState:t,children:n})=>{const[s]=e.useState((()=>createUnboundStore(r(t)))),u=e.useRef(!1);return e.useEffect((()=>()=>{u.current=!1}),[]),e.useEffect((()=>{u.current||(u.current=!0),t&&s.setState({...t})}),[t,s]),e.createElement(o.Provider,{value:s},n)},useStore:e=>useUnboundStore(useStoreApi(),e),useStoreApi:useStoreApi}},exports.createStore=function createStore(e,o){const a=o?.name??"UNKNOWN",i=o?.storage??"local",c=o?o.selector:()=>null,l=function createStorageProxy(e){const r=t.createJSONStorage((()=>"local"===e?localStorage:sessionStorage));return{getItem:r.getItem,setItem(e,t){s.isNullish(t.state)||r.setItem(e,t)},removeItem:r.removeItem}}(i);return r.createWithEqualityFn(t.persist(t.subscribeWithSelector(e),{name:`__VEF_STORE__${n.constantCase(a)}__`,storage:l,version:1,partialize:c}),u.shallow)},exports.createUnboundStore=createUnboundStore,exports.useUnboundStore=useUnboundStore;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/styles.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react"),t={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},s=Object.keys(t).reduce(((e,s)=>(e[s]=`@media (min-width: ${t[s]}px)`,e)),{}),r={flexCenter:e.css({display:"flex",justifyContent:"center",alignItems:"center"}),fullHeight:e.css({height:"100%"}),fullWidth:e.css({width:"100%"}),scrollbar:e.css({scrollbarWidth:"thin",scrollbarColor:"rgba(0, 0, 0, 0.3) transparent",scrollbarGutter:"stable"})};exports.bmq=s,exports.breakpoints=["xs","sm","md","lg","xl","xxl"],exports.styles=r;
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/temporal.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@date-fns/tz"),e=require("date-fns"),a=require("date-fns/locale");function getNowDate(){return new Date}exports.getNowDate=getNowDate,exports.getNowDateString=function getNowDateString(){return e.format(getNowDate(),"yyyy-MM-dd",{locale:a.zhCN,in:t.tz("Asia/Shanghai")})},exports.getTodayString=function getTodayString(){return e.format(getNowDate(),"PPPPpp",{locale:a.zhCN,in:t.tz("Asia/Shanghai")})};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.themeVariables={colorChart1:"hsl(221.2 83.2% 53.3%)",colorChart2:"hsl(216 92% 60%)",colorChart3:"hsl(212 95% 68%)",colorChart4:"hsl(210 98% 78%)",colorChart5:"hsl(212 97% 87%)",blue:"var(--vef-blue)",purple:"var(--vef-purple)",cyan:"var(--vef-cyan)",green:"var(--vef-green)",magenta:"var(--vef-magenta)",pink:"var(--vef-pink)",red:"var(--vef-red)",orange:"var(--vef-orange)",yellow:"var(--vef-yellow)",volcano:"var(--vef-volcano)",geekblue:"var(--vef-geekblue)",gold:"var(--vef-gold)",lime:"var(--vef-lime)",colorPrimary:"var(--vef-color-primary)",colorSuccess:"var(--vef-color-success)",colorWarning:"var(--vef-color-warning)",colorError:"var(--vef-color-error)",colorInfo:"var(--vef-color-info)",colorLink:"var(--vef-color-link)",colorTextBase:"var(--vef-color-text-base)",colorBgBase:"var(--vef-color-bg-base)",fontFamily:"var(--vef-font-family)",fontFamilyCode:"var(--vef-font-family-code)",fontSize:"var(--vef-font-size)",lineWidth:"var(--vef-line-width)",lineType:"var(--vef-line-type)",motionEaseOutCirc:"var(--vef-motion-ease-out-circ)",motionEaseInOutCirc:"var(--vef-motion-ease-in-out-circ)",motionEaseOut:"var(--vef-motion-ease-out)",motionEaseInOut:"var(--vef-motion-ease-in-out)",motionEaseOutBack:"var(--vef-motion-ease-out-back)",motionEaseInBack:"var(--vef-motion-ease-in-back)",motionEaseInQuint:"var(--vef-motion-ease-in-quint)",motionEaseOutQuint:"var(--vef-motion-ease-out-quint)",borderRadius:"var(--vef-border-radius)",sizePopupArrow:"var(--vef-size-popup-arrow)",controlHeight:"var(--vef-control-height)",zIndexBase:"var(--vef-z-index-base)",zIndexPopupBase:"var(--vef-z-index-popup-base)",opacityImage:"var(--vef-opacity-image)",colorBgLayout:"var(--vef-color-bg-layout)",colorBgSpotlight:"var(--vef-color-bg-spotlight)",blue1:"var(--vef-blue-1)",blue2:"var(--vef-blue-2)",blue3:"var(--vef-blue-3)",blue4:"var(--vef-blue-4)",blue5:"var(--vef-blue-5)",blue6:"var(--vef-blue-6)",blue7:"var(--vef-blue-7)",blue8:"var(--vef-blue-8)",blue9:"var(--vef-blue-9)",blue10:"var(--vef-blue-10)",purple1:"var(--vef-purple-1)",purple2:"var(--vef-purple-2)",purple3:"var(--vef-purple-3)",purple4:"var(--vef-purple-4)",purple5:"var(--vef-purple-5)",purple6:"var(--vef-purple-6)",purple7:"var(--vef-purple-7)",purple8:"var(--vef-purple-8)",purple9:"var(--vef-purple-9)",purple10:"var(--vef-purple-10)",cyan1:"var(--vef-cyan-1)",cyan2:"var(--vef-cyan-2)",cyan3:"var(--vef-cyan-3)",cyan4:"var(--vef-cyan-4)",cyan5:"var(--vef-cyan-5)",cyan6:"var(--vef-cyan-6)",cyan7:"var(--vef-cyan-7)",cyan8:"var(--vef-cyan-8)",cyan9:"var(--vef-cyan-9)",cyan10:"var(--vef-cyan-10)",green1:"var(--vef-green-1)",green2:"var(--vef-green-2)",green3:"var(--vef-green-3)",green4:"var(--vef-green-4)",green5:"var(--vef-green-5)",green6:"var(--vef-green-6)",green7:"var(--vef-green-7)",green8:"var(--vef-green-8)",green9:"var(--vef-green-9)",green10:"var(--vef-green-10)",magenta1:"var(--vef-magenta-1)",magenta2:"var(--vef-magenta-2)",magenta3:"var(--vef-magenta-3)",magenta4:"var(--vef-magenta-4)",magenta5:"var(--vef-magenta-5)",magenta6:"var(--vef-magenta-6)",magenta7:"var(--vef-magenta-7)",magenta8:"var(--vef-magenta-8)",magenta9:"var(--vef-magenta-9)",magenta10:"var(--vef-magenta-10)",pink1:"var(--vef-pink-1)",pink2:"var(--vef-pink-2)",pink3:"var(--vef-pink-3)",pink4:"var(--vef-pink-4)",pink5:"var(--vef-pink-5)",pink6:"var(--vef-pink-6)",pink7:"var(--vef-pink-7)",pink8:"var(--vef-pink-8)",pink9:"var(--vef-pink-9)",pink10:"var(--vef-pink-10)",red1:"var(--vef-red-1)",red2:"var(--vef-red-2)",red3:"var(--vef-red-3)",red4:"var(--vef-red-4)",red5:"var(--vef-red-5)",red6:"var(--vef-red-6)",red7:"var(--vef-red-7)",red8:"var(--vef-red-8)",red9:"var(--vef-red-9)",red10:"var(--vef-red-10)",orange1:"var(--vef-orange-1)",orange2:"var(--vef-orange-2)",orange3:"var(--vef-orange-3)",orange4:"var(--vef-orange-4)",orange5:"var(--vef-orange-5)",orange6:"var(--vef-orange-6)",orange7:"var(--vef-orange-7)",orange8:"var(--vef-orange-8)",orange9:"var(--vef-orange-9)",orange10:"var(--vef-orange-10)",yellow1:"var(--vef-yellow-1)",yellow2:"var(--vef-yellow-2)",yellow3:"var(--vef-yellow-3)",yellow4:"var(--vef-yellow-4)",yellow5:"var(--vef-yellow-5)",yellow6:"var(--vef-yellow-6)",yellow7:"var(--vef-yellow-7)",yellow8:"var(--vef-yellow-8)",yellow9:"var(--vef-yellow-9)",yellow10:"var(--vef-yellow-10)",volcano1:"var(--vef-volcano-1)",volcano2:"var(--vef-volcano-2)",volcano3:"var(--vef-volcano-3)",volcano4:"var(--vef-volcano-4)",volcano5:"var(--vef-volcano-5)",volcano6:"var(--vef-volcano-6)",volcano7:"var(--vef-volcano-7)",volcano8:"var(--vef-volcano-8)",volcano9:"var(--vef-volcano-9)",volcano10:"var(--vef-volcano-10)",geekblue1:"var(--vef-geekblue-1)",geekblue2:"var(--vef-geekblue-2)",geekblue3:"var(--vef-geekblue-3)",geekblue4:"var(--vef-geekblue-4)",geekblue5:"var(--vef-geekblue-5)",geekblue6:"var(--vef-geekblue-6)",geekblue7:"var(--vef-geekblue-7)",geekblue8:"var(--vef-geekblue-8)",geekblue9:"var(--vef-geekblue-9)",geekblue10:"var(--vef-geekblue-10)",gold1:"var(--vef-gold-1)",gold2:"var(--vef-gold-2)",gold3:"var(--vef-gold-3)",gold4:"var(--vef-gold-4)",gold5:"var(--vef-gold-5)",gold6:"var(--vef-gold-6)",gold7:"var(--vef-gold-7)",gold8:"var(--vef-gold-8)",gold9:"var(--vef-gold-9)",gold10:"var(--vef-gold-10)",lime1:"var(--vef-lime-1)",lime2:"var(--vef-lime-2)",lime3:"var(--vef-lime-3)",lime4:"var(--vef-lime-4)",lime5:"var(--vef-lime-5)",lime6:"var(--vef-lime-6)",lime7:"var(--vef-lime-7)",lime8:"var(--vef-lime-8)",lime9:"var(--vef-lime-9)",lime10:"var(--vef-lime-10)",colorText:"var(--vef-color-text)",colorTextSecondary:"var(--vef-color-text-secondary)",colorTextTertiary:"var(--vef-color-text-tertiary)",colorTextQuaternary:"var(--vef-color-text-quaternary)",colorTextSlate:"#64748b",colorFill:"var(--vef-color-fill)",colorFillSecondary:"var(--vef-color-fill-secondary)",colorFillTertiary:"var(--vef-color-fill-tertiary)",colorFillQuaternary:"var(--vef-color-fill-quaternary)",colorBgSolid:"var(--vef-color-bg-solid)",colorBgSolidHover:"var(--vef-color-bg-solid-hover)",colorBgSolidActive:"var(--vef-color-bg-solid-active)",colorBgContainer:"var(--vef-color-bg-container)",colorBgElevated:"var(--vef-color-bg-elevated)",colorBgBlur:"var(--vef-color-bg-blur)",colorBorder:"var(--vef-color-border)",colorBorderSecondary:"var(--vef-color-border-secondary)",colorPrimaryBg:"var(--vef-color-primary-bg)",colorPrimaryBgHover:"var(--vef-color-primary-bg-hover)",colorPrimaryBorder:"var(--vef-color-primary-border)",colorPrimaryBorderHover:"var(--vef-color-primary-border-hover)",colorPrimaryHover:"var(--vef-color-primary-hover)",colorPrimaryActive:"var(--vef-color-primary-active)",colorPrimaryTextHover:"var(--vef-color-primary-text-hover)",colorPrimaryText:"var(--vef-color-primary-text)",colorPrimaryTextActive:"var(--vef-color-primary-text-active)",colorSuccessBg:"var(--vef-color-success-bg)",colorSuccessBgHover:"var(--vef-color-success-bg-hover)",colorSuccessBorder:"var(--vef-color-success-border)",colorSuccessBorderHover:"var(--vef-color-success-border-hover)",colorSuccessHover:"var(--vef-color-success-hover)",colorSuccessActive:"var(--vef-color-success-active)",colorSuccessTextHover:"var(--vef-color-success-text-hover)",colorSuccessText:"var(--vef-color-success-text)",colorSuccessTextActive:"var(--vef-color-success-text-active)",colorErrorBg:"var(--vef-color-error-bg)",colorErrorBgHover:"var(--vef-color-error-bg-hover)",colorErrorBgFilledHover:"var(--vef-color-error-bg-filled-hover)",colorErrorBgActive:"var(--vef-color-error-bg-active)",colorErrorBorder:"var(--vef-color-error-border)",colorErrorBorderHover:"var(--vef-color-error-border-hover)",colorErrorHover:"var(--vef-color-error-hover)",colorErrorActive:"var(--vef-color-error-active)",colorErrorTextHover:"var(--vef-color-error-text-hover)",colorErrorText:"var(--vef-color-error-text)",colorErrorTextActive:"var(--vef-color-error-text-active)",colorWarningBg:"var(--vef-color-warning-bg)",colorWarningBgHover:"var(--vef-color-warning-bg-hover)",colorWarningBorder:"var(--vef-color-warning-border)",colorWarningBorderHover:"var(--vef-color-warning-border-hover)",colorWarningHover:"var(--vef-color-warning-hover)",colorWarningActive:"var(--vef-color-warning-active)",colorWarningTextHover:"var(--vef-color-warning-text-hover)",colorWarningText:"var(--vef-color-warning-text)",colorWarningTextActive:"var(--vef-color-warning-text-active)",colorInfoBg:"var(--vef-color-info-bg)",colorInfoBgHover:"var(--vef-color-info-bg-hover)",colorInfoBorder:"var(--vef-color-info-border)",colorInfoBorderHover:"var(--vef-color-info-border-hover)",colorInfoHover:"var(--vef-color-info-hover)",colorInfoActive:"var(--vef-color-info-active)",colorInfoTextHover:"var(--vef-color-info-text-hover)",colorInfoText:"var(--vef-color-info-text)",colorInfoTextActive:"var(--vef-color-info-text-active)",colorLinkHover:"var(--vef-color-link-hover)",colorLinkActive:"var(--vef-color-link-active)",colorBgMask:"var(--vef-color-bg-mask)",colorWhite:"var(--vef-color-white)",fontSizeSm:"var(--vef-font-size-sm)",fontSizeLg:"var(--vef-font-size-lg)",fontSizeXl:"var(--vef-font-size-xl)",fontSizeHeading1:"var(--vef-font-size-heading-1)",fontSizeHeading2:"var(--vef-font-size-heading-2)",fontSizeHeading3:"var(--vef-font-size-heading-3)",fontSizeHeading4:"var(--vef-font-size-heading-4)",fontSizeHeading5:"var(--vef-font-size-heading-5)",lineHeight:"var(--vef-line-height)",lineHeightLg:"var(--vef-line-height-lg)",lineHeightSm:"var(--vef-line-height-sm)",fontHeight:"var(--vef-font-height)",fontHeightLg:"var(--vef-font-height-lg)",fontHeightSm:"var(--vef-font-height-sm)",lineHeightHeading1:"var(--vef-line-height-heading-1)",lineHeightHeading2:"var(--vef-line-height-heading-2)",lineHeightHeading3:"var(--vef-line-height-heading-3)",lineHeightHeading4:"var(--vef-line-height-heading-4)",lineHeightHeading5:"var(--vef-line-height-heading-5)",controlHeightSm:"var(--vef-control-height-sm)",controlHeightXs:"var(--vef-control-height-xs)",controlHeightLg:"var(--vef-control-height-lg)",motionDurationFast:"var(--vef-motion-duration-fast)",motionDurationMid:"var(--vef-motion-duration-mid)",motionDurationSlow:"var(--vef-motion-duration-slow)",lineWidthBold:"var(--vef-line-width-bold)",borderRadiusXs:"var(--vef-border-radius-xs)",borderRadiusSm:"var(--vef-border-radius-sm)",borderRadiusLg:"var(--vef-border-radius-lg)",borderRadiusOuter:"var(--vef-border-radius-outer)",colorFillContent:"var(--vef-color-fill-content)",colorFillContentHover:"var(--vef-color-fill-content-hover)",colorFillAlt:"var(--vef-color-fill-alter)",colorBgContainerDisabled:"var(--vef-color-bg-container-disabled)",colorBorderBg:"var(--vef-color-border-bg)",colorSplit:"var(--vef-color-split)",colorTextPlaceholder:"var(--vef-color-text-placeholder)",colorTextDisabled:"var(--vef-color-text-disabled)",colorTextHeading:"var(--vef-color-text-heading)",colorTextLabel:"var(--vef-color-text-label)",colorTextDescription:"var(--vef-color-text-description)",colorTextLightSolid:"var(--vef-color-text-light-solid)",colorHighlight:"var(--vef-color-highlight)",colorBgTextHover:"var(--vef-color-bg-text-hover)",colorBgTextActive:"var(--vef-color-bg-text-active)",colorIcon:"var(--vef-color-icon)",colorIconHover:"var(--vef-color-icon-hover)",colorErrorOutline:"var(--vef-color-error-outline)",colorWarningOutline:"var(--vef-color-warning-outline)",fontSizeIcon:"var(--vef-font-size-icon)",lineWidthFocus:"var(--vef-line-width-focus)",controlOutlineWidth:"var(--vef-control-outline-width)",controlInteractiveSize:"var(--vef-control-interactive-size)",controlItemBgHover:"var(--vef-control-item-bg-hover)",controlItemBgActive:"var(--vef-control-item-bg-active)",controlItemBgActiveHover:"var(--vef-control-item-bg-active-hover)",controlItemBgActiveDisabled:"var(--vef-control-item-bg-active-disabled)",controlTmpOutline:"var(--vef-control-tmp-outline)",controlOutline:"var(--vef-control-outline)",fontWeightStrong:"var(--vef-font-weight-strong)",opacityLoading:"var(--vef-opacity-loading)",linkDecoration:"var(--vef-link-decoration)",linkHoverDecoration:"var(--vef-link-hover-decoration)",linkFocusDecoration:"var(--vef-link-focus-decoration)",controlPaddingHorizontal:"var(--vef-control-padding-horizontal)",controlPaddingHorizontalSm:"var(--vef-control-padding-horizontal-sm)",paddingXxs:"var(--vef-padding-xxs)",paddingXs:"var(--vef-padding-xs)",paddingSm:"var(--vef-padding-sm)",padding:"var(--vef-padding)",paddingMd:"var(--vef-padding-md)",paddingLg:"var(--vef-padding-lg)",paddingXl:"var(--vef-padding-xl)",paddingContentHorizontalLg:"var(--vef-padding-content-horizontal-lg)",paddingContentVerticalLg:"var(--vef-padding-content-vertical-lg)",paddingContentHorizontal:"var(--vef-padding-content-horizontal)",paddingContentVertical:"var(--vef-padding-content-vertical)",paddingContentHorizontalSm:"var(--vef-padding-content-horizontal-sm)",paddingContentVerticalSm:"var(--vef-padding-content-vertical-sm)",marginXxs:"var(--vef-margin-xxs)",marginXs:"var(--vef-margin-xs)",marginSm:"var(--vef-margin-sm)",margin:"var(--vef-margin)",marginMd:"var(--vef-margin-md)",marginLg:"var(--vef-margin-lg)",marginXl:"var(--vef-margin-xl)",marginXxl:"var(--vef-margin-xxl)",boxShadow:"var(--vef-box-shadow)",boxShadowSecondary:"var(--vef-box-shadow-secondary)",boxShadowTertiary:"var(--vef-box-shadow-tertiary)",boxShadowPopoverArrow:"var(--vef-box-shadow-popover-arrow)",boxShadowCard:"var(--vef-box-shadow-card)",boxShadowDrawerRight:"var(--vef-box-shadow-drawer-right)",boxShadowDrawerLeft:"var(--vef-box-shadow-drawer-left)",boxShadowDrawerUp:"var(--vef-box-shadow-drawer-up)",boxShadowDrawerDown:"var(--vef-box-shadow-drawer-down)",boxShadowTabsOverflowLeft:"var(--vef-box-shadow-tabs-overflow-left)",boxShadowTabsOverflowRight:"var(--vef-box-shadow-tabs-overflow-right)",boxShadowTabsOverflowTop:"var(--vef-box-shadow-tabs-overflow-top)",boxShadowTabsOverflowBottom:"var(--vef-box-shadow-tabs-overflow-bottom)",boxShadowElevated:"0 0 1px rgb(0 0 0 / 30%), 0 4px 14px rgb(0 0 0 / 10%)"};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/types.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/utils.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const n=require("radashi");function isAsyncFunction(e){return!!n.isFunction(e)&&("AsyncFunction"===e.constructor.name||"[object AsyncFunction]"===Object.prototype.toString.call(e)||e.toString().startsWith("async "))}function doBuildRouteParentMenusMappings(n,e=[]){return n.flatMap((n=>{if("item"===n.type)return[[n.key,[n,e]]];if("submenu"===n.type||"group"===n.type){const{children:t,...i}=n;return[[i.key,[{...i,children:[]},e]],...doBuildRouteParentMenusMappings(t,[...e,{...i,children:t.filter((n=>"divider"!==n.type)).map((n=>"item"===n.type?{...n}:{...n,children:[]}))}])]}return[]}))}exports.buildRouteParentMenusMappings=function buildRouteParentMenusMappings(n){return new Map(doBuildRouteParentMenusMappings(n))},exports.constantCase=function constantCase(e){return n.snake(e).toUpperCase()},exports.difference=function difference(n,e){return Object.keys(e).filter((t=>n[t]!==e[t])).reduce(((n,t)=>(n[t]=e[t],n)),{})},exports.invokeMaybeAsyncFn=async function invokeMaybeAsyncFn(n,{beforeInvoke:e,onSuccess:t,onFinally:i},...r){if(isAsyncFunction(n))try{e?.();const i=await n(...r);return t?.(i),i}finally{i?.()}else{const s=n(...r);if(!(s instanceof Promise))return s;try{e?.();const n=await s;return t?.(n),n}finally{i?.()}}},exports.isAsyncFunction=isAsyncFunction,exports.isIternalFunction=function isIternalFunction(n){return!!(isAsyncFunction(n)&&Reflect.has(n,"name")&&Reflect.has(n,"key")&&"apiFn"===Reflect.get(n,"name"))};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("validator");function isDate(e){return i.isDate(e,{format:"YYYY-MM-DD",strictMode:!0})}function isTime(e,r){return i.isTime(e,r)}const e=/^[\u4E00-\u9FA5]+\d*$/;exports.isAfter=function isAfter(e,r){return i.isAfter(e,r)},exports.isAlpha=function isAlpha(e){return i.isAlpha(e)},exports.isAlphanumeric=function isAlphanumeric(e){return i.isAlphanumeric(e)},exports.isAscii=function isAscii(e){return i.isAscii(e)},exports.isBefore=function isBefore(e,r){return i.isBefore(e,r)},exports.isBlank=function isBlank(e){return i.isEmpty(e,{ignore_whitespace:!0})},exports.isBoolean=function isBoolean(e){return i.isBoolean(e,{loose:!1})},exports.isChineseName=function isChineseName(i){return e.test(i)},exports.isDate=isDate,exports.isDateTime=function isDateTime(i){const[e,r]=i.split(" ",2);return isDate(e)&&isTime(r)},exports.isDecimal=function isDecimal(e){return i.isDecimal(e)},exports.isEmail=function isEmail(e){return i.isEmail(e)},exports.isEmpty=function isEmpty(e){return i.isEmpty(e)},exports.isFloat=function isFloat(e,r){return i.isFloat(e,r)},exports.isHexColor=function isHexColor(e){return i.isHexColor(e)},exports.isIdentityCard=function isIdentityCard(e){return i.isIdentityCard(e,"zh-CN")},exports.isIn=function isIn(e,r){return i.isIn(e,r)},exports.isInt=function isInt(e,r){return i.isInt(e,r)},exports.isIp=function isIp(e,r){return i.isIP(e,r)},exports.isIpRange=function isIpRange(e,r){return i.isIPRange(e,r)},exports.isJson=function isJson(e){return i.isJSON(e)},exports.isJwt=function isJwt(e){return i.isJWT(e)},exports.isLatLong=function isLatLong(e){return i.isLatLong(e)},exports.isLength=function isLength(e,r){return i.isLength(e,r)},exports.isMimeType=function isMimeType(e){return i.isMimeType(e)},exports.isMobilePhone=function isMobilePhone(e){return i.isMobilePhone(e,"zh-CN")},exports.isNumeric=function isNumeric(e){return i.isNumeric(e)},exports.isPort=function isPort(e){return i.isPort(e)},exports.isPostalCode=function isPostalCode(e){return i.isPostalCode(e,"CN")},exports.isSemVer=function isSemVer(e){return i.isSemVer(e)},exports.isSlug=function isSlug(e){return i.isSlug(e)},exports.isStrongPassword=function isStrongPassword(e){return i.isStrongPassword(e,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})},exports.isTime=isTime,exports.isUri=function isUri(e){return i.isURL(e,{protocols:[],require_tld:!1,require_protocol:!1,require_host:!1,require_port:!1,require_valid_protocol:!1,allow_underscores:!0,allow_fragments:!1,allow_query_components:!1,allow_protocol_relative_urls:!1})},exports.isUrl=function isUrl(e){return i.isURL(e,{protocols:["http","https"],require_tld:!0,require_protocol:!0,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!0})},exports.isUuid=function isUuid(e,r){return i.isUUID(e,r)},exports.matches=function matches(e,r,t){return i.matches(e,r,t)};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/lib/yaml.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /*! VefFramework version: 1.0.96, build time: 2025-03-06T09:11:20.231Z, made by Venus. */
1
+ /*! VefFramework version: 1.0.98, build time: 2025-03-07T07:45:28.104Z, made by Venus. */
2
2
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("js-yaml");exports.loadYaml=function loadYaml(o){return e.load(o)};
3
3
  /*! VefFramework is a blazingly high-level, modern, flexible, easy-to-use UI framework made by Venus. Follow me on Github: https://github.com/ilxqx! @ilxqx */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vef-framework/shared",
3
3
  "type": "module",
4
- "version": "1.0.96",
4
+ "version": "1.0.98",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@9.15.0",
7
7
  "description": "Shared fundamental to the VEF framework",