@colijnit/sharedcomponents 1.0.55 → 1.0.57

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 (35) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +66 -51
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +6 -2
  5. package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +4 -2
  6. package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +6 -2
  7. package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +29 -18
  8. package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +4 -4
  9. package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +5 -5
  10. package/esm2015/lib/components/date-planning/date-planning.component.js +6 -1
  11. package/esm2015/lib/components/date-planning/date-planning.module.js +1 -1
  12. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +4 -2
  13. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +4 -1
  14. package/esm2015/lib/enum/calendar-view.enum.js +2 -1
  15. package/esm2015/lib/model/agenda-event.model.js +1 -1
  16. package/esm2015/lib/utils/calendar.utils.js +3 -4
  17. package/esm2015/public-api.js +4 -1
  18. package/fesm2015/colijnit-sharedcomponents.js +70 -38
  19. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  20. package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +1 -0
  21. package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +1 -0
  22. package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +1 -0
  23. package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +1 -0
  24. package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +1 -0
  25. package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +1 -0
  26. package/lib/components/date-planning/component/agenda/style/_layout.scss +12 -12
  27. package/lib/components/date-planning/component/agenda/style/_material-definition.scss +2 -1
  28. package/lib/components/date-planning/date-planning.component.d.ts +3 -1
  29. package/lib/components/date-planning/style/material.scss +2 -0
  30. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +1 -0
  31. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +1 -0
  32. package/lib/enum/calendar-view.enum.d.ts +1 -0
  33. package/lib/model/agenda-event.model.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +3 -0
@@ -2,5 +2,6 @@ import { AgendaEvent } from "../../../../model/agenda-event.model";
2
2
  import { AgendaBaseViewComponent } from "./agenda-base-view.component";
3
3
  export declare class AgendaDayViewComponent extends AgendaBaseViewComponent {
4
4
  events: AgendaEvent[];
5
+ customEventObject: boolean;
5
6
  protected prepareViewData(): void;
6
7
  }
@@ -8,6 +8,7 @@ export declare class AgendaEventComponent implements OnInit, OnDestroy {
8
8
  iconCacheService: IconCacheService;
9
9
  readonly icons: typeof Icon;
10
10
  event: AgendaEvent;
11
+ customEventObject: boolean;
11
12
  halfHourHeight: number;
12
13
  eventChecked: EventEmitter<AgendaEvent>;
13
14
  constructor(_elementRef: ElementRef, _renderer: Renderer2, iconCacheService: IconCacheService);
@@ -3,6 +3,7 @@ import { CalendarView } from "../../../../enum/calendar-view.enum";
3
3
  import { AgendaEvent } from "../../../../model/agenda-event.model";
4
4
  export declare class AgendaEventsComponent {
5
5
  readonly viewTypes: typeof CalendarView;
6
+ customEventObject: boolean;
6
7
  view: CalendarView;
7
8
  type: string;
8
9
  events: AgendaEvent[];
@@ -15,6 +15,7 @@ export declare class AgendaHeaderComponent implements OnInit, OnDestroy, AfterCo
15
15
  readonly icons: typeof Icon;
16
16
  readonly viewTypes: typeof CalendarView;
17
17
  private readonly scrollbarWidth;
18
+ today: Date;
18
19
  set selectedDate(value: Date);
19
20
  get selectedDate(): Date;
20
21
  view: CalendarView;
@@ -4,6 +4,7 @@ import { AgendaEvent } from "../../../../model/agenda-event.model";
4
4
  import { AgendaEventPerDay } from "../../../../model/agenda-event-per-day.model";
5
5
  export declare class AgendaViewComponent {
6
6
  view: CalendarView;
7
+ customEventObject: boolean;
7
8
  selectedDate: Date;
8
9
  eventsPerDay: AgendaEventPerDay[];
9
10
  readonly eventChecked: EventEmitter<AgendaEvent>;
@@ -3,6 +3,7 @@ import { Week } from "../../../../model/week.model";
3
3
  import { AgendaBaseViewComponent } from "./agenda-base-view.component";
4
4
  export declare class AgendaWeekViewComponent extends AgendaBaseViewComponent {
5
5
  view: CalendarView;
6
+ customEventObject: boolean;
6
7
  week: Week;
7
8
  protected prepareViewData(): void;
8
9
  }
@@ -37,13 +37,15 @@
37
37
  display: flex;
38
38
  flex-basis: $agenda-hour-view-labels-width;
39
39
  flex-shrink: 0;
40
- border: 1px solid $color_border;
40
+ border: 1px solid $color-border;
41
41
  align-items: center;
42
42
  justify-content: center;
43
43
  }
44
44
 
45
45
  .week-day-label {
46
- background: #f1f1f1;
46
+ margin: 0.25em;
47
+ padding: 0.25em;
48
+ background: white;
47
49
  pointer-events: none;
48
50
  position: relative;
49
51
  flex-basis: 100%;
@@ -51,19 +53,17 @@
51
53
  flex-direction: column;
52
54
  align-items: center;
53
55
  justify-content: center;
54
- border: 1px solid $color_border;
56
+ border: 1px solid $color-border;
57
+
58
+ .weekday-description, .weekday-value, .day-description {
59
+ color: $color-dark;
60
+ }
55
61
 
56
62
  &.selectable {
57
63
  pointer-events: all;
58
64
  }
59
65
 
60
- &.selected {
61
- background: white;
62
66
 
63
- .weekday-description, .weekday-value {
64
- color: $color-active-light;
65
- }
66
- }
67
67
 
68
68
  &.selectable:not(.selected) {
69
69
  cursor: pointer;
@@ -83,7 +83,7 @@
83
83
  }
84
84
 
85
85
  &:hover {
86
- background: $color_border;
86
+ background: $color-border;
87
87
  }
88
88
  }
89
89
 
@@ -97,7 +97,7 @@
97
97
  .weekday-value {
98
98
  color: $color-inactive-day;
99
99
  font-size: $agenda-week-label-value-font-size;
100
- font-weight: bold;
100
+
101
101
  }
102
102
 
103
103
  .sub-unit-icon {
@@ -279,7 +279,7 @@
279
279
  }
280
280
 
281
281
  &:hover .week-select-item {
282
- background: $color_border;
282
+ background: $color-border;
283
283
  }
284
284
 
285
285
  .week-select-item {
@@ -3,8 +3,9 @@ $agenda-hour-view-labels-width: 80px;
3
3
  $color-active-light: #74B77F;
4
4
  $color-label: #5B6875;
5
5
  $color-dark: #171721;
6
+ $color-border: rgba(grey, 0.4);
6
7
  $color-inactive-day: rgba($color-dark, 0.2);
7
- $agenda-week-label-value-font-size: 2vw;
8
+ $agenda-week-label-value-font-size: 22px;
8
9
  $xs-width: 600px;
9
10
  $sm-width: 960px;
10
11
  $md-width: 1280px;
@@ -1,15 +1,17 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
2
  import { CalendarView } from '../../enum/calendar-view.enum';
3
+ import { AgendaEventPerDay } from "../../model/agenda-event-per-day.model";
3
4
  export declare class DatePlanningComponent {
4
5
  private _changeDetector;
5
6
  private renderer;
6
7
  dayStart: ElementRef;
7
8
  calendarNavigation: boolean;
9
+ customEventObject: boolean;
8
10
  showButton: boolean;
9
11
  selectedDate: Date;
10
12
  firstAvailableDate: Date;
11
13
  buttonLabel: string;
12
- eventsPerDay: any;
14
+ eventsPerDay: AgendaEventPerDay[];
13
15
  view: CalendarView;
14
16
  readonly eventChecked: EventEmitter<any>;
15
17
  readonly selectedDateChange: EventEmitter<Date>;
@@ -1,5 +1,7 @@
1
1
  @import "./material-definition";
2
2
  @import "./layout";
3
3
  @import "./theme";
4
+ @import "../component/agenda/style/material";
5
+ @import "../component/calendar/style/material";
4
6
 
5
7
 
@@ -5,6 +5,7 @@ export declare class SendMethodPrinterComponent {
5
5
  sendMethodService: SendMethodService;
6
6
  printerList: Printer[];
7
7
  layouts: ReportLayoutSelectionPrint[];
8
+ isPrinterLayoutsEnabled: boolean;
8
9
  showClass(): boolean;
9
10
  constructor(sendMethodService: SendMethodService);
10
11
  handleDefaultPrinterUserChange(checked: boolean): void;
@@ -39,6 +39,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
39
39
  visibleMethods: SendMethodType[] | string[];
40
40
  isDocSignEnabled: boolean;
41
41
  docSign: boolean;
42
+ isPrinterLayoutsEnabled: boolean;
42
43
  reportingDocumentPrintRequestChange: EventEmitter<ReportingDocumentPrintSignDocBaseRequest>;
43
44
  reportingDocumentEmailRequestChange: EventEmitter<ReportingDocumentEmailSignDocBaseRequest>;
44
45
  reportingDocumentPdfRequestChange: EventEmitter<ReportingDocumentPdfBaseRequest>;
@@ -2,5 +2,6 @@ export declare enum CalendarView {
2
2
  DayView = "DAY",
3
3
  WeekView = "WEEK",
4
4
  WeekSelectView = "WEEK_SELECT",
5
+ WeekPlanningView = "WEEK_PLANNING",
5
6
  MonthView = "MONTH"
6
7
  }
@@ -13,4 +13,5 @@ export declare class AgendaEvent {
13
13
  toString: string;
14
14
  fromToRepresentation: string;
15
15
  timeWindow: TimeWindow;
16
+ customObject: Object;
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",
package/public-api.d.ts CHANGED
@@ -18,3 +18,6 @@ export * from './lib/components/date-planning/date-planning.module';
18
18
  export * from './lib/components/simple-tags/simple-tags.component';
19
19
  export * from './lib/components/simple-tags/simple-tags.module';
20
20
  export * from './lib/service/shared.service';
21
+ export * from './lib/enum/calendar-view.enum';
22
+ export * from './lib/model/agenda-event-per-day.model';
23
+ export * from './lib/model/agenda-event.model';