@ai-table/state 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/action/field.d.ts +14 -0
- package/action/field.d.ts.map +1 -0
- package/action/general.d.ts +5 -0
- package/action/general.d.ts.map +1 -0
- package/action/index.d.ts +17 -0
- package/action/index.d.ts.map +1 -0
- package/action/position.d.ts +9 -0
- package/action/position.d.ts.map +1 -0
- package/action/record.d.ts +13 -0
- package/action/record.d.ts.map +1 -0
- package/{view/action → action}/view.d.ts +1 -1
- package/action/view.d.ts.map +1 -0
- package/constants/field-menu-item.d.ts +22 -0
- package/constants/field-menu-item.d.ts.map +1 -0
- package/constants/index.d.ts +3 -0
- package/constants/index.d.ts.map +1 -0
- package/constants/view.d.ts +3 -0
- package/constants/view.d.ts.map +1 -0
- package/esm2022/action/field.mjs +57 -0
- package/esm2022/action/general.mjs +179 -0
- package/esm2022/action/index.mjs +13 -0
- package/esm2022/action/position.mjs +21 -0
- package/esm2022/action/record.mjs +44 -0
- package/esm2022/action/view.mjs +47 -0
- package/esm2022/constants/field-menu-item.mjs +39 -0
- package/esm2022/constants/index.mjs +3 -0
- package/esm2022/constants/view.mjs +3 -0
- package/esm2022/plugins/state.plugin.mjs +20 -0
- package/esm2022/public-api.mjs +4 -4
- package/esm2022/shared/to-table/array-event.mjs +9 -9
- package/esm2022/shared/to-table/index.mjs +2 -2
- package/esm2022/shared/to-table/map-event.mjs +3 -4
- package/esm2022/shared/to-yjs/add-node.mjs +5 -5
- package/esm2022/shared/to-yjs/index.mjs +1 -1
- package/esm2022/shared/to-yjs/remove-node.mjs +4 -5
- package/esm2022/shared/to-yjs/set-node.mjs +3 -4
- package/esm2022/shared/to-yjs/update-field-value.mjs +1 -1
- package/esm2022/shared/utils/init-shared.mjs +1 -1
- package/esm2022/types/action.mjs +23 -0
- package/esm2022/types/ai-table.mjs +2 -0
- package/esm2022/types/index.mjs +4 -1
- package/esm2022/types/view.mjs +1 -12
- package/esm2022/utils/build.mjs +9 -14
- package/esm2022/utils/common.mjs +21 -1
- package/esm2022/utils/field/add-fields.mjs +19 -0
- package/esm2022/utils/field/model/date.mjs +74 -0
- package/esm2022/utils/field/model/field.mjs +63 -0
- package/esm2022/utils/field/model/index.mjs +22 -0
- package/esm2022/utils/field/model/number.mjs +46 -0
- package/esm2022/utils/field/model/rate.mjs +38 -0
- package/esm2022/utils/field/model/select.mjs +55 -0
- package/esm2022/utils/field/model/text.mjs +27 -0
- package/esm2022/utils/field/sort-fields.mjs +5 -0
- package/esm2022/utils/index.mjs +9 -3
- package/esm2022/utils/record/add-records.mjs +48 -0
- package/esm2022/utils/record/filter.mjs +65 -0
- package/esm2022/utils/record/sort.mjs +34 -0
- package/esm2022/utils/record/update-field-value.mjs +5 -0
- package/esm2022/utils/view.mjs +6 -4
- package/esm2022/utils/weak-map.mjs +2 -0
- package/fesm2022/ai-table-state.mjs +813 -396
- package/fesm2022/ai-table-state.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/state.plugin.d.ts +3 -0
- package/plugins/state.plugin.d.ts.map +1 -0
- package/public-api.d.ts +3 -3
- package/public-api.d.ts.map +1 -1
- package/shared/to-table/array-event.d.ts +2 -3
- package/shared/to-table/array-event.d.ts.map +1 -1
- package/shared/to-table/index.d.ts +2 -2
- package/shared/to-table/index.d.ts.map +1 -1
- package/shared/to-table/map-event.d.ts +2 -2
- package/shared/to-table/map-event.d.ts.map +1 -1
- package/shared/to-yjs/add-node.d.ts +1 -2
- package/shared/to-yjs/add-node.d.ts.map +1 -1
- package/shared/to-yjs/index.d.ts +2 -2
- package/shared/to-yjs/index.d.ts.map +1 -1
- package/shared/to-yjs/remove-node.d.ts +1 -2
- package/shared/to-yjs/remove-node.d.ts.map +1 -1
- package/shared/to-yjs/set-node.d.ts +1 -2
- package/shared/to-yjs/set-node.d.ts.map +1 -1
- package/shared/to-yjs/update-field-value.d.ts +1 -2
- package/shared/to-yjs/update-field-value.d.ts.map +1 -1
- package/shared/utils/init-shared.d.ts.map +1 -1
- package/types/action.d.ts +90 -0
- package/types/action.d.ts.map +1 -0
- package/types/ai-table.d.ts +15 -0
- package/types/ai-table.d.ts.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -1
- package/types/view.d.ts +4 -46
- package/types/view.d.ts.map +1 -1
- package/utils/build.d.ts +3 -4
- package/utils/build.d.ts.map +1 -1
- package/utils/common.d.ts +5 -0
- package/utils/common.d.ts.map +1 -1
- package/utils/field/add-fields.d.ts +4 -0
- package/utils/field/add-fields.d.ts.map +1 -0
- package/utils/field/model/date.d.ts +11 -0
- package/utils/field/model/date.d.ts.map +1 -0
- package/utils/field/model/field.d.ts +12 -0
- package/utils/field/model/field.d.ts.map +1 -0
- package/utils/field/model/index.d.ts.map +1 -0
- package/utils/field/model/number.d.ts +10 -0
- package/utils/field/model/number.d.ts.map +1 -0
- package/utils/field/model/rate.d.ts +10 -0
- package/utils/field/model/rate.d.ts.map +1 -0
- package/utils/field/model/select.d.ts +12 -0
- package/utils/field/model/select.d.ts.map +1 -0
- package/utils/field/{text.d.ts → model/text.d.ts} +3 -1
- package/utils/field/model/text.d.ts.map +1 -0
- package/utils/field/sort-fields.d.ts +4 -0
- package/utils/field/sort-fields.d.ts.map +1 -0
- package/utils/index.d.ts +8 -2
- package/utils/index.d.ts.map +1 -1
- package/utils/record/add-records.d.ts +5 -0
- package/utils/record/add-records.d.ts.map +1 -0
- package/utils/record/filter.d.ts +6 -0
- package/utils/record/filter.d.ts.map +1 -0
- package/utils/record/sort.d.ts +5 -0
- package/utils/record/sort.d.ts.map +1 -0
- package/utils/record/update-field-value.d.ts +4 -0
- package/utils/record/update-field-value.d.ts.map +1 -0
- package/utils/view.d.ts.map +1 -1
- package/utils/weak-map.d.ts +3 -0
- package/utils/weak-map.d.ts.map +1 -0
- package/esm2022/utils/field/date.mjs +0 -56
- package/esm2022/utils/field/field.mjs +0 -32
- package/esm2022/utils/field/index.mjs +0 -22
- package/esm2022/utils/field/number.mjs +0 -28
- package/esm2022/utils/field/rate.mjs +0 -20
- package/esm2022/utils/field/select.mjs +0 -33
- package/esm2022/utils/field/text.mjs +0 -21
- package/esm2022/utils/filter-records.mjs +0 -52
- package/esm2022/view/action/general.mjs +0 -137
- package/esm2022/view/action/index.mjs +0 -4
- package/esm2022/view/action/position.mjs +0 -21
- package/esm2022/view/action/view.mjs +0 -47
- package/esm2022/view/constants/view.mjs +0 -4
- package/esm2022/view/plugins/view.plugin.mjs +0 -34
- package/utils/field/date.d.ts +0 -8
- package/utils/field/date.d.ts.map +0 -1
- package/utils/field/field.d.ts +0 -8
- package/utils/field/field.d.ts.map +0 -1
- package/utils/field/index.d.ts.map +0 -1
- package/utils/field/number.d.ts +0 -7
- package/utils/field/number.d.ts.map +0 -1
- package/utils/field/rate.d.ts +0 -7
- package/utils/field/rate.d.ts.map +0 -1
- package/utils/field/select.d.ts +0 -7
- package/utils/field/select.d.ts.map +0 -1
- package/utils/field/text.d.ts.map +0 -1
- package/utils/filter-records.d.ts +0 -5
- package/utils/filter-records.d.ts.map +0 -1
- package/view/action/general.d.ts +0 -14
- package/view/action/general.d.ts.map +0 -1
- package/view/action/index.d.ts +0 -4
- package/view/action/index.d.ts.map +0 -1
- package/view/action/position.d.ts +0 -8
- package/view/action/position.d.ts.map +0 -1
- package/view/action/view.d.ts.map +0 -1
- package/view/constants/view.d.ts +0 -4
- package/view/constants/view.d.ts.map +0 -1
- package/view/plugins/view.plugin.d.ts +0 -3
- package/view/plugins/view.plugin.d.ts.map +0 -1
- /package/utils/field/{index.d.ts → model/index.d.ts} +0 -0
@@ -1,34 +0,0 @@
|
|
1
|
-
import { ActionName, Actions, FLUSHING } from '@ai-table/grid';
|
2
|
-
import { GeneralActions, GeneralPositionActions, GeneralViewActions } from '../action';
|
3
|
-
import { POSITION_ACTIONS, VIEW_ACTIONS } from '../constants/view';
|
4
|
-
export const withView = (aiTable) => {
|
5
|
-
const viewTable = aiTable;
|
6
|
-
viewTable.apply = (action) => {
|
7
|
-
const sharedActions = viewTable.actions;
|
8
|
-
sharedActions.push(action);
|
9
|
-
if (VIEW_ACTIONS.includes(action.type)) {
|
10
|
-
GeneralViewActions.transform(viewTable, action);
|
11
|
-
}
|
12
|
-
else if (POSITION_ACTIONS.includes(action.type)) {
|
13
|
-
GeneralPositionActions.transform(viewTable, action);
|
14
|
-
}
|
15
|
-
else {
|
16
|
-
if (action.type === ActionName.AddField || action.type === ActionName.AddRecord) {
|
17
|
-
GeneralActions.transform(viewTable, action);
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
Actions.transform(aiTable, action);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
if (!FLUSHING.get(aiTable)) {
|
24
|
-
FLUSHING.set(aiTable, true);
|
25
|
-
Promise.resolve().then(() => {
|
26
|
-
FLUSHING.set(aiTable, false);
|
27
|
-
aiTable.onChange();
|
28
|
-
aiTable.actions = [];
|
29
|
-
});
|
30
|
-
}
|
31
|
-
};
|
32
|
-
return aiTable;
|
33
|
-
};
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5wbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zdGF0ZS9zcmMvdmlldy9wbHVnaW5zL3ZpZXcucGx1Z2luLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsT0FBTyxFQUEwQixRQUFRLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN2RixPQUFPLEVBQUUsY0FBYyxFQUFFLHNCQUFzQixFQUFFLGtCQUFrQixFQUFFLE1BQU0sV0FBVyxDQUFDO0FBU3ZGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxZQUFZLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUVuRSxNQUFNLENBQUMsTUFBTSxRQUFRLEdBQUcsQ0FBQyxPQUFnQixFQUFFLEVBQUU7SUFDek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ICAgICAgIEZMVVNISU5HLnNldChhaVRhYmxlLCB0cnVlKTtcbiAgICAgICAgICAgIFByb21pc2UucmVzb2x2ZSgpLnRoZW4oKCkgPT4ge1xuICAgICAgICAgICAgICAgIEZMVVNISU5HLnNldChhaVRhYmxlLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgYWlUYWJsZS5vbkNoYW5nZSgpO1xuICAgICAgICAgICAgICAgIGFpVGFibGUuYWN0aW9ucyA9IFtdO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9O1xuICAgIHJldHVybiBhaVRhYmxlO1xufTtcbiJdfQ==
|
package/utils/field/date.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
package/utils/field/field.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1 +0,0 @@
|
|
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"}
|
package/utils/field/number.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
package/utils/field/rate.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
package/utils/field/select.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,5 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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"}
|
package/view/action/general.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { AITableSharedAction, AITableView, AITableViewAction, AITableViewFields, AITableViewRecords, AIViewTable } from '../../types';
|
2
|
-
export declare const GeneralViewActions: {
|
3
|
-
transform(aiTable: AIViewTable, action: AITableViewAction): void;
|
4
|
-
};
|
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;
|
14
|
-
//# sourceMappingURL=general.d.ts.map
|
@@ -1 +0,0 @@
|
|
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"}
|
package/view/action/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
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"}
|
@@ -1,8 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
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 +0,0 @@
|
|
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"}
|
package/view/constants/view.d.ts
DELETED
@@ -1 +0,0 @@
|
|
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 +0,0 @@
|
|
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"}
|
File without changes
|