amis-core 7.0.0-next.0 → 7.0.0-next.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 +1 -1
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/TaggerWrapper.js +1 -1
- package/esm/WithRootStore.d.ts +70 -70
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +5 -5
- 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 +1 -1
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/EventAction.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/PrintAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/WaitAction.js +1 -1
- package/esm/components/Animations.js +12 -4
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.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/globalVar.js +1 -1
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/hooks/useEnvContext.js +1 -1
- package/esm/hooks/useRenderOptionsContext.js +1 -1
- package/esm/index.js +4 -4
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +1 -1
- package/esm/renderers/Item.d.ts +35 -35
- package/esm/renderers/Item.js +1 -1
- package/esm/renderers/Options.js +1 -1
- 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 +35 -35
- package/esm/renderers/wrapControl.js +1 -1
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +775 -808
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.js +1 -1
- package/esm/store/form.d.ts +306 -321
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.js +1 -1
- package/esm/store/index.d.ts +16 -16
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +33 -33
- package/esm/store/list.js +1 -1
- package/esm/store/manager.d.ts +24 -24
- 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.js +1 -1
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +374 -690
- package/esm/store/table.js +2 -2
- package/esm/store/table2.d.ts +37 -173
- package/esm/store/table2.js +5 -3
- 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 +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/animations.js +1 -1
- package/esm/utils/api.js +1 -1
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/concatData.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/decodeEntity.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/findDomCompat.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.js +1 -1
- package/esm/utils/getPageId.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 +1 -1
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.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/labelToString.js +1 -1
- package/esm/utils/loopTooMuch.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.js +1 -1
- package/esm/utils/memoryParse.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/printElement.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/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.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-helper.js +1 -1
- package/esm/utils/style.js +1 -1
- package/esm/utils/toNumber.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/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/esm/utils/visitedCache.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.js +1 -1
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/TaggerWrapper.js +1 -1
- package/lib/WithRootStore.d.ts +70 -70
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +5 -5
- 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 +1 -1
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/EventAction.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/PrintAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/WaitAction.js +1 -1
- package/lib/components/Animations.js +12 -4
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.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/globalVar.js +1 -1
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/hooks/useEnvContext.js +1 -1
- package/lib/hooks/useRenderOptionsContext.js +1 -1
- package/lib/index.js +4 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +1 -1
- package/lib/renderers/Item.d.ts +35 -35
- package/lib/renderers/Item.js +1 -1
- package/lib/renderers/Options.js +1 -1
- 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 +35 -35
- package/lib/renderers/wrapControl.js +1 -1
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +775 -808
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.js +1 -1
- package/lib/store/form.d.ts +306 -321
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.js +1 -1
- package/lib/store/index.d.ts +16 -16
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +33 -33
- package/lib/store/list.js +1 -1
- package/lib/store/manager.d.ts +24 -24
- 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.js +1 -1
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +374 -690
- package/lib/store/table.js +2 -2
- package/lib/store/table2.d.ts +37 -173
- package/lib/store/table2.js +5 -3
- 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 +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/animations.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/concatData.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/decodeEntity.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/findDomCompat.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.js +1 -1
- package/lib/utils/getPageId.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 +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.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/labelToString.js +1 -1
- package/lib/utils/loopTooMuch.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.js +1 -1
- package/lib/utils/memoryParse.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/printElement.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/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.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-helper.js +1 -1
- package/lib/utils/style.js +1 -1
- package/lib/utils/toNumber.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/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +4 -4
package/esm/store/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v7.0.0-next.
|
|
2
|
+
* amis-core v7.0.0-next.1
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -1210,7 +1210,7 @@ var TableStore = iRendererStore
|
|
|
1210
1210
|
return arr.reduce(function (result, current) {
|
|
1211
1211
|
result.push(current.id);
|
|
1212
1212
|
if (current.children && current.children.length) {
|
|
1213
|
-
result = result.concat(getExpandAllRows(current.children));
|
|
1213
|
+
result = result.concat(getExpandAllRows(Array.from(current.children)));
|
|
1214
1214
|
}
|
|
1215
1215
|
return result;
|
|
1216
1216
|
}, []);
|
package/esm/store/table2.d.ts
CHANGED
|
@@ -139,9 +139,9 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
139
139
|
reset(): void;
|
|
140
140
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
141
141
|
expandedRowKeys: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<any, any, any>>;
|
|
142
|
-
columnsTogglable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").
|
|
142
|
+
columnsTogglable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree/dist/internal").IUnionType<[import("mobx-state-tree").ISimpleType<boolean>, import("mobx-state-tree").ISimpleType<"auto">, import("mobx-state-tree").IType<any, any, any>]>, [undefined]>;
|
|
143
143
|
orderBy: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
144
|
-
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").
|
|
144
|
+
order: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree/dist/internal").IUnionType<[import("mobx-state-tree").ISimpleType<"asc">, import("mobx-state-tree").ISimpleType<"desc">]>, [undefined]>;
|
|
145
145
|
query: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
146
146
|
pageNo: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
147
147
|
pageSize: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
@@ -226,18 +226,18 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
226
226
|
toggleToggle(): void;
|
|
227
227
|
setToggled(value: boolean): void;
|
|
228
228
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
229
|
-
readonly toggableColumns: ({
|
|
230
|
-
title: any
|
|
231
|
-
label: any
|
|
232
|
-
name: string
|
|
233
|
-
toggled: boolean
|
|
234
|
-
breakpoint: any
|
|
235
|
-
pristine: any
|
|
236
|
-
toggable: boolean
|
|
237
|
-
index: number
|
|
238
|
-
type: string
|
|
239
|
-
children: import("mobx-state-tree").
|
|
240
|
-
} &
|
|
229
|
+
readonly toggableColumns: (import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
230
|
+
title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
231
|
+
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
232
|
+
name: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
233
|
+
toggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
234
|
+
breakpoint: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
235
|
+
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
236
|
+
toggable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
237
|
+
index: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
238
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
239
|
+
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
240
|
+
}> & {
|
|
241
241
|
toggleToggle(): void;
|
|
242
242
|
setToggled(value: boolean): void;
|
|
243
243
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -256,18 +256,18 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
256
256
|
setToggled(value: boolean): void;
|
|
257
257
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
258
258
|
readonly filteredColumns: any[];
|
|
259
|
-
readonly activeToggaleColumns: ({
|
|
260
|
-
title: any
|
|
261
|
-
label: any
|
|
262
|
-
name: string
|
|
263
|
-
toggled: boolean
|
|
264
|
-
breakpoint: any
|
|
265
|
-
pristine: any
|
|
266
|
-
toggable: boolean
|
|
267
|
-
index: number
|
|
268
|
-
type: string
|
|
269
|
-
children: import("mobx-state-tree").
|
|
270
|
-
} &
|
|
259
|
+
readonly activeToggaleColumns: (import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
260
|
+
title: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
261
|
+
label: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
262
|
+
name: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
263
|
+
toggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
264
|
+
breakpoint: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
265
|
+
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
266
|
+
toggable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
267
|
+
index: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
268
|
+
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
269
|
+
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
270
|
+
}> & {
|
|
271
271
|
toggleToggle(): void;
|
|
272
272
|
setToggled(value: boolean): void;
|
|
273
273
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -288,66 +288,7 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
288
288
|
readonly dataSource: any[];
|
|
289
289
|
readonly currentSelectedRowKeys: any;
|
|
290
290
|
readonly currentExpandedKeys: any[];
|
|
291
|
-
readonly unSelectedRows: ({
|
|
292
|
-
storeType: string;
|
|
293
|
-
id: string;
|
|
294
|
-
parentId: string;
|
|
295
|
-
name: string;
|
|
296
|
-
pristine: any;
|
|
297
|
-
data: any;
|
|
298
|
-
index: number;
|
|
299
|
-
newIndex: number;
|
|
300
|
-
depth: number;
|
|
301
|
-
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
302
|
-
path: string;
|
|
303
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
304
|
-
readonly checked: boolean;
|
|
305
|
-
readonly modified: boolean;
|
|
306
|
-
readonly moved: boolean;
|
|
307
|
-
readonly locals: any;
|
|
308
|
-
getDataWithModifiedChilden(): any;
|
|
309
|
-
} & {
|
|
310
|
-
replaceWith(data: any): void;
|
|
311
|
-
change(values: object, savePristine?: boolean): void;
|
|
312
|
-
reset(): void;
|
|
313
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
314
|
-
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
315
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
316
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
317
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
318
|
-
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
319
|
-
data: import("mobx-state-tree").IType<any, any, any>;
|
|
320
|
-
index: import("mobx-state-tree").ISimpleType<number>;
|
|
321
|
-
newIndex: import("mobx-state-tree").ISimpleType<number>;
|
|
322
|
-
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
323
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
324
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
325
|
-
}, {
|
|
326
|
-
readonly checked: boolean;
|
|
327
|
-
readonly modified: boolean;
|
|
328
|
-
readonly moved: boolean;
|
|
329
|
-
readonly locals: any;
|
|
330
|
-
getDataWithModifiedChilden(): any;
|
|
331
|
-
} & {
|
|
332
|
-
replaceWith(data: any): void;
|
|
333
|
-
change(values: object, savePristine?: boolean): void;
|
|
334
|
-
reset(): void;
|
|
335
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
336
|
-
hasColumnHidden(): boolean;
|
|
337
|
-
getData: (superData: any) => any;
|
|
338
|
-
getRowById(id: string): import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
339
|
-
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
340
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
341
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
342
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
343
|
-
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
344
|
-
data: import("mobx-state-tree").IType<any, any, any>;
|
|
345
|
-
index: import("mobx-state-tree").ISimpleType<number>;
|
|
346
|
-
newIndex: import("mobx-state-tree").ISimpleType<number>;
|
|
347
|
-
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
348
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
349
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
350
|
-
}>> | import("mobx-state-tree").ModelSnapshotType<{
|
|
291
|
+
readonly unSelectedRows: (import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
351
292
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
352
293
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
353
294
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -359,19 +300,7 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
359
300
|
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
360
301
|
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
361
302
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
362
|
-
}>
|
|
363
|
-
storeType: string;
|
|
364
|
-
id: string;
|
|
365
|
-
parentId: string;
|
|
366
|
-
name: string;
|
|
367
|
-
pristine: any;
|
|
368
|
-
data: any;
|
|
369
|
-
index: number;
|
|
370
|
-
newIndex: number;
|
|
371
|
-
depth: number;
|
|
372
|
-
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
373
|
-
path: string;
|
|
374
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
303
|
+
}> & {
|
|
375
304
|
readonly checked: boolean;
|
|
376
305
|
readonly modified: boolean;
|
|
377
306
|
readonly moved: boolean;
|
|
@@ -403,57 +332,17 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
403
332
|
replaceWith(data: any): void;
|
|
404
333
|
change(values: object, savePristine?: boolean): void;
|
|
405
334
|
reset(): void;
|
|
406
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)
|
|
335
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
336
|
+
hasColumnHidden(): boolean;
|
|
337
|
+
getData: (superData: any) => any;
|
|
338
|
+
getRowById(id: string): import("../utils/helper").TreeItem | null;
|
|
407
339
|
isSelected: (row: IRow2) => boolean;
|
|
408
340
|
getRowByIndex: (rowIndex: number, levels?: Array<number>, rows?: Array<IRow2>) => IRow2;
|
|
409
341
|
readonly moved: number;
|
|
410
|
-
readonly movedRows:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
415
|
-
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
416
|
-
data: import("mobx-state-tree").IType<any, any, any>;
|
|
417
|
-
index: import("mobx-state-tree").ISimpleType<number>;
|
|
418
|
-
newIndex: import("mobx-state-tree").ISimpleType<number>;
|
|
419
|
-
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
420
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
421
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
422
|
-
}>> | import("mobx-state-tree").ModelSnapshotType<{
|
|
423
|
-
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
424
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
425
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
426
|
-
name: import("mobx-state-tree").ISimpleType<string>;
|
|
427
|
-
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
428
|
-
data: import("mobx-state-tree").IType<any, any, any>;
|
|
429
|
-
index: import("mobx-state-tree").ISimpleType<number>;
|
|
430
|
-
newIndex: import("mobx-state-tree").ISimpleType<number>;
|
|
431
|
-
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
432
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
433
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
434
|
-
}> | ({
|
|
435
|
-
storeType: string;
|
|
436
|
-
id: string;
|
|
437
|
-
parentId: string;
|
|
438
|
-
name: string;
|
|
439
|
-
pristine: any;
|
|
440
|
-
data: any;
|
|
441
|
-
index: number;
|
|
442
|
-
newIndex: number;
|
|
443
|
-
depth: number;
|
|
444
|
-
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
445
|
-
path: string;
|
|
446
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
447
|
-
readonly checked: boolean;
|
|
448
|
-
readonly modified: boolean;
|
|
449
|
-
readonly moved: boolean;
|
|
450
|
-
readonly locals: any;
|
|
451
|
-
getDataWithModifiedChilden(): any;
|
|
452
|
-
} & {
|
|
453
|
-
replaceWith(data: any): void;
|
|
454
|
-
change(values: object, savePristine?: boolean): void;
|
|
455
|
-
reset(): void;
|
|
456
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
342
|
+
readonly movedRows: import("../utils/helper").TreeItem[];
|
|
343
|
+
readonly keyField: string;
|
|
344
|
+
readonly modified: number;
|
|
345
|
+
readonly modifiedRows: (import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
457
346
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
458
347
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
459
348
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -465,32 +354,7 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
465
354
|
depth: import("mobx-state-tree").ISimpleType<number>;
|
|
466
355
|
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>;
|
|
467
356
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
468
|
-
}
|
|
469
|
-
readonly checked: boolean;
|
|
470
|
-
readonly modified: boolean;
|
|
471
|
-
readonly moved: boolean;
|
|
472
|
-
readonly locals: any;
|
|
473
|
-
getDataWithModifiedChilden(): any;
|
|
474
|
-
} & {
|
|
475
|
-
replaceWith(data: any): void;
|
|
476
|
-
change(values: object, savePristine?: boolean): void;
|
|
477
|
-
reset(): void;
|
|
478
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>))[];
|
|
479
|
-
readonly keyField: string;
|
|
480
|
-
readonly modified: number;
|
|
481
|
-
readonly modifiedRows: ({
|
|
482
|
-
storeType: string;
|
|
483
|
-
id: string;
|
|
484
|
-
parentId: string;
|
|
485
|
-
name: string;
|
|
486
|
-
pristine: any;
|
|
487
|
-
data: any;
|
|
488
|
-
index: number;
|
|
489
|
-
newIndex: number;
|
|
490
|
-
depth: number;
|
|
491
|
-
children: import("mobx-state-tree").IMSTArray<IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<IAnyModelType>, [undefined]>>;
|
|
492
|
-
path: string;
|
|
493
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
357
|
+
}> & {
|
|
494
358
|
readonly checked: boolean;
|
|
495
359
|
readonly modified: boolean;
|
|
496
360
|
readonly moved: boolean;
|
package/esm/store/table2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v7.0.0-next.
|
|
2
|
+
* amis-core v7.0.0-next.1
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -183,7 +183,7 @@ var TableStore2 = ServiceStore.named('TableStore2')
|
|
|
183
183
|
(item.toggled || !item.toggable);
|
|
184
184
|
})
|
|
185
185
|
.map(function (item) { return (__assign(__assign({}, item.pristine), { type: item.type, children: item.children
|
|
186
|
-
? getAllFilteredColumns(item.children)
|
|
186
|
+
? getAllFilteredColumns(Array.from(item.children))
|
|
187
187
|
: undefined })); });
|
|
188
188
|
}
|
|
189
189
|
return [];
|
|
@@ -307,7 +307,9 @@ var TableStore2 = ServiceStore.named('TableStore2')
|
|
|
307
307
|
item.$ref) {
|
|
308
308
|
item = __assign(__assign({}, options.resolveDefinitions(item.$ref)), item);
|
|
309
309
|
}
|
|
310
|
-
return __assign(__assign({}, item), { index: index, type: item.type || 'plain', pristine: item, toggled: item.toggled !== false, breakpoint: item.breakpoint, children: item.children
|
|
310
|
+
return __assign(__assign({}, item), { index: index, type: item.type || 'plain', pristine: item, toggled: item.toggled !== false, breakpoint: item.breakpoint, children: item.children
|
|
311
|
+
? updateColumns(Array.from(item.children), options)
|
|
312
|
+
: [] });
|
|
311
313
|
});
|
|
312
314
|
return cols;
|
|
313
315
|
}
|
package/esm/theme.js
CHANGED
package/esm/utils/Animation.js
CHANGED
package/esm/utils/ColorScale.js
CHANGED
package/esm/utils/DataSchema.js
CHANGED
package/esm/utils/DataScope.js
CHANGED
package/esm/utils/RootClose.js
CHANGED
package/esm/utils/SimpleMap.js
CHANGED
package/esm/utils/animations.js
CHANGED
package/esm/utils/api.js
CHANGED
package/esm/utils/arraySlice.js
CHANGED
package/esm/utils/autobind.js
CHANGED
package/esm/utils/browser.js
CHANGED
package/esm/utils/concatData.js
CHANGED
package/esm/utils/dataMapping.js
CHANGED
package/esm/utils/date.js
CHANGED
package/esm/utils/debug.js
CHANGED
package/esm/utils/dom.js
CHANGED
package/esm/utils/errors.js
CHANGED
package/esm/utils/escapeHtml.js
CHANGED
package/esm/utils/filter.js
CHANGED
package/esm/utils/formula.js
CHANGED
package/esm/utils/getPageId.js
CHANGED
package/esm/utils/getVariable.js
CHANGED
package/esm/utils/grammar.js
CHANGED
package/esm/utils/helper.js
CHANGED
package/esm/utils/highlight.js
CHANGED
package/esm/utils/icon.js
CHANGED
package/esm/utils/image.js
CHANGED
package/esm/utils/index.js
CHANGED
package/esm/utils/keyToPath.js
CHANGED
package/esm/utils/loopTooMuch.js
CHANGED