@simpleform/render 4.1.23 → 4.1.24
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/README.md +1 -1
- package/README_CN.md +1 -1
- package/lib/index.js +1 -1
- package/lib/store.d.ts +3 -3
- package/lib/utils/utils.d.ts +7 -9
- package/package.json +1 -1
package/lib/store.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export declare class SimpleFormRender {
|
|
|
14
14
|
ignore?: boolean;
|
|
15
15
|
}): void;
|
|
16
16
|
setItemByPath: (data?: unknown, path?: string) => void;
|
|
17
|
-
setItemByIndex:
|
|
18
|
-
insertItemByIndex:
|
|
17
|
+
setItemByIndex: (data?: unknown, index?: number, parent?: string) => void;
|
|
18
|
+
insertItemByIndex: (data?: unknown, index?: number, parent?: string) => void;
|
|
19
19
|
delItemByPath: (path?: string) => void;
|
|
20
20
|
getItemByPath: (path?: string) => undefined;
|
|
21
|
-
getItemByIndex:
|
|
21
|
+
getItemByIndex: (index: number, parent?: string) => import("./typings").WidgetItem<{}> | undefined;
|
|
22
22
|
moveItemByPath: (from: {
|
|
23
23
|
parent?: string;
|
|
24
24
|
index: number;
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -5,15 +5,13 @@ export declare const getParent: (path?: string) => string;
|
|
|
5
5
|
export declare const getPathLen: (path?: string) => number;
|
|
6
6
|
export declare const setItemByPath: <V>(widgetList?: V, data?: unknown, path?: string) => V | undefined;
|
|
7
7
|
export declare const getItemByPath: <V, Path extends FormPathType = string>(widgetList?: V, path?: Path) => import("@simpleform/form/lib/typings").PathValue<V, Path> | undefined;
|
|
8
|
-
export declare
|
|
9
|
-
export declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
export declare const insertItemByIndex: <V>(widgetList?: WidgetList, data?: V | Array<V>, index?: number, parent?: string) => WidgetList | undefined;
|
|
8
|
+
export declare function getEntriesByIndex<T>(widgetList?: T[], index?: number, parent?: string): [number, T];
|
|
9
|
+
export declare function getEntriesByIndex<T>(widgetList?: Record<string, T>, index?: number, parent?: string): [string, T];
|
|
10
|
+
export declare function toEntries<T>(data: T[]): [number, T][];
|
|
11
|
+
export declare function toEntries<T>(data: Record<string, T>): [string, T][];
|
|
12
|
+
export declare function parseEntries<T>(entries: Array<[number, T]>): T[];
|
|
13
|
+
export declare function parseEntries<T>(entries: Array<[string, T]>): Record<string, T>;
|
|
14
|
+
export declare const insertItemByIndex: (widgetList?: WidgetList, data?: unknown, index?: number, parent?: string) => WidgetList | undefined;
|
|
17
15
|
export declare const moveSameLevel: (widgetList: WidgetList | undefined, from: {
|
|
18
16
|
parent?: string;
|
|
19
17
|
index: number;
|
package/package.json
CHANGED