@colijnit/corecomponents_v12 300.1.1 → 300.1.3

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/index.d.ts CHANGED
@@ -192,6 +192,7 @@ declare enum CoreComponentsIcon {
192
192
  Linechart = "linechart",
193
193
  LinkedProducts = "linked_products",
194
194
  LinkCircle = "link_circle",
195
+ ListRegular = "list_regular",
195
196
  ListView = "list_view",
196
197
  Location = "location",
197
198
  Lock = "lock",
@@ -2133,6 +2134,7 @@ declare class PopupWindowShellComponent implements AfterViewInit, OnDestroy, OnI
2133
2134
  popupWindow: PopupWindowModel;
2134
2135
  hasMobileSizings: boolean;
2135
2136
  protected _viewContainer: ViewContainerRef;
2137
+ protected _blankViewContainer: ViewContainerRef;
2136
2138
  protected _appPopupButtons: PopupButtonsComponent;
2137
2139
  isError: boolean;
2138
2140
  isWarning: boolean;
@@ -2792,6 +2794,7 @@ declare class ListOfValuesComponent extends BaseInputComponent<any> implements O
2792
2794
  searchPlaceholder: string;
2793
2795
  searchDisabled: boolean;
2794
2796
  showChips: boolean;
2797
+ leftIconClick: EventEmitter<void>;
2795
2798
  showClass(): boolean;
2796
2799
  isSelectOpen: boolean;
2797
2800
  state: string;
@@ -2821,7 +2824,7 @@ declare class ListOfValuesComponent extends BaseInputComponent<any> implements O
2821
2824
  checkModel(): void;
2822
2825
  private _setSelectedModel;
2823
2826
  static ɵfac: i0.ɵɵFactoryDeclaration<ListOfValuesComponent, [{ optional: true; }, null, null, null, null, null, null]>;
2824
- static ɵcmp: i0.ɵɵComponentDeclaration<ListOfValuesComponent, "co-list-of-values", never, { "model": { "alias": "model"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "showToggleAll": { "alias": "showToggleAll"; "required": false; }; "largeCollection": { "alias": "largeCollection"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "collection": { "alias": "collection"; "required": false; }; "collectionLoadFn": { "alias": "collectionLoadFn"; "required": false; }; "collectionLoadFnProp": { "alias": "collectionLoadFnProp"; "required": false; }; "leftIconData": { "alias": "leftIconData"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "searchDisabled": { "alias": "searchDisabled"; "required": false; }; "showChips": { "alias": "showChips"; "required": false; }; }, {}, never, never, false, never>;
2827
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListOfValuesComponent, "co-list-of-values", never, { "model": { "alias": "model"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "showToggleAll": { "alias": "showToggleAll"; "required": false; }; "largeCollection": { "alias": "largeCollection"; "required": false; }; "displayField": { "alias": "displayField"; "required": false; }; "optionIcon": { "alias": "optionIcon"; "required": false; }; "collection": { "alias": "collection"; "required": false; }; "collectionLoadFn": { "alias": "collectionLoadFn"; "required": false; }; "collectionLoadFnProp": { "alias": "collectionLoadFnProp"; "required": false; }; "leftIconData": { "alias": "leftIconData"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "searchDisabled": { "alias": "searchDisabled"; "required": false; }; "showChips": { "alias": "showChips"; "required": false; }; }, { "leftIconClick": "leftIconClick"; }, never, never, false, never>;
2825
2828
  }
2826
2829
 
2827
2830
  interface lovViewModel {
@@ -3745,8 +3748,15 @@ interface SchedulingObject {
3745
3748
  declare class HourSchedulingExpandableComponent implements OnInit {
3746
3749
  private cdRef;
3747
3750
  private eRef;
3751
+ iconCacheService: IconCacheService;
3752
+ readonly icons: typeof CoreComponentsIcon;
3748
3753
  hourLabels: string[];
3749
3754
  scheduledObjects: SchedulingObject[];
3755
+ selectedHour: string;
3756
+ layouts: {
3757
+ leftPercent: number;
3758
+ widthPercent: number;
3759
+ }[];
3750
3760
  private resizing;
3751
3761
  private resizeDirection;
3752
3762
  private initialY;
@@ -3771,6 +3781,7 @@ declare class HourSchedulingExpandableComponent implements OnInit {
3771
3781
  currentHour: string;
3772
3782
  data: string;
3773
3783
  }>;
3784
+ taskCreationEvent: EventEmitter<string>;
3774
3785
  moveBetweenCalendarsEvent: EventEmitter<{
3775
3786
  hour: string;
3776
3787
  data: SchedulingObject;
@@ -3784,7 +3795,7 @@ declare class HourSchedulingExpandableComponent implements OnInit {
3784
3795
  clickOut(event: {
3785
3796
  target: any;
3786
3797
  }): void;
3787
- constructor(cdRef: ChangeDetectorRef, eRef: ElementRef);
3798
+ constructor(cdRef: ChangeDetectorRef, eRef: ElementRef, iconCacheService: IconCacheService);
3788
3799
  ngOnInit(): void;
3789
3800
  private _findNextObject;
3790
3801
  private _findPreviousObject;
@@ -3806,8 +3817,14 @@ declare class HourSchedulingExpandableComponent implements OnInit {
3806
3817
  convertTZ(date: any, tzString: any): Date;
3807
3818
  convertDateToEuropean(date: Date): Date;
3808
3819
  handleDeselectAll(): void;
3820
+ selectHalfHourBlock(mouseEvent: MouseEvent, hour: string, first?: boolean): void;
3821
+ handleHourTaskCreate(mouseEvent: MouseEvent, hour: string, first?: boolean): void;
3822
+ calculateLeftAndWidthOfObjects(): {
3823
+ leftPercent: number;
3824
+ widthPercent: number;
3825
+ }[];
3809
3826
  static ɵfac: i0.ɵɵFactoryDeclaration<HourSchedulingExpandableComponent, never>;
3810
- static ɵcmp: i0.ɵɵComponentDeclaration<HourSchedulingExpandableComponent, "co-hour-scheduling-expandable", never, { "schedule": { "alias": "schedule"; "required": false; }; "startTimeProp": { "alias": "startTimeProp"; "required": false; }; "endTimeProp": { "alias": "endTimeProp"; "required": false; }; "objectsProp": { "alias": "objectsProp"; "required": false; }; "childProp": { "alias": "childProp"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; "idProp": { "alias": "idProp"; "required": false; }; }, { "timeChangeEvent": "timeChangeEvent"; "newObjectPlanEvent": "newObjectPlanEvent"; "moveBetweenCalendarsEvent": "moveBetweenCalendarsEvent"; }, never, ["*"], false, never>;
3827
+ static ɵcmp: i0.ɵɵComponentDeclaration<HourSchedulingExpandableComponent, "co-hour-scheduling-expandable", never, { "schedule": { "alias": "schedule"; "required": false; }; "startTimeProp": { "alias": "startTimeProp"; "required": false; }; "endTimeProp": { "alias": "endTimeProp"; "required": false; }; "objectsProp": { "alias": "objectsProp"; "required": false; }; "childProp": { "alias": "childProp"; "required": false; }; "customTemplate": { "alias": "customTemplate"; "required": false; }; "idProp": { "alias": "idProp"; "required": false; }; }, { "timeChangeEvent": "timeChangeEvent"; "newObjectPlanEvent": "newObjectPlanEvent"; "taskCreationEvent": "taskCreationEvent"; "moveBetweenCalendarsEvent": "moveBetweenCalendarsEvent"; }, never, ["*"], false, never>;
3811
3828
  }
3812
3829
 
3813
3830
  declare class HourSchedulingExpandableTemplateComponent {
@@ -3826,12 +3843,8 @@ declare class HourSchedulingExpandableTemplateComponent {
3826
3843
  endTimeProp: string;
3827
3844
  showClass(): boolean;
3828
3845
  onExpandableDragStart(event: DragEvent, obj: SchedulingObject$1): void;
3829
- calculateLeftAndWidthOfObjects(): {
3830
- leftPercent: number;
3831
- widthPercent: number;
3832
- }[];
3833
3846
  static ɵfac: i0.ɵɵFactoryDeclaration<HourSchedulingExpandableTemplateComponent, never>;
3834
- static ɵcmp: i0.ɵɵComponentDeclaration<HourSchedulingExpandableTemplateComponent, "co-hour-scheduling-expandable-template", never, { "objectTemplate": { "alias": "objectTemplate"; "required": false; }; "objects": { "alias": "objects"; "required": false; }; "onDragStartCustom": { "alias": "onDragStartCustom"; "required": false; }; "onResizeStart": { "alias": "onResizeStart"; "required": false; }; "onSelectBlock": { "alias": "onSelectBlock"; "required": false; }; "startTimeProp": { "alias": "startTimeProp"; "required": false; }; "endTimeProp": { "alias": "endTimeProp"; "required": false; }; }, {}, never, never, false, never>;
3847
+ static ɵcmp: i0.ɵɵComponentDeclaration<HourSchedulingExpandableTemplateComponent, "co-hour-scheduling-expandable-template", never, { "layouts": { "alias": "layouts"; "required": false; }; "objectTemplate": { "alias": "objectTemplate"; "required": false; }; "objects": { "alias": "objects"; "required": false; }; "onDragStartCustom": { "alias": "onDragStartCustom"; "required": false; }; "onResizeStart": { "alias": "onResizeStart"; "required": false; }; "onSelectBlock": { "alias": "onSelectBlock"; "required": false; }; "startTimeProp": { "alias": "startTimeProp"; "required": false; }; "endTimeProp": { "alias": "endTimeProp"; "required": false; }; }, {}, never, never, false, never>;
3835
3848
  }
3836
3849
 
3837
3850
  declare class HourSchedulingExpandableTemplateModule {
@@ -3842,7 +3855,7 @@ declare class HourSchedulingExpandableTemplateModule {
3842
3855
 
3843
3856
  declare class HourSchedulingExpandableComponentModule {
3844
3857
  static ɵfac: i0.ɵɵFactoryDeclaration<HourSchedulingExpandableComponentModule, never>;
3845
- static ɵmod: i0.ɵɵNgModuleDeclaration<HourSchedulingExpandableComponentModule, [typeof HourSchedulingExpandableComponent], [typeof i2.CommonModule, typeof HourSchedulingComponentModule, typeof HourSchedulingExpandableTemplateModule], [typeof HourSchedulingExpandableComponent]>;
3858
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HourSchedulingExpandableComponentModule, [typeof HourSchedulingExpandableComponent], [typeof i2.CommonModule, typeof HourSchedulingComponentModule, typeof HourSchedulingExpandableTemplateModule, typeof IconModule], [typeof HourSchedulingExpandableComponent]>;
3846
3859
  static ɵinj: i0.ɵɵInjectorDeclaration<HourSchedulingExpandableComponentModule>;
3847
3860
  }
3848
3861
 
@@ -1,26 +1,46 @@
1
-
2
-
3
1
  @include export-module('cc-hour-scheduling-expandable-layout') {
4
2
  .co-hour-scheduling-expandable {
3
+ --hour-ledger-width: 80px;
4
+
5
5
  display: flex;
6
6
  flex-direction: column;
7
7
  padding: 30px 0;
8
8
  background: #FFF;
9
9
 
10
+ .wrapper {
11
+ position: relative;
12
+ }
13
+
14
+ .scheduled-objects {
15
+ position: absolute;
16
+ top: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ left: var(--hour-ledger-width);
20
+
21
+ pointer-events: none;
22
+ }
23
+
10
24
  .custom-scheduled-object {
11
25
  position: absolute;
12
- left: calc(55px + var(--left));
13
- width: calc(var(--width) - 55px);
14
26
 
27
+ left: var(--left);
28
+ width: var(--width);
15
29
  top: var(--top);
16
30
  height: var(--height);
31
+
32
+ box-sizing: border-box;
33
+ pointer-events: auto;
34
+
17
35
  cursor: grab;
18
36
  background: #F5F5FC;
19
37
  border: 1px solid #F5F5FC;
20
38
  transition: background-color 0.3s ease;
21
39
  padding: 0;
22
40
  margin: 0 0.5em;
23
- .top-resizer, .bottom-resizer {
41
+
42
+ .top-resizer,
43
+ .bottom-resizer {
24
44
  height: 5px;
25
45
  position: absolute;
26
46
  width: 100%;
@@ -35,46 +55,71 @@
35
55
  cursor: s-resize;
36
56
  bottom: 0;
37
57
  }
58
+
38
59
  &:hover {
39
60
  }
61
+
40
62
  &.selected {
41
63
  border: 1px solid #1A73E8;
42
64
  cursor: pointer;
43
65
  }
44
66
  }
45
67
 
46
- .wrapper {
47
- position: relative;
48
- }
49
-
50
- .scheduled-objects {
51
- display: flex;
52
- flex-direction: column;
53
- height: 100%;
54
-
55
- }
56
68
  .time-block {
57
69
  display: flex;
58
70
  justify-content: space-between;
59
71
  align-items: flex-start;
60
- background-color: #ffffff;
72
+ background-color: #FFFFFF;
61
73
  }
62
74
 
63
75
  .hour-label {
64
- font-weight: bold;
65
- width: 60px;
76
+ box-sizing: border-box;
77
+ flex: 0 0 var(--hour-ledger-width);
78
+ width: var(--hour-ledger-width);
66
79
  padding: 0 10px;
80
+
81
+ font-weight: bold;
67
82
  position: relative;
68
83
  top: -10px;
69
84
  }
85
+
70
86
  .drag-over {
71
87
  background-color: rgba(26, 115, 232, 0.2);
72
88
  transition: background-color 0.1s ease;
73
89
  }
90
+
74
91
  .object-display {
75
92
  display: flex;
76
- width: 100%;
93
+ flex: 1 1 auto;
94
+ min-width: 0;
95
+ width: auto;
77
96
  flex-direction: column;
97
+
98
+ .first-half-hour,
99
+ .second-half-hour {
100
+ background: none;
101
+
102
+ &.selected {
103
+ background-color: rgba(26, 115, 232, 0.2);
104
+ transition: background-color 0.1s ease;
105
+ }
106
+
107
+ .toggle-icon {
108
+ height: 20px;
109
+ width: 20px;
110
+ opacity: 0;
111
+ position: absolute;
112
+ display: flex;
113
+ align-items: center;
114
+ right: 8px;
115
+ left: auto;
116
+
117
+ &.visible {
118
+ opacity: 1;
119
+ }
120
+ }
121
+ }
122
+
78
123
  .object-half {
79
124
  padding: 5px;
80
125
  min-height: 30px;
@@ -82,13 +127,16 @@
82
127
  border-color: #F5F5FC;
83
128
  border-width: 1px 0 1px 0;
84
129
  transition: background-color 0.3s ease;
130
+
85
131
  &.has-objects {
86
132
  cursor: grab;
87
133
  background: #F5F5FC;
88
134
  border: 1px solid #F5F5FC;
135
+
89
136
  &:hover {
90
137
  background-color: rgba(26, 115, 232, 0.2);
91
138
  }
139
+
92
140
  &.active {
93
141
  background-color: rgba(26, 115, 232, 0.2);
94
142
  border: 1px solid #1A73E8;
@@ -1,8 +1,8 @@
1
- @include export-module('co-list-of-values-theme') {
2
- .co-list-of-values-popup {
3
- .lov-highlight {
4
- background-color: $cc-co-list-of-values-highlight-background-color;
5
- color: $cc-co-list-of-values-highlight-text-color;
6
- }
7
- }
8
- }
1
+ @include export-module('co-list-of-values-theme') {
2
+ .co-list-of-values-popup {
3
+ .lov-highlight {
4
+ background-color: $cc-co-list-of-values-highlight-background-color;
5
+ color: $cc-co-list-of-values-highlight-text-color;
6
+ }
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "300.1.1",
3
+ "version": "300.1.3",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {