@ai-table/state 0.0.65 → 0.0.67
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 +3 -4
- package/action/field.d.ts.map +1 -1
- package/action/general.d.ts +2 -1
- package/action/general.d.ts.map +1 -1
- package/action/index.d.ts +3 -4
- package/action/index.d.ts.map +1 -1
- package/action/position.d.ts +2 -2
- package/action/position.d.ts.map +1 -1
- package/action/record.d.ts +3 -5
- package/action/record.d.ts.map +1 -1
- package/action/view.d.ts +2 -1
- package/action/view.d.ts.map +1 -1
- package/constants/field-menu-item.d.ts +2 -1
- package/constants/field-menu-item.d.ts.map +1 -1
- package/constants/index.d.ts +0 -1
- package/constants/index.d.ts.map +1 -1
- package/constants/view.d.ts +1 -1
- package/constants/view.d.ts.map +1 -1
- package/esm2022/action/field.mjs +3 -4
- package/esm2022/action/general.mjs +12 -35
- package/esm2022/action/position.mjs +2 -2
- package/esm2022/action/record.mjs +4 -16
- package/esm2022/action/view.mjs +2 -2
- package/esm2022/constants/field-menu-item.mjs +2 -2
- package/esm2022/constants/index.mjs +1 -2
- package/esm2022/constants/view.mjs +2 -2
- package/esm2022/plugins/state.plugin.mjs +1 -1
- package/esm2022/shared/index.mjs +2 -1
- package/esm2022/shared/to-table/index.mjs +3 -3
- package/esm2022/shared/to-table/map-event.mjs +2 -3
- package/esm2022/shared/to-yjs/add-node.mjs +14 -8
- package/esm2022/shared/to-yjs/index.mjs +2 -2
- package/esm2022/shared/to-yjs/remove-node.mjs +3 -3
- package/esm2022/shared/to-yjs/set-node.mjs +3 -3
- package/esm2022/shared/to-yjs/update-field-value.mjs +10 -4
- package/esm2022/shared/undo-manager.service.mjs +60 -0
- package/esm2022/shared/utils/index.mjs +1 -2
- package/esm2022/shared/utils/initialize.mjs +5 -5
- package/esm2022/types/ai-table.mjs +1 -1
- package/esm2022/types/index.mjs +1 -5
- package/esm2022/utils/build.mjs +1 -1
- package/esm2022/utils/common.mjs +1 -1
- package/esm2022/utils/field/add-fields.mjs +21 -14
- package/esm2022/utils/field/move-fields.mjs +1 -1
- package/esm2022/utils/field/position-field.mjs +1 -1
- package/esm2022/utils/field/remove-field.mjs +1 -1
- package/esm2022/utils/field/sort-fields.mjs +2 -2
- package/esm2022/utils/record/add-records.mjs +4 -3
- package/esm2022/utils/record/filter.mjs +4 -3
- package/esm2022/utils/record/move-records.mjs +1 -1
- package/esm2022/utils/record/sort.mjs +2 -1
- package/esm2022/utils/record/update-field-value.mjs +1 -1
- package/esm2022/utils/record/update-system-field-value.mjs +1 -1
- package/esm2022/utils/view.mjs +1 -1
- package/fesm2022/ai-table-state.mjs +185 -507
- package/fesm2022/ai-table-state.mjs.map +1 -1
- package/package.json +2 -4
- package/plugins/state.plugin.d.ts.map +1 -1
- package/shared/index.d.ts +1 -0
- package/shared/index.d.ts.map +1 -1
- package/shared/to-table/index.d.ts +2 -1
- package/shared/to-table/index.d.ts.map +1 -1
- package/shared/to-table/map-event.d.ts +2 -1
- package/shared/to-table/map-event.d.ts.map +1 -1
- package/shared/to-yjs/add-node.d.ts +2 -1
- package/shared/to-yjs/add-node.d.ts.map +1 -1
- package/shared/to-yjs/index.d.ts +1 -1
- package/shared/to-yjs/index.d.ts.map +1 -1
- package/shared/to-yjs/remove-node.d.ts +2 -1
- package/shared/to-yjs/remove-node.d.ts.map +1 -1
- package/shared/to-yjs/set-node.d.ts +2 -1
- package/shared/to-yjs/set-node.d.ts.map +1 -1
- package/shared/to-yjs/update-field-value.d.ts +2 -1
- package/shared/to-yjs/update-field-value.d.ts.map +1 -1
- package/shared/undo-manager.service.d.ts +21 -0
- package/shared/undo-manager.service.d.ts.map +1 -0
- package/shared/utils/index.d.ts +0 -1
- package/shared/utils/index.d.ts.map +1 -1
- package/shared/utils/initialize.d.ts +1 -1
- package/shared/utils/initialize.d.ts.map +1 -1
- package/types/ai-table.d.ts +3 -4
- package/types/ai-table.d.ts.map +1 -1
- package/types/index.d.ts +0 -4
- package/types/index.d.ts.map +1 -1
- package/utils/build.d.ts +3 -3
- package/utils/build.d.ts.map +1 -1
- package/utils/common.d.ts +2 -3
- package/utils/common.d.ts.map +1 -1
- package/utils/field/add-fields.d.ts +1 -1
- package/utils/field/add-fields.d.ts.map +1 -1
- package/utils/field/move-fields.d.ts +1 -1
- package/utils/field/move-fields.d.ts.map +1 -1
- package/utils/field/position-field.d.ts +1 -2
- package/utils/field/position-field.d.ts.map +1 -1
- package/utils/field/remove-field.d.ts +2 -1
- package/utils/field/remove-field.d.ts.map +1 -1
- package/utils/field/sort-fields.d.ts +2 -2
- package/utils/field/sort-fields.d.ts.map +1 -1
- package/utils/record/add-records.d.ts +1 -1
- package/utils/record/add-records.d.ts.map +1 -1
- package/utils/record/filter.d.ts +3 -2
- package/utils/record/filter.d.ts.map +1 -1
- package/utils/record/move-records.d.ts +1 -1
- package/utils/record/move-records.d.ts.map +1 -1
- package/utils/record/sort.d.ts +4 -4
- package/utils/record/sort.d.ts.map +1 -1
- package/utils/record/update-field-value.d.ts +1 -1
- package/utils/record/update-field-value.d.ts.map +1 -1
- package/utils/record/update-system-field-value.d.ts +1 -1
- package/utils/record/update-system-field-value.d.ts.map +1 -1
- package/utils/view.d.ts +2 -1
- package/utils/view.d.ts.map +1 -1
- package/constants/default.d.ts +0 -2
- package/constants/default.d.ts.map +0 -1
- package/esm2022/constants/default.mjs +0 -2
- package/esm2022/shared/to-table/array-event.mjs +0 -189
- package/esm2022/shared/utils/translate.mjs +0 -142
- package/esm2022/types/action.mjs +0 -23
- package/esm2022/types/shared.mjs +0 -2
- package/esm2022/types/view.mjs +0 -16
- package/shared/to-table/array-event.d.ts +0 -10
- package/shared/to-table/array-event.d.ts.map +0 -1
- package/shared/utils/translate.d.ts +0 -33
- package/shared/utils/translate.d.ts.map +0 -1
- package/types/action.d.ts +0 -88
- package/types/action.d.ts.map +0 -1
- package/types/shared.d.ts +0 -13
- package/types/shared.d.ts.map +0 -1
- package/types/view.d.ts +0 -50
- package/types/view.d.ts.map +0 -1
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.plugin.d.ts","sourceRoot":"","sources":["../../../packages/state/src/plugins/state.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"state.plugin.d.ts","sourceRoot":"","sources":["../../../packages/state/src/plugins/state.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAMzC,eAAO,MAAM,SAAS,YAAa,OAAO,YAkBzC,CAAC"}
|
package/shared/index.d.ts
CHANGED
package/shared/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as Y from 'yjs';
|
2
|
-
import {
|
2
|
+
import { AIViewTable } from '../../types';
|
3
|
+
import { AITableAction, SharedType } from '@ai-table/utils';
|
3
4
|
export declare function translateYjsEvent(aiTable: AIViewTable, sharedType: SharedType, event: Y.YEvent<any>): AITableAction[];
|
4
5
|
export declare function applyEvents(aiTable: AIViewTable, sharedType: SharedType, events: Y.YEvent<any>[]): void;
|
5
6
|
export declare function applyYjsEvents(aiTable: AIViewTable, sharedType: SharedType, events: Y.YEvent<any>[]): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAG5D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,EAAE,CAQrH;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,QAMhG;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAQ1G"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as Y from 'yjs';
|
2
|
-
import {
|
2
|
+
import { AIViewTable } from '../../types';
|
3
|
+
import { SharedType, AITableAction } from '@ai-table/utils';
|
3
4
|
export default function translateMapEvent(aiTable: AIViewTable, sharedType: SharedType, event: Y.YMapEvent<unknown>): AITableAction[];
|
4
5
|
//# sourceMappingURL=map-event.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"map-event.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-table/map-event.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"map-event.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-table/map-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAA6B,UAAU,EAA0C,aAAa,EAAc,MAAM,iBAAiB,CAAC;AAC3I,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,aAAa,EAAE,CAkDpI"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { AITable } from '@ai-table/grid';
|
2
|
-
import { AddFieldAction, AddRecordAction, SetRecordPositionAction, AddViewAction,
|
2
|
+
import { AddFieldAction, AddRecordAction, SetRecordPositionAction, AddViewAction, UpdateSystemFieldValue } from '@ai-table/utils';
|
3
|
+
import { SharedType } from '@ai-table/utils';
|
3
4
|
export default function addNode(aiTable: AITable, sharedType: SharedType, action: AddFieldAction | AddRecordAction | AddViewAction | SetRecordPositionAction | UpdateSystemFieldValue): SharedType;
|
4
5
|
//# sourceMappingURL=add-node.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/add-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAEH,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,aAAa,
|
1
|
+
{"version":3,"file":"add-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/add-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAEH,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAUzB,OAAO,EAAwC,UAAU,EAAoC,MAAM,iBAAiB,CAAC;AAErH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC3B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,cAAc,GAAG,eAAe,GAAG,aAAa,GAAG,uBAAuB,GAAG,sBAAsB,GAC5G,UAAU,CA2DZ"}
|
package/shared/to-yjs/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AITable } from '@ai-table/grid';
|
2
|
-
import { AITableAction, SharedType } from '
|
2
|
+
import { AITableAction, SharedType } from '@ai-table/utils';
|
3
3
|
export type ActionMapper<O extends AITableAction = AITableAction> = {
|
4
4
|
[K in O['type']]: O extends {
|
5
5
|
type: K;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAKzC,OAAO,EAAc,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI;KAC/D,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK;CACjE,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,KAAK,UAAU,CAAC;AAEjI,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,CAYpD,CAAC;AAEF,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,UAAU,CAc7G"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { RemoveFieldAction, RemoveRecordAction, RemoveViewAction
|
1
|
+
import { RemoveFieldAction, RemoveRecordAction, RemoveViewAction } from '@ai-table/utils';
|
2
2
|
import { AITable } from '@ai-table/grid';
|
3
|
+
import { SharedType } from '@ai-table/utils';
|
3
4
|
export default function removeNode(aiTable: AITable, sharedType: SharedType, action: RemoveFieldAction | RemoveRecordAction | RemoveViewAction): SharedType;
|
4
5
|
//# sourceMappingURL=remove-node.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"remove-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/remove-node.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"remove-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/remove-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAgD,UAAU,EAAoC,MAAM,iBAAiB,CAAC;AAE7H,MAAM,CAAC,OAAO,UAAU,UAAU,CAC9B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,iBAAiB,GAAG,kBAAkB,GAAG,gBAAgB,GAClE,UAAU,CAoCZ"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { SetFieldAction, SetViewAction
|
1
|
+
import { SetFieldAction, SetViewAction } from '@ai-table/utils';
|
2
2
|
import { AITable } from '@ai-table/grid';
|
3
|
+
import { SharedType } from '@ai-table/utils';
|
3
4
|
export default function setNode(aiTable: AITable, sharedType: SharedType, action: SetFieldAction | SetViewAction): SharedType;
|
4
5
|
//# sourceMappingURL=set-node.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"set-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/set-node.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"set-node.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/set-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAA0B,UAAU,EAAkB,MAAM,iBAAiB,CAAC;AAErF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,GAAG,aAAa,GAAG,UAAU,CA6B5H"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { AITable } from '@ai-table/grid';
|
2
|
-
import {
|
2
|
+
import { UpdateFieldValueAction } from '@ai-table/utils';
|
3
|
+
import { SharedType } from '@ai-table/utils';
|
3
4
|
export default function updateFieldValue(aiTable: AITable, sharedType: SharedType, action: UpdateFieldValueAction): SharedType;
|
4
5
|
//# sourceMappingURL=update-field-value.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/update-field-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"update-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/to-yjs/update-field-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,EAAgD,UAAU,EAAoC,MAAM,iBAAiB,CAAC;AAE7H,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,sBAAsB,GAAG,UAAU,CAoB7H"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
2
|
+
import { UndoManager } from 'yjs';
|
3
|
+
import { AIViewTable } from '../types';
|
4
|
+
import { SharedType } from '@ai-table/utils';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class UndoManagerService {
|
7
|
+
private _undoManager;
|
8
|
+
private _canUndoCount;
|
9
|
+
private _canRedoCount;
|
10
|
+
private _aiTable;
|
11
|
+
get undoManager(): UndoManager | null;
|
12
|
+
get canUndoCount(): WritableSignal<number>;
|
13
|
+
get canRedoCount(): WritableSignal<number>;
|
14
|
+
initialize(sharedType: SharedType, aiTable: AIViewTable): void;
|
15
|
+
undo(): void;
|
16
|
+
redo(): void;
|
17
|
+
destroy(): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UndoManagerService, never>;
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UndoManagerService>;
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=undo-manager.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"undo-manager.service.d.ts","sourceRoot":"","sources":["../../../packages/state/src/shared/undo-manager.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;;AAC7C,qBACa,kBAAkB;IAC3B,OAAO,CAAC,YAAY,CAA4B;IAChD,OAAO,CAAC,aAAa,CAA6C;IAClE,OAAO,CAAC,aAAa,CAA6C;IAClE,OAAO,CAAC,QAAQ,CAA4B;IAE5C,IAAI,WAAW,IAAI,WAAW,GAAG,IAAI,CAEpC;IAED,IAAI,YAAY,IAAI,cAAc,CAAC,MAAM,CAAC,CAEzC;IAED,IAAI,YAAY,IAAI,cAAc,CAAC,MAAM,CAAC,CAEzC;IAED,UAAU,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW;IAqBvD,IAAI;IAMJ,IAAI;IAMJ,OAAO;yCAnDE,kBAAkB;6CAAlB,kBAAkB;CAwD9B"}
|
package/shared/utils/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as Y from 'yjs';
|
2
|
-
import { AITableViewFields, AITableViewRecords, AITableViews, SharedRecordJsonType, SharedType } from '
|
2
|
+
import { AITableViewFields, AITableViewRecords, AITableViews, SharedRecordJsonType, SharedType } from '@ai-table/utils';
|
3
3
|
export declare const createSharedType: (fieldName?: string) => Y.Map<any>;
|
4
4
|
export declare const getDataBySharedType: (sharedType: SharedType) => {
|
5
5
|
records: AITableViewRecords;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/utils/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/shared/utils/initialize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAA+B,iBAAiB,EAAE,kBAAkB,EAAE,YAAY,EAAE,oBAAoB,EAAE,UAAU,EAAoB,MAAM,iBAAiB,CAAC;AAUvK,eAAO,MAAM,gBAAgB,eAAe,MAAM,eAIjD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAU/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QACvB,EAAE,GAAG,mBACO;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;CACvB,eAKJ,CAAC;AAEF,wBAAgB,YAAY,CACxB,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EACtB,IAAI,EAAE;IACF,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,YAAY,CAAC;CACvB,GACF,IAAI,CAiBN;AAED,eAAO,MAAM,sBAAsB,oBAAqB,oBAAoB,EAAE,kDAW7E,CAAC"}
|
package/types/ai-table.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import { AITable } from
|
2
|
-
import { WritableSignal, Signal } from
|
3
|
-
import { AITableAction } from
|
4
|
-
import { AITableView } from "./view";
|
1
|
+
import { AITable } from '@ai-table/grid';
|
2
|
+
import { WritableSignal, Signal } from '@angular/core';
|
3
|
+
import { AITableAction, AITableView } from '@ai-table/utils';
|
5
4
|
export interface AIViewTable extends AITable {
|
6
5
|
views: WritableSignal<AITableView[]>;
|
7
6
|
activeViewId: WritableSignal<string>;
|
package/types/ai-table.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ai-table.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/ai-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,
|
1
|
+
{"version":3,"file":"ai-table.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/ai-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,WAAY,SAAQ,OAAO;IACxC,KAAK,EAAE,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC;IACrC,YAAY,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC,CAAC;IACjD,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC1C"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
package/utils/build.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AITableView, AITableViewFields, AITableViewRecords
|
2
|
-
import {
|
3
|
-
export declare function buildRecordsByView(aiTable: AIViewTable, records: AITableViewRecords, fields: AITableViewFields, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): (import("
|
1
|
+
import { AITableFieldType, AITableView, AITableViewFields, AITableViewRecords } from '@ai-table/utils';
|
2
|
+
import { AIViewTable } from '../types';
|
3
|
+
export declare function buildRecordsByView(aiTable: AIViewTable, records: AITableViewRecords, fields: AITableViewFields, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): (import("@ai-table/utils").AITableViewRecord | import("@ai-table/utils").AITableViewField)[];
|
4
4
|
export declare function buildFieldsByView(aiTable: AIViewTable, fields: AITableViewFields, activeView: AITableView): AITableViewFields;
|
5
5
|
//# sourceMappingURL=build.d.ts.map
|
package/utils/build.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/build.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/build.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,WAAW,EACvB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,gGAI1D;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,qBAEzG"}
|
package/utils/common.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import { Path } from '@ai-table/
|
2
|
-
import { AITableView, AITableViewFields, AITableViewRecords } from '../types';
|
1
|
+
import { AITableView, AITableViewFields, AITableViewRecords, Path } from '@ai-table/utils';
|
3
2
|
import { AITable } from '@ai-table/grid';
|
4
3
|
export declare function isPathEqual(path: Path, another: Path): boolean;
|
5
|
-
export declare function sortByViewPosition(data: AITableViewRecords | AITableViewFields, activeView: AITableView): (import("
|
4
|
+
export declare function sortByViewPosition(data: AITableViewRecords | AITableViewFields, activeView: AITableView): (import("@ai-table/utils").AITableViewRecord | import("@ai-table/utils").AITableViewField)[];
|
6
5
|
export declare function generateCopyName(aiTable: AITable, existNames: string[], name: string): string;
|
7
6
|
//# sourceMappingURL=common.d.ts.map
|
package/utils/common.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,UAAU,EAAE,WAAW,gGAMvG;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,UASpF"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AddFieldOptions, AITableRecordUpdatedInfo } from '@ai-table/
|
1
|
+
import { AddFieldOptions, AITableRecordUpdatedInfo } from '@ai-table/utils';
|
2
2
|
import { AIViewTable } from '../../types';
|
3
3
|
export declare function addFields(aiTable: AIViewTable, options: AddFieldOptions, updatedInfo: AITableRecordUpdatedInfo): void;
|
4
4
|
//# sourceMappingURL=add-fields.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/add-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,
|
1
|
+
{"version":3,"file":"add-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/add-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAuC,MAAM,iBAAiB,CAAC;AACjH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,wBAAgB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAwB,QAyB9G"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AITableRecordUpdatedInfo, MoveFieldOptions } from '@ai-table/
|
1
|
+
import { AITableRecordUpdatedInfo, MoveFieldOptions } from '@ai-table/utils';
|
2
2
|
import { AIViewTable } from '../../types';
|
3
3
|
export declare function moveFields(aiTable: AIViewTable, options: MoveFieldOptions, updatedInfo: AITableRecordUpdatedInfo): void;
|
4
4
|
//# sourceMappingURL=move-fields.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"move-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/move-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,
|
1
|
+
{"version":3,"file":"move-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/move-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,wBAAwB,QAGhH"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { AITableFields, AITableFieldsSizeMap, NumberPath } from '@ai-table/
|
2
|
-
import { AITableView, AITableViewField } from '../../types';
|
1
|
+
import { AITableFields, AITableFieldsSizeMap, AITableView, AITableViewField, NumberPath } from '@ai-table/utils';
|
3
2
|
export declare function getFieldPositionInView(viewId: string, fields: AITableFields, path: NumberPath, newPath: NumberPath): number;
|
4
3
|
export declare function getFieldsSizeMap(fields: AITableViewField[], activeView: AITableView): AITableFieldsSizeMap;
|
5
4
|
//# sourceMappingURL=position-field.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"position-field.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/position-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,
|
1
|
+
{"version":3,"file":"position-field.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/position-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEjH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,UA0BlH;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,WAAW,wBAMnF"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { AITable
|
1
|
+
import { AITable } from '@ai-table/grid';
|
2
2
|
import { Signal } from '@angular/core';
|
3
|
+
import { AITableRecordUpdatedInfo, AITableField } from '@ai-table/utils';
|
3
4
|
export declare const buildRemoveFieldItem: (aiTable: AITable, getUpdatedInfo: () => AITableRecordUpdatedInfo) => {
|
4
5
|
type: string;
|
5
6
|
name: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"remove-field.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/remove-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"remove-field.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/remove-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEzE,eAAO,MAAM,oBAAoB,YAAa,OAAO,kBAAkB,MAAM,wBAAwB;;;;oBAK7E,OAAO,SAAS,OAAO,YAAY,CAAC;CAK3D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AITable } from
|
2
|
-
import { AITableView, AITableViewFields } from
|
1
|
+
import { AITable } from '@ai-table/grid';
|
2
|
+
import { AITableView, AITableViewFields } from '@ai-table/utils';
|
3
3
|
export declare function getSortFields(aiTable: AITable, fields: AITableViewFields, activeView: AITableView): AITableViewFields;
|
4
4
|
//# sourceMappingURL=sort-fields.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sort-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/sort-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"sort-fields.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/sort-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,qBAEjG"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AddRecordOptions, TrackableEntity } from '@ai-table/grid';
|
2
1
|
import { AIViewTable } from '../../types';
|
2
|
+
import { AddRecordOptions, TrackableEntity } from '@ai-table/utils';
|
3
3
|
export declare function addRecords(aiTable: AIViewTable, options: AddRecordOptions, trackableEntity: TrackableEntity): void;
|
4
4
|
export declare function getDefaultRecordValues(aiTable: AIViewTable, isDuplicate?: boolean, recordId?: string): Record<string, any>;
|
5
5
|
//# sourceMappingURL=add-records.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-records.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/add-records.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"add-records.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/add-records.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,EACH,gBAAgB,EAMhB,eAAe,EAClB,MAAM,iBAAiB,CAAC;AAEzB,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,QAuB3G;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,UAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,uBAgBlG"}
|
package/utils/record/filter.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { AITable } from '@ai-table/grid';
|
2
|
+
import { AIViewTable } from '../../types';
|
3
|
+
import { AITableField, FieldValue, AITableViewRecords, AITableViewFields, AITableView, AITableFilterLogical, AITableFilterCondition } from '@ai-table/utils';
|
3
4
|
export declare function getFilteredRecords(aiTable: AIViewTable, records: AITableViewRecords, fields: AITableViewFields, activeView: AITableView): AITableViewRecords;
|
4
5
|
export declare function doFilter(condition: AITableFilterCondition, cellValue: FieldValue, options: {
|
5
6
|
aiTable: AITable;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/filter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAEH,YAAY,EAEZ,UAAU,EAGV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EAEX,oBAAoB,EAEpB,sBAAsB,EAEzB,MAAM,iBAAiB,CAAC;AAGzB,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,sBAgBvI;AAwCD,wBAAgB,QAAQ,CACpB,SAAS,EAAE,sBAAsB,EACjC,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE;IACL,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;CACvB,WAYJ;AAED,wBAAgB,4BAA4B,CACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EACxC,UAAU,EAAE,sBAAsB,EAAE,EACpC,MAAM,EAAE,iBAAiB,EACzB,gBAAgB,CAAC,EAAE,oBAAoB,uBA4C1C"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AITableRecordUpdatedInfo, MoveRecordOptions } from '@ai-table/
|
1
|
+
import { AITableRecordUpdatedInfo, MoveRecordOptions } from '@ai-table/utils';
|
2
2
|
import { AIViewTable } from '../../types';
|
3
3
|
export declare function moveRecords(aiTable: AIViewTable, options: MoveRecordOptions, updatedInfo: AITableRecordUpdatedInfo): void;
|
4
4
|
//# sourceMappingURL=move-records.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"move-records.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/move-records.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"move-records.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/move-records.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAmC,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/G,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,wBAAwB,QA0BlH"}
|
package/utils/record/sort.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
export declare function getSortRecords(aiTable: AITable, records: AITableViewRecords, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): (import("
|
4
|
-
export declare function sortRecordsBySortInfo(aiTable: AITable, records: AITableViewRecords, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): import("
|
1
|
+
import { AITableFieldType, AITableView, AITableViewRecords } from '@ai-table/utils';
|
2
|
+
import { AITable } from '@ai-table/grid';
|
3
|
+
export declare function getSortRecords(aiTable: AITable, records: AITableViewRecords, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): (import("@ai-table/utils").AITableViewRecord | import("@ai-table/utils").AITableViewField)[];
|
4
|
+
export declare function sortRecordsBySortInfo(aiTable: AITable, records: AITableViewRecords, activeView: AITableView, sortKeysMap?: Partial<Record<AITableFieldType, string>>): import("@ai-table/utils").AITableViewRecord[];
|
5
5
|
//# sourceMappingURL=sort.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/sort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/sort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,OAAO,EAAiC,MAAM,gBAAgB,CAAC;AAIxE,wBAAgB,cAAc,CAC1B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,WAAW,EACvB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,gGAU1D;AAED,wBAAgB,qBAAqB,CACjC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,WAAW,EACvB,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,iDA0B1D"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AITableRecordUpdatedInfo, UpdateFieldValueOptions } from '@ai-table/grid';
|
2
1
|
import { AIViewTable } from '../../types';
|
2
|
+
import { UpdateFieldValueOptions, AITableRecordUpdatedInfo } from '@ai-table/utils';
|
3
3
|
export declare function updateFieldValue(aiTable: AIViewTable, options: UpdateFieldValueOptions, updatedInfo: AITableRecordUpdatedInfo): void;
|
4
4
|
//# sourceMappingURL=update-field-value.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/update-field-value.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"update-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/update-field-value.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEpF,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,wBAAwB,QAM7H"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AITableRecordUpdatedInfo } from '@ai-table/
|
1
|
+
import { AITableRecordUpdatedInfo } from '@ai-table/utils';
|
2
2
|
import { AIViewTable } from '../../types';
|
3
3
|
export declare function updateRecordsUpdatedInfo(aiTable: AIViewTable, updatedInfo: AITableRecordUpdatedInfo): void;
|
4
4
|
//# sourceMappingURL=update-system-field-value.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-system-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/update-system-field-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"update-system-field-value.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/record/update-system-field-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,wBAAwB,QAKnG"}
|
package/utils/view.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import { AITableView, AITableViewFields, AITableViewRecords,
|
1
|
+
import { AITableView, AITableViewFields, AITableViewRecords, Positions } from '@ai-table/utils';
|
2
|
+
import { AIViewTable } from '../types';
|
2
3
|
export declare function createDefaultPositions(views: AITableView[], activeId: string, data: AITableViewRecords | AITableViewFields, index: number): Positions;
|
3
4
|
export declare function getPosition(data: AITableViewRecords | AITableViewFields, activeViewId: string, index: number): number;
|
4
5
|
export declare function getMaxPosition(data: AITableViewRecords | AITableViewFields, activeViewId: string): number;
|
package/utils/view.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAoB,iBAAiB,EAAE,kBAAkB,EAAE,
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAoB,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAOlH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,WAAW,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAC5C,KAAK,EAAE,MAAM,aAYhB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAW5G;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,YAAY,EAAE,MAAM,UAOhG;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,eA6ClF;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,QAgB5H"}
|
package/constants/default.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../packages/state/src/constants/default.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,YAAY,CAAC"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export const AI_TABLE_CONTENT_FIELD_NAME = 'content';
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL3N0YXRlL3NyYy9jb25zdGFudHMvZGVmYXVsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSwyQkFBMkIsR0FBRyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgQUlfVEFCTEVfQ09OVEVOVF9GSUVMRF9OQU1FID0gJ2NvbnRlbnQnOyJdfQ==
|