amis-core 2.9.0 → 3.1.0
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.d.ts +89 -4
- package/esm/Root.js +15 -4
- package/esm/RootRenderer.d.ts +3 -1
- package/esm/RootRenderer.js +9 -3
- package/esm/SchemaRenderer.d.ts +4 -2
- package/esm/SchemaRenderer.js +32 -24
- package/esm/Scoped.d.ts +8 -0
- package/esm/Scoped.js +20 -5
- package/esm/StatusScoped.d.ts +58 -0
- package/esm/StatusScoped.js +54 -0
- package/esm/WithRootStore.d.ts +2 -2
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +6 -2
- package/esm/actions/Action.d.ts +1 -0
- package/esm/actions/Action.js +19 -5
- package/esm/actions/AjaxAction.js +1 -1
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +8 -7
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +4 -4
- package/esm/actions/DialogAction.d.ts +16 -2
- package/esm/actions/DialogAction.js +23 -7
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/LinkAction.js +1 -1
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/components/CustomStyle.d.ts +13 -0
- package/esm/components/CustomStyle.js +18 -0
- package/esm/components/LazyComponent.d.ts +1 -1
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.d.ts +3 -3
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.d.ts +2 -2
- package/esm/components/PopOver.js +1 -1
- package/esm/env.d.ts +10 -2
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -5
- package/esm/factory.d.ts +5 -3
- package/esm/factory.js +3 -3
- package/esm/index.d.ts +11 -4
- package/esm/index.js +55 -33
- package/esm/locale.d.ts +2 -2
- package/esm/locale.js +10 -3
- package/esm/renderers/Form.d.ts +3 -2
- package/esm/renderers/Form.js +216 -180
- package/esm/renderers/Item.d.ts +55 -41
- package/esm/renderers/Item.js +30 -19
- package/esm/renderers/Options.js +11 -4
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.d.ts +2 -2
- package/esm/renderers/wrapControl.js +13 -16
- package/esm/store/app.d.ts +1 -0
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +3 -0
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +2 -0
- package/esm/store/crud.js +31 -9
- package/esm/store/form.d.ts +1 -0
- package/esm/store/form.js +10 -4
- package/esm/store/formItem.js +2 -2
- package/esm/store/iRenderer.d.ts +1 -0
- package/esm/store/iRenderer.js +54 -13
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +1 -0
- package/esm/store/list.js +7 -3
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +1 -0
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +1 -0
- package/esm/store/pagination.js +2 -2
- package/esm/store/root.d.ts +4 -6
- package/esm/store/root.js +53 -24
- package/esm/store/service.d.ts +1 -0
- package/esm/store/service.js +1 -1
- package/esm/store/status.d.ts +12 -0
- package/esm/store/status.js +38 -0
- package/esm/store/table.d.ts +28 -23
- package/esm/store/table.js +26 -5
- package/esm/store/table2.d.ts +7 -6
- package/esm/store/table2.js +27 -23
- package/esm/theme.d.ts +1 -1
- package/esm/theme.js +1 -1
- package/esm/types.d.ts +7 -1
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.d.ts +3 -5
- package/esm/utils/DataScope.js +88 -31
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/api.js +14 -5
- package/esm/utils/attachmentAdpator.js +2 -2
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/dataMapping.js +1 -1
- package/esm/utils/date.d.ts +7 -0
- package/esm/utils/date.js +34 -2
- package/esm/utils/debug.js +4 -4
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.d.ts +3 -0
- package/esm/utils/dom.js +47 -10
- package/esm/utils/errors.js +1 -1
- package/esm/utils/escapeHtml.js +1 -1
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.js +2 -2
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +3 -3
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.d.ts +9 -2
- package/esm/utils/helper.js +52 -20
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.d.ts +6 -1
- package/esm/utils/icon.js +6 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/isPureVariable.js +3 -3
- package/esm/utils/json-schema-2-amis-schema.js +1 -1
- package/esm/utils/keyToPath.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/memoryParse.d.ts +17 -0
- package/esm/utils/memoryParse.js +26 -0
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +4 -2
- package/esm/utils/object.d.ts +2 -0
- package/esm/utils/object.js +27 -2
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +1 -1
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/renderer-event.js +35 -32
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.d.ts +1 -0
- package/esm/utils/resolveCondition.js +19 -4
- package/esm/utils/resolveVariable.js +4 -3
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.d.ts +6 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +23 -5
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.d.ts +12 -4
- package/esm/utils/style-helper.js +96 -19
- package/esm/utils/style.js +2 -2
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.d.ts +2 -1
- package/esm/utils/tpl-builtin.js +19 -2
- package/esm/utils/tpl-lodash.js +3 -2
- package/esm/utils/tpl.d.ts +2 -0
- package/esm/utils/tpl.js +24 -2
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validations.d.ts +4 -1
- package/esm/utils/validations.js +27 -12
- package/lib/Root.d.ts +89 -4
- package/lib/Root.js +15 -4
- package/lib/RootRenderer.d.ts +3 -1
- package/lib/RootRenderer.js +8 -2
- package/lib/SchemaRenderer.d.ts +4 -2
- package/lib/SchemaRenderer.js +32 -23
- package/lib/Scoped.d.ts +8 -0
- package/lib/Scoped.js +20 -4
- package/lib/StatusScoped.d.ts +58 -0
- package/lib/StatusScoped.js +63 -0
- package/lib/WithRootStore.d.ts +2 -2
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +6 -2
- package/lib/actions/Action.d.ts +1 -0
- package/lib/actions/Action.js +19 -5
- package/lib/actions/AjaxAction.js +1 -1
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +8 -7
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +4 -4
- package/lib/actions/DialogAction.d.ts +16 -2
- package/lib/actions/DialogAction.js +23 -7
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/LinkAction.js +1 -1
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/components/CustomStyle.d.ts +13 -0
- package/lib/components/CustomStyle.js +22 -0
- package/lib/components/LazyComponent.d.ts +1 -1
- package/lib/components/LazyComponent.js +1 -1
- package/lib/components/Overlay.d.ts +3 -3
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.d.ts +2 -2
- package/lib/components/PopOver.js +1 -1
- package/lib/env.d.ts +10 -2
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -5
- package/lib/factory.d.ts +5 -3
- package/lib/factory.js +3 -3
- package/lib/index.d.ts +11 -4
- package/lib/index.js +61 -23
- package/lib/locale.d.ts +2 -2
- package/lib/locale.js +10 -3
- package/lib/renderers/Form.d.ts +3 -2
- package/lib/renderers/Form.js +215 -179
- package/lib/renderers/Item.d.ts +55 -41
- package/lib/renderers/Item.js +30 -19
- package/lib/renderers/Options.js +11 -4
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.d.ts +2 -2
- package/lib/renderers/wrapControl.js +12 -15
- package/lib/store/app.d.ts +1 -0
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +3 -0
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +2 -0
- package/lib/store/crud.js +31 -9
- package/lib/store/form.d.ts +1 -0
- package/lib/store/form.js +10 -4
- package/lib/store/formItem.js +2 -2
- package/lib/store/iRenderer.d.ts +1 -0
- package/lib/store/iRenderer.js +53 -12
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +1 -0
- package/lib/store/list.js +7 -3
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +1 -0
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +1 -0
- package/lib/store/pagination.js +2 -2
- package/lib/store/root.d.ts +4 -6
- package/lib/store/root.js +52 -23
- package/lib/store/service.d.ts +1 -0
- package/lib/store/service.js +1 -1
- package/lib/store/status.d.ts +12 -0
- package/lib/store/status.js +42 -0
- package/lib/store/table.d.ts +28 -23
- package/lib/store/table.js +26 -5
- package/lib/store/table2.d.ts +7 -6
- package/lib/store/table2.js +27 -23
- package/lib/theme.d.ts +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.d.ts +7 -1
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.d.ts +3 -5
- package/lib/utils/DataScope.js +86 -29
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/api.js +13 -4
- package/lib/utils/attachmentAdpator.js +2 -2
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/dataMapping.js +1 -1
- package/lib/utils/date.d.ts +7 -0
- package/lib/utils/date.js +34 -1
- package/lib/utils/debug.js +4 -4
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.d.ts +3 -0
- package/lib/utils/dom.js +48 -9
- package/lib/utils/errors.js +1 -1
- package/lib/utils/escapeHtml.js +1 -1
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.js +2 -2
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +3 -3
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.d.ts +9 -2
- package/lib/utils/helper.js +53 -19
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.d.ts +6 -1
- package/lib/utils/icon.js +6 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/isPureVariable.js +3 -3
- package/lib/utils/json-schema-2-amis-schema.js +1 -1
- package/lib/utils/keyToPath.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/memoryParse.d.ts +17 -0
- package/lib/utils/memoryParse.js +30 -0
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +4 -2
- package/lib/utils/object.d.ts +2 -0
- package/lib/utils/object.js +28 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +1 -1
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/renderer-event.js +35 -32
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.d.ts +1 -0
- package/lib/utils/resolveCondition.js +19 -3
- package/lib/utils/resolveVariable.js +3 -2
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.d.ts +6 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +22 -3
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.d.ts +12 -4
- package/lib/utils/style-helper.js +101 -18
- package/lib/utils/style.js +2 -2
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.d.ts +2 -1
- package/lib/utils/tpl-builtin.js +19 -2
- package/lib/utils/tpl-lodash.js +3 -2
- package/lib/utils/tpl.d.ts +2 -0
- package/lib/utils/tpl.js +24 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validations.d.ts +4 -1
- package/lib/utils/validations.js +27 -12
- package/package.json +3 -3
package/esm/WithStore.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -33,6 +33,7 @@ function HocStoreFactory(renderer) {
|
|
|
33
33
|
storeType: renderer.storeType,
|
|
34
34
|
parentId: _this.props.store ? _this.props.store.id : ''
|
|
35
35
|
});
|
|
36
|
+
store.setTopStore(props.topStore);
|
|
36
37
|
_this.store = store;
|
|
37
38
|
var extendsData = typeof renderer.extendsData === 'function'
|
|
38
39
|
? renderer.extendsData(props)
|
|
@@ -148,7 +149,10 @@ function HocStoreFactory(renderer) {
|
|
|
148
149
|
var rootStore = this.context;
|
|
149
150
|
var store = this.store;
|
|
150
151
|
(_a = this.unReaction) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
151
|
-
isAlive(store)
|
|
152
|
+
if (isAlive(store)) {
|
|
153
|
+
store.setTopStore(null);
|
|
154
|
+
rootStore.removeStore(store);
|
|
155
|
+
}
|
|
152
156
|
// @ts-ignore
|
|
153
157
|
delete this.store;
|
|
154
158
|
};
|
package/esm/actions/Action.d.ts
CHANGED
package/esm/actions/Action.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -87,6 +87,9 @@ var getOmitActionProp = function (type) {
|
|
|
87
87
|
case 'drawer':
|
|
88
88
|
omitList = ['drawer'];
|
|
89
89
|
break;
|
|
90
|
+
case 'confirmDialog':
|
|
91
|
+
omitList = ['confirmDialog'];
|
|
92
|
+
break;
|
|
90
93
|
case 'reload':
|
|
91
94
|
omitList = ['resetPage'];
|
|
92
95
|
break;
|
|
@@ -112,7 +115,8 @@ var runActions = function (actions, renderer, event) { return __awaiter(void 0,
|
|
|
112
115
|
actionConfig = actions_1_1.value;
|
|
113
116
|
actionInstrance = getActionByType(actionConfig.actionType);
|
|
114
117
|
// 如果存在指定组件ID,说明是组件专有动作
|
|
115
|
-
if (!actionInstrance &&
|
|
118
|
+
if (!actionInstrance &&
|
|
119
|
+
(actionConfig.componentId || actionConfig.componentName)) {
|
|
116
120
|
actionInstrance = getActionByType('component');
|
|
117
121
|
}
|
|
118
122
|
else if (actionConfig.actionType === 'url' ||
|
|
@@ -154,7 +158,7 @@ var runActions = function (actions, renderer, event) { return __awaiter(void 0,
|
|
|
154
158
|
}); };
|
|
155
159
|
// 执行动作,与原有动作处理打通
|
|
156
160
|
var runAction = function (actionInstrance, actionConfig, renderer, event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
157
|
-
var additional, mergeData, expression, isStop, preventDefault, stopPropagation, args, afterMappingData, actionData, data, stoped, actionResult;
|
|
161
|
+
var additional, mergeData, expression, isStop, preventDefault, stopPropagation, key, args, afterMappingData, actionData, data, stoped, actionResult;
|
|
158
162
|
var _a, _b, _c;
|
|
159
163
|
return __generator(this, function (_d) {
|
|
160
164
|
switch (_d.label) {
|
|
@@ -197,8 +201,18 @@ var runAction = function (actionInstrance, actionConfig, renderer, event) { retu
|
|
|
197
201
|
stopPropagation = _d.sent();
|
|
198
202
|
_d.label = 6;
|
|
199
203
|
case 6:
|
|
204
|
+
key = {
|
|
205
|
+
componentId: dataMapping(actionConfig.componentId, mergeData),
|
|
206
|
+
componentName: dataMapping(actionConfig.componentName, mergeData)
|
|
207
|
+
};
|
|
200
208
|
args = dataMapping(actionConfig.args, mergeData, function (key) {
|
|
201
|
-
return [
|
|
209
|
+
return [
|
|
210
|
+
'adaptor',
|
|
211
|
+
'responseAdaptor',
|
|
212
|
+
'requestAdaptor',
|
|
213
|
+
'responseData',
|
|
214
|
+
'condition'
|
|
215
|
+
].includes(key);
|
|
202
216
|
});
|
|
203
217
|
afterMappingData = dataMapping(actionConfig.data, mergeData);
|
|
204
218
|
actionData = args && Object.keys(args).length
|
|
@@ -212,7 +226,7 @@ var runAction = function (actionInstrance, actionConfig, renderer, event) { retu
|
|
|
212
226
|
(_b = console.group) === null || _b === void 0 ? void 0 : _b.call(console, "run action ".concat(actionConfig.actionType));
|
|
213
227
|
console.debug("[".concat(actionConfig.actionType, "] action args, data"), args, data);
|
|
214
228
|
stoped = false;
|
|
215
|
-
return [4 /*yield*/, actionInstrance.run(__assign(__assign({}, actionConfig), { args: args, data: data }), renderer, event, mergeData)];
|
|
229
|
+
return [4 /*yield*/, actionInstrance.run(__assign(__assign(__assign({}, actionConfig), { args: args, data: data }), key), renderer, event, mergeData)];
|
|
216
230
|
case 7:
|
|
217
231
|
actionResult = _d.sent();
|
|
218
232
|
// 二次确认弹窗如果取消,则终止后续动作
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -19,12 +19,13 @@ var CmptAction = /** @class */ (function () {
|
|
|
19
19
|
CmptAction.prototype.run = function (action, renderer, event) {
|
|
20
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
21
|
return __awaiter(this, void 0, void 0, function () {
|
|
22
|
-
var component, dataMergeMode, visibility, usability, beforeSetData, path, res;
|
|
22
|
+
var key, component, dataMergeMode, visibility, usability, beforeSetData, path, res;
|
|
23
23
|
return __generator(this, function (_p) {
|
|
24
24
|
switch (_p.label) {
|
|
25
25
|
case 0:
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
key = action.componentId || action.componentName;
|
|
27
|
+
component = key && renderer.props.$schema[action.componentId ? 'id' : 'name'] !== key
|
|
28
|
+
? (_a = event.context.scoped) === null || _a === void 0 ? void 0 : _a[action.componentId ? 'getComponentById' : 'getComponentByName'](key)
|
|
28
29
|
: renderer;
|
|
29
30
|
dataMergeMode = action.dataMergeMode || 'merge';
|
|
30
31
|
// 显隐&状态控制
|
|
@@ -32,16 +33,16 @@ var CmptAction = /** @class */ (function () {
|
|
|
32
33
|
visibility = action.actionType === 'visibility'
|
|
33
34
|
? (_b = action.args) === null || _b === void 0 ? void 0 : _b.value
|
|
34
35
|
: action.actionType === 'show';
|
|
35
|
-
return [2 /*return*/, renderer.props.
|
|
36
|
+
return [2 /*return*/, renderer.props.statusStore.setVisible(key, visibility)];
|
|
36
37
|
}
|
|
37
38
|
else if (['static', 'nonstatic'].includes(action.actionType)) {
|
|
38
|
-
return [2 /*return*/, renderer.props.
|
|
39
|
+
return [2 /*return*/, renderer.props.statusStore.setStatic(key, action.actionType === 'static')];
|
|
39
40
|
}
|
|
40
41
|
else if (['enabled', 'disabled', 'usability'].includes(action.actionType)) {
|
|
41
42
|
usability = action.actionType === 'usability'
|
|
42
43
|
? !((_c = action.args) === null || _c === void 0 ? void 0 : _c.value)
|
|
43
44
|
: action.actionType === 'disabled';
|
|
44
|
-
return [2 /*return*/, renderer.props.
|
|
45
|
+
return [2 /*return*/, renderer.props.statusStore.setDisable(key, usability)];
|
|
45
46
|
}
|
|
46
47
|
if (!(action.actionType === 'setValue')) return [3 /*break*/, 3];
|
|
47
48
|
beforeSetData = (_e = (_d = renderer === null || renderer === void 0 ? void 0 : renderer.props) === null || _d === void 0 ? void 0 : _d.env) === null || _e === void 0 ? void 0 : _e.beforeSetData;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __awaiter, __generator } from 'tslib';
|
|
7
|
-
import '../utils/api.js';
|
|
7
|
+
import { str2AsyncFunction } from '../utils/api.js';
|
|
8
8
|
import '../utils/ColorScale.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/chunk';
|
|
@@ -17,7 +17,7 @@ import '../utils/debug.js';
|
|
|
17
17
|
import 'react-dom';
|
|
18
18
|
import '../utils/errors.js';
|
|
19
19
|
import '../utils/tpl.js';
|
|
20
|
-
import
|
|
20
|
+
import '../utils/helper.js';
|
|
21
21
|
import 'classnames';
|
|
22
22
|
import '../utils/filter.js';
|
|
23
23
|
import 'lodash/isObject';
|
|
@@ -58,7 +58,7 @@ var CustomAction = /** @class */ (function () {
|
|
|
58
58
|
case 0:
|
|
59
59
|
scriptFunc = (_b = (_a = action.args) === null || _a === void 0 ? void 0 : _a.script) !== null && _b !== void 0 ? _b : action.script;
|
|
60
60
|
if (typeof scriptFunc === 'string') {
|
|
61
|
-
scriptFunc =
|
|
61
|
+
scriptFunc = str2AsyncFunction(scriptFunc, 'context', 'doAction', 'event');
|
|
62
62
|
}
|
|
63
63
|
return [4 /*yield*/, (scriptFunc === null || scriptFunc === void 0 ? void 0 : scriptFunc.call(null, renderer, function (action) { return runActions(action, renderer, event); }, event, action))];
|
|
64
64
|
case 1:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaNode } from '../types';
|
|
1
|
+
import { Schema, SchemaNode } from '../types';
|
|
2
2
|
import { RendererEvent } from '../utils/renderer-event';
|
|
3
3
|
import { RendererAction, ListenerAction, ListenerContext } from './Action';
|
|
4
4
|
export interface IAlertAction extends ListenerAction {
|
|
@@ -23,6 +23,20 @@ export interface IDialogAction extends ListenerAction {
|
|
|
23
23
|
};
|
|
24
24
|
dialog?: SchemaNode;
|
|
25
25
|
}
|
|
26
|
+
export interface IConfirmDialogAction extends ListenerAction {
|
|
27
|
+
actionType: 'confirmDialog';
|
|
28
|
+
args: {
|
|
29
|
+
msg: string;
|
|
30
|
+
title: string;
|
|
31
|
+
body?: Schema;
|
|
32
|
+
closeOnEsc?: boolean;
|
|
33
|
+
size?: '' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
34
|
+
confirmText?: string;
|
|
35
|
+
cancelText?: string;
|
|
36
|
+
confirmBtnLevel?: string;
|
|
37
|
+
cancelBtnLevel?: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
26
40
|
/**
|
|
27
41
|
* 打开弹窗动作
|
|
28
42
|
*
|
|
@@ -56,5 +70,5 @@ export declare class AlertAction implements RendererAction {
|
|
|
56
70
|
* confirm确认提示动作
|
|
57
71
|
*/
|
|
58
72
|
export declare class ConfirmAction implements RendererAction {
|
|
59
|
-
run(action:
|
|
73
|
+
run(action: IConfirmDialogAction, renderer: ListenerContext, event: RendererEvent<any>): Promise<any>;
|
|
60
74
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { __awaiter, __generator, __assign } from 'tslib';
|
|
7
7
|
import { registerAction } from './Action.js';
|
|
8
|
+
import { render } from '../index.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* 打开弹窗动作
|
|
@@ -20,6 +21,10 @@ var DialogAction = /** @class */ (function () {
|
|
|
20
21
|
var _a, _b, _c;
|
|
21
22
|
return __awaiter(this, void 0, void 0, function () {
|
|
22
23
|
return __generator(this, function (_d) {
|
|
24
|
+
// 防止editor preview模式下执行
|
|
25
|
+
if (action.$$id !== undefined) {
|
|
26
|
+
return [2 /*return*/];
|
|
27
|
+
}
|
|
23
28
|
(_b = (_a = renderer.props).onAction) === null || _b === void 0 ? void 0 : _b.call(_a, event, {
|
|
24
29
|
actionType: 'dialog',
|
|
25
30
|
dialog: ((_c = action.args) === null || _c === void 0 ? void 0 : _c.dialog) || action.dialog,
|
|
@@ -83,14 +88,25 @@ var ConfirmAction = /** @class */ (function () {
|
|
|
83
88
|
function ConfirmAction() {
|
|
84
89
|
}
|
|
85
90
|
ConfirmAction.prototype.run = function (action, renderer, event) {
|
|
86
|
-
var _a, _b, _c
|
|
91
|
+
var _a, _b, _c;
|
|
87
92
|
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
-
var confirmed;
|
|
89
|
-
return __generator(this, function (
|
|
90
|
-
switch (
|
|
91
|
-
case 0:
|
|
93
|
+
var content, confirmed;
|
|
94
|
+
return __generator(this, function (_d) {
|
|
95
|
+
switch (_d.label) {
|
|
96
|
+
case 0:
|
|
97
|
+
content = ((_a = action.args) === null || _a === void 0 ? void 0 : _a.body)
|
|
98
|
+
? render(action.args.body)
|
|
99
|
+
: action.args.msg;
|
|
100
|
+
return [4 /*yield*/, ((_c = (_b = event.context.env).confirm) === null || _c === void 0 ? void 0 : _c.call(_b, content, action.args.title, {
|
|
101
|
+
closeOnEsc: action.args.closeOnEsc,
|
|
102
|
+
size: action.args.size,
|
|
103
|
+
confirmText: action.args.confirmText,
|
|
104
|
+
cancelText: action.args.cancelText,
|
|
105
|
+
confirmBtnLevel: action.args.confirmBtnLevel,
|
|
106
|
+
cancelBtnLevel: action.args.cancelBtnLevel
|
|
107
|
+
}))];
|
|
92
108
|
case 1:
|
|
93
|
-
confirmed =
|
|
109
|
+
confirmed = _d.sent();
|
|
94
110
|
return [2 /*return*/, confirmed];
|
|
95
111
|
}
|
|
96
112
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RendererEnv } from '../env';
|
|
2
|
+
import type { CustomStyleClassName } from '../utils/style-helper';
|
|
3
|
+
interface CustomStyleProps {
|
|
4
|
+
config: {
|
|
5
|
+
themeCss: any;
|
|
6
|
+
classNames: CustomStyleClassName[];
|
|
7
|
+
id?: string;
|
|
8
|
+
defaultData?: any;
|
|
9
|
+
};
|
|
10
|
+
env: RendererEnv;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: CustomStyleProps): null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-core v3.1.0
|
|
3
|
+
* Copyright 2018-2023 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { useEffect } from 'react';
|
|
7
|
+
import { insertCustomStyle } from '../utils/style-helper.js';
|
|
8
|
+
|
|
9
|
+
function CustomStyle (props) {
|
|
10
|
+
var _a = props.config, themeCss = _a.themeCss, classNames = _a.classNames, id = _a.id, defaultData = _a.defaultData;
|
|
11
|
+
useEffect(function () {
|
|
12
|
+
var _a;
|
|
13
|
+
insertCustomStyle(themeCss, classNames, id, defaultData, (_a = props.env) === null || _a === void 0 ? void 0 : _a.customStyleClassPrefix);
|
|
14
|
+
}, [props.config.themeCss]);
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { CustomStyle as default };
|
|
@@ -19,7 +19,7 @@ export interface LazyComponentState {
|
|
|
19
19
|
}
|
|
20
20
|
export default class LazyComponent extends React.Component<LazyComponentProps, LazyComponentState> {
|
|
21
21
|
static defaultProps: {
|
|
22
|
-
placeholder: JSX.Element;
|
|
22
|
+
placeholder: React.JSX.Element;
|
|
23
23
|
unMountOnHidden: boolean;
|
|
24
24
|
partialVisibility: boolean;
|
|
25
25
|
};
|
|
@@ -13,9 +13,9 @@ interface OverlayProps {
|
|
|
13
13
|
shouldUpdatePosition?: boolean;
|
|
14
14
|
rootClose?: boolean;
|
|
15
15
|
onHide?(props: any, ...args: any[]): any;
|
|
16
|
-
container?: HTMLElement | (() => HTMLElement | null | undefined);
|
|
16
|
+
container?: HTMLElement | React.ReactNode | (() => HTMLElement | React.ReactNode | null | undefined);
|
|
17
17
|
containerSelector?: string;
|
|
18
|
-
target?: React.ReactNode | Function;
|
|
18
|
+
target?: React.ReactNode | HTMLElement | Function;
|
|
19
19
|
watchTargetSizeChange?: boolean;
|
|
20
20
|
offset?: [number, number];
|
|
21
21
|
onEnter?(node: HTMLElement): any;
|
|
@@ -39,6 +39,6 @@ export default class Overlay extends React.Component<OverlayProps, OverlayState>
|
|
|
39
39
|
componentDidUpdate(prevProps: OverlayProps): void;
|
|
40
40
|
onHiddenListener(node: HTMLElement): void;
|
|
41
41
|
getContainerSelector(): Element | null;
|
|
42
|
-
render(): JSX.Element | null;
|
|
42
|
+
render(): React.JSX.Element | null;
|
|
43
43
|
}
|
|
44
44
|
export {};
|
|
@@ -50,14 +50,14 @@ export declare class PopOver extends React.PureComponent<PopOverPorps, PopOverSt
|
|
|
50
50
|
componentDidUpdate(): void;
|
|
51
51
|
componentWillUnmount(): void;
|
|
52
52
|
mayUpdateOffset(): void;
|
|
53
|
-
render(): JSX.Element;
|
|
53
|
+
render(): React.JSX.Element;
|
|
54
54
|
}
|
|
55
55
|
declare const _default: {
|
|
56
56
|
new (props: Omit<PopOverPorps, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps): {
|
|
57
57
|
ref: any;
|
|
58
58
|
childRef(ref: any): void;
|
|
59
59
|
getWrappedInstance(): any;
|
|
60
|
-
render(): JSX.Element;
|
|
60
|
+
render(): React.JSX.Element;
|
|
61
61
|
context: unknown;
|
|
62
62
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<PopOverPorps, keyof import("../theme").ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
63
63
|
forceUpdate(callback?: (() => void) | undefined): void;
|
package/esm/env.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ export interface RendererEnv {
|
|
|
40
40
|
*/
|
|
41
41
|
watchRouteChange?: (fn: () => void) => () => void;
|
|
42
42
|
tracker: (eventTrack: EventTrack, props?: PlainObject) => void;
|
|
43
|
+
/**
|
|
44
|
+
* 捕获amis执行中的错误信息
|
|
45
|
+
*/
|
|
46
|
+
errorCatcher?: (error: any, errorInfo: any) => void;
|
|
47
|
+
/**
|
|
48
|
+
* 自定义样式前缀
|
|
49
|
+
*/
|
|
50
|
+
customStyleClassPrefix?: string;
|
|
43
51
|
rendererResolver?: (path: string, schema: Schema, props: any) => null | RendererConfig;
|
|
44
52
|
copy?: (contents: string, format?: any) => void;
|
|
45
53
|
getModalContainer?: () => HTMLElement;
|
|
@@ -86,7 +94,7 @@ export declare function withRendererEnv<T extends React.ComponentType<React.Comp
|
|
|
86
94
|
}) | Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "env">> & {
|
|
87
95
|
env?: RendererEnv | undefined;
|
|
88
96
|
}>): {
|
|
89
|
-
render(): JSX.Element;
|
|
97
|
+
render(): React.JSX.Element;
|
|
90
98
|
context: unknown;
|
|
91
99
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "env">> & {
|
|
92
100
|
env?: RendererEnv | undefined;
|
|
@@ -129,7 +137,7 @@ export declare function withRendererEnv<T extends React.ComponentType<React.Comp
|
|
|
129
137
|
new (props: JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "env">> & {
|
|
130
138
|
env?: RendererEnv | undefined;
|
|
131
139
|
}, context: any): {
|
|
132
|
-
render(): JSX.Element;
|
|
140
|
+
render(): React.JSX.Element;
|
|
133
141
|
context: unknown;
|
|
134
142
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "env">> & {
|
|
135
143
|
env?: RendererEnv | undefined;
|
package/esm/env.js
CHANGED
package/esm/envOverwrite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -16,10 +16,6 @@ var isMobile = ((_b = (_a = window).matchMedia) === null || _b === void 0 ? void
|
|
|
16
16
|
// 这里不能用 addSchemaFilter 是因为还需要更深层的替换,比如 select 里的 options
|
|
17
17
|
var envOverwrite = function (schema, locale) {
|
|
18
18
|
var e_1, _a, e_2, _b;
|
|
19
|
-
if (schema.mobile && isMobile) {
|
|
20
|
-
Object.assign(schema, schema.mobile);
|
|
21
|
-
delete schema.mobile;
|
|
22
|
-
}
|
|
23
19
|
if (locale) {
|
|
24
20
|
var schemaNodes = findObjectsWithKey(schema, locale);
|
|
25
21
|
try {
|
package/esm/factory.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { fetcherResult, SchemaNode, Schema, PlainObject } from './types';
|
|
|
4
4
|
import { ThemeProps } from './theme';
|
|
5
5
|
import { LocaleProps } from './locale';
|
|
6
6
|
import type { RendererEnv } from './env';
|
|
7
|
-
import { OnEventProps } from './utils/renderer-event';
|
|
7
|
+
import { OnEventProps, RendererEvent } from './utils/renderer-event';
|
|
8
|
+
import { StatusScopedProps } from './StatusScoped';
|
|
8
9
|
export interface TestFunc {
|
|
9
10
|
(path: string, schema?: Schema, resolveRenderer?: (path: string, schema?: Schema, props?: any) => null | RendererConfig): boolean;
|
|
10
11
|
}
|
|
@@ -20,7 +21,7 @@ export interface RendererBasicConfig {
|
|
|
20
21
|
isFormItem?: boolean;
|
|
21
22
|
autoVar?: boolean;
|
|
22
23
|
}
|
|
23
|
-
export interface RendererProps extends ThemeProps, LocaleProps, OnEventProps {
|
|
24
|
+
export interface RendererProps extends ThemeProps, LocaleProps, OnEventProps, StatusScopedProps {
|
|
24
25
|
render: (region: string, node: SchemaNode, props?: PlainObject) => JSX.Element;
|
|
25
26
|
env: RendererEnv;
|
|
26
27
|
$path: string;
|
|
@@ -35,6 +36,7 @@ export interface RendererProps extends ThemeProps, LocaleProps, OnEventProps {
|
|
|
35
36
|
style?: {
|
|
36
37
|
[propName: string]: any;
|
|
37
38
|
};
|
|
39
|
+
onBroadcast?: (type: string, rawEvent: RendererEvent<any>, ctx: any) => any;
|
|
38
40
|
[propName: string]: any;
|
|
39
41
|
}
|
|
40
42
|
export type RendererComponent = React.ComponentType<RendererProps> & {
|
|
@@ -71,7 +73,7 @@ export declare function filterSchema(schema: Schema, render: RendererConfig, pro
|
|
|
71
73
|
export declare function Renderer(config: RendererBasicConfig): <T extends RendererComponent>(component: T) => T;
|
|
72
74
|
export declare function registerRenderer(config: RendererConfig): RendererConfig;
|
|
73
75
|
export declare function unRegisterRenderer(config: RendererConfig | string): void;
|
|
74
|
-
export declare function loadRenderer(schema: Schema, path: string): JSX.Element;
|
|
76
|
+
export declare function loadRenderer(schema: Schema, path: string): React.JSX.Element;
|
|
75
77
|
export declare const defaultOptions: RenderOptions;
|
|
76
78
|
export declare const stores: {
|
|
77
79
|
[propName: string]: IRendererStore;
|
package/esm/factory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v3.1.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -138,11 +138,11 @@ var defaultOptions = {
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
isCancel: function () {
|
|
141
|
-
console.error('Please implement isCancel. see https://baidu.
|
|
141
|
+
console.error('Please implement isCancel. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97');
|
|
142
142
|
return false;
|
|
143
143
|
},
|
|
144
144
|
updateLocation: function () {
|
|
145
|
-
console.error('Please implement updateLocation. see https://baidu.
|
|
145
|
+
console.error('Please implement updateLocation. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97');
|
|
146
146
|
},
|
|
147
147
|
jumpTo: function (to, action) {
|
|
148
148
|
if (to === 'goBack') {
|
package/esm/index.d.ts
CHANGED
|
@@ -14,10 +14,11 @@ export * from './types';
|
|
|
14
14
|
export * from './store';
|
|
15
15
|
import * as utils from './utils/helper';
|
|
16
16
|
import { RegisterStore } from './store';
|
|
17
|
+
import type { IColumn, IColumn2, IRow, IRow2 } from './store';
|
|
17
18
|
import { setDefaultLocale, getDefaultLocale, makeTranslator, register as registerLocale, extendLocale, removeLocaleData, localeable } from './locale';
|
|
18
19
|
import type { LocaleProps, TranslateFn } from './locale';
|
|
19
|
-
import Scoped, { ScopedContext } from './Scoped';
|
|
20
|
-
import type { IScopedContext } from './Scoped';
|
|
20
|
+
import Scoped, { ScopedContext, filterTarget } from './Scoped';
|
|
21
|
+
import type { ScopedComponentType, IScopedContext } from './Scoped';
|
|
21
22
|
import { classnames, getClassPrefix, setDefaultTheme, theme, getTheme, themeable, makeClassnames } from './theme';
|
|
22
23
|
import type { ClassNamesFn, ThemeProps } from './theme';
|
|
23
24
|
declare const classPrefix: string | undefined;
|
|
@@ -37,7 +38,13 @@ import LazyComponent from './components/LazyComponent';
|
|
|
37
38
|
import Overlay from './components/Overlay';
|
|
38
39
|
import PopOver from './components/PopOver';
|
|
39
40
|
import { FormRenderer } from './renderers/Form';
|
|
40
|
-
import type { FormHorizontal } from './renderers/Form';
|
|
41
|
+
import type { FormHorizontal, FormSchemaBase } from './renderers/Form';
|
|
42
|
+
import type { OnEventProps } from './utils/index';
|
|
43
|
+
import { valueMap as styleMap } from './utils/style-helper';
|
|
44
|
+
import { RENDERER_TRANSMISSION_OMIT_PROPS } from './SchemaRenderer';
|
|
45
|
+
import type { IItem } from './store/list';
|
|
46
|
+
import CustomStyle from './components/CustomStyle';
|
|
47
|
+
import { StatusScoped } from './StatusScoped';
|
|
41
48
|
export declare const version = "__buildVersion";
|
|
42
|
-
export { clearStoresCache, updateEnv, Renderer, RendererProps, RenderOptions, RendererEnv, EnvContext, RegisterStore, FormItem, FormItemWrap, FormItemProps, OptionsControl, FormRenderer, FormHorizontal, utils, getRendererByName, registerRenderer, unRegisterRenderer, getRenderers, registerFormItem, getFormItemByName, registerOptionsControl, resolveRenderer, filterSchema, Scoped, ScopedContext, IScopedContext, setDefaultTheme, theme, themeable, ThemeProps, getTheme, classPrefix, getClassPrefix, classnames, makeClassnames, getDefaultLocale, setDefaultLocale, registerLocale, makeTranslator, extendLocale, removeLocaleData, localeable, LocaleProps, TranslateFn, ClassNamesFn, parse, lexer, Evaluator, AsyncEvaluator, FilterContext, filters, getFilters, registerFilter, extendsFilters, registerFunction, evaluate, evaluateForAsync, LazyComponent, Overlay, PopOver, addSchemaFilter, OptionsControlProps, FormOptionsControl, FormControlProps, FormBaseControl, extendDefaultEnv, addRootWrapper, RendererConfig };
|
|
49
|
+
export { clearStoresCache, updateEnv, Renderer, RendererProps, RenderOptions, RendererEnv, EnvContext, RegisterStore, FormItem, FormItemWrap, FormItemProps, OptionsControl, FormRenderer, FormHorizontal, utils, getRendererByName, registerRenderer, unRegisterRenderer, getRenderers, registerFormItem, getFormItemByName, registerOptionsControl, resolveRenderer, filterSchema, Scoped, ScopedContext, IScopedContext, StatusScoped, setDefaultTheme, theme, themeable, ThemeProps, getTheme, classPrefix, getClassPrefix, classnames, makeClassnames, getDefaultLocale, setDefaultLocale, registerLocale, makeTranslator, extendLocale, removeLocaleData, localeable, LocaleProps, TranslateFn, ClassNamesFn, parse, lexer, Evaluator, AsyncEvaluator, FilterContext, filters, getFilters, registerFilter, extendsFilters, registerFunction, evaluate, evaluateForAsync, LazyComponent, Overlay, PopOver, addSchemaFilter, OptionsControlProps, FormOptionsControl, FormControlProps, FormBaseControl, extendDefaultEnv, addRootWrapper, RendererConfig, styleMap, RENDERER_TRANSMISSION_OMIT_PROPS, ScopedComponentType, IItem, IColumn, IRow, IColumn2, IRow2, OnEventProps, FormSchemaBase, filterTarget, CustomStyle };
|
|
43
50
|
export declare function render(schema: Schema, props?: RootRenderProps, options?: RenderOptions, pathPrefix?: string): JSX.Element;
|