amis-core 6.11.0-beta.3 → 6.11.0-beta.5
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/esm/Root.js +2 -2
- package/esm/RootRenderer.js +2 -2
- package/esm/SchemaRenderer.js +2 -2
- package/esm/Scoped.js +2 -2
- package/esm/StatusScoped.js +2 -2
- package/esm/StyleManager.js +2 -2
- package/esm/WithRootStore.js +2 -2
- package/esm/WithStore.js +2 -2
- package/esm/actions/Action.js +2 -2
- package/esm/actions/AjaxAction.js +2 -2
- package/esm/actions/BreakAction.js +2 -2
- package/esm/actions/BroadcastAction.js +2 -2
- package/esm/actions/CmptAction.js +2 -2
- package/esm/actions/ContinueAction.js +2 -2
- package/esm/actions/CopyAction.js +2 -2
- package/esm/actions/CustomAction.js +2 -2
- package/esm/actions/DialogAction.js +2 -2
- package/esm/actions/DrawerAction.js +2 -2
- package/esm/actions/EmailAction.js +2 -2
- package/esm/actions/EventAction.js +2 -2
- package/esm/actions/LinkAction.js +2 -2
- package/esm/actions/LoopAction.js +2 -2
- package/esm/actions/PageAction.js +2 -2
- package/esm/actions/ParallelAction.js +2 -2
- package/esm/actions/PrintAction.js +2 -2
- package/esm/actions/StatusAction.js +2 -2
- package/esm/actions/SwitchAction.js +2 -2
- package/esm/actions/ToastAction.js +2 -2
- package/esm/actions/WaitAction.js +2 -2
- package/esm/components/Animations.js +2 -2
- package/esm/components/CustomStyle.js +2 -2
- package/esm/components/ErrorBoundary.js +2 -2
- package/esm/components/LazyComponent.js +2 -2
- package/esm/components/Overlay.js +2 -2
- package/esm/components/PopOver.js +2 -2
- package/esm/env.js +2 -2
- package/esm/envOverwrite.js +2 -2
- package/esm/factory.js +2 -2
- package/esm/globalVar.js +2 -2
- package/esm/globalVarClientHandler.js +2 -2
- package/esm/globalVarDefaultValueHandler.js +2 -2
- package/esm/index.d.ts +3 -2
- package/esm/index.js +11 -10
- package/esm/locale.js +2 -2
- package/esm/polyfills.js +2 -2
- package/esm/renderers/Form.d.ts +1 -0
- package/esm/renderers/Form.js +9 -6
- package/esm/renderers/Item.js +2 -2
- package/esm/renderers/Options.js +2 -2
- package/esm/renderers/Placeholder.js +2 -2
- package/esm/renderers/builtin.js +2 -2
- package/esm/renderers/register.js +2 -2
- package/esm/renderers/wrapControl.js +2 -2
- package/esm/store/app.js +2 -2
- package/esm/store/combo.js +2 -2
- package/esm/store/crud.js +2 -2
- package/esm/store/form.js +2 -2
- package/esm/store/formItem.js +9 -3
- package/esm/store/iRenderer.js +2 -2
- package/esm/store/index.js +2 -2
- package/esm/store/list.js +2 -2
- package/esm/store/manager.js +2 -2
- package/esm/store/modal.js +2 -2
- package/esm/store/node.js +2 -2
- package/esm/store/pagination.js +2 -2
- package/esm/store/root.js +2 -2
- package/esm/store/service.js +2 -2
- package/esm/store/status.js +2 -2
- package/esm/store/table.js +2 -2
- package/esm/store/table2.js +2 -2
- package/esm/theme.js +2 -2
- package/esm/utils/Animation.js +2 -2
- package/esm/utils/ColorScale.js +2 -2
- package/esm/utils/DataSchema.js +2 -2
- package/esm/utils/DataScope.js +2 -2
- package/esm/utils/RootClose.js +2 -2
- package/esm/utils/SimpleMap.js +2 -2
- package/esm/utils/animations.js +2 -2
- package/esm/utils/api.js +2 -2
- package/esm/utils/arraySlice.js +2 -2
- package/esm/utils/attachmentAdpator.js +2 -2
- package/esm/utils/autobind.js +2 -2
- package/esm/utils/browser.js +2 -2
- package/esm/utils/columnsSplit.js +2 -2
- package/esm/utils/concatData.js +2 -2
- package/esm/utils/dataMapping.js +2 -2
- package/esm/utils/date.js +2 -2
- package/esm/utils/debug.js +2 -2
- package/esm/utils/decodeEntity.js +2 -2
- package/esm/utils/dom.js +2 -2
- package/esm/utils/errors.js +2 -2
- package/esm/utils/escapeHtml.js +2 -2
- package/esm/utils/filter-schema.js +2 -2
- package/esm/utils/filter.js +2 -2
- package/esm/utils/formatDuration.js +2 -2
- package/esm/utils/formula.js +2 -2
- package/esm/utils/getVariable.js +2 -2
- package/esm/utils/grammar.js +2 -2
- package/esm/utils/handleAction.js +2 -2
- package/esm/utils/helper.js +2 -2
- package/esm/utils/highlight.js +2 -2
- package/esm/utils/icon.d.ts +10 -0
- package/esm/utils/icon.js +13 -3
- package/esm/utils/image.js +2 -2
- package/esm/utils/isPureVariable.js +2 -2
- package/esm/utils/json-schema-2-amis-schema.js +2 -2
- package/esm/utils/keyToPath.js +2 -2
- package/esm/utils/labelToString.js +2 -2
- package/esm/utils/loopTooMuch.js +2 -2
- package/esm/utils/makeSorter.js +2 -2
- package/esm/utils/math.js +2 -2
- package/esm/utils/memoryParse.js +2 -2
- package/esm/utils/normalizeLink.js +2 -2
- package/esm/utils/normalizeOptions.js +2 -2
- package/esm/utils/object.js +2 -2
- package/esm/utils/offset.js +2 -2
- package/esm/utils/offsetParent.js +2 -2
- package/esm/utils/optionValueCompare.js +2 -2
- package/esm/utils/position.js +2 -2
- package/esm/utils/prettyBytes.js +2 -2
- package/esm/utils/printElement.js +2 -2
- package/esm/utils/renderer-event.js +5 -5
- package/esm/utils/replaceText.js +2 -2
- package/esm/utils/resize-sensor.js +2 -2
- package/esm/utils/resolveCondition.js +2 -2
- package/esm/utils/resolveVariable.js +2 -2
- package/esm/utils/resolveVariableAndFilter.js +2 -2
- package/esm/utils/resolveVariableAndFilterForAsync.js +2 -2
- package/esm/utils/scrollPosition.js +2 -2
- package/esm/utils/string2regExp.js +2 -2
- package/esm/utils/stripNumber.js +2 -2
- package/esm/utils/style-helper.js +2 -2
- package/esm/utils/style.js +2 -2
- package/esm/utils/toNumber.js +2 -2
- package/esm/utils/tokenize.js +2 -2
- package/esm/utils/tpl-builtin.js +2 -2
- package/esm/utils/tpl-lodash.js +2 -2
- package/esm/utils/tpl.js +2 -2
- package/esm/utils/uncontrollable.d.ts +1 -1
- package/esm/utils/uncontrollable.js +2 -2
- package/esm/utils/validateId.js +2 -2
- package/esm/utils/validations.js +2 -2
- package/esm/utils/visitedCache.js +2 -2
- package/lib/Root.js +2 -2
- package/lib/RootRenderer.js +2 -2
- package/lib/SchemaRenderer.js +2 -2
- package/lib/Scoped.js +2 -2
- package/lib/StatusScoped.js +2 -2
- package/lib/StyleManager.js +2 -2
- package/lib/WithRootStore.js +2 -2
- package/lib/WithStore.js +2 -2
- package/lib/actions/Action.js +2 -2
- package/lib/actions/AjaxAction.js +2 -2
- package/lib/actions/BreakAction.js +2 -2
- package/lib/actions/BroadcastAction.js +2 -2
- package/lib/actions/CmptAction.js +2 -2
- package/lib/actions/ContinueAction.js +2 -2
- package/lib/actions/CopyAction.js +2 -2
- package/lib/actions/CustomAction.js +2 -2
- package/lib/actions/DialogAction.js +2 -2
- package/lib/actions/DrawerAction.js +2 -2
- package/lib/actions/EmailAction.js +2 -2
- package/lib/actions/EventAction.js +2 -2
- package/lib/actions/LinkAction.js +2 -2
- package/lib/actions/LoopAction.js +2 -2
- package/lib/actions/PageAction.js +2 -2
- package/lib/actions/ParallelAction.js +2 -2
- package/lib/actions/PrintAction.js +2 -2
- package/lib/actions/StatusAction.js +2 -2
- package/lib/actions/SwitchAction.js +2 -2
- package/lib/actions/ToastAction.js +2 -2
- package/lib/actions/WaitAction.js +2 -2
- package/lib/components/Animations.js +2 -2
- package/lib/components/CustomStyle.js +2 -2
- package/lib/components/ErrorBoundary.js +2 -2
- package/lib/components/LazyComponent.js +2 -2
- package/lib/components/Overlay.js +2 -2
- package/lib/components/PopOver.js +2 -2
- package/lib/env.js +2 -2
- package/lib/envOverwrite.js +2 -2
- package/lib/factory.js +2 -2
- package/lib/globalVar.js +2 -2
- package/lib/globalVarClientHandler.js +2 -2
- package/lib/globalVarDefaultValueHandler.js +2 -2
- package/lib/index.d.ts +3 -2
- package/lib/index.js +11 -8
- package/lib/locale.js +2 -2
- package/lib/polyfills.js +2 -2
- package/lib/renderers/Form.d.ts +1 -0
- package/lib/renderers/Form.js +9 -6
- package/lib/renderers/Item.js +2 -2
- package/lib/renderers/Options.js +2 -2
- package/lib/renderers/Placeholder.js +2 -2
- package/lib/renderers/builtin.js +2 -2
- package/lib/renderers/register.js +2 -2
- package/lib/renderers/wrapControl.js +2 -2
- package/lib/store/app.js +2 -2
- package/lib/store/combo.d.ts +24 -24
- package/lib/store/combo.js +2 -2
- package/lib/store/crud.js +2 -2
- package/lib/store/form.d.ts +11 -10
- package/lib/store/form.js +2 -2
- package/lib/store/formItem.js +9 -3
- package/lib/store/iRenderer.js +2 -2
- package/lib/store/index.js +2 -2
- package/lib/store/list.js +2 -2
- package/lib/store/manager.js +2 -2
- package/lib/store/modal.js +2 -2
- package/lib/store/node.js +2 -2
- package/lib/store/pagination.js +2 -2
- package/lib/store/root.d.ts +1 -0
- package/lib/store/root.js +2 -2
- package/lib/store/service.js +2 -2
- package/lib/store/status.js +2 -2
- package/lib/store/table.d.ts +21 -20
- package/lib/store/table.js +2 -2
- package/lib/store/table2.js +2 -2
- package/lib/theme.js +2 -2
- package/lib/utils/Animation.js +2 -2
- package/lib/utils/ColorScale.js +2 -2
- package/lib/utils/DataSchema.js +2 -2
- package/lib/utils/DataScope.js +2 -2
- package/lib/utils/RootClose.js +2 -2
- package/lib/utils/SimpleMap.js +2 -2
- package/lib/utils/animations.js +2 -2
- package/lib/utils/api.js +2 -2
- package/lib/utils/arraySlice.js +2 -2
- package/lib/utils/attachmentAdpator.js +2 -2
- package/lib/utils/autobind.js +2 -2
- package/lib/utils/browser.js +2 -2
- package/lib/utils/columnsSplit.js +2 -2
- package/lib/utils/concatData.js +2 -2
- package/lib/utils/dataMapping.js +2 -2
- package/lib/utils/date.js +2 -2
- package/lib/utils/debug.js +2 -2
- package/lib/utils/decodeEntity.js +2 -2
- package/lib/utils/dom.js +2 -2
- package/lib/utils/errors.js +2 -2
- package/lib/utils/escapeHtml.js +2 -2
- package/lib/utils/filter-schema.js +2 -2
- package/lib/utils/filter.js +2 -2
- package/lib/utils/formatDuration.js +2 -2
- package/lib/utils/formula.js +2 -2
- package/lib/utils/getVariable.js +2 -2
- package/lib/utils/grammar.js +2 -2
- package/lib/utils/handleAction.js +2 -2
- package/lib/utils/helper.js +2 -2
- package/lib/utils/highlight.js +2 -2
- package/lib/utils/icon.d.ts +10 -0
- package/lib/utils/icon.js +14 -2
- package/lib/utils/image.js +2 -2
- package/lib/utils/isPureVariable.js +2 -2
- package/lib/utils/json-schema-2-amis-schema.js +2 -2
- package/lib/utils/keyToPath.js +2 -2
- package/lib/utils/labelToString.js +2 -2
- package/lib/utils/loopTooMuch.js +2 -2
- package/lib/utils/makeSorter.js +2 -2
- package/lib/utils/math.js +2 -2
- package/lib/utils/memoryParse.js +2 -2
- package/lib/utils/normalizeLink.js +2 -2
- package/lib/utils/normalizeOptions.js +2 -2
- package/lib/utils/object.js +2 -2
- package/lib/utils/offset.js +2 -2
- package/lib/utils/offsetParent.js +2 -2
- package/lib/utils/optionValueCompare.js +2 -2
- package/lib/utils/position.js +2 -2
- package/lib/utils/prettyBytes.js +2 -2
- package/lib/utils/printElement.js +2 -2
- package/lib/utils/renderer-event.js +5 -5
- package/lib/utils/replaceText.js +2 -2
- package/lib/utils/resize-sensor.js +2 -2
- package/lib/utils/resolveCondition.js +2 -2
- package/lib/utils/resolveVariable.js +2 -2
- package/lib/utils/resolveVariableAndFilter.js +2 -2
- package/lib/utils/resolveVariableAndFilterForAsync.js +2 -2
- package/lib/utils/scrollPosition.js +2 -2
- package/lib/utils/string2regExp.js +2 -2
- package/lib/utils/stripNumber.js +2 -2
- package/lib/utils/style-helper.js +2 -2
- package/lib/utils/style.js +2 -2
- package/lib/utils/toNumber.js +2 -2
- package/lib/utils/tokenize.js +2 -2
- package/lib/utils/tpl-builtin.js +2 -2
- package/lib/utils/tpl-lodash.js +2 -2
- package/lib/utils/tpl.js +2 -2
- package/lib/utils/uncontrollable.d.ts +1 -1
- package/lib/utils/uncontrollable.js +2 -2
- package/lib/utils/validateId.js +2 -2
- package/lib/utils/validations.js +2 -2
- package/lib/utils/visitedCache.js +2 -2
- package/package.json +2 -2
package/lib/utils/helper.js
CHANGED
package/lib/utils/highlight.js
CHANGED
package/lib/utils/icon.d.ts
CHANGED
|
@@ -20,4 +20,14 @@ interface IconCheckedSchemaNew {
|
|
|
20
20
|
* @param classNameProp amis 配置里设置的 className
|
|
21
21
|
*/
|
|
22
22
|
export declare const generateIcon: (cx: ClassNamesFn, icon?: string | IconCheckedSchema | React.ReactNode | IconCheckedSchemaNew, className?: string, classNameProp?: string) => React.JSX.Element | null | undefined;
|
|
23
|
+
type CustomVendorFn = (icon: string, options: {
|
|
24
|
+
[propName: string]: any;
|
|
25
|
+
}) => {
|
|
26
|
+
icon: string;
|
|
27
|
+
style: {
|
|
28
|
+
[propName: string]: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function registerCustomVendor(vendor: string, fn: CustomVendorFn): void;
|
|
32
|
+
export declare function getCustomVendor(vendor?: string): CustomVendorFn | null | undefined;
|
|
23
33
|
export {};
|
package/lib/utils/icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.11.0-beta.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-core v6.11.0-beta.5
|
|
3
|
+
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -46,5 +46,17 @@ var generateIcon = function (cx, icon, className, classNameProp) {
|
|
|
46
46
|
var isURLIcon = (icon === null || icon === void 0 ? void 0 : icon.indexOf('.')) !== -1;
|
|
47
47
|
return icon ? (isURLIcon ? (_J$X_("img", { className: cx(className, classNameProp), src: icon, key: icon })) : (_J$X_("i", { className: cx(className, icon, classNameProp), key: icon }))) : null;
|
|
48
48
|
};
|
|
49
|
+
var customVendor = new Map();
|
|
50
|
+
function registerCustomVendor(vendor, fn) {
|
|
51
|
+
customVendor.set(vendor, fn);
|
|
52
|
+
}
|
|
53
|
+
function getCustomVendor(vendor) {
|
|
54
|
+
if (!vendor) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return customVendor.get(vendor);
|
|
58
|
+
}
|
|
49
59
|
|
|
50
60
|
exports.generateIcon = generateIcon;
|
|
61
|
+
exports.getCustomVendor = getCustomVendor;
|
|
62
|
+
exports.registerCustomVendor = registerCustomVendor;
|
package/lib/utils/image.js
CHANGED
package/lib/utils/keyToPath.js
CHANGED
package/lib/utils/loopTooMuch.js
CHANGED
package/lib/utils/makeSorter.js
CHANGED
package/lib/utils/math.js
CHANGED
package/lib/utils/memoryParse.js
CHANGED
package/lib/utils/object.js
CHANGED
package/lib/utils/offset.js
CHANGED
package/lib/utils/position.js
CHANGED
package/lib/utils/prettyBytes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.11.0-beta.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-core v6.11.0-beta.5
|
|
3
|
+
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -150,7 +150,7 @@ var bindGlobalEventForRenderer = function (renderer) {
|
|
|
150
150
|
if (listeners) {
|
|
151
151
|
var _loop_2 = function (key) {
|
|
152
152
|
var listener = listeners[key];
|
|
153
|
-
if (
|
|
153
|
+
if (typeof BroadcastChannel !== 'function') {
|
|
154
154
|
console.error('BroadcastChannel is not supported in your browser');
|
|
155
155
|
return { value: void 0 };
|
|
156
156
|
}
|
|
@@ -197,7 +197,7 @@ var bindGlobalEventForRenderer = function (renderer) {
|
|
|
197
197
|
return void 0;
|
|
198
198
|
};
|
|
199
199
|
var bindGlobalEvent = function (eventName, callback) {
|
|
200
|
-
if (
|
|
200
|
+
if (typeof BroadcastChannel !== 'function') {
|
|
201
201
|
console.error('BroadcastChannel is not supported in your browser');
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
@@ -367,7 +367,7 @@ function dispatchGlobalEvent(eventName, data) {
|
|
|
367
367
|
return tslib.__awaiter(this, void 0, void 0, function () {
|
|
368
368
|
var bc;
|
|
369
369
|
return tslib.__generator(this, function (_a) {
|
|
370
|
-
if (
|
|
370
|
+
if (typeof BroadcastChannel !== 'function') {
|
|
371
371
|
console.error('BroadcastChannel is not supported in your browser');
|
|
372
372
|
return [2 /*return*/];
|
|
373
373
|
}
|
package/lib/utils/replaceText.js
CHANGED
package/lib/utils/stripNumber.js
CHANGED
package/lib/utils/style.js
CHANGED
package/lib/utils/toNumber.js
CHANGED
package/lib/utils/tokenize.js
CHANGED
package/lib/utils/tpl-builtin.js
CHANGED
package/lib/utils/tpl-lodash.js
CHANGED
package/lib/utils/tpl.js
CHANGED
package/lib/utils/validateId.js
CHANGED
package/lib/utils/validations.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amis-core",
|
|
3
|
-
"version": "6.11.0-beta.
|
|
3
|
+
"version": "6.11.0-beta.5",
|
|
4
4
|
"description": "amis-core",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@rc-component/mini-decimal": "^1.0.1",
|
|
52
|
-
"amis-formula": "^6.11.0-beta.
|
|
52
|
+
"amis-formula": "^6.11.0-beta.5",
|
|
53
53
|
"classnames": "2.3.2",
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
55
55
|
"file-saver": "^2.0.2",
|