carriera-intern-components 1.1.0 → 1.1.2
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/app/components/avatar/avatar.component.d.ts +2 -2
- package/app/components/avatar/models/avatar.model.d.ts +12 -5
- package/app/components/avatar/pipes/initials.pipe.d.ts +5 -1
- package/app/components/copy/copy.component.d.ts +23 -0
- package/app/components/document-preview/document-preview.component.d.ts +19 -9
- package/app/components/document-preview/interfaces/document-tag.interface.d.ts +4 -0
- package/app/components/document-preview/interfaces/index.d.ts +1 -0
- package/app/components/drop-zone/drop-zone.component.d.ts +58 -33
- package/app/components/drop-zone/models/file.response.d.ts +10 -0
- package/app/components/input/directives/helpers/index.d.ts +1 -0
- package/app/components/input/directives/helpers/mask.helper.d.ts +15 -0
- package/app/components/input/directives/mask.directive.d.ts +2 -16
- package/app/components/input/directives/number-format.directive.d.ts +6 -1
- package/app/components/input/directives/password.directive.d.ts +3 -1
- package/app/components/input/input.component.d.ts +86 -9
- package/app/components/input/models/dropdown.model.d.ts +50 -2
- package/app/components/input/models/input.model.d.ts +22 -7
- package/app/components/input/pipes/filter-by-search.pipe.d.ts +1 -1
- package/app/components/input/pipes/remap-pm-icons.pipe.d.ts +7 -0
- package/app/components/input-address/enums/input-address-layers-string.enum.d.ts +4 -0
- package/app/components/input-address/enums/input-address-type-string.enum.d.ts +5 -0
- package/app/components/input-address/input-address.component.d.ts +67 -0
- package/app/components/input-address/models/address-data.model.d.ts +19 -0
- package/app/components/input-address/models/address-list.model.d.ts +6 -0
- package/app/components/input-address/models/long-lat.model.d.ts +4 -0
- package/app/components/input-address/models/sent-address-data.model.d.ts +22 -0
- package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +106 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.d.ts +58 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.d.ts +41 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.d.ts +26 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.d.ts +30 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.d.ts +38 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/cai-input.config.d.ts +169 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/index.d.ts +1 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-left-string.enum.d.ts +5 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-list-preview-string.enum.d.ts +4 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-main-string.enum.d.ts +5 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.d.ts +4 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-string.enum.d.ts +6 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-type-string.enum.d.ts +3 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/config.enum.d.ts +7 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-change.model.d.ts +6 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-type.model.d.ts +8 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/pipes/calendar-months.pipe.d.ts +9 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/services/calendar-datetime-picker.service.d.ts +19 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/strategy/calendar-strategy.d.ts +30 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.d.ts +19 -0
- package/app/components/input-datetime-picker/enums/input-config-name-string.enum.d.ts +7 -0
- package/app/components/input-datetime-picker/interfaces/input-datetime.interface.d.ts +8 -0
- package/app/components/pm/pm.component.d.ts +76 -0
- package/app/components/selected-location-field/interfaces/index.d.ts +1 -0
- package/app/components/selected-location-field/interfaces/selected-business-field.interface.d.ts +11 -0
- package/app/components/selected-location-field/selected-business-field.component.d.ts +12 -0
- package/app/directives/infinite-scroll.directive.d.ts +16 -0
- package/app/directives/intersection-observer.directive.d.ts +15 -0
- package/app/enums/alignment.enum.d.ts +4 -0
- package/app/enums/general-actions.enum.d.ts +58 -0
- package/app/enums/index.d.ts +3 -0
- package/app/enums/string-placeholder.enum.d.ts +3 -0
- package/app/models/appFile.model.d.ts +3 -1
- package/app/models/pm.model.d.ts +10 -0
- package/app/utils/constants/index.d.ts +1 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +18 -0
- package/app/utils/index.d.ts +1 -0
- package/fesm2022/carriera-intern-components.mjs +4053 -321
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/cai-color.svg +3 -0
- package/public/assets/icons/cai-edit.svg +3 -3
- package/public/assets/icons/cai-loader.svg +3 -0
- package/public/assets/icons/fuel-contact/cai-fuel-card.svg +3 -0
- package/public/assets/icons/fuel-contact/cai-user-2.svg +3 -0
- package/public/assets/icons/general/cai-date.svg +1 -1
- package/public/assets/icons/general/cai-fax.svg +5 -0
- package/public/assets/icons/general/cai-website.svg +3 -0
- package/public/assets/icons/integration/cai-efs.svg +4 -0
- package/public/assets/icons/interaction/cai-copy.svg +3 -0
- package/public/assets/icons/interaction/cai-favorite.svg +3 -0
- package/public/assets/icons/interaction/cai_time.svg +3 -0
- package/public/assets/icons/interaction/cai_x.svg +4 -0
- package/public/assets/icons/makes/trailers/ic_trailer_atro.svg +6 -0
- package/public/assets/icons/makes/trailers/ic_trailer_beall.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_bedard.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_butler.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_de_lucio.svg +17 -0
- package/public/assets/icons/makes/trailers/ic_trailer_dorsey.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_east.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_fontaine.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_fruehauf.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_gallegos.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_great_dane.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_heil.svg +6 -0
- package/public/assets/icons/makes/trailers/ic_trailer_hudson.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_hyndai.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_kaufman.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_mac.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_manac.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_polar.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_ravens.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_reitnouer.svg +12 -0
- package/public/assets/icons/makes/trailers/ic_trailer_strick.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_timpte.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_trail_king.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_transcraft.svg +12 -0
- package/public/assets/icons/makes/trailers/ic_trailer_tremcar.svg +10 -0
- package/public/assets/icons/makes/trailers/ic_trailer_tytal.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_utility.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_vanguard.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_vantage.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_wabash.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_walinga.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_wilson.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_chevrolet.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_ford.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_freightliner.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_gmc.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_hino.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_international.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_isuzu.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_kenworth.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_mack.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_peterbilt.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_volvo.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_western_star.svg +3 -0
- package/public/assets/json/icons.json +223 -3
- package/public/pdfjs/pdf.worker.min.mjs +30 -0
- package/public-api.d.ts +9 -2
- package/src/styles/README.md +57 -0
- package/src/styles/_variables.scss +288 -0
- package/src/styles/cropper.scss +33 -0
- package/src/styles/custompickers.scss +822 -0
- package/src/styles/popover.scss +18 -0
- package/src/styles/review_variables.scss +40 -0
- package/src/styles/tooltip.scss +85 -0
- package/src/styles/utility/colors.scss +265 -0
- package/src/styles/utility/utilities.scss +6 -0
- package/src/styles.scss +28 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, ViewContainerRef, OnDestroy, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { CalendarDateTimePickerService } from './services/calendar-datetime-picker.service';
|
|
3
|
+
import { CaCustomDateTimePickersDateCalendarsComponent } from './components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component';
|
|
4
|
+
import { ScrollType } from './models/scroll-type.model';
|
|
5
|
+
import { ICaInput } from './config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
8
|
+
private calendarService;
|
|
9
|
+
dateTime: Date;
|
|
10
|
+
ref: ViewContainerRef;
|
|
11
|
+
_inputConfig: ICaInput;
|
|
12
|
+
set inputConfig(config: ICaInput);
|
|
13
|
+
closePopover: EventEmitter<Date>;
|
|
14
|
+
dateCalendar: CaCustomDateTimePickersDateCalendarsComponent;
|
|
15
|
+
pmAmScroll: ElementRef;
|
|
16
|
+
minutesScroll: ElementRef;
|
|
17
|
+
hourScroll: ElementRef;
|
|
18
|
+
selectedDateTime: string;
|
|
19
|
+
calendarMainType: string;
|
|
20
|
+
outputType: (string | number)[];
|
|
21
|
+
currentYear: number;
|
|
22
|
+
currentMonth: number;
|
|
23
|
+
currentDay: number;
|
|
24
|
+
listPreview: string;
|
|
25
|
+
timeMinutes: string[];
|
|
26
|
+
monthArray: number[];
|
|
27
|
+
monthDayList: number[];
|
|
28
|
+
yearsList: (string | number)[];
|
|
29
|
+
scrollTimer: ReturnType<typeof setTimeout> | number;
|
|
30
|
+
hoveredItem: string | null;
|
|
31
|
+
isInputFocus: boolean;
|
|
32
|
+
monthNames: string[];
|
|
33
|
+
hourTimes: number[];
|
|
34
|
+
scrollTypes: ScrollType;
|
|
35
|
+
selectedTime: string;
|
|
36
|
+
timeOfDay: string[];
|
|
37
|
+
previousRangeSide: boolean;
|
|
38
|
+
constructor(calendarService: CalendarDateTimePickerService);
|
|
39
|
+
set calendarType(calendarType: string);
|
|
40
|
+
set placeholder(placeholder: string);
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
ngAfterViewInit(): void;
|
|
43
|
+
initDateChangedListener(): void;
|
|
44
|
+
setTimeValue(): void;
|
|
45
|
+
setListPreview(value: string): void;
|
|
46
|
+
inputInFocus(): void;
|
|
47
|
+
inputBlur(): void;
|
|
48
|
+
changeOpened(): void;
|
|
49
|
+
setTime(): void;
|
|
50
|
+
setDefaultTime(): void;
|
|
51
|
+
closePopup(): void;
|
|
52
|
+
createStringFromOutput(): string;
|
|
53
|
+
onScroll(event: Event, type: keyof ScrollType, index?: number | null): void;
|
|
54
|
+
checkForScrolledType(type: string): void;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDatetimePickersComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDatetimePickersComponent, "cai-custom-datetime-pickers", never, { "dateTime": { "alias": "dateTime"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "closePopover": "closePopover"; }, never, never, true, never>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CalendarDateTimePickerService } from '../../services/calendar-datetime-picker.service';
|
|
3
|
+
import { CalendarStrategy } from '../../strategy/calendar-strategy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CaCustomDateTimePickerCalendarDatesMainComponent implements OnInit, OnDestroy {
|
|
6
|
+
private calendarService;
|
|
7
|
+
months: Date[];
|
|
8
|
+
dateTime: Date;
|
|
9
|
+
currentIndex: number;
|
|
10
|
+
currentYearIndex: number;
|
|
11
|
+
activeIndex: number;
|
|
12
|
+
monthYearsIndx: string[];
|
|
13
|
+
_listPreview: string;
|
|
14
|
+
set listPreview(value: string);
|
|
15
|
+
isMonthAndYearOnly: boolean;
|
|
16
|
+
setListPreviewToFull: EventEmitter<number>;
|
|
17
|
+
setAutoIndex: EventEmitter<number>;
|
|
18
|
+
scrollStrategy: CalendarStrategy;
|
|
19
|
+
private destroy$;
|
|
20
|
+
monthNames: string[];
|
|
21
|
+
selectedYear: number;
|
|
22
|
+
selectedYearFromInput: number;
|
|
23
|
+
selMonth: number;
|
|
24
|
+
selectedMonth: string;
|
|
25
|
+
private activeMonth;
|
|
26
|
+
constructor(calendarService: CalendarDateTimePickerService);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
initScrollListeners(): void;
|
|
29
|
+
findIndexInMonth(date: string): number;
|
|
30
|
+
onMonthChange(data: any): void;
|
|
31
|
+
getMonth(index: number): string;
|
|
32
|
+
mouseOverSetItem(): void;
|
|
33
|
+
setCalendarListPreview(num: number, index: number): void;
|
|
34
|
+
selectDay(data: {
|
|
35
|
+
day: number;
|
|
36
|
+
index: number;
|
|
37
|
+
}): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDateTimePickerCalendarDatesMainComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickerCalendarDatesMainComponent, "cai-custom-datetime-pickers--calendar-dates-main", never, { "months": { "alias": "months"; "required": false; }; "dateTime": { "alias": "dateTime"; "required": false; }; "currentIndex": { "alias": "currentIndex"; "required": false; }; "currentYearIndex": { "alias": "currentYearIndex"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "monthYearsIndx": { "alias": "monthYearsIndx"; "required": false; }; "listPreview": { "alias": "listPreview"; "required": false; }; "isMonthAndYearOnly": { "alias": "isMonthAndYearOnly"; "required": false; }; }, { "setListPreviewToFull": "setListPreviewToFull"; "setAutoIndex": "setAutoIndex"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CaCustomDateTimePickersCalendarDaysComponent implements OnInit {
|
|
4
|
+
dateTime: Date;
|
|
5
|
+
year: number;
|
|
6
|
+
selectedMonth: string;
|
|
7
|
+
index: number;
|
|
8
|
+
activeMonth: boolean;
|
|
9
|
+
selectDay: EventEmitter<any>;
|
|
10
|
+
currentYear: number;
|
|
11
|
+
currentMonth: number;
|
|
12
|
+
currentDay: number;
|
|
13
|
+
selectedMonthFromInput: number;
|
|
14
|
+
selectedYearFromInput: number;
|
|
15
|
+
days: ReadonlyArray<string | number>;
|
|
16
|
+
selectedDay: number;
|
|
17
|
+
selMonth: number;
|
|
18
|
+
selectedYear: number;
|
|
19
|
+
set month(month: Date);
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
chooseDay(day: number | string): void;
|
|
23
|
+
private setSelectedDate;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDateTimePickersCalendarDaysComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickersCalendarDaysComponent, "cai-custom-datetime-picker-calendar-days", never, { "dateTime": { "alias": "dateTime"; "required": false; }; "year": { "alias": "year"; "required": false; }; "selectedMonth": { "alias": "selectedMonth"; "required": false; }; "index": { "alias": "index"; "required": false; }; "activeMonth": { "alias": "activeMonth"; "required": false; }; "month": { "alias": "month"; "required": false; }; }, { "selectDay": "selectDay"; }, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CalendarDateTimePickerService } from '../../services/calendar-datetime-picker.service';
|
|
3
|
+
import { CalendarStrategy } from '../../strategy/calendar-strategy';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CaCustomDateTimePickersCalendarLeftComponent implements OnInit, OnDestroy {
|
|
6
|
+
private calendarService;
|
|
7
|
+
months: Date[];
|
|
8
|
+
currentIndex: number;
|
|
9
|
+
isMonthAndYearOnly: boolean;
|
|
10
|
+
_listPreview: string;
|
|
11
|
+
set listPreview(value: string);
|
|
12
|
+
_currentYearIndex: number;
|
|
13
|
+
set currentYearIndex(value: number);
|
|
14
|
+
_activeIndex: number;
|
|
15
|
+
set activeIndex(value: number);
|
|
16
|
+
isHovered: boolean;
|
|
17
|
+
private isFirstCall;
|
|
18
|
+
private destroy$;
|
|
19
|
+
constructor(calendarService: CalendarDateTimePickerService);
|
|
20
|
+
scrollStrategy: CalendarStrategy;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
initScrollListeners(): void;
|
|
23
|
+
findIndexInMonth(date: string): number;
|
|
24
|
+
onScrollChanged(data: any): void;
|
|
25
|
+
selectMonth(indx: number): void;
|
|
26
|
+
mouseOverSetItem(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDateTimePickersCalendarLeftComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickersCalendarLeftComponent, "cai-custom-datetime-pickers-calendar-left", never, { "months": { "alias": "months"; "required": false; }; "currentIndex": { "alias": "currentIndex"; "required": false; }; "isMonthAndYearOnly": { "alias": "isMonthAndYearOnly"; "required": false; }; "listPreview": { "alias": "listPreview"; "required": false; }; "currentYearIndex": { "alias": "currentYearIndex"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CalendarDateTimePickerService } from '../../services/calendar-datetime-picker.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CaCustomDateTimePickersDateCalendarsComponent implements OnInit, OnDestroy {
|
|
5
|
+
private calendarService;
|
|
6
|
+
listPreview: string;
|
|
7
|
+
dateTime: Date;
|
|
8
|
+
isMonthAndYearOnly: boolean;
|
|
9
|
+
setListPreviewValue: EventEmitter<any>;
|
|
10
|
+
private currentYear;
|
|
11
|
+
private currentMonth;
|
|
12
|
+
private activeMonth;
|
|
13
|
+
private subscription?;
|
|
14
|
+
private destroy$;
|
|
15
|
+
private monthNames;
|
|
16
|
+
dayOfWeekLetters: string[];
|
|
17
|
+
activeIndex: number;
|
|
18
|
+
currentIndex: number;
|
|
19
|
+
currentYearIndex: number;
|
|
20
|
+
monthYearsIndx: string[];
|
|
21
|
+
months: Date[];
|
|
22
|
+
justYears: Date[];
|
|
23
|
+
selectedYear: number;
|
|
24
|
+
selectedMonth: string;
|
|
25
|
+
constructor(calendarService: CalendarDateTimePickerService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
initScrollListener(): void;
|
|
28
|
+
initInitalState(): void;
|
|
29
|
+
onMonthChange(month: number): void;
|
|
30
|
+
getMonth(index: number): string;
|
|
31
|
+
setListPreview(): void;
|
|
32
|
+
setListPreviewToFull(num: number): void;
|
|
33
|
+
setAutoIndex(num: number): void;
|
|
34
|
+
selectCurrentDay(): void;
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDateTimePickersDateCalendarsComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickersDateCalendarsComponent, "cai-custom-datetime-pickers-date-calendars", never, { "listPreview": { "alias": "listPreview"; "required": false; }; "dateTime": { "alias": "dateTime"; "required": false; }; "isMonthAndYearOnly": { "alias": "isMonthAndYearOnly"; "required": false; }; }, { "setListPreviewValue": "setListPreviewValue"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export interface IMultipleInput {
|
|
2
|
+
id?: number;
|
|
3
|
+
value: string | number;
|
|
4
|
+
second_value?: string | number;
|
|
5
|
+
logoName?: string;
|
|
6
|
+
isImg?: boolean;
|
|
7
|
+
isSvg?: boolean;
|
|
8
|
+
folder?: string;
|
|
9
|
+
subFolder?: string;
|
|
10
|
+
logoType?: string;
|
|
11
|
+
isOwner?: boolean;
|
|
12
|
+
isProgressBar?: boolean;
|
|
13
|
+
isCounter?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ICaInputDateTimePicker {
|
|
16
|
+
name: string;
|
|
17
|
+
isIconHidden?: boolean;
|
|
18
|
+
customClass?: string;
|
|
19
|
+
isDisabled?: boolean;
|
|
20
|
+
isFutureDateDisabled?: boolean;
|
|
21
|
+
expiredDateInvalid?: boolean;
|
|
22
|
+
isFromDate?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ICaInputWithDropdown {
|
|
25
|
+
withText: boolean;
|
|
26
|
+
svg: boolean;
|
|
27
|
+
image: boolean;
|
|
28
|
+
iconsPath?: string;
|
|
29
|
+
activeItemIconKey?: string;
|
|
30
|
+
url?: string;
|
|
31
|
+
nameInitialsInsteadUrl?: string;
|
|
32
|
+
template?: string;
|
|
33
|
+
color?: string;
|
|
34
|
+
class?: string;
|
|
35
|
+
remove?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ICaInput {
|
|
38
|
+
id?: number;
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
labelInInput?: boolean;
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
placeholderIcon?: string;
|
|
45
|
+
placeholderIconRightSide?: string;
|
|
46
|
+
isPlaceHolderIconRightSideDynamicColor?: boolean;
|
|
47
|
+
placeholderIconFolllowTextOnRightSide?: string;
|
|
48
|
+
placeholderIconColor?: string;
|
|
49
|
+
placeholderWithLabel?: boolean;
|
|
50
|
+
placeholderText?: string;
|
|
51
|
+
placeholderInsteadOfLabel?: boolean;
|
|
52
|
+
inputCursorOnRightSide?: boolean;
|
|
53
|
+
isRequired?: boolean;
|
|
54
|
+
isDisabled?: boolean;
|
|
55
|
+
pattern?: string;
|
|
56
|
+
autocomplete?: string;
|
|
57
|
+
showCount?: boolean;
|
|
58
|
+
minLength?: number;
|
|
59
|
+
maxLength?: number;
|
|
60
|
+
minValue?: number;
|
|
61
|
+
maxValue?: number;
|
|
62
|
+
min?: number;
|
|
63
|
+
max?: number;
|
|
64
|
+
step?: number;
|
|
65
|
+
mask?: string;
|
|
66
|
+
textTransform?: 'capitalize' | 'uppercase' | 'lowercase' | 'capitalizedcase';
|
|
67
|
+
textAlign?: string | 'center';
|
|
68
|
+
blackInput?: boolean;
|
|
69
|
+
blueInput?: boolean;
|
|
70
|
+
incorrectInput?: boolean;
|
|
71
|
+
dangerMark?: boolean;
|
|
72
|
+
autoFocus?: boolean;
|
|
73
|
+
hideClear?: boolean;
|
|
74
|
+
hideRequiredCheck?: boolean;
|
|
75
|
+
hideErrorMessage?: boolean;
|
|
76
|
+
hideDangerMark?: boolean;
|
|
77
|
+
hideDropdownArrow?: boolean;
|
|
78
|
+
requiredLabel?: boolean;
|
|
79
|
+
errorInsideInput?: boolean;
|
|
80
|
+
removeInput?: boolean;
|
|
81
|
+
readOnly?: boolean;
|
|
82
|
+
thousandSeparator?: boolean;
|
|
83
|
+
priceSeparator?: boolean;
|
|
84
|
+
priceSeparatorLimitation?: number;
|
|
85
|
+
loadingSpinner?: {
|
|
86
|
+
size?: string;
|
|
87
|
+
color?: string;
|
|
88
|
+
isLoading?: boolean;
|
|
89
|
+
};
|
|
90
|
+
addressFlag?: string;
|
|
91
|
+
customClass?: string;
|
|
92
|
+
isIconInput?: boolean;
|
|
93
|
+
isValidIcon?: boolean;
|
|
94
|
+
inputIcon?: string;
|
|
95
|
+
multipleInputValues?: {
|
|
96
|
+
options: IMultipleInput[];
|
|
97
|
+
customClass: string;
|
|
98
|
+
};
|
|
99
|
+
multipleLabel?: {
|
|
100
|
+
labels: string[];
|
|
101
|
+
searchLabels?: string[];
|
|
102
|
+
customClass: string;
|
|
103
|
+
};
|
|
104
|
+
isInputBackgroundRemoved?: boolean;
|
|
105
|
+
isBlueText?: boolean;
|
|
106
|
+
commands?: {
|
|
107
|
+
active?: boolean;
|
|
108
|
+
type?: string;
|
|
109
|
+
firstCommand?: {
|
|
110
|
+
popup?: {
|
|
111
|
+
name?: string;
|
|
112
|
+
backgroundColor?: string;
|
|
113
|
+
};
|
|
114
|
+
name?: string;
|
|
115
|
+
svg?: string;
|
|
116
|
+
};
|
|
117
|
+
secondCommand?: {
|
|
118
|
+
popup?: {
|
|
119
|
+
name?: string;
|
|
120
|
+
backgroundColor?: string;
|
|
121
|
+
};
|
|
122
|
+
name?: string;
|
|
123
|
+
svg?: string;
|
|
124
|
+
};
|
|
125
|
+
thirdCommand?: {
|
|
126
|
+
popup?: {
|
|
127
|
+
name?: string;
|
|
128
|
+
backgroundColor?: string;
|
|
129
|
+
};
|
|
130
|
+
name?: string;
|
|
131
|
+
svg?: string;
|
|
132
|
+
};
|
|
133
|
+
setTimeout?: number;
|
|
134
|
+
blueCommands?: boolean;
|
|
135
|
+
};
|
|
136
|
+
defaultValue?: string;
|
|
137
|
+
isDropdown?: boolean;
|
|
138
|
+
dropdownWidthClass?: string;
|
|
139
|
+
dropdownImageInput?: ICaInputWithDropdown | null;
|
|
140
|
+
isInvalidSearchInDropdown?: boolean;
|
|
141
|
+
selectedDropdown?: boolean;
|
|
142
|
+
mergeDropdownBodyWithInput?: boolean;
|
|
143
|
+
hideAllItemsInInputDropdown?: boolean;
|
|
144
|
+
isBlueDropdown?: boolean;
|
|
145
|
+
isItemSelected?: boolean;
|
|
146
|
+
isDisplayingCustomPeriodRange?: boolean;
|
|
147
|
+
isUsingCustomPeriodRange?: boolean;
|
|
148
|
+
isDispatchLocationDropdown?: boolean;
|
|
149
|
+
dropdownLabel?: boolean;
|
|
150
|
+
dropdownLabelNew?: boolean;
|
|
151
|
+
multiselectDropdown?: boolean;
|
|
152
|
+
multiSelectDropdownActive?: boolean;
|
|
153
|
+
multiSelectItemRange?: boolean;
|
|
154
|
+
isFromDate?: boolean;
|
|
155
|
+
hideColorValidations?: boolean;
|
|
156
|
+
expiredDateInvalid?: boolean;
|
|
157
|
+
isFutureDateDisabled?: boolean;
|
|
158
|
+
fixedPlacholder?: string;
|
|
159
|
+
statusStyle?: boolean;
|
|
160
|
+
isIconHidden?: boolean;
|
|
161
|
+
isRemovedIconMovedOnLeft?: boolean;
|
|
162
|
+
removeLeadingZero?: boolean;
|
|
163
|
+
negativeLeadingZero?: boolean;
|
|
164
|
+
isHoverRow?: boolean;
|
|
165
|
+
minutesGapFive?: boolean;
|
|
166
|
+
updateAsTouchedOnEdit?: boolean;
|
|
167
|
+
transparentInput?: boolean;
|
|
168
|
+
preventTyping?: boolean;
|
|
169
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cai-input.config';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CalendarMonthsPipe implements PipeTransform {
|
|
4
|
+
private MONTHS;
|
|
5
|
+
constructor();
|
|
6
|
+
transform(index: Date, listPreview: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthsPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CalendarMonthsPipe, "calendarmonths", true>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { ScrollChange } from "../models/scroll-change.model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CalendarDateTimePickerService {
|
|
5
|
+
index$: Subject<ScrollChange>;
|
|
6
|
+
indexAuto$: Subject<number>;
|
|
7
|
+
scrollToDate: Subject<string>;
|
|
8
|
+
dateChanged: Subject<any>;
|
|
9
|
+
selectedIndex: number;
|
|
10
|
+
scrolledIndexChange: import("rxjs").Observable<ScrollChange>;
|
|
11
|
+
scrollToAutoIndex: import("rxjs").Observable<number>;
|
|
12
|
+
private scrolledScroll;
|
|
13
|
+
constructor();
|
|
14
|
+
set setAutoIndex(number: number);
|
|
15
|
+
set scrolledScrollItem(name: string);
|
|
16
|
+
get selectedScroll(): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarDateTimePickerService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarDateTimePickerService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from '@angular/cdk/scrolling';
|
|
2
|
+
import { CalendarDateTimePickerService } from '../services/calendar-datetime-picker.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const STARTING_YEAR: number;
|
|
5
|
+
export declare const RANGE: number;
|
|
6
|
+
export declare class CalendarStrategy implements VirtualScrollStrategy {
|
|
7
|
+
private calendarService;
|
|
8
|
+
private startedHeight;
|
|
9
|
+
private FULL_SIZE;
|
|
10
|
+
private SCROLL_TYPE;
|
|
11
|
+
constructor(calendarService: CalendarDateTimePickerService, startedHeight: number, FULL_SIZE: number, SCROLL_TYPE: string);
|
|
12
|
+
private index$;
|
|
13
|
+
scrolledIndexChange: import("rxjs").Observable<any>;
|
|
14
|
+
private viewport?;
|
|
15
|
+
attach(viewport: CdkVirtualScrollViewport): void;
|
|
16
|
+
updateScrollHeights(height: number): void;
|
|
17
|
+
detach(): void;
|
|
18
|
+
onContentScrolled(): void;
|
|
19
|
+
/** These do not matter for this case */
|
|
20
|
+
onDataLengthChanged(): void;
|
|
21
|
+
onContentRendered(): void;
|
|
22
|
+
onRenderedOffsetChanged(): void;
|
|
23
|
+
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
24
|
+
scrollToOffset(offset: number, behavior: ScrollBehavior): void;
|
|
25
|
+
getOffsetForIndex(index: number): number;
|
|
26
|
+
private getIndexForOffset;
|
|
27
|
+
private updateRenderedRange;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarStrategy, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarStrategy>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class CustomDatetimePickersConstants {
|
|
2
|
+
static readonly timeMinutes: string[];
|
|
3
|
+
static readonly timeMinutesGapFive: string[];
|
|
4
|
+
static readonly monthNames: string[];
|
|
5
|
+
static readonly hourTimes: number[];
|
|
6
|
+
static readonly defaultScrollTypes: {
|
|
7
|
+
pmAmScroll: number;
|
|
8
|
+
minutesScroll: number;
|
|
9
|
+
hourScroll: number;
|
|
10
|
+
monthScroll: number;
|
|
11
|
+
dayScroll: number;
|
|
12
|
+
yearScroll: number;
|
|
13
|
+
};
|
|
14
|
+
static readonly timeOfDay: string[];
|
|
15
|
+
static readonly defaultSelectedTime = "12:00 AM";
|
|
16
|
+
static readonly defaultOutputTypeTime: string[];
|
|
17
|
+
static readonly defaultOutputTypeDate: string[];
|
|
18
|
+
static readonly dayOfWeekLetters: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomError } from '../../input/models';
|
|
2
|
+
import { ICaInput } from '../components/cai-custom-datetime-pickers/config';
|
|
3
|
+
export interface CaiDateTimeConfig extends ICaInput {
|
|
4
|
+
inTable?: boolean;
|
|
5
|
+
inverse?: boolean;
|
|
6
|
+
size?: number;
|
|
7
|
+
customErrors?: CustomError[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import { PmItem } from '../../models/pm.model';
|
|
3
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PmComponent implements ControlValueAccessor {
|
|
6
|
+
ngControl: NgControl | null;
|
|
7
|
+
/**
|
|
8
|
+
* List of PM items passed from the parent component.
|
|
9
|
+
* Used to render all available PM options.
|
|
10
|
+
*/
|
|
11
|
+
items: import("@angular/core").InputSignal<PmItem[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Event emitted when the "Add new" button is clicked.
|
|
14
|
+
* The parent component can listen to this and perform appropriate actions.
|
|
15
|
+
*/
|
|
16
|
+
onAdd: import("@angular/core").OutputEmitterRef<void>;
|
|
17
|
+
onSelectionChange: import("@angular/core").OutputEmitterRef<PmItem | null>;
|
|
18
|
+
/**
|
|
19
|
+
* The currently selected PM item.
|
|
20
|
+
* Used to track and display the selected item's title and logo.
|
|
21
|
+
*/
|
|
22
|
+
selectedPmItem: import("@angular/core").WritableSignal<PmItem | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Disabled state for forms integration.
|
|
25
|
+
*/
|
|
26
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Holder for incoming value from writeValue to resolve against items.
|
|
29
|
+
*/
|
|
30
|
+
private _incomingValue;
|
|
31
|
+
onChange: (value: number | null) => void;
|
|
32
|
+
onTouched: () => void;
|
|
33
|
+
constructor(ngControl: NgControl | null);
|
|
34
|
+
/**
|
|
35
|
+
* Boolean signal indicating whether the PM popover is currently visible.
|
|
36
|
+
* Used to apply conditional styling or behavior when the popover is shown or hidden.
|
|
37
|
+
*/
|
|
38
|
+
showPmPopover: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the "Add new" button is clicked.
|
|
41
|
+
* Emits the `onAdd` event to notify the parent component.
|
|
42
|
+
*/
|
|
43
|
+
onAddItem(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Opens the tooltip when hovering over a PM item.
|
|
46
|
+
*/
|
|
47
|
+
onShowTooltip(tooltip: NgbTooltip): void;
|
|
48
|
+
/**
|
|
49
|
+
* Closes the tooltip when the mouse leaves a PM item.
|
|
50
|
+
*/
|
|
51
|
+
onHideTooltip(tooltip: NgbTooltip): void;
|
|
52
|
+
/**
|
|
53
|
+
* Called when the PM popover becomes visible.
|
|
54
|
+
*/
|
|
55
|
+
onPmShown(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Called when the PM popover is hidden.
|
|
58
|
+
*/
|
|
59
|
+
onPmHidden(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Called when a PM item is clicked.
|
|
62
|
+
* Sets the `selectedPmItem` with the clicked item's data.
|
|
63
|
+
*/
|
|
64
|
+
onSelectedItem(item: PmItem): void;
|
|
65
|
+
/**
|
|
66
|
+
* Clears the selected PM item.
|
|
67
|
+
* Resets id, title and logoName.
|
|
68
|
+
*/
|
|
69
|
+
onClear(): void;
|
|
70
|
+
writeValue(value: number | string | null): void;
|
|
71
|
+
registerOnChange(fn: (value: number | null) => void): void;
|
|
72
|
+
registerOnTouched(fn: () => void): void;
|
|
73
|
+
setDisabledState(isDisabled: boolean): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PmComponent, [{ optional: true; self: true; }]>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PmComponent, "cai-pm", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './selected-business-field.interface';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectedBusinessField } from './interfaces';
|
|
2
|
+
import { eAlignment, eGeneralActions } from '../../enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectedBusinessFieldComponent {
|
|
5
|
+
business: import("@angular/core").InputSignal<SelectedBusinessField>;
|
|
6
|
+
onAction: import("@angular/core").OutputEmitterRef<eGeneralActions>;
|
|
7
|
+
eGeneralActions: typeof eGeneralActions;
|
|
8
|
+
eAlignment: typeof eAlignment;
|
|
9
|
+
handleAction(action: eGeneralActions): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedBusinessFieldComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectedBusinessFieldComponent, "cai-selected-business-field", never, { "business": { "alias": "business"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
12
|
+
}
|