@colijnit/corecomponents_v12 12.0.27 → 12.0.30
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 +153 -32
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/base/base-input.component.js +2 -2
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +15 -3
- package/esm2015/lib/components/input-search/input-search.component.js +27 -20
- package/esm2015/lib/components/input-search/input-search.module.js +6 -2
- package/esm2015/lib/components/input-text/input-text.component.js +33 -5
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +61 -8
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +7 -3
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +59 -36
- package/fesm2015/colijnit-corecomponents_v12.js +194 -65
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +7 -2
- package/lib/components/input-search/input-search.component.d.ts +7 -8
- package/lib/components/input-search/style/_layout.scss +0 -35
- package/lib/components/input-search/style/_material-definition.scss +0 -6
- package/lib/components/input-search/style/_theme.scss +0 -2
- package/lib/components/input-text/input-text.component.d.ts +8 -1
- package/lib/components/input-text/style/_layout.scss +22 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +12 -1
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +4 -1
- package/lib/components/simple-grid/simple-grid.component.d.ts +2 -1
- package/lib/components/simple-grid/style/_layout.scss +26 -9
- package/lib/components/simple-grid/style/_material-definition.scss +1 -1
- package/lib/style/_variables.scss +2 -2
- package/package.json +1 -1
- package/colijnit-corecomponents_v12-12.0.27.tgz +0 -0
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
1
2
|
import { BaseInputComponent } from "../base/base-input.component";
|
|
2
|
-
|
|
3
|
-
export declare class InputDateRangePickerComponent extends BaseInputComponent<DateRange> {
|
|
3
|
+
export declare class InputDateRangePickerComponent extends BaseInputComponent<Date> {
|
|
4
4
|
dateFormat: string;
|
|
5
5
|
placeholder: string;
|
|
6
|
+
startDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
|
+
startDateChange: EventEmitter<Date>;
|
|
9
|
+
endDateChange: EventEmitter<Date>;
|
|
6
10
|
showClass(): boolean;
|
|
11
|
+
dateRangeChange(): void;
|
|
7
12
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CoreComponentsIcon } from
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
|
|
3
|
+
import { BaseInputComponent } from '../base/base-input.component';
|
|
4
|
+
export declare class InputSearchComponent extends BaseInputComponent<string> implements OnDestroy {
|
|
5
5
|
readonly searchIcon: CoreComponentsIcon;
|
|
6
|
-
|
|
6
|
+
placeholder: string;
|
|
7
|
+
search: EventEmitter<string>;
|
|
7
8
|
showClass(): boolean;
|
|
8
|
-
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
focus(): void;
|
|
9
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
11
10
|
}
|
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
@include export-module('cc-input-search-layout') {
|
|
2
2
|
.co-input-search {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
flex-grow: 0;
|
|
7
|
-
outline: none;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
width: $cc-input-search-width;
|
|
10
|
-
min-height: $cc-input-search-min-height;
|
|
11
|
-
border-radius: 3px;
|
|
12
|
-
|
|
13
|
-
.input {
|
|
14
|
-
min-height: $cc-input-search-min-height;
|
|
15
|
-
width: 100%;
|
|
16
|
-
background: $cc-input-search-color;
|
|
17
|
-
font-family: $cc-input-search-font-family;
|
|
18
|
-
font-size: $cc-input-search-font-size;
|
|
19
|
-
color: $cc-input-search-text-color;
|
|
20
|
-
border: none;
|
|
21
|
-
border-radius: 3px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.input:focus {
|
|
25
|
-
outline: none;
|
|
26
|
-
border: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.input-search-content {
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.search-icon {
|
|
34
|
-
align-self: center;
|
|
35
|
-
padding-right: 5px;
|
|
36
|
-
padding-left: 5px;
|
|
37
|
-
}
|
|
38
3
|
}
|
|
39
4
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
$cc-input-search-font-family: $cc-font-family !default;
|
|
2
|
-
$cc-input-search-font-size: $cc-font-size-default !default;
|
|
3
|
-
$cc-input-search-color: #e0e0e0 !default;
|
|
4
|
-
$cc-input-search-text-color: #252525 !default;
|
|
5
|
-
$cc-input-search-min-height: 35px !default;
|
|
6
|
-
$cc-input-search-width: 320px !default;
|
|
@@ -12,12 +12,19 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
|
|
|
12
12
|
protected formUserChangeListener?: FormInputUserModelChangeListenerService;
|
|
13
13
|
protected ngZoneWrapper?: NgZoneWrapperService;
|
|
14
14
|
elementRef?: ElementRef;
|
|
15
|
-
readonly Icons: typeof CoreComponentsIcon;
|
|
16
15
|
placeholder: string;
|
|
17
16
|
type: string;
|
|
17
|
+
min: number;
|
|
18
|
+
max: number;
|
|
18
19
|
showClearButton: boolean;
|
|
19
20
|
keyDownWhiteList: KeyboardCode[];
|
|
21
|
+
showPlaceholderOnFocus: boolean;
|
|
22
|
+
leftIcon: CoreComponentsIcon;
|
|
23
|
+
set model(value: any);
|
|
24
|
+
get model(): any;
|
|
20
25
|
showClass(): boolean;
|
|
26
|
+
get hasLeftIcon(): boolean;
|
|
21
27
|
hasOwnLabel: boolean;
|
|
28
|
+
hideArrowButtons: boolean;
|
|
22
29
|
constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
|
|
23
30
|
}
|
|
@@ -12,5 +12,27 @@
|
|
|
12
12
|
margin: ($cc-item-size - 8px) / 2 0 0;
|
|
13
13
|
outline: none;
|
|
14
14
|
}
|
|
15
|
+
&.has-left-icon {
|
|
16
|
+
.input-text-left-icon {
|
|
17
|
+
position: absolute;
|
|
18
|
+
height: $cc-item-size;
|
|
19
|
+
width: $cc-item-size;
|
|
20
|
+
}
|
|
21
|
+
input, label {
|
|
22
|
+
margin-left: $cc-item-size;
|
|
23
|
+
width: calc(100% - #{$cc-item-size});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.hideArrows {
|
|
27
|
+
input::-webkit-outer-spin-button,
|
|
28
|
+
input::-webkit-inner-spin-button {
|
|
29
|
+
-webkit-appearance: none;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
input[type=number] {
|
|
33
|
+
-moz-appearance: textfield;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
15
36
|
}
|
|
16
37
|
}
|
|
38
|
+
|
|
@@ -2,9 +2,12 @@ import { EventEmitter, QueryList } from "@angular/core";
|
|
|
2
2
|
import { SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
3
|
import { CdkDrag, CdkDragDrop, CdkDropList } from "@angular/cdk/drag-drop";
|
|
4
4
|
export declare abstract class BaseSimpleGridComponent {
|
|
5
|
+
private readonly MIN_COLUMN_WIDTH;
|
|
5
6
|
set content(columnComponents: QueryList<SimpleGridColumnDirective>);
|
|
6
|
-
data: Object[];
|
|
7
|
+
set data(value: Object[]);
|
|
8
|
+
get data(): Object[];
|
|
7
9
|
dragDropEnabled: boolean;
|
|
10
|
+
resizable: boolean;
|
|
8
11
|
inlineEdit: boolean;
|
|
9
12
|
showToolbar: boolean;
|
|
10
13
|
/**
|
|
@@ -23,9 +26,17 @@ export declare abstract class BaseSimpleGridComponent {
|
|
|
23
26
|
handleMouseMove(event: MouseEvent): void;
|
|
24
27
|
handleMouseUp(event: MouseEvent): void;
|
|
25
28
|
columns: SimpleGridColumnDirective[];
|
|
29
|
+
headerColumns: SimpleGridColumnDirective[];
|
|
30
|
+
protected _data: Object[];
|
|
26
31
|
private _columnForResize;
|
|
32
|
+
private _prepared;
|
|
33
|
+
private _startMousePositionX;
|
|
27
34
|
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
28
35
|
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
29
36
|
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
37
|
+
isSingleColumnRow(row: Object): boolean;
|
|
38
|
+
singleColumnIndex(row: Object): number;
|
|
30
39
|
private _setColumns;
|
|
40
|
+
private _prepareData;
|
|
41
|
+
private _setWidthOfAllColumns;
|
|
31
42
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OnInit, TemplateRef } from
|
|
1
|
+
import { ElementRef, 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
7
|
export declare class SimpleGridColumnDirective implements OnInit {
|
|
8
|
+
elementRef: ElementRef;
|
|
8
9
|
private static _MinManualResizeWidthPx;
|
|
9
10
|
set template(template: TemplateRef<any>);
|
|
10
11
|
get template(): TemplateRef<any>;
|
|
@@ -23,6 +24,8 @@ export declare class SimpleGridColumnDirective implements OnInit {
|
|
|
23
24
|
collection: {}[];
|
|
24
25
|
order: number;
|
|
25
26
|
singleColumn: boolean;
|
|
27
|
+
originalWidth: number;
|
|
28
|
+
constructor(elementRef: ElementRef);
|
|
26
29
|
ngOnInit(): void;
|
|
27
30
|
getFieldValue(value: any): string;
|
|
28
31
|
private _template;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from
|
|
1
|
+
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";
|
|
@@ -6,6 +6,7 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
6
6
|
private _changeDetection;
|
|
7
7
|
private _formMaster;
|
|
8
8
|
readonly defaultTextAlign: ColumnAlign;
|
|
9
|
+
set headerCells(cells: any);
|
|
9
10
|
showClass(): boolean;
|
|
10
11
|
handleKeyDown(event: KeyboardEvent): void;
|
|
11
12
|
editting: boolean;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
@include export-module('cc-simple-grid-layout') {
|
|
2
2
|
.co-simple-grid {
|
|
3
|
+
display: block;
|
|
3
4
|
font-family: $cc-simple-grid-font-familiy;
|
|
4
5
|
font-size: $cc-simple-grid-font-size;
|
|
5
6
|
}
|
|
7
|
+
.simple-grid-table {
|
|
8
|
+
table-layout: fixed;
|
|
9
|
+
width: 100%;
|
|
10
|
+
border-collapse: collapse;
|
|
11
|
+
}
|
|
6
12
|
// styling outside of grid because of drag and drop functionality
|
|
7
13
|
.simple-grid-column-header-wrapper {
|
|
8
14
|
font-family: $cc-simple-grid-header-font-familiy;
|
|
@@ -13,20 +19,23 @@
|
|
|
13
19
|
flex-direction: row;
|
|
14
20
|
}
|
|
15
21
|
.co-form.simple-grid-row-form {
|
|
16
|
-
display:
|
|
22
|
+
display: contents;
|
|
17
23
|
width: 100%;
|
|
18
24
|
}
|
|
19
25
|
.simple-grid-column-header, .simple-grid-column-cell {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
padding-right: 5px;
|
|
23
|
-
flex-basis: 100%;
|
|
26
|
+
//display: flex;
|
|
27
|
+
//flex-direction: row;
|
|
28
|
+
//padding-right: 5px;
|
|
29
|
+
//flex-basis: 100%;
|
|
24
30
|
}
|
|
25
31
|
.simple-grid-column-header {
|
|
26
32
|
justify-content: space-between;
|
|
27
33
|
border-style: $cc-simple-grid-header-border-style;
|
|
28
34
|
border-width: $cc-simple-grid-header-border-width;
|
|
29
35
|
}
|
|
36
|
+
.simple-grid-single-column-cell {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
30
39
|
.simple-grid-column-cell {
|
|
31
40
|
padding-top: $cc-simple-grid-cell-padding-top;
|
|
32
41
|
padding-bottom: $cc-simple-grid-cell-padding-bottom;
|
|
@@ -50,21 +59,22 @@
|
|
|
50
59
|
user-select: none;
|
|
51
60
|
padding: $cc-simple-grid-header-padding;
|
|
52
61
|
width: 100%;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
53
65
|
}
|
|
54
66
|
.simple-grid-column-sizer {
|
|
55
67
|
cursor: col-resize;
|
|
56
68
|
width: 5px;
|
|
57
|
-
height: 100%;
|
|
58
69
|
}
|
|
59
70
|
.simple-grid-column-sizer-placeholder {
|
|
60
71
|
width: 5px;
|
|
61
|
-
height: 100%;
|
|
62
72
|
}
|
|
63
73
|
.simple-grid-row {
|
|
64
74
|
font-family: $cc-simple-grid-font-familiy;
|
|
65
75
|
font-size: $cc-simple-grid-font-size;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: row;
|
|
76
|
+
//display: flex;
|
|
77
|
+
//flex-direction: row;
|
|
68
78
|
border: $cc-simple-grid-row-border;
|
|
69
79
|
border-width: $cc-simple-grid-row-border-width;
|
|
70
80
|
}
|
|
@@ -84,6 +94,13 @@
|
|
|
84
94
|
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
85
95
|
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
86
96
|
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
97
|
+
display: table;
|
|
98
|
+
td {
|
|
99
|
+
flex-grow: 2;
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
padding: 4px;
|
|
102
|
+
vertical-align: middle;
|
|
103
|
+
}
|
|
87
104
|
}
|
|
88
105
|
|
|
89
106
|
.simple-grid-row.cdk-drag-placeholder {
|
|
@@ -6,7 +6,7 @@ $cc-simple-grid-header-font-size: $cc-font-size-default !default;
|
|
|
6
6
|
$cc-simple-grid-header-font-weight: bold !default;
|
|
7
7
|
$cc-simple-grid-header-text-transform: uppercase !default;
|
|
8
8
|
$cc-simple-grid-header-background-color: white !default;
|
|
9
|
-
$cc-simple-grid-header-padding: 10px
|
|
9
|
+
$cc-simple-grid-header-padding: 10px 5px !default;
|
|
10
10
|
$cc-simple-grid-header-border-style: solid !default;
|
|
11
11
|
$cc-simple-grid-header-border-width: 0 0 1px 0 !default;
|
|
12
12
|
$cc-simple-grid-header-border-color: $cc-color-action !default;
|
|
@@ -88,8 +88,8 @@ $cc-action-size: 40px !default;
|
|
|
88
88
|
|
|
89
89
|
$cc-font-size-input-label: 13px !default;
|
|
90
90
|
$cc-font-size-small: 13px !default;
|
|
91
|
-
$cc-font-size-default:
|
|
92
|
-
$cc-font-size-medium:
|
|
91
|
+
$cc-font-size-default: 12px !default;
|
|
92
|
+
$cc-font-size-medium: 10px !default;
|
|
93
93
|
|
|
94
94
|
$cc-input-margin-top: 16px !default;
|
|
95
95
|
|
package/package.json
CHANGED
|
Binary file
|