@colijnit/corecomponents_v12 12.2.27 → 12.2.28
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/bundles/colijnit-corecomponents_v12.umd.js +115 -9
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +7 -3
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +3 -1
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +3 -1
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +176 -35
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +6 -2
- package/fesm2015/colijnit-corecomponents_v12.js +186 -37
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-text/input-text.component.d.ts +1 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +1 -0
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +1 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +14 -1
- package/lib/components/simple-grid/style/_layout.scss +68 -0
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
|
|
|
31
31
|
rightIcon: CoreComponentsIcon;
|
|
32
32
|
leftIconData: SafeHtml | undefined;
|
|
33
33
|
rightIconData: SafeHtml | undefined;
|
|
34
|
+
selectOnFocus: boolean;
|
|
34
35
|
noStyle: boolean;
|
|
35
36
|
hideArrowButtons: boolean;
|
|
36
37
|
get isDate(): boolean;
|
|
@@ -34,6 +34,7 @@ export declare abstract class BaseSimpleGridComponent {
|
|
|
34
34
|
handleMouseUp(event: MouseEvent): void;
|
|
35
35
|
columns: SimpleGridColumnDirective[];
|
|
36
36
|
headerColumns: SimpleGridColumnDirective[];
|
|
37
|
+
headerColumnsCopy: SimpleGridColumnDirective[];
|
|
37
38
|
protected _data: Object[];
|
|
38
39
|
protected disabledRows: number[];
|
|
39
40
|
private _columnForResize;
|
|
@@ -2,7 +2,10 @@ import { ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import { FormMasterService } from '../../core/service/form-master.service';
|
|
3
3
|
import { BaseSimpleGridComponent } from './base-simple-grid.component';
|
|
4
4
|
import { ColumnAlign } from './simple-grid-column.directive';
|
|
5
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
6
|
+
import { IconCacheService } from "../icon/icon-cache.service";
|
|
5
7
|
export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
8
|
+
icons: IconCacheService;
|
|
6
9
|
private _changeDetection;
|
|
7
10
|
private _formMaster;
|
|
8
11
|
readonly defaultTextAlign: ColumnAlign;
|
|
@@ -20,14 +23,18 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
20
23
|
showClass(): boolean;
|
|
21
24
|
handleKeyDown(event: KeyboardEvent): void;
|
|
22
25
|
editing: boolean;
|
|
26
|
+
isSettingsMenuOpen: boolean;
|
|
23
27
|
editRowIndex: number;
|
|
24
28
|
editCellIndex: number;
|
|
25
29
|
selectedRowIndex: number;
|
|
26
30
|
rowToEdit: any;
|
|
27
31
|
currentPage: number;
|
|
32
|
+
sortColumnValue: string;
|
|
33
|
+
sortDirection: 'asc' | 'desc';
|
|
34
|
+
readonly Icons: typeof CoreComponentsIcon;
|
|
28
35
|
private _doubleClicked;
|
|
29
36
|
private _newRow;
|
|
30
|
-
constructor(_changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
37
|
+
constructor(icons: IconCacheService, _changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
31
38
|
handleClickOutsideRow(): void;
|
|
32
39
|
getIsRowDisabled(idx: number): boolean;
|
|
33
40
|
isRowDisabled(row: any, index: number): Promise<boolean>;
|
|
@@ -42,6 +49,12 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
42
49
|
handleDblClickRow(event: MouseEvent, index: number, row: any): Promise<void>;
|
|
43
50
|
editRow(event: MouseEvent, selectCell?: boolean): void;
|
|
44
51
|
handleCellClick(event: MouseEvent, row: any, rowIndex: number, cellIndex: number): Promise<void>;
|
|
52
|
+
toggleSettingsMenu(): void;
|
|
53
|
+
toggleColumnMenu(col: any): void;
|
|
54
|
+
hideColumn(col: any): void;
|
|
55
|
+
private _sortData;
|
|
56
|
+
showAllColumns(): void;
|
|
57
|
+
exportToExcel(): void;
|
|
45
58
|
protected prepareDataRow(row: any, index: number): void;
|
|
46
59
|
private _resetDblClick;
|
|
47
60
|
/**
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
text-transform: $cc-simple-grid-header-text-transform;
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: row;
|
|
38
|
+
position: relative;
|
|
39
|
+
|
|
40
|
+
&.selected {
|
|
41
|
+
background-color: $cc-color-light-accent;
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
44
|
.co-form.simple-grid-row-form {
|
|
40
45
|
display: contents;
|
|
@@ -110,6 +115,9 @@
|
|
|
110
115
|
white-space: nowrap;
|
|
111
116
|
border-bottom: 2px solid $cc-color-grid-row-hover-background;
|
|
112
117
|
}
|
|
118
|
+
.simple-grid-column-header-label {
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
113
121
|
.simple-grid-column-sizer {
|
|
114
122
|
cursor: col-resize;
|
|
115
123
|
width: 5px;
|
|
@@ -152,7 +160,23 @@
|
|
|
152
160
|
text-align: left;
|
|
153
161
|
justify-content: flex-start;
|
|
154
162
|
}
|
|
163
|
+
.grid-settings {
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: flex-end;
|
|
166
|
+
position: relative;
|
|
167
|
+
padding-bottom: 4px;
|
|
168
|
+
box-shadow: inset 0 -2px $cc-color-grid-row-hover-background;
|
|
169
|
+
border: none;
|
|
155
170
|
|
|
171
|
+
co-button {
|
|
172
|
+
margin-top: -4px;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
|
|
175
|
+
&.selected {
|
|
176
|
+
filter: brightness(75%);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
156
180
|
.simple-grid-row.cdk-drag-preview {
|
|
157
181
|
box-sizing: border-box;
|
|
158
182
|
border-radius: 4px;
|
|
@@ -181,5 +205,49 @@
|
|
|
181
205
|
margin: $cc-simple-grid-pagination-bar-margin;
|
|
182
206
|
}
|
|
183
207
|
}
|
|
208
|
+
|
|
209
|
+
.settings-menu,
|
|
210
|
+
.column-menu {
|
|
211
|
+
position: absolute;
|
|
212
|
+
top: 42px;
|
|
213
|
+
right: 4px;
|
|
214
|
+
width: 250px;
|
|
215
|
+
padding: 0 8px 8px;
|
|
216
|
+
border-radius: 5px;
|
|
217
|
+
color: $cc-color-font;
|
|
218
|
+
box-shadow: 0 0 8px 0 $cc-color-box-shadow;
|
|
219
|
+
background-color: $cc-color-grey;
|
|
220
|
+
z-index: 1;
|
|
221
|
+
|
|
222
|
+
h3 {
|
|
223
|
+
text-align: left;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
ul {
|
|
227
|
+
list-style-type: none;
|
|
228
|
+
border-top: 1px solid $cc-color-light-accent;
|
|
229
|
+
text-align: left;
|
|
230
|
+
font-size: $cc-font-size-default;
|
|
231
|
+
|
|
232
|
+
li {
|
|
233
|
+
margin-top: 4px;
|
|
234
|
+
padding: 8px;
|
|
235
|
+
border-radius: 5px;
|
|
236
|
+
text-transform: capitalize;
|
|
237
|
+
font-weight: normal;
|
|
238
|
+
background-color: $cc-color-grey;
|
|
239
|
+
cursor: pointer;
|
|
240
|
+
|
|
241
|
+
&:hover {
|
|
242
|
+
filter: brightness(95%);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.column-menu {
|
|
249
|
+
right: auto;
|
|
250
|
+
left: 0;
|
|
251
|
+
}
|
|
184
252
|
}
|
|
185
253
|
|