@colijnit/corecomponents_v12 12.0.20 → 12.0.21
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 +224 -83
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +14 -16
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +15 -17
- package/esm2015/lib/components/base/base-input.component.js +140 -47
- package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +12 -6
- package/esm2015/lib/components/collapsible/collapsible.component.js +10 -2
- package/esm2015/lib/components/form/form.component.js +17 -17
- package/esm2015/lib/components/input-text/input-text.component.js +13 -1
- package/esm2015/lib/components/validation-error/validation-error.module.js +1 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +184 -67
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +19 -6
- package/lib/components/form/form.component.d.ts +0 -1
- package/lib/components/input-checkbox/style/_material-definition.scss +1 -2
- package/lib/components/input-checkbox/style/material.scss +2 -0
- package/lib/components/input-text/style/_layout.scss +32 -0
- package/lib/components/input-text/style/_material-definition.scss +3 -0
- package/lib/components/input-text/style/_theme.scss +16 -0
- package/lib/style/_input.mixins.scss +1 -1
- package/lib/style/_variables.scss +27 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -20,6 +20,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
20
20
|
get ngModel(): NgModel;
|
|
21
21
|
static BaseFormInputComponentIndex: number;
|
|
22
22
|
static HiddenClass: string;
|
|
23
|
+
showSaveCancel: boolean;
|
|
23
24
|
set model(value: T);
|
|
24
25
|
get model(): T;
|
|
25
26
|
label: string;
|
|
@@ -81,17 +82,25 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
81
82
|
get touchedInvalid(): boolean;
|
|
82
83
|
get valid(): boolean;
|
|
83
84
|
get validationDisabled(): boolean;
|
|
85
|
+
onClick(event: MouseEvent): void;
|
|
86
|
+
onFocusIn(): void;
|
|
87
|
+
handleDocumentScroll(): void;
|
|
88
|
+
handleWindowResize(): void;
|
|
89
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
84
90
|
get canChange(): boolean;
|
|
85
91
|
get control(): FormControl;
|
|
86
92
|
get formInputInstance(): BaseInputComponent<T>;
|
|
87
93
|
get isDestroyed(): boolean;
|
|
88
94
|
input: HTMLInputElement | HTMLTextAreaElement;
|
|
89
|
-
|
|
95
|
+
keepFocus: boolean;
|
|
96
|
+
canSaveOrCancel: boolean;
|
|
90
97
|
objectConfigName: string;
|
|
91
98
|
protected _markedAsUserTouched: boolean;
|
|
92
99
|
protected _destroyed: boolean;
|
|
93
100
|
protected _hasOnPushCdStrategy: boolean;
|
|
94
101
|
protected _model: T;
|
|
102
|
+
protected _initialModel: T;
|
|
103
|
+
protected _initialModelSet: boolean;
|
|
95
104
|
private _errorValidationComponent;
|
|
96
105
|
private _decimals;
|
|
97
106
|
private _hidden;
|
|
@@ -111,17 +120,18 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
111
120
|
ngOnInit(): void;
|
|
112
121
|
ngAfterViewInit(): void;
|
|
113
122
|
ngOnDestroy(): void;
|
|
123
|
+
commit: (model: any) => Promise<boolean>;
|
|
124
|
+
commitClick(event?: MouseEvent): Promise<void>;
|
|
125
|
+
cancelClick(event?: MouseEvent): void;
|
|
114
126
|
showValidationError(error: string): void;
|
|
115
127
|
/**
|
|
116
128
|
* Emits a modelChange event with given value, indicating that the model of this form input
|
|
117
129
|
* has changed and its new value is given value. Also emits userModelChange if markedAsUserTouched.
|
|
118
130
|
*/
|
|
119
131
|
setModel(value: any): void;
|
|
120
|
-
onClick(event: MouseEvent): void;
|
|
121
|
-
onFocusIn(): void;
|
|
122
132
|
requestFocus(): void;
|
|
123
|
-
doFocus():
|
|
124
|
-
doBlur():
|
|
133
|
+
doFocus(event: any): any;
|
|
134
|
+
doBlur(event?: any): any;
|
|
125
135
|
detectChanges(): void;
|
|
126
136
|
markForCheck(): void;
|
|
127
137
|
detectChangesAfterAngular(): void;
|
|
@@ -152,5 +162,8 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
152
162
|
private _addSelfToForm;
|
|
153
163
|
private _prepareInput;
|
|
154
164
|
private _findInputNode;
|
|
155
|
-
private
|
|
165
|
+
private _positionValidationError;
|
|
166
|
+
private _handleKeyDown;
|
|
167
|
+
private _createNewFocusEvent;
|
|
168
|
+
private _setFocusOnNextPossibleInput;
|
|
156
169
|
}
|
|
@@ -31,7 +31,6 @@ export declare class FormComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
|
31
31
|
checkUpdateValidity(): boolean;
|
|
32
32
|
isTouched(): boolean;
|
|
33
33
|
isValid(): boolean;
|
|
34
|
-
onEnterKey(event: KeyboardEvent): void;
|
|
35
34
|
reset(): void;
|
|
36
35
|
submit(throughFormMaster?: boolean): boolean;
|
|
37
36
|
showErrorTooltipOnFormGroupControl(key: string): void;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
@import "ej2-buttons/styles/material.scss";
|
|
1
|
+
|
|
@@ -12,5 +12,37 @@
|
|
|
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
|
+
padding: 5px 0 0 5px;
|
|
18
|
+
top: -36px;
|
|
19
|
+
right: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
column-gap: 2px;
|
|
22
|
+
transform-origin: center bottom;
|
|
23
|
+
.input-save-cancel-button {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
height: 30px;
|
|
28
|
+
width: 30px;
|
|
29
|
+
&.save {
|
|
30
|
+
background: $cc-co-input-text-button-background;
|
|
31
|
+
&:before {
|
|
32
|
+
content: "\2713";
|
|
33
|
+
font-size: 20px;
|
|
34
|
+
color: $cc-co-input-text-commit-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.cancel {
|
|
38
|
+
background: #DAD9D9;
|
|
39
|
+
&:before {
|
|
40
|
+
content: "x";
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
color: $cc-co-input-text-cancel-color;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
15
47
|
}
|
|
16
48
|
}
|
|
@@ -2,3 +2,6 @@ $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-commit-color: green !default;
|
|
7
|
+
$cc-co-input-text-cancel-color: red !default;
|
|
@@ -3,5 +3,21 @@
|
|
|
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
|
+
}
|
|
6
22
|
}
|
|
7
23
|
}
|
|
@@ -106,6 +106,20 @@ $cc-font-size-value-text: 13px !default;
|
|
|
106
106
|
|
|
107
107
|
$cc-input-required-mark-width-height: 7px;
|
|
108
108
|
|
|
109
|
+
/* checkbox */
|
|
110
|
+
$cc-checkbox-border-radius: 2px !default;
|
|
111
|
+
$cc-checkbox-background-color: $cc-color-light !default;
|
|
112
|
+
$cc-checkbox-border-color: $cc-color-border !default;
|
|
113
|
+
$cc-checkbox-check-background-color: $cc-color-action !default;
|
|
114
|
+
$cc-checkbox-check-border-color: $cc-color-action !default;
|
|
115
|
+
$cc-checkbox-check-color: $cc-color-light !default;
|
|
116
|
+
$cc-checkbox-hover-background-color: $cc-checkbox-background-color !default;
|
|
117
|
+
$cc-checkbox-hover-border-color: $cc-checkbox-border-color !default;
|
|
118
|
+
$cc-checkbox-check-hover-background-color: $cc-checkbox-check-background-color !default;
|
|
119
|
+
$cc-checkbox-check-hover-border-color: $cc-checkbox-check-border-color !default;
|
|
120
|
+
$cc-checkbox-check-hover-color: $cc-checkbox-check-color !default;
|
|
121
|
+
/************/
|
|
122
|
+
|
|
109
123
|
/* syncfusion overrides */
|
|
110
124
|
$input-header-font-color: $cc-color-label;
|
|
111
125
|
$input-placeholder: $cc-color-label;
|
|
@@ -115,4 +129,17 @@ $input-group-full-border: none;
|
|
|
115
129
|
$input-margin-top: $cc-input-margin-top;
|
|
116
130
|
$input-group-full-border-width: 0;
|
|
117
131
|
$input-group-border-width-focus: 0;
|
|
132
|
+
|
|
133
|
+
$cbox-border-radius: $cc-checkbox-border-radius;
|
|
134
|
+
$cbox-bgcolor: $cc-checkbox-background-color;
|
|
135
|
+
$cbox-border-color: $cc-checkbox-border-color;
|
|
136
|
+
$cbox-checkmark-bgcolor: $cc-checkbox-check-background-color;
|
|
137
|
+
$cbox-checkmark-border-color: $cc-checkbox-check-border-color;
|
|
138
|
+
$cbox-checkmark-color: $cc-checkbox-check-color;
|
|
139
|
+
$cbox-hover-bgcolor: $cc-checkbox-hover-background-color;
|
|
140
|
+
$cbox-hover-border-color: $cc-checkbox-hover-border-color;
|
|
141
|
+
$cbox-checkmark-hover-bgcolor: $cc-checkbox-check-hover-background-color;
|
|
142
|
+
$cbox-checkmark-hover-border-color: $cc-checkbox-check-hover-border-color;
|
|
143
|
+
$cbox-checkmark-hover-color: $cc-checkbox-check-hover-color;
|
|
118
144
|
/************************/
|
|
145
|
+
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -71,3 +71,5 @@ export * from './lib/components/simple-grid/simple-grid.component';
|
|
|
71
71
|
export * from './lib/components/simple-grid/simple-grid.module';
|
|
72
72
|
export * from './lib/components/carousel-3d/carousel-3d.component';
|
|
73
73
|
export * from './lib/components/carousel-3d/carousel-3d.module';
|
|
74
|
+
export * from './lib/pipes/price-display.pipe';
|
|
75
|
+
export * from './lib/pipes/price-display-pipe.module';
|