@ai-table/state 0.3.0 → 0.3.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/action/field.d.ts.map +1 -1
- package/action/group.d.ts.map +1 -1
- package/action/index.d.ts +3 -2
- package/action/index.d.ts.map +1 -1
- package/action/position.d.ts +3 -1
- package/action/position.d.ts.map +1 -1
- package/action/record.d.ts.map +1 -1
- package/action/view.d.ts +3 -3
- package/action/view.d.ts.map +1 -1
- package/fesm2022/ai-table-state.mjs +293 -217
- package/fesm2022/ai-table-state.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/undo-manager.service.d.ts.map +1 -1
- package/utils/build.d.ts +2 -2
- package/utils/build.d.ts.map +1 -1
- package/utils/common.d.ts.map +1 -1
- package/utils/field/add-fields.d.ts.map +1 -1
- package/utils/field/frozen-field.d.ts.map +1 -1
- package/utils/field/move-fields.d.ts.map +1 -1
- package/utils/group/group-calculator.d.ts.map +1 -1
- package/utils/view.d.ts +1 -1
- package/utils/view.d.ts.map +1 -1
package/action/field.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/field.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/field.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,oBAAoB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,wBAAgB,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,QAe3G;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAG9E;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,oBAAoB,QAGlG;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,QAM7D;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,EAC7E,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EACjB,IAAI,EAAE,MAAM,GACb,cAAc,GAAG,IAAI,CAyBvB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,gBAAgB,GAAG,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,QAK5H;AAED,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC"}
|
package/action/group.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/group.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/group.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,iBAAiB,EAAE,aAAa,EAAgB,MAAM,iBAAiB,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGhD,iBAAS,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,IAAI,QAmB7E;AAED,iBAAS,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAkB3E;AAGD,iBAAS,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,QAOjE;AAGD,iBAAS,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,aAAuC,QAkB/G;AAGD,iBAAS,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,QAQ9D;AAGD,iBAAS,yBAAyB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,QAQjG;AAGD,iBAAS,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAenF;AAGD,iBAAS,cAAc,CAAC,OAAO,EAAE,WAAW,QAE3C;AAED,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAC"}
|
package/action/index.d.ts
CHANGED
|
@@ -10,10 +10,11 @@ export declare const Actions: {
|
|
|
10
10
|
setRecordPositions: typeof import("./position").setRecordPositions;
|
|
11
11
|
resetAllRecordsPositions: typeof import("./position").resetAllRecordsPositions;
|
|
12
12
|
resetAllFieldsPositions: typeof import("./position").resetAllFieldsPositions;
|
|
13
|
+
resetAllViewsPositions: typeof import("./position").resetAllViewsPositions;
|
|
13
14
|
setView: (aiTable: import("@ai-table/state").AIViewTable, value: Partial<import("@ai-table/utils").AITableView>, path: [string]) => void;
|
|
14
15
|
addView: (aiTable: import("@ai-table/state").AIViewTable, originId: string, newView: import("@ai-table/utils").AITableView, isDuplicate?: boolean) => void;
|
|
15
16
|
removeView: (aiTable: import("@ai-table/state").AIViewTable, path: [string]) => void;
|
|
16
|
-
|
|
17
|
+
buildSetViewAction: typeof import("./view").buildSetViewAction;
|
|
17
18
|
addField: typeof import("./field").addField;
|
|
18
19
|
removeField: typeof import("./field").removeField;
|
|
19
20
|
setField: typeof import("./field").setField;
|
|
@@ -26,6 +27,6 @@ export declare const Actions: {
|
|
|
26
27
|
updateSystemFieldValues: typeof import("./record").updateSystemFieldValues;
|
|
27
28
|
transform(aiTable: import("@ai-table/state").AIViewTable, actions: import("@ai-table/utils").AITableAction[]): void;
|
|
28
29
|
};
|
|
29
|
-
export {
|
|
30
|
+
export { buildSetRecordPositionsAction } from './position';
|
|
30
31
|
export { buildSetFieldAction } from './field';
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
package/action/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOnB,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
|
package/action/position.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AIViewTable } from '../types';
|
|
2
2
|
import { NumberPath, Positions, RemovePositions, SetRecordPositionAction } from '@ai-table/utils';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function buildSetRecordPositionsAction(aiTable: AIViewTable, positions: Positions | RemovePositions, path: NumberPath): SetRecordPositionAction;
|
|
4
4
|
export declare function resetAllRecordsPositions(aiTable: AIViewTable): void;
|
|
5
5
|
export declare function resetAllFieldsPositions(aiTable: AIViewTable): void;
|
|
6
|
+
export declare function resetAllViewsPositions(aiTable: AIViewTable): void;
|
|
6
7
|
export declare function setRecordPositions(aiTable: AIViewTable, positions: Positions | RemovePositions, path: NumberPath): void;
|
|
7
8
|
export declare const PositionsActions: {
|
|
8
9
|
setRecordPositions: typeof setRecordPositions;
|
|
9
10
|
resetAllRecordsPositions: typeof resetAllRecordsPositions;
|
|
10
11
|
resetAllFieldsPositions: typeof resetAllFieldsPositions;
|
|
12
|
+
resetAllViewsPositions: typeof resetAllViewsPositions;
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=position.d.ts.map
|
package/action/position.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAKH,UAAU,EACV,SAAS,EACT,eAAe,EACf,uBAAuB,EAC1B,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAKH,UAAU,EACV,SAAS,EACT,eAAe,EACf,uBAAuB,EAC1B,MAAM,iBAAiB,CAAC;AAKzB,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,eAAe,EAAE,IAAI,EAAE,UAAU,2BAO3H;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,QAa5D;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,QAc3D;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,QAW1D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,eAAe,EAAE,IAAI,EAAE,UAAU,QAGhH;AAED,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC"}
|
package/action/record.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/record.ts"],"names":[],"mappings":"AACA,OAAO,EAMH,aAAa,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/record.ts"],"names":[],"mappings":"AACA,OAAO,EAMH,aAAa,EACb,MAAM,EAEN,gBAAgB,EAChB,uBAAuB,EACvB,6BAA6B,EAChC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAsBzF;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAYrG;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,QAEpE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,OAAO,CAAC,EAAE,gBAAgB,QAoCpG;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,QAM9D;AAED,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC"}
|
package/action/view.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AITableView } from '@ai-table/utils';
|
|
1
|
+
import { AITableView, SetViewAction } from '@ai-table/utils';
|
|
2
2
|
import { AIViewTable } from '../types/ai-table';
|
|
3
|
+
export declare function buildSetViewAction(aiTable: AIViewTable, value: Partial<AITableView>, path: [string]): SetViewAction | null;
|
|
3
4
|
declare function setView(aiTable: AIViewTable, value: Partial<AITableView>, path: [string]): void;
|
|
4
5
|
declare function addView(aiTable: AIViewTable, originId: string, newView: AITableView, isDuplicate?: boolean): void;
|
|
5
6
|
declare function removeView(aiTable: AIViewTable, path: [string]): void;
|
|
6
|
-
export declare function setViewFrozenField(aiTable: AIViewTable, frozenFieldId?: string): void;
|
|
7
7
|
export declare const ViewActions: {
|
|
8
8
|
setView: typeof setView;
|
|
9
9
|
addView: typeof addView;
|
|
10
10
|
removeView: typeof removeView;
|
|
11
|
-
|
|
11
|
+
buildSetViewAction: typeof buildSetViewAction;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=view.d.ts.map
|
package/action/view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../packages/state/src/action/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA+C,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIhD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,wBA0BnG;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAKjF;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,OAAO,QAwCnG;AAED,iBAAS,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAMvD;AAED,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
|