@colijnit/corecomponents_v12 12.0.21 → 12.0.24
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 +988 -158
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12-12.0.24.tgz +0 -0
- package/colijnit-corecomponents_v12.d.ts +15 -9
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +16 -10
- package/esm2015/lib/components/base/base-input.component.js +43 -10
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +92 -0
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.module.js +19 -0
- package/esm2015/lib/components/button/button.component.js +1 -1
- package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +2 -6
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.component.js +51 -0
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.module.js +17 -0
- package/esm2015/lib/components/drop-down-list/drop-down-list.component.js +4 -1
- package/esm2015/lib/components/form/form.component.js +8 -3
- package/esm2015/lib/components/grid/base/base-grid.component.js +7 -3
- package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +47 -3
- package/esm2015/lib/components/grid/base/base-selection-grid.component.js +12 -2
- package/esm2015/lib/components/grid/co-grid.component.js +35 -32
- package/esm2015/lib/components/grid/co-grid.module.js +4 -2
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +41 -0
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.module.js +23 -0
- package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +4 -1
- package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.js +4 -1
- package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +5 -4
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +4 -1
- package/esm2015/lib/components/input-listbox/input-listbox.component.js +4 -1
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +22 -24
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +4 -1
- package/esm2015/lib/components/input-text/input-text.component.js +11 -13
- package/esm2015/lib/components/input-text/input-text.module.js +4 -2
- package/esm2015/lib/components/input-textarea/input-textarea.component.js +4 -1
- package/esm2015/lib/components/multi-select-list/multi-select-list.component.js +4 -1
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +86 -0
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +163 -0
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +43 -4
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +257 -59
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +11 -2
- package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +2 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +1032 -205
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +5 -2
- package/lib/components/base/commit-buttons/commit-buttons.component.d.ts +19 -0
- package/lib/components/base/commit-buttons/commit-buttons.module.d.ts +2 -0
- package/lib/components/base/commit-buttons/style/_layout.scss +127 -0
- package/lib/components/base/commit-buttons/style/_material-definition.scss +5 -0
- package/lib/components/base/commit-buttons/style/_theme.scss +34 -0
- package/lib/components/base/commit-buttons/style/material.scss +4 -0
- package/lib/components/co-dialog/style/_layout.scss +3 -0
- package/lib/components/co-dialog-wizard/co-dialog-wizard.component.d.ts +9 -0
- package/lib/components/co-dialog-wizard/co-dialog-wizard.module.d.ts +2 -0
- package/lib/components/co-dialog-wizard/style/_layout.scss +51 -0
- package/lib/components/co-dialog-wizard/style/_material-definition.scss +25 -0
- package/lib/components/co-dialog-wizard/style/_theme.scss +16 -0
- package/lib/components/co-dialog-wizard/style/material.scss +5 -0
- package/lib/components/collapsible/style/_layout.scss +1 -1
- package/lib/components/collapsible/style/_material-definition.scss +1 -0
- package/lib/components/form/form.component.d.ts +1 -0
- package/lib/components/grid/base/base-grid.component.d.ts +3 -0
- package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +11 -2
- package/lib/components/grid/base/base-selection-grid.component.d.ts +4 -0
- package/lib/components/grid-toolbar/grid-toolbar.component.d.ts +13 -0
- package/lib/components/grid-toolbar/grid-toolbar.module.d.ts +2 -0
- package/lib/components/grid-toolbar/style/_layout.scss +10 -0
- package/lib/components/grid-toolbar/style/_material-definition.scss +0 -0
- package/lib/components/grid-toolbar/style/_theme.scss +5 -0
- package/lib/components/grid-toolbar/style/material.scss +5 -0
- package/lib/components/input-combo-box/input-combo-box.component.d.ts +0 -1
- package/lib/components/input-number-picker/input-number-picker.component.d.ts +1 -6
- package/lib/components/input-radio-button/style/_material-definition.scss +1 -1
- package/lib/components/input-text/style/_layout.scss +0 -32
- package/lib/components/input-text/style/_material-definition.scss +0 -3
- package/lib/components/input-text/style/_theme.scss +0 -16
- package/lib/components/input-text/style/material.scss +1 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +31 -0
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +28 -0
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +15 -2
- package/lib/components/simple-grid/simple-grid.component.d.ts +39 -22
- package/lib/components/simple-grid/style/_layout.scss +23 -0
- package/lib/components/simple-grid/style/_material-definition.scss +13 -4
- package/lib/components/simple-grid/style/_theme.scss +17 -0
- package/lib/components/simple-grid/style/material.scss +1 -0
- package/lib/style/_input.mixins.scss +1 -1
- package/lib/style/_variables.scss +5 -1
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import { ColumnAlign, SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
|
+
export declare class SimpleGridCellComponent {
|
|
4
|
+
private _changeDetector;
|
|
5
|
+
readonly defaultTextAlign: ColumnAlign;
|
|
6
|
+
set editTemplateContent(template: any);
|
|
7
|
+
set noEditTemplateContent(template: any);
|
|
8
|
+
set noTemplateContent(template: any);
|
|
9
|
+
column: SimpleGridColumnDirective;
|
|
10
|
+
row: {};
|
|
11
|
+
editMode: boolean;
|
|
12
|
+
set fieldEditMode(value: boolean);
|
|
13
|
+
get fieldEditMode(): boolean;
|
|
14
|
+
cellClick: EventEmitter<void>;
|
|
15
|
+
showClass(): boolean;
|
|
16
|
+
handleClick(event: MouseEvent): void;
|
|
17
|
+
private _fieldEditMode;
|
|
18
|
+
private _focused;
|
|
19
|
+
private _editTemplate;
|
|
20
|
+
private _template;
|
|
21
|
+
private _inputTemplate;
|
|
22
|
+
constructor(_changeDetector: ChangeDetectorRef);
|
|
23
|
+
private _setFocusComponent;
|
|
24
|
+
private _getFirstFormInput;
|
|
25
|
+
private _createNewEvent;
|
|
26
|
+
private _getElement;
|
|
27
|
+
private _detectChanges;
|
|
28
|
+
}
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
import { TemplateRef } from "@angular/core";
|
|
1
|
+
import { OnInit, TemplateRef } from "@angular/core";
|
|
2
2
|
export declare enum ColumnAlign {
|
|
3
3
|
Left = "left-align",
|
|
4
4
|
Center = "center-align",
|
|
5
5
|
Right = "right-align"
|
|
6
6
|
}
|
|
7
|
-
export declare class SimpleGridColumnDirective {
|
|
7
|
+
export declare class SimpleGridColumnDirective implements OnInit {
|
|
8
8
|
private static _MinManualResizeWidthPx;
|
|
9
9
|
set template(template: TemplateRef<any>);
|
|
10
10
|
get template(): TemplateRef<any>;
|
|
11
|
+
set editTemplate(template: TemplateRef<any>);
|
|
12
|
+
get editTemplate(): TemplateRef<any>;
|
|
11
13
|
headerText: string;
|
|
12
14
|
field: string;
|
|
15
|
+
codeField: string;
|
|
16
|
+
displayField: string;
|
|
13
17
|
textAlign: ColumnAlign;
|
|
14
18
|
format: string;
|
|
15
19
|
resizable: boolean;
|
|
20
|
+
required: boolean;
|
|
16
21
|
width: number;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
collection: {}[];
|
|
24
|
+
order: number;
|
|
25
|
+
singleColumn: boolean;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
getFieldValue(value: any): string;
|
|
17
28
|
private _template;
|
|
29
|
+
private _editTemplate;
|
|
30
|
+
private _setSingleColumnProps;
|
|
18
31
|
}
|
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { ChangeDetectorRef } from "@angular/core";
|
|
2
|
+
import { FormMasterService } from "../../core/service/form-master.service";
|
|
3
|
+
import { BaseSimpleGridComponent } from "./base-simple-grid.component";
|
|
4
|
+
import { ColumnAlign } from "./simple-grid-column.directive";
|
|
5
|
+
export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
6
|
+
private _changeDetection;
|
|
7
|
+
private _formMaster;
|
|
5
8
|
readonly defaultTextAlign: ColumnAlign;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
showClass(): boolean;
|
|
10
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
11
|
+
editting: boolean;
|
|
12
|
+
editRowIndex: number;
|
|
13
|
+
editCellIndex: number;
|
|
14
|
+
selectedRowIndex: number;
|
|
15
|
+
rowToEdit: any;
|
|
16
|
+
private _doubleClicked;
|
|
17
|
+
private _newRow;
|
|
18
|
+
constructor(_changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
19
|
+
isSingleColumn(column: any): boolean;
|
|
20
|
+
rowContainsSingleColumn(row: any, columns: any): boolean;
|
|
21
|
+
addRow(): void;
|
|
22
|
+
validateAndSave(stopEditting?: boolean): boolean;
|
|
23
|
+
cancelEditRow(): void;
|
|
24
|
+
handleClickRow(event: MouseEvent, index: number): void;
|
|
25
|
+
selectTheRow(index: number, emit?: boolean): void;
|
|
26
|
+
handleDblClickRow(event: MouseEvent, index: number): void;
|
|
27
|
+
editRow(event: MouseEvent): void;
|
|
28
|
+
handleCellClick(index: number): void;
|
|
29
|
+
private _resetDblClick;
|
|
9
30
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
31
|
+
*
|
|
32
|
+
* @param next; Move to next or previous cell
|
|
33
|
+
* @param start; Start from cellindex
|
|
34
|
+
* @private
|
|
12
35
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
handleMouseUp(event: MouseEvent): void;
|
|
21
|
-
columns: SimpleGridColumnDirective[];
|
|
22
|
-
private _columnForResize;
|
|
23
|
-
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
24
|
-
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
25
|
-
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
36
|
+
private _nextAvailableCellToEdit;
|
|
37
|
+
private _getNextEditCellIndex;
|
|
38
|
+
private _getPreviousEditCellIndex;
|
|
39
|
+
private _getNextEditRowIndex;
|
|
40
|
+
private _getPreviousEditRowIndex;
|
|
41
|
+
private _saveRow;
|
|
42
|
+
private _detectChanges;
|
|
26
43
|
}
|
|
@@ -7,9 +7,15 @@
|
|
|
7
7
|
.simple-grid-column-header-wrapper {
|
|
8
8
|
font-family: $cc-simple-grid-header-font-familiy;
|
|
9
9
|
font-size: $cc-simple-grid-header-font-size;
|
|
10
|
+
font-weight: $cc-simple-grid-header-font-weight;
|
|
11
|
+
text-transform: $cc-simple-grid-header-text-transform;
|
|
10
12
|
display: flex;
|
|
11
13
|
flex-direction: row;
|
|
12
14
|
}
|
|
15
|
+
.co-form.simple-grid-row-form {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
13
19
|
.simple-grid-column-header, .simple-grid-column-cell {
|
|
14
20
|
display: flex;
|
|
15
21
|
flex-direction: row;
|
|
@@ -18,10 +24,27 @@
|
|
|
18
24
|
}
|
|
19
25
|
.simple-grid-column-header {
|
|
20
26
|
justify-content: space-between;
|
|
27
|
+
border-style: $cc-simple-grid-header-border-style;
|
|
28
|
+
border-width: $cc-simple-grid-header-border-width;
|
|
21
29
|
}
|
|
22
30
|
.simple-grid-column-cell {
|
|
23
31
|
padding-top: $cc-simple-grid-cell-padding-top;
|
|
24
32
|
padding-bottom: $cc-simple-grid-cell-padding-bottom;
|
|
33
|
+
align-items: $cc-simple-grid-row-align-items;
|
|
34
|
+
}
|
|
35
|
+
.co-simple-grid-cell {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
.simple-grid-column-cell-value {
|
|
39
|
+
//height: 100%;
|
|
40
|
+
width: 100%;
|
|
41
|
+
> * {
|
|
42
|
+
//height: 100%;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.e-float-input.e-no-float-label {
|
|
46
|
+
margin-top: $input-margin-top;
|
|
47
|
+
}
|
|
25
48
|
}
|
|
26
49
|
.simple-grid-column-header-label {
|
|
27
50
|
user-select: none;
|
|
@@ -3,13 +3,22 @@ $cc-simple-grid-font-size: $cc-font-size-default !default;
|
|
|
3
3
|
|
|
4
4
|
$cc-simple-grid-header-font-familiy: $cc-font-family !default;
|
|
5
5
|
$cc-simple-grid-header-font-size: $cc-font-size-default !default;
|
|
6
|
-
$cc-simple-grid-header-
|
|
7
|
-
$cc-simple-grid-header-
|
|
6
|
+
$cc-simple-grid-header-font-weight: bold !default;
|
|
7
|
+
$cc-simple-grid-header-text-transform: uppercase !default;
|
|
8
|
+
$cc-simple-grid-header-background-color: white !default;
|
|
8
9
|
$cc-simple-grid-header-padding: 10px 0 !default;
|
|
10
|
+
$cc-simple-grid-header-border-style: solid !default;
|
|
11
|
+
$cc-simple-grid-header-border-width: 0 0 1px 0 !default;
|
|
12
|
+
$cc-simple-grid-header-border-color: $cc-color-action !default;
|
|
9
13
|
$cc-simple-grid-header-sizer-background-color: white !default;
|
|
10
14
|
|
|
11
|
-
$cc-simple-grid-row-
|
|
12
|
-
$cc-simple-grid-row-
|
|
15
|
+
$cc-simple-grid-row-align-items: center !default;
|
|
16
|
+
$cc-simple-grid-row-background-color: $cc-color-grid-row-background !default;
|
|
17
|
+
$cc-simple-grid-row-odd-background-color: $cc-color-grid-row-odd-background !default;
|
|
18
|
+
$cc-simple-grid-row-selected-background-color: $cc-color-grid-row-selected-background !default;
|
|
19
|
+
$cc-simple-grid-row-edit-input-background-color: white !default;
|
|
20
|
+
$cc-simple-grid-row-hover-background-color: $cc-color-grid-row-hover-background !default;
|
|
21
|
+
$cc-simple-grid-row-border: none !default;
|
|
13
22
|
$cc-simple-grid-row-border-color: $cc-color-border !default;
|
|
14
23
|
$cc-simple-grid-row-border-width: 1px 1px 1px 1px !default;
|
|
15
24
|
$cc-simple-grid-cell-padding-top: 10px !default;
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
.simple-grid-column-sizer {
|
|
4
4
|
background-color: $cc-simple-grid-header-sizer-background-color;
|
|
5
5
|
}
|
|
6
|
+
.simple-grid-column-header {
|
|
7
|
+
border-color: $cc-simple-grid-header-border-color;
|
|
8
|
+
}
|
|
6
9
|
}
|
|
7
10
|
// styling outside of grid because of drag and drop functionality
|
|
8
11
|
.simple-grid-column-header-wrapper {
|
|
@@ -11,5 +14,19 @@
|
|
|
11
14
|
.simple-grid-row {
|
|
12
15
|
background-color: $cc-simple-grid-row-background-color;
|
|
13
16
|
border-color: $cc-simple-grid-row-border-color;
|
|
17
|
+
&.selected {
|
|
18
|
+
background-color: $cc-simple-grid-row-selected-background-color;
|
|
19
|
+
}
|
|
20
|
+
&:hover:not(.selected) {
|
|
21
|
+
background-color: $cc-simple-grid-row-hover-background-color;
|
|
22
|
+
}
|
|
23
|
+
&.editting {
|
|
24
|
+
.form-input {
|
|
25
|
+
background-color: $cc-simple-grid-row-edit-input-background-color;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.simple-grid-row:nth-child(odd):not(.selected) {
|
|
30
|
+
background-color: $cc-simple-grid-row-odd-background-color;
|
|
14
31
|
}
|
|
15
32
|
}
|
|
@@ -26,7 +26,6 @@ $cc-input-width: 300px !default;
|
|
|
26
26
|
$cc-item-size: 50px !default;
|
|
27
27
|
$cc-icon-size: 40px !default;
|
|
28
28
|
$cc-icon-size-small: 30px !default;
|
|
29
|
-
$cc-item-height: 40px !default;
|
|
30
29
|
$cc-default-border-radius: 3px !default;
|
|
31
30
|
|
|
32
31
|
$cc-color-action: #2b60a7 !default;
|
|
@@ -70,6 +69,11 @@ $cc-color-box-shadow: rgba(72,79,96,.25) !default;
|
|
|
70
69
|
$cc-color-scrollbar-thumb: #484f60 !default;
|
|
71
70
|
$cc-color-scrollbar-background: #e8eceb !default;
|
|
72
71
|
|
|
72
|
+
$cc-color-grid-row-background: white !default;
|
|
73
|
+
$cc-color-grid-row-odd-background: #fafafa !default;
|
|
74
|
+
$cc-color-grid-row-hover-background: #efeeee !default;
|
|
75
|
+
$cc-color-grid-row-selected-background: #e5e5e5 !default;
|
|
76
|
+
|
|
73
77
|
$cc-distance-very-small: 2px !default;
|
|
74
78
|
$cc-distance-small: 5px !default;
|
|
75
79
|
$cc-distance-medium: 10px !default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/corecomponents_v12",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.24",
|
|
4
4
|
"description": "Colijn IT core components for Angular 12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
"typings": "colijnit-corecomponents_v12.d.ts",
|
|
37
37
|
"metadata": "colijnit-corecomponents_v12.metadata.json",
|
|
38
38
|
"sideEffects": false
|
|
39
|
-
}
|
|
39
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './lib/components/co-dialog/co-dialog.module';
|
|
|
8
8
|
export * from './lib/components/co-dialog/co-dialog.component';
|
|
9
9
|
export * from './lib/components/co-dialog-prompt/co-dialog-prompt.module';
|
|
10
10
|
export * from './lib/components/co-dialog-prompt/co-dialog-prompt.component';
|
|
11
|
+
export * from './lib/components/co-dialog-wizard/co-dialog-wizard.module';
|
|
12
|
+
export * from './lib/components/co-dialog-wizard/co-dialog-wizard.component';
|
|
11
13
|
export * from './lib/components/co-kanban/co-kanban.module';
|
|
12
14
|
export * from './lib/components/co-kanban/co-kanban.component';
|
|
13
15
|
export * from './lib/components/co-schedule/co-schedule.module';
|