@colijnit/corecomponents_v12 256.1.17 → 256.1.19
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 +102 -34
- 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 +8 -1
- package/esm2015/lib/components/button/button.component.js +1 -1
- package/esm2015/lib/components/filter-item/filter-item.component.js +6 -3
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +20 -2
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +65 -30
- package/esm2015/lib/components/list-of-values/list-of-values.module.js +1 -2
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +2 -1
- package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +1 -1
- package/esm2015/lib/service/base-module-screen-config.service.js +2 -2
- package/fesm2015/colijnit-corecomponents_v12.js +97 -34
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +4 -0
- package/lib/components/button/button.component.d.ts +2 -0
- package/lib/components/calendar/style/_layout.scss +14 -14
- package/lib/components/calendar/style/_material-definition.scss +3 -3
- package/lib/components/filter-item/filter-item.component.d.ts +3 -0
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +2 -0
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +5 -0
- package/lib/interfaces/screen-config-adapter.component.interface.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
|
|
|
6
6
|
import { FormComponent } from '../form/form.component';
|
|
7
7
|
import { ScreenConfigAdapterComponent } from '../../interfaces/screen-config-adapter.component.interface';
|
|
8
8
|
import { OverlayService } from '../../service/overlay.service';
|
|
9
|
+
import { ObjectConfigurationDefaultValueType } from '@colijnit/ioneconnector/build/type/object-configuration-default-value-type';
|
|
9
10
|
/**
|
|
10
11
|
* Abstract base class for all concrete form input components that contain a native <input> element. Provides common data and functionality, such as
|
|
11
12
|
* adding self as a control to the parent form.
|
|
@@ -36,6 +37,8 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
36
37
|
get disabled(): boolean;
|
|
37
38
|
set maxLength(maxLength: number);
|
|
38
39
|
get maxLength(): number;
|
|
40
|
+
set defaultValue(defaultValue: ObjectConfigurationDefaultValueType);
|
|
41
|
+
get defaultValue(): ObjectConfigurationDefaultValueType;
|
|
39
42
|
forcedMaxLength: number;
|
|
40
43
|
set readonly(readonly: boolean);
|
|
41
44
|
get readonly(): boolean;
|
|
@@ -117,6 +120,7 @@ export declare abstract class BaseInputComponent<T> implements OnInit, OnDestroy
|
|
|
117
120
|
private _hidden;
|
|
118
121
|
private _disabled;
|
|
119
122
|
private _maxLength;
|
|
123
|
+
private _defaultValue;
|
|
120
124
|
private _readonly;
|
|
121
125
|
private _required;
|
|
122
126
|
private _forceReadonly;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import { ScreenConfigAdapterComponent } from '../../interfaces/screen-config-adapter.component.interface';
|
|
4
|
+
import { ObjectConfigurationDefaultValueType } from '@colijnit/ioneconnector/build/type/object-configuration-default-value-type';
|
|
4
5
|
export declare class ButtonComponent implements ScreenConfigAdapterComponent, OnDestroy {
|
|
5
6
|
private _elementRef;
|
|
6
7
|
label: string;
|
|
@@ -21,6 +22,7 @@ export declare class ButtonComponent implements ScreenConfigAdapterComponent, On
|
|
|
21
22
|
forceReadonly: boolean;
|
|
22
23
|
readonly: boolean;
|
|
23
24
|
maxLength: number;
|
|
25
|
+
defaultValue: ObjectConfigurationDefaultValueType;
|
|
24
26
|
decimals: number;
|
|
25
27
|
redErrorBackground: boolean;
|
|
26
28
|
constructor(_elementRef: ElementRef);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
margin-bottom: $cc-co-calendar-header-margin-bottom;
|
|
27
27
|
user-select: none;
|
|
28
|
-
padding: 10px;
|
|
28
|
+
padding: 10px 15px;
|
|
29
29
|
|
|
30
30
|
.calendar-change-month-button {
|
|
31
31
|
cursor: pointer;
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
background-color: $cc-co-calendar-day-hover-background-color;
|
|
92
92
|
border-radius: $cc-co-calendar-selected-day-start-border-radius;
|
|
93
93
|
position: absolute;
|
|
94
|
-
top:
|
|
95
|
-
left: -
|
|
96
|
-
width:
|
|
97
|
-
height:
|
|
94
|
+
top: -2px;
|
|
95
|
+
left: -2px;
|
|
96
|
+
width: 34px;
|
|
97
|
+
height: 34px;
|
|
98
98
|
content: '';
|
|
99
99
|
z-index: 0;
|
|
100
100
|
}
|
|
@@ -155,10 +155,10 @@
|
|
|
155
155
|
background-color: $cc-co-calendar-selected-day-background-color;
|
|
156
156
|
border-radius: $cc-co-calendar-selected-day-start-border-radius;
|
|
157
157
|
position: absolute;
|
|
158
|
-
top:
|
|
159
|
-
left: -
|
|
160
|
-
width:
|
|
161
|
-
height:
|
|
158
|
+
top: -2px;
|
|
159
|
+
left: -2px;
|
|
160
|
+
width: 34px;
|
|
161
|
+
height: 34px;
|
|
162
162
|
content: '';
|
|
163
163
|
z-index: 1;
|
|
164
164
|
}
|
|
@@ -190,13 +190,13 @@
|
|
|
190
190
|
.selected-date-display {
|
|
191
191
|
display: flex;
|
|
192
192
|
flex-direction: column;
|
|
193
|
-
padding:
|
|
193
|
+
padding: 10px;
|
|
194
194
|
background: $cc-co-calendar-selected-day-background-color;
|
|
195
195
|
color: #FFF;
|
|
196
|
-
font-size:
|
|
197
|
-
min-height:
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
min-height: 65px;
|
|
198
198
|
.selected-date-day {
|
|
199
|
-
font-size:
|
|
199
|
+
font-size: 24px;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
.calendar-action-buttons {
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
flex-direction: column;
|
|
205
205
|
align-items: flex-end;
|
|
206
206
|
gap: 15px;
|
|
207
|
-
padding: 15px 20px;
|
|
207
|
+
padding: 10px 20px 15px 20px;
|
|
208
208
|
font-size: 12px;
|
|
209
209
|
color: $cc-co-calendar-selected-day-background-color;
|
|
210
210
|
cursor: pointer;
|
|
@@ -4,18 +4,18 @@ $cc-co-calendar-padding: 0 !default;
|
|
|
4
4
|
$cc-co-calendar-background-color: white !default;
|
|
5
5
|
$cc-co-calendar-border-radius: 5px !default;
|
|
6
6
|
$cc-co-calendar-border: 1px solid #CCCCCC !default;
|
|
7
|
-
$cc-co-calendar-header-margin-bottom:
|
|
7
|
+
$cc-co-calendar-header-margin-bottom: 0 !default;
|
|
8
8
|
$cc-co-calendar-change-month-button-border-radius: 5px !default;
|
|
9
9
|
$cc-co-calendar-change-month-button-border: 0px solid #CCCCCC !default;
|
|
10
10
|
$cc-co-calendar-change-month-button-padding: 5px !default;
|
|
11
11
|
$cc-co-calendar-header-title-font-size: 14px !default;
|
|
12
|
-
$cc-co-calendar-day-height:
|
|
12
|
+
$cc-co-calendar-day-height: 30px !default;
|
|
13
13
|
$cc-co-calendar-day-margin: 2px 0 !default;
|
|
14
14
|
$cc-co-calendar-day-hover-background-color: #f8f8fa !default;
|
|
15
15
|
$cc-co-calendar-day-hover-color: white !default;
|
|
16
16
|
$cc-co-calendar-day-selected-background-color: $cc-color-action !default;
|
|
17
17
|
$cc-co-calendar-day-selected-color: $cc-color-light !default;
|
|
18
|
-
$cc-co-calendar-week-number-height:
|
|
18
|
+
$cc-co-calendar-week-number-height: 30px !default;
|
|
19
19
|
$cc-co-calendar-week-number-margin: 0 2px 0 0 !default;
|
|
20
20
|
$cc-co-calendar-week-number-font-size: 10px !default;
|
|
21
21
|
$cc-co-calendar-week-number-width: 30px !default;
|
|
@@ -5,6 +5,7 @@ import { IconCacheService } from '../icon/icon-cache.service';
|
|
|
5
5
|
import { FilterItemMode } from '../../core/enum/filterItem-mode.enum';
|
|
6
6
|
import { ScreenConfigAdapterComponent } from "../../interfaces/screen-config-adapter.component.interface";
|
|
7
7
|
import { ObjectConfiguration } from "@colijnit/ioneconnector/build/model/object-configuration";
|
|
8
|
+
import { ObjectConfigurationDefaultValueType } from '@colijnit/ioneconnector/build/type/object-configuration-default-value-type';
|
|
8
9
|
export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterComponent {
|
|
9
10
|
iconService: IconCacheService;
|
|
10
11
|
private _changeDetector;
|
|
@@ -36,6 +37,7 @@ export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterC
|
|
|
36
37
|
modelChange: EventEmitter<any>;
|
|
37
38
|
collectionChange: EventEmitter<FilterItemViewmodel[]>;
|
|
38
39
|
filterButtonClicked: EventEmitter<void>;
|
|
40
|
+
get hasClass(): boolean;
|
|
39
41
|
filteredCollection: FilterItemViewmodel[];
|
|
40
42
|
limitTo: number;
|
|
41
43
|
filterText: string;
|
|
@@ -51,6 +53,7 @@ export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterC
|
|
|
51
53
|
forceReadonly: boolean;
|
|
52
54
|
readonly: boolean;
|
|
53
55
|
maxLength: number;
|
|
56
|
+
defaultValue: ObjectConfigurationDefaultValueType;
|
|
54
57
|
decimals: number;
|
|
55
58
|
redErrorBackground: boolean;
|
|
56
59
|
checkBoxToTextModel: boolean;
|
|
@@ -5,6 +5,8 @@ export declare class InputDatePickerComponent extends BaseInputDatePickerDirecti
|
|
|
5
5
|
showClass(): boolean;
|
|
6
6
|
handleDateSelected(date: Date): void;
|
|
7
7
|
toggleCalendar(show: boolean): void;
|
|
8
|
+
finalizeDate(): void;
|
|
9
|
+
private isValidDateString;
|
|
8
10
|
handleDateChange(value: string): void;
|
|
9
11
|
protected modelSet(): void;
|
|
10
12
|
private setModelAsString;
|
|
@@ -3,6 +3,8 @@ import { BaseInputDatePickerDirective } from "../base-input-date-picker/base-inp
|
|
|
3
3
|
export declare class InputDateRangePickerComponent extends BaseInputDatePickerDirective {
|
|
4
4
|
firstDateAsString: any;
|
|
5
5
|
secondDateAsString: any;
|
|
6
|
+
private readonly EARLIEST_DATE;
|
|
7
|
+
private readonly LATEST_DATE;
|
|
6
8
|
private _doubleCalendarComponentRef;
|
|
7
9
|
firstInput: ElementRef;
|
|
8
10
|
secondInput: ElementRef;
|
|
@@ -15,6 +17,9 @@ export declare class InputDateRangePickerComponent extends BaseInputDatePickerDi
|
|
|
15
17
|
toggleCalendar(): void;
|
|
16
18
|
handleFirstDateChanged(value: string): void;
|
|
17
19
|
handleSecondDateChanged(value: string): void;
|
|
20
|
+
finalizeDates(): void;
|
|
21
|
+
private isValidDateString;
|
|
18
22
|
protected modelSet(): void;
|
|
19
23
|
private setModelAsString;
|
|
24
|
+
private formatDate;
|
|
20
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ObjectConfiguration } from "@colijnit/ioneconnector/build/model/object-configuration";
|
|
2
|
+
import { ObjectConfigurationDefaultValueType } from '@colijnit/ioneconnector/build/type/object-configuration-default-value-type';
|
|
2
3
|
export interface ScreenConfigAdapterComponent {
|
|
3
4
|
objectConfigName: string;
|
|
4
5
|
hidden: boolean;
|
|
@@ -6,6 +7,7 @@ export interface ScreenConfigAdapterComponent {
|
|
|
6
7
|
forceReadonly: boolean;
|
|
7
8
|
readonly: boolean;
|
|
8
9
|
maxLength: number;
|
|
10
|
+
defaultValue?: ObjectConfigurationDefaultValueType;
|
|
9
11
|
decimals: number;
|
|
10
12
|
redErrorBackground: boolean;
|
|
11
13
|
configObject?: ObjectConfiguration;
|