@ai-table/state 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/esm2022/public-api.mjs +2 -1
  2. package/esm2022/shared/to-table/array-event.mjs +45 -15
  3. package/esm2022/shared/to-table/index.mjs +8 -8
  4. package/esm2022/shared/to-yjs/add-node.mjs +21 -10
  5. package/esm2022/shared/to-yjs/index.mjs +3 -1
  6. package/esm2022/shared/to-yjs/remove-node.mjs +21 -10
  7. package/esm2022/types/view.mjs +28 -25
  8. package/esm2022/utils/build.mjs +16 -0
  9. package/esm2022/utils/common.mjs +11 -0
  10. package/esm2022/utils/field/date.mjs +56 -0
  11. package/esm2022/utils/field/field.mjs +32 -0
  12. package/esm2022/utils/field/index.mjs +22 -0
  13. package/esm2022/utils/field/number.mjs +28 -0
  14. package/esm2022/utils/field/rate.mjs +20 -0
  15. package/esm2022/utils/field/select.mjs +33 -0
  16. package/esm2022/utils/field/text.mjs +21 -0
  17. package/esm2022/utils/filter-records.mjs +52 -0
  18. package/esm2022/utils/index.mjs +6 -0
  19. package/esm2022/utils/view.mjs +69 -0
  20. package/esm2022/view/action/general.mjs +89 -5
  21. package/esm2022/view/action/index.mjs +2 -1
  22. package/esm2022/view/action/position.mjs +21 -0
  23. package/esm2022/view/action/view.mjs +4 -4
  24. package/esm2022/view/constants/view.mjs +3 -2
  25. package/esm2022/view/plugins/view.plugin.mjs +15 -6
  26. package/fesm2022/ai-table-state.mjs +565 -67
  27. package/fesm2022/ai-table-state.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/public-api.d.ts +1 -0
  30. package/public-api.d.ts.map +1 -1
  31. package/shared/to-table/array-event.d.ts +3 -2
  32. package/shared/to-table/array-event.d.ts.map +1 -1
  33. package/shared/to-table/index.d.ts +3 -3
  34. package/shared/to-table/index.d.ts.map +1 -1
  35. package/shared/to-yjs/add-node.d.ts +2 -2
  36. package/shared/to-yjs/add-node.d.ts.map +1 -1
  37. package/shared/to-yjs/index.d.ts.map +1 -1
  38. package/shared/to-yjs/remove-node.d.ts +2 -2
  39. package/shared/to-yjs/remove-node.d.ts.map +1 -1
  40. package/types/view.d.ts +32 -14
  41. package/types/view.d.ts.map +1 -1
  42. package/utils/build.d.ts +5 -0
  43. package/utils/build.d.ts.map +1 -0
  44. package/utils/common.d.ts +2 -0
  45. package/utils/common.d.ts.map +1 -0
  46. package/utils/field/date.d.ts +8 -0
  47. package/utils/field/date.d.ts.map +1 -0
  48. package/utils/field/field.d.ts +8 -0
  49. package/utils/field/field.d.ts.map +1 -0
  50. package/utils/field/index.d.ts +4 -0
  51. package/utils/field/index.d.ts.map +1 -0
  52. package/utils/field/number.d.ts +7 -0
  53. package/utils/field/number.d.ts.map +1 -0
  54. package/utils/field/rate.d.ts +7 -0
  55. package/utils/field/rate.d.ts.map +1 -0
  56. package/utils/field/select.d.ts +7 -0
  57. package/utils/field/select.d.ts.map +1 -0
  58. package/utils/field/text.d.ts +8 -0
  59. package/utils/field/text.d.ts.map +1 -0
  60. package/utils/filter-records.d.ts +5 -0
  61. package/utils/filter-records.d.ts.map +1 -0
  62. package/utils/index.d.ts +6 -0
  63. package/utils/index.d.ts.map +1 -0
  64. package/utils/view.d.ts +6 -0
  65. package/utils/view.d.ts.map +1 -0
  66. package/view/action/general.d.ts +9 -1
  67. package/view/action/general.d.ts.map +1 -1
  68. package/view/action/index.d.ts +1 -0
  69. package/view/action/index.d.ts.map +1 -1
  70. package/view/action/position.d.ts +8 -0
  71. package/view/action/position.d.ts.map +1 -0
  72. package/view/action/view.d.ts +4 -3
  73. package/view/action/view.d.ts.map +1 -1
  74. package/view/constants/view.d.ts +2 -1
  75. package/view/constants/view.d.ts.map +1 -1
  76. package/view/plugins/view.plugin.d.ts.map +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG9E,wBAAgB,UAAU,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,YAAY,EAAE,MAAM,kFAM5F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,kFAGjH;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,kFAEnF"}
@@ -0,0 +1,2 @@
1
+ export declare function isEmpty(value: any): boolean;
2
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/common.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,WAUjC"}
@@ -0,0 +1,8 @@
1
+ import { Field } from './field';
2
+ import { DateFieldValue } from '@ai-table/grid';
3
+ import { AITableFilterCondition } from '../../types';
4
+ export declare class DateField extends Field {
5
+ isMeetFilter(condition: AITableFilterCondition<string>, cellValue: DateFieldValue): boolean;
6
+ getTimeRange(value: string | number | number[]): number[];
7
+ }
8
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,sBAAsB,EAA0B,MAAM,aAAa,CAAA;AAG5E,qBAAa,SAAU,SAAQ,KAAK;IACvB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,cAAc;IAoB1F,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;CA6BjD"}
@@ -0,0 +1,8 @@
1
+ import { FieldValue } from '@ai-table/grid';
2
+ import { AITableFilterCondition, AITableFilterOperation } from '../../types';
3
+ export declare abstract class Field {
4
+ protected stringInclude(str: string, searchStr: string): boolean;
5
+ isMeetFilter(condition: AITableFilterCondition, cellValue: FieldValue): boolean;
6
+ isEmptyOrNot(operation: AITableFilterOperation.empty | AITableFilterOperation.exists, cellValue: FieldValue): boolean;
7
+ }
8
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAG7E,8BAAsB,KAAK;IACvB,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAItD,YAAY,CAAC,SAAS,EAAE,sBAAsB,EAAE,SAAS,EAAE,UAAU;IAYrE,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,KAAK,GAAG,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU;CAa9G"}
@@ -0,0 +1,4 @@
1
+ import { AITableFieldType } from '@ai-table/grid';
2
+ import { Field } from './field';
3
+ export declare const ViewOperationMap: Record<AITableFieldType, Field>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOhC,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAc5D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { AITableFilterCondition } from '../../types';
2
+ import { Field } from './field';
3
+ import { FieldValue } from '@ai-table/grid';
4
+ export declare class NumberField extends Field {
5
+ isMeetFilter(condition: AITableFilterCondition<number>, cellValue: FieldValue): boolean;
6
+ }
7
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAA0B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,qBAAa,WAAY,SAAQ,KAAK;IACzB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU;CAsBzF"}
@@ -0,0 +1,7 @@
1
+ import { AITableFilterCondition } from '../../types';
2
+ import { Field } from './field';
3
+ import { RateFieldValue } from '@ai-table/grid';
4
+ export declare class RateField extends Field {
5
+ isMeetFilter(condition: AITableFilterCondition<string[]>, cellValue: RateFieldValue | string): boolean;
6
+ }
7
+ //# sourceMappingURL=rate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/rate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA0B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,qBAAa,SAAU,SAAQ,KAAK;IACvB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,cAAc,GAAG,MAAM;CAcxG"}
@@ -0,0 +1,7 @@
1
+ import { AITableFilterCondition } from '../../types';
2
+ import { Field } from './field';
3
+ import { SelectFieldValue } from '@ai-table/grid';
4
+ export declare class SelectField extends Field {
5
+ isMeetFilter(condition: AITableFilterCondition<string>, cellValue: SelectFieldValue): boolean;
6
+ }
7
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/select.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA0B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,qBAAa,WAAY,SAAQ,KAAK;IACzB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,gBAAgB;CAc/F"}
@@ -0,0 +1,8 @@
1
+ import { AITableFilterCondition } from '../../types';
2
+ import { Field } from './field';
3
+ import { FieldValue } from '@ai-table/grid';
4
+ export declare class TextField extends Field {
5
+ isMeetFilter(condition: AITableFilterCondition<string>, cellValue: FieldValue): boolean;
6
+ static stringInclude(str: string, searchStr: string): boolean;
7
+ }
8
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/utils/field/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAA0B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,qBAAa,SAAU,SAAQ,KAAK;IACvB,YAAY,CAAC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU;IAatF,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAGtD"}
@@ -0,0 +1,5 @@
1
+ import { FieldValue } from '@ai-table/grid';
2
+ import { AITableFilterCondition, AITableView, AITableViewField, AITableViewFields, AITableViewRecords } from '../types';
3
+ export declare function getFilteredRecords(records: AITableViewRecords, fields: AITableViewFields, activeView: AITableView): AITableViewRecords;
4
+ export declare function doFilter(condition: AITableFilterCondition, field: AITableViewField, cellValue: FieldValue): boolean;
5
+ //# sourceMappingURL=filter-records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-records.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/filter-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACH,sBAAsB,EAItB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EACrB,MAAM,UAAU,CAAC;AAGlB,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,sBAYjH;AA6BD,wBAAgB,QAAQ,CAAC,SAAS,EAAE,sBAAsB,EAAE,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,WASzG"}
@@ -0,0 +1,6 @@
1
+ export * from './build';
2
+ export * from './filter-records';
3
+ export * from './field';
4
+ export * from './view';
5
+ export * from './common';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/state/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AITableView, AITableViewFields, AITableViewRecords, AIViewTable, Positions } from '../types';
2
+ export declare function createDefaultPositions(views: AITableView[], activeId: string, data: AITableViewRecords | AITableViewFields, index: number): Positions;
3
+ export declare function getPosition(data: AITableViewRecords | AITableViewFields, activeViewId: string, index: number): number;
4
+ export declare function addView(aiTable: AIViewTable, type: 'add' | 'copy'): AITableView;
5
+ export declare function removeView(aiTable: AIViewTable, records: AITableViewRecords, fields: AITableViewFields, activeViewId: string): void;
6
+ //# sourceMappingURL=view.d.ts.map
@@ -0,0 +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,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGxH,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,WAAW,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAC5C,KAAK,EAAE,MAAM,aAShB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAU5G;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,eAmCjE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,QAgB5H"}
@@ -1,6 +1,14 @@
1
- import { AITableView, AITableViewAction, AIViewTable } from '../../types';
1
+ import { AITableSharedAction, AITableView, AITableViewAction, AITableViewFields, AITableViewRecords, AIViewTable } from '../../types';
2
2
  export declare const GeneralViewActions: {
3
3
  transform(aiTable: AIViewTable, action: AITableViewAction): void;
4
4
  };
5
5
  export declare const applyView: (aiTable: AIViewTable, views: AITableView[], action: AITableViewAction) => void;
6
+ export declare const GeneralActions: {
7
+ transform(aiTable: AIViewTable, action: AITableSharedAction): void;
8
+ };
9
+ export declare const apply: (aiTable: AIViewTable, records: AITableViewRecords, fields: AITableViewFields, action: AITableSharedAction) => void;
10
+ export declare const GeneralPositionActions: {
11
+ transform(aiTable: AIViewTable, action: AITableSharedAction): void;
12
+ };
13
+ export declare const applyPosition: (aiTable: AIViewTable, records: AITableViewRecords, action: AITableSharedAction) => void;
6
14
  //# sourceMappingURL=general.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/general.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAC;AAE1F,eAAO,MAAM,kBAAkB;uBACR,WAAW,UAAU,iBAAiB,GAAG,IAAI;CAOnE,CAAC;AAEF,eAAO,MAAM,SAAS,YAAa,WAAW,SAAS,WAAW,EAAE,UAAU,iBAAiB,SAwC9F,CAAC"}
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/general.ts"],"names":[],"mappings":"AACA,OAAO,EACH,mBAAmB,EACnB,WAAW,EACX,iBAAiB,EAEjB,iBAAiB,EAEjB,kBAAkB,EAClB,WAAW,EAGd,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,kBAAkB;uBACR,WAAW,UAAU,iBAAiB,GAAG,IAAI;CAKnE,CAAC;AAEF,eAAO,MAAM,SAAS,YAAa,WAAW,SAAS,WAAW,EAAE,UAAU,iBAAiB,SAwC9F,CAAC;AAEF,eAAO,MAAM,cAAc;uBACJ,WAAW,UAAU,mBAAmB,GAAG,IAAI;CAWrE,CAAC;AAEF,eAAO,MAAM,KAAK,YAAa,WAAW,kEAAkE,mBAAmB,SA8C9H,CAAC;AAEF,eAAO,MAAM,sBAAsB;uBACZ,WAAW,UAAU,mBAAmB,GAAG,IAAI;CAWrE,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,WAAW,uCAAuC,mBAAmB,SAoB3G,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './general';
2
2
  export * from './view';
3
+ export * from './position';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { AIViewIdPath, AIViewTable, Positions } from '../../types';
2
+ export declare function addRecordPosition(aiTable: AIViewTable, position: Positions, path: AIViewIdPath): void;
3
+ export declare function removeRecordPosition(aiTable: AIViewTable, path: [string, string]): void;
4
+ export declare const PositionActions: {
5
+ addRecordPosition: typeof addRecordPosition;
6
+ removeRecordPosition: typeof removeRecordPosition;
7
+ };
8
+ //# sourceMappingURL=position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,WAAW,EAAsB,SAAS,EAA8B,MAAM,aAAa,CAAC;AAE5I,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,QAO9F;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,QAMhF;AAED,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { AITableView, AIViewTable } from '../../types';
2
- export declare function setView(aiTable: AIViewTable, value: Partial<AITableView>, path: [string]): void;
3
- export declare function addView(aiTable: AIViewTable, view: AITableView, path: [number]): void;
4
- export declare function removeView(aiTable: AIViewTable, path: [string]): void;
2
+ declare function setView(aiTable: AIViewTable, value: Partial<AITableView>, path: [string]): void;
3
+ declare function addView(aiTable: AIViewTable, view: AITableView, path: [number]): void;
4
+ declare function removeView(aiTable: AIViewTable, path: [string]): void;
5
5
  export declare const ViewActions: {
6
6
  setView: typeof setView;
7
7
  addView: typeof addView;
8
8
  removeView: typeof removeView;
9
9
  };
10
+ export {};
10
11
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,WAAW,EAAmD,MAAM,aAAa,CAAC;AAEvH,wBAAgB,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAyBxF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAO9E;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAM9D;AAGD,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/action/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,WAAW,EAAmD,MAAM,aAAa,CAAC;AAEvH,iBAAS,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAyBjF;AAED,iBAAS,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAOvE;AAED,iBAAS,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,QAMvD;AAED,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
@@ -1,3 +1,4 @@
1
- import { ViewActionName } from '../../types';
1
+ import { PositionActionName, ViewActionName } from '../../types';
2
2
  export declare const VIEW_ACTIONS: ViewActionName[];
3
+ export declare const POSITION_ACTIONS: PositionActionName[];
3
4
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/constants/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,YAAY,kBAA8E,CAAC"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/constants/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjE,eAAO,MAAM,YAAY,kBAA8E,CAAC;AAExG,eAAO,MAAM,gBAAgB,sBAAkF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"view.plugin.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/plugins/view.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAA2B,MAAM,gBAAgB,CAAC;AAK3E,eAAO,MAAM,QAAQ,YAAa,OAAO,YAoBxC,CAAC"}
1
+ {"version":3,"file":"view.plugin.d.ts","sourceRoot":"","sources":["../../../../packages/state/src/view/plugins/view.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAA2B,MAAM,gBAAgB,CAAC;AAYvF,eAAO,MAAM,QAAQ,YAAa,OAAO,YA0BxC,CAAC"}