amis-core 2.0.0 → 2.0.1
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 +1 -1
- package/esm/RootRenderer.js +7 -7
- package/esm/SchemaRenderer.js +12 -12
- package/esm/Scoped.js +1 -1
- package/esm/WithRootStore.d.ts +0 -18
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/_virtual/index.js +1 -1
- package/esm/_virtual/index2.js +1 -1
- package/esm/_virtual/react-is.development.js +1 -1
- package/esm/_virtual/react-is.production.min.js +1 -1
- package/esm/actions/Action.js +1 -1
- 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 +3 -3
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/Decorators.js +1 -1
- package/esm/actions/DialogAction.js +2 -2
- 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/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.js +1 -1
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index2.js +1 -1
- package/esm/locale.js +1 -1
- package/esm/node_modules/@restart/hooks/esm/useCommittedRef.js +1 -1
- package/esm/node_modules/@restart/hooks/esm/useEventCallback.js +1 -1
- package/esm/node_modules/dom-helpers/esm/addEventListener.js +1 -1
- package/esm/node_modules/dom-helpers/esm/canUseDOM.js +1 -1
- package/esm/node_modules/dom-helpers/esm/contains.js +1 -1
- package/esm/node_modules/dom-helpers/esm/listen.js +1 -1
- package/esm/node_modules/dom-helpers/esm/ownerDocument.js +1 -1
- package/esm/node_modules/dom-helpers/esm/removeEventListener.js +1 -1
- package/esm/node_modules/object-assign/index.js +1 -1
- package/esm/node_modules/prop-types/checkPropTypes.js +1 -1
- package/esm/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/esm/node_modules/prop-types/index.js +1 -1
- package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
- package/esm/node_modules/prop-types/lib/has.js +1 -1
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/esm/node_modules/react-overlays/esm/Portal.js +1 -1
- package/esm/node_modules/react-overlays/esm/ownerDocument.js +1 -1
- package/esm/node_modules/react-overlays/esm/safeFindDOMNode.js +1 -1
- package/esm/node_modules/react-overlays/esm/useRootClose.js +1 -1
- package/esm/node_modules/react-overlays/esm/useWaitForDOMRef.js +1 -1
- package/esm/node_modules/warning/warning.js +1 -1
- package/esm/renderers/Form.js +2 -2
- package/esm/renderers/Item.d.ts +4 -18
- package/esm/renderers/Item.js +19 -8
- package/esm/renderers/Options.js +2 -2
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/wrapControl.d.ts +0 -9
- package/esm/renderers/wrapControl.js +1 -1
- package/esm/store/app.d.ts +4 -1
- package/esm/store/app.js +5 -2
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.js +1 -1
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +3 -2
- package/esm/store/iRenderer.js +1 -1
- package/esm/store/index.d.ts +0 -5
- package/esm/store/index.js +1 -16
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +4 -0
- package/esm/store/root.js +14 -2
- package/esm/store/service.js +1 -1
- package/esm/store/table-v2.js +1 -1
- package/esm/store/table.js +1 -1
- package/esm/theme.js +1 -1
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +2 -6
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/api.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- 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.js +1 -1
- package/esm/utils/debug.js +1 -1
- package/esm/utils/dom.js +1 -1
- 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 +1 -1
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.js +3 -2
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/isPureVariable.js +1 -1
- 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/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +1 -1
- package/esm/utils/object.js +1 -1
- 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 +1 -1
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- 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.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.js +1 -1
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.js +1 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.js +7 -7
- package/lib/SchemaRenderer.js +12 -12
- package/lib/Scoped.js +1 -1
- package/lib/WithRootStore.d.ts +0 -18
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +1 -1
- package/lib/_virtual/index.js +1 -1
- package/lib/_virtual/index2.js +1 -1
- package/lib/_virtual/react-is.development.js +1 -1
- package/lib/_virtual/react-is.production.min.js +1 -1
- package/lib/actions/Action.js +1 -1
- 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 +3 -3
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/Decorators.js +1 -1
- package/lib/actions/DialogAction.js +2 -2
- 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/LazyComponent.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.js +1 -1
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index2.js +1 -1
- package/lib/locale.js +1 -1
- package/lib/node_modules/@restart/hooks/esm/useCommittedRef.js +1 -1
- package/lib/node_modules/@restart/hooks/esm/useEventCallback.js +1 -1
- package/lib/node_modules/dom-helpers/esm/addEventListener.js +1 -1
- package/lib/node_modules/dom-helpers/esm/canUseDOM.js +1 -1
- package/lib/node_modules/dom-helpers/esm/contains.js +1 -1
- package/lib/node_modules/dom-helpers/esm/listen.js +1 -1
- package/lib/node_modules/dom-helpers/esm/ownerDocument.js +1 -1
- package/lib/node_modules/dom-helpers/esm/removeEventListener.js +1 -1
- package/lib/node_modules/object-assign/index.js +1 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +1 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/node_modules/prop-types/index.js +1 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
- package/lib/node_modules/prop-types/lib/has.js +1 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/lib/node_modules/react-overlays/esm/Portal.js +1 -1
- package/lib/node_modules/react-overlays/esm/ownerDocument.js +1 -1
- package/lib/node_modules/react-overlays/esm/safeFindDOMNode.js +1 -1
- package/lib/node_modules/react-overlays/esm/useRootClose.js +1 -1
- package/lib/node_modules/react-overlays/esm/useWaitForDOMRef.js +1 -1
- package/lib/node_modules/warning/warning.js +1 -1
- package/lib/renderers/Form.js +2 -2
- package/lib/renderers/Item.d.ts +4 -18
- package/lib/renderers/Item.js +18 -7
- package/lib/renderers/Options.js +2 -2
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/wrapControl.d.ts +0 -9
- package/lib/renderers/wrapControl.js +1 -1
- package/lib/store/app.d.ts +4 -1
- package/lib/store/app.js +5 -2
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.js +1 -1
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +3 -2
- package/lib/store/iRenderer.js +1 -1
- package/lib/store/index.d.ts +0 -5
- package/lib/store/index.js +1 -16
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +4 -0
- package/lib/store/root.js +14 -2
- package/lib/store/service.js +1 -1
- package/lib/store/table-v2.js +1 -1
- package/lib/store/table.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +2 -6
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- 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.js +1 -1
- package/lib/utils/debug.js +1 -1
- package/lib/utils/dom.js +1 -1
- 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 +1 -1
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.js +3 -2
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/isPureVariable.js +1 -1
- 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/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +1 -1
- package/lib/utils/object.js +1 -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 +1 -1
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- 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.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.js +1 -1
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.js +1 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/package.json +3 -3
package/lib/store/app.d.ts
CHANGED
|
@@ -82,7 +82,10 @@ export declare const AppStore: import("mobx-state-tree").IModelType<{
|
|
|
82
82
|
toggleOffScreen(): void;
|
|
83
83
|
setPages(pages: any): void;
|
|
84
84
|
rewrite(to: string, env: RendererEnv): void;
|
|
85
|
-
setActivePage(page: any, env: RendererEnv
|
|
85
|
+
setActivePage(page: any, env: RendererEnv & {
|
|
86
|
+
showFullBreadcrumbPath?: boolean;
|
|
87
|
+
showBreadcrumbHomePath?: boolean;
|
|
88
|
+
}, params?: any): void;
|
|
86
89
|
updateActivePage(env: RendererEnv): void;
|
|
87
90
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
88
91
|
export declare type IAppStore = Instance<typeof AppStore>;
|
package/lib/store/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -122,9 +122,12 @@ var AppStore = service.ServiceStore.named('AppStore')
|
|
|
122
122
|
helper.findTree(self.pages, function (item, index, level, paths) {
|
|
123
123
|
if (item.id === page.id) {
|
|
124
124
|
bcn = paths.filter(function (item) { return item.path && item.label; });
|
|
125
|
+
if (env.showFullBreadcrumbPath) {
|
|
126
|
+
bcn = paths.filter(function (item) { return item.label; });
|
|
127
|
+
}
|
|
125
128
|
bcn.push(tslib.__assign(tslib.__assign({}, item), { path: '' }));
|
|
126
129
|
self.__;
|
|
127
|
-
if (bcn[0].path !== '/') {
|
|
130
|
+
if (env.showBreadcrumbHomePath && bcn[0].path !== '/') {
|
|
128
131
|
bcn.unshift({
|
|
129
132
|
label: self.__('App.home'),
|
|
130
133
|
path: '/'
|
package/lib/store/combo.js
CHANGED
package/lib/store/crud.js
CHANGED
package/lib/store/form.js
CHANGED
package/lib/store/formItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -321,7 +321,8 @@ var FormItemStore = node.StoreNode.named('FormItemStore')
|
|
|
321
321
|
return childFirst;
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
else if (option[self.valueField || 'value']
|
|
324
|
+
else if (option[self.valueField || 'value'] != null &&
|
|
325
|
+
!option.disabled) {
|
|
325
326
|
return option;
|
|
326
327
|
}
|
|
327
328
|
}
|
package/lib/store/iRenderer.js
CHANGED
package/lib/store/index.d.ts
CHANGED
|
@@ -15,9 +15,6 @@ import { IPaginationStore, PaginationStore } from './pagination';
|
|
|
15
15
|
import { AppStore, IAppStore } from './app';
|
|
16
16
|
export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
17
17
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
18
|
-
} & {
|
|
19
|
-
visibleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
|
-
disableState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
18
|
}, {
|
|
22
19
|
readonly fetcher: any;
|
|
23
20
|
readonly notify: any;
|
|
@@ -108,8 +105,6 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
108
105
|
parentId?: string | undefined;
|
|
109
106
|
}): IStoreNode;
|
|
110
107
|
removeStore(store: IStoreNode): void;
|
|
111
|
-
setVisible(id: string, value: boolean): void;
|
|
112
|
-
setDisable(id: string, value: boolean): void;
|
|
113
108
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
114
109
|
export declare type IRendererStore = Instance<typeof RendererStore>;
|
|
115
110
|
export { iRendererStore, IIRendererStore };
|
package/lib/store/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
var tslib = require('tslib');
|
|
11
10
|
var mobxStateTree = require('mobx-state-tree');
|
|
12
11
|
var iRenderer = require('./iRenderer.js');
|
|
13
12
|
var service = require('./service.js');
|
|
@@ -47,10 +46,6 @@ var allowedStoreList = [
|
|
|
47
46
|
var RendererStore = mobxStateTree.types
|
|
48
47
|
.model('RendererStore', {
|
|
49
48
|
storeType: 'RendererStore'
|
|
50
|
-
})
|
|
51
|
-
.props({
|
|
52
|
-
visibleState: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
53
|
-
disableState: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {})
|
|
54
49
|
})
|
|
55
50
|
.views(function (self) { return ({
|
|
56
51
|
get fetcher() {
|
|
@@ -83,16 +78,6 @@ var RendererStore = mobxStateTree.types
|
|
|
83
78
|
removeStore: function (store) {
|
|
84
79
|
// store.dispose();
|
|
85
80
|
manager.removeStore(store);
|
|
86
|
-
},
|
|
87
|
-
setVisible: function (id, value) {
|
|
88
|
-
var _a;
|
|
89
|
-
var state = tslib.__assign(tslib.__assign({}, self.visibleState), (_a = {}, _a[id] = value, _a));
|
|
90
|
-
self.visibleState = state;
|
|
91
|
-
},
|
|
92
|
-
setDisable: function (id, value) {
|
|
93
|
-
var _a;
|
|
94
|
-
var state = tslib.__assign(tslib.__assign({}, self.disableState), (_a = {}, _a[id] = value, _a));
|
|
95
|
-
self.disableState = state;
|
|
96
81
|
}
|
|
97
82
|
}); });
|
|
98
83
|
var RegisterStore = function (store) {
|
package/lib/store/list.js
CHANGED
package/lib/store/manager.js
CHANGED
package/lib/store/modal.js
CHANGED
package/lib/store/node.js
CHANGED
package/lib/store/pagination.js
CHANGED
package/lib/store/root.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
31
31
|
runtimeError: import("mobx-state-tree").IType<any, any, any>;
|
|
32
32
|
runtimeErrorStack: import("mobx-state-tree").IType<any, any, any>;
|
|
33
33
|
query: import("mobx-state-tree").IType<any, any, any>;
|
|
34
|
+
visibleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
35
|
+
disableState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
34
36
|
}, {
|
|
35
37
|
readonly parentStore: any;
|
|
36
38
|
readonly __: any;
|
|
@@ -75,5 +77,7 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
75
77
|
} & {
|
|
76
78
|
setRuntimeError(error: any, errorStack: any): void;
|
|
77
79
|
updateLocation(location?: any): void;
|
|
80
|
+
setVisible(id: string, value: boolean): void;
|
|
81
|
+
setDisable(id: string, value: boolean): void;
|
|
78
82
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
79
83
|
export declare type IRootStore = Instance<typeof RootStore>;
|
package/lib/store/root.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -17,7 +17,9 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
17
17
|
.props({
|
|
18
18
|
runtimeError: mobxStateTree.types.frozen(),
|
|
19
19
|
runtimeErrorStack: mobxStateTree.types.frozen(),
|
|
20
|
-
query: mobxStateTree.types.frozen()
|
|
20
|
+
query: mobxStateTree.types.frozen(),
|
|
21
|
+
visibleState: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
22
|
+
disableState: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {})
|
|
21
23
|
})
|
|
22
24
|
.views(function (self) { return ({
|
|
23
25
|
get downStream() {
|
|
@@ -39,6 +41,16 @@ var RootStore = service.ServiceStore.named('RootStore')
|
|
|
39
41
|
(window.location.search &&
|
|
40
42
|
helper.qsparse(window.location.search.substring(1)));
|
|
41
43
|
self.query = query;
|
|
44
|
+
},
|
|
45
|
+
setVisible: function (id, value) {
|
|
46
|
+
var _a;
|
|
47
|
+
var state = tslib.__assign(tslib.__assign({}, self.visibleState), (_a = {}, _a[id] = value, _a));
|
|
48
|
+
self.visibleState = state;
|
|
49
|
+
},
|
|
50
|
+
setDisable: function (id, value) {
|
|
51
|
+
var _a;
|
|
52
|
+
var state = tslib.__assign(tslib.__assign({}, self.disableState), (_a = {}, _a[id] = value, _a));
|
|
53
|
+
self.disableState = state;
|
|
42
54
|
}
|
|
43
55
|
}); });
|
|
44
56
|
|
package/lib/store/service.js
CHANGED
package/lib/store/table-v2.js
CHANGED
package/lib/store/table.js
CHANGED
package/lib/theme.js
CHANGED
package/lib/utils/Animation.js
CHANGED
package/lib/utils/ColorScale.js
CHANGED
package/lib/utils/DataSchema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -71,11 +71,7 @@ var DataSchema = /** @class */ (function () {
|
|
|
71
71
|
};
|
|
72
72
|
DataSchema.prototype.getScope = function (idOrScope) {
|
|
73
73
|
var id = typeof idOrScope === 'string' ? idOrScope : idOrScope.id;
|
|
74
|
-
|
|
75
|
-
if (!scope) {
|
|
76
|
-
throw new Error('scope not found!');
|
|
77
|
-
}
|
|
78
|
-
return scope;
|
|
74
|
+
return this.idMap[id];
|
|
79
75
|
};
|
|
80
76
|
DataSchema.prototype.switchToRoot = function () {
|
|
81
77
|
this.current = this.root;
|
package/lib/utils/DataScope.js
CHANGED
package/lib/utils/RootClose.js
CHANGED
package/lib/utils/SimpleMap.js
CHANGED
package/lib/utils/api.js
CHANGED
package/lib/utils/autobind.js
CHANGED
package/lib/utils/dataMapping.js
CHANGED
package/lib/utils/date.js
CHANGED
package/lib/utils/debug.js
CHANGED
package/lib/utils/dom.js
CHANGED
package/lib/utils/errors.js
CHANGED
package/lib/utils/escapeHtml.js
CHANGED
package/lib/utils/filter.js
CHANGED
package/lib/utils/formula.js
CHANGED
package/lib/utils/getVariable.js
CHANGED
package/lib/utils/grammar.js
CHANGED
package/lib/utils/helper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v2.0.
|
|
2
|
+
* amis-core v2.0.1
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -862,7 +862,8 @@ function qsparse(data, options) {
|
|
|
862
862
|
if (options === void 0) { options = {
|
|
863
863
|
arrayFormat: 'indices',
|
|
864
864
|
encodeValuesOnly: true,
|
|
865
|
-
depth: 1000
|
|
865
|
+
depth: 1000,
|
|
866
|
+
arrayLimit: 1000 /** array元素数量超出限制,会被自动转化为object格式,默认值1000 */
|
|
866
867
|
}; }
|
|
867
868
|
return qs__default["default"].parse(data, options);
|
|
868
869
|
}
|
package/lib/utils/highlight.js
CHANGED
package/lib/utils/icon.js
CHANGED
package/lib/utils/image.js
CHANGED
package/lib/utils/keyToPath.js
CHANGED
package/lib/utils/makeSorter.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
package/lib/utils/replaceText.js
CHANGED