@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
|
@@ -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
|
/**
|
|
@@ -130,7 +132,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
130
132
|
*/
|
|
131
133
|
setModel(value: any): void;
|
|
132
134
|
requestFocus(): void;
|
|
133
|
-
doFocus(event
|
|
135
|
+
doFocus(event?: any): any;
|
|
134
136
|
doBlur(event?: any): any;
|
|
135
137
|
detectChanges(): void;
|
|
136
138
|
markForCheck(): void;
|
|
@@ -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,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
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -12,37 +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
|
-
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
|
-
}
|
|
47
15
|
}
|
|
48
16
|
}
|
|
@@ -2,6 +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-commit-color: green !default;
|
|
7
|
-
$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
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
set extraColumns(value: SimpleGridColumnDirective[]);
|
|
16
|
+
onDrop: EventEmitter<{
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
}>;
|
|
20
|
+
selectRow: EventEmitter<{}>;
|
|
21
|
+
dblClickRow: EventEmitter<{}>;
|
|
22
|
+
saveRow: EventEmitter<{}>;
|
|
23
|
+
handleMouseMove(event: MouseEvent): void;
|
|
24
|
+
handleMouseUp(event: MouseEvent): void;
|
|
25
|
+
columns: SimpleGridColumnDirective[];
|
|
26
|
+
private _columnForResize;
|
|
27
|
+
handleSizerMouseDown(event: MouseEvent, column: SimpleGridColumnDirective): void;
|
|
28
|
+
handleCanDragDrop(drag: CdkDrag, drop: CdkDropList): boolean;
|
|
29
|
+
handleDrop(event: CdkDragDrop<Object[]>): void;
|
|
30
|
+
private _setColumns;
|
|
31
|
+
}
|