@colijnit/corecomponents_v12 259.1.4 → 259.1.6
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 +262 -232
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +3 -3
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +4 -4
- package/esm2015/lib/components/base-input-time/base-input-time-directive.js +25 -0
- package/esm2015/lib/components/calendar/calendar-template.component.js +30 -31
- package/esm2015/lib/components/filter-item/filter-item.component.js +58 -15
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +9 -8
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +2 -1
- package/esm2015/lib/components/input-time/input-time.component.js +74 -0
- package/esm2015/lib/components/input-time/input-time.module.js +24 -0
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +8 -2
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +9 -4
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +15 -18
- package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
- package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +234 -197
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base-input-time/base-input-time-directive.d.ts +14 -0
- package/lib/components/calendar/calendar-template.component.d.ts +6 -6
- package/lib/components/filter-item/filter-item.component.d.ts +3 -1
- package/lib/components/input-time/input-time.component.d.ts +8 -0
- package/lib/components/input-time/input-time.module.d.ts +2 -0
- package/lib/components/list-of-values/list-of-values-popup.component.d.ts +4 -1
- package/lib/components/list-of-values/list-of-values.component.d.ts +4 -1
- package/lib/components/list-of-values/style/_layout.scss +1 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +7 -9
- package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from "@angular/platform-browser";
|
|
3
|
+
import { BaseInputComponent } from "../base/base-input.component";
|
|
4
|
+
import { CoreComponentsIcon } from "../../core/enum/core-components-icon.enum";
|
|
5
|
+
export declare abstract class BaseInputTimeDirective extends BaseInputComponent<any> implements OnInit {
|
|
6
|
+
readonly rightIcon: CoreComponentsIcon;
|
|
7
|
+
parentForOverlay: ElementRef;
|
|
8
|
+
locale: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
leftIcon: CoreComponentsIcon;
|
|
11
|
+
leftIconData: SafeHtml;
|
|
12
|
+
leftIconClick: EventEmitter<MouseEvent>;
|
|
13
|
+
closeAfterDateSelection: boolean;
|
|
14
|
+
}
|
|
@@ -8,12 +8,12 @@ export declare class CalendarTemplateComponent {
|
|
|
8
8
|
highlightDaysBetweenDates: boolean;
|
|
9
9
|
showButtons: boolean;
|
|
10
10
|
doubleCalendar: boolean;
|
|
11
|
-
set selectedDate(
|
|
12
|
-
get selectedDate(): Date;
|
|
13
|
-
set secondSelectedDate(
|
|
14
|
-
get secondSelectedDate(): Date;
|
|
15
|
-
set secondHoveringDate(
|
|
16
|
-
|
|
11
|
+
set selectedDate(value: Date | string | number | null | undefined);
|
|
12
|
+
get selectedDate(): Date | null;
|
|
13
|
+
set secondSelectedDate(value: Date | string | number | null | undefined);
|
|
14
|
+
get secondSelectedDate(): Date | null;
|
|
15
|
+
set secondHoveringDate(value: Date | string | number | null | undefined);
|
|
16
|
+
private _coerceToDate;
|
|
17
17
|
dateSelected: EventEmitter<Date>;
|
|
18
18
|
secondDateSelected: EventEmitter<Date>;
|
|
19
19
|
hoveringDate: EventEmitter<Date>;
|
|
@@ -11,6 +11,7 @@ export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterC
|
|
|
11
11
|
private _changeDetector;
|
|
12
12
|
icons: typeof CoreComponentsIcon;
|
|
13
13
|
modes: typeof FilterItemMode;
|
|
14
|
+
dateFieldValue?: Date;
|
|
14
15
|
set mode(value: FilterItemMode);
|
|
15
16
|
get mode(): FilterItemMode;
|
|
16
17
|
set collection(value: FilterItemViewmodel[]);
|
|
@@ -74,7 +75,7 @@ export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterC
|
|
|
74
75
|
valueSelected(): boolean;
|
|
75
76
|
onModelChange(text: string): void;
|
|
76
77
|
applyFilter(text: string): Promise<[]>;
|
|
77
|
-
onButtonClicked(): void
|
|
78
|
+
onButtonClicked(): Promise<void>;
|
|
78
79
|
private uncheckForSingleSelect;
|
|
79
80
|
private readModelForMode;
|
|
80
81
|
private _createModelForFilterList;
|
|
@@ -86,6 +87,7 @@ export declare class FilterItemComponent implements OnInit, ScreenConfigAdapterC
|
|
|
86
87
|
private _createModelForCheckboxToText;
|
|
87
88
|
private _createModelForCheckboxToSimpleText;
|
|
88
89
|
private _createModelForCheckboxToBinary;
|
|
90
|
+
private _createModelForDateField;
|
|
89
91
|
private _createModelForDateRange;
|
|
90
92
|
private _formatDateToString;
|
|
91
93
|
private _readModelForFilterList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseInputTimeDirective } from "../base-input-time/base-input-time-directive";
|
|
2
|
+
export declare class InputTimeComponent extends BaseInputTimeDirective {
|
|
3
|
+
timeAsString: string;
|
|
4
|
+
protected modelSet(): void;
|
|
5
|
+
private setTimeAsString;
|
|
6
|
+
handleTimeChange(value: string): void;
|
|
7
|
+
handleClearIconClicked(): void;
|
|
8
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { InputSearchComponent } from '../input-search/input-search.component';
|
|
3
|
+
import { IconCacheService } from '../icon/icon-cache.service';
|
|
3
4
|
export interface lovViewModel {
|
|
4
5
|
checked: boolean;
|
|
5
6
|
model: any;
|
|
6
7
|
}
|
|
7
8
|
export declare class ListOfValuesPopupComponent implements OnInit {
|
|
9
|
+
iconCacheService: IconCacheService;
|
|
8
10
|
private _elementRef;
|
|
9
11
|
set lovItems(children: any);
|
|
10
12
|
dropDownList: ElementRef;
|
|
@@ -16,6 +18,7 @@ export declare class ListOfValuesPopupComponent implements OnInit {
|
|
|
16
18
|
customCssClass: string;
|
|
17
19
|
searchDisabled: boolean;
|
|
18
20
|
parentForOverlay: ElementRef;
|
|
21
|
+
optionIcon: string;
|
|
19
22
|
set collection(value: any[]);
|
|
20
23
|
get collection(): any[];
|
|
21
24
|
modelChange: EventEmitter<any>;
|
|
@@ -31,7 +34,7 @@ export declare class ListOfValuesPopupComponent implements OnInit {
|
|
|
31
34
|
private _searchTerm;
|
|
32
35
|
private _lovItems;
|
|
33
36
|
private _searchInput;
|
|
34
|
-
constructor(_elementRef: ElementRef);
|
|
37
|
+
constructor(iconCacheService: IconCacheService, _elementRef: ElementRef);
|
|
35
38
|
ngOnInit(): void;
|
|
36
39
|
handleInputKeyDown(event: KeyboardEvent): boolean;
|
|
37
40
|
filterViewModels(): void;
|
|
@@ -6,8 +6,10 @@ import { SafeHtml } from '@angular/platform-browser';
|
|
|
6
6
|
import { FormComponent } from "../form/form.component";
|
|
7
7
|
import { FormInputUserModelChangeListenerService } from "../../core/service/form-input-user-change-listener.service";
|
|
8
8
|
import { NgZoneWrapperService } from "../../core/service/ng-zone-wrapper.service";
|
|
9
|
+
import { IconCacheService } from '../icon/icon-cache.service';
|
|
9
10
|
export declare class ListOfValuesComponent extends BaseInputComponent<any> implements OnInit {
|
|
10
11
|
formComponent: FormComponent;
|
|
12
|
+
iconCacheService: IconCacheService;
|
|
11
13
|
protected changeDetector: ChangeDetectorRef;
|
|
12
14
|
protected overlayService: OverlayService;
|
|
13
15
|
protected componentFactoryResolver: ComponentFactoryResolver;
|
|
@@ -21,6 +23,7 @@ export declare class ListOfValuesComponent extends BaseInputComponent<any> imple
|
|
|
21
23
|
multiselect: boolean;
|
|
22
24
|
largeCollection: boolean;
|
|
23
25
|
displayField: string;
|
|
26
|
+
optionIcon: string;
|
|
24
27
|
set collection(value: any[]);
|
|
25
28
|
get collection(): any[];
|
|
26
29
|
collectionLoadFn: Function;
|
|
@@ -41,7 +44,7 @@ export declare class ListOfValuesComponent extends BaseInputComponent<any> imple
|
|
|
41
44
|
private _collection;
|
|
42
45
|
private debounceTimeout;
|
|
43
46
|
private _lovPopupComponentRef;
|
|
44
|
-
constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, overlayService: OverlayService, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
|
|
47
|
+
constructor(formComponent: FormComponent, iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, overlayService: OverlayService, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
|
|
45
48
|
ngOnInit(): void;
|
|
46
49
|
handleInputModelChange(model: string): void;
|
|
47
50
|
onModelChange(text: string): void;
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
.lov-options li {
|
|
136
136
|
display: flex;
|
|
137
137
|
align-items: center;
|
|
138
|
+
gap: 10px;
|
|
138
139
|
padding: $cc-co-list-of-values-lov-options-li-padding;
|
|
139
140
|
border-radius: $cc-co-list-of-values-lov-options-li-border-radius;
|
|
140
141
|
margin: $cc-co-list-of-values-lov-options-li-margin;
|
|
@@ -4,12 +4,10 @@ import { BaseSimpleGridComponent } from './base-simple-grid.component';
|
|
|
4
4
|
import { ColumnAlign } from './simple-grid-column.directive';
|
|
5
5
|
import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
|
|
6
6
|
import { IconCacheService } from '../icon/icon-cache.service';
|
|
7
|
-
import { ExcelExportService } from '../../service/excel-export.service';
|
|
8
7
|
export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
9
8
|
icons: IconCacheService;
|
|
10
9
|
private _changeDetection;
|
|
11
10
|
private _formMaster;
|
|
12
|
-
private excelExportService;
|
|
13
11
|
readonly defaultTextAlign: ColumnAlign;
|
|
14
12
|
set headerCells(cells: any);
|
|
15
13
|
rowElements: QueryList<ElementRef>;
|
|
@@ -42,7 +40,9 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
42
40
|
private _doubleClicked;
|
|
43
41
|
private _newRow;
|
|
44
42
|
private _newRowReference;
|
|
45
|
-
|
|
43
|
+
protected readonly IconCacheService: typeof IconCacheService;
|
|
44
|
+
protected readonly CoreComponentsIcon: typeof CoreComponentsIcon;
|
|
45
|
+
constructor(icons: IconCacheService, _changeDetection: ChangeDetectorRef, _formMaster: FormMasterService);
|
|
46
46
|
handleClickOutsideRow(): void;
|
|
47
47
|
getIsRowDisabled(idx: number): boolean;
|
|
48
48
|
isRowDisabled(row: any, index: number): Promise<boolean>;
|
|
@@ -61,6 +61,10 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
61
61
|
sortColumn(col: any, columnValue: string): void;
|
|
62
62
|
showAllColumns(): void;
|
|
63
63
|
exportToExcel(): void;
|
|
64
|
+
goToPreviousPage(): void;
|
|
65
|
+
goToNextPage(): void;
|
|
66
|
+
setCurrentPage(page: number): void;
|
|
67
|
+
get isNewRow(): boolean;
|
|
64
68
|
private _filterSelectedOrReturnAll;
|
|
65
69
|
protected prepareDataRow(row: any, index: number): void;
|
|
66
70
|
private _resetDblClick;
|
|
@@ -76,12 +80,6 @@ export declare class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
76
80
|
private _getNextEditRowIndex;
|
|
77
81
|
private _getPreviousEditRowIndex;
|
|
78
82
|
private _saveRow;
|
|
79
|
-
goToPreviousPage(): void;
|
|
80
|
-
goToNextPage(): void;
|
|
81
|
-
setCurrentPage(page: number): void;
|
|
82
83
|
private _detectChanges;
|
|
83
84
|
private _resetEdit;
|
|
84
|
-
get isNewRow(): boolean;
|
|
85
|
-
protected readonly IconCacheService: typeof IconCacheService;
|
|
86
|
-
protected readonly CoreComponentsIcon: typeof CoreComponentsIcon;
|
|
87
85
|
}
|
|
@@ -183,6 +183,7 @@ export declare enum CoreComponentsIcon {
|
|
|
183
183
|
Orderpicking = "orderpicking",
|
|
184
184
|
OutgoingStorage = "outgoing_storage",
|
|
185
185
|
OverBooking = "over_booking",
|
|
186
|
+
ParagraphSolid = "paragraph_solid",
|
|
186
187
|
PauseCircle = "pause_circle",
|
|
187
188
|
PencilRoundOpen = "pencil_round_open",
|
|
188
189
|
PenToSquareSolid = "pen_to_square_solid",
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export * from './lib/components/input-checkbox/input-checkbox.module';
|
|
|
35
35
|
export * from './lib/components/input-checkbox/input-checkbox.component';
|
|
36
36
|
export * from './lib/components/input-date-picker/input-date-picker.module';
|
|
37
37
|
export * from './lib/components/input-date-picker/input-date-picker.component';
|
|
38
|
+
export * from './lib/components/input-time/input-time.module';
|
|
39
|
+
export * from './lib/components/input-time/input-time.component';
|
|
38
40
|
export * from './lib/components/calendar/calendar.module';
|
|
39
41
|
export * from './lib/components/calendar/calendar.component';
|
|
40
42
|
export * from './lib/components/double-calendar/double-calendar.module';
|