@vef-framework/shared 1.0.99 → 1.0.101
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 +1 -1
- 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 +1 -1
- package/es/lib.js +1 -1
- package/es/message.js +4 -4
- 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 +1 -1
- package/es/validation.js +1 -1
- package/es/yaml.js +1 -1
- package/lib/color.cjs +1 -1
- package/lib/constants.cjs +1 -1
- package/lib/context.cjs +1 -1
- 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 +1 -1
- package/lib/lib.cjs +1 -1
- package/lib/message.cjs +4 -4
- 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 +1 -1
- package/lib/validation.cjs +1 -1
- package/lib/yaml.cjs +1 -1
- package/package.json +1 -1
package/es/color.js
CHANGED
package/es/constants.js
CHANGED
package/es/context.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import { createContext, useContextSelector, useContext } from 'use-context-selector';
|
|
4
4
|
import './lib.js';
|
package/es/dom.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
function getElementHeight(element, selector, includeMargin = false) {
|
|
3
3
|
if (selector) {
|
|
4
4
|
const subElement = element.querySelector(selector);
|
package/es/error.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/es/event.js
CHANGED
package/es/expression.js
CHANGED
package/es/function.js
CHANGED
package/es/icons.js
CHANGED
package/es/id.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
import { customAlphabet } from 'nanoid';
|
|
3
3
|
|
|
4
4
|
const alphabets = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
export { isValidColor } from './color.js';
|
|
3
3
|
export { auditFormScene, colorTypes, creationFormScene, defaultColorTypes, presetFormScenes, semanticColorTypes, updateFormScene } from './constants.js';
|
|
4
4
|
export { createSelectableContext } from './context.js';
|
package/es/lib.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
export { assign, camel as camelCase, capitalize, clone, cloneDeep, cluster, dash as dashCase, debounce, get, isArray, isBoolean, isDate, isEmpty, isError, isFloat, isFunction, isInt, isIntString, isMap, isNullish, isNumber, isObject, isPlainObject, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isUndefined, isWeakMap, isWeakSet, max, memo as memoize, min, noop, omit, once, pascal as pascalCase, pick, set, similarity, snake as snakeCase, sum, template, throttle, toFloat, toInt, trim, unique } from 'radashi';
|
|
3
3
|
export { z } from 'zod';
|
|
4
4
|
export { default as isDeepEqual } from 'react-fast-compare';
|
package/es/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
import Icon from '@ant-design/icons';
|
|
3
3
|
import { Modal, message, notification } from 'antd';
|
|
4
4
|
import { createElement } from 'react';
|
|
@@ -84,7 +84,7 @@ function showLoadingMessage(content) {
|
|
|
84
84
|
});
|
|
85
85
|
return () => close();
|
|
86
86
|
}
|
|
87
|
-
const defaultMessageTitle = "
|
|
87
|
+
const defaultMessageTitle = "提示";
|
|
88
88
|
function showSuccessNotification(titleOrContent, content, buttons) {
|
|
89
89
|
const argsLength = arguments.length;
|
|
90
90
|
if (argsLength < 1) {
|
|
@@ -169,7 +169,7 @@ function showConfirmation(title, content, onOk, options) {
|
|
|
169
169
|
if (argsLength < 2) {
|
|
170
170
|
throw new Error("showConfirmation requires at least two arguments");
|
|
171
171
|
}
|
|
172
|
-
const titleToUse = argsLength > 2 ? title : "
|
|
172
|
+
const titleToUse = argsLength > 2 ? title : "提示";
|
|
173
173
|
const contentToUse = argsLength === 2 ? title : content;
|
|
174
174
|
const onOkToUse = argsLength === 2 ? content : onOk;
|
|
175
175
|
const {
|
|
@@ -211,7 +211,7 @@ const alertIconMap = {
|
|
|
211
211
|
warning: warningIcon,
|
|
212
212
|
error: errorIcon
|
|
213
213
|
};
|
|
214
|
-
const defaultOkText = "
|
|
214
|
+
const defaultOkText = "👍🏻 好的,知道了";
|
|
215
215
|
function showAlert(type, content, title = defaultMessageTitle, onOk, options) {
|
|
216
216
|
const {
|
|
217
217
|
okText = defaultOkText,
|
package/es/path.js
CHANGED
package/es/pinyin.js
CHANGED
package/es/security.js
CHANGED
package/es/store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
import { createContext, useState, useRef, useEffect, createElement, useContext } from 'react';
|
|
3
3
|
import { createJSONStorage, persist, subscribeWithSelector } from 'zustand/middleware';
|
|
4
4
|
import { createWithEqualityFn, useStoreWithEqualityFn } from 'zustand/traditional';
|
package/es/styles.js
CHANGED
package/es/temporal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
import { tz } from '@date-fns/tz';
|
|
3
3
|
import { format } from 'date-fns';
|
|
4
4
|
import { zhCN } from 'date-fns/locale';
|
package/es/theme-variables.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
const themeVariables = {
|
|
3
3
|
colorChart1: "hsl(221.2 83.2% 53.3%)",
|
|
4
4
|
colorChart2: "hsl(216 92% 60%)",
|
package/es/utils.js
CHANGED
package/es/validation.js
CHANGED
package/es/yaml.js
CHANGED
package/lib/color.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/constants.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/context.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/dom.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/error.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/event.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/expression.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/function.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/icons.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/id.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/lib.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/message.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -88,7 +88,7 @@ function showLoadingMessage(content) {
|
|
|
88
88
|
});
|
|
89
89
|
return () => close();
|
|
90
90
|
}
|
|
91
|
-
const defaultMessageTitle = "
|
|
91
|
+
const defaultMessageTitle = "提示";
|
|
92
92
|
function showSuccessNotification(titleOrContent, content, buttons) {
|
|
93
93
|
const argsLength = arguments.length;
|
|
94
94
|
if (argsLength < 1) {
|
|
@@ -173,7 +173,7 @@ function showConfirmation(title, content, onOk, options) {
|
|
|
173
173
|
if (argsLength < 2) {
|
|
174
174
|
throw new Error("showConfirmation requires at least two arguments");
|
|
175
175
|
}
|
|
176
|
-
const titleToUse = argsLength > 2 ? title : "
|
|
176
|
+
const titleToUse = argsLength > 2 ? title : "提示";
|
|
177
177
|
const contentToUse = argsLength === 2 ? title : content;
|
|
178
178
|
const onOkToUse = argsLength === 2 ? content : onOk;
|
|
179
179
|
const {
|
|
@@ -215,7 +215,7 @@ const alertIconMap = {
|
|
|
215
215
|
warning: warningIcon,
|
|
216
216
|
error: errorIcon
|
|
217
217
|
};
|
|
218
|
-
const defaultOkText = "
|
|
218
|
+
const defaultOkText = "👍🏻 好的,知道了";
|
|
219
219
|
function showAlert(type, content, title = defaultMessageTitle, onOk, options) {
|
|
220
220
|
const {
|
|
221
221
|
okText = defaultOkText,
|
package/lib/path.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/pinyin.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/security.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/store.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/styles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/temporal.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/theme-variables.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/types.cjs
CHANGED
package/lib/utils.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/validation.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
package/lib/yaml.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! VefFramework version: 1.0.
|
|
1
|
+
/*! VefFramework version: 1.0.101, build time: 2025-03-07T14:07:14.461Z, made by Venus. */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|