@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-table/grid",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0"
@@ -0,0 +1,15 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AITableSelectOption } from '../core';
3
+ import { AITableSelection } from '../types';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SelectOptionPipe implements PipeTransform {
6
+ transform(_id: string, options: AITableSelectOption[]): AITableSelectOption | undefined;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<SelectOptionPipe, "selectOption", true>;
9
+ }
10
+ export declare class IsSelectRecordPipe implements PipeTransform {
11
+ transform(recordId: string, selection: AITableSelection): boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsSelectRecordPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsSelectRecordPipe, "isSelectRecord", true>;
14
+ }
15
+ //# sourceMappingURL=grid.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.pipe.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/pipes/grid.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;;AAE5C,qBAIa,gBAAiB,YAAW,aAAa;IAClD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE;yCAD5C,gBAAgB;uCAAhB,gBAAgB;CAI5B;AAED,qBAIa,kBAAmB,YAAW,aAAa;IACpD,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB;yCAD9C,kBAAkB;uCAAlB,kBAAkB;CAI9B"}
package/pipes/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './grid';
1
+ export * from './grid.pipe';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/pipes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,18 +1,21 @@
1
+ import { Subject } from 'rxjs';
1
2
  import { AITable, AITableFieldType } from '../core';
2
- import { ThyPopover } from 'ngx-tethys/popover';
3
3
  import { AITableGridCellRenderSchema } from '../types';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AITableGridEventService {
6
- private thyPopover;
7
6
  aiTable: AITable;
8
7
  aiFieldRenderers?: Partial<Record<AITableFieldType, AITableGridCellRenderSchema>>;
9
- takeUntilDestroyed: import("rxjs").MonoTypeOperatorFunction<unknown>;
10
- constructor(thyPopover: ThyPopover);
8
+ dblClickEvent$: Subject<MouseEvent>;
9
+ mousedownEvent$: Subject<MouseEvent>;
10
+ mouseoverEvent$: Subject<MouseEvent>;
11
+ globalMouseoverEvent$: Subject<MouseEvent>;
12
+ globalMousedownEvent$: Subject<MouseEvent>;
13
+ private destroyRef;
14
+ private thyPopover;
11
15
  initialize(aiTable: AITable, aiFieldRenderers?: Partial<Record<AITableFieldType, AITableGridCellRenderSchema>>): void;
12
16
  registerEvents(element: HTMLElement): void;
13
- private dblClick;
14
17
  private getEditorComponent;
15
- private openEdit;
18
+ openEdit(cellDom: HTMLElement): import("ngx-tethys/popover").ThyPopoverRef<unknown, unknown, unknown>;
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AITableGridEventService, never>;
17
20
  static ɵprov: i0.ɵɵInjectableDeclaration<AITableGridEventService>;
18
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.service.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/services/event.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAgB,gBAAgB,EAAiB,MAAM,SAAS,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;;AAEvD,qBACa,uBAAuB;IAOpB,OAAO,CAAC,UAAU;IAN9B,OAAO,EAAG,OAAO,CAAC;IAElB,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,CAAC;IAElF,kBAAkB,mDAAwB;gBAEtB,UAAU,EAAE,UAAU;IAE1C,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC;IAK9G,cAAc,CAAC,OAAO,EAAE,WAAW;IAQnC,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,QAAQ;yCArCP,uBAAuB;6CAAvB,uBAAuB;CAoEnC"}
1
+ {"version":3,"file":"event.service.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/services/event.service.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,OAAO,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EAAE,OAAO,EAAgB,gBAAgB,EAAiB,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;;AAGvD,qBACa,uBAAuB;IAChC,OAAO,EAAG,OAAO,CAAC;IAElB,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,CAAC;IAElF,cAAc,sBAA6B;IAE3C,eAAe,sBAA6B;IAE5C,eAAe,sBAA6B;IAE5C,qBAAqB,sBAA6B;IAElD,qBAAqB,sBAA6B;IAElD,OAAO,CAAC,UAAU,CAAsB;IAExC,OAAO,CAAC,UAAU,CAAsB;IAExC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC;IAK9G,cAAc,CAAC,OAAO,EAAE,WAAW;IAgCnC,OAAO,CAAC,kBAAkB;IAO1B,QAAQ,CAAC,OAAO,EAAE,WAAW;yCA/DpB,uBAAuB;6CAAvB,uBAAuB;CAiGnC"}
@@ -0,0 +1,16 @@
1
+ import { AITable } from '../core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AITableGridSelectionService {
4
+ aiTable: AITable;
5
+ constructor();
6
+ initialize(aiTable: AITable): void;
7
+ clearSelection(): void;
8
+ selectCell(recordId: string, fieldId: string): void;
9
+ selectField(fieldId: string): void;
10
+ selectRecord(recordId: string): void;
11
+ toggleSelectAll(checked: boolean): void;
12
+ updateSelect(event: MouseEvent): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AITableGridSelectionService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<AITableGridSelectionService>;
15
+ }
16
+ //# sourceMappingURL=selection.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection.service.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/services/selection.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;;AAElC,qBACa,2BAA2B;IACpC,OAAO,EAAG,OAAO,CAAC;;IAIlB,UAAU,CAAC,OAAO,EAAE,OAAO;IAI3B,cAAc;IAQd,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAK5C,WAAW,CAAC,OAAO,EAAE,MAAM;IAK3B,YAAY,CAAC,QAAQ,EAAE,MAAM;IAa7B,eAAe,CAAC,OAAO,EAAE,OAAO;IAShC,YAAY,CAAC,KAAK,EAAE,UAAU;yCAjDrB,2BAA2B;6CAA3B,2BAA2B;CAuEvC"}
@@ -2,6 +2,7 @@
2
2
  @use 'ngx-tethys/styles/index.scss';
3
3
  @use 'ngx-tethys/styles/variables.scss';
4
4
  @use '../components/cell-editors/cell-editor.scss';
5
+ @use '../components/cell-editors/progress/progress-editor.component.scss';
5
6
 
6
7
  .ai-table-grid {
7
8
  display: table;
@@ -9,6 +10,12 @@
9
10
 
10
11
  .grid-header {
11
12
  border-top: 1px solid variables.$gray-200;
13
+
14
+ .grid-field:not(.highlight) {
15
+ &:hover {
16
+ background-color: variables.$gray-80;
17
+ }
18
+ }
12
19
  }
13
20
 
14
21
  .grid-body {
@@ -22,6 +29,15 @@
22
29
  .grid-row {
23
30
  &:hover {
24
31
  background-color: variables.$gray-80;
32
+ .unchecked-box {
33
+ display: block;
34
+ }
35
+ .grid-row-number {
36
+ display: none;
37
+ }
38
+ }
39
+ &.highlight {
40
+ background: variables.$secondary-item-active;
25
41
  }
26
42
  }
27
43
 
@@ -31,9 +47,45 @@
31
47
  align-items: center;
32
48
  width: 300px;
33
49
  border-left: 1px solid variables.$gray-200;
34
- justify-content: center;
50
+ padding: 0 12px;
51
+ position: relative;
35
52
  cursor: pointer;
53
+ justify-content: space-between;
54
+ .autofill-container {
55
+ position: absolute;
56
+ width: 8px;
57
+ height: 8px;
58
+ right: 0;
59
+ bottom: 0;
60
+ border: 2px solid variables.$white;
61
+ background: variables.$primary;
62
+ cursor: crosshair;
63
+ z-index: 100;
64
+ display: none;
65
+ }
66
+ &.highlight {
67
+ background: variables.$secondary-item-active;
68
+ }
69
+ &.selected {
70
+ border: 2px solid variables.$primary;
71
+ background: variables.$white;
72
+ .autofill-container {
73
+ display: block;
74
+ }
75
+ }
36
76
  }
77
+
78
+ .grid-field {
79
+ .grid-field-action {
80
+ visibility: hidden;
81
+ }
82
+ &:hover {
83
+ .grid-field-action {
84
+ visibility: visible;
85
+ }
86
+ }
87
+ }
88
+
37
89
  .grid-column-blank {
38
90
  flex: 1;
39
91
  min-width: 180px;
@@ -50,6 +102,21 @@
50
102
  }
51
103
  }
52
104
  }
105
+ .grid-row-index {
106
+ .checked-box {
107
+ display: block;
108
+ }
109
+ .unchecked-box {
110
+ display: none;
111
+ }
112
+ .grid-row-no-number {
113
+ display: none;
114
+ }
115
+
116
+ .grid-row-number {
117
+ display: block;
118
+ }
119
+ }
53
120
 
54
121
  .grid-row-index,
55
122
  .grid-column-checkbox {
@@ -68,26 +135,22 @@
68
135
  align-items: center;
69
136
  }
70
137
 
71
- .text-column {
72
- width: 100%;
73
- height: 100%;
74
- display: flex;
75
- align-items: center;
76
- justify-content: center;
77
- }
78
-
79
138
  .cell-active {
80
139
  border: 1px solid variables.$primary;
81
140
  margin-left: 0.5px;
82
141
  }
83
142
 
84
143
  .thy-icon-plus {
85
- font-size: 14px;
144
+ font-size: 16px;
86
145
  color: variables.$gray-600;
87
146
  }
88
147
  }
89
148
 
90
149
  .grid-cell-editor {
150
+ .thy-popover-container {
151
+ box-shadow: none;
152
+ border-radius: inherit;
153
+ }
91
154
  .form-control,
92
155
  .thy-select-custom,
93
156
  .select-control-rendered {
package/types/field.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ElementRef, Signal, WritableSignal } from '@angular/core';
1
+ import { ElementRef, Signal } from '@angular/core';
2
2
  import { AITable, AITableField } from '../core';
3
- export interface AITableFieldMenu {
4
- id: string;
3
+ export interface AITableFieldMenuItem {
4
+ type: string;
5
5
  name?: string;
6
6
  icon?: string;
7
- exec?: (aiTable: AITable, field: WritableSignal<AITableField>, origin?: HTMLElement | ElementRef<any>) => void;
7
+ exec?: (aiTable: AITable, field: Signal<AITableField>, origin?: HTMLElement | ElementRef<any>) => void;
8
8
  hidden?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
9
9
  disabled?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IAC/G,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,OAAO,CAAC;IACpE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,OAAO,CAAC;CACzE"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACvG,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,OAAO,CAAC;IACpE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,OAAO,CAAC;CACzE"}
package/types/grid.d.ts CHANGED
@@ -1,11 +1,5 @@
1
1
  import { AITableField, AITableFieldType, AITableRecord } from '../core';
2
- import { AITableFieldMenu } from './field';
3
- export declare enum AITableRowHeight {
4
- Short = 1,
5
- Medium = 2,
6
- Tall = 3,
7
- ExtraTall = 4
8
- }
2
+ import { AITableFieldMenuItem } from './field';
9
3
  export interface AITableGridCellRenderSchema {
10
4
  editor: any;
11
5
  }
@@ -14,9 +8,22 @@ export interface AITableGridData {
14
8
  fields: AITableField[];
15
9
  records: AITableRecord[];
16
10
  }
11
+ export interface AITableSelection {
12
+ selectedRecords: Map<string, boolean>;
13
+ selectedFields: Map<string, boolean>;
14
+ selectedCells: Map<string, {}>;
15
+ }
17
16
  export interface AIFieldConfig {
18
17
  fieldRenderers?: Partial<Record<AITableFieldType, AITableGridCellRenderSchema>>;
19
18
  fieldPropertyEditor?: any;
20
- fieldMenus?: AITableFieldMenu[];
19
+ fieldMenus?: AITableFieldMenuItem[];
20
+ }
21
+ export interface AITableUserInfo {
22
+ uid?: string;
23
+ display_name?: string;
24
+ avatar?: string;
25
+ }
26
+ export interface AITableReferences {
27
+ members: AITableUserInfo[];
21
28
  }
22
29
  //# sourceMappingURL=grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,oBAAY,gBAAgB;IACxB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,IAAI,IAAI;IACR,SAAS,IAAI;CAChB;AAED,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,CAAC;IAChF,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACnC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,WAAW,2BAA2B;IACxC,MAAM,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;CAClC;AACD,MAAM,WAAW,aAAa;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,CAAC;IAChF,mBAAmB,CAAC,EAAE,GAAG,CAAC;IAC1B,UAAU,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,eAAe;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,eAAe,EAAE,CAAC;CAC9B"}
package/utils/build.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AITableFields, AITableRecords } from '../core';
2
- import { AITableGridData } from '../types';
3
- export declare const buildGridData: (recordValue: AITableRecords, fieldsValue: AITableFields) => AITableGridData;
2
+ import { AITableGridData, AITableReferences } from '../types';
3
+ export declare const buildGridData: (recordValue: AITableRecords, fieldsValue: AITableFields, references?: AITableReferences) => AITableGridData;
4
+ export declare function buildRecordsByReferences(records: AITableRecords, fields: AITableFields, references?: AITableReferences): AITableRecords;
4
5
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAO,SAAS,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,aAAa,+DAA8D,eAMvF,CAAC"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAoB,cAAc,EAAa,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAqC,MAAM,UAAU,CAAC;AAEjG,eAAO,MAAM,aAAa,yEAGT,iBAAiB,KAC/B,eAcF,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE,iBAAiB,kBA6BtH"}
package/utils/cell.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Signal } from '@angular/core';
2
2
  import { AITableField, AITableFields, AITableRecord, AITableRecords } from '../core';
3
- export declare function getRecordOrField(value: Signal<AITableRecords | AITableFields>, id: string): Signal<AITableField | AITableRecord>;
3
+ export declare function getRecordOrField(value: Signal<AITableRecords | AITableFields>, _id: string): Signal<AITableField | AITableRecord>;
4
4
  //# sourceMappingURL=cell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAErF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,YAAY,GAAG,aAAa,CAAC,CAIhI"}
1
+ {"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAErF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,cAAc,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,YAAY,GAAG,aAAa,CAAC,CAIjI"}
@@ -1,14 +0,0 @@
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 {
5
- options: AITableSelectOption[];
6
- }
7
- export declare class SingleSelectCellEditorComponent extends AbstractEditCellEditor<string, AITableSingleSelectField> {
8
- selectOptions: import("@angular/core").Signal<AITableSelectOption[]>;
9
- constructor();
10
- updateValue(value: boolean): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectCellEditorComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectCellEditorComponent, "single-select-cell-editor", never, {}, {}, never, never, true, never>;
13
- }
14
- //# sourceMappingURL=single-select-editor.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"single-select-editor.component.d.ts","sourceRoot":"","sources":["../../../../../packages/grid/src/components/cell-editors/single-select/single-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;IAC1D,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAClC;AAED,qBAYa,+BAAgC,SAAQ,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,CAAC;IACzG,aAAa,wDAEV;;IAMH,WAAW,CAAC,KAAK,EAAE,OAAO;yCATjB,+BAA+B;2CAA/B,+BAA+B;CAe3C"}
@@ -1,44 +0,0 @@
1
- import { NgForOf, NgIf } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, computed } from '@angular/core';
3
- import { FormsModule } from '@angular/forms';
4
- import { ThySelect } from 'ngx-tethys/select';
5
- import { AbstractEditCellEditor } from '../abstract-cell-editor.component';
6
- import { ThyTag } from 'ngx-tethys/tag';
7
- import { ThyIcon } from 'ngx-tethys/icon';
8
- import { ThyOption } from 'ngx-tethys/shared';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@angular/forms";
11
- export class SingleSelectCellEditorComponent extends AbstractEditCellEditor {
12
- constructor() {
13
- super();
14
- this.selectOptions = computed(() => {
15
- return this.field().options;
16
- });
17
- }
18
- updateValue(value) {
19
- if (!value) {
20
- this.updateFieldValue();
21
- this.closePopover();
22
- }
23
- }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: SingleSelectCellEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.2", type: SingleSelectCellEditorComponent, isStandalone: true, selector: "single-select-cell-editor", host: { classAttribute: "d-block h-100" }, usesInheritance: true, ngImport: i0, template: `<thy-select [(ngModel)]="modelValue" [thyAutoExpand]="true" (thyOnExpandStatusChange)="updateValue($event)">
26
- <thy-option *ngFor="let option of selectOptions()" [thyValue]="option.id" [thyLabelText]="option.name"> </thy-option>
27
- </thy-select> `, isInline: true, dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ThySelect, selector: "thy-select,thy-custom-select", inputs: ["thyDropdownWidthMode", "thyShowSearch", "thyPlaceHolder", "thyServerSearch", "thyLoadState", "thyAutoActiveFirstItem", "thyMode", "thySize", "thyEmptyStateText", "thyEmptySearchMessageText", "thyEnableScrollLoad", "thyAllowClear", "thyDisabled", "thySortComparator", "thyFooterTemplate", "thyPlacement", "thyOrigin", "thyFooterClass", "thyAutoExpand", "thyHasBackdrop", "thyMaxTagCount", "thyBorderless", "thyOptions", "thyPreset"], outputs: ["thyOnSearch", "thyOnScrollToBottom", "thyOnExpandStatusChange"], exportAs: ["thySelect"] }, { kind: "component", type: ThyOption, selector: "thy-option", inputs: ["thyValue", "thyRawValue", "thyLabelText", "thyShowOptionCustom", "thySearchKey", "thyDisabled"], outputs: ["selectionChange", "visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: SingleSelectCellEditorComponent, decorators: [{
30
- type: Component,
31
- args: [{
32
- selector: 'single-select-cell-editor',
33
- template: `<thy-select [(ngModel)]="modelValue" [thyAutoExpand]="true" (thyOnExpandStatusChange)="updateValue($event)">
34
- <thy-option *ngFor="let option of selectOptions()" [thyValue]="option.id" [thyLabelText]="option.name"> </thy-option>
35
- </thy-select> `,
36
- standalone: true,
37
- changeDetection: ChangeDetectionStrategy.OnPush,
38
- host: {
39
- class: 'd-block h-100'
40
- },
41
- imports: [NgIf, NgForOf, FormsModule, ThySelect, ThyOption, ThyTag, ThyIcon]
42
- }]
43
- }], ctorParameters: () => [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WJsb2NrIGgtMTAwJ1xuICAgIH0sXG4gICAgaW1wb3J0czogW05nSWYsIE5nRm9yT2YsIEZvcm1zTW9kdWxlLCBUaHlTZWxlY3QsIFRoeU9wdGlvbiwgVGh5VGFnLCBUaHlJY29uXVxufSlcbmV4cG9ydCBjbGFzcyBTaW5nbGVTZWxlY3RDZWxsRWRpdG9yQ29tcG9uZW50IGV4dGVuZHMgQWJzdHJhY3RFZGl0Q2VsbEVkaXRvcjxzdHJpbmcsIEFJVGFibGVTaW5nbGVTZWxlY3RGaWVsZD4ge1xuICAgIHNlbGVjdE9wdGlvbnMgPSBjb21wdXRlZCgoKSA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLmZpZWxkKCkub3B0aW9ucztcbiAgICB9KTtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBzdXBlcigpO1xuICAgIH1cblxuICAgIHVwZGF0ZVZhbHVlKHZhbHVlOiBib29sZWFuKSB7XG4gICAgICAgIGlmICghdmFsdWUpIHtcbiAgICAgICAgICAgIHRoaXMudXBkYXRlRmllbGRWYWx1ZSgpO1xuICAgICAgICAgICAgdGhpcy5jbG9zZVBvcG92ZXIoKTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- ;
4
- export class SelectOptionPipe {
5
- transform(id, options) {
6
- return options.find((item) => item.id === id);
7
- }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: SelectOptionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.0.2", ngImport: i0, type: SelectOptionPipe, isStandalone: true, name: "selectOption" }); }
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.2", ngImport: i0, type: SelectOptionPipe, decorators: [{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nM6IEFJVGFibGVTZWxlY3RPcHRpb25bXSkge1xuICAgICAgICByZXR1cm4gb3B0aW9ucy5maW5kKChpdGVtKSA9PiBpdGVtLmlkID09PSBpZCk7XG4gICAgfVxufVxuIl19
package/pipes/grid.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { AITableSelectOption } from '../core';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectOptionPipe implements PipeTransform {
5
- transform(id: string, options: AITableSelectOption[]): AITableSelectOption | undefined;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SelectOptionPipe, "selectOption", true>;
8
- }
9
- //# sourceMappingURL=grid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/pipes/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAO,SAAS,CAAC;;AAE/C,qBAIa,gBAAiB,YAAW,aAAa;IAClD,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE;yCAD3C,gBAAgB;uCAAhB,gBAAgB;CAI5B"}