@wizishop/angular-components 14.3.20 → 14.3.21
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/angular-components.scss +45 -45
- package/esm2020/lib/components/calendar/calendar.component.mjs +5 -12
- package/fesm2015/wizishop-angular-components.mjs +4 -11
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +4 -11
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/calendar/calendar.component.d.ts +10 -5
- package/package.json +1 -1
- package/wizishop-angular-components-14.3.21.tgz +0 -0
- package/wizishop-angular-components-14.3.20.tgz +0 -0
|
@@ -1832,7 +1832,6 @@ class CalendarComponent {
|
|
|
1832
1832
|
this.typeDate = 'datetime-local'; // todo check why it is broken
|
|
1833
1833
|
this.noMargin = false;
|
|
1834
1834
|
this.disabled = false;
|
|
1835
|
-
this.selected = new EventEmitter();
|
|
1836
1835
|
this.changeData = new EventEmitter();
|
|
1837
1836
|
this.open = false;
|
|
1838
1837
|
this.startLabel = '';
|
|
@@ -1909,13 +1908,9 @@ class CalendarComponent {
|
|
|
1909
1908
|
}
|
|
1910
1909
|
}
|
|
1911
1910
|
setCalendarDate() {
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
this.currentHours = selectedDate.getHours() < 10 ? '0' + selectedDate.getHours() : selectedDate.getHours();
|
|
1917
|
-
this.currentMinutes = selectedDate.getMinutes() < 10 ? '0' + selectedDate.getMinutes() : selectedDate.getMinutes();
|
|
1918
|
-
this.currentDate = new Date(selectedDate.setHours(0, 0, 0, 0));
|
|
1911
|
+
this.currentHours = this.dateSelected.getHours() < 10 ? '0' + this.dateSelected.getHours() : this.dateSelected.getHours();
|
|
1912
|
+
this.currentMinutes = this.dateSelected.getMinutes() < 10 ? '0' + this.dateSelected.getMinutes() : this.dateSelected.getMinutes();
|
|
1913
|
+
this.currentDate = new Date(this.dateSelected.setHours(0, 0, 0, 0));
|
|
1919
1914
|
if (this.typeDate === 'date') {
|
|
1920
1915
|
this.currentHours = '00';
|
|
1921
1916
|
this.currentMinutes = '00';
|
|
@@ -2003,7 +1998,7 @@ class CalendarComponent {
|
|
|
2003
1998
|
}
|
|
2004
1999
|
}
|
|
2005
2000
|
CalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2006
|
-
CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CalendarComponent, selector: "wac-calendar", inputs: { label: "label", type: "type", options: "options", position: "position", dateSelected: "dateSelected", typeDate: "typeDate", noMargin: "noMargin", disabled: "disabled" }, outputs: { dateSelectedChange: "dateSelectedChange",
|
|
2001
|
+
CalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CalendarComponent, selector: "wac-calendar", inputs: { label: "label", type: "type", options: "options", position: "position", dateSelected: "dateSelected", typeDate: "typeDate", noMargin: "noMargin", disabled: "disabled" }, outputs: { dateSelectedChange: "dateSelectedChange", changeData: "changeData" }, providers: [
|
|
2007
2002
|
{
|
|
2008
2003
|
provide: NG_VALUE_ACCESSOR,
|
|
2009
2004
|
useExisting: CalendarComponent,
|
|
@@ -2037,8 +2032,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
2037
2032
|
type: Input
|
|
2038
2033
|
}], disabled: [{
|
|
2039
2034
|
type: Input
|
|
2040
|
-
}], selected: [{
|
|
2041
|
-
type: Output
|
|
2042
2035
|
}], changeData: [{
|
|
2043
2036
|
type: Output
|
|
2044
2037
|
}] } });
|