ecabs-components 1.0.28 → 1.0.30
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/esm2022/ecabs-components.mjs +4 -4
- package/esm2022/lib/base/consts/date-mask.consts.mjs +56 -56
- package/esm2022/lib/base/directives/date-mask.directive.mjs +64 -64
- package/esm2022/lib/base/directives/date-mask.directive.module.mjs +21 -21
- package/esm2022/lib/base/directives/digits-only.directive.mjs +129 -129
- package/esm2022/lib/base/directives/digits-only.directive.module.mjs +21 -21
- package/esm2022/lib/base/directives/number-border.directive.mjs +53 -53
- package/esm2022/lib/base/directives/number-border.directive.module.mjs +21 -21
- package/esm2022/lib/base/directives/tooltip-if-truncated.directive.mjs +29 -0
- package/esm2022/lib/base/directives/tooltip-if-truncated.directive.module.mjs +22 -0
- package/esm2022/lib/base/element-base.mjs +99 -99
- package/esm2022/lib/base/element-wrapper/element-wrapper.component.mjs +52 -52
- package/esm2022/lib/base/element-wrapper/element-wrapper.module.mjs +51 -51
- package/esm2022/lib/base/hint/hint.component.mjs +20 -20
- package/esm2022/lib/base/hint/hint.module.mjs +19 -19
- package/esm2022/lib/base/validation/validation.component.mjs +69 -69
- package/esm2022/lib/base/validation/validation.module.mjs +19 -19
- package/esm2022/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.mjs +30 -30
- package/esm2022/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.mjs +19 -19
- package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.mjs +15 -15
- package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.mjs +19 -19
- package/esm2022/lib/ecabs-buttons/ecabs-buttons.component.mjs +62 -62
- package/esm2022/lib/ecabs-buttons/ecabs-buttons.module.mjs +20 -20
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +100 -100
- package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.mjs +35 -35
- package/esm2022/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.mjs +16 -16
- package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.component.mjs +84 -84
- package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.module.mjs +47 -47
- package/esm2022/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.mjs +16 -16
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +178 -178
- package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.mjs +63 -63
- package/esm2022/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.mjs +16 -16
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.mjs +192 -192
- package/esm2022/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.mjs +64 -64
- package/esm2022/lib/ecabs-date-time-range-picker/time-range.directive.mjs +44 -44
- package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.mjs +46 -46
- package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.mjs +19 -19
- package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.component.mjs +43 -43
- package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.module.mjs +19 -19
- package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.mjs +18 -18
- package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.mjs +18 -18
- package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.mjs +75 -75
- package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.mjs +23 -23
- package/esm2022/lib/ecabs-increment/ecabs-increment.component.mjs +77 -77
- package/esm2022/lib/ecabs-increment/ecabs-increment.module.mjs +22 -22
- package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +82 -82
- package/esm2022/lib/ecabs-input/ecabs-input.module.mjs +21 -21
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.component.mjs +61 -61
- package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.module.mjs +38 -38
- package/esm2022/lib/ecabs-loading/ecabs-loading.component.mjs +23 -23
- package/esm2022/lib/ecabs-loading/ecabs-loading.module.mjs +18 -18
- package/esm2022/lib/ecabs-loading/spinner/spinner.component.mjs +15 -15
- package/esm2022/lib/ecabs-note/ecabs-note.component.mjs +29 -29
- package/esm2022/lib/ecabs-note/ecabs-note.module.mjs +18 -18
- package/esm2022/lib/ecabs-phone/ecabs-phone.component.mjs +103 -103
- package/esm2022/lib/ecabs-phone/ecabs-phone.module.mjs +21 -21
- package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +49 -49
- package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.module.mjs +21 -21
- package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.mjs +64 -64
- package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.mjs +31 -31
- package/esm2022/lib/ecabs-select/ecabs-select.component.mjs +322 -310
- package/esm2022/lib/ecabs-select/ecabs-select.module.mjs +68 -60
- package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +16 -16
- package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.mjs +23 -23
- package/esm2022/lib/ecabs-table/ecabs-table.component.mjs +42 -42
- package/esm2022/lib/ecabs-table/ecabs-table.module.mjs +32 -32
- package/esm2022/lib/ecabs-textarea/ecabs-textarea.component.mjs +61 -61
- package/esm2022/lib/ecabs-textarea/ecabs-textarea.module.mjs +19 -19
- package/esm2022/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.mjs +136 -136
- package/esm2022/lib/ecabs-timepicker/config.model.mjs +1 -1
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.component.mjs +311 -311
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.module.mjs +19 -19
- package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.service.mjs +30 -30
- package/esm2022/lib/ecabs-validation/ecabs-validation.component.mjs +18 -18
- package/esm2022/lib/ecabs-validation/ecabs-validation.module.mjs +18 -18
- package/esm2022/lib/models/bread-crumb.mjs +1 -1
- package/esm2022/lib/models/timepicker.models.mjs +1 -1
- package/esm2022/lib/models/validation.models.mjs +1 -1
- package/esm2022/lib/services/ecabs-components.service.mjs +31 -31
- package/esm2022/public-api.mjs +61 -59
- package/fesm2022/ecabs-components.mjs +3318 -3256
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/base/consts/date-mask.consts.d.ts +7 -7
- package/lib/base/directives/date-mask.directive.d.ts +16 -16
- package/lib/base/directives/date-mask.directive.module.d.ts +8 -8
- package/lib/base/directives/digits-only.directive.d.ts +26 -26
- package/lib/base/directives/digits-only.directive.module.d.ts +8 -8
- package/lib/base/directives/number-border.directive.d.ts +13 -13
- package/lib/base/directives/number-border.directive.module.d.ts +8 -8
- package/lib/base/directives/tooltip-if-truncated.directive.d.ts +12 -0
- package/lib/base/directives/tooltip-if-truncated.directive.module.d.ts +8 -0
- package/lib/base/element-base.d.ts +28 -28
- package/lib/base/element-wrapper/element-wrapper.component.d.ts +19 -19
- package/lib/base/element-wrapper/element-wrapper.module.d.ts +16 -16
- package/lib/base/hint/hint.component.d.ts +8 -8
- package/lib/base/hint/hint.module.d.ts +10 -10
- package/lib/base/validation/validation.component.d.ts +24 -24
- package/lib/base/validation/validation.module.d.ts +10 -10
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.component.d.ts +14 -14
- package/lib/ecabs-active-status-filter/ecabs-active-status-filter.module.d.ts +10 -10
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.d.ts +7 -7
- package/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.d.ts +10 -10
- package/lib/ecabs-buttons/ecabs-buttons.component.d.ts +20 -20
- package/lib/ecabs-buttons/ecabs-buttons.module.d.ts +11 -11
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.d.ts +31 -31
- package/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.d.ts +12 -12
- package/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.d.ts +6 -6
- package/lib/ecabs-date-picker/ecabs-date-picker.component.d.ts +29 -29
- package/lib/ecabs-date-picker/ecabs-date-picker.module.d.ts +15 -15
- package/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.d.ts +6 -6
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +51 -51
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.d.ts +19 -19
- package/lib/ecabs-date-time-range-picker/components/ecabs-date-time-range-picker-header/ecabs-date-time-range-picker-header.component.d.ts +6 -6
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.component.d.ts +58 -58
- package/lib/ecabs-date-time-range-picker/ecabs-date-time-range-picker.module.d.ts +20 -20
- package/lib/ecabs-date-time-range-picker/time-range.directive.d.ts +15 -15
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.d.ts +31 -31
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.d.ts +11 -11
- package/lib/ecabs-dialog-message/ecabs-dialog-message.component.d.ts +28 -28
- package/lib/ecabs-dialog-message/ecabs-dialog-message.module.d.ts +11 -11
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.d.ts +12 -12
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.d.ts +9 -9
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.d.ts +28 -28
- package/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.d.ts +14 -14
- package/lib/ecabs-increment/ecabs-increment.component.d.ts +26 -26
- package/lib/ecabs-increment/ecabs-increment.module.d.ts +13 -13
- package/lib/ecabs-input/ecabs-input.component.d.ts +27 -27
- package/lib/ecabs-input/ecabs-input.module.d.ts +12 -12
- package/lib/ecabs-language-selector/ecabs-language-selector.component.d.ts +20 -20
- package/lib/ecabs-language-selector/ecabs-language-selector.module.d.ts +12 -12
- package/lib/ecabs-loading/ecabs-loading.component.d.ts +8 -8
- package/lib/ecabs-loading/ecabs-loading.module.d.ts +9 -9
- package/lib/ecabs-loading/spinner/spinner.component.d.ts +6 -6
- package/lib/ecabs-note/ecabs-note.component.d.ts +7 -7
- package/lib/ecabs-note/ecabs-note.module.d.ts +9 -9
- package/lib/ecabs-phone/ecabs-phone.component.d.ts +33 -33
- package/lib/ecabs-phone/ecabs-phone.module.d.ts +12 -12
- package/lib/ecabs-picker-header/ecabs-picker-header.component.d.ts +19 -19
- package/lib/ecabs-picker-header/ecabs-picker-header.module.d.ts +12 -12
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.d.ts +24 -24
- package/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.d.ts +11 -11
- package/lib/ecabs-select/ecabs-select.component.d.ts +72 -71
- package/lib/ecabs-select/ecabs-select.module.d.ts +17 -15
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.d.ts +8 -8
- package/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.d.ts +9 -9
- package/lib/ecabs-table/ecabs-table.component.d.ts +18 -18
- package/lib/ecabs-table/ecabs-table.module.d.ts +12 -12
- package/lib/ecabs-textarea/ecabs-textarea.component.d.ts +20 -20
- package/lib/ecabs-textarea/ecabs-textarea.module.d.ts +10 -10
- package/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.d.ts +40 -40
- package/lib/ecabs-timepicker/config.model.d.ts +5 -5
- package/lib/ecabs-timepicker/ecabs-timepicker.component.d.ts +53 -53
- package/lib/ecabs-timepicker/ecabs-timepicker.module.d.ts +10 -10
- package/lib/ecabs-timepicker/ecabs-timepicker.service.d.ts +12 -12
- package/lib/ecabs-validation/ecabs-validation.component.d.ts +10 -10
- package/lib/ecabs-validation/ecabs-validation.module.d.ts +9 -9
- package/lib/models/bread-crumb.d.ts +5 -5
- package/lib/models/timepicker.models.d.ts +6 -6
- package/lib/models/validation.models.d.ts +7 -7
- package/lib/services/ecabs-components.service.d.ts +16 -16
- package/package.json +1 -1
- package/public-api.d.ts +60 -58
|
@@ -1,179 +1,179 @@
|
|
|
1
|
-
import { DecimalPipe } from '@angular/common';
|
|
2
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
-
import { format, isValid, parse, setHours, setMinutes, setSeconds } from 'date-fns';
|
|
4
|
-
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
5
|
-
import ElementBaseComponent from '../base/element-base';
|
|
6
|
-
import { EcabsDateTimePickerHeaderComponent } from './components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/common";
|
|
9
|
-
import * as i2 from "../base/element-wrapper/element-wrapper.component";
|
|
10
|
-
import * as i3 from "@angular/material/icon";
|
|
11
|
-
import * as i4 from "@angular/material/datepicker";
|
|
12
|
-
import * as i5 from "@angular/material/legacy-button";
|
|
13
|
-
import * as i6 from "@angular/forms";
|
|
14
|
-
import * as i7 from "../base/directives/digits-only.directive";
|
|
15
|
-
import * as i8 from "../base/directives/number-border.directive";
|
|
16
|
-
import * as i9 from "../base/directives/date-mask.directive";
|
|
17
|
-
export class EcabsDateTimePickerComponent extends ElementBaseComponent {
|
|
18
|
-
get value() {
|
|
19
|
-
return this.val;
|
|
20
|
-
}
|
|
21
|
-
get pickerValue() {
|
|
22
|
-
return this._pickerValue;
|
|
23
|
-
}
|
|
24
|
-
get hours() {
|
|
25
|
-
return this._hours;
|
|
26
|
-
}
|
|
27
|
-
get minutes() {
|
|
28
|
-
return this._minutes;
|
|
29
|
-
}
|
|
30
|
-
get seconds() {
|
|
31
|
-
return this._seconds;
|
|
32
|
-
}
|
|
33
|
-
set hours(value) {
|
|
34
|
-
if (value !== undefined && this._hours !== value) {
|
|
35
|
-
this._hours = this.roundNumber(+value);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
set minutes(value) {
|
|
39
|
-
if (value !== undefined && this._minutes !== value) {
|
|
40
|
-
this._minutes = this.roundNumber(+value);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
set seconds(value) {
|
|
44
|
-
if (value !== undefined && this._seconds !== value) {
|
|
45
|
-
this._seconds = this.roundNumber(+value);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
set value(val) {
|
|
49
|
-
if (val && this.val !== new Date(val)) {
|
|
50
|
-
this.val = new Date(val);
|
|
51
|
-
this.pickerValue = this.formatDateTime(val);
|
|
52
|
-
this.onChange(val);
|
|
53
|
-
this.onTouch(val);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
set pickerValue(val) {
|
|
57
|
-
if (val) {
|
|
58
|
-
const date = parse(val.replace('_', ''), this.hideSeconds ? `dd/MM/yyyy, HH:mm` : `dd/MM/yyyy, HH:mm:ss`, new Date());
|
|
59
|
-
if (isValid(date) && this._pickerValue !== val) {
|
|
60
|
-
this._pickerValue = val;
|
|
61
|
-
this.value = date;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
constructor(injector, decimalPipe) {
|
|
66
|
-
super();
|
|
67
|
-
this.injector = injector;
|
|
68
|
-
this.decimalPipe = decimalPipe;
|
|
69
|
-
this.touchUi = false;
|
|
70
|
-
this.hideSeconds = true;
|
|
71
|
-
this.cancleLabel = 'Cancel';
|
|
72
|
-
this.applyLabel = 'Apply';
|
|
73
|
-
this.selectDateLabel = 'Select date and time';
|
|
74
|
-
this.onblur = new EventEmitter();
|
|
75
|
-
this._hours = '12';
|
|
76
|
-
this._minutes = '00';
|
|
77
|
-
this._seconds = '00';
|
|
78
|
-
this.header = EcabsDateTimePickerHeaderComponent;
|
|
79
|
-
this.maxValueHours = 23;
|
|
80
|
-
this.maxValueMinutesSeconds = 59;
|
|
81
|
-
this.onChange = () => { };
|
|
82
|
-
this.onTouch = () => { };
|
|
83
|
-
}
|
|
84
|
-
ngAfterViewInit() {
|
|
85
|
-
const ngControl = this.injector.get(NgControl, null);
|
|
86
|
-
if (ngControl) {
|
|
87
|
-
this.control = ngControl.control;
|
|
88
|
-
setTimeout(() => {
|
|
89
|
-
const controlDate = !!this.control.value ? new Date(this.control.value) : new Date();
|
|
90
|
-
if (controlDate) {
|
|
91
|
-
this.setValues(controlDate);
|
|
92
|
-
}
|
|
93
|
-
}, 10);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
writeValue(value) {
|
|
97
|
-
this.value = value;
|
|
98
|
-
}
|
|
99
|
-
registerOnChange(fn) {
|
|
100
|
-
this.onChange = fn;
|
|
101
|
-
}
|
|
102
|
-
registerOnTouched(fn) {
|
|
103
|
-
this.onTouch = fn;
|
|
104
|
-
}
|
|
105
|
-
blurChange(e) {
|
|
106
|
-
this.onblur.emit(e);
|
|
107
|
-
}
|
|
108
|
-
onApply() {
|
|
109
|
-
if (this._date && this._seconds && this._minutes && this._hours) {
|
|
110
|
-
const date = setSeconds(setMinutes(setHours(new Date(this._date), +this._hours), +this._minutes), +this._seconds);
|
|
111
|
-
if (this.minDate && date < this.minDate) {
|
|
112
|
-
this.setValues(this.minDate);
|
|
113
|
-
this.value = this.minDate;
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (this.maxDate && date > this.maxDate) {
|
|
117
|
-
this.setValues(this.maxDate);
|
|
118
|
-
this.value = this.maxDate;
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.value = date;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
formatDateTime(date) {
|
|
125
|
-
let result = '';
|
|
126
|
-
if (date && isValid(new Date(date))) {
|
|
127
|
-
result = this.hideSeconds
|
|
128
|
-
? format(new Date(date), `dd/MM/yyyy, HH:mm`)
|
|
129
|
-
: format(new Date(date), `dd/MM/yyyy, HH:mm:ss`);
|
|
130
|
-
}
|
|
131
|
-
return result;
|
|
132
|
-
}
|
|
133
|
-
roundNumber(num) {
|
|
134
|
-
return this.decimalPipe.transform(num, '2.0-0') ?? '00';
|
|
135
|
-
}
|
|
136
|
-
setValues(date) {
|
|
137
|
-
this._date = date;
|
|
138
|
-
this.hours = date.getHours().toString();
|
|
139
|
-
this.minutes = date.getMinutes().toString();
|
|
140
|
-
this.seconds = date.getSeconds().toString();
|
|
141
|
-
}
|
|
142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimePickerComponent, deps: [{ token: i0.Injector }, { token: i1.DecimalPipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
143
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDateTimePickerComponent, selector: "ecabs-date-time-picker", inputs: { minDate: "minDate", maxDate: "maxDate", touchUi: "touchUi", hideSeconds: "hideSeconds", cancleLabel: "cancleLabel", applyLabel: "applyLabel", selectDateLabel: "selectDateLabel" }, outputs: { onblur: "onblur" }, providers: [
|
|
144
|
-
{
|
|
145
|
-
provide: NG_VALUE_ACCESSOR,
|
|
146
|
-
useExisting: EcabsDateTimePickerComponent,
|
|
147
|
-
multi: true,
|
|
148
|
-
},
|
|
149
|
-
DecimalPipe,
|
|
150
|
-
], usesInheritance: true, ngImport: i0, template: "<app-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"grid-picker-actions\">\r\n <button type=\"button\" mat-stroked-button class=\"w-full cancel-button\" color=\"primary\" matDatepickerCancel>\r\n {{ cancleLabel }}\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n mat-button\r\n class=\"w-full ml-0 apply-button\"\r\n color=\"primary\"\r\n matDatepickerApply\r\n (click)=\"onApply()\"\r\n >\r\n {{ applyLabel }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n appMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button type=\"button\" mat-icon-button class=\"datepicker-toggle\" (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</app-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}.datepicker-toggle{transform:translate(-1.25rem);background-color:inherit;left:-.125rem}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.date-input{margin:0rem -1.25rem 0rem -.25rem}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}.grid-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid-picker-actions button{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ElementWrapperComponent, selector: "app-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i4.MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions" }, { kind: "directive", type: i4.MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]" }, { kind: "directive", type: i4.MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]" }, { kind: "component", type: i5.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.DigitsOnlyDirective, selector: "[appDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }, { kind: "directive", type: i8.NumberBorderDirective, selector: "[appNumberBorder]", inputs: ["maxValue", "minValue"] }, { kind: "directive", type: i9.MaskDateDirective, selector: "[appMaskDate]", inputs: ["isDateTimeMask", "considerSeconds"] }] }); }
|
|
151
|
-
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimePickerComponent, decorators: [{
|
|
153
|
-
type: Component,
|
|
154
|
-
args: [{ selector: 'ecabs-date-time-picker', providers: [
|
|
155
|
-
{
|
|
156
|
-
provide: NG_VALUE_ACCESSOR,
|
|
157
|
-
useExisting: EcabsDateTimePickerComponent,
|
|
158
|
-
multi: true,
|
|
159
|
-
},
|
|
160
|
-
DecimalPipe,
|
|
161
|
-
], template: "<app-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"grid-picker-actions\">\r\n <button type=\"button\" mat-stroked-button class=\"w-full cancel-button\" color=\"primary\" matDatepickerCancel>\r\n {{ cancleLabel }}\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n mat-button\r\n class=\"w-full ml-0 apply-button\"\r\n color=\"primary\"\r\n matDatepickerApply\r\n (click)=\"onApply()\"\r\n >\r\n {{ applyLabel }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n appMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button type=\"button\" mat-icon-button class=\"datepicker-toggle\" (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</app-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}.datepicker-toggle{transform:translate(-1.25rem);background-color:inherit;left:-.125rem}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.date-input{margin:0rem -1.25rem 0rem -.25rem}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}.grid-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid-picker-actions button{width:100%}\n"] }]
|
|
162
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DecimalPipe }]; }, propDecorators: { minDate: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], maxDate: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], touchUi: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], hideSeconds: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], cancleLabel: [{
|
|
171
|
-
type: Input
|
|
172
|
-
}], applyLabel: [{
|
|
173
|
-
type: Input
|
|
174
|
-
}], selectDateLabel: [{
|
|
175
|
-
type: Input
|
|
176
|
-
}], onblur: [{
|
|
177
|
-
type: Output
|
|
178
|
-
}] } });
|
|
1
|
+
import { DecimalPipe } from '@angular/common';
|
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { format, isValid, parse, setHours, setMinutes, setSeconds } from 'date-fns';
|
|
4
|
+
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
5
|
+
import ElementBaseComponent from '../base/element-base';
|
|
6
|
+
import { EcabsDateTimePickerHeaderComponent } from './components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/common";
|
|
9
|
+
import * as i2 from "../base/element-wrapper/element-wrapper.component";
|
|
10
|
+
import * as i3 from "@angular/material/icon";
|
|
11
|
+
import * as i4 from "@angular/material/datepicker";
|
|
12
|
+
import * as i5 from "@angular/material/legacy-button";
|
|
13
|
+
import * as i6 from "@angular/forms";
|
|
14
|
+
import * as i7 from "../base/directives/digits-only.directive";
|
|
15
|
+
import * as i8 from "../base/directives/number-border.directive";
|
|
16
|
+
import * as i9 from "../base/directives/date-mask.directive";
|
|
17
|
+
export class EcabsDateTimePickerComponent extends ElementBaseComponent {
|
|
18
|
+
get value() {
|
|
19
|
+
return this.val;
|
|
20
|
+
}
|
|
21
|
+
get pickerValue() {
|
|
22
|
+
return this._pickerValue;
|
|
23
|
+
}
|
|
24
|
+
get hours() {
|
|
25
|
+
return this._hours;
|
|
26
|
+
}
|
|
27
|
+
get minutes() {
|
|
28
|
+
return this._minutes;
|
|
29
|
+
}
|
|
30
|
+
get seconds() {
|
|
31
|
+
return this._seconds;
|
|
32
|
+
}
|
|
33
|
+
set hours(value) {
|
|
34
|
+
if (value !== undefined && this._hours !== value) {
|
|
35
|
+
this._hours = this.roundNumber(+value);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
set minutes(value) {
|
|
39
|
+
if (value !== undefined && this._minutes !== value) {
|
|
40
|
+
this._minutes = this.roundNumber(+value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
set seconds(value) {
|
|
44
|
+
if (value !== undefined && this._seconds !== value) {
|
|
45
|
+
this._seconds = this.roundNumber(+value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
set value(val) {
|
|
49
|
+
if (val && this.val !== new Date(val)) {
|
|
50
|
+
this.val = new Date(val);
|
|
51
|
+
this.pickerValue = this.formatDateTime(val);
|
|
52
|
+
this.onChange(val);
|
|
53
|
+
this.onTouch(val);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
set pickerValue(val) {
|
|
57
|
+
if (val) {
|
|
58
|
+
const date = parse(val.replace('_', ''), this.hideSeconds ? `dd/MM/yyyy, HH:mm` : `dd/MM/yyyy, HH:mm:ss`, new Date());
|
|
59
|
+
if (isValid(date) && this._pickerValue !== val) {
|
|
60
|
+
this._pickerValue = val;
|
|
61
|
+
this.value = date;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
constructor(injector, decimalPipe) {
|
|
66
|
+
super();
|
|
67
|
+
this.injector = injector;
|
|
68
|
+
this.decimalPipe = decimalPipe;
|
|
69
|
+
this.touchUi = false;
|
|
70
|
+
this.hideSeconds = true;
|
|
71
|
+
this.cancleLabel = 'Cancel';
|
|
72
|
+
this.applyLabel = 'Apply';
|
|
73
|
+
this.selectDateLabel = 'Select date and time';
|
|
74
|
+
this.onblur = new EventEmitter();
|
|
75
|
+
this._hours = '12';
|
|
76
|
+
this._minutes = '00';
|
|
77
|
+
this._seconds = '00';
|
|
78
|
+
this.header = EcabsDateTimePickerHeaderComponent;
|
|
79
|
+
this.maxValueHours = 23;
|
|
80
|
+
this.maxValueMinutesSeconds = 59;
|
|
81
|
+
this.onChange = () => { };
|
|
82
|
+
this.onTouch = () => { };
|
|
83
|
+
}
|
|
84
|
+
ngAfterViewInit() {
|
|
85
|
+
const ngControl = this.injector.get(NgControl, null);
|
|
86
|
+
if (ngControl) {
|
|
87
|
+
this.control = ngControl.control;
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
const controlDate = !!this.control.value ? new Date(this.control.value) : new Date();
|
|
90
|
+
if (controlDate) {
|
|
91
|
+
this.setValues(controlDate);
|
|
92
|
+
}
|
|
93
|
+
}, 10);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
writeValue(value) {
|
|
97
|
+
this.value = value;
|
|
98
|
+
}
|
|
99
|
+
registerOnChange(fn) {
|
|
100
|
+
this.onChange = fn;
|
|
101
|
+
}
|
|
102
|
+
registerOnTouched(fn) {
|
|
103
|
+
this.onTouch = fn;
|
|
104
|
+
}
|
|
105
|
+
blurChange(e) {
|
|
106
|
+
this.onblur.emit(e);
|
|
107
|
+
}
|
|
108
|
+
onApply() {
|
|
109
|
+
if (this._date && this._seconds && this._minutes && this._hours) {
|
|
110
|
+
const date = setSeconds(setMinutes(setHours(new Date(this._date), +this._hours), +this._minutes), +this._seconds);
|
|
111
|
+
if (this.minDate && date < this.minDate) {
|
|
112
|
+
this.setValues(this.minDate);
|
|
113
|
+
this.value = this.minDate;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (this.maxDate && date > this.maxDate) {
|
|
117
|
+
this.setValues(this.maxDate);
|
|
118
|
+
this.value = this.maxDate;
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this.value = date;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
formatDateTime(date) {
|
|
125
|
+
let result = '';
|
|
126
|
+
if (date && isValid(new Date(date))) {
|
|
127
|
+
result = this.hideSeconds
|
|
128
|
+
? format(new Date(date), `dd/MM/yyyy, HH:mm`)
|
|
129
|
+
: format(new Date(date), `dd/MM/yyyy, HH:mm:ss`);
|
|
130
|
+
}
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
roundNumber(num) {
|
|
134
|
+
return this.decimalPipe.transform(num, '2.0-0') ?? '00';
|
|
135
|
+
}
|
|
136
|
+
setValues(date) {
|
|
137
|
+
this._date = date;
|
|
138
|
+
this.hours = date.getHours().toString();
|
|
139
|
+
this.minutes = date.getMinutes().toString();
|
|
140
|
+
this.seconds = date.getSeconds().toString();
|
|
141
|
+
}
|
|
142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimePickerComponent, deps: [{ token: i0.Injector }, { token: i1.DecimalPipe }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDateTimePickerComponent, selector: "ecabs-date-time-picker", inputs: { minDate: "minDate", maxDate: "maxDate", touchUi: "touchUi", hideSeconds: "hideSeconds", cancleLabel: "cancleLabel", applyLabel: "applyLabel", selectDateLabel: "selectDateLabel" }, outputs: { onblur: "onblur" }, providers: [
|
|
144
|
+
{
|
|
145
|
+
provide: NG_VALUE_ACCESSOR,
|
|
146
|
+
useExisting: EcabsDateTimePickerComponent,
|
|
147
|
+
multi: true,
|
|
148
|
+
},
|
|
149
|
+
DecimalPipe,
|
|
150
|
+
], usesInheritance: true, ngImport: i0, template: "<app-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"grid-picker-actions\">\r\n <button type=\"button\" mat-stroked-button class=\"w-full cancel-button\" color=\"primary\" matDatepickerCancel>\r\n {{ cancleLabel }}\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n mat-button\r\n class=\"w-full ml-0 apply-button\"\r\n color=\"primary\"\r\n matDatepickerApply\r\n (click)=\"onApply()\"\r\n >\r\n {{ applyLabel }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n appMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button type=\"button\" mat-icon-button class=\"datepicker-toggle\" (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</app-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}.datepicker-toggle{transform:translate(-1.25rem);background-color:inherit;left:-.125rem}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.date-input{margin:0rem -1.25rem 0rem -.25rem}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}.grid-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid-picker-actions button{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ElementWrapperComponent, selector: "app-element-wrapper", inputs: ["data", "showCloseIcon", "focusedFlag", "showPassword", "control"], outputs: ["showHidePassword", "clear", "increase", "decrease"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i4.MatDatepickerActions, selector: "mat-datepicker-actions, mat-date-range-picker-actions" }, { kind: "directive", type: i4.MatDatepickerCancel, selector: "[matDatepickerCancel], [matDateRangePickerCancel]" }, { kind: "directive", type: i4.MatDatepickerApply, selector: "[matDatepickerApply], [matDateRangePickerApply]" }, { kind: "component", type: i5.MatLegacyButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.DigitsOnlyDirective, selector: "[appDigitsOnly]", inputs: ["digitsOnly", "allowHyphen", "decimal", "decimalSeparator", "unit"] }, { kind: "directive", type: i8.NumberBorderDirective, selector: "[appNumberBorder]", inputs: ["maxValue", "minValue"] }, { kind: "directive", type: i9.MaskDateDirective, selector: "[appMaskDate]", inputs: ["isDateTimeMask", "considerSeconds"] }] }); }
|
|
151
|
+
}
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimePickerComponent, decorators: [{
|
|
153
|
+
type: Component,
|
|
154
|
+
args: [{ selector: 'ecabs-date-time-picker', providers: [
|
|
155
|
+
{
|
|
156
|
+
provide: NG_VALUE_ACCESSOR,
|
|
157
|
+
useExisting: EcabsDateTimePickerComponent,
|
|
158
|
+
multi: true,
|
|
159
|
+
},
|
|
160
|
+
DecimalPipe,
|
|
161
|
+
], template: "<app-element-wrapper [data]=\"getData()\">\r\n <div class=\"form-field__input--wrapper w-full\">\r\n <input\r\n class=\"fake-input\"\r\n [id]=\"_date\"\r\n [(ngModel)]=\"_date\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n [matDatepicker]=\"picker\"\r\n [min]=\"minDate\"\r\n [max]=\"maxDate\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <mat-datepicker #picker [calendarHeaderComponent]=\"header\" [touchUi]=\"touchUi\">\r\n <mat-datepicker-actions>\r\n <div class=\"actions\">\r\n <div class=\"time--inputs\">\r\n <input\r\n class=\"form-field__input time\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [id]=\"hours\"\r\n [value]=\"_hours\"\r\n [maxValue]=\"maxValueHours\"\r\n [(ngModel)]=\"hours\"\r\n />\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"minutes\"\r\n [(ngModel)]=\"minutes\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n\r\n <ng-container *ngIf=\"!hideSeconds\">\r\n <span class=\"font-bold\">:</span>\r\n <input\r\n class=\"form-field__input time\"\r\n [id]=\"seconds\"\r\n [(ngModel)]=\"seconds\"\r\n appDigitsOnly\r\n appNumberBorder\r\n [digitsOnly]=\"true\"\r\n [maxValue]=\"maxValueMinutesSeconds\"\r\n />\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"grid-picker-actions\">\r\n <button type=\"button\" mat-stroked-button class=\"w-full cancel-button\" color=\"primary\" matDatepickerCancel>\r\n {{ cancleLabel }}\r\n </button>\r\n\r\n <button\r\n type=\"button\"\r\n mat-button\r\n class=\"w-full ml-0 apply-button\"\r\n color=\"primary\"\r\n matDatepickerApply\r\n (click)=\"onApply()\"\r\n >\r\n {{ applyLabel }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-datepicker-actions>\r\n </mat-datepicker>\r\n <input\r\n class=\"form-field__input w-full date-input\"\r\n [id]=\"name\"\r\n [(ngModel)]=\"pickerValue\"\r\n [placeholder]=\"placeholder\"\r\n [disabled]=\"disabled\"\r\n appMaskDate\r\n [isDateTimeMask]=\"true\"\r\n [considerSeconds]=\"!hideSeconds\"\r\n (blur)=\"onTouch()\"\r\n />\r\n <button type=\"button\" mat-icon-button class=\"datepicker-toggle\" (click)=\"picker.open()\">\r\n <mat-icon>calendar_today</mat-icon>\r\n </button>\r\n </div>\r\n</app-element-wrapper>\r\n", styles: [".time--inputs:before,.time--inputs:after{position:absolute;content:\"\"}:host ::ng-deep .form-field{margin-right:-1.25rem;margin-left:-.125rem}.datepicker-toggle{transform:translate(-1.25rem);background-color:inherit;left:-.125rem}.time{width:3.375rem}.fake-input{visibility:hidden;width:0;padding:0;margin:0}.date-input{margin:0rem -1.25rem 0rem -.25rem}.time--inputs{position:relative;display:flex;gap:.5rem;justify-content:center;align-items:center;margin-top:2.4rem;margin-bottom:2.4rem}.time--inputs:before,.time--inputs:after{height:1px;right:0;left:0;background-color:var(--color-gray-300)}.time--inputs:before{top:-1.6rem}.time--inputs:after{bottom:-1.6rem}.font-bold{font-weight:700}.actions{display:flex;flex-direction:column;width:100%!important;row-gap:1rem}.grid-picker-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid-picker-actions button{width:100%}\n"] }]
|
|
162
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.DecimalPipe }]; }, propDecorators: { minDate: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], maxDate: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], touchUi: [{
|
|
167
|
+
type: Input
|
|
168
|
+
}], hideSeconds: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], cancleLabel: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], applyLabel: [{
|
|
173
|
+
type: Input
|
|
174
|
+
}], selectDateLabel: [{
|
|
175
|
+
type: Input
|
|
176
|
+
}], onblur: [{
|
|
177
|
+
type: Output
|
|
178
|
+
}] } });
|
|
179
179
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNhYnMtZGF0ZS10aW1lLXBpY2tlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lY2Ficy1jb21wb25lbnRzL3NyYy9saWIvZWNhYnMtZGF0ZS10aW1lLXBpY2tlci9lY2Ficy1kYXRlLXRpbWUtcGlja2VyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VjYWJzLWNvbXBvbmVudHMvc3JjL2xpYi9lY2Ficy1kYX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ICAgICAgICAgIFsobmdNb2RlbCldPVwiaG91cnNcIlxyXG4gICAgICAgICAgICAvPlxyXG4gICAgICAgICAgICA8c3BhbiBjbGFzcz1cImZvbnQtYm9sZFwiPjo8L3NwYW4+XHJcbiAgICAgICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgICAgIGNsYXNzPVwiZm9ybS1maWVsZF9faW5wdXQgdGltZVwiXHJcbiAgICAgICAgICAgICAgW2lkXT1cIm1pbnV0ZXNcIlxyXG4gICAgICAgICAgICAgIFsobmdNb2RlbCldPVwibWludXRlc1wiXHJcbiAgICAgICAgICAgICAgYXBwRGlnaXRzT25seVxyXG4gICAgICAgICAgICAgIGFwcE51bWJlckJvcmRlclxyXG4gICAgICAgICAgICAgIFtkaWdpdHNPbmx5XT1cInRydWVcIlxyXG4gICAgICAgICAgICAgIFttYXhWYWx1ZV09XCJtYXhWYWx1ZU1pbnV0ZXNTZWNvbmRzXCJcclxuICAgICAgICAgICAgLz5cclxuXHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhaGlkZVNlY29uZHNcIj5cclxuICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImZvbnQtYm9sZFwiPjo8L3NwYW4+XHJcbiAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImZvcm0tZmllbGRfX2lucHV0IHRpbWVcIlxyXG4gICAgICAgICAgICAgICAgW2lkXT1cInNlY29uZHNcIlxyXG4gICAgICAgICAgICAgICAgWyhuZ01vZGVsKV09XCJzZWNvbmRzXCJcclxuICAgICAgICAgICAgICAgIGFwcERpZ2l0c09ubHlcclxuICAgICAgICAgICAgICAgIGFwcE51bWJlckJvcmRlclxyXG4gICAgICAgICAgICAgICAgW2RpZ2l0c09ubHldPVwidHJ1ZVwiXHJcbiAgICAgICAgICAgICAgICBbbWF4VmFsdWVdPVwibWF4VmFsdWVNaW51dGVzU2Vjb25kc1wiXHJcbiAgICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICA8L2Rpdj5cclxuXHJcbiAgICAgICAgICA8ZGl2IGNsYXNzPVwiZ3JpZC1waWNrZXItYWN0aW9uc1wiPlxyXG4gICAgICAgICAgICA8YnV0dG9uIHR5cGU9XCJidXR0b25cIiBtYXQtc3Ryb2tlZC1idXR0b24gY2xhc3M9XCJ3LWZ1bGwgY2FuY2VsLWJ1dHRvblwiIGNvbG9yPVwicHJpbWFyeVwiIG1hdERhdGVwaWNrZXJDYW5jZWw+XHJcbiAgICAgICAgICAgICAge3sgY2FuY2xlTGFiZWwgfX1cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcblxyXG4gICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgbWF0LWJ1dHRvblxyXG4gICAgICAgICAgICAgIGNsYXNzPVwidy1mdWxsIG1sLTAgYXBwbHktYnV0dG9uXCJcclxuICAgICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxyXG4gICAgICAgICAgICAgIG1hdERhdGVwaWNrZXJBcHBseVxyXG4gICAgICAgICAgICAgIChjbGljayk9XCJvbkFwcGx5KClcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgIHt7IGFwcGx5TGFiZWwgfX1cclxuICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgPC9tYXQtZGF0ZXBpY2tlci1hY3Rpb25zPlxyXG4gICAgPC9tYXQtZGF0ZXBpY2tlcj5cclxuICAgIDxpbnB1dFxyXG4gICAgICBjbGFzcz1cImZvcm0tZmllbGRfX2lucHV0IHctZnVsbCBkYXRlLWlucHV0XCJcclxuICAgICAgW2lkXT1cIm5hbWVcIlxyXG4gICAgICBbKG5nTW9kZWwpXT1cInBpY2tlclZhbHVlXCJcclxuICAgICAgW3BsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcclxuICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcclxuICAgICAgYXBwTWFza0RhdGVcclxuICAgICAgW2lzRGF0ZVRpbWVNYXNrXT1cInRydWVcIlxyXG4gICAgICBbY29uc2lkZXJTZWNvbmRzXT1cIiFoaWRlU2Vjb25kc1wiXHJcbiAgICAgIChibHVyKT1cIm9uVG91Y2goKVwiXHJcbiAgICAvPlxyXG4gICAgPGJ1dHRvbiB0eXBlPVwiYnV0dG9uXCIgbWF0LWljb24tYnV0dG9uIGNsYXNzPVwiZGF0ZXBpY2tlci10b2dnbGVcIiAoY2xpY2spPVwicGlja2VyLm9wZW4oKVwiPlxyXG4gICAgICA8bWF0LWljb24+Y2FsZW5kYXJfdG9kYXk8L21hdC1pY29uPlxyXG4gICAgPC9idXR0b24+XHJcbiAgPC9kaXY+XHJcbjwvYXBwLWVsZW1lbnQtd3JhcHBlcj5cclxuIl19
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
5
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
-
import { MaskDateDirectiveModule } from '../base/directives/date-mask.directive.module';
|
|
7
|
-
import { DigitsOnlyDirectivesModule } from '../base/directives/digits-only.directive.module';
|
|
8
|
-
import { NumberBorderDirectiveModule } from '../base/directives/number-border.directive.module';
|
|
9
|
-
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
10
|
-
import { EcabsButtonsModule } from '../ecabs-buttons/ecabs-buttons.module';
|
|
11
|
-
import { EcabsPickerHeaderModule } from '../ecabs-picker-header/ecabs-picker-header.module';
|
|
12
|
-
import { EcabsDateTimePickerHeaderComponent } from './components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
|
|
13
|
-
import { EcabsDateTimePickerComponent } from './ecabs-date-time-picker.component';
|
|
14
|
-
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
export class EcabsDatetimePickerModule {
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
18
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, declarations: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent], imports: [CommonModule,
|
|
19
|
-
ElementWrapperModule,
|
|
20
|
-
MatIconModule,
|
|
21
|
-
MatDatepickerModule,
|
|
22
|
-
MatButtonModule,
|
|
23
|
-
FormsModule,
|
|
24
|
-
ReactiveFormsModule,
|
|
25
|
-
EcabsPickerHeaderModule,
|
|
26
|
-
EcabsButtonsModule,
|
|
27
|
-
DigitsOnlyDirectivesModule,
|
|
28
|
-
NumberBorderDirectiveModule,
|
|
29
|
-
MaskDateDirectiveModule], exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent] }); }
|
|
30
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, imports: [CommonModule,
|
|
31
|
-
ElementWrapperModule,
|
|
32
|
-
MatIconModule,
|
|
33
|
-
MatDatepickerModule,
|
|
34
|
-
MatButtonModule,
|
|
35
|
-
FormsModule,
|
|
36
|
-
ReactiveFormsModule,
|
|
37
|
-
EcabsPickerHeaderModule,
|
|
38
|
-
EcabsButtonsModule,
|
|
39
|
-
DigitsOnlyDirectivesModule,
|
|
40
|
-
NumberBorderDirectiveModule,
|
|
41
|
-
MaskDateDirectiveModule] }); }
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, decorators: [{
|
|
44
|
-
type: NgModule,
|
|
45
|
-
args: [{
|
|
46
|
-
declarations: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent],
|
|
47
|
-
imports: [
|
|
48
|
-
CommonModule,
|
|
49
|
-
ElementWrapperModule,
|
|
50
|
-
MatIconModule,
|
|
51
|
-
MatDatepickerModule,
|
|
52
|
-
MatButtonModule,
|
|
53
|
-
FormsModule,
|
|
54
|
-
ReactiveFormsModule,
|
|
55
|
-
EcabsPickerHeaderModule,
|
|
56
|
-
EcabsButtonsModule,
|
|
57
|
-
DigitsOnlyDirectivesModule,
|
|
58
|
-
NumberBorderDirectiveModule,
|
|
59
|
-
MaskDateDirectiveModule
|
|
60
|
-
],
|
|
61
|
-
exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent],
|
|
62
|
-
}]
|
|
63
|
-
}] });
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
5
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
+
import { MaskDateDirectiveModule } from '../base/directives/date-mask.directive.module';
|
|
7
|
+
import { DigitsOnlyDirectivesModule } from '../base/directives/digits-only.directive.module';
|
|
8
|
+
import { NumberBorderDirectiveModule } from '../base/directives/number-border.directive.module';
|
|
9
|
+
import { ElementWrapperModule } from '../base/element-wrapper/element-wrapper.module';
|
|
10
|
+
import { EcabsButtonsModule } from '../ecabs-buttons/ecabs-buttons.module';
|
|
11
|
+
import { EcabsPickerHeaderModule } from '../ecabs-picker-header/ecabs-picker-header.module';
|
|
12
|
+
import { EcabsDateTimePickerHeaderComponent } from './components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component';
|
|
13
|
+
import { EcabsDateTimePickerComponent } from './ecabs-date-time-picker.component';
|
|
14
|
+
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export class EcabsDatetimePickerModule {
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
18
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, declarations: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent], imports: [CommonModule,
|
|
19
|
+
ElementWrapperModule,
|
|
20
|
+
MatIconModule,
|
|
21
|
+
MatDatepickerModule,
|
|
22
|
+
MatButtonModule,
|
|
23
|
+
FormsModule,
|
|
24
|
+
ReactiveFormsModule,
|
|
25
|
+
EcabsPickerHeaderModule,
|
|
26
|
+
EcabsButtonsModule,
|
|
27
|
+
DigitsOnlyDirectivesModule,
|
|
28
|
+
NumberBorderDirectiveModule,
|
|
29
|
+
MaskDateDirectiveModule], exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent] }); }
|
|
30
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, imports: [CommonModule,
|
|
31
|
+
ElementWrapperModule,
|
|
32
|
+
MatIconModule,
|
|
33
|
+
MatDatepickerModule,
|
|
34
|
+
MatButtonModule,
|
|
35
|
+
FormsModule,
|
|
36
|
+
ReactiveFormsModule,
|
|
37
|
+
EcabsPickerHeaderModule,
|
|
38
|
+
EcabsButtonsModule,
|
|
39
|
+
DigitsOnlyDirectivesModule,
|
|
40
|
+
NumberBorderDirectiveModule,
|
|
41
|
+
MaskDateDirectiveModule] }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDatetimePickerModule, decorators: [{
|
|
44
|
+
type: NgModule,
|
|
45
|
+
args: [{
|
|
46
|
+
declarations: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent],
|
|
47
|
+
imports: [
|
|
48
|
+
CommonModule,
|
|
49
|
+
ElementWrapperModule,
|
|
50
|
+
MatIconModule,
|
|
51
|
+
MatDatepickerModule,
|
|
52
|
+
MatButtonModule,
|
|
53
|
+
FormsModule,
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
EcabsPickerHeaderModule,
|
|
56
|
+
EcabsButtonsModule,
|
|
57
|
+
DigitsOnlyDirectivesModule,
|
|
58
|
+
NumberBorderDirectiveModule,
|
|
59
|
+
MaskDateDirectiveModule
|
|
60
|
+
],
|
|
61
|
+
exports: [EcabsDateTimePickerComponent, EcabsDateTimePickerHeaderComponent],
|
|
62
|
+
}]
|
|
63
|
+
}] });
|
|
64
64
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNhYnMtZGF0ZS10aW1lLXBpY2tlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lY2Ficy1jb21wb25lbnRzL3NyYy9saWIvZWNhYnMtZGF0ZS10aW1lLXBpY2tlci9lY2Ficy1kYXRlLXRpbWUtcGlja2VyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsV0FBVyxFQUFFLG1CQUFtQixFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QU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VsYXIvbWF0ZXJpYWwvbGVnYWN5LWJ1dHRvbic7XHJcblxyXG5cclxuQE5nTW9kdWxlKHtcclxuICBkZWNsYXJhdGlvbnM6IFtFY2Fic0RhdGVUaW1lUGlja2VyQ29tcG9uZW50LCBFY2Fic0RhdGVUaW1lUGlja2VySGVhZGVyQ29tcG9uZW50XSxcclxuICBpbXBvcnRzOiBbXHJcbiAgICBDb21tb25Nb2R1bGUsXHJcbiAgICBFbGVtZW50V3JhcHBlck1vZHVsZSxcclxuICAgIE1hdEljb25Nb2R1bGUsXHJcbiAgICBNYXREYXRlcGlja2VyTW9kdWxlLFxyXG4gICAgTWF0QnV0dG9uTW9kdWxlLFxyXG4gICAgRm9ybXNNb2R1bGUsXHJcbiAgICBSZWFjdGl2ZUZvcm1zTW9kdWxlLFxyXG4gICAgRWNhYnNQaWNrZXJIZWFkZXJNb2R1bGUsXHJcbiAgICBFY2Fic0J1dHRvbnNNb2R1bGUsXHJcbiAgICBEaWdpdHNPbmx5RGlyZWN0aXZlc01vZHVsZSxcclxuICAgIE51bWJlckJvcmRlckRpcmVjdGl2ZU1vZHVsZSxcclxuICAgIE1hc2tEYXRlRGlyZWN0aXZlTW9kdWxlXHJcbiAgXSxcclxuICBleHBvcnRzOiBbRWNhYnNEYXRlVGltZVBpY2tlckNvbXBvbmVudCwgRWNhYnNEYXRlVGltZVBpY2tlckhlYWRlckNvbXBvbmVudF0sXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBFY2Fic0RhdGV0aW1lUGlja2VyTW9kdWxlIHtcclxufVxyXG4iXX0=
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "../../../ecabs-picker-header/ecabs-picker-header.component";
|
|
4
|
-
export class EcabsDateTimeRangePickerHeaderComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.headerLabel = 'Applicable times';
|
|
7
|
-
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimeRangePickerHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDateTimeRangePickerHeaderComponent, selector: "ecabs-date-time-range-picker-header", inputs: { headerLabel: "headerLabel" }, ngImport: i0, template: "<div class=\"select-date-label text-xl font-semibold\">\r\n {{ headerLabel }}\r\n </div>\r\n <ecabs-picker-header ></ecabs-picker-header>\r\n", styles: [":host ::ng-deep ecabs-picker-header{display:none!important}\n"], dependencies: [{ kind: "component", type: i1.EcabsPickerHeaderComponent, selector: "ecabs-picker-header" }] }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimeRangePickerHeaderComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'ecabs-date-time-range-picker-header', template: "<div class=\"select-date-label text-xl font-semibold\">\r\n {{ headerLabel }}\r\n </div>\r\n <ecabs-picker-header ></ecabs-picker-header>\r\n", styles: [":host ::ng-deep ecabs-picker-header{display:none!important}\n"] }]
|
|
14
|
-
}], propDecorators: { headerLabel: [{
|
|
15
|
-
type: Input
|
|
16
|
-
}] } });
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../../ecabs-picker-header/ecabs-picker-header.component";
|
|
4
|
+
export class EcabsDateTimeRangePickerHeaderComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.headerLabel = 'Applicable times';
|
|
7
|
+
}
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimeRangePickerHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EcabsDateTimeRangePickerHeaderComponent, selector: "ecabs-date-time-range-picker-header", inputs: { headerLabel: "headerLabel" }, ngImport: i0, template: "<div class=\"select-date-label text-xl font-semibold\">\r\n {{ headerLabel }}\r\n </div>\r\n <ecabs-picker-header ></ecabs-picker-header>\r\n", styles: [":host ::ng-deep ecabs-picker-header{display:none!important}\n"], dependencies: [{ kind: "component", type: i1.EcabsPickerHeaderComponent, selector: "ecabs-picker-header" }] }); }
|
|
10
|
+
}
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EcabsDateTimeRangePickerHeaderComponent, decorators: [{
|
|
12
|
+
type: Component,
|
|
13
|
+
args: [{ selector: 'ecabs-date-time-range-picker-header', template: "<div class=\"select-date-label text-xl font-semibold\">\r\n {{ headerLabel }}\r\n </div>\r\n <ecabs-picker-header ></ecabs-picker-header>\r\n", styles: [":host ::ng-deep ecabs-picker-header{display:none!important}\n"] }]
|
|
14
|
+
}], propDecorators: { headerLabel: [{
|
|
15
|
+
type: Input
|
|
16
|
+
}] } });
|
|
17
17
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNhYnMtZGF0ZS10aW1lLXJhbmdlLXBpY2tlci1oZWFkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZWNhYnMtY29tcG9uZW50cy9zcmMvbGliL2VjYWJzLWRhdGUtdGltZS1yYW5nZS1waWNrZXIvY29tcG9uZW50cy9lY2Ficy1kYXRlLXRpbWUtcmFuZ2UtcGlja2VyLWhlYWRlci9lY2Ficy1kYXRlLXRpbWUtcmFuZ2UtcGlja2VyLWhlYWRlci5jb21wb25lbnQudHMiLC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