@colijnit/corecomponents_v12 259.1.5 → 259.1.7

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.
Files changed (31) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +256 -86
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +19 -18
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +20 -19
  6. package/esm2015/lib/components/base-input-time/base-input-time-directive.js +25 -0
  7. package/esm2015/lib/components/calendar/calendar-template.component.js +30 -31
  8. package/esm2015/lib/components/filter-item/filter-item.component.js +58 -15
  9. package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +9 -8
  10. package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +1 -1
  11. package/esm2015/lib/components/input-text/input-text.component.js +2 -1
  12. package/esm2015/lib/components/input-time/input-time.component.js +74 -0
  13. package/esm2015/lib/components/input-time/input-time.module.js +24 -0
  14. package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +8 -2
  15. package/esm2015/lib/components/list-of-values/list-of-values.component.js +9 -4
  16. package/esm2015/lib/core/enum/core-components-icon.enum.js +2 -1
  17. package/esm2015/lib/core/model/core-components-icon-svg.js +2 -1
  18. package/esm2015/public-api.js +3 -1
  19. package/fesm2015/colijnit-corecomponents_v12.js +220 -55
  20. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  21. package/lib/components/base-input-time/base-input-time-directive.d.ts +14 -0
  22. package/lib/components/calendar/calendar-template.component.d.ts +6 -6
  23. package/lib/components/filter-item/filter-item.component.d.ts +3 -1
  24. package/lib/components/input-time/input-time.component.d.ts +8 -0
  25. package/lib/components/input-time/input-time.module.d.ts +2 -0
  26. package/lib/components/list-of-values/list-of-values-popup.component.d.ts +4 -1
  27. package/lib/components/list-of-values/list-of-values.component.d.ts +4 -1
  28. package/lib/components/list-of-values/style/_layout.scss +1 -0
  29. package/lib/core/enum/core-components-icon.enum.d.ts +1 -0
  30. package/package.json +1 -1
  31. 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(date: Date);
12
- get selectedDate(): Date;
13
- set secondSelectedDate(date: Date);
14
- get secondSelectedDate(): Date;
15
- set secondHoveringDate(date: Date);
16
- get secondHoveringDate(): Date;
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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class InputTimeModule {
2
+ }
@@ -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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "259.1.5",
3
+ "version": "259.1.7",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
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';