@ai-table/grid 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/components/cell-editors/abstract-cell-editor.component.d.ts +2 -2
- package/components/cell-editors/abstract-cell-editor.component.d.ts.map +1 -1
- package/components/cell-editors/select/select-editor.component.d.ts +15 -0
- package/components/cell-editors/select/select-editor.component.d.ts.map +1 -0
- package/components/field-menu/field-menu.component.d.ts +14 -0
- package/components/field-menu/field-menu.component.d.ts.map +1 -0
- package/components/field-property-editor/field-property-editor.component.d.ts +13 -15
- package/components/field-property-editor/field-property-editor.component.d.ts.map +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.d.ts.map +1 -0
- package/constants/editor.d.ts +1 -1
- package/constants/editor.d.ts.map +1 -1
- package/constants/field.d.ts +20 -0
- package/constants/field.d.ts.map +1 -0
- package/constants/grid.d.ts.map +1 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.d.ts.map +1 -1
- package/core/action/field.d.ts +8 -2
- package/core/action/field.d.ts.map +1 -1
- package/core/action/general.d.ts.map +1 -1
- package/core/action/index.d.ts +5 -0
- package/core/action/index.d.ts.map +1 -1
- package/core/action/record.d.ts +7 -3
- package/core/action/record.d.ts.map +1 -1
- package/core/constants/field.d.ts +6 -8
- package/core/constants/field.d.ts.map +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.d.ts.map +1 -1
- package/core/types/action.d.ts +38 -8
- package/core/types/action.d.ts.map +1 -1
- package/core/types/core.d.ts +36 -10
- package/core/types/core.d.ts.map +1 -1
- package/core/utils/common.d.ts +2 -1
- package/core/utils/common.d.ts.map +1 -1
- package/core/utils/field.d.ts +7 -1
- package/core/utils/field.d.ts.map +1 -1
- package/core/utils/queries.d.ts +4 -2
- package/core/utils/queries.d.ts.map +1 -1
- package/esm2022/components/cell-editors/abstract-cell-editor.component.mjs +11 -9
- package/esm2022/components/cell-editors/select/select-editor.component.mjs +46 -0
- package/esm2022/components/field-menu/field-menu.component.mjs +37 -0
- package/esm2022/components/field-property-editor/field-property-editor.component.mjs +35 -24
- package/esm2022/components/index.mjs +2 -0
- package/esm2022/constants/editor.mjs +8 -8
- package/esm2022/constants/field.mjs +27 -0
- package/esm2022/constants/grid.mjs +5 -5
- package/esm2022/constants/index.mjs +2 -1
- package/esm2022/core/action/field.mjs +43 -2
- package/esm2022/core/action/general.mjs +68 -14
- package/esm2022/core/action/record.mjs +22 -5
- package/esm2022/core/constants/field.mjs +22 -16
- package/esm2022/core/index.mjs +2 -1
- package/esm2022/core/types/action.mjs +6 -1
- package/esm2022/core/types/core.mjs +11 -14
- package/esm2022/core/types/index.mjs +1 -1
- package/esm2022/core/utils/common.mjs +10 -1
- package/esm2022/core/utils/field.mjs +12 -1
- package/esm2022/core/utils/queries.mjs +36 -6
- package/esm2022/core/utils/record.mjs +3 -3
- package/esm2022/grid.component.mjs +72 -32
- package/esm2022/pipes/grid.mjs +1 -2
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/services/event.service.mjs +13 -6
- package/esm2022/services/field.service.mjs +32 -0
- package/esm2022/services/selection.servive.mjs +64 -0
- package/esm2022/types/field.mjs +2 -0
- package/esm2022/types/grid.mjs +1 -1
- package/esm2022/types/index.mjs +2 -1
- package/esm2022/utils/build.mjs +13 -5
- package/fesm2022/ai-table-grid.mjs +655 -283
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/grid.component.d.ts +22 -11
- package/grid.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/pipes/grid.d.ts.map +1 -1
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -1
- package/services/event.service.d.ts +2 -0
- package/services/event.service.d.ts.map +1 -1
- package/services/field.service.d.ts +16 -0
- package/services/field.service.d.ts.map +1 -0
- package/services/selection.servive.d.ts +16 -0
- package/services/selection.servive.d.ts.map +1 -0
- package/styles/styles.scss +70 -3
- package/types/field.d.ts +11 -0
- package/types/field.d.ts.map +1 -0
- package/types/grid.d.ts +13 -3
- package/types/grid.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/utils/build.d.ts +2 -2
- package/utils/build.d.ts.map +1 -1
- package/components/cell-editors/single-select/single-select-editor.component.d.ts +0 -14
- package/components/cell-editors/single-select/single-select-editor.component.d.ts.map +0 -1
- package/esm2022/components/cell-editors/single-select/single-select-editor.component.mjs +0 -44
@@ -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.servive.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"selection.servive.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/services/selection.servive.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;CA+DvC"}
|
package/styles/styles.scss
CHANGED
@@ -9,6 +9,12 @@
|
|
9
9
|
|
10
10
|
.grid-header {
|
11
11
|
border-top: 1px solid variables.$gray-200;
|
12
|
+
|
13
|
+
.grid-field:not(.highlight) {
|
14
|
+
&:hover {
|
15
|
+
background-color: variables.$gray-80;
|
16
|
+
}
|
17
|
+
}
|
12
18
|
}
|
13
19
|
|
14
20
|
.grid-body {
|
@@ -22,18 +28,64 @@
|
|
22
28
|
.grid-row {
|
23
29
|
&:hover {
|
24
30
|
background-color: variables.$gray-80;
|
31
|
+
.unchecked-box {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
.grid-row-number {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
&.highlight {
|
39
|
+
background: variables.$secondary-item-active;
|
25
40
|
}
|
26
41
|
}
|
27
42
|
|
28
43
|
.grid-cell {
|
29
|
-
height: 44px;
|
44
|
+
min-height: 44px;
|
45
|
+
max-height: 148px;
|
30
46
|
display: flex;
|
31
47
|
align-items: center;
|
32
48
|
width: 300px;
|
33
49
|
border-left: 1px solid variables.$gray-200;
|
34
|
-
|
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 {
|
@@ -82,7 +149,7 @@
|
|
82
149
|
}
|
83
150
|
|
84
151
|
.thy-icon-plus {
|
85
|
-
font-size:
|
152
|
+
font-size: 16px;
|
86
153
|
color: variables.$gray-600;
|
87
154
|
}
|
88
155
|
}
|
package/types/field.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ElementRef, Signal } from '@angular/core';
|
2
|
+
import { AITable, AITableField } from '../core';
|
3
|
+
export interface AITableFieldMenuItem {
|
4
|
+
id: string;
|
5
|
+
name?: string;
|
6
|
+
icon?: string;
|
7
|
+
exec?: (aiTable: AITable, field: Signal<AITableField>, origin?: HTMLElement | ElementRef<any>) => void;
|
8
|
+
hidden?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
|
9
|
+
disabled?: (aiTable: AITable, field: Signal<AITableField>) => boolean;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=field.d.ts.map
|
@@ -0,0 +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,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACjC,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,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,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { AITableField, AITableFieldType, AITableRecord } from '../core';
|
2
|
+
import { AITableFieldMenuItem } from './field';
|
2
3
|
export declare enum AITableRowHeight {
|
3
4
|
Short = 1,
|
4
5
|
Medium = 2,
|
@@ -6,12 +7,21 @@ export declare enum AITableRowHeight {
|
|
6
7
|
ExtraTall = 4
|
7
8
|
}
|
8
9
|
export interface AITableGridCellRenderSchema {
|
9
|
-
|
10
|
+
editor: any;
|
10
11
|
}
|
11
12
|
export interface AITableGridData {
|
12
13
|
type: 'grid';
|
13
14
|
fields: AITableField[];
|
14
15
|
records: AITableRecord[];
|
15
16
|
}
|
16
|
-
export
|
17
|
+
export interface AITableSelection {
|
18
|
+
selectedRecords: Map<string, boolean>;
|
19
|
+
selectedFields: Map<string, boolean>;
|
20
|
+
selectedCells: Map<string, {}>;
|
21
|
+
}
|
22
|
+
export interface AIFieldConfig {
|
23
|
+
fieldRenderers?: Partial<Record<AITableFieldType, AITableGridCellRenderSchema>>;
|
24
|
+
fieldPropertyEditor?: any;
|
25
|
+
fieldMenus?: AITableFieldMenuItem[];
|
26
|
+
}
|
17
27
|
//# sourceMappingURL=grid.d.ts.map
|
package/types/grid.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/grid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,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,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"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
package/utils/build.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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, AITableSelection } from '../types';
|
3
|
+
export declare const buildGridData: (recordValue: AITableRecords, fieldsValue: AITableFields, selection: AITableSelection) => AITableGridData;
|
4
4
|
//# sourceMappingURL=build.d.ts.map
|
package/utils/build.d.ts.map
CHANGED
@@ -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,
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../packages/grid/src/utils/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAa,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,eAAO,MAAM,aAAa,uEAAwE,gBAAgB,KAAG,eAcpH,CAAC"}
|
@@ -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: () => [] });
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC1lZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZ3JpZC9zcmMvY29tcG9uZW50cy9jZWxsLWVkaXRvcnMvc2luZ2xlLXNlbGVjdC9zaW5nbGUtc2VsZWN0LWV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