@vef-framework/shared 1.0.40 → 1.0.41
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 +1 -1
- package/es/constants.js +1 -1
- package/es/context.js +2 -2
- package/es/dom.js +1 -1
- package/es/error.js +1 -1
- package/es/event.js +1 -1
- package/es/expression.js +1 -1
- package/es/function.js +1 -1
- package/es/icons.js +1 -1
- package/es/id.js +1 -1
- package/es/index.js +2 -2
- package/es/lib.js +2 -2
- package/es/message.js +2 -2
- package/es/path.js +1 -1
- package/es/pinyin.js +1 -1
- package/es/security.js +1 -1
- package/es/store.js +1 -1
- package/es/styles.js +1 -1
- package/es/temporal.js +1 -1
- package/es/theme-variables.js +1 -1
- package/es/utils.js +2 -2
- package/es/validation.js +1 -1
- package/lib/color.cjs +1 -1
- package/lib/constants.cjs +1 -1
- package/lib/context.cjs +2 -2
- package/lib/dom.cjs +1 -1
- package/lib/error.cjs +1 -1
- package/lib/event.cjs +1 -1
- package/lib/expression.cjs +1 -1
- package/lib/function.cjs +1 -1
- package/lib/icons.cjs +1 -1
- package/lib/id.cjs +1 -1
- package/lib/index.cjs +2 -2
- package/lib/lib.cjs +2 -2
- package/lib/message.cjs +2 -2
- package/lib/path.cjs +1 -1
- package/lib/pinyin.cjs +1 -1
- package/lib/security.cjs +1 -1
- package/lib/store.cjs +1 -1
- package/lib/styles.cjs +1 -1
- package/lib/temporal.cjs +1 -1
- package/lib/theme-variables.cjs +1 -1
- package/lib/types.cjs +1 -1
- package/lib/utils.cjs +2 -2
- package/lib/validation.cjs +1 -1
- package/package.json +2 -1
- package/types/lib.d.ts +4 -2
- package/types/types.d.ts +106 -4
- package/types/utils.d.ts +8 -1
package/es/color.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{colord as o}from"colord";function r(r){return o(r).isValid()}export{r as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
const e=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","gold","lime"],n=["primary","info","success","warning","error"],o=[...e,...n],r="creation",a="modification",i="audit",l=[r,a,i];export{i as auditFormScene,o as colorTypes,r as creationFormScene,e as defaultColorTypes,a as modificationFormScene,l as presetFormScenes,n as semanticColorTypes};
|
|
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.
|
|
2
|
-
import{useRef as r}from"react";import{createContext as t,useContextSelector as e,useContext as o}from"use-context-selector";import"./lib.js";import{isNullish as n}from"radashi";import
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
import{useRef as r}from"react";import{createContext as t,useContextSelector as e,useContext as o}from"use-context-selector";import"./lib.js";import{isNullish as n}from"radashi";import{shallow as u}from"zustand/shallow";function c(c){const i=t(c);return{ContextProvider:i.Provider,useContextSelector:t=>{const o=r();return e(i,(r=>{if(n(r))return;const e=t(r);return o.current&&u(e,o.current)?o.current:(o.current=e,e)}))},useContext:()=>o(i)}}export{c as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
function t(t,e,o=!1){if(e){const o=t.querySelector(e);if(!o)return 0;t=o}const r=t.offsetHeight;if(!o)return r;const n=t.computedStyleMap();return r+n.get("margin-top").value+n.get("margin-bottom").value}export{t as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
var e=Object.defineProperty,r=(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 o extends Error{constructor(e,o){super(o),r(this,"code"),this.code=e}}export{o as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import t from"mitt";function r(){return t()}export{r as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import"./lib.js";import{isObject as n,isString as t,isFunction as r}from"radashi";const e=new WeakMap;function o(r){return n(r)&&"expression"in r&&t(r.expression)}function i(n){return r(n)||o(n)}function s(n,...t){const r=e.get(n);if(r)return r;const o=new Function(...t);return e.set(n,o),o}export{s as compileDynamicFn,o as isExpression,i as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
function o(...o){return(...n)=>{for(const r of o)r&&r(...n)}}export{o as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{jsx as e,jsxs as r}from"@emotion/react/jsx-runtime";function t(r){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{d:"M5 11l6 6l10 -10",fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})})})}function s(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M8 12l3 3l5 -5",strokeDasharray:14,strokeDashoffset:14,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"14;0"})})]})})}function a(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M19 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M7 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"10;0"})})]})})}function o(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M21 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e("path",{d:"M14 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"16;0"})})]})})}function n(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:16,strokeDashoffset:16,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 12h14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"16;0"})}),e("path",{d:"M12 5v14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"16;0"})})]})})}function i(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M7 12h10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"12;0"})}),e("path",{d:"M12 7v10",strokeDasharray:12,strokeDashoffset:12,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",fill:"freeze",values:"12;0"})})]})})}function l(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M5 5l14 14",children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})}),e("path",{d:"M19 5l-14 14",children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"24;0"})})]})})}function d(t){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t,children:r("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e("path",{d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e("path",{d:"M12 12l4 4M12 12l-4 -4M12 12l-4 4M12 12l4 -4",strokeDasharray:8,strokeDashoffset:8,children:e("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"8;0"})})]})})}function h(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 f(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 u(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 c(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 k(r){return e("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 v(r){return e("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:e("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})}export{n as VefIconAdd,i as VefIconAddCircle,c as VefIconAlertCircle,k as VefIconAlertTriangle,v as VefIconCheck,t as VefIconConfirm,s as VefIconConfirmCircle,u as VefIconInfoCircle,a as VefIconMenuFoldLeft,o as VefIconMenuUnfoldLeft,l as VefIconRemove,d as VefIconRemoveCircle,h as VefIconTick,f as VefIconTickCircle};
|
|
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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{customAlphabet as n}from"nanoid";const o=n("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);function r(){return o()}export{r as 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.
|
|
2
|
-
export{isValidColor}from"./color.js";export{auditFormScene,colorTypes,creationFormScene,defaultColorTypes,modificationFormScene,presetFormScenes,semanticColorTypes}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{VefIconAdd,VefIconAddCircle,VefIconAlertCircle,VefIconAlertTriangle,VefIconCheck,VefIconConfirm,VefIconConfirmCircle,VefIconInfoCircle,VefIconMenuFoldLeft,VefIconMenuUnfoldLeft,VefIconRemove,VefIconRemoveCircle,VefIconTick,VefIconTickCircle}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{constantCase,difference,invokeMaybeAsyncFn,isAsyncFunction}from"./utils.js";import*as e from"./validation.js";export{e as validator};export{default as isDeepEqual}from"react-fast-compare";export{shallow as isShallowEqual}from"zustand/shallow";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";
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
export{isValidColor}from"./color.js";export{auditFormScene,colorTypes,creationFormScene,defaultColorTypes,modificationFormScene,presetFormScenes,semanticColorTypes}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{VefIconAdd,VefIconAddCircle,VefIconAlertCircle,VefIconAlertTriangle,VefIconCheck,VefIconConfirm,VefIconConfirmCircle,VefIconInfoCircle,VefIconMenuFoldLeft,VefIconMenuUnfoldLeft,VefIconRemove,VefIconRemoveCircle,VefIconTick,VefIconTickCircle}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}from"./utils.js";import*as e from"./validation.js";export{e as validator};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.
|
|
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{default as isDeepEqual}from"react-fast-compare";export{shallow as isShallowEqual}from"zustand/shallow";
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
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.
|
|
2
|
-
import n from"@ant-design/icons";import{Modal as o,message as t,notification as e}from"antd";import{createElement as r}from"react";import{VefIconCheck as i,VefIconTickCircle as c,VefIconInfoCircle as s,VefIconAlertTriangle as a,VefIconAlertCircle as f}from"./icons.js";import"./lib.js";import{isFunction as u}from"radashi";const{confirm:l,info:p,success:m,warning:g,error:w}=o,d=r(n,{component:i}),h=r(n,{component:c}),v=r(n,{component:s}),y=r(n,{component:a}),E=r(n,{component:f}),b=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:c}),q=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:s}),C=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:a}),x=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:f});function A(n){t.open({type:"success",content:n,duration:2,icon:h})}function N(n){t.open({type:"info",content:n,duration:3,icon:v})}function k(n){t.open({type:"warning",content:n,duration:3,icon:y})}function O(n){t.open({type:"error",content:n,duration:4,icon:E})}function T(n){const o=t.open({type:"loading",content:n,duration:0});return()=>o()}const j="提示";function B(n,o,t){const r=arguments.length;if(r<1)throw new Error("showSuccessNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"success",message:i,description:c,duration:4,closable:!0,btn:s,icon:b})}function I(n,o,t){const r=arguments.length;if(r<1)throw new Error("showInfoNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"info",message:i,description:c,duration:5,closable:!0,btn:s,icon:q})}function P(n,o,t){const r=arguments.length;if(r<1)throw new Error("showWarningNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"warning",message:i,description:c,duration:
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
import n from"@ant-design/icons";import{Modal as o,message as t,notification as e}from"antd";import{createElement as r}from"react";import{VefIconCheck as i,VefIconTickCircle as c,VefIconInfoCircle as s,VefIconAlertTriangle as a,VefIconAlertCircle as f}from"./icons.js";import"./lib.js";import{isFunction as u}from"radashi";const{confirm:l,info:p,success:m,warning:g,error:w}=o,d=r(n,{component:i}),h=r(n,{component:c}),v=r(n,{component:s}),y=r(n,{component:a}),E=r(n,{component:f}),b=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:c}),q=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:s}),C=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:a}),x=r(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:f});function A(n){t.open({type:"success",content:n,duration:2,icon:h})}function N(n){t.open({type:"info",content:n,duration:3,icon:v})}function k(n){t.open({type:"warning",content:n,duration:3,icon:y})}function O(n){t.open({type:"error",content:n,duration:4,icon:E})}function T(n){const o=t.open({type:"loading",content:n,duration:0});return()=>o()}const j="提示";function B(n,o,t){const r=arguments.length;if(r<1)throw new Error("showSuccessNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"success",message:i,description:c,duration:4,closable:!0,btn:s,icon:b})}function I(n,o,t){const r=arguments.length;if(r<1)throw new Error("showInfoNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"info",message:i,description:c,duration:5,closable:!0,btn:s,icon:q})}function P(n,o,t){const r=arguments.length;if(r<1)throw new Error("showWarningNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"warning",message:i,description:c,duration:6,closable:!0,btn:s,icon:C})}function S(n,o,t){const r=arguments.length;if(r<1)throw new Error("showErrorNotification requires at least one argument");const i=r>1?n:j,c=r>1?o:n,s=3===r?t:void 0;e.open({type:"error",message:i,description:c,duration:10,closable:!0,btn:s,icon:x})}const W={color:"default",variant:"text"},z={icon:d};function D(n,o,t,e){const r=arguments.length;if(r<2)throw new Error("showConfirmation requires at least two arguments");const i=r>2?n:"提示",c=2===r?n:o,s=2===r?o:t,{okText:a,cancelText:f,onCancel:p,onAfterOpen:m,onAfterClose:g}=e??{},{destroy:w}=l({title:i,content:c,cancelButtonProps:W,okButtonProps:z,centered:!0,icon:y,onOk:s,okText:a,cancelText:f,onCancel:p,afterOpenChange:u(m)||u(g)?n=>{n?m?.():g?.()}:void 0});return w}const F={success:m,info:p,warning:g,error:w},G={success:h,info:v,warning:y,error:E},H="👍🏻 好的,知道了";function J(n,o,t=j,e,r){const{okText:i=H,onCancel:c,onAfterOpen:s,onAfterClose:a}=r??{},{destroy:f}=F[n]({title:t,content:o,icon:G[n],centered:!0,onOk:e,okText:i,onCancel:c,afterOpenChange:u(s)||u(a)?n=>{n?s?.():a?.()}:void 0});return f}function K(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showSuccessAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return J("success",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function L(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showInfoAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return J("info",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function M(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showWarningAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return J("warning",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}function Q(n,o,t,e){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const i=1===r||u(o)?void 0:n;return J("error",1===r||u(o)?n:o,i,2===r||u(o)?o:t,e)}export{d as checkIcon,j as defaultMessageTitle,E as errorIcon,v as infoIcon,D as showConfirmation,Q as showErrorAlert,O as showErrorMessage,S as showErrorNotification,L as showInfoAlert,N as showInfoMessage,I as showInfoNotification,T as showLoadingMessage,K as showSuccessAlert,A as showSuccessMessage,B as showSuccessNotification,M as showWarningAlert,k as showWarningMessage,P as showWarningNotification,h as successIcon,y 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import n from"path-browserify";const{basename:r,dirname:t,extname:o,isAbsolute:e,join:i,normalize:u}=n;function c(n,t=!0){const e=t?o(n):void 0;return r(n,e)}function f(n){return o(n)}function a(n){return t(n)}function m(...n){return i(...n)}function s(n){return e(n)}function b(n){return u(n)}export{c as extractBaseName,a as extractDirName,f as extractExtName,s as isAbsolutePath,m as joinPaths,b as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{pinyin as n}from"pinyin-pro";function e(e){return n(e,{pattern:"pinyin",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}function o(e){return n(e,{pattern:"first",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})}export{e as parsePinyin,o as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import t from"jsencrypt";function e(e,r){const n=new t;n.setPublicKey(r);const o=n.encrypt(e);if(!o)throw new Error(`Failed to encrypt value [${e}] using RSA`);return o}function r(e,r){const n=new t;n.setPrivateKey(r);const o=n.decrypt(e);if(!o)throw new Error(`Failed to decrypt value [${e}] using RSA`);return o}export{r as decryptRsa,e as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{createContext as t,useState as r,useRef as e,useEffect as o,createElement as n,useContext as i}from"react";import{createJSONStorage as a,persist as s,subscribeWithSelector as m}from"zustand/middleware";import{createWithEqualityFn as u,useStoreWithEqualityFn as l}from"zustand/traditional";import{createStore as c}from"zustand/vanilla";import"./lib.js";import{constantCase as d}from"./utils.js";import{isNullish as f}from"radashi";import{shallow as p}from"zustand/shallow";function S(t,r){const e=r?.name??"UNKNOWN",o=r?.storage??"local",n=r?r.selector:()=>null,i=function(t){const r=a((()=>"local"===t?localStorage:sessionStorage));return{getItem:r.getItem,setItem(t,e){f(e.state)||r.setItem(t,e)},removeItem:r.removeItem}}(o);return u(s(m(t),{name:`__VEF_STORE__${d(e)}__`,storage:i,version:1,partialize:n}),p)}function v(t){return c(m(t))}function _(t,r,e){return l(t,r,e??p)}function g(a,s){const m=t(null),u=()=>{const t=i(m);if(!t)throw new Error(`${a}Store can be used only inside ${a}StoreProvider`);return t};return{StoreProvider:({initialState:t,children:i})=>{const[a]=r((()=>v(s(t)))),u=e(!1);return o((()=>()=>{u.current=!1}),[]),o((()=>{u.current||(u.current=!0),t&&a.setState({...t})}),[t,a]),n(m.Provider,{value:a},i)},useStore:t=>_(u(),t),useStoreApi:u}}export{g as createComponentStore,S as createStore,v as createUnboundStore,_ as 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import{tz as n}from"@date-fns/tz";import{format as t}from"date-fns";import{zhCN as a}from"date-fns/locale";function o(){return new Date}function r(){return t(o(),"yyyy-MM-dd",{locale:a,in:n("Asia/Shanghai")})}function e(){return t(o(),"PPPPpp",{locale:a,in:n("Asia/Shanghai")})}export{o as getNowDate,r as getNowDateString,e as 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 */
|
package/es/theme-variables.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
const e={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.
|
|
2
|
-
import"./lib.js";import{isFunction as t,snake as n}from"radashi";function
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
import"./lib.js";import{isFunction as t,snake as n}from"radashi";function e(n){return!!t(n)&&("AsyncFunction"===n.constructor.name||"[object AsyncFunction]"===Object.prototype.toString.call(n)||n.toString().startsWith("async "))}async function r(t,{beforeInvoke:n,onSuccess:r,onFinally:i},...o){if(e(t))try{n?.();const e=await t(...o);return r?.(e),e}finally{i?.()}else{const e=t(...o);if(!(e instanceof Promise))return e;try{n?.();const t=await e;return r?.(t),t}finally{i?.()}}}function i(t,n){return Object.keys(n).filter((e=>t[e]!==n[e])).reduce(((t,e)=>(t[e]=n[e],t)),{})}function o(t){return n(t).toUpperCase()}function c(t){return new Map(u(t))}function u(t,n=[]){return t.flatMap((t=>{if("item"===t.type)return[[t.key,[t,n]]];if("submenu"===t.type||"group"===t.type){const{children:e,...r}=t;return[[r.key,[{...r,children:[]},n]],...u(e,[...n,{...r,children:e.filter((t=>"divider"!==t.type)).map((t=>"item"===t.type?{...t}:{...t,children:[]}))}])]}return[]}))}export{c as buildRouteParentMenusMappings,o as constantCase,i as difference,r as invokeMaybeAsyncFn,e as isAsyncFunction};
|
|
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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
import n from"validator";function r(r){return n.isAlpha(r)}function t(r){return n.isAlphanumeric(r)}function i(r){return n.isAscii(r)}function e(r){return n.isNumeric(r)}function o(r){return n.isDecimal(r)}function u(r,t){return n.isFloat(r,t)}function s(r){return n.isBoolean(r,{loose:!1})}function c(r){return n.isDate(r,{format:"YYYY-MM-DD",strictMode:!0})}function f(r){return n.isEmpty(r)}function l(r){return n.isEmpty(r,{ignore_whitespace:!0})}function a(r){return n.isIdentityCard(r,"zh-CN")}function p(r,t){return n.isAfter(r,t)}function m(r,t){return n.isBefore(r,t)}function _(r){return n.isEmail(r)}function d(r){return n.isHexColor(r)}function h(r,t){return n.isIn(r,t)}function q(r,t){return n.isInt(r,t)}function g(r,t){return n.isIP(r,t)}function w(r,t){return n.isIPRange(r,t)}function L(r){return n.isJSON(r)}function y(r){return n.isJWT(r)}function C(r){return n.isLatLong(r)}function I(r,t){return n.isLength(r,t)}function N(r){return n.isMimeType(r)}function P(r){return n.isMobilePhone(r,"zh-CN")}function A(r){return n.isPort(r)}function D(r){return n.isPostalCode(r,"CN")}function M(r){return n.isSemVer(r)}function S(r){return n.isSlug(r)}function U(r){return n.isStrongPassword(r,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})}function v(r,t){return n.isTime(r,t)}function E(r){return n.isURL(r,{protocols:["http","https"],require_tld:!0,require_protocol:!0,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!0})}function Y(r){return n.isURL(r,{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 b(r,t){return n.isUUID(r,t)}function R(n){const[r,t]=n.split(" ",2);return c(r)&&v(t)}function T(r,t,i){return n.matches(r,t,i)}const x=/^[\u4E00-\u9FA5]+\d*$/;function z(n){return x.test(n)}export{p as isAfter,r as isAlpha,t as isAlphanumeric,i as isAscii,m as isBefore,l as isBlank,s as isBoolean,z as isChineseName,c as isDate,R as isDateTime,o as isDecimal,_ as isEmail,f as isEmpty,u as isFloat,d as isHexColor,a as isIdentityCard,h as isIn,q as isInt,g as isIp,w as isIpRange,L as isJson,y as isJwt,C as isLatLong,I as isLength,N as isMimeType,P as isMobilePhone,e as isNumeric,A as isPort,D as isPostalCode,M as isSemVer,S as isSlug,U as isStrongPassword,v as isTime,Y as isUri,E as isUrl,b as isUuid,T as 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/lib/color.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("colord");exports.isValidColor=function(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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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",n="modification",s="audit",i=[t,n,s];exports.auditFormScene=s,exports.colorTypes=r,exports.creationFormScene=t,exports.defaultColorTypes=e,exports.modificationFormScene=n,exports.presetFormScenes=i,exports.semanticColorTypes=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/context.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
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("
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
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(n){const u=t.createContext(n);return{ContextProvider:u.Provider,useContextSelector:n=>{const s=e.useRef();return t.useContextSelector(u,(e=>{if(r.isNullish(e))return;const t=n(e);return s.current&&o.shallow(t,s.current)?s.current:(s.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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getElementHeight=function(t,e,o=!1){if(e){const o=t.querySelector(e);if(!o)return 0;t=o}const r=t.offsetHeight;if(!o)return r;const n=t.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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=Object.defineProperty,r=(r,t,o)=>((r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o)(r,"symbol"!=typeof t?t+"":t,o);class t extends Error{constructor(e,t){super(t),r(this,"code"),this.code=e}}exports.VefError=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/event.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("mitt");exports.createEventEmitter=function(){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 */
|
package/lib/expression.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const e=require("radashi"),n=new WeakMap;function i(n){return e.isObject(n)&&"expression"in n&&e.isString(n.expression)}exports.compileDynamicFn=function(e,...i){const r=n.get(e);if(r)return r;const t=new Function(...i);return n.set(e,t),t},exports.isExpression=i,exports.isFunctionOrExpression=function(n){return e.isFunction(n)||i(n)};
|
|
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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.mergeFns=function(...e){return(...t)=>{for(const o of e)o&&o(...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/icons.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@emotion/react/jsx-runtime");exports.VefIconAdd=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeDasharray:16,strokeDashoffset:16,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M5 12h14",children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"16;0"})}),e.jsx("path",{d:"M12 5v14",children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"16;0"})})]})})},exports.VefIconAddCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e.jsx("path",{d:"M7 12h10",strokeDasharray:12,strokeDashoffset:12,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"12;0"})}),e.jsx("path",{d:"M12 7v10",strokeDasharray:12,strokeDashoffset:12,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.8s",dur:"0.2s",fill:"freeze",values:"12;0"})})]})})},exports.VefIconAlertCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,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.VefIconAlertTriangle=function(s){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,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.VefIconCheck=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{d:"M20 6L9 17l-5-5",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})})},exports.VefIconConfirm=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsx("path",{d:"M5 11l6 6l10 -10",fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})})})},exports.VefIconConfirmCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M3 12c0 -4.97 4.03 -9 9 -9c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e.jsx("path",{d:"M8 12l3 3l5 -5",strokeDasharray:14,strokeDashoffset:14,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"14;0"})})]})})},exports.VefIconInfoCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,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.VefIconMenuFoldLeft=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"16;0"})}),e.jsx("path",{d:"M19 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e.jsx("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e.jsx("path",{d:"M7 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"10;0"})})]})})},exports.VefIconMenuUnfoldLeft=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M21 9l-3 3l3 3",strokeDasharray:10,strokeDashoffset:10,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.2s",fill:"freeze",values:"10;0"})}),e.jsx("path",{d:"M19 5h-14",strokeDasharray:16,strokeDashoffset:16,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.2s",dur:"0.2s",fill:"freeze",values:"16;0"})}),e.jsx("path",{d:"M14 12h-9",strokeDasharray:10,strokeDashoffset:10,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.2s",fill:"freeze",values:"10;0"})}),e.jsx("path",{d:"M19 19h-14",strokeDasharray:16,strokeDashoffset:16,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"16;0"})})]})})},exports.VefIconRemove=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeDasharray:24,strokeDashoffset:24,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M5 5l14 14",children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.4s",fill:"freeze",values:"24;0"})}),e.jsx("path",{d:"M19 5l-14 14",children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.4s",dur:"0.4s",fill:"freeze",values:"24;0"})})]})})},exports.VefIconRemoveCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,children:e.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,children:[e.jsx("path",{d:"M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9Z",strokeDasharray:64,strokeDashoffset:64,children:e.jsx("animate",{attributeName:"stroke-dashoffset",dur:"0.6s",fill:"freeze",values:"64;0"})}),e.jsx("path",{d:"M12 12l4 4M12 12l-4 -4M12 12l-4 4M12 12l4 -4",strokeDasharray:8,strokeDashoffset:8,children:e.jsx("animate",{attributeName:"stroke-dashoffset",begin:"0.6s",dur:"0.2s",fill:"freeze",values:"8;0"})})]})})},exports.VefIconTick=function(s){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,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.VefIconTickCircle=function(s){return e.jsx("svg",{"aria-hidden":!0,fill:"none",focusable:!1,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s,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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("nanoid").customAlphabet("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",18);exports.generateId=function(){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.
|
|
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"),c=require("./function.cjs"),p=require("./icons.cjs"),a=require("./id.cjs");require("./lib.cjs");const l=require("./message.cjs"),x=require("./path.cjs"),
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
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"),c=require("./function.cjs"),p=require("./icons.cjs"),a=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"),f=require("./styles.cjs"),g=require("./temporal.cjs"),d=require("./theme-variables.cjs");require("./types.cjs");const y=require("./utils.cjs"),j=require("./validation.cjs"),P=require("react-fast-compare"),O=require("zustand/shallow"),h=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.modificationFormScene=r.modificationFormScene,exports.presetFormScenes=r.presetFormScenes,exports.semanticColorTypes=r.semanticColorTypes,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=c.mergeFns,exports.VefIconAdd=p.VefIconAdd,exports.VefIconAddCircle=p.VefIconAddCircle,exports.VefIconAlertCircle=p.VefIconAlertCircle,exports.VefIconAlertTriangle=p.VefIconAlertTriangle,exports.VefIconCheck=p.VefIconCheck,exports.VefIconConfirm=p.VefIconConfirm,exports.VefIconConfirmCircle=p.VefIconConfirmCircle,exports.VefIconInfoCircle=p.VefIconInfoCircle,exports.VefIconMenuFoldLeft=p.VefIconMenuFoldLeft,exports.VefIconMenuUnfoldLeft=p.VefIconMenuUnfoldLeft,exports.VefIconRemove=p.VefIconRemove,exports.VefIconRemoveCircle=p.VefIconRemoveCircle,exports.VefIconTick=p.VefIconTick,exports.VefIconTickCircle=p.VefIconTickCircle,exports.generateId=a.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=f.bmq,exports.breakpoints=f.breakpoints,exports.styles=f.styles,exports.getNowDate=g.getNowDate,exports.getNowDateString=g.getNowDateString,exports.getTodayString=g.getTodayString,exports.themeVariables=d.themeVariables,exports.buildRouteParentMenusMappings=y.buildRouteParentMenusMappings,exports.constantCase=y.constantCase,exports.difference=y.difference,exports.invokeMaybeAsyncFn=y.invokeMaybeAsyncFn,exports.isAsyncFunction=y.isAsyncFunction,exports.validator=j,exports.isDeepEqual=P,Object.defineProperty(exports,"isShallowEqual",{enumerable:!0,get:()=>O.shallow}),Object.defineProperty(exports,"z",{enumerable:!0,get:()=>h.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.
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("radashi"),t=require("react-fast-compare"),
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
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.
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@ant-design/icons"),o=require("antd"),e=require("react"),t=require("./icons.cjs");require("./lib.cjs");const i=require("radashi"),{confirm:r,info:c,success:s,warning:a,error:u}=o.Modal,f=e.createElement(n,{component:t.VefIconCheck}),l=e.createElement(n,{component:t.VefIconTickCircle}),p=e.createElement(n,{component:t.VefIconInfoCircle}),g=e.createElement(n,{component:t.VefIconAlertTriangle}),w=e.createElement(n,{component:t.VefIconAlertCircle}),h=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:t.VefIconTickCircle}),m=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:t.VefIconInfoCircle}),d=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:t.VefIconAlertTriangle}),x=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:t.VefIconAlertCircle});const E="提示";const I={color:"default",variant:"text"},v={icon:f};const C={success:s,info:c,warning:a,error:u},A={success:l,info:p,warning:g,error:w},F="👍🏻 好的,知道了";function q(n,o,e=E,t,r){const{okText:c=F,onCancel:s,onAfterOpen:a,onAfterClose:u}=r??{},{destroy:f}=C[n]({title:e,content:o,icon:A[n],centered:!0,onOk:t,okText:c,onCancel:s,afterOpenChange:i.isFunction(a)||i.isFunction(u)?n=>{n?a?.():u?.()}:void 0});return f}exports.checkIcon=f,exports.defaultMessageTitle=E,exports.errorIcon=w,exports.infoIcon=p,exports.showConfirmation=function(n,o,e,t){const c=arguments.length;if(c<2)throw new Error("showConfirmation requires at least two arguments");const s=c>2?n:"提示",a=2===c?n:o,u=2===c?o:e,{okText:f,cancelText:l,onCancel:p,onAfterOpen:w,onAfterClose:h}=t??{},{destroy:m}=r({title:s,content:a,cancelButtonProps:I,okButtonProps:v,centered:!0,icon:g,onOk:u,okText:f,cancelText:l,onCancel:p,afterOpenChange:i.isFunction(w)||i.isFunction(h)?n=>{n?w?.():h?.()}:void 0});return m},exports.showErrorAlert=function(n,o,e,t){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const c=1===r||i.isFunction(o)?void 0:n;return q("error",1===r||i.isFunction(o)?n:o,c,2===r||i.isFunction(o)?o:e,t)},exports.showErrorMessage=function(n){o.message.open({type:"error",content:n,duration:4,icon:w})},exports.showErrorNotification=function(n,e,t){const i=arguments.length;if(i<1)throw new Error("showErrorNotification requires at least one argument");const r=i>1?n:E,c=i>1?e:n,s=3===i?t:void 0;o.notification.open({type:"error",message:r,description:c,duration:
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@ant-design/icons"),o=require("antd"),e=require("react"),t=require("./icons.cjs");require("./lib.cjs");const i=require("radashi"),{confirm:r,info:c,success:s,warning:a,error:u}=o.Modal,f=e.createElement(n,{component:t.VefIconCheck}),l=e.createElement(n,{component:t.VefIconTickCircle}),p=e.createElement(n,{component:t.VefIconInfoCircle}),g=e.createElement(n,{component:t.VefIconAlertTriangle}),w=e.createElement(n,{component:t.VefIconAlertCircle}),h=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-success",component:t.VefIconTickCircle}),m=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-info",component:t.VefIconInfoCircle}),d=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-warning",component:t.VefIconAlertTriangle}),x=e.createElement(n,{className:"vef-notification-notice-icon vef-notification-notice-icon-error",component:t.VefIconAlertCircle});const E="提示";const I={color:"default",variant:"text"},v={icon:f};const C={success:s,info:c,warning:a,error:u},A={success:l,info:p,warning:g,error:w},F="👍🏻 好的,知道了";function q(n,o,e=E,t,r){const{okText:c=F,onCancel:s,onAfterOpen:a,onAfterClose:u}=r??{},{destroy:f}=C[n]({title:e,content:o,icon:A[n],centered:!0,onOk:t,okText:c,onCancel:s,afterOpenChange:i.isFunction(a)||i.isFunction(u)?n=>{n?a?.():u?.()}:void 0});return f}exports.checkIcon=f,exports.defaultMessageTitle=E,exports.errorIcon=w,exports.infoIcon=p,exports.showConfirmation=function(n,o,e,t){const c=arguments.length;if(c<2)throw new Error("showConfirmation requires at least two arguments");const s=c>2?n:"提示",a=2===c?n:o,u=2===c?o:e,{okText:f,cancelText:l,onCancel:p,onAfterOpen:w,onAfterClose:h}=t??{},{destroy:m}=r({title:s,content:a,cancelButtonProps:I,okButtonProps:v,centered:!0,icon:g,onOk:u,okText:f,cancelText:l,onCancel:p,afterOpenChange:i.isFunction(w)||i.isFunction(h)?n=>{n?w?.():h?.()}:void 0});return m},exports.showErrorAlert=function(n,o,e,t){const r=arguments.length;if(r<1)throw new Error("showErrorAlert requires at least one argument");const c=1===r||i.isFunction(o)?void 0:n;return q("error",1===r||i.isFunction(o)?n:o,c,2===r||i.isFunction(o)?o:e,t)},exports.showErrorMessage=function(n){o.message.open({type:"error",content:n,duration:4,icon:w})},exports.showErrorNotification=function(n,e,t){const i=arguments.length;if(i<1)throw new Error("showErrorNotification requires at least one argument");const r=i>1?n:E,c=i>1?e:n,s=3===i?t:void 0;o.notification.open({type:"error",message:r,description:c,duration:10,closable:!0,btn:s,icon:x})},exports.showInfoAlert=function(n,o,e,t){const r=arguments.length;if(r<1)throw new Error("showInfoAlert requires at least one argument");const c=1===r||i.isFunction(o)?void 0:n;return q("info",1===r||i.isFunction(o)?n:o,c,2===r||i.isFunction(o)?o:e,t)},exports.showInfoMessage=function(n){o.message.open({type:"info",content:n,duration:3,icon:p})},exports.showInfoNotification=function(n,e,t){const i=arguments.length;if(i<1)throw new Error("showInfoNotification requires at least one argument");const r=i>1?n:E,c=i>1?e:n,s=3===i?t:void 0;o.notification.open({type:"info",message:r,description:c,duration:5,closable:!0,btn:s,icon:m})},exports.showLoadingMessage=function(n){const e=o.message.open({type:"loading",content:n,duration:0});return()=>e()},exports.showSuccessAlert=function(n,o,e,t){const r=arguments.length;if(r<1)throw new Error("showSuccessAlert requires at least one argument");const c=1===r||i.isFunction(o)?void 0:n;return q("success",1===r||i.isFunction(o)?n:o,c,2===r||i.isFunction(o)?o:e,t)},exports.showSuccessMessage=function(n){o.message.open({type:"success",content:n,duration:2,icon:l})},exports.showSuccessNotification=function(n,e,t){const i=arguments.length;if(i<1)throw new Error("showSuccessNotification requires at least one argument");const r=i>1?n:E,c=i>1?e:n,s=3===i?t:void 0;o.notification.open({type:"success",message:r,description:c,duration:4,closable:!0,btn:s,icon:h})},exports.showWarningAlert=function(n,o,e,t){const r=arguments.length;if(r<1)throw new Error("showWarningAlert requires at least one argument");const c=1===r||i.isFunction(o)?void 0:n;return q("warning",1===r||i.isFunction(o)?n:o,c,2===r||i.isFunction(o)?o:e,t)},exports.showWarningMessage=function(n){o.message.open({type:"warning",content:n,duration:3,icon:g})},exports.showWarningNotification=function(n,e,t){const i=arguments.length;if(i<1)throw new Error("showWarningNotification requires at least one argument");const r=i>1?n:E,c=i>1?e:n,s=3===i?t:void 0;o.notification.open({type:"warning",message:r,description:c,duration:6,closable:!0,btn:s,icon:d})},exports.successIcon=l,exports.warningIcon=g;
|
|
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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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:o,join:i,normalize:a}=t;exports.extractBaseName=function(t,r=!0){const o=r?n(t):void 0;return e(t,o)},exports.extractDirName=function(t){return r(t)},exports.extractExtName=function(t){return n(t)},exports.isAbsolutePath=function(t){return o(t)},exports.joinPaths=function(...t){return i(...t)},exports.normalizePath=function(t){return a(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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("pinyin-pro");exports.parsePinyin=function(e){return n.pinyin(e,{pattern:"pinyin",toneType:"none",type:"array",mode:"normal",nonZh:"consecutive"})},exports.parsePinyinFirstLetter=function(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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("jsencrypt");exports.decryptRsa=function(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(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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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 i(e){return o.createStore(t.subscribeWithSelector(e))}function a(e,t,o){return r.useStoreWithEqualityFn(e,t,o??u.shallow)}exports.createComponentStore=function(t,r){const o=e.createContext(null),n=()=>{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((()=>i(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=>a(n(),e),useStoreApi:n}},exports.createStore=function(e,o){const i=o?.name??"UNKNOWN",a=o?.storage??"local",c=o?o.selector:()=>null,l=function(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}}(a);return r.createWithEqualityFn(t.persist(t.subscribeWithSelector(e),{name:`__VEF_STORE__${n.constantCase(i)}__`,storage:l,version:1,partialize:c}),u.shallow)},exports.createUnboundStore=i,exports.useUnboundStore=a;
|
|
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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@date-fns/tz"),t=require("date-fns"),r=require("date-fns/locale");function n(){return new Date}exports.getNowDate=n,exports.getNowDateString=function(){return t.format(n(),"yyyy-MM-dd",{locale:r.zhCN,in:e.tz("Asia/Shanghai")})},exports.getTodayString=function(){return t.format(n(),"PPPPpp",{locale:r.zhCN,in:e.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 */
|
package/lib/theme-variables.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.themeVariables={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.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, 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.
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./lib.cjs");const e=require("radashi");function t(t){return!!e.isFunction(t)&&("AsyncFunction"===t.constructor.name||"[object AsyncFunction]"===Object.prototype.toString.call(t)||t.toString().startsWith("async "))}function n(e,t=[]){return e.flatMap((e=>{if("item"===e.type)return[[e.key,[e,t]]];if("submenu"===e.type||"group"===e.type){const{children:r,...i}=e;return[[i.key,[{...i,children:[]},t]],...n(r,[...t,{...i,children:r.filter((e=>"divider"!==e.type)).map((e=>"item"===e.type?{...e}:{...e,children:[]}))}])]}return[]}))}exports.buildRouteParentMenusMappings=function(e){return new Map(n(e))},exports.constantCase=function(t){return e.snake(t).toUpperCase()},exports.difference=function(e,t){return Object.keys(t).filter((n=>e[n]!==t[n])).reduce(((e,n)=>(e[n]=t[n],e)),{})},exports.invokeMaybeAsyncFn=async function(e,{beforeInvoke:n,onSuccess:r,onFinally:i},...o){if(t(e))try{n?.();const t=await e(...o);return r?.(t),t}finally{i?.()}else{const t=e(...o);if(!(t instanceof Promise))return t;try{n?.();const e=await t;return r?.(e),e}finally{i?.()}}},exports.isAsyncFunction=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/validation.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.41, build time: 2024-12-25T08:44:07.740Z, made by Venus. */
|
|
2
2
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("validator");function t(t){return r.isDate(t,{format:"YYYY-MM-DD",strictMode:!0})}function e(t,e){return r.isTime(t,e)}const i=/^[\u4E00-\u9FA5]+\d*$/;exports.isAfter=function(t,e){return r.isAfter(t,e)},exports.isAlpha=function(t){return r.isAlpha(t)},exports.isAlphanumeric=function(t){return r.isAlphanumeric(t)},exports.isAscii=function(t){return r.isAscii(t)},exports.isBefore=function(t,e){return r.isBefore(t,e)},exports.isBlank=function(t){return r.isEmpty(t,{ignore_whitespace:!0})},exports.isBoolean=function(t){return r.isBoolean(t,{loose:!1})},exports.isChineseName=function(r){return i.test(r)},exports.isDate=t,exports.isDateTime=function(r){const[i,o]=r.split(" ",2);return t(i)&&e(o)},exports.isDecimal=function(t){return r.isDecimal(t)},exports.isEmail=function(t){return r.isEmail(t)},exports.isEmpty=function(t){return r.isEmpty(t)},exports.isFloat=function(t,e){return r.isFloat(t,e)},exports.isHexColor=function(t){return r.isHexColor(t)},exports.isIdentityCard=function(t){return r.isIdentityCard(t,"zh-CN")},exports.isIn=function(t,e){return r.isIn(t,e)},exports.isInt=function(t,e){return r.isInt(t,e)},exports.isIp=function(t,e){return r.isIP(t,e)},exports.isIpRange=function(t,e){return r.isIPRange(t,e)},exports.isJson=function(t){return r.isJSON(t)},exports.isJwt=function(t){return r.isJWT(t)},exports.isLatLong=function(t){return r.isLatLong(t)},exports.isLength=function(t,e){return r.isLength(t,e)},exports.isMimeType=function(t){return r.isMimeType(t)},exports.isMobilePhone=function(t){return r.isMobilePhone(t,"zh-CN")},exports.isNumeric=function(t){return r.isNumeric(t)},exports.isPort=function(t){return r.isPort(t)},exports.isPostalCode=function(t){return r.isPostalCode(t,"CN")},exports.isSemVer=function(t){return r.isSemVer(t)},exports.isSlug=function(t){return r.isSlug(t)},exports.isStrongPassword=function(t){return r.isStrongPassword(t,{minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1})},exports.isTime=e,exports.isUri=function(t){return r.isURL(t,{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(t){return r.isURL(t,{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(t,e){return r.isUUID(t,e)},exports.matches=function(t,e,i){return r.matches(t,e,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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.41",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@9.15.0",
|
|
7
7
|
"description": "Shared fundamental to the VEF framework",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"type-fest": "4.30.2",
|
|
50
50
|
"use-context-selector": "2.0.0",
|
|
51
51
|
"validator": "13.12.0",
|
|
52
|
+
"zod": "^3.24.1",
|
|
52
53
|
"zustand": "5.0.2"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
package/types/lib.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetRequired, UnionToIntersection, UnionToTuple } from "type-fest";
|
|
1
|
+
import type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetOptional, SetRequired, UnionToIntersection, UnionToTuple } from "type-fest";
|
|
2
2
|
import { 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
|
+
import { z } from "zod";
|
|
4
|
+
export { z };
|
|
3
5
|
export { default as isDeepEqual } from "react-fast-compare";
|
|
4
6
|
export { shallow as isShallowEqual } from "zustand/shallow";
|
|
5
|
-
export type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetRequired, UnionToIntersection, UnionToTuple, };
|
|
7
|
+
export type { EmptyObject, Except, IfAny, IfEmptyObject, IfNever, IfNull, IfUnknown, JsonArray, JsonObject, JsonPrimitive, JsonValue, LiteralUnion, NonEmptyObject, NonEmptyTuple, PartialDeep, SetOptional, SetRequired, UnionToIntersection, UnionToTuple, };
|
|
6
8
|
export { assign, camelCase, capitalize, clone, cloneDeep, cluster, 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, memoize, min, noop, omit, once, pascalCase, pick, set, similarity, snakeCase, sum, template, throttle, toFloat, toInt, trim, unique, };
|
package/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Variant } from "antd/es/config-provider";
|
|
2
2
|
import type { RuleObject } from "antd/es/form";
|
|
3
3
|
import type { CSSProperties, ReactNode } from "react";
|
|
4
|
+
import type { RefetchOptions, UseQueryOptions } from "../../core/src/api/api-client";
|
|
4
5
|
import type { defaultColorTypes, semanticColorTypes } from "./constants";
|
|
5
6
|
import type { VefError } from "./error";
|
|
6
7
|
import type { EmptyObject, Except, IfNever, JsonPrimitive, LiteralUnion, PartialDeep } from "./lib";
|
|
@@ -177,7 +178,7 @@ interface QueryBaseResult<T = unknown> {
|
|
|
177
178
|
readonly isStale: boolean;
|
|
178
179
|
readonly error: MaybeUndefined<VefError>;
|
|
179
180
|
readonly data: MaybeUndefined<T>;
|
|
180
|
-
readonly refetch:
|
|
181
|
+
readonly refetch: MapperOptional<RefetchOptions, Promise<QueryRefetchResult<T>>>;
|
|
181
182
|
}
|
|
182
183
|
interface QueryPendingResult<T = unknown> extends QueryBaseResult<T> {
|
|
183
184
|
readonly isPending: true;
|
|
@@ -232,6 +233,10 @@ interface QuerySuccessResult<T = unknown> extends QueryBaseResult<T> {
|
|
|
232
233
|
* The result of query.
|
|
233
234
|
*/
|
|
234
235
|
export type QueryResult<T = unknown> = QueryPendingResult<T> | QueryLoadingResult<T> | QueryLoadingErrorResult<T> | QueryRefetchErrorResult<T> | QuerySuccessResult<T>;
|
|
236
|
+
/**
|
|
237
|
+
* The suspense query result.
|
|
238
|
+
*/
|
|
239
|
+
export type SuspenseQueryResult<T = unknown> = Pick<QuerySuccessResult<T>, "data" | "refetch">;
|
|
235
240
|
interface QueryRefetchResultBase<T = unknown> {
|
|
236
241
|
readonly isSuccess: boolean;
|
|
237
242
|
readonly isError: boolean;
|
|
@@ -334,6 +339,18 @@ export interface Api<T = unknown, R = unknown> {
|
|
|
334
339
|
* The query API interface.
|
|
335
340
|
*/
|
|
336
341
|
export interface QueryApi<T = unknown, R = unknown> extends Api<T, R> {
|
|
342
|
+
/**
|
|
343
|
+
* The use API query hook.
|
|
344
|
+
*/
|
|
345
|
+
readonly useQuery: BiMapperOptional1<T, UseQueryOptions<R>, QueryResult<R>>;
|
|
346
|
+
/**
|
|
347
|
+
* The use API query hook.
|
|
348
|
+
*/
|
|
349
|
+
readonly useSuspenseQuery: BiMapperOptional1<T, Except<UseQueryOptions<R>, "enabled" | "placeholderData">, SuspenseQueryResult<R>>;
|
|
350
|
+
/**
|
|
351
|
+
* The fetch API query function.
|
|
352
|
+
*/
|
|
353
|
+
readonly fetchQuery: BiMapperOptional1<T, Pick<UseQueryOptions<R>, "initialData" | "staleTime">, Promise<R>>;
|
|
337
354
|
/**
|
|
338
355
|
* The get API query data function.
|
|
339
356
|
*/
|
|
@@ -346,6 +363,10 @@ export interface QueryApi<T = unknown, R = unknown> extends Api<T, R> {
|
|
|
346
363
|
* The set API query data function.
|
|
347
364
|
*/
|
|
348
365
|
readonly setQueryData: BiConsumerOptional1<MaybeUndefined<ApiResponse<R> | Mapper<MaybeUndefined<ApiResponse<R>>, MaybeUndefined<ApiResponse<R>>>>, Partial<T>>;
|
|
366
|
+
/**
|
|
367
|
+
* The ensure API query data function.
|
|
368
|
+
*/
|
|
369
|
+
readonly ensureQueryData: BiMapperOptional1<T, Pick<UseQueryOptions<R>, "initialData">, Promise<R>>;
|
|
349
370
|
/**
|
|
350
371
|
* The remove API queries function.
|
|
351
372
|
*/
|
|
@@ -383,6 +404,10 @@ export interface MutationApi<T = unknown, R = unknown> extends Api<T, R> {
|
|
|
383
404
|
* The related queries of the mutation.
|
|
384
405
|
*/
|
|
385
406
|
readonly relatedQueries: QueryApi[];
|
|
407
|
+
/**
|
|
408
|
+
* The use API mutation hook.
|
|
409
|
+
*/
|
|
410
|
+
readonly useMutation: Provider<MutationResult<T, R>>;
|
|
386
411
|
/**
|
|
387
412
|
* The refetch related queries function.
|
|
388
413
|
*/
|
|
@@ -403,7 +428,7 @@ export interface MutationApi<T = unknown, R = unknown> extends Api<T, R> {
|
|
|
403
428
|
/**
|
|
404
429
|
* The params of the data dictionary query API.
|
|
405
430
|
*/
|
|
406
|
-
export interface
|
|
431
|
+
export interface DataDictionaryParams {
|
|
407
432
|
/**
|
|
408
433
|
* The key of the data dictionary.
|
|
409
434
|
*/
|
|
@@ -412,7 +437,37 @@ export interface DataDictionaryQueryParams {
|
|
|
412
437
|
/**
|
|
413
438
|
* The query API for the data dictionary.
|
|
414
439
|
*/
|
|
415
|
-
export type
|
|
440
|
+
export type DataDictionaryApi = Readonly<QueryApi<DataDictionaryParams, DataOption[]>>;
|
|
441
|
+
/**
|
|
442
|
+
* The values of the login form.
|
|
443
|
+
*/
|
|
444
|
+
export interface LoginValues {
|
|
445
|
+
/**
|
|
446
|
+
* The account of the login.
|
|
447
|
+
*/
|
|
448
|
+
account: string;
|
|
449
|
+
/**
|
|
450
|
+
* The password of the login.
|
|
451
|
+
*/
|
|
452
|
+
password: string;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* The result of the login.
|
|
456
|
+
*/
|
|
457
|
+
export interface LoginResult extends AuthenticatedToken {
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The login API.
|
|
461
|
+
*/
|
|
462
|
+
export type LoginApi = Readonly<MutationApi<LoginValues, LoginResult>>;
|
|
463
|
+
/**
|
|
464
|
+
* The logout API.
|
|
465
|
+
*/
|
|
466
|
+
export type LogoutApi = Readonly<MutationApi<null>>;
|
|
467
|
+
/**
|
|
468
|
+
* The fetch authenticated user API.
|
|
469
|
+
*/
|
|
470
|
+
export type FetchAuthenticatedUserApi = Readonly<QueryApi<null, AuthenticatedUser>>;
|
|
416
471
|
/**
|
|
417
472
|
* The permission checker.
|
|
418
473
|
*/
|
|
@@ -753,7 +808,8 @@ export type MenuItem = BasicMenuItem | SubmenuItem | GroupMenuItem | DividerMenu
|
|
|
753
808
|
/**
|
|
754
809
|
* The key of the menu item.
|
|
755
810
|
*/
|
|
756
|
-
export type MenuItemKey<T extends readonly MenuItem[]> = FlattenMenuItems<T>[number]
|
|
811
|
+
export type MenuItemKey<T extends readonly MenuItem[]> = GetMenuItemKey<FlattenMenuItems<T>[number]>;
|
|
812
|
+
type GetMenuItemKey<T extends MenuItem> = IfNever<T, string, T["key"]>;
|
|
757
813
|
type FlattenMenuItems<T extends readonly MenuItem[]> = T extends readonly [infer F, ...infer R extends readonly MenuItem[]] ? F extends BasicMenuItem ? [F, ...FlattenMenuItems<R>] : F extends GroupMenuItem ? FlattenMenuItems<F["children"]> : F extends SubmenuItem ? FlattenMenuItems<F["children"]> : FlattenMenuItems<R> : [];
|
|
758
814
|
/**
|
|
759
815
|
* The validation rule.
|
|
@@ -776,4 +832,50 @@ export interface ControlOptions<S extends boolean | MaybeComputed<boolean, Retur
|
|
|
776
832
|
* The maybe computed control options.
|
|
777
833
|
*/
|
|
778
834
|
export type MaybeComputedControlOptions<F extends ReturnAnyFunction<boolean>> = ControlOptions<MaybeComputed<boolean, F>, MaybeComputed<boolean, F>>;
|
|
835
|
+
/**
|
|
836
|
+
* The authenticated token info.
|
|
837
|
+
*/
|
|
838
|
+
export interface AuthenticatedToken {
|
|
839
|
+
/**
|
|
840
|
+
* The access token.
|
|
841
|
+
*/
|
|
842
|
+
accessToken: string;
|
|
843
|
+
/**
|
|
844
|
+
* The refresh token.
|
|
845
|
+
*/
|
|
846
|
+
refreshToken: string;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* The gender of the user.
|
|
850
|
+
*/
|
|
851
|
+
export type Gender = "male" | "female";
|
|
852
|
+
/**
|
|
853
|
+
* The authenticated user.
|
|
854
|
+
*/
|
|
855
|
+
export interface AuthenticatedUser {
|
|
856
|
+
/**
|
|
857
|
+
* The id of the user.
|
|
858
|
+
*/
|
|
859
|
+
id: string;
|
|
860
|
+
/**
|
|
861
|
+
* The name of the user.
|
|
862
|
+
*/
|
|
863
|
+
name: string;
|
|
864
|
+
/**
|
|
865
|
+
* The gender of the user.
|
|
866
|
+
*/
|
|
867
|
+
gender?: Gender;
|
|
868
|
+
/**
|
|
869
|
+
* The avatar of the user.
|
|
870
|
+
*/
|
|
871
|
+
avatar?: string;
|
|
872
|
+
/**
|
|
873
|
+
* The permissions of the user.
|
|
874
|
+
*/
|
|
875
|
+
permissions: string[];
|
|
876
|
+
/**
|
|
877
|
+
* The authorized menu keys of the user.
|
|
878
|
+
*/
|
|
879
|
+
menus: MenuItem[];
|
|
880
|
+
}
|
|
779
881
|
export {};
|
package/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Consumer, GenericFunction, Handler, MaybePromise, ReturnAnyFunction } from "./types";
|
|
1
|
+
import type { BasicMenuItem, Consumer, GenericFunction, GroupMenuItem, Handler, MaybePromise, MenuItem, ReturnAnyFunction, SubmenuItem } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* Check if the function is an async function
|
|
4
4
|
*
|
|
@@ -50,3 +50,10 @@ export declare function difference(oldValues: Record<string, any>, newValues: Re
|
|
|
50
50
|
* @returns - The constant case string
|
|
51
51
|
*/
|
|
52
52
|
export declare function constantCase(value: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Build route parent menus mappings
|
|
55
|
+
*
|
|
56
|
+
* @param menus - The menus
|
|
57
|
+
* @returns - The route parent menus mappings
|
|
58
|
+
*/
|
|
59
|
+
export declare function buildRouteParentMenusMappings(menus: MenuItem[]): Map<string, [BasicMenuItem | SubmenuItem | GroupMenuItem, (SubmenuItem | GroupMenuItem)[]]>;
|