@colijnit/corecomponents_v12 12.1.6 → 12.1.8

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.
@@ -1,10 +1,14 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { CoreComponentsIcon } from '../../core/enum/core-components-icon.enum';
3
3
  import { FilterItemViewmodel } from './filter-item-viewmodel';
4
4
  import { IconCacheService } from '../icon/icon-cache.service';
5
+ import { FilterItemMode } from '../../core/enum/filterItem-mode.enum';
5
6
  export declare class FilterItemComponent implements OnInit {
6
7
  iconService: IconCacheService;
8
+ private _changeDetector;
7
9
  icons: typeof CoreComponentsIcon;
10
+ modes: typeof FilterItemMode;
11
+ mode: FilterItemMode;
8
12
  set collection(value: FilterItemViewmodel[]);
9
13
  get collection(): FilterItemViewmodel[];
10
14
  placeholder: string;
@@ -14,28 +18,58 @@ export declare class FilterItemComponent implements OnInit {
14
18
  collectionLoadFn: Function;
15
19
  customContent: boolean;
16
20
  showAllResults: boolean;
17
- singleSelect: boolean;
18
21
  filterButtonLabel: string;
19
22
  searchPlaceholder: string;
20
23
  showMoreLabel: string;
21
24
  showLessLabel: string;
22
25
  noResultsLabel: string;
23
- collectionChange: EventEmitter<any>;
26
+ sliderDefaultMin: number;
27
+ sliderDefaultMax: number;
28
+ set model(filterString: any);
29
+ get model(): any;
30
+ modelChange: EventEmitter<any>;
31
+ collectionChange: EventEmitter<FilterItemViewmodel[]>;
24
32
  filterButtonClicked: EventEmitter<void>;
25
- showClass(): boolean;
26
33
  filteredCollection: FilterItemViewmodel[];
27
34
  limitTo: number;
28
35
  filterText: string;
29
36
  showButton: boolean;
37
+ sliderMin: number;
38
+ sliderMax: number;
39
+ dateRangeStart: Date;
40
+ dateRangeEnd: Date;
41
+ checkBoxToTextModel: boolean;
30
42
  private _collection;
31
- constructor(iconService: IconCacheService);
43
+ private _model;
44
+ constructor(iconService: IconCacheService, _changeDetector: ChangeDetectorRef);
32
45
  ngOnInit(): void;
33
46
  setToInitialLimit(): void;
34
47
  increaseLimit(): void;
35
48
  moreToShow(): boolean;
36
49
  lessToShow(): boolean;
37
- handleModelChange(model: FilterItemViewmodel): void;
50
+ handleModelChange(model: any): void;
51
+ private uncheckForSingleSelect;
38
52
  valueSelected(): boolean;
39
53
  applyFilter(text: string): Promise<[]>;
40
54
  onButtonClicked(): void;
55
+ private _createModelForFilterList;
56
+ private _createModelForStringCollectionList;
57
+ private _createModelForSingleSelectList;
58
+ private _createModelForSelectListWithNumberOutput;
59
+ private _createModelForSliderMode;
60
+ private _createModelForCheckboxToText;
61
+ private _createModelForCheckboxToSimpleText;
62
+ private _createModelForCheckboxToBinary;
63
+ private _createModelForDateRange;
64
+ private _formatDateToString;
65
+ private _readModelForFilterList;
66
+ private _readModelForSingleSelectList;
67
+ private _readModelForStringCollectionList;
68
+ private _readModelForSelectListWithNumberOutput;
69
+ private _uncheckAll;
70
+ private _readModelForSliderMode;
71
+ private _readModelForCheckboxToText;
72
+ private _readModelForCheckboxToBinary;
73
+ private _readModelForDateField;
74
+ private _readModelForDateRangeField;
41
75
  }
@@ -46,6 +46,15 @@
46
46
  height: $cc-co-filter-item-no-results-height;
47
47
  }
48
48
  }
49
+
50
+ .co-filter-item-slider-content {
51
+ display: flex;
52
+ align-items: center;
53
+ flex-direction: row;
54
+ column-gap: $cc-co-filter-item-collection-gap;
55
+ }
56
+
57
+
49
58
  .co-filter-item-collection-results, .co-filter-item-custom-content {
50
59
  display: flex;
51
60
  flex-direction: column;
@@ -0,0 +1,14 @@
1
+ export declare enum FilterItemMode {
2
+ Filterlist = "filterlist",
3
+ SingleSelectList = "singleSelectList",
4
+ SelectListWithStringCollectionOutput = "selectListWithStringCollectionOutput",
5
+ SelectListWithNumberOutput = "selectListWithNumberOutput",
6
+ Slider = "slider",
7
+ TextField = "textField",
8
+ DateField = "dateField",
9
+ DateRangeField = "dateRangeField",
10
+ Checkbox = "checkbox",
11
+ CheckboxToSimpleText = "checkboxToSimpleText",
12
+ CheckboxToText = "checkboxToText",
13
+ CheckboxToBinary = "checkboxToBinary"
14
+ }
@@ -3,6 +3,11 @@ import { OverlayParentDirective } from './overlay-parent.directive';
3
3
  export declare class OverlayDirective implements OnDestroy, OnInit {
4
4
  set parent(value: OverlayParentDirective | ElementRef);
5
5
  view: HTMLElement;
6
+ /**
7
+ * true; Element is added to the parent template
8
+ * false; Element is added to the bottom of the DOM
9
+ */
10
+ inline: boolean;
6
11
  keepInView: boolean;
7
12
  inheritWidth: boolean;
8
13
  rightAlign: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "12.1.6",
3
+ "version": "12.1.8",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './lib/components/icon-collapse-handle/icon-collapse-handle.module
28
28
  export * from './lib/components/icon-collapse-handle/icon-collapse-handle.component';
29
29
  export * from './lib/core/enum/co-direction';
30
30
  export * from './lib/core/enum/co-orientation';
31
+ export * from './lib/core/enum/filterItem-mode.enum';
31
32
  export * from './lib/components/image/image.module';
32
33
  export * from './lib/components/image/image.component';
33
34
  export * from './lib/components/input-checkbox/input-checkbox.module';