@colijnit/corecomponents_v12 12.0.22 → 12.0.25
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 +2974 -2688
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +10 -10
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +11 -11
- package/esm2015/lib/components/base/base-input.component.js +40 -9
- 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/card/card.component.js +70 -0
- package/esm2015/lib/components/card/card.module.js +35 -0
- package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +2 -3
- package/esm2015/lib/components/grid/co-grid.component.js +1 -2
- package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +5 -2
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +19 -24
- package/esm2015/lib/components/input-search/input-search.component.js +36 -0
- package/esm2015/lib/components/input-search/input-search.module.js +17 -0
- package/esm2015/lib/components/input-text/input-text.component.js +8 -13
- package/esm2015/lib/components/input-text/input-text.module.js +4 -2
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +10 -2
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +13 -12
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +16 -2
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +25 -20
- package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +2 -1
- package/esm2015/public-api.js +18 -11
- package/fesm2015/colijnit-corecomponents_v12.js +5475 -5178
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +4 -1
- 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/card/card.component.d.ts +22 -0
- package/lib/components/card/card.module.d.ts +2 -0
- package/lib/components/input-combo-box/input-combo-box.component.d.ts +2 -1
- package/lib/components/input-number-picker/input-number-picker.component.d.ts +1 -6
- package/lib/components/input-search/input-search.component.d.ts +11 -0
- package/lib/components/input-search/input-search.module.d.ts +2 -0
- package/lib/components/input-text/style/_layout.scss +0 -39
- package/lib/components/input-text/style/_material-definition.scss +0 -4
- 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 +2 -0
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +6 -2
- package/lib/components/simple-grid/simple-grid.component.d.ts +4 -2
- package/package.json +1 -1
- package/public-api.d.ts +17 -10
|
@@ -95,6 +95,8 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
95
95
|
keepFocus: boolean;
|
|
96
96
|
canSaveOrCancel: boolean;
|
|
97
97
|
objectConfigName: string;
|
|
98
|
+
committing: boolean;
|
|
99
|
+
commitFinished: boolean;
|
|
98
100
|
protected _markedAsUserTouched: boolean;
|
|
99
101
|
protected _destroyed: boolean;
|
|
100
102
|
protected _hasOnPushCdStrategy: boolean;
|
|
@@ -121,7 +123,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
121
123
|
ngAfterViewInit(): void;
|
|
122
124
|
ngOnDestroy(): void;
|
|
123
125
|
commit: (model: any) => Promise<boolean>;
|
|
124
|
-
commitClick(event?: MouseEvent): Promise<
|
|
126
|
+
commitClick(event?: MouseEvent): Promise<boolean>;
|
|
125
127
|
cancelClick(event?: MouseEvent): void;
|
|
126
128
|
showValidationError(error: string): void;
|
|
127
129
|
/**
|
|
@@ -148,6 +150,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
148
150
|
protected _markAsOnPush(): void;
|
|
149
151
|
protected _checkState(): boolean;
|
|
150
152
|
protected _updateControlValidatorsAndOwnFlags(): void;
|
|
153
|
+
private _commitFinished;
|
|
151
154
|
private _clearErrorComponent;
|
|
152
155
|
private _controlExists;
|
|
153
156
|
private _controlIsValid;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, QueryList, Renderer2 } from "@angular/core";
|
|
2
|
+
export declare class CommitButtonsComponent {
|
|
3
|
+
private _renderer;
|
|
4
|
+
set content(children: any);
|
|
5
|
+
animateDivs: QueryList<ElementRef>;
|
|
6
|
+
set committing(value: boolean);
|
|
7
|
+
get committing(): boolean;
|
|
8
|
+
set commitFinished(value: boolean);
|
|
9
|
+
get commitFinished(): boolean;
|
|
10
|
+
cancelClick: EventEmitter<MouseEvent>;
|
|
11
|
+
commitClick: EventEmitter<MouseEvent>;
|
|
12
|
+
showClass(): boolean;
|
|
13
|
+
private _committing;
|
|
14
|
+
private _commitFinished;
|
|
15
|
+
constructor(_renderer: Renderer2);
|
|
16
|
+
private _checkAnimation;
|
|
17
|
+
private _checkAnimationFinished;
|
|
18
|
+
private _handleAnimationIteration;
|
|
19
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import "../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
$checkMarkWidth: calc(0.3 * #{$cc-co-commit-buttons-button-size});
|
|
4
|
+
$checkMarkHeight: calc(0.5 * #{$cc-co-commit-buttons-button-size});
|
|
5
|
+
$checkMarkThickness: 3px;
|
|
6
|
+
|
|
7
|
+
$spinnerSize: $cc-co-commit-buttons-button-size;
|
|
8
|
+
$spinnerDivSize: calc(#{$cc-co-commit-buttons-button-size} - (.2 * #{$cc-co-commit-buttons-button-size}));
|
|
9
|
+
$spinnerPadding: calc((#{$spinnerSize} - #{$spinnerDivSize}) / 2);
|
|
10
|
+
|
|
11
|
+
@include export-module('cc-commit-buttons-layout') {
|
|
12
|
+
.co-commit-buttons {
|
|
13
|
+
.commit-buttons-wrapper {
|
|
14
|
+
position: absolute;
|
|
15
|
+
@if ($cc-co-input-text-button-position == 'top') {
|
|
16
|
+
top: -36px;
|
|
17
|
+
transform-origin: center bottom;
|
|
18
|
+
padding: 5px 0 0 5px;
|
|
19
|
+
} @else {
|
|
20
|
+
top: $cc-item-size;
|
|
21
|
+
transform-origin: center top;
|
|
22
|
+
padding: 0 5px 5px 0;
|
|
23
|
+
}
|
|
24
|
+
right: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
column-gap: 2px;
|
|
27
|
+
z-index: 10;
|
|
28
|
+
.commit-buttons-button {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
position: relative;
|
|
33
|
+
height: $cc-co-commit-buttons-button-size;
|
|
34
|
+
width: $cc-co-commit-buttons-button-size;
|
|
35
|
+
&.save {
|
|
36
|
+
.save-button-spinner .animate {
|
|
37
|
+
animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
38
|
+
}
|
|
39
|
+
&.finished {
|
|
40
|
+
.spinner-checkmark {
|
|
41
|
+
animation-duration: 800ms;
|
|
42
|
+
animation-timing-function: ease;
|
|
43
|
+
animation-name: checkmark;
|
|
44
|
+
//animation-delay: 2.2s;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.save-button-spinner {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
position: relative;
|
|
50
|
+
width: $spinnerSize;
|
|
51
|
+
height: $spinnerSize;
|
|
52
|
+
padding: $spinnerPadding;
|
|
53
|
+
div {
|
|
54
|
+
position: absolute;
|
|
55
|
+
display: block;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
height: $spinnerDivSize;
|
|
58
|
+
width: $spinnerDivSize;
|
|
59
|
+
border-width: 2px;
|
|
60
|
+
border-style: solid;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
}
|
|
63
|
+
//border-color: $cc-co-commit-buttons-commit-color;
|
|
64
|
+
div:nth-child(1) {
|
|
65
|
+
animation-delay: -0.45s;
|
|
66
|
+
}
|
|
67
|
+
div:nth-child(2) {
|
|
68
|
+
animation-delay: -0.3s;
|
|
69
|
+
}
|
|
70
|
+
div:nth-child(3) {
|
|
71
|
+
animation-delay: -0.15s;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.spinner-checkmark {
|
|
75
|
+
position: absolute;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
transform: scaleX(-1) translate(85%, -5%) rotate(135deg);
|
|
78
|
+
height: $checkMarkHeight;
|
|
79
|
+
width: $checkMarkWidth;
|
|
80
|
+
transform-origin: left top;
|
|
81
|
+
content: '';
|
|
82
|
+
left: 50%;
|
|
83
|
+
top: 50%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&.cancel {
|
|
87
|
+
.cancel-button {
|
|
88
|
+
position: relative;
|
|
89
|
+
display: inline-block;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
@keyframes spinner {
|
|
97
|
+
0% {
|
|
98
|
+
transform: rotate(0deg);
|
|
99
|
+
}
|
|
100
|
+
100% {
|
|
101
|
+
transform: rotate(360deg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@keyframes checkmark {
|
|
105
|
+
0% {
|
|
106
|
+
height: 0;
|
|
107
|
+
width: 0;
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
20% {
|
|
111
|
+
height: 0;
|
|
112
|
+
width: $checkMarkWidth;
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
40% {
|
|
116
|
+
height: $checkMarkHeight;
|
|
117
|
+
width: $checkMarkWidth;
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
100% {
|
|
121
|
+
height: $checkMarkHeight;
|
|
122
|
+
width: $checkMarkWidth;
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
$cc-co-commit-buttons-button-background: $cc-color-form-input-border !default;
|
|
2
|
+
$cc-co-commit-buttons-button-size: 30px !default;
|
|
3
|
+
$cc-co-commit-buttons-commit-color: green !default;
|
|
4
|
+
$cc-co-commit-buttons-cancel-color: red !default;
|
|
5
|
+
$cc-co-input-text-button-position: 'bottom' !default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import "../../../../style/mixin";
|
|
2
|
+
@import "./material-definition";
|
|
3
|
+
|
|
4
|
+
@include export-module('cc-commit-buttons-theme') {
|
|
5
|
+
.co-commit-buttons {
|
|
6
|
+
.commit-buttons-wrapper {
|
|
7
|
+
.commit-buttons-button {
|
|
8
|
+
&.save {
|
|
9
|
+
background: $cc-co-commit-buttons-button-background;
|
|
10
|
+
.save-button-spinner .animate {
|
|
11
|
+
border-color: $cc-co-commit-buttons-commit-color transparent transparent transparent;
|
|
12
|
+
}
|
|
13
|
+
.save-button-spinner {
|
|
14
|
+
div {
|
|
15
|
+
border-color: $cc-co-commit-buttons-commit-color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.spinner-checkmark {
|
|
19
|
+
border-right: $checkMarkThickness solid $cc-co-commit-buttons-commit-color;
|
|
20
|
+
border-top: $checkMarkThickness solid $cc-co-commit-buttons-commit-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&.cancel {
|
|
24
|
+
.cancel-button {
|
|
25
|
+
border: 7px solid #DAD9D9;
|
|
26
|
+
background:
|
|
27
|
+
linear-gradient(45deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 43%,$cc-co-commit-buttons-cancel-color 45%,$cc-co-commit-buttons-cancel-color 55%,rgba(0,0,0,0) 57%,rgba(0,0,0,0) 100%),
|
|
28
|
+
linear-gradient(135deg, #DAD9D9 0%,#DAD9D9 43%,$cc-co-commit-buttons-cancel-color 45%,$cc-co-commit-buttons-cancel-color 55%,#DAD9D9 57%,#DAD9D9 100%);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { IconCacheService } from "../icon/icon-cache.service";
|
|
3
|
+
import { LevelIndicatorLevel } from "../level-indicator/level-indicator-level.enum";
|
|
4
|
+
export declare class CardComponent {
|
|
5
|
+
icons: IconCacheService;
|
|
6
|
+
private _changeDetector;
|
|
7
|
+
imageData: string;
|
|
8
|
+
description: string;
|
|
9
|
+
price: number | string;
|
|
10
|
+
level: LevelIndicatorLevel;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isSmallModus: boolean;
|
|
13
|
+
hasMagnifierButton: boolean;
|
|
14
|
+
hasInfoButton: boolean;
|
|
15
|
+
readonly contentClick: EventEmitter<MouseEvent>;
|
|
16
|
+
readonly infoButtonClick: EventEmitter<MouseEvent>;
|
|
17
|
+
readonly magnifierButtonClick: EventEmitter<MouseEvent>;
|
|
18
|
+
readonly Icons: any;
|
|
19
|
+
heightCard: number;
|
|
20
|
+
onHostClick(event: MouseEvent): void;
|
|
21
|
+
constructor(icons: IconCacheService, _changeDetector: ChangeDetectorRef);
|
|
22
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef } from "@angular/core";
|
|
1
|
+
import { ChangeDetectorRef, ComponentFactoryResolver, ElementRef, EventEmitter } from "@angular/core";
|
|
2
2
|
import { BaseInputComponent } from "../base/base-input.component";
|
|
3
3
|
import { FormInputUserModelChangeListenerService } from "../../core/service/form-input-user-change-listener.service";
|
|
4
4
|
import { NgZoneWrapperService } from "../../core/service/ng-zone-wrapper.service";
|
|
@@ -17,6 +17,7 @@ export declare class InputComboBoxComponent extends BaseInputComponent<any> {
|
|
|
17
17
|
selected: number | string | boolean;
|
|
18
18
|
placeholder: string;
|
|
19
19
|
shopPopup: boolean;
|
|
20
|
+
valueChange: EventEmitter<any>;
|
|
20
21
|
showClass(): boolean;
|
|
21
22
|
constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
|
|
22
23
|
onFocus(): void;
|
|
@@ -2,7 +2,6 @@ import { ChangeDetectorRef, ComponentFactoryResolver, EventEmitter, NgZone, OnDe
|
|
|
2
2
|
import { BaseInputComponent } from "../base/base-input.component";
|
|
3
3
|
import { BoundsConstrainedNumberValue } from "../../core/model/bounds-constrained-number-value";
|
|
4
4
|
import { KeyboardCode } from "../../core/enum/keyboard-code.enum";
|
|
5
|
-
import { InputTextComponent } from "../input-text/input-text.component";
|
|
6
5
|
import { FormInputUserModelChangeListenerService } from "../../core/service/form-input-user-change-listener.service";
|
|
7
6
|
import { InputNumberPickerButtonShowMode } from "../../core/enum/input-number-picker-show-mode.enum";
|
|
8
7
|
import { IconCacheService } from "../icon/icon-cache.service";
|
|
@@ -13,8 +12,6 @@ export declare class InputNumberPickerComponent extends BaseInputComponent<numbe
|
|
|
13
12
|
iconCacheService: IconCacheService;
|
|
14
13
|
private _ngZone;
|
|
15
14
|
protected componentFactoryResolver: ComponentFactoryResolver;
|
|
16
|
-
set model(model: number);
|
|
17
|
-
get model(): number;
|
|
18
15
|
set min(min: number);
|
|
19
16
|
set step(step: number);
|
|
20
17
|
set max(max: number);
|
|
@@ -25,7 +22,6 @@ export declare class InputNumberPickerComponent extends BaseInputComponent<numbe
|
|
|
25
22
|
noValidation: boolean;
|
|
26
23
|
set decimals(decimals: number);
|
|
27
24
|
readonly modelChange: EventEmitter<number>;
|
|
28
|
-
inputTextComp: InputTextComponent;
|
|
29
25
|
get showButtonsOnFocusOnly(): boolean;
|
|
30
26
|
get hasLabel(): boolean;
|
|
31
27
|
showClass(): boolean;
|
|
@@ -50,6 +46,7 @@ export declare class InputNumberPickerComponent extends BaseInputComponent<numbe
|
|
|
50
46
|
ngOnDestroy(): void;
|
|
51
47
|
doIncrementAuto(): void;
|
|
52
48
|
handleKeyDown(event: KeyboardEvent): boolean;
|
|
49
|
+
handleChangeModel(value: number): void;
|
|
53
50
|
doDecrementAuto(): void;
|
|
54
51
|
stopAutoCounting(): void;
|
|
55
52
|
setValue(newValue: number, silent?: boolean): void;
|
|
@@ -57,8 +54,6 @@ export declare class InputNumberPickerComponent extends BaseInputComponent<numbe
|
|
|
57
54
|
decrement(steps?: number): void;
|
|
58
55
|
onPlusMouseDown(event: Event): void;
|
|
59
56
|
onMinusMouseDown(event: Event): void;
|
|
60
|
-
onNumberInputFocus(): void;
|
|
61
|
-
onNumberInputBlur(): void;
|
|
62
57
|
private _doIncreaseStepFactor;
|
|
63
58
|
private _getNextStepFactorMouseDown;
|
|
64
59
|
private _updateButtonsShowState;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
3
|
+
export declare class InputSearchComponent implements OnDestroy {
|
|
4
|
+
private _elementRef;
|
|
5
|
+
readonly searchIcon: CoreComponentsIcon;
|
|
6
|
+
placeHolderText: string;
|
|
7
|
+
showClass(): boolean;
|
|
8
|
+
constructor(_elementRef: ElementRef);
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
focus(): void;
|
|
11
|
+
}
|
|
@@ -12,44 +12,5 @@
|
|
|
12
12
|
margin: ($cc-item-size - 8px) / 2 0 0;
|
|
13
13
|
outline: none;
|
|
14
14
|
}
|
|
15
|
-
.input-save-cancel-button-wrapper {
|
|
16
|
-
position: absolute;
|
|
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
|
-
}
|
|
26
|
-
right: 0;
|
|
27
|
-
display: flex;
|
|
28
|
-
column-gap: 2px;
|
|
29
|
-
z-index: 10;
|
|
30
|
-
.input-save-cancel-button {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
height: 30px;
|
|
35
|
-
width: 30px;
|
|
36
|
-
&.save {
|
|
37
|
-
background: $cc-co-input-text-button-background;
|
|
38
|
-
&:before {
|
|
39
|
-
content: "\2713";
|
|
40
|
-
font-size: 20px;
|
|
41
|
-
color: $cc-co-input-text-commit-color;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
&.cancel {
|
|
45
|
-
background: #DAD9D9;
|
|
46
|
-
&:before {
|
|
47
|
-
content: "x";
|
|
48
|
-
font-size: 20px;
|
|
49
|
-
color: $cc-co-input-text-cancel-color;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
15
|
}
|
|
55
16
|
}
|
|
@@ -2,7 +2,3 @@ $cc-co-input-text-font-family: $cc-font-family !default;
|
|
|
2
2
|
$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
|
-
$cc-co-input-text-button-background: $cc-color-form-input-border !default;
|
|
6
|
-
$cc-co-input-text-button-position: 'bottom' !default;
|
|
7
|
-
$cc-co-input-text-commit-color: green !default;
|
|
8
|
-
$cc-co-input-text-cancel-color: red !default;
|
|
@@ -3,21 +3,5 @@
|
|
|
3
3
|
input {
|
|
4
4
|
background: transparent;
|
|
5
5
|
}
|
|
6
|
-
.input-save-cancel-button-wrapper {
|
|
7
|
-
.input-save-cancel-button {
|
|
8
|
-
&.save {
|
|
9
|
-
background: $cc-co-input-text-button-background;
|
|
10
|
-
&:before {
|
|
11
|
-
color: $cc-co-input-text-commit-color;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
&.cancel {
|
|
15
|
-
background: $cc-co-input-text-button-background;
|
|
16
|
-
&:before {
|
|
17
|
-
color: $cc-co-input-text-cancel-color;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
6
|
}
|
|
23
7
|
}
|
|
@@ -12,6 +12,7 @@ export declare abstract class BaseSimpleGridComponent {
|
|
|
12
12
|
* (update collection) by itself
|
|
13
13
|
*/
|
|
14
14
|
emitDragDrop: boolean;
|
|
15
|
+
set extraColumns(value: SimpleGridColumnDirective[]);
|
|
15
16
|
onDrop: EventEmitter<{
|
|
16
17
|
from: number;
|
|
17
18
|
to: number;
|
|
@@ -26,4 +27,5 @@ export declare abstract class BaseSimpleGridComponent {
|
|
|
26
27
|
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
27
28
|
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
28
29
|
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
30
|
+
private _setColumns;
|
|
29
31
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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>;
|
|
@@ -21,7 +21,11 @@ export declare class SimpleGridColumnDirective {
|
|
|
21
21
|
width: number;
|
|
22
22
|
readonly: boolean;
|
|
23
23
|
collection: {}[];
|
|
24
|
+
order: number;
|
|
25
|
+
singleColumn: boolean;
|
|
26
|
+
ngOnInit(): void;
|
|
24
27
|
getFieldValue(value: any): string;
|
|
25
28
|
private _template;
|
|
26
29
|
private _editTemplate;
|
|
30
|
+
private _setSingleColumnProps;
|
|
27
31
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from "@angular/core";
|
|
2
|
-
import { ColumnAlign } from "./simple-grid-column.directive";
|
|
3
|
-
import { BaseSimpleGridComponent } from "./base-simple-grid.component";
|
|
4
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
5
|
export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
6
6
|
private _changeDetection;
|
|
7
7
|
private _formMaster;
|
|
@@ -16,6 +16,8 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
16
16
|
private _doubleClicked;
|
|
17
17
|
private _newRow;
|
|
18
18
|
constructor(_changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
19
|
+
isSingleColumn(column: any): boolean;
|
|
20
|
+
rowContainsSingleColumn(row: any, columns: any): boolean;
|
|
19
21
|
addRow(): void;
|
|
20
22
|
validateAndSave(stopEditting?: boolean): boolean;
|
|
21
23
|
cancelEditRow(): void;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export * from './lib/components/button/button.module';
|
|
|
4
4
|
export * from './lib/components/button/button.component';
|
|
5
5
|
export * from './lib/components/button-drop-down/button-drop-down.module';
|
|
6
6
|
export * from './lib/components/button-drop-down/button-drop-down.component';
|
|
7
|
+
export * from './lib/components/card/card.component';
|
|
8
|
+
export * from './lib/components/card/card.module';
|
|
9
|
+
export * from './lib/components/carousel-3d/carousel-3d.component';
|
|
10
|
+
export * from './lib/components/carousel-3d/carousel-3d.module';
|
|
7
11
|
export * from './lib/components/co-dialog/co-dialog.module';
|
|
8
12
|
export * from './lib/components/co-dialog/co-dialog.component';
|
|
9
13
|
export * from './lib/components/co-dialog-prompt/co-dialog-prompt.module';
|
|
@@ -12,6 +16,8 @@ export * from './lib/components/co-dialog-wizard/co-dialog-wizard.module';
|
|
|
12
16
|
export * from './lib/components/co-dialog-wizard/co-dialog-wizard.component';
|
|
13
17
|
export * from './lib/components/co-kanban/co-kanban.module';
|
|
14
18
|
export * from './lib/components/co-kanban/co-kanban.component';
|
|
19
|
+
export * from './lib/components/co-rich-text-editor/co-rich-text-editor.component';
|
|
20
|
+
export * from './lib/components/co-rich-text-editor/co-rich-text-editor.module';
|
|
15
21
|
export * from './lib/components/co-schedule/co-schedule.module';
|
|
16
22
|
export * from './lib/components/co-schedule/co-schedule.component';
|
|
17
23
|
export * from './lib/components/co-sidebar/co-sidebar.module';
|
|
@@ -27,6 +33,8 @@ export * from './lib/components/form/form.component';
|
|
|
27
33
|
export * from './lib/core/service/form-master.service';
|
|
28
34
|
export * from './lib/components/grid/co-grid.module';
|
|
29
35
|
export * from './lib/components/grid/co-grid.component';
|
|
36
|
+
export * from './lib/components/grid-toolbar/grid-toolbar.component';
|
|
37
|
+
export * from './lib/components/grid-toolbar/grid-toolbar.module';
|
|
30
38
|
export * from './lib/components/icon/icon.module';
|
|
31
39
|
export * from './lib/components/icon/icon.component';
|
|
32
40
|
export * from './lib/components/image/image.module';
|
|
@@ -39,10 +47,14 @@ export * from './lib/components/input-combo-box/input-combo-box.module';
|
|
|
39
47
|
export * from './lib/components/input-combo-box/input-combo-box.component';
|
|
40
48
|
export * from './lib/components/input-date-picker/input-date-picker.module';
|
|
41
49
|
export * from './lib/components/input-date-picker/input-date-picker.component';
|
|
50
|
+
export * from './lib/components/input-listbox/input-listbox.component';
|
|
51
|
+
export * from './lib/components/input-listbox/input-listbox.module';
|
|
42
52
|
export * from './lib/components/input-number-picker/input-number-picker.module';
|
|
43
53
|
export * from './lib/components/input-number-picker/input-number-picker.component';
|
|
44
54
|
export * from './lib/components/input-radio-button/input-radio-button.module';
|
|
45
55
|
export * from './lib/components/input-radio-button/input-radio-button.component';
|
|
56
|
+
export * from './lib/components/input-search/input-search.component';
|
|
57
|
+
export * from './lib/components/input-search/input-search.module';
|
|
46
58
|
export * from './lib/components/input-text/input-text.module';
|
|
47
59
|
export * from './lib/components/input-text/input-text.component';
|
|
48
60
|
export * from './lib/components/input-textarea/input-textarea.module';
|
|
@@ -58,20 +70,15 @@ export * from './lib/components/popup/text-input-popup.component';
|
|
|
58
70
|
export * from './lib/components/popup/popup-window-shell.component';
|
|
59
71
|
export * from './lib/components/popup/popup-message-display.component';
|
|
60
72
|
export * from './lib/components/popup/popup-buttons.component';
|
|
73
|
+
export * from './lib/components/popup/service/prompt.service';
|
|
74
|
+
export * from './lib/components/popup/popup-buttons.component';
|
|
75
|
+
export * from './lib/components/simple-grid/simple-grid-column.directive';
|
|
76
|
+
export * from './lib/components/simple-grid/simple-grid.component';
|
|
77
|
+
export * from './lib/components/simple-grid/simple-grid.module';
|
|
61
78
|
export * from './lib/components/tile/tile.module';
|
|
62
79
|
export * from './lib/components/tile/tile.component';
|
|
63
80
|
export * from './lib/core/enum/core-components-icon.enum';
|
|
64
|
-
export * from './lib/components/popup/service/prompt.service';
|
|
65
81
|
export * from './lib/components/icon/icon-cache.service';
|
|
66
82
|
export * from './lib/components/base/component-interface-name';
|
|
67
|
-
export * from './lib/components/co-rich-text-editor/co-rich-text-editor.module';
|
|
68
|
-
export * from './lib/components/co-rich-text-editor/co-rich-text-editor.component';
|
|
69
|
-
export * from './lib/components/input-listbox/input-listbox.module';
|
|
70
|
-
export * from './lib/components/input-listbox/input-listbox.component';
|
|
71
|
-
export * from './lib/components/simple-grid/simple-grid-column.directive';
|
|
72
|
-
export * from './lib/components/simple-grid/simple-grid.component';
|
|
73
|
-
export * from './lib/components/simple-grid/simple-grid.module';
|
|
74
|
-
export * from './lib/components/carousel-3d/carousel-3d.component';
|
|
75
|
-
export * from './lib/components/carousel-3d/carousel-3d.module';
|
|
76
83
|
export * from './lib/pipes/price-display.pipe';
|
|
77
84
|
export * from './lib/pipes/price-display-pipe.module';
|