@colijnit/corecomponents_v12 12.0.21 → 12.0.22
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 +724 -53
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +13 -9
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +14 -10
- package/esm2015/lib/components/base/base-input.component.js +4 -2
- 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 +48 -3
- package/esm2015/lib/components/grid/base/base-selection-grid.component.js +12 -2
- package/esm2015/lib/components/grid/co-grid.component.js +36 -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 +4 -1
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +4 -1
- package/esm2015/lib/components/input-text/input-text.component.js +4 -1
- 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 +78 -0
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +162 -0
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +29 -4
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +252 -59
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +11 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +744 -74
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +1 -1
- 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-radio-button/style/_material-definition.scss +1 -1
- package/lib/components/input-text/style/_layout.scss +10 -3
- package/lib/components/input-text/style/_material-definition.scss +1 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +29 -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 +9 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +37 -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 +1 -1
- package/public-api.d.ts +2 -0
|
@@ -130,7 +130,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
130
130
|
*/
|
|
131
131
|
setModel(value: any): void;
|
|
132
132
|
requestFocus(): void;
|
|
133
|
-
doFocus(event
|
|
133
|
+
doFocus(event?: any): any;
|
|
134
134
|
doBlur(event?: any): any;
|
|
135
135
|
detectChanges(): void;
|
|
136
136
|
markForCheck(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
3
|
+
export declare class CoDialogWizardComponent {
|
|
4
|
+
readonly icons: typeof CoreComponentsIcon;
|
|
5
|
+
showCloseIcon: boolean;
|
|
6
|
+
animation: boolean;
|
|
7
|
+
readonly closeClick: EventEmitter<MouseEvent>;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@include export-module('co-dialog-wizard-layout') {
|
|
2
|
+
.co-dialog-wizard {
|
|
3
|
+
font-family: $cc-co-dialog-wizard-font-family;
|
|
4
|
+
font-size: $cc-co-dialog-wizard-font-size;
|
|
5
|
+
.co-dialog-wizard-overlay {
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
z-index: 800;
|
|
12
|
+
}
|
|
13
|
+
.co-dialog-wizard-wrapper {
|
|
14
|
+
position: fixed;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
min-width: $cc-co-dialog-wizard-min-width;
|
|
19
|
+
max-width: 100vw;
|
|
20
|
+
z-index: 801;
|
|
21
|
+
height: auto;
|
|
22
|
+
width: auto;
|
|
23
|
+
border-radius: $cc-co-dialog-wizard-border-radius;
|
|
24
|
+
}
|
|
25
|
+
.dialog-header {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
font-family: $cc-co-dialog-wizard-header-font-family;
|
|
31
|
+
font-size: $cc-co-dialog-wizard-header-font-size;
|
|
32
|
+
padding: $cc-co-dialog-wizard-header-padding;
|
|
33
|
+
border-radius: $cc-co-dialog-wizard-header-border-radius;
|
|
34
|
+
margin: $cc-co-dialog-wizard-header-margin;
|
|
35
|
+
}
|
|
36
|
+
.dialog-content {
|
|
37
|
+
font-family: $cc-co-dialog-wizard-content-font-family;
|
|
38
|
+
font-size: $cc-co-dialog-wizard-content-font-size;
|
|
39
|
+
padding: $cc-co-dialog-wizard-content-padding;
|
|
40
|
+
border-radius: $cc-co-dialog-wizard-content-border-radius;
|
|
41
|
+
}
|
|
42
|
+
.dialog-close-button {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
.co-dialog-wizard-divider {
|
|
46
|
+
margin: $cc-co-dialog-wizard-header-divider-margin;
|
|
47
|
+
border: none;
|
|
48
|
+
border-top: $cc-co-dialog-wizard-header-divider-border-top;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
$cc-co-dialog-wizard-font-family: $cc-font-family !default;
|
|
2
|
+
$cc-co-dialog-wizard-font-size: $cc-font-size-default !default;
|
|
3
|
+
$cc-co-dialog-wizard-header-font-family: $cc-font-family !default;
|
|
4
|
+
$cc-co-dialog-wizard-header-font-size: $cc-font-size-default !default;
|
|
5
|
+
$cc-co-dialog-wizard-header-text-color: $cc-color-dark !default;
|
|
6
|
+
$cc-co-dialog-wizard-header-background-color: $cc-color-light-accent !default;
|
|
7
|
+
$cc-co-dialog-wizard-header-padding: 10px !default;
|
|
8
|
+
$cc-co-dialog-wizard-header-divider-margin: 0 10px 0 10px !default;
|
|
9
|
+
$cc-co-dialog-wizard-header-divider-border-top: 1px solid $cc-color-light-accent !default;
|
|
10
|
+
$cc-co-dialog-wizard-header-border-radius: 20px 20px 0 0 !default;
|
|
11
|
+
$cc-co-dialog-wizard-header-margin: 0 0 0 10px !default;
|
|
12
|
+
$cc-co-dialog-wizard-min-width: 250px !default;
|
|
13
|
+
$cc-co-dialog-wizard-border-radius: 20px !default;
|
|
14
|
+
$cc-co-dialog-wizard-background-color: $cc-color-light !default;
|
|
15
|
+
$cc-co-dialog-wizard-box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.5) !default;
|
|
16
|
+
$cc-co-dialog-wizard-overlay-background-color: rgba(0, 0, 0, 0.3) !default;
|
|
17
|
+
$cc-co-dialog-wizard-overlay-backdrop-filter: blur(2px) !default;
|
|
18
|
+
$cc-co-dialog-wizard-content-padding: 10px !default;
|
|
19
|
+
$cc-co-dialog-wizard-content-border-radius: 20px !default;
|
|
20
|
+
$cc-co-dialog-wizard-content-font-family: $cc-font-family !default;
|
|
21
|
+
$cc-co-dialog-wizard-content-font-size: $cc-font-size-default !default;
|
|
22
|
+
$cc-co-dialog-wizard-content-text-color: $cc-color-dark !default;
|
|
23
|
+
$cc-co-dialog-wizard-content-background-color: $cc-color-light !default;
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@include export-module('co-dialog-wizard-theme') {
|
|
2
|
+
.co-dialog-wizard {
|
|
3
|
+
.co-dialog-wizard-overlay {
|
|
4
|
+
background-color: $cc-co-dialog-wizard-overlay-background-color;
|
|
5
|
+
backdrop-filter: $cc-co-dialog-wizard-overlay-backdrop-filter;
|
|
6
|
+
}
|
|
7
|
+
.co-dialog-wizard-wrapper {
|
|
8
|
+
background-color: $cc-co-dialog-wizard-background-color;
|
|
9
|
+
box-shadow: $cc-co-dialog-wizard-box-shadow;
|
|
10
|
+
}
|
|
11
|
+
.dialog-content {
|
|
12
|
+
color: $cc-co-dialog-wizard-content-text-color;
|
|
13
|
+
background-color: $cc-co-dialog-wizard-content-background-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -6,4 +6,5 @@ $cc-collapsible-height: 40px !default;
|
|
|
6
6
|
$cc-collapsible-icon-size: 20px !default;
|
|
7
7
|
$cc-collapsible-border-bottom: 1px solid gray !default;
|
|
8
8
|
$cc-collapsible-icon-margin-right: 15px !default;
|
|
9
|
+
$cc-collapsible-title-font-weight: bold !default;
|
|
9
10
|
$cc-collapsible-content-padding: 10px 0px 0px 10px !default;
|
|
@@ -9,6 +9,7 @@ export declare class FormComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
|
9
9
|
get readonly(): boolean;
|
|
10
10
|
keepInView: Element;
|
|
11
11
|
onChange: EventEmitter<FormControl>;
|
|
12
|
+
showClass: boolean;
|
|
12
13
|
submitted: boolean;
|
|
13
14
|
readonly validSubmit: EventEmitter<void>;
|
|
14
15
|
readonly anySubmit: EventEmitter<void>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
1
2
|
import { ContextMenuItemModel, GridComponent, PageSettingsModel, RowDropSettingsModel } from "@syncfusion/ej2-angular-grids";
|
|
2
3
|
import { GridLines } from "../enum/grid-lines.enum";
|
|
3
4
|
export declare class BaseGridComponent<T> {
|
|
5
|
+
element: ElementRef;
|
|
4
6
|
grid: GridComponent;
|
|
5
7
|
data: T[];
|
|
6
8
|
gridLines: GridLines;
|
|
@@ -21,4 +23,5 @@ export declare class BaseGridComponent<T> {
|
|
|
21
23
|
get columns(): {}[];
|
|
22
24
|
pageSettings: PageSettingsModel;
|
|
23
25
|
private _columns;
|
|
26
|
+
constructor(element: ElementRef);
|
|
24
27
|
}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
2
|
import { EditSettingsModel } from "@syncfusion/ej2-angular-grids";
|
|
3
3
|
import { BaseToolbarGridComponent } from "./base-toolbar-grid.component";
|
|
4
|
-
|
|
4
|
+
import { Observable, Subscription } from "rxjs";
|
|
5
|
+
export declare class BaseInlineEditGridComponent<T> extends BaseToolbarGridComponent<T> implements AfterViewInit, OnDestroy {
|
|
5
6
|
set inlineEdit(value: boolean);
|
|
6
7
|
rowSaved: EventEmitter<T>;
|
|
8
|
+
beforeRowDelete: EventEmitter<any>;
|
|
9
|
+
rowDeleted: EventEmitter<T>;
|
|
7
10
|
editSettings: EditSettingsModel;
|
|
11
|
+
actionBeginObservable$: Observable<any>;
|
|
12
|
+
actionBeginObservableSub: Subscription;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
handleActionBegin(action: any): Promise<void>;
|
|
8
16
|
handleActionComplete(action: any): void;
|
|
17
|
+
waitForBeforeDelete(action: any): Promise<any>;
|
|
9
18
|
}
|
|
@@ -15,6 +15,8 @@ export declare class BaseSelectionGridComponent<T> extends BaseInlineEditGridCom
|
|
|
15
15
|
contextMenuItemClick: EventEmitter<GridMenuEventArgs>;
|
|
16
16
|
rowDragStartEvent: EventEmitter<GridRowDragEventArgs>;
|
|
17
17
|
rowDropEvent: EventEmitter<GridRowDropEventArgs>;
|
|
18
|
+
beforeRowsDelete: EventEmitter<any>;
|
|
19
|
+
rowsDeleted: EventEmitter<T[]>;
|
|
18
20
|
selectionOptions: SelectionSettingsModel;
|
|
19
21
|
ngOnInit(): void;
|
|
20
22
|
handleRowSelected(rowData: any): void;
|
|
@@ -24,4 +26,6 @@ export declare class BaseSelectionGridComponent<T> extends BaseInlineEditGridCom
|
|
|
24
26
|
contextMenuClick(args: MenuEventArgs): void;
|
|
25
27
|
rowDragStartClick(args: RowDragEventArgs): void;
|
|
26
28
|
rowDropClick(args: RowDropEventArgs): void;
|
|
29
|
+
handleBeforeBatchDelete(args: any): void;
|
|
30
|
+
handleBatchDelete(rows: T[]): void;
|
|
27
31
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
3
|
+
import { IconCacheService } from "../icon/icon-cache.service";
|
|
4
|
+
export declare class GridToolbarComponent {
|
|
5
|
+
iconsService: IconCacheService;
|
|
6
|
+
readonly icons: typeof CoreComponentsIcon;
|
|
7
|
+
editClick: EventEmitter<MouseEvent>;
|
|
8
|
+
cancelClick: EventEmitter<void>;
|
|
9
|
+
saveClick: EventEmitter<void>;
|
|
10
|
+
addClick: EventEmitter<void>;
|
|
11
|
+
showClass(): boolean;
|
|
12
|
+
constructor(iconsService: IconCacheService);
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -18,7 +18,6 @@ export declare class InputComboBoxComponent extends BaseInputComponent<any> {
|
|
|
18
18
|
placeholder: string;
|
|
19
19
|
shopPopup: boolean;
|
|
20
20
|
showClass(): boolean;
|
|
21
|
-
customHeight: boolean;
|
|
22
21
|
constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
|
|
23
22
|
onFocus(): void;
|
|
24
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$cc-rb-font-family: $cc-font-family !default;
|
|
2
|
-
$cc-rb-height: $cc-item-
|
|
2
|
+
$cc-rb-height: $cc-item-size !default;
|
|
3
3
|
$cc-rb-border-radius: $cc-default-border-radius !default;
|
|
4
4
|
$cc-rb-padding: 10px 20px !default;
|
|
5
5
|
$cc-rb-border-color: $cc-color-border !default;
|
|
@@ -14,12 +14,19 @@
|
|
|
14
14
|
}
|
|
15
15
|
.input-save-cancel-button-wrapper {
|
|
16
16
|
position: absolute;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
@if ($cc-co-input-text-button-position == 'top') {
|
|
18
|
+
top: -36px;
|
|
19
|
+
transform-origin: center bottom;
|
|
20
|
+
padding: 5px 0 0 5px;
|
|
21
|
+
} @else {
|
|
22
|
+
top: $cc-item-size;
|
|
23
|
+
transform-origin: center top;
|
|
24
|
+
padding: 0 5px 5px 0;
|
|
25
|
+
}
|
|
19
26
|
right: 0;
|
|
20
27
|
display: flex;
|
|
21
28
|
column-gap: 2px;
|
|
22
|
-
|
|
29
|
+
z-index: 10;
|
|
23
30
|
.input-save-cancel-button {
|
|
24
31
|
display: flex;
|
|
25
32
|
align-items: center;
|
|
@@ -3,5 +3,6 @@ $cc-co-input-text-font-size: $cc-font-size-default !default;
|
|
|
3
3
|
$cc-co-input-text-font-color: $cc-color-dark !default;
|
|
4
4
|
$cc-co-input-text-border-color: $cc-color-border !default;
|
|
5
5
|
$cc-co-input-text-button-background: $cc-color-form-input-border !default;
|
|
6
|
+
$cc-co-input-text-button-position: 'bottom' !default;
|
|
6
7
|
$cc-co-input-text-commit-color: green !default;
|
|
7
8
|
$cc-co-input-text-cancel-color: red !default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from "@angular/core";
|
|
2
|
+
import { SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
|
+
import { CdkDrag, CdkDragDrop, CdkDropList } from "@angular/cdk/drag-drop";
|
|
4
|
+
export declare abstract class BaseSimpleGridComponent {
|
|
5
|
+
set content(columnComponents: QueryList<SimpleGridColumnDirective>);
|
|
6
|
+
data: Object[];
|
|
7
|
+
dragDropEnabled: boolean;
|
|
8
|
+
inlineEdit: boolean;
|
|
9
|
+
showToolbar: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Should component emit drag and drop actions instead of handle
|
|
12
|
+
* (update collection) by itself
|
|
13
|
+
*/
|
|
14
|
+
emitDragDrop: boolean;
|
|
15
|
+
onDrop: EventEmitter<{
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
}>;
|
|
19
|
+
selectRow: EventEmitter<{}>;
|
|
20
|
+
dblClickRow: EventEmitter<{}>;
|
|
21
|
+
saveRow: EventEmitter<{}>;
|
|
22
|
+
handleMouseMove(event: MouseEvent): void;
|
|
23
|
+
handleMouseUp(event: MouseEvent): void;
|
|
24
|
+
columns: SimpleGridColumnDirective[];
|
|
25
|
+
private _columnForResize;
|
|
26
|
+
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
27
|
+
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
28
|
+
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
29
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -8,11 +8,20 @@ export declare class SimpleGridColumnDirective {
|
|
|
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
|
+
getFieldValue(value: any): string;
|
|
17
25
|
private _template;
|
|
26
|
+
private _editTemplate;
|
|
18
27
|
}
|
|
@@ -1,26 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { ChangeDetectorRef } from "@angular/core";
|
|
2
|
+
import { ColumnAlign } from "./simple-grid-column.directive";
|
|
3
|
+
import { BaseSimpleGridComponent } from "./base-simple-grid.component";
|
|
4
|
+
import { FormMasterService } from "../../core/service/form-master.service";
|
|
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
|
+
addRow(): void;
|
|
20
|
+
validateAndSave(stopEditting?: boolean): boolean;
|
|
21
|
+
cancelEditRow(): void;
|
|
22
|
+
handleClickRow(event: MouseEvent, index: number): void;
|
|
23
|
+
selectTheRow(index: number, emit?: boolean): void;
|
|
24
|
+
handleDblClickRow(event: MouseEvent, index: number): void;
|
|
25
|
+
editRow(event: MouseEvent): void;
|
|
26
|
+
handleCellClick(index: number): void;
|
|
27
|
+
private _resetDblClick;
|
|
9
28
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
29
|
+
*
|
|
30
|
+
* @param next; Move to next or previous cell
|
|
31
|
+
* @param start; Start from cellindex
|
|
32
|
+
* @private
|
|
12
33
|
*/
|
|
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;
|
|
34
|
+
private _nextAvailableCellToEdit;
|
|
35
|
+
private _getNextEditCellIndex;
|
|
36
|
+
private _getPreviousEditCellIndex;
|
|
37
|
+
private _getNextEditRowIndex;
|
|
38
|
+
private _getPreviousEditRowIndex;
|
|
39
|
+
private _saveRow;
|
|
40
|
+
private _detectChanges;
|
|
26
41
|
}
|
|
@@ -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
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';
|