@ai-table/grid 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. package/components/cell-editors/cell-editor.scss +20 -0
  2. package/components/cell-editors/number/number-editor.component.d.ts.map +1 -1
  3. package/components/cell-editors/progress/progress-editor.component.d.ts +22 -0
  4. package/components/cell-editors/progress/progress-editor.component.d.ts.map +1 -0
  5. package/components/cell-editors/progress/progress-editor.component.scss +21 -0
  6. package/components/cell-editors/rating/rating-editor.component.d.ts.map +1 -1
  7. package/components/cell-editors/select/select-editor.component.d.ts +15 -0
  8. package/components/cell-editors/select/select-editor.component.d.ts.map +1 -0
  9. package/components/cell-editors/text/text-editor.component.d.ts +9 -1
  10. package/components/cell-editors/text/text-editor.component.d.ts.map +1 -1
  11. package/components/field-menu/field-menu.component.d.ts +6 -6
  12. package/components/field-menu/field-menu.component.d.ts.map +1 -1
  13. package/components/field-property-editor/field-property-editor.component.d.ts +2 -1
  14. package/components/field-property-editor/field-property-editor.component.d.ts.map +1 -1
  15. package/components/index.d.ts +6 -0
  16. package/components/index.d.ts.map +1 -1
  17. package/constants/editor.d.ts +1 -1
  18. package/constants/editor.d.ts.map +1 -1
  19. package/constants/field.d.ts +12 -6
  20. package/constants/field.d.ts.map +1 -1
  21. package/constants/grid.d.ts +1 -0
  22. package/constants/grid.d.ts.map +1 -1
  23. package/core/action/field.d.ts +6 -0
  24. package/core/action/field.d.ts.map +1 -1
  25. package/core/action/general.d.ts.map +1 -1
  26. package/core/action/index.d.ts +5 -0
  27. package/core/action/index.d.ts.map +1 -1
  28. package/core/action/record.d.ts +4 -0
  29. package/core/action/record.d.ts.map +1 -1
  30. package/core/constants/field.d.ts +2 -0
  31. package/core/constants/field.d.ts.map +1 -1
  32. package/core/types/action.d.ts +31 -2
  33. package/core/types/action.d.ts.map +1 -1
  34. package/core/types/core.d.ts +41 -14
  35. package/core/types/core.d.ts.map +1 -1
  36. package/core/utils/common.d.ts +2 -1
  37. package/core/utils/common.d.ts.map +1 -1
  38. package/core/utils/field.d.ts +1 -1
  39. package/core/utils/queries.d.ts +3 -1
  40. package/core/utils/queries.d.ts.map +1 -1
  41. package/esm2022/components/cell-editors/abstract-cell-editor.component.mjs +2 -2
  42. package/esm2022/components/cell-editors/number/number-editor.component.mjs +7 -6
  43. package/esm2022/components/cell-editors/progress/progress-editor.component.mjs +75 -0
  44. package/esm2022/components/cell-editors/rating/rating-editor.component.mjs +7 -6
  45. package/esm2022/components/cell-editors/select/select-editor.component.mjs +46 -0
  46. package/esm2022/components/cell-editors/text/text-editor.component.mjs +54 -21
  47. package/esm2022/components/field-menu/field-menu.component.mjs +7 -6
  48. package/esm2022/components/field-property-editor/field-property-editor.component.mjs +9 -6
  49. package/esm2022/components/index.mjs +7 -1
  50. package/esm2022/constants/editor.mjs +11 -13
  51. package/esm2022/constants/field.mjs +17 -5
  52. package/esm2022/constants/grid.mjs +7 -5
  53. package/esm2022/core/action/field.mjs +43 -2
  54. package/esm2022/core/action/general.mjs +68 -14
  55. package/esm2022/core/action/record.mjs +22 -5
  56. package/esm2022/core/constants/field.mjs +61 -15
  57. package/esm2022/core/types/action.mjs +6 -1
  58. package/esm2022/core/types/core.mjs +15 -14
  59. package/esm2022/core/types/index.mjs +1 -1
  60. package/esm2022/core/utils/common.mjs +10 -1
  61. package/esm2022/core/utils/field.mjs +4 -4
  62. package/esm2022/core/utils/queries.mjs +36 -6
  63. package/esm2022/core/utils/record.mjs +4 -4
  64. package/esm2022/grid.component.mjs +107 -34
  65. package/esm2022/pipes/grid.pipe.mjs +31 -0
  66. package/esm2022/pipes/index.mjs +2 -2
  67. package/esm2022/services/event.service.mjs +43 -23
  68. package/esm2022/services/selection.service.mjs +72 -0
  69. package/esm2022/types/field.mjs +1 -1
  70. package/esm2022/types/grid.mjs +2 -8
  71. package/esm2022/utils/build.mjs +40 -5
  72. package/esm2022/utils/cell.mjs +3 -3
  73. package/fesm2022/ai-table-grid.mjs +1013 -487
  74. package/fesm2022/ai-table-grid.mjs.map +1 -1
  75. package/grid.component.d.ts +23 -13
  76. package/grid.component.d.ts.map +1 -1
  77. package/package.json +1 -1
  78. package/pipes/grid.pipe.d.ts +15 -0
  79. package/pipes/grid.pipe.d.ts.map +1 -0
  80. package/pipes/index.d.ts +1 -1
  81. package/pipes/index.d.ts.map +1 -1
  82. package/services/event.service.d.ts +9 -6
  83. package/services/event.service.d.ts.map +1 -1
  84. package/services/selection.service.d.ts +16 -0
  85. package/services/selection.service.d.ts.map +1 -0
  86. package/styles/styles.scss +73 -10
  87. package/types/field.d.ts +4 -4
  88. package/types/field.d.ts.map +1 -1
  89. package/types/grid.d.ts +15 -8
  90. package/types/grid.d.ts.map +1 -1
  91. package/utils/build.d.ts +3 -2
  92. package/utils/build.d.ts.map +1 -1
  93. package/utils/cell.d.ts +1 -1
  94. package/utils/cell.d.ts.map +1 -1
  95. package/components/cell-editors/single-select/single-select-editor.component.d.ts +0 -14
  96. package/components/cell-editors/single-select/single-select-editor.component.d.ts.map +0 -1
  97. package/esm2022/components/cell-editors/single-select/single-select-editor.component.mjs +0 -44
  98. package/esm2022/pipes/grid.mjs +0 -18
  99. package/pipes/grid.d.ts +0 -9
  100. package/pipes/grid.d.ts.map +0 -1
@@ -3,3 +3,23 @@
3
3
  height: 100%;
4
4
  }
5
5
  }
6
+
7
+ .text-cell-editor {
8
+ display: block;
9
+
10
+ textarea {
11
+ padding: 0.55rem 0.75rem;
12
+ min-height: 44px;
13
+ border-width: 2px;
14
+ resize: none;
15
+ }
16
+ }
17
+
18
+ .number-cell-editor {
19
+ .thy-input-number{
20
+ .input-number-input {
21
+ border-width: 2px;
22
+ }
23
+ }
24
+
25
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"number-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/number/number-editor.component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAca,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACzE,WAAW;yCADF,yBAAyB;2CAAzB,yBAAyB;CAKrC"}
1
+ {"version":3,"file":"number-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/number/number-editor.component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAgBa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACzE,WAAW;yCADF,yBAAyB;2CAAzB,yBAAyB;CAKrC"}
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ThySliderSize, ThySliderType } from 'ngx-tethys/slider';
3
+ import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
4
+ import * as i0 from "@angular/core";
5
+ export interface AITableProgressConfig {
6
+ max?: number;
7
+ min?: number;
8
+ step?: number;
9
+ progressType?: ThySliderType;
10
+ suffix?: string;
11
+ size?: ThySliderSize;
12
+ }
13
+ export declare class ProgressEditorComponent extends AbstractEditCellEditor<number> implements OnInit {
14
+ config: Partial<AITableProgressConfig | undefined>;
15
+ mousedownHandler(event: Event): void;
16
+ constructor();
17
+ sliderMousedownHandler(event: Event): void;
18
+ updateValue(value: number): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressEditorComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressEditorComponent, "progress-editor", never, {}, {}, never, never, true, never>;
21
+ }
22
+ //# sourceMappingURL=progress-editor.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/progress/progress-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzF,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,MAAM,WAAW,qBAAqB;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,qBAyBa,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAE,YAAW,MAAM;IACzF,MAAM,EAAE,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAOhD;IAGF,gBAAgB,CAAC,KAAK,EAAE,KAAK;;IAQ7B,sBAAsB,CAAC,KAAK,EAAE,KAAK;IAKnC,WAAW,CAAC,KAAK,EAAE,MAAM;yCAxBhB,uBAAuB;2CAAvB,uBAAuB;CA2BnC"}
@@ -0,0 +1,21 @@
1
+ @use 'ngx-tethys/styles/variables.scss';
2
+
3
+ .progress-editor {
4
+ display: flex;
5
+ align-items: center;
6
+ height: 100%;
7
+ padding: 0 12px;
8
+
9
+ .thy-slider {
10
+ flex: 1;
11
+ padding: 2px 0;
12
+ }
13
+ .progress-text {
14
+ display: inline-block;
15
+ margin-left: 8px;
16
+ width: 40px;
17
+ white-space: nowrap;
18
+ font-size: 0.875rem;
19
+ flex-shrink: 0;
20
+ }
21
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"rating-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/rating/rating-editor.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAI3E,qBAOa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACzE,WAAW;yCADF,yBAAyB;2CAAzB,yBAAyB;CAKrC"}
1
+ {"version":3,"file":"rating-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/rating/rating-editor.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAUa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACzE,WAAW;yCADF,yBAAyB;2CAAzB,yBAAyB;CAIrC"}
@@ -0,0 +1,15 @@
1
+ import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
2
+ import { AITableSelectOption, AITableField } from '../../../core';
3
+ import * as i0 from "@angular/core";
4
+ export interface AITableSingleSelectField extends AITableField<AITableSelectOption> {
5
+ options: AITableSelectOption[];
6
+ }
7
+ export declare class SelectCellEditorComponent extends AbstractEditCellEditor<string, AITableSingleSelectField> {
8
+ isMultiple: boolean;
9
+ selectOptions: import("@angular/core").Signal<AITableSelectOption[]>;
10
+ constructor();
11
+ updateValue(value: boolean): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectCellEditorComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectCellEditorComponent, "single-select-cell-editor", never, { "isMultiple": { "alias": "isMultiple"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
15
+ //# sourceMappingURL=select-editor.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/select/select-editor.component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAI3E,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;;AAElE,MAAM,WAAW,wBAAyB,SAAQ,YAAY,CAAC,mBAAmB,CAAC;IAC/E,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAClC;AAED,qBAYa,yBAA0B,SAAQ,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1F,UAAU,EAAG,OAAO,CAAC;IAE9B,aAAa,wDAEV;;IAMH,WAAW,CAAC,KAAK,EAAE,OAAO;yCAXjB,yBAAyB;2CAAzB,yBAAyB;CAiBrC"}
@@ -1,6 +1,14 @@
1
+ import { AfterViewInit } from '@angular/core';
1
2
  import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
2
3
  import * as i0 from "@angular/core";
3
- export declare class TextCellEditorComponent extends AbstractEditCellEditor<string> {
4
+ export declare class TextCellEditorComponent extends AbstractEditCellEditor<string> implements AfterViewInit {
5
+ private elementRef;
6
+ private render2;
7
+ private maxHeight;
8
+ constructor();
9
+ ngAfterViewInit(): void;
10
+ updateStyle(): void;
11
+ valueChange(): void;
4
12
  updateValue(): void;
5
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TextCellEditorComponent, never>;
6
14
  static ɵcmp: i0.ɵɵComponentDeclaration<TextCellEditorComponent, "text-cell-editor", never, {}, {}, never, never, true, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"text-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/text/text-editor.component.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAca,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAC;IACvE,WAAW;yCADF,uBAAuB;2CAAvB,uBAAuB;CAKnC"}
1
+ {"version":3,"file":"text-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/text/text-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAqE,MAAM,eAAe,CAAC;AAIjH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;;AAE3E,qBAqBa,uBAAwB,SAAQ,sBAAsB,CAAC,MAAM,CAAE,YAAW,aAAa;IAChG,OAAO,CAAC,UAAU,CAAsB;IAExC,OAAO,CAAC,OAAO,CAAqB;IAEpC,OAAO,CAAC,SAAS,CAAO;;IAMxB,eAAe;IAMf,WAAW;IAUX,WAAW;IAIX,WAAW;yCA/BF,uBAAuB;2CAAvB,uBAAuB;CAmCnC"}
@@ -1,14 +1,14 @@
1
1
  import { ElementRef } from '@angular/core';
2
- import { AITableFieldMenu } from '../../types/field';
3
- import { AITableField, AITable } from '../../core';
2
+ import { AITableFieldMenuItem } from '../../types/field';
3
+ import { AITable } from '../../core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FieldMenu {
6
- field: AITableField;
6
+ fieldId: string;
7
7
  aiTable: AITable;
8
- fieldMenus: AITableFieldMenu[];
8
+ fieldMenus: AITableFieldMenuItem[];
9
9
  origin: HTMLElement | ElementRef<any>;
10
- execute(menu: AITableFieldMenu): void;
10
+ execute(menu: AITableFieldMenuItem): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldMenu, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldMenu, "field-menu", never, { "field": { "alias": "field"; "required": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "fieldMenus": { "alias": "fieldMenus"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldMenu, "field-menu", never, { "fieldId": { "alias": "fieldId"; "required": true; }; "aiTable": { "alias": "aiTable"; "required": true; }; "fieldMenus": { "alias": "fieldMenus"; "required": true; }; "origin": { "alias": "origin"; "required": false; }; }, {}, never, never, true, never>;
13
13
  }
14
14
  //# sourceMappingURL=field-menu.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-menu.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-menu/field-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAU,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;;AAUnD,qBAca,SAAS;IACS,KAAK,EAAG,YAAY,CAAC;IAErB,OAAO,EAAG,OAAO,CAAC;IAElB,UAAU,EAAG,gBAAgB,EAAE,CAAC;IAElD,MAAM,EAAG,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAEhD,OAAO,CAAC,IAAI,EAAE,gBAAgB;yCATrB,SAAS;2CAAT,SAAS;CAarB"}
1
+ {"version":3,"file":"field-menu.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-menu/field-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAU,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAgB,MAAM,YAAY,CAAC;;AAWnD,qBAca,SAAS;IACS,OAAO,EAAG,MAAM,CAAC;IAEjB,OAAO,EAAG,OAAO,CAAC;IAElB,UAAU,EAAG,oBAAoB,EAAE,CAAC;IAEtD,MAAM,EAAG,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAEhD,OAAO,CAAC,IAAI,EAAE,oBAAoB;yCATzB,SAAS;2CAAT,SAAS;CAarB"}
@@ -4,7 +4,7 @@ import { AITable, AITableField, AITableFieldType } from '../../core';
4
4
  import { ThyPopoverRef } from 'ngx-tethys/popover';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class AITableFieldPropertyEditor {
7
- aiField: import("@angular/core").ModelSignal<AITableField>;
7
+ aiField: import("@angular/core").ModelSignal<AITableField<unknown>>;
8
8
  aiTable: AITable;
9
9
  aiExternalTemplate: TemplateRef<any> | null;
10
10
  isUpdate: boolean;
@@ -12,6 +12,7 @@ export declare class AITableFieldPropertyEditor {
12
12
  type: AITableFieldType;
13
13
  name: string;
14
14
  icon: string;
15
+ width: number;
15
16
  }>;
16
17
  fieldMaxLength: number;
17
18
  validatorConfig: ThyFormValidatorConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"field-property-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-property-editor/field-property-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,WAAW,EAA6C,MAAM,eAAe,CAAC;AAGlI,OAAO,EAAyD,sBAAsB,EAAiB,MAAM,iBAAiB,CAAC;AAS/H,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAsD,MAAM,YAAY,CAAC;AAEzH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;;AAInD,qBAqCa,0BAA0B;IACnC,OAAO,oDAAkC;IAEd,OAAO,EAAG,OAAO,CAAC;IAEpC,kBAAkB,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAEpB,QAAQ,EAAG,OAAO,CAAC;IAE3D,SAAS;;;;OAEN;IAEH,cAAc,SAAM;IAEpB,eAAe,EAAE,sBAAsB,CAOrC;IAEF,gBAAgB,0CAAU;IAE1B,SAAS,CAAC,aAAa,+BAAqD;;IAI5E,eAAe,cAAe,MAAM,wCAGlC;IAEF,eAAe,CAAC,SAAS,EAAE,gBAAgB;IAI3C,iBAAiB;IASjB,MAAM;yCAhDG,0BAA0B;2CAA1B,0BAA0B;uCAoD0vxB,OAAQ;CADxyxB"}
1
+ {"version":3,"file":"field-property-editor.component.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/components/field-property-editor/field-property-editor.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,WAAW,EAA6C,MAAM,eAAe,CAAC;AAGlI,OAAO,EAAyD,sBAAsB,EAAiB,MAAM,iBAAiB,CAAC;AAS/H,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAsD,MAAM,YAAY,CAAC;AAEzH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;;AAKnD,qBAsCa,0BAA0B;IACnC,OAAO,6DAAkC;IAEd,OAAO,EAAG,OAAO,CAAC;IAEpC,kBAAkB,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAEpB,QAAQ,EAAG,OAAO,CAAC;IAE3D,SAAS;;;;;OAEN;IAEH,cAAc,SAAM;IAEpB,eAAe,EAAE,sBAAsB,CAOrC;IAEF,gBAAgB,0CAAU;IAE1B,SAAS,CAAC,aAAa,+BAAqD;;IAI5E,eAAe,cAAe,MAAM,wCAGlC;IAEF,eAAe,CAAC,SAAS,EAAE,gBAAgB;IAI3C,iBAAiB;IAUjB,MAAM;yCAjDG,0BAA0B;2CAA1B,0BAA0B;uCAqDqhxB,OAAQ;CADnkxB"}
@@ -1,2 +1,8 @@
1
+ export * from './cell-editors/date-time/date-time-editor.component';
2
+ export * from './cell-editors/link/number-editor.component';
3
+ export * from './cell-editors/number/number-editor.component';
4
+ export * from './cell-editors/progress/progress-editor.component';
5
+ export * from './cell-editors/rating/rating-editor.component';
6
+ export * from './cell-editors/text/text-editor.component';
1
7
  export * from './field-property-editor/field-property-editor.component';
2
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yDAAyD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { AITableFieldType } from '../core';
2
- export declare const GRID_CELL_EDITOR_MAP: Record<AITableFieldType, any>;
2
+ export declare const GRID_CELL_EDITOR_MAP: Partial<Record<AITableFieldType, any>>;
3
3
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQ3C,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAO9D,CAAC"}
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/editor.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAC,CASvE,CAAC"}
@@ -1,14 +1,20 @@
1
1
  import { AITable, AITableField } from '../core';
2
- import { AITableFieldMenu } from '../types/field';
3
- import { ElementRef, WritableSignal } from '@angular/core';
2
+ import { ElementRef, Signal } from '@angular/core';
3
+ import { AITableFieldMenuItem } from '../types';
4
4
  export declare const DividerMenuItem: {
5
- id: string;
5
+ type: string;
6
6
  };
7
7
  export declare const EditFieldPropertyItem: {
8
- id: string;
8
+ type: string;
9
9
  name: string;
10
10
  icon: string;
11
- exec: (aiTable: AITable, field: WritableSignal<AITableField>, origin?: HTMLElement | ElementRef<any>) => void;
11
+ exec: (aiTable: AITable, field: Signal<AITableField>, origin?: HTMLElement | ElementRef<any>) => void;
12
12
  };
13
- export declare const DefaultFieldMenus: AITableFieldMenu[];
13
+ export declare const RemoveFieldItem: {
14
+ type: string;
15
+ name: string;
16
+ icon: string;
17
+ exec: (aiTable: AITable, field: Signal<AITableField>) => void;
18
+ };
19
+ export declare const DefaultFieldMenus: AITableFieldMenuItem[];
14
20
  //# sourceMappingURL=field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3D,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;oBAId,OAAO,SAAS,eAAe,YAAY,CAAC,WAAW,WAAW,GAAG,WAAW,GAAG,CAAC;CAIvG,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,gBAAgB,EAA4B,CAAC"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,YAAY,EAAkB,MAAM,SAAS,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAU,MAAM,EAAkB,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,eAAO,MAAM,eAAe;;CAE3B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;oBAId,OAAO,SAAS,OAAO,YAAY,CAAC,WAAW,WAAW,GAAG,WAAW,GAAG,CAAC;CAK/F,CAAC;AAEF,eAAO,MAAM,eAAe;;;;oBAIR,OAAO,SAAS,OAAO,YAAY,CAAC;CAIvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,oBAAoB,EAA6C,CAAC"}
@@ -2,6 +2,7 @@ import { AITableFieldType } from '../core';
2
2
  export declare const DEFAULT_COLUMN_WIDTH = 200;
3
3
  export declare const MIN_COLUMN_WIDTH = 80;
4
4
  export declare const DBL_CLICK_EDIT_TYPE: AITableFieldType[];
5
+ export declare const MOUSEOVER_EDIT_TYPE: AITableFieldType[];
5
6
  export declare const RowHeight: {
6
7
  Short: number;
7
8
  Medium: number;
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,eAAO,MAAM,mBAAmB,oBAK/B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/constants/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,eAAO,MAAM,mBAAmB,oBAM/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oBAA8B,CAAC;AAE/D,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC"}
@@ -1,6 +1,12 @@
1
1
  import { AIFieldPath, AITable, AITableField } from '../types';
2
2
  export declare function addField(aiTable: AITable, field: AITableField, path: AIFieldPath): void;
3
+ export declare function moveField(aiTable: AITable, path: AIFieldPath, newPath: AIFieldPath): void;
4
+ export declare function removeField(aiTable: AITable, path: AIFieldPath): void;
5
+ export declare function setField(aiTable: AITable, value: Partial<AITableField>, path: AIFieldPath): void;
3
6
  export declare const FieldActions: {
4
7
  addField: typeof addField;
8
+ moveField: typeof moveField;
9
+ removeField: typeof removeField;
10
+ setField: typeof setField;
5
11
  };
6
12
  //# sourceMappingURL=field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,WAAW,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1F,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,QAOhF;AAED,eAAO,MAAM,YAAY;;CAExB,CAAC"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,WAAW,EACX,OAAO,EACP,YAAY,EAIf,MAAM,UAAU,CAAC;AAGlB,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,QAOhF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,QAOlF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,QAM9D;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,QAuBzF;AAED,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAAE,aAAa,EAAiC,MAAM,UAAU,CAAC;AAqC7F,eAAO,MAAM,cAAc;uBACJ,OAAO,MAAM,aAAa,GAAG,IAAI;CAWvD,CAAC"}
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAAE,aAAa,EAAiC,MAAM,UAAU,CAAC;AA8F7F,eAAO,MAAM,cAAc;uBACJ,OAAO,MAAM,aAAa,GAAG,IAAI;CAWvD,CAAC"}
@@ -1,7 +1,12 @@
1
1
  export declare const Actions: {
2
2
  addField: typeof import("./field").addField;
3
+ moveField: typeof import("./field").moveField;
4
+ removeField: typeof import("./field").removeField;
5
+ setField: typeof import("./field").setField;
3
6
  addRecord: typeof import("./record").addRecord;
4
7
  updateFieldValue: typeof import("./record").updateFieldValue;
8
+ moveRecord: typeof import("./record").moveRecord;
9
+ removeRecord: typeof import("./record").removeRecord;
5
10
  transform(aiTable: import("@ai-table/grid").AITable, op: import("@ai-table/grid").AITableAction): void;
6
11
  };
7
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;CAInB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;CAInB,CAAC"}
@@ -1,8 +1,12 @@
1
1
  import { AIRecordPath, AITable, AITableRecord, AIFieldValuePath } from '../types';
2
2
  export declare function updateFieldValue(aiTable: AITable, value: any, path: AIFieldValuePath): void;
3
3
  export declare function addRecord(aiTable: AITable, record: AITableRecord, path: AIRecordPath): void;
4
+ export declare function moveRecord(aiTable: AITable, path: AIRecordPath, newPath: AIRecordPath): void;
5
+ export declare function removeRecord(aiTable: AITable, path: AIRecordPath): void;
4
6
  export declare const RecordActions: {
5
7
  addRecord: typeof addRecord;
6
8
  updateFieldValue: typeof updateFieldValue;
9
+ moveRecord: typeof moveRecord;
10
+ removeRecord: typeof removeRecord;
7
11
  };
8
12
  //# sourceMappingURL=record.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/record.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAA0B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGvI,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,QAWpF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,QAOpF;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAC"}
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/action/record.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAEZ,OAAO,EACP,aAAa,EACb,gBAAgB,EAGnB,MAAM,UAAU,CAAC;AAGlB,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,gBAAgB,QAWpF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,QAOpF;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,QAOrF;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,QAMhE;AAED,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC"}
@@ -3,6 +3,7 @@ export declare const BasicFields: {
3
3
  type: AITableFieldType;
4
4
  name: string;
5
5
  icon: string;
6
+ width: number;
6
7
  }[];
7
8
  export declare const Fields: AITableFieldInfo[];
8
9
  export declare const FieldsMap: {
@@ -10,6 +11,7 @@ export declare const FieldsMap: {
10
11
  type: AITableFieldType;
11
12
  name: string;
12
13
  icon: string;
14
+ width: number;
13
15
  };
14
16
  };
15
17
  //# sourceMappingURL=field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/constants/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG9D,eAAO,MAAM,WAAW;;;;GA+BvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,gBAAgB,EAAqB,CAAC;AAE3D,eAAO,MAAM,SAAS;;;;;;CAA0C,CAAC"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/constants/field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,WAAW;;;;;GA6EvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,gBAAgB,EAAqB,CAAC;AAE3D,eAAO,MAAM,SAAS;;;;;;;CAA0C,CAAC"}
@@ -6,7 +6,12 @@ export type Path = AIRecordPath | AIFieldPath | AIFieldValuePath;
6
6
  export declare enum ActionName {
7
7
  UpdateFieldValue = "update_field_value",
8
8
  AddRecord = "add_record",
9
- AddField = "add_field"
9
+ AddField = "add_field",
10
+ MoveField = "move_field",
11
+ MoveRecord = "move_record",
12
+ RemoveField = "remove_field",
13
+ RemoveRecord = "remove_record",
14
+ SetField = "set_field"
10
15
  }
11
16
  export declare enum ExecuteType {
12
17
  Execute = 0,
@@ -29,5 +34,29 @@ export type AddFieldAction = {
29
34
  path: AIFieldPath;
30
35
  field: AITableField;
31
36
  };
32
- export type AITableAction = UpdateFieldValueAction | AddRecordAction | AddFieldAction;
37
+ export type MoveFieldAction = {
38
+ type: ActionName.MoveField;
39
+ path: AIFieldPath;
40
+ newPath: AIFieldPath;
41
+ };
42
+ export type MoveRecordAction = {
43
+ type: ActionName.MoveRecord;
44
+ path: AIRecordPath;
45
+ newPath: AIRecordPath;
46
+ };
47
+ export type RemoveFieldAction = {
48
+ type: ActionName.RemoveField;
49
+ path: AIFieldPath;
50
+ };
51
+ export type RemoveRecordAction = {
52
+ type: ActionName.RemoveRecord;
53
+ path: AIRecordPath;
54
+ };
55
+ export type SetFieldAction = {
56
+ type: ActionName.SetField;
57
+ path: AIFieldPath;
58
+ field: Partial<AITableField>;
59
+ newField: Partial<AITableField>;
60
+ };
61
+ export type AITableAction = UpdateFieldValueAction | AddRecordAction | AddFieldAction | RemoveRecordAction | RemoveFieldAction | SetFieldAction | MoveFieldAction | MoveRecordAction;
33
62
  //# sourceMappingURL=action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC;AAEnC,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD,MAAM,MAAM,IAAI,GAAG,YAAY,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAEjE,oBAAY,UAAU;IAClB,gBAAgB,uBAAuB;IACvC,SAAS,eAAe;IACxB,QAAQ,cAAc;CACzB;AAED,oBAAY,WAAW;IACnB,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,IAAI,IAAA;CACP;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,GAAG,CAAC;IAChB,aAAa,EAAE,GAAG,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,eAAe,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/types/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,CAAC,M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C;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7B,IAAI,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC;IAC9B,IAAI,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,aAAa,GACnB,sBAAsB,GACtB,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,gBAAgB,CAAC"}
@@ -1,12 +1,21 @@
1
1
  import { WritableSignal } from '@angular/core';
2
+ import { Id } from 'ngx-tethys/types';
3
+ import { AITableSelection } from '../../types';
2
4
  import { AITableAction } from './action';
3
5
  export declare enum AITableFieldType {
4
- Text = 1,
5
- Number = 2,
6
- SingleSelect = 3,
7
- DateTime = 5,
8
- Link = 7,
9
- Rating = 12
6
+ text = "text",// 包含多行文本
7
+ richText = "rich_text",// 包含多行文本
8
+ select = "select",// 包含单选和多选
9
+ number = "number",
10
+ date = "date",
11
+ member = "member",// 包含单个和多个
12
+ progress = "progress",
13
+ rate = "rate",
14
+ link = "link",
15
+ createdAt = "created_at",
16
+ updatedAt = "updated_at",
17
+ createdBy = "created_by",
18
+ updatedBy = "updated_by"
10
19
  }
11
20
  export declare enum AITableStatType {
12
21
  None = 0,
@@ -29,23 +38,38 @@ export declare enum AITableStatType {
29
38
  PercentUnChecked = 17
30
39
  }
31
40
  export interface AITableSelectOption {
32
- id: string;
33
- name: string;
41
+ _id: string;
42
+ text: string;
34
43
  color?: string;
44
+ bg_color?: string;
45
+ [key: string]: any;
35
46
  }
36
- export interface AITableField {
37
- id: string;
47
+ export interface AITableField<T = unknown> {
48
+ _id: string;
38
49
  name: string;
39
50
  type: AITableFieldType;
40
- width?: string;
51
+ icon?: string;
52
+ width?: number;
41
53
  hidden?: boolean;
42
54
  frozen?: boolean;
43
55
  statType?: AITableStatType;
44
- [key: string]: AITableSelectOption[] | any;
56
+ readonly?: boolean;
57
+ isMultiple?: boolean;
58
+ [key: string]: T | any;
45
59
  }
60
+ export type TextFieldValue = string;
61
+ export type SelectFieldValue = Id[];
62
+ export type NumberFieldValue = number;
63
+ export type DateFieldValue = {
64
+ timestamp: number;
65
+ };
66
+ export type MemberFieldValue = Id[];
67
+ export type ProgressFieldValue = number;
68
+ export type RateFieldValue = 1 | 2 | 3 | 4 | 5;
69
+ export type FieldValue = TextFieldValue | SelectFieldValue | NumberFieldValue | DateFieldValue | MemberFieldValue | ProgressFieldValue | RateFieldValue | any;
46
70
  export interface AITableRecord {
47
- id: string;
48
- value: Record<string, any>;
71
+ _id: string;
72
+ values: Record<string, FieldValue>;
49
73
  }
50
74
  export type AITableRecords = AITableRecord[];
51
75
  export type AITableFields = AITableField[];
@@ -57,6 +81,7 @@ export interface AITable {
57
81
  records: WritableSignal<AITableRecords>;
58
82
  fields: WritableSignal<AITableFields>;
59
83
  actions: AITableAction[];
84
+ selection: WritableSignal<AITableSelection>;
60
85
  onChange: () => void;
61
86
  apply: (action: AITableAction) => void;
62
87
  }
@@ -69,5 +94,7 @@ export interface AITableFieldInfo {
69
94
  type: AITableFieldType;
70
95
  name: string;
71
96
  icon: string;
97
+ width: number;
72
98
  }
99
+ export type AIPlugin = (aiTable: AITable) => AITable;
73
100
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/types/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eA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OAAO,EAAE,OAAO,KAAK,OAAO,CAAC"}
@@ -1,4 +1,5 @@
1
- import { AITable, AITableFields, AITableRecords } from '../types';
1
+ import { AITable, AITableFields, AITableRecords, Path } from '../types';
2
2
  import { WritableSignal } from '@angular/core';
3
3
  export declare function createAITable(records: WritableSignal<AITableRecords>, fields: WritableSignal<AITableFields>): AITable;
4
+ export declare function isPathEqual(path: Path, another: Path): boolean;
4
5
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/utils/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAiB,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEjF,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,OAAO,CAqBrH"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/utils/common.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAiB,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAU,MAAM,eAAe,CAAC;AAEvD,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,OAAO,CA0BrH;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAE9D"}
@@ -2,7 +2,7 @@ import { AITable, AITableFieldType } from '../types';
2
2
  export declare function getDefaultFieldValue(type: AITableFieldType): string;
3
3
  export declare function createDefaultFieldName(aiTable: AITable, type?: AITableFieldType): string;
4
4
  export declare function createDefaultField(aiTable: AITable, type?: AITableFieldType): {
5
- id: string;
5
+ _id: string;
6
6
  type: AITableFieldType;
7
7
  name: string;
8
8
  };
@@ -1,6 +1,8 @@
1
- import { Path, AITable, AITableField, AITableRecord } from '../types';
1
+ import { Path, AITable, AITableField, AITableRecord, AIRecordPath, AIFieldPath } from '../types';
2
2
  export declare const AITableQueries: {
3
3
  findPath(aiTable: AITable, field?: AITableField, record?: AITableRecord): Path;
4
4
  getFieldValue(aiTable: AITable, path: [number, number]): any;
5
+ getField(aiTable: AITable, path: AIFieldPath): AITableField;
6
+ getRecord(aiTable: AITable, path: AIRecordPath): AITableRecord;
5
7
  };
6
8
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/utils/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAA+C,MAAM,UAAU,CAAC;AAEnH,eAAO,MAAM,cAAc;sBACL,OAAO,UAAU,YAAY,WAAW,aAAa,GAAG,IAAI;2BAcvD,OAAO,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,GAAG;CAO/D,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../packages/grid/src/core/utils/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAoB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEnH,eAAO,MAAM,cAAc;sBACL,OAAO,UAAU,YAAY,WAAW,aAAa,GAAG,IAAI;2BAcvD,OAAO,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,GAAG;sBAqB1C,OAAO,sBAAsB,YAAY;uBAUxC,OAAO,uBAAuB,aAAa;CASjE,CAAC"}
@@ -19,7 +19,7 @@ export class AbstractEditCellEditor {
19
19
  Actions.updateFieldValue(this.aiTable, this.modelValue, path);
20
20
  }
21
21
  closePopover() {
22
- this.thyPopoverRef.close();
22
+ this.thyPopoverRef?.close();
23
23
  }
24
24
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: AbstractEditCellEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
25
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.2", type: AbstractEditCellEditor, isStandalone: true, selector: "abstract-edit-cell", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, record: { classPropertyName: "record", publicName: "record", isSignal: true, isRequired: true, transformFunction: null }, aiTable: { classPropertyName: "aiTable", publicName: "aiTable", isSignal: false, isRequired: true, transformFunction: null } }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
@@ -36,4 +36,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImpor
36
36
  type: Input,
37
37
  args: [{ required: true }]
38
38
  }] } });
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtY2VsbC1lZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZ3JpZC9zcmMvY29tcG9uZW50cy9jZWxsLWVkaXRvcnMvYWJzdHJhY3QtY2VsbC1lZGl0b3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsUUFBUSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQzNHLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNuRCxPQUFPL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