@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/types/shared.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,GAAG,gBAAgB,GAAG,iBAAiB,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,iBAAiB,GAAG,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErG,MAAM,MAAM,iBAAiB,GAAG,UAAU,EAAE,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC"}
|
package/types/view.d.ts
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
import { AITableField, AITableFilterCondition, AITableRecord } from '@ai-table/grid';
|
2
|
-
import { Id } from 'ngx-tethys/types';
|
3
|
-
export declare class Positions {
|
4
|
-
[view_id: string]: number;
|
5
|
-
}
|
6
|
-
export declare class RemovePositions {
|
7
|
-
[view_id: string]: undefined;
|
8
|
-
}
|
9
|
-
export interface AITableViewRecord extends AITableRecord {
|
10
|
-
positions: Positions;
|
11
|
-
}
|
12
|
-
export interface AITableViewField extends AITableField {
|
13
|
-
positions: Positions;
|
14
|
-
widths?: Positions;
|
15
|
-
}
|
16
|
-
export type AITableViewRecords = AITableViewRecord[];
|
17
|
-
export type AITableViewFields = AITableViewField[];
|
18
|
-
export declare enum Direction {
|
19
|
-
default = 0,
|
20
|
-
ascending = 1,
|
21
|
-
descending = -1
|
22
|
-
}
|
23
|
-
export declare enum AITableFilterLogical {
|
24
|
-
and = "and",
|
25
|
-
or = "or"
|
26
|
-
}
|
27
|
-
export type ViewSettings = AITableSearchOptions & AITableFilterConditions & AITableSortOptions;
|
28
|
-
export interface AITableView {
|
29
|
-
_id: string;
|
30
|
-
short_id: string;
|
31
|
-
name: string;
|
32
|
-
emoji_icon?: string;
|
33
|
-
settings?: ViewSettings;
|
34
|
-
}
|
35
|
-
export interface AITableFilterConditions<TValue = unknown> {
|
36
|
-
condition_logical?: AITableFilterLogical;
|
37
|
-
conditions?: AITableFilterCondition<TValue>[];
|
38
|
-
}
|
39
|
-
export interface AITableSortOptions {
|
40
|
-
is_keep_sort?: boolean;
|
41
|
-
sorts?: {
|
42
|
-
sort_by: Id;
|
43
|
-
direction: Direction;
|
44
|
-
}[];
|
45
|
-
}
|
46
|
-
export interface AITableSearchOptions {
|
47
|
-
keywords?: string;
|
48
|
-
}
|
49
|
-
export type AITableViews = AITableView[];
|
50
|
-
//# sourceMappingURL=view.d.ts.map
|
package/types/view.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../packages/state/src/types/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,qBAAa,SAAS;IAClB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B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