@colijnit/sharedcomponents 1.0.26 → 1.0.28
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-sharedcomponents.umd.js +2710 -72
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +24 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +25 -1
- package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +3 -4
- package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +61 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +32 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +54 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +43 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +68 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +232 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +36 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +50 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +46 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +61 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +39 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +35 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +64 -0
- package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +48 -0
- package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +42 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +34 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +48 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +107 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +178 -0
- package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +34 -0
- package/esm2015/lib/components/date-planning/date-planning.component.js +106 -0
- package/esm2015/lib/components/date-planning/date-planning.module.js +63 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +83 -54
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +6 -3
- package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +2 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +2 -2
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +7 -4
- package/esm2015/lib/enum/calendar-view.enum.js +8 -0
- package/esm2015/lib/enum/icon.enum.js +6 -1
- package/esm2015/lib/enum/month.enum.js +17 -0
- package/esm2015/lib/enum/thumb-three-way-state.js +19 -0
- package/esm2015/lib/enum/time-period.enum.js +11 -0
- package/esm2015/lib/model/agenda-event-per-day.model.js +6 -0
- package/esm2015/lib/model/agenda-event.model.js +8 -0
- package/esm2015/lib/model/agenda-null-objects.js +11 -0
- package/esm2015/lib/model/constant/all-months.js +17 -0
- package/esm2015/lib/model/date-range.js +5 -0
- package/esm2015/lib/model/day.model.js +7 -0
- package/esm2015/lib/model/icon-svg.js +6 -1
- package/esm2015/lib/model/month.model.js +11 -0
- package/esm2015/lib/model/time-window.bo.js +26 -0
- package/esm2015/lib/model/week.model.js +6 -0
- package/esm2015/lib/model/weekday.model.js +10 -0
- package/esm2015/lib/pipe/array-number.pipe.js +15 -0
- package/esm2015/lib/pipe/master-pipes.js +7 -0
- package/esm2015/lib/pipe/ucfirst.pipe.js +16 -0
- package/esm2015/lib/service/shared-connector.service.js +49 -1
- package/esm2015/lib/service/stock.service.js +16 -5
- package/esm2015/lib/utils/array-utils.js +24 -5
- package/esm2015/lib/utils/calendar.utils.js +69 -0
- package/esm2015/lib/utils/check-precision-and-scale-result.js +2 -0
- package/esm2015/lib/utils/check-within-stepped-bounds-result.js +2 -0
- package/esm2015/lib/utils/date-utils.js +264 -0
- package/esm2015/lib/utils/function/not-nill.function.js +5 -0
- package/esm2015/lib/utils/map-utils.js +41 -0
- package/esm2015/lib/utils/number-utils.js +390 -0
- package/esm2015/lib/utils/object-utils.js +278 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +2789 -98
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +21 -0
- package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +6 -0
- package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +17 -0
- package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +12 -0
- package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +18 -0
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +47 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +9 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +8 -0
- package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +7 -0
- package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +10 -0
- package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +12 -0
- package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +11 -0
- package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +10 -0
- package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +8 -0
- package/lib/components/date-planning/component/agenda/view-select.component.d.ts +11 -0
- package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +9 -0
- package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +9 -0
- package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +23 -0
- package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +31 -0
- package/lib/components/date-planning/component/calendar/calendar.component.d.ts +10 -0
- package/lib/components/date-planning/date-planning.component.d.ts +25 -0
- package/lib/components/date-planning/date-planning.module.d.ts +2 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +24 -7
- package/lib/components/send-method-dialog/send-method-params.interface.d.ts +13 -0
- package/lib/components/send-method-dialog/style/_layout.scss +5 -0
- package/lib/components/statusbar/statusbar.component.d.ts +1 -0
- package/lib/components/tags/component/style/_layout.scss +67 -0
- package/lib/components/tags/component/style/_material-definition.scss +1 -0
- package/lib/components/tags/component/style/_theme.scss +8 -0
- package/lib/components/tags/component/style/material.scss +3 -0
- package/lib/components/tags/component/tag-join-label/style/_layout.scss +97 -0
- package/lib/components/tags/component/tag-join-label/style/_material-definition.scss +4 -0
- package/lib/components/tags/component/tag-join-label/style/_theme.scss +8 -0
- package/lib/components/tags/component/tag-join-label/style/material.scss +3 -0
- package/lib/enum/calendar-view.enum.d.ts +6 -0
- package/lib/enum/icon.enum.d.ts +5 -0
- package/lib/enum/month.enum.d.ts +14 -0
- package/lib/enum/thumb-three-way-state.d.ts +6 -0
- package/lib/enum/time-period.enum.d.ts +8 -0
- package/lib/model/agenda-event-per-day.model.d.ts +5 -0
- package/lib/model/agenda-event.model.d.ts +16 -0
- package/lib/model/agenda-null-objects.d.ts +10 -0
- package/lib/model/constant/all-months.d.ts +2 -0
- package/lib/model/date-range.d.ts +7 -0
- package/lib/model/day.model.d.ts +8 -0
- package/lib/model/month.model.d.ts +5 -0
- package/lib/model/time-window.bo.d.ts +13 -0
- package/lib/model/week.model.d.ts +4 -0
- package/lib/model/weekday.model.d.ts +16 -0
- package/lib/pipe/array-number.pipe.d.ts +4 -0
- package/lib/pipe/master-pipes.d.ts +1 -0
- package/lib/pipe/ucfirst.pipe.d.ts +4 -0
- package/lib/service/shared-connector.service.d.ts +4 -0
- package/lib/service/stock.service.d.ts +6 -2
- package/lib/style/_mixin.scss +5 -0
- package/lib/utils/array-utils.d.ts +6 -0
- package/lib/utils/calendar.utils.d.ts +10 -0
- package/lib/utils/check-precision-and-scale-result.d.ts +4 -0
- package/lib/utils/check-within-stepped-bounds-result.d.ts +8 -0
- package/lib/utils/date-utils.d.ts +44 -0
- package/lib/utils/function/not-nill.function.d.ts +1 -0
- package/lib/utils/map-utils.d.ts +16 -0
- package/lib/utils/number-utils.d.ts +125 -0
- package/lib/utils/object-utils.d.ts +40 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { LanguageCode } from "../../../../enum/language-code.enum";
|
|
3
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
4
|
+
import { AgendaEventPerDay } from "../../../../model/agenda-event-per-day.model";
|
|
5
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
6
|
+
export declare abstract class AgendaBaseViewComponent {
|
|
7
|
+
protected readonly locale: LanguageCode;
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
set selectedDate(value: Date);
|
|
10
|
+
set eventsPerDay(value: AgendaEventPerDay[]);
|
|
11
|
+
eventChecked: EventEmitter<AgendaEvent>;
|
|
12
|
+
get selectedDate(): Date;
|
|
13
|
+
get eventsPerDate(): AgendaEventPerDay[];
|
|
14
|
+
private _selectedDate;
|
|
15
|
+
private _eventsPerDay;
|
|
16
|
+
constructor(locale: LanguageCode, iconCacheService: IconCacheService);
|
|
17
|
+
protected prepareViewData(): void;
|
|
18
|
+
protected getEventsFromDate(date: Date): AgendaEvent[];
|
|
19
|
+
private _dateIsSet;
|
|
20
|
+
private _eventsAreSet;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
2
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
3
|
+
export declare class AgendaDayViewComponent extends AgendaBaseViewComponent {
|
|
4
|
+
events: AgendaEvent[];
|
|
5
|
+
protected prepareViewData(): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from "@angular/core";
|
|
2
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
+
export declare class AgendaEventComponent implements OnInit, OnDestroy {
|
|
6
|
+
private _elementRef;
|
|
7
|
+
private _renderer;
|
|
8
|
+
iconCacheService: IconCacheService;
|
|
9
|
+
readonly icons: typeof Icon;
|
|
10
|
+
event: AgendaEvent;
|
|
11
|
+
halfHourHeight: number;
|
|
12
|
+
eventChecked: EventEmitter<AgendaEvent>;
|
|
13
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, iconCacheService: IconCacheService);
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
checkEvent(event: MouseEvent): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
4
|
+
export declare class AgendaEventsComponent {
|
|
5
|
+
readonly viewTypes: typeof CalendarView;
|
|
6
|
+
view: CalendarView;
|
|
7
|
+
type: string;
|
|
8
|
+
events: AgendaEvent[];
|
|
9
|
+
halfHourHeight: number;
|
|
10
|
+
readonly eventChecked: EventEmitter<AgendaEvent>;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, Renderer2 } from "@angular/core";
|
|
2
|
+
export declare class AgendaHalfHourCellComponent implements OnDestroy {
|
|
3
|
+
private _renderer;
|
|
4
|
+
currentTimeElement: ElementRef;
|
|
5
|
+
set date(value: Date);
|
|
6
|
+
get date(): Date;
|
|
7
|
+
showLabel: boolean;
|
|
8
|
+
showCurrentTime: boolean;
|
|
9
|
+
currentTimeTop: number;
|
|
10
|
+
id: string;
|
|
11
|
+
private _date;
|
|
12
|
+
private _id;
|
|
13
|
+
constructor(_renderer: Renderer2);
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
private _checkDate;
|
|
16
|
+
private _checkWorkingDayStart;
|
|
17
|
+
private _positionCurrentTime;
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AfterContentChecked, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2 } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import { LanguageCode } from "../../../../enum/language-code.enum";
|
|
4
|
+
import { Weekday } from "../../../../model/weekday.model";
|
|
5
|
+
import { Day } from "../../../../model/day.model";
|
|
6
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
7
|
+
import { AgendaEventPerDay } from "../../../../model/agenda-event-per-day.model";
|
|
8
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
9
|
+
export declare class AgendaHeaderComponent implements OnInit, OnDestroy, AfterContentChecked {
|
|
10
|
+
private readonly _locale;
|
|
11
|
+
private _elementRef;
|
|
12
|
+
private _renderer;
|
|
13
|
+
private _ngZone;
|
|
14
|
+
iconCacheService: IconCacheService;
|
|
15
|
+
readonly icons: typeof Icon;
|
|
16
|
+
readonly viewTypes: typeof CalendarView;
|
|
17
|
+
private readonly scrollbarWidth;
|
|
18
|
+
set selectedDate(value: Date);
|
|
19
|
+
get selectedDate(): Date;
|
|
20
|
+
view: CalendarView;
|
|
21
|
+
set firstAvailableDate(value: Date);
|
|
22
|
+
get firstAvailableDate(): Date;
|
|
23
|
+
set eventsPerDay(value: AgendaEventPerDay[]);
|
|
24
|
+
viewChange: EventEmitter<CalendarView>;
|
|
25
|
+
selectedDateChange: EventEmitter<Date>;
|
|
26
|
+
rangeChange: EventEmitter<Date>;
|
|
27
|
+
weekDays: Weekday[];
|
|
28
|
+
day: Day;
|
|
29
|
+
showBackButton: boolean;
|
|
30
|
+
private _selectedDate;
|
|
31
|
+
private _firstAvailableDate;
|
|
32
|
+
private _eventsPerDay;
|
|
33
|
+
constructor(_locale: LanguageCode, _elementRef: ElementRef, _renderer: Renderer2, _ngZone: NgZone, iconCacheService: IconCacheService);
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
ngAfterContentChecked(): void;
|
|
37
|
+
subUnit(): void;
|
|
38
|
+
addUnit(): void;
|
|
39
|
+
setUnit(weekDay: Weekday): void;
|
|
40
|
+
changeTheView(view: CalendarView): void;
|
|
41
|
+
private _onResize;
|
|
42
|
+
/**
|
|
43
|
+
* Need to resize the host component to size it's fixed positioned child through css
|
|
44
|
+
*/
|
|
45
|
+
private _resizeHost;
|
|
46
|
+
private _prepareHeaderData;
|
|
47
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
2
|
+
import { Month } from "../../../../model/month.model";
|
|
3
|
+
import { Weekday } from "../../../../model/weekday.model";
|
|
4
|
+
import { Week } from "../../../../model/week.model";
|
|
5
|
+
export declare class AgendaMonthViewComponent extends AgendaBaseViewComponent {
|
|
6
|
+
month: Month;
|
|
7
|
+
firstWeekDays: Weekday[];
|
|
8
|
+
weeks: Week[];
|
|
9
|
+
protected prepareViewData(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
3
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
4
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
5
|
+
export declare class AgendaSelectEventComponent {
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly icons: typeof Icon;
|
|
8
|
+
event: AgendaEvent;
|
|
9
|
+
eventChecked: EventEmitter<AgendaEvent>;
|
|
10
|
+
constructor(iconCacheService: IconCacheService);
|
|
11
|
+
checkEvent(event: MouseEvent): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import { AgendaEvent } from "../../../../model/agenda-event.model";
|
|
4
|
+
import { AgendaEventPerDay } from "../../../../model/agenda-event-per-day.model";
|
|
5
|
+
export declare class AgendaViewComponent {
|
|
6
|
+
view: CalendarView;
|
|
7
|
+
selectedDate: Date;
|
|
8
|
+
eventsPerDay: AgendaEventPerDay[];
|
|
9
|
+
readonly eventChecked: EventEmitter<AgendaEvent>;
|
|
10
|
+
readonly viewTypes: typeof CalendarView;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
2
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
3
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
4
|
+
import { Week } from "../../../../model/week.model";
|
|
5
|
+
export declare class AgendaWeekSelectViewComponent extends AgendaBaseViewComponent {
|
|
6
|
+
view: CalendarView;
|
|
7
|
+
week: Week;
|
|
8
|
+
readonly icons: typeof Icon;
|
|
9
|
+
protected prepareViewData(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
2
|
+
import { Week } from "../../../../model/week.model";
|
|
3
|
+
import { AgendaBaseViewComponent } from "./agenda-base-view.component";
|
|
4
|
+
export declare class AgendaWeekViewComponent extends AgendaBaseViewComponent {
|
|
5
|
+
view: CalendarView;
|
|
6
|
+
week: Week;
|
|
7
|
+
protected prepareViewData(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import { ThumbThreeWayState } from "../../../../enum/thumb-three-way-state";
|
|
4
|
+
export declare class ViewSelectComponent {
|
|
5
|
+
private readonly _viewsToThumb;
|
|
6
|
+
selectedView: CalendarView;
|
|
7
|
+
selectedViewChange: EventEmitter<CalendarView>;
|
|
8
|
+
get modelAsThumbState(): ThumbThreeWayState;
|
|
9
|
+
constructor();
|
|
10
|
+
onThumbStateChange(thumbState: ThumbThreeWayState): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
export declare class CalendarAllMonthsComponent implements OnInit {
|
|
3
|
+
month: number;
|
|
4
|
+
shortDescriptions: boolean;
|
|
5
|
+
monthChange: EventEmitter<number>;
|
|
6
|
+
months: string[];
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
export declare class CalendarAllYearsComponent implements OnInit {
|
|
3
|
+
year: number;
|
|
4
|
+
readonly yearChange: EventEmitter<number>;
|
|
5
|
+
years: number[];
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
private _determineStart;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DoCheck, EventEmitter } from "@angular/core";
|
|
2
|
+
import { Icon } from "../../../../enum/icon.enum";
|
|
3
|
+
import { IconCacheService } from "../../../../service/icon-cache.service";
|
|
4
|
+
export declare class CalendarHeaderComponent implements DoCheck {
|
|
5
|
+
iconCacheService: IconCacheService;
|
|
6
|
+
selectedDate: Date;
|
|
7
|
+
readonly selectedDateChange: EventEmitter<Date>;
|
|
8
|
+
readonly icons: typeof Icon;
|
|
9
|
+
showMonthYearSelect: boolean;
|
|
10
|
+
expanded: boolean;
|
|
11
|
+
currentMonth: string;
|
|
12
|
+
currentYear: number;
|
|
13
|
+
selectedMonth: number;
|
|
14
|
+
selectedYear: number;
|
|
15
|
+
constructor(iconCacheService: IconCacheService);
|
|
16
|
+
ngDoCheck(): void;
|
|
17
|
+
subMonth(): void;
|
|
18
|
+
addMonth(): void;
|
|
19
|
+
hideMonthYearSelection(): void;
|
|
20
|
+
setNewMonth(month: number): void;
|
|
21
|
+
setNewYear(year: number): void;
|
|
22
|
+
changeMonthYear(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
import { LanguageCode } from "../../../../enum/language-code.enum";
|
|
4
|
+
declare type DateStamp = {
|
|
5
|
+
day: number;
|
|
6
|
+
inMonth: boolean;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
week: number;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare class CalendarViewComponent {
|
|
12
|
+
private readonly _locale;
|
|
13
|
+
set view(value: CalendarView);
|
|
14
|
+
get view(): CalendarView;
|
|
15
|
+
set selectedDate(value: Date);
|
|
16
|
+
get selectedDate(): Date;
|
|
17
|
+
selectedDateChange: EventEmitter<Date>;
|
|
18
|
+
trackByStamp: Function;
|
|
19
|
+
trackByWeek: Function;
|
|
20
|
+
weekDayLabel: string[];
|
|
21
|
+
weeks: DateStamp[][];
|
|
22
|
+
private _selectedDate;
|
|
23
|
+
private _view;
|
|
24
|
+
constructor(_locale: LanguageCode);
|
|
25
|
+
onDateClick(date: DateStamp): void;
|
|
26
|
+
private _setLabels;
|
|
27
|
+
private _prepareWeeks;
|
|
28
|
+
private _selectDays;
|
|
29
|
+
private _resetSelection;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "../../../../enum/calendar-view.enum";
|
|
3
|
+
export declare class CalendarComponent {
|
|
4
|
+
view: CalendarView;
|
|
5
|
+
selectedDate: Date;
|
|
6
|
+
days: Date[];
|
|
7
|
+
selectedDateChange: EventEmitter<Date>;
|
|
8
|
+
constructor();
|
|
9
|
+
changeSelectedDate(date: Date): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2 } from "@angular/core";
|
|
2
|
+
import { CalendarView } from "@syncfusion/ej2-angular-calendars";
|
|
3
|
+
export declare class DatePlanningComponent {
|
|
4
|
+
private _changeDetector;
|
|
5
|
+
private renderer;
|
|
6
|
+
calendarNavigation: boolean;
|
|
7
|
+
showButton: boolean;
|
|
8
|
+
selectedDate: Date;
|
|
9
|
+
firstAvailableDate: Date;
|
|
10
|
+
buttonLabel: string;
|
|
11
|
+
eventsPerDay: any;
|
|
12
|
+
view: CalendarView;
|
|
13
|
+
readonly eventChecked: EventEmitter<any>;
|
|
14
|
+
readonly selectedDateChange: EventEmitter<Date>;
|
|
15
|
+
readonly rangeChange: EventEmitter<Date>;
|
|
16
|
+
readonly viewChange: EventEmitter<CalendarView>;
|
|
17
|
+
readonly buttonClick: EventEmitter<MouseEvent>;
|
|
18
|
+
dayStart: ElementRef;
|
|
19
|
+
days: Date[];
|
|
20
|
+
private _selectedDate;
|
|
21
|
+
constructor(_changeDetector: ChangeDetectorRef, renderer: Renderer2);
|
|
22
|
+
doChangeSelectedDate(date: Date, rangeChanged?: boolean): void;
|
|
23
|
+
doChangeView(view: CalendarView): void;
|
|
24
|
+
scrollToDayStart(): void;
|
|
25
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
2
|
import { Icon } from "../../enum/icon.enum";
|
|
3
3
|
import { IconCacheService } from "../../service/icon-cache.service";
|
|
4
4
|
import { SendOption } from "./enums/send-option";
|
|
5
5
|
import { Printer } from "@colijnit/sharedapi/build/model/report/printer.bo";
|
|
6
6
|
import { StockService } from "../../service/stock.service";
|
|
7
|
-
import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
|
|
8
7
|
import { CoDropDownListFields } from "../stock/stock-transfer/co-drop-down-list-fields.interface";
|
|
9
8
|
import { OptionsService } from "../../service/options.service";
|
|
10
9
|
import { DictionaryService } from "../../service/dictionary.service";
|
|
11
|
-
|
|
10
|
+
import { SendMethodParams } from "./send-method-params.interface";
|
|
11
|
+
export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
12
12
|
iconCacheService: IconCacheService;
|
|
13
13
|
stockService: StockService;
|
|
14
14
|
private _optionsService;
|
|
@@ -21,8 +21,8 @@ export declare class SendMethodDialogComponent implements OnDestroy {
|
|
|
21
21
|
showPdfOption: boolean;
|
|
22
22
|
showXmlOption: boolean;
|
|
23
23
|
showPrintPriceStickers: boolean;
|
|
24
|
-
showPrintStockStickers: boolean;
|
|
25
24
|
priceListCodeData: any;
|
|
25
|
+
transactionUUID: string;
|
|
26
26
|
sendOptions: {
|
|
27
27
|
option: SendOption;
|
|
28
28
|
iconName: Icon;
|
|
@@ -32,31 +32,48 @@ export declare class SendMethodDialogComponent implements OnDestroy {
|
|
|
32
32
|
showPrinterSelections: boolean;
|
|
33
33
|
showExitButton: boolean;
|
|
34
34
|
defaultPrinter: Printer;
|
|
35
|
-
printTemplates:
|
|
35
|
+
printTemplates: any[];
|
|
36
36
|
printTemplatesField: CoDropDownListFields;
|
|
37
|
+
emailLayoutField: CoDropDownListFields;
|
|
37
38
|
priceListDataField: CoDropDownListFields;
|
|
38
39
|
upAndLoaded: boolean;
|
|
39
|
-
emails: any[];
|
|
40
40
|
models: boolean[];
|
|
41
|
-
layouts: any[];
|
|
42
41
|
selectedLayout: 'Layout 1';
|
|
43
42
|
showDialog: boolean;
|
|
44
43
|
headerTitle: string;
|
|
45
44
|
printerList: Printer[];
|
|
45
|
+
relationId: number;
|
|
46
|
+
emailAdresses: any[];
|
|
47
|
+
emailLayouts: any[];
|
|
48
|
+
printLayouts: any[];
|
|
49
|
+
defaultSendMethod: any;
|
|
50
|
+
defaultEmailAdresses: any;
|
|
51
|
+
isDocSignEnabled: boolean;
|
|
52
|
+
docSign: boolean;
|
|
46
53
|
set articleData(data: any);
|
|
47
54
|
startSignatureClicked: EventEmitter<any>;
|
|
55
|
+
sendEmailClicked: EventEmitter<any>;
|
|
48
56
|
printButtonClicked: EventEmitter<any>;
|
|
57
|
+
emailLayoutClicked: EventEmitter<any>;
|
|
49
58
|
showClass(): boolean;
|
|
59
|
+
printTemplatesClicked: EventEmitter<any>;
|
|
60
|
+
defaultSendMethodClicked: EventEmitter<any>;
|
|
61
|
+
printLayoutParams: EventEmitter<SendMethodParams>;
|
|
62
|
+
sendMethodParams: SendMethodParams;
|
|
50
63
|
private _subscriptions;
|
|
51
64
|
constructor(iconCacheService: IconCacheService, stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
|
|
65
|
+
ngOnInit(): void;
|
|
52
66
|
ngOnDestroy(): void;
|
|
53
67
|
getPrinters(): Promise<void>;
|
|
54
68
|
closeDialogClick(): void;
|
|
55
69
|
handleSignatureStart(): void;
|
|
70
|
+
sendEmail(): void;
|
|
56
71
|
handlePrintClicked(): void;
|
|
57
72
|
togglePrinterSelection(): void;
|
|
58
73
|
onPrinterClicked(printer: any): void;
|
|
59
74
|
getPrintTemplates(): any;
|
|
75
|
+
getDefaultSendMethod(): void;
|
|
76
|
+
getDefaultEmailLayouts(): Promise<void>;
|
|
60
77
|
private _handleSettingsLoaded;
|
|
61
78
|
private _initConnection;
|
|
62
79
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SendMethodParams {
|
|
2
|
+
goodId?: number;
|
|
3
|
+
warehouse?: number;
|
|
4
|
+
location?: string;
|
|
5
|
+
batch?: string;
|
|
6
|
+
serial?: string;
|
|
7
|
+
amount?: number;
|
|
8
|
+
reportId?: number;
|
|
9
|
+
printerName?: string;
|
|
10
|
+
priceListCode?: string;
|
|
11
|
+
goodIds?: number[];
|
|
12
|
+
name?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@import "../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('sc-tags-layout') {
|
|
4
|
+
.sc-tags {
|
|
5
|
+
position: relative;
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-height: 210px;
|
|
9
|
+
|
|
10
|
+
.content-wrapper {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
padding-top: 5px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
collapseable {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
tag-label {
|
|
21
|
+
margin-bottom: 5px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tag-wrapper {
|
|
25
|
+
display: inline-block;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tag-join-wrapper {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
width: 50%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tag-list-wrapper {
|
|
34
|
+
padding: 1px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.footer {
|
|
41
|
+
padding-top: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
default-ok-cancel-buttons {
|
|
45
|
+
padding: 20px 0 10px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
input {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tags-available {
|
|
53
|
+
height: 400px;
|
|
54
|
+
width: 300px;
|
|
55
|
+
|
|
56
|
+
treeview {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: calc(400px - #{$collapseable-header-height});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tags-joined {
|
|
63
|
+
height: 400px;
|
|
64
|
+
width: 600px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$collapseable-header-height: 40px;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@import "../../../../../style/mixin";
|
|
2
|
+
|
|
3
|
+
@include export-module('sc-tags-join-label-layout') {
|
|
4
|
+
.sc-tags-join-label {
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 10;
|
|
7
|
+
display: flex;
|
|
8
|
+
cursor: default;
|
|
9
|
+
padding-right: 10px;
|
|
10
|
+
padding-bottom: 5px;
|
|
11
|
+
|
|
12
|
+
.focus-item {
|
|
13
|
+
animation: none; // counters ng-tree's native background color animations
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
div.labelgroup {
|
|
17
|
+
align-items: center;
|
|
18
|
+
display: flex;
|
|
19
|
+
transition: all 0.14s ease-out;
|
|
20
|
+
background-color: var(--custom-color, #DCE4EA);
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 60px;
|
|
24
|
+
padding-left: 5px;
|
|
25
|
+
|
|
26
|
+
&.focus-item {
|
|
27
|
+
background-color: $color-active-accent !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.labeltext {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
padding-left: 5px;
|
|
34
|
+
padding-right: 5px;
|
|
35
|
+
|
|
36
|
+
.mainText {
|
|
37
|
+
display: block;
|
|
38
|
+
color: $color-dark;
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
|
|
41
|
+
&.custom-colors {
|
|
42
|
+
color: white;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.focus-item {
|
|
46
|
+
color: white;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.parentText {
|
|
51
|
+
display: block;
|
|
52
|
+
font-size: $font-size-input-label;
|
|
53
|
+
color: $color_label_default;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
|
|
56
|
+
&.custom-colors {
|
|
57
|
+
color: white;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.focus-item {
|
|
61
|
+
color: white;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tag-icon {
|
|
67
|
+
align-items: center;
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
@include square(50px);
|
|
71
|
+
|
|
72
|
+
icon {
|
|
73
|
+
@include square(50px);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
doc-image {
|
|
79
|
+
@include square(50px);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
doc-image img {
|
|
83
|
+
@include square(50px);
|
|
84
|
+
border-radius: 5px;
|
|
85
|
+
object-fit: contain;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
button-select {
|
|
89
|
+
position: absolute;
|
|
90
|
+
right: 20px;
|
|
91
|
+
top: 0;
|
|
92
|
+
bottom: 0;
|
|
93
|
+
margin: auto;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|