@anglr/datetime 5.0.0 → 6.0.0-beta.20221223060503
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/changelog.md +155 -1
- package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
- package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
- package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
- package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
- package/es2015/moment/src/services/momentDateApi.service.js +35 -3
- package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
- package/es2015/src/directives/index.js +1 -0
- package/es2015/src/directives/index.js.map +1 -1
- package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
- package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
- package/es2015/src/directives/withTime/withTime.directive.js +5 -5
- package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
- package/es2015/src/directives/withToday/withToday.directive.js +5 -5
- package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
- package/es2015/src/index.js +0 -8
- package/es2015/src/index.js.map +1 -1
- package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
- package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
- package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
- package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
- package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
- package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
- package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
- package/es2015/src/misc/validators.js +0 -57
- package/es2015/src/misc/validators.js.map +1 -1
- package/es2015/src/modules/calendar/components/index.js +2 -0
- package/es2015/src/modules/calendar/components/index.js.map +1 -0
- package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
- package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
- package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
- package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
- package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
- package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
- package/es2015/src/modules/calendar/directives/index.js +3 -0
- package/es2015/src/modules/calendar/directives/index.js.map +1 -0
- package/es2015/src/modules/calendar/index.js +7 -0
- package/es2015/src/modules/calendar/index.js.map +1 -0
- package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
- package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
- package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
- package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
- package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
- package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
- package/es2015/src/modules/calendar/interfaces/index.js +4 -0
- package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
- package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
- package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
- package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
- package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
- package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
- package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
- package/es2015/src/modules/calendar/misc/index.js +2 -0
- package/es2015/src/modules/calendar/misc/index.js.map +1 -0
- package/es2015/src/modules/calendar/modules/index.js +2 -0
- package/es2015/src/modules/calendar/modules/index.js.map +1 -0
- package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
- package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
- package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
- package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
- package/es2015/src/modules/calendar/services/index.js +2 -0
- package/es2015/src/modules/calendar/services/index.js.map +1 -0
- package/es2015/src/modules/datePipes.module.js +4 -4
- package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
- package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
- package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
- package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
- package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
- package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
- package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
- package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
- package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
- package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
- package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
- package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
- package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
- package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
- package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
- package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
- package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
- package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
- package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
- package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
- package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
- package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
- package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
- package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
- package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
- package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
- package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
- package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
- package/es2015/src/modules/index.js +1 -0
- package/es2015/src/modules/index.js.map +1 -1
- package/es2015/src/pipes/dateConvert.pipe.js +3 -3
- package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
- package/es2015/src/pipes/dateFormat.pipe.js +3 -3
- package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
- package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
- package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
- package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
- package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
- package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
- package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
- package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
- package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
- package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
- package/es2020/moment/src/services/momentDateApi.service.js +35 -3
- package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
- package/es2020/src/directives/index.js +1 -0
- package/es2020/src/directives/index.js.map +1 -1
- package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
- package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
- package/es2020/src/directives/withTime/withTime.directive.js +5 -5
- package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
- package/es2020/src/directives/withToday/withToday.directive.js +5 -5
- package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
- package/es2020/src/index.js +0 -8
- package/es2020/src/index.js.map +1 -1
- package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
- package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
- package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
- package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
- package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
- package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
- package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
- package/es2020/src/misc/validators.js +0 -57
- package/es2020/src/misc/validators.js.map +1 -1
- package/es2020/src/modules/calendar/components/index.js +2 -0
- package/es2020/src/modules/calendar/components/index.js.map +1 -0
- package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
- package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
- package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
- package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
- package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
- package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
- package/es2020/src/modules/calendar/directives/index.js +3 -0
- package/es2020/src/modules/calendar/directives/index.js.map +1 -0
- package/es2020/src/modules/calendar/index.js +7 -0
- package/es2020/src/modules/calendar/index.js.map +1 -0
- package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
- package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
- package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
- package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
- package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
- package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
- package/es2020/src/modules/calendar/interfaces/index.js +4 -0
- package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
- package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
- package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
- package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
- package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
- package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
- package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
- package/es2020/src/modules/calendar/misc/index.js +2 -0
- package/es2020/src/modules/calendar/misc/index.js.map +1 -0
- package/es2020/src/modules/calendar/modules/index.js +2 -0
- package/es2020/src/modules/calendar/modules/index.js.map +1 -0
- package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
- package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
- package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
- package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
- package/es2020/src/modules/calendar/services/index.js +2 -0
- package/es2020/src/modules/calendar/services/index.js.map +1 -0
- package/es2020/src/modules/datePipes.module.js +4 -4
- package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
- package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
- package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
- package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
- package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
- package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
- package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
- package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
- package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
- package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
- package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
- package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
- package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
- package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
- package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
- package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
- package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
- package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
- package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
- package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
- package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
- package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
- package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
- package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
- package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
- package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
- package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
- package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
- package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
- package/es2020/src/modules/index.js +1 -0
- package/es2020/src/modules/index.js.map +1 -1
- package/es2020/src/pipes/dateConvert.pipe.js +3 -3
- package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
- package/es2020/src/pipes/dateFormat.pipe.js +3 -3
- package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
- package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
- package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
- package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
- package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
- package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
- package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
- package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
- package/moment/src/services/momentDateApi.service.d.ts +25 -12
- package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
- package/package.json +27 -36
- package/src/directives/index.d.ts +1 -0
- package/src/directives/index.d.ts.map +1 -1
- package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +11 -0
- package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
- package/src/directives/withTime/withTime.directive.d.ts +3 -3
- package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
- package/src/directives/withToday/withToday.directive.d.ts +3 -3
- package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
- package/src/index.d.ts +0 -8
- package/src/index.d.ts.map +1 -1
- package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
- package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
- package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
- package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
- package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
- package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
- package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
- package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
- package/src/misc/validators.d.ts +0 -23
- package/src/misc/validators.d.ts.map +1 -1
- package/src/modules/calendar/components/index.d.ts +2 -0
- package/src/modules/calendar/components/index.d.ts.map +1 -0
- package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
- package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
- package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
- package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
- package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
- package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
- package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
- package/src/modules/calendar/directives/index.d.ts +3 -0
- package/src/modules/calendar/directives/index.d.ts.map +1 -0
- package/src/modules/calendar/index.d.ts +7 -0
- package/src/modules/calendar/index.d.ts.map +1 -0
- package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
- package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
- package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
- package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
- package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
- package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
- package/src/modules/calendar/interfaces/index.d.ts +4 -0
- package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
- package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
- package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
- package/src/modules/calendar/misc/enums/index.d.ts +3 -0
- package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
- package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
- package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
- package/src/modules/calendar/misc/index.d.ts +2 -0
- package/src/modules/calendar/misc/index.d.ts.map +1 -0
- package/src/modules/calendar/modules/index.d.ts +2 -0
- package/src/modules/calendar/modules/index.d.ts.map +1 -0
- package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
- package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
- package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
- package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
- package/src/modules/calendar/services/index.d.ts +2 -0
- package/src/modules/calendar/services/index.d.ts.map +1 -0
- package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
- package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
- package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
- package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
- package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
- package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
- package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
- package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
- package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
- package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
- package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
- package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
- package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
- package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
- package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
- package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
- package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
- package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
- package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
- package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
- package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
- package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
- package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
- package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
- package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
- package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
- package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
- package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
- package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
- package/src/modules/index.d.ts +1 -0
- package/src/modules/index.d.ts.map +1 -1
- package/src/pipes/dateConvert.pipe.d.ts +1 -1
- package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
- package/src/pipes/dateFormat.pipe.d.ts +1 -1
- package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
- package/src/services/dateApi/dateApi.interface.d.ts +25 -12
- package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
- package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
- package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
- package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
- package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
- package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
- package/styles/components/_month-calendar.scss +68 -0
- package/styles/core/_mixins.scss +2 -0
- package/styles/core/_theme.scss +11 -0
- package/version.bak +1 -1
- package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
- package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
- package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
- package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
- package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
- package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
- package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
- package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
- package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
- package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
- package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
- package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
- package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
- package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
- package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
- package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
- package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
- package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
- package/es2015/src/legacy/picker/directives/index.js +0 -4
- package/es2015/src/legacy/picker/directives/index.js.map +0 -1
- package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
- package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
- package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
- package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
- package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
- package/es2015/src/legacy/picker/interfaces.js +0 -6
- package/es2015/src/legacy/picker/interfaces.js.map +0 -1
- package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
- package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
- package/es2015/src/legacy/picker/misc/tokens.js +0 -6
- package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
- package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
- package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
- package/es2015/src/legacy/picker/types.js +0 -10
- package/es2015/src/legacy/picker/types.js.map +0 -1
- package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
- package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
- package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
- package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
- package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
- package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
- package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
- package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
- package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
- package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
- package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
- package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
- package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
- package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
- package/es2015/src/legacy/selector/interfaces.js +0 -2
- package/es2015/src/legacy/selector/interfaces.js.map +0 -1
- package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
- package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
- package/es2015/src/legacy/selector/misc/tokens.js +0 -6
- package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
- package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
- package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
- package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
- package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
- package/es2015/src/legacy/selector/types.js +0 -11
- package/es2015/src/legacy/selector/types.js.map +0 -1
- package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
- package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
- package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
- package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
- package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
- package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
- package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
- package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
- package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
- package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
- package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
- package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
- package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
- package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
- package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
- package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
- package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
- package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
- package/es2020/src/legacy/picker/directives/index.js +0 -4
- package/es2020/src/legacy/picker/directives/index.js.map +0 -1
- package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
- package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
- package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
- package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
- package/es2020/src/legacy/picker/interfaces.js +0 -6
- package/es2020/src/legacy/picker/interfaces.js.map +0 -1
- package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
- package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
- package/es2020/src/legacy/picker/misc/tokens.js +0 -6
- package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
- package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
- package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
- package/es2020/src/legacy/picker/types.js +0 -10
- package/es2020/src/legacy/picker/types.js.map +0 -1
- package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
- package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
- package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
- package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
- package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
- package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
- package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
- package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
- package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
- package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
- package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
- package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
- package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
- package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
- package/es2020/src/legacy/selector/interfaces.js +0 -2
- package/es2020/src/legacy/selector/interfaces.js.map +0 -1
- package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
- package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
- package/es2020/src/legacy/selector/misc/tokens.js +0 -6
- package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
- package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
- package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
- package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
- package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
- package/es2020/src/legacy/selector/types.js +0 -11
- package/es2020/src/legacy/selector/types.js.map +0 -1
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
- package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
- package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
- package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
- package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
- package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
- package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
- package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
- package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
- package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
- package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
- package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
- package/src/legacy/picker/components/picker/picker.component.css +0 -4
- package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
- package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/picker/picker.component.html +0 -3
- package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
- package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
- package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
- package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
- package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
- package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
- package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
- package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
- package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
- package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
- package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
- package/src/legacy/picker/directives/index.d.ts +0 -4
- package/src/legacy/picker/directives/index.d.ts.map +0 -1
- package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
- package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
- package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
- package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
- package/src/legacy/picker/interfaces.d.ts +0 -6
- package/src/legacy/picker/interfaces.d.ts.map +0 -1
- package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
- package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
- package/src/legacy/picker/misc/tokens.d.ts +0 -7
- package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
- package/src/legacy/picker/modules/picker.module.d.ts +0 -20
- package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
- package/src/legacy/picker/types.d.ts +0 -10
- package/src/legacy/picker/types.d.ts.map +0 -1
- package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
- package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
- package/src/legacy/selector/components/selector/selector.component.css +0 -11
- package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
- package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
- package/src/legacy/selector/components/selector/selector.component.html +0 -10
- package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
- package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
- package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
- package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
- package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
- package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
- package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
- package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
- package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
- package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
- package/src/legacy/selector/interfaces.d.ts +0 -2
- package/src/legacy/selector/interfaces.d.ts.map +0 -1
- package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
- package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
- package/src/legacy/selector/misc/tokens.d.ts +0 -7
- package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
- package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
- package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
- package/src/legacy/selector/modules/selector.module.d.ts +0 -20
- package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
- package/src/legacy/selector/types.d.ts +0 -11
- package/src/legacy/selector/types.d.ts.map +0 -1
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule as AngularCommonModule } from '@angular/common';
|
|
3
|
-
import { CommonDynamicModule, CastPipesModule, ClickOutsideModule, CommonUtilsModule } from '@anglr/common';
|
|
4
|
-
import { DateTimePickerLegacyComponent } from '../components/picker/picker.component';
|
|
5
|
-
import { DateTimeDayPickerComponent } from '../components/dayPicker/dayPicker.component';
|
|
6
|
-
import { DateTimeMonthPickerComponent } from '../components/monthPicker/monthPicker.component';
|
|
7
|
-
import { DateTimeYearPickerComponent } from '../components/yearPicker/yearPicker.component';
|
|
8
|
-
import { DatePipesModule } from '../../../modules/datePipes.module';
|
|
9
|
-
import { DateTimeRollerTimePickerComponent } from '../components/rollerTimePicker/rollerTimePicker.component';
|
|
10
|
-
import { LoopScrollDataDirective, LoopScrollDirective } from '../directives';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Angular module for date time picker components
|
|
14
|
-
*/
|
|
15
|
-
export class DateTimeLegacyPickerModule {
|
|
16
|
-
}
|
|
17
|
-
DateTimeLegacyPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeLegacyPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
18
|
-
DateTimeLegacyPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: DateTimeLegacyPickerModule, declarations: [DateTimePickerLegacyComponent,
|
|
19
|
-
DateTimeRollerTimePickerComponent,
|
|
20
|
-
DateTimeDayPickerComponent,
|
|
21
|
-
DateTimeMonthPickerComponent,
|
|
22
|
-
DateTimeYearPickerComponent,
|
|
23
|
-
LoopScrollDataDirective,
|
|
24
|
-
LoopScrollDirective], imports: [AngularCommonModule,
|
|
25
|
-
CommonDynamicModule,
|
|
26
|
-
CommonUtilsModule,
|
|
27
|
-
DatePipesModule,
|
|
28
|
-
CastPipesModule,
|
|
29
|
-
ClickOutsideModule], exports: [DateTimePickerLegacyComponent,
|
|
30
|
-
LoopScrollDataDirective,
|
|
31
|
-
LoopScrollDirective] });
|
|
32
|
-
DateTimeLegacyPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeLegacyPickerModule, imports: [AngularCommonModule,
|
|
33
|
-
CommonDynamicModule,
|
|
34
|
-
CommonUtilsModule,
|
|
35
|
-
DatePipesModule,
|
|
36
|
-
CastPipesModule,
|
|
37
|
-
ClickOutsideModule] });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeLegacyPickerModule, decorators: [{
|
|
39
|
-
type: NgModule,
|
|
40
|
-
args: [{
|
|
41
|
-
imports: [
|
|
42
|
-
AngularCommonModule,
|
|
43
|
-
CommonDynamicModule,
|
|
44
|
-
CommonUtilsModule,
|
|
45
|
-
DatePipesModule,
|
|
46
|
-
CastPipesModule,
|
|
47
|
-
ClickOutsideModule,
|
|
48
|
-
],
|
|
49
|
-
declarations: [
|
|
50
|
-
DateTimePickerLegacyComponent,
|
|
51
|
-
DateTimeRollerTimePickerComponent,
|
|
52
|
-
DateTimeDayPickerComponent,
|
|
53
|
-
DateTimeMonthPickerComponent,
|
|
54
|
-
DateTimeYearPickerComponent,
|
|
55
|
-
LoopScrollDataDirective,
|
|
56
|
-
LoopScrollDirective,
|
|
57
|
-
],
|
|
58
|
-
exports: [
|
|
59
|
-
DateTimePickerLegacyComponent,
|
|
60
|
-
LoopScrollDataDirective,
|
|
61
|
-
LoopScrollDirective,
|
|
62
|
-
]
|
|
63
|
-
}]
|
|
64
|
-
}] });
|
|
65
|
-
//# sourceMappingURL=picker.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"picker.module.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/modules/picker.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,E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AAuB;wBACvB,mBAAmB;qBACtB;oBACD,OAAO,EACP;wBACI,6BAA6B;wBAC7B,uBAAuB;wBACvB,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule as AngularCommonModule} from '@angular/common';\nimport {CommonDynamicModule, CastPipesModule, ClickOutsideModule, CommonUtilsModule} from '@anglr/common';\n\nimport {DateTimePickerLegacyComponent} from '../components/picker/picker.component';\nimport {DateTimeDayPickerComponent} from '../components/dayPicker/dayPicker.component';\nimport {DateTimeMonthPickerComponent} from '../components/monthPicker/monthPicker.component';\nimport {DateTimeYearPickerComponent} from '../components/yearPicker/yearPicker.component';\nimport {DatePipesModule} from '../../../modules/datePipes.module';\nimport {DateTimeRollerTimePickerComponent} from '../components/rollerTimePicker/rollerTimePicker.component';\nimport {LoopScrollDataDirective, LoopScrollDirective} from '../directives';\n\n/**\n * Angular module for date time picker components\n */\n@NgModule(\n{\n imports:\n [\n AngularCommonModule,\n CommonDynamicModule,\n CommonUtilsModule,\n DatePipesModule,\n CastPipesModule,\n ClickOutsideModule,\n ],\n declarations:\n [\n DateTimePickerLegacyComponent,\n DateTimeRollerTimePickerComponent,\n DateTimeDayPickerComponent,\n DateTimeMonthPickerComponent,\n DateTimeYearPickerComponent,\n LoopScrollDataDirective,\n LoopScrollDirective,\n ],\n exports:\n [\n DateTimePickerLegacyComponent,\n LoopScrollDataDirective,\n LoopScrollDirective,\n ]\n})\nexport class DateTimeLegacyPickerModule\n{\n}"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './components/picker/picker.component';
|
|
2
|
-
export * from './components/picker/picker.component.animations';
|
|
3
|
-
export * from './components/dayPicker/dayPicker.component';
|
|
4
|
-
export * from './components/monthPicker/monthPicker.component';
|
|
5
|
-
export * from './components/yearPicker/yearPicker.component';
|
|
6
|
-
export * from './components/rollerTimePicker/rollerTimePicker.component';
|
|
7
|
-
export * from './components/pickerBase.component';
|
|
8
|
-
export * from './components/pickerImplBase.component';
|
|
9
|
-
export * from './misc/tokens';
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/legacy/picker/types.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0DAA0D,CAAC;AACzE,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,eAAe,CAAC","sourcesContent":["export * from './components/picker/picker.component';\nexport * from './components/picker/picker.component.animations';\nexport * from './components/dayPicker/dayPicker.component';\nexport * from './components/monthPicker/monthPicker.component';\nexport * from './components/yearPicker/yearPicker.component';\nexport * from './components/rollerTimePicker/rollerTimePicker.component';\nexport * from './components/pickerBase.component';\nexport * from './components/pickerImplBase.component';\nexport * from './misc/tokens';"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { animateChild, transition, trigger } from '@angular/animations';
|
|
2
|
-
/**
|
|
3
|
-
* Animation trigger for animating children on enter leave
|
|
4
|
-
*/
|
|
5
|
-
export const enterLeaveAnimateChildTrigger = trigger('enterLeaveAnimateChild', [
|
|
6
|
-
transition(':enter', [
|
|
7
|
-
animateChild()
|
|
8
|
-
// query(':enter', animateChild())
|
|
9
|
-
]),
|
|
10
|
-
transition(':leave', [
|
|
11
|
-
animateChild()
|
|
12
|
-
// query(':leave', animateChild())
|
|
13
|
-
])
|
|
14
|
-
]);
|
|
15
|
-
//# sourceMappingURL=selector.component.animations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.component.animations.js","sourceRoot":"","sources":["../../../../../../src/legacy/selector/components/selector/selector.component.animations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,wBAAwB,EAC7E;IACI,UAAU,CAAC,QAAQ,EACnB;QACI,YAAY,EAAE;QACd,kCAAkC;KACrC,CAAC;IACF,UAAU,CAAC,QAAQ,EACnB;QACI,YAAY,EAAE;QACd,kCAAkC;KACrC,CAAC;CACL,CAAC,CAAC","sourcesContent":["import {animateChild, transition, trigger} from '@angular/animations';\n\n/**\n * Animation trigger for animating children on enter leave\n */\nexport const enterLeaveAnimateChildTrigger = trigger('enterLeaveAnimateChild',\n[\n transition(':enter', \n [\n animateChild()\n // query(':enter', animateChild())\n ]),\n transition(':leave', \n [\n animateChild()\n // query(':leave', animateChild())\n ])\n]);"]}
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input, Inject, Optional, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { PositionPlacement } from '@anglr/common';
|
|
3
|
-
import { extend, isBlank, isString, nameof } from '@jscrpt/common';
|
|
4
|
-
import { Subject, Subscription } from 'rxjs';
|
|
5
|
-
import { DATE_API, FORMAT_PROVIDER } from '../../../../misc/tokens';
|
|
6
|
-
import { DateTimeDayPickerComponent } from '../../../picker/components/dayPicker/dayPicker.component';
|
|
7
|
-
import { DateTimeMonthPickerComponent } from '../../../picker/components/monthPicker/monthPicker.component';
|
|
8
|
-
import { DateTimeYearPickerComponent } from '../../../picker/components/yearPicker/yearPicker.component';
|
|
9
|
-
import { DateValueProvider } from '../../../../services';
|
|
10
|
-
import { DATE_TIME_SELECTOR_CONFIGURATION } from '../../misc/tokens';
|
|
11
|
-
import { InputDateTimeSelectorComponent } from '../inputDateTime/inputDateTime.component';
|
|
12
|
-
import { enterLeaveAnimateChildTrigger } from './selector.component.animations';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "../../../../services";
|
|
15
|
-
import * as i2 from "@angular/common";
|
|
16
|
-
import * as i3 from "@anglr/common";
|
|
17
|
-
import * as i4 from "../../directives/dateTimePickerRenderer/dateTimePickerRenderer.directive";
|
|
18
|
-
//TODO - add support for body absolute picker
|
|
19
|
-
/**
|
|
20
|
-
* Default configuration for selector
|
|
21
|
-
*/
|
|
22
|
-
const defaultConfiguration = {
|
|
23
|
-
selectorComponent: InputDateTimeSelectorComponent,
|
|
24
|
-
pickerCloseOnValueSelect: false,
|
|
25
|
-
pickerDisabled: false,
|
|
26
|
-
pickerAbsolute: true,
|
|
27
|
-
pickerAbsoluteContainer: 'body',
|
|
28
|
-
positionOptions: {
|
|
29
|
-
flip: true,
|
|
30
|
-
placement: PositionPlacement.BottomStart,
|
|
31
|
-
autoUpdate: true
|
|
32
|
-
},
|
|
33
|
-
defaultPeriod: 'day',
|
|
34
|
-
pickerPeriodsOrder: null,
|
|
35
|
-
pickerPeriodsDefinition: {
|
|
36
|
-
'day': DateTimeDayPickerComponent,
|
|
37
|
-
'month': DateTimeMonthPickerComponent,
|
|
38
|
-
'year': DateTimeYearPickerComponent
|
|
39
|
-
},
|
|
40
|
-
cssClasses: {}
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Component used for displaying and selecting date time
|
|
44
|
-
*/
|
|
45
|
-
export class DateTimeSelectorComponent {
|
|
46
|
-
//######################### constructor #########################
|
|
47
|
-
constructor(configuration, _valueProvider, _changeDetector, element, _dateApi, formatProvider) {
|
|
48
|
-
this._valueProvider = _valueProvider;
|
|
49
|
-
this._changeDetector = _changeDetector;
|
|
50
|
-
this.element = element;
|
|
51
|
-
this._dateApi = _dateApi;
|
|
52
|
-
//######################### protected fields #########################
|
|
53
|
-
/**
|
|
54
|
-
* Current value of datetime
|
|
55
|
-
*/
|
|
56
|
-
this._value = null;
|
|
57
|
-
/**
|
|
58
|
-
* Occurs when selector is touched by user
|
|
59
|
-
*/
|
|
60
|
-
this._touched = new Subject();
|
|
61
|
-
/**
|
|
62
|
-
* Occurs when value changes
|
|
63
|
-
*/
|
|
64
|
-
this._valueChange = new Subject();
|
|
65
|
-
/**
|
|
66
|
-
* Indication whether is control disabled
|
|
67
|
-
*/
|
|
68
|
-
this._disabled = false;
|
|
69
|
-
/**
|
|
70
|
-
* All subscriptions for active selector
|
|
71
|
-
*/
|
|
72
|
-
this._activeSelectorSubscriptions = new Subscription();
|
|
73
|
-
/**
|
|
74
|
-
* Subscription for changes of min value selector
|
|
75
|
-
*/
|
|
76
|
-
this._minValueChangeSubscription = null;
|
|
77
|
-
/**
|
|
78
|
-
* Subscription for changes of max value selector
|
|
79
|
-
*/
|
|
80
|
-
this._maxValueChangeSubscription = null;
|
|
81
|
-
/**
|
|
82
|
-
* Indication whether is picker visible or not
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
this.pickerVisible = false;
|
|
86
|
-
/**
|
|
87
|
-
* Gets or sets minimal possible value for picker, that can be picked
|
|
88
|
-
*/
|
|
89
|
-
this.min = null;
|
|
90
|
-
/**
|
|
91
|
-
* Gets or sets maximal possible value for picker, that can be picked
|
|
92
|
-
*/
|
|
93
|
-
this.max = null;
|
|
94
|
-
this.format = formatProvider.date;
|
|
95
|
-
this._options = extend(true, {}, defaultConfiguration, configuration);
|
|
96
|
-
// without deep-copy for this attribute
|
|
97
|
-
if (configuration?.pickerPeriodsDefinition) {
|
|
98
|
-
this._options.pickerPeriodsDefinition = configuration.pickerPeriodsDefinition;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
//######################### public properties #########################
|
|
102
|
-
/**
|
|
103
|
-
* Gets or sets current value of datetime
|
|
104
|
-
*/
|
|
105
|
-
get value() {
|
|
106
|
-
return this._value;
|
|
107
|
-
}
|
|
108
|
-
set value(value) {
|
|
109
|
-
this._value = value;
|
|
110
|
-
this._activeSelector?.setValue(this._value);
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Gets indication whether is current value valid
|
|
114
|
-
*/
|
|
115
|
-
get valid() {
|
|
116
|
-
return this._activeSelector?.valid ?? true;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Gets or sets formatted value
|
|
120
|
-
*/
|
|
121
|
-
get formattedValue() {
|
|
122
|
-
return this._activeSelector?.formattedValue ?? null;
|
|
123
|
-
}
|
|
124
|
-
set formattedValue(value) {
|
|
125
|
-
if (value) {
|
|
126
|
-
const val = this._dateApi.getValue(value, this.format);
|
|
127
|
-
this.value = this._valueProvider.getValue(val.value, this.format);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
this.value = null;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Occurs when selector is touched by user
|
|
135
|
-
*/
|
|
136
|
-
get touched() {
|
|
137
|
-
return this._touched.asObservable();
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Occurs when value changes
|
|
141
|
-
*/
|
|
142
|
-
get valueChange() {
|
|
143
|
-
return this._valueChange.asObservable();
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Gets or sets placeholder that is displayed when there is no value selected
|
|
147
|
-
*/
|
|
148
|
-
get placeholder() {
|
|
149
|
-
return this._placeholder;
|
|
150
|
-
}
|
|
151
|
-
set placeholder(value) {
|
|
152
|
-
this._placeholder = value;
|
|
153
|
-
if (this._activeSelector) {
|
|
154
|
-
this._activeSelector.placeholder = this._placeholder ?? null;
|
|
155
|
-
this._activeSelector.invalidateVisuals();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Current options used by selector
|
|
160
|
-
*/
|
|
161
|
-
get options() {
|
|
162
|
-
return this._options;
|
|
163
|
-
}
|
|
164
|
-
set options(value) {
|
|
165
|
-
this._options = extend(true, this._options, value);
|
|
166
|
-
// without deep-copy for this attribute
|
|
167
|
-
if (value?.pickerPeriodsDefinition) {
|
|
168
|
-
this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Gets or sets minimal possible value for picker, that can be picked
|
|
173
|
-
*/
|
|
174
|
-
get minValue() {
|
|
175
|
-
return this.min;
|
|
176
|
-
}
|
|
177
|
-
set minValue(value) {
|
|
178
|
-
this._minValueChangeSubscription?.unsubscribe();
|
|
179
|
-
this._minValueChangeSubscription = null;
|
|
180
|
-
if (isBlank(value)) {
|
|
181
|
-
this.min = null;
|
|
182
|
-
}
|
|
183
|
-
else if (isString(value)) {
|
|
184
|
-
const date = this._dateApi.getValue(value);
|
|
185
|
-
if (date.isValid()) {
|
|
186
|
-
this.min = date.value;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
else if (value instanceof DateTimeSelectorComponent) {
|
|
190
|
-
this.min = value.valueOf();
|
|
191
|
-
this._minValueChangeSubscription = value.valueChange.subscribe(() => {
|
|
192
|
-
this.min = value.valueOf();
|
|
193
|
-
this._activeSelector?.setMinValue(this.min);
|
|
194
|
-
this._changeDetector.detectChanges();
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
this.min = value;
|
|
199
|
-
}
|
|
200
|
-
this._activeSelector?.setMinValue(this.min);
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Gets or sets maximal possible value for picker, that can be picked
|
|
204
|
-
*/
|
|
205
|
-
get maxValue() {
|
|
206
|
-
return this.max;
|
|
207
|
-
}
|
|
208
|
-
set maxValue(value) {
|
|
209
|
-
this._maxValueChangeSubscription?.unsubscribe();
|
|
210
|
-
this._maxValueChangeSubscription = null;
|
|
211
|
-
if (isBlank(value)) {
|
|
212
|
-
this.max = null;
|
|
213
|
-
}
|
|
214
|
-
else if (isString(value)) {
|
|
215
|
-
const date = this._dateApi.getValue(value);
|
|
216
|
-
if (date.isValid()) {
|
|
217
|
-
this.max = date.value;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
else if (value instanceof DateTimeSelectorComponent) {
|
|
221
|
-
this.max = value.valueOf();
|
|
222
|
-
this._maxValueChangeSubscription = value.valueChange.subscribe(() => {
|
|
223
|
-
this.max = value.valueOf();
|
|
224
|
-
this._activeSelector?.setMaxValue(this.max);
|
|
225
|
-
this._changeDetector.detectChanges();
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
this.max = value;
|
|
230
|
-
}
|
|
231
|
-
this._activeSelector?.setMaxValue(this.max);
|
|
232
|
-
}
|
|
233
|
-
//######################### public methods - implementation of OnInit #########################
|
|
234
|
-
/**
|
|
235
|
-
* Initialize component
|
|
236
|
-
*/
|
|
237
|
-
ngOnInit() {
|
|
238
|
-
this.activeSelectorComponent = this._options.selectorComponent;
|
|
239
|
-
}
|
|
240
|
-
//######################### public methods - implementation of OnChanges #########################
|
|
241
|
-
/**
|
|
242
|
-
* Called when input value changes
|
|
243
|
-
*/
|
|
244
|
-
ngOnChanges(changes) {
|
|
245
|
-
if (nameof('format') in changes && this._activeSelector) {
|
|
246
|
-
this._activeSelector.format = this.format;
|
|
247
|
-
this._activeSelector.invalidateVisuals();
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
251
|
-
/**
|
|
252
|
-
* Called when component is destroyed
|
|
253
|
-
*/
|
|
254
|
-
ngOnDestroy() {
|
|
255
|
-
this._activeSelectorSubscriptions.unsubscribe();
|
|
256
|
-
this._minValueChangeSubscription?.unsubscribe();
|
|
257
|
-
this._minValueChangeSubscription = null;
|
|
258
|
-
this._maxValueChangeSubscription?.unsubscribe();
|
|
259
|
-
this._maxValueChangeSubscription = null;
|
|
260
|
-
}
|
|
261
|
-
//######################### public methods - template bindings #########################
|
|
262
|
-
/**
|
|
263
|
-
* Handles created or destroyed date time selector instance
|
|
264
|
-
* @param selector - Instance of selector or null
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
selectorCreated(selector) {
|
|
268
|
-
this._activeSelector = selector;
|
|
269
|
-
this._activeSelectorSubscriptions.unsubscribe();
|
|
270
|
-
this._activeSelectorSubscriptions = new Subscription();
|
|
271
|
-
this._activeSelectorSubscriptions.add(selector.touched.subscribe(() => this._touched.next()));
|
|
272
|
-
this._activeSelectorSubscriptions.add(selector.pickerRequest.subscribe(visible => this.pickerVisible = visible));
|
|
273
|
-
this._activeSelectorSubscriptions.add(selector.valueChange.subscribe(() => {
|
|
274
|
-
this._value = selector.value;
|
|
275
|
-
this._valueChange.next();
|
|
276
|
-
}));
|
|
277
|
-
selector.format = this.format;
|
|
278
|
-
selector.setMaxValue(this.max);
|
|
279
|
-
selector.setMinValue(this.min);
|
|
280
|
-
selector.setValue(this._value);
|
|
281
|
-
selector.setDisabled(this._disabled);
|
|
282
|
-
selector.placeholder = this._placeholder ?? null;
|
|
283
|
-
selector.invalidateVisuals();
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Handles changed value by picker
|
|
287
|
-
* @param value - Value that was changed
|
|
288
|
-
* @internal
|
|
289
|
-
*/
|
|
290
|
-
pickerChangedValue(value) {
|
|
291
|
-
this._activeSelector?.setValue(value);
|
|
292
|
-
this._value = value;
|
|
293
|
-
this._valueChange.next();
|
|
294
|
-
if (this._options.pickerCloseOnValueSelect) {
|
|
295
|
-
this.pickerVisible = false;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
//######################### public methods #########################
|
|
299
|
-
/**
|
|
300
|
-
* Sets as 'control' disabled
|
|
301
|
-
* @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true
|
|
302
|
-
*/
|
|
303
|
-
setDisabled(disabled = true) {
|
|
304
|
-
this._disabled = disabled;
|
|
305
|
-
this._activeSelector?.setDisabled(disabled);
|
|
306
|
-
this._activeSelector?.invalidateVisuals();
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Gets simple value of selector
|
|
310
|
-
*/
|
|
311
|
-
valueOf() {
|
|
312
|
-
if (!this._value) {
|
|
313
|
-
return null;
|
|
314
|
-
}
|
|
315
|
-
return this._value.from;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
DateTimeSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeSelectorComponent, deps: [{ token: DATE_TIME_SELECTOR_CONFIGURATION, optional: true }, { token: i1.DateValueProvider }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DATE_API }, { token: FORMAT_PROVIDER }], target: i0.ɵɵFactoryTarget.Component });
|
|
319
|
-
DateTimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeSelectorComponent, selector: "date-time-selector", inputs: { format: "format", placeholder: "placeholder", options: "options", minValue: "minValue", maxValue: "maxValue" }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: relative;\r\n}\r\n\r\ndate-time-picker\r\n{\r\n position: absolute;\r\n top: 100%;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }, { kind: "directive", type: i4.DateTimePickerRendererDirective, selector: "[dateTimePicker]", inputs: ["options", "dateTimePicker", "minValue", "maxValue", "selectorElement"], outputs: ["valueChange"] }], animations: [enterLeaveAnimateChildTrigger], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeSelectorComponent, decorators: [{
|
|
321
|
-
type: Component,
|
|
322
|
-
args: [{ selector: 'date-time-selector', animations: [enterLeaveAnimateChildTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: relative;\r\n}\r\n\r\ndate-time-picker\r\n{\r\n position: absolute;\r\n top: 100%;\r\n}"] }]
|
|
323
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
324
|
-
type: Optional
|
|
325
|
-
}, {
|
|
326
|
-
type: Inject,
|
|
327
|
-
args: [DATE_TIME_SELECTOR_CONFIGURATION]
|
|
328
|
-
}] }, { type: i1.DateValueProvider }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
329
|
-
type: Inject,
|
|
330
|
-
args: [DATE_API]
|
|
331
|
-
}] }, { type: undefined, decorators: [{
|
|
332
|
-
type: Inject,
|
|
333
|
-
args: [FORMAT_PROVIDER]
|
|
334
|
-
}] }]; }, propDecorators: { format: [{
|
|
335
|
-
type: Input
|
|
336
|
-
}], placeholder: [{
|
|
337
|
-
type: Input
|
|
338
|
-
}], options: [{
|
|
339
|
-
type: Input
|
|
340
|
-
}], minValue: [{
|
|
341
|
-
type: Input
|
|
342
|
-
}], maxValue: [{
|
|
343
|
-
type: Input
|
|
344
|
-
}] } });
|
|
345
|
-
//# sourceMappingURL=selector.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.component.js","sourceRoot":"","sources":["../../../../../../src/legacy/selector/components/selector/selector.component.ts","../../../../../../src/legacy/selector/components/selector/selector.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAqD,iBAAiB,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC5K,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAa,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAGvD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAC,0BAA0B,EAAC,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAC,4BAA4B,EAAC,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAC,2BAA2B,EAAC,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAU,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAC,gCAAgC,EAAC,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAC,8BAA8B,EAAC,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;;;;;;AAG9E,6CAA6C;AAE7C;;GAEG;AACH,MAAM,oBAAoB,GAC1B;IACI,iBAAiB,EAAE,8BAA8B;IACjD,wBAAwB,EAAE,KAAK;IAC/B,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,MAAM;IAC/B,eAAe,EACf;QACI,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,iBAAiB,CAAC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,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,CAAC,eAAe,EAAE,iBAAiB,EAAE,CAAC;IAC9C,CAAC;IAED;;OAEG;IACI,OAAO;QAEV,IAAG,CAAC,IAAI,CAAC,MAAM,EACf;YACI,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,IAAK,CAAC;IAC7B,CAAC;;sHAvZQ,yBAAyB,kBAqRF,gCAAgC,yHAI5C,QAAQ,aACR,eAAe;0GA1R1B,yBAAyB,yMC3DtC,8gBASc,6uBD+CE,CAAC,6BAA6B,CAAC;2FAGlC,yBAAyB;kBARrC,SAAS;+BAEI,oBAAoB,cAGlB,CAAC,6BAA6B,CAAC,mBAC1B,uBAAuB,CAAC,MAAM;;0BAuRlC,QAAQ;;0BAAI,MAAM;2BAAC,gCAAgC;;0BAInD,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,eAAe;4CA1I5B,MAAM;sBADZ,KAAK;gBAOK,WAAW;sBADrB,KAAK;gBAqBK,OAAO;sBADjB,KAAK;gBAmBK,QAAQ;sBADlB,KAAK;gBA+CK,QAAQ;sBADlB,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Inject, Optional, Type, OnInit, OnDestroy, OnChanges, SimpleChanges, ChangeDetectorRef, ElementRef} from '@angular/core';\nimport {PositionPlacement} from '@anglr/common';\nimport {extend, isBlank, isString, nameof} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {DateTimeValue} from '../../../../interfaces/dateTime/datetime.interface';\nimport {DATE_API, FORMAT_PROVIDER} from '../../../../misc/tokens';\nimport {DateTimeDayPickerComponent} from '../../../picker/components/dayPicker/dayPicker.component';\nimport {DateTimeMonthPickerComponent} from '../../../picker/components/monthPicker/monthPicker.component';\nimport {DateTimeYearPickerComponent} from '../../../picker/components/yearPicker/yearPicker.component';\nimport {DateApi, DateValueProvider} from '../../../../services';\nimport {DateTimeSelector, DateTimeSelectorOptions} from '../../misc/datetimeSelector.interface';\nimport {DATE_TIME_SELECTOR_CONFIGURATION} from '../../misc/tokens';\nimport {InputDateTimeSelectorComponent} from '../inputDateTime/inputDateTime.component';\nimport {enterLeaveAnimateChildTrigger} from './selector.component.animations';\nimport {FormatProvider} from '../../../../interfaces';\n\n//TODO - add support for body absolute picker\n\n/**\n * Default configuration for selector\n */\nconst defaultConfiguration: DateTimeSelectorOptions<DateTimeSelector> =\n{\n selectorComponent: InputDateTimeSelectorComponent,\n pickerCloseOnValueSelect: false,\n pickerDisabled: false,\n pickerAbsolute: true,\n pickerAbsoluteContainer: 'body',\n positionOptions:\n {\n flip: true,\n placement: PositionPlacement.BottomStart,\n autoUpdate: true\n },\n defaultPeriod: 'day',\n pickerPeriodsOrder: null,\n pickerPeriodsDefinition:\n {\n 'day': DateTimeDayPickerComponent,\n 'month': DateTimeMonthPickerComponent,\n 'year': DateTimeYearPickerComponent\n },\n cssClasses:\n {\n }\n};\n\n/**\n * Component used for displaying and selecting date time\n */\n@Component(\n{\n selector: 'date-time-selector',\n templateUrl: 'selector.component.html',\n styleUrls: ['selector.component.css'],\n animations: [enterLeaveAnimateChildTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DateTimeSelectorComponent<TDate = any> implements OnInit, OnChanges ,OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Current value of datetime\n */\n protected _value: DateTimeValue<TDate>|null = null;\n\n /**\n * Occurs when selector is touched by user\n */\n protected _touched: Subject<void> = new Subject<void>();\n\n /**\n * Occurs when value changes\n */\n protected _valueChange: Subject<void> = new Subject<void>();\n\n /**\n * Indication whether is control disabled\n */\n protected _disabled: boolean = false;\n\n /**\n * Instance of active date time selector\n */\n protected _activeSelector?: DateTimeSelector<TDate>;\n\n /**\n * All subscriptions for active selector\n */\n protected _activeSelectorSubscriptions: Subscription = new Subscription();\n\n /**\n * Subscription for changes of min value selector\n */\n protected _minValueChangeSubscription: Subscription|null = null;\n\n /**\n * Subscription for changes of max value selector\n */\n protected _maxValueChangeSubscription: Subscription|null = null;\n\n /**\n * Current options used by selector\n */\n protected _options: DateTimeSelectorOptions<DateTimeSelector<TDate>>;\n\n /**\n * Placeholder that is displayed when there is no value selected\n */\n protected _placeholder?: string;\n\n //######################### public properties #########################\n\n /**\n * Gets or sets current value of datetime\n */\n public get value(): DateTimeValue<TDate>|null\n {\n return this._value;\n }\n public set value(value: DateTimeValue<TDate>|null)\n {\n this._value = value;\n\n this._activeSelector?.setValue(this._value);\n }\n\n /**\n * Gets indication whether is current value valid\n */\n public get valid(): boolean\n {\n return this._activeSelector?.valid ?? true;\n }\n\n /**\n * Gets or sets formatted value\n */\n public get formattedValue(): string|null\n {\n return this._activeSelector?.formattedValue ?? null;\n }\n public set formattedValue(value: string|null)\n {\n if(value)\n {\n const val = this._dateApi.getValue(value, this.format);\n this.value = this._valueProvider.getValue(val.value, this.format);\n }\n else\n {\n this.value = null;\n }\n }\n\n /**\n * Occurs when selector is touched by user\n */\n public get touched(): Observable<void>\n {\n return this._touched.asObservable();\n }\n\n /**\n * Occurs when value changes\n */\n public get valueChange(): Observable<void>\n {\n return this._valueChange.asObservable();\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Currently active date time selector component type\n * @internal\n */\n public activeSelectorComponent!: Type<DateTimeSelector<TDate>>;\n\n /**\n * Indication whether is picker visible or not\n * @internal\n */\n public pickerVisible: boolean = false;\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n public min: TDate|null = null;\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n public max: TDate|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Format of displayed\n */\n @Input()\n public format: string;\n\n /**\n * Gets or sets placeholder that is displayed when there is no value selected\n */\n @Input()\n public get placeholder(): string|undefined\n {\n return this._placeholder;\n }\n public set placeholder(value: string|undefined)\n {\n this._placeholder = value;\n\n if(this._activeSelector)\n {\n this._activeSelector.placeholder = this._placeholder ?? null;\n\n this._activeSelector.invalidateVisuals();\n }\n }\n\n /**\n * Current options used by selector\n */\n @Input()\n public get options(): Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>\n {\n return this._options;\n }\n public set options(value: Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>)\n {\n this._options = extend(true, this._options, value);\n // without deep-copy for this attribute\n if (value?.pickerPeriodsDefinition)\n {\n this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;\n }\n }\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n @Input()\n public get minValue(): TDate|string|null|DateTimeSelectorComponent<TDate>\n {\n return this.min;\n }\n public set minValue(value: TDate|string|null|DateTimeSelectorComponent<TDate>)\n {\n this._minValueChangeSubscription?.unsubscribe();\n this._minValueChangeSubscription = null;\n\n if(isBlank(value))\n {\n this.min = null;\n }\n else if(isString(value))\n {\n const date = this._dateApi.getValue(value);\n\n if(date.isValid())\n {\n this.min = date.value;\n }\n }\n else if(value instanceof DateTimeSelectorComponent)\n {\n this.min = value.valueOf();\n\n this._minValueChangeSubscription = value.valueChange.subscribe(() =>\n {\n this.min = value.valueOf();\n this._activeSelector?.setMinValue(this.min);\n\n this._changeDetector.detectChanges();\n });\n }\n else\n {\n this.min = value;\n }\n\n this._activeSelector?.setMinValue(this.min);\n }\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n @Input()\n public get maxValue(): TDate|string|null|DateTimeSelectorComponent<TDate>\n {\n return this.max;\n }\n public set maxValue(value: TDate|string|null|DateTimeSelectorComponent<TDate>)\n {\n this._maxValueChangeSubscription?.unsubscribe();\n this._maxValueChangeSubscription = null;\n\n if(isBlank(value))\n {\n this.max = null;\n }\n else if(isString(value))\n {\n const date = this._dateApi.getValue(value);\n\n if(date.isValid())\n {\n this.max = date.value;\n }\n }\n else if(value instanceof DateTimeSelectorComponent)\n {\n this.max = value.valueOf();\n\n this._maxValueChangeSubscription = value.valueChange.subscribe(() =>\n {\n this.max = value.valueOf();\n this._activeSelector?.setMaxValue(this.max);\n\n this._changeDetector.detectChanges();\n });\n }\n else\n {\n this.max = value;\n }\n\n this._activeSelector?.setMaxValue(this.max);\n }\n\n //######################### constructor #########################\n constructor(@Optional() @Inject(DATE_TIME_SELECTOR_CONFIGURATION) configuration: Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>,\n protected _valueProvider: DateValueProvider<TDate>,\n protected _changeDetector: ChangeDetectorRef,\n public element: ElementRef<HTMLElement>,\n @Inject(DATE_API) protected _dateApi: DateApi<TDate>,\n @Inject(FORMAT_PROVIDER) formatProvider: FormatProvider)\n {\n this.format = formatProvider.date;\n this._options = extend(true, {}, defaultConfiguration, configuration);\n // without deep-copy for this attribute\n if (configuration?.pickerPeriodsDefinition)\n {\n this._options.pickerPeriodsDefinition = configuration.pickerPeriodsDefinition;\n }\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.activeSelectorComponent = this._options.selectorComponent;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<DateTimeSelectorComponent>('format') in changes && this._activeSelector)\n {\n this._activeSelector.format = this.format;\n this._activeSelector.invalidateVisuals();\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._activeSelectorSubscriptions.unsubscribe();\n\n this._minValueChangeSubscription?.unsubscribe();\n this._minValueChangeSubscription = null;\n\n this._maxValueChangeSubscription?.unsubscribe();\n this._maxValueChangeSubscription = null;\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handles created or destroyed date time selector instance\n * @param selector - Instance of selector or null\n * @internal\n */\n public selectorCreated(selector: DateTimeSelector<TDate>): void\n {\n this._activeSelector = selector;\n\n this._activeSelectorSubscriptions.unsubscribe();\n this._activeSelectorSubscriptions = new Subscription();\n\n this._activeSelectorSubscriptions.add(selector.touched.subscribe(() => this._touched.next()));\n this._activeSelectorSubscriptions.add(selector.pickerRequest.subscribe(visible => this.pickerVisible = visible));\n\n this._activeSelectorSubscriptions.add(selector.valueChange.subscribe(() =>\n {\n this._value = selector.value;\n this._valueChange.next();\n }));\n\n selector.format = this.format;\n selector.setMaxValue(this.max);\n selector.setMinValue(this.min);\n selector.setValue(this._value);\n selector.setDisabled(this._disabled);\n selector.placeholder = this._placeholder ?? null;\n\n selector.invalidateVisuals();\n }\n\n /**\n * Handles changed value by picker\n * @param value - Value that was changed\n * @internal\n */\n public pickerChangedValue(value: DateTimeValue<TDate>): void\n {\n this._activeSelector?.setValue(value);\n this._value = value;\n this._valueChange.next();\n\n if(this._options.pickerCloseOnValueSelect)\n {\n this.pickerVisible = false;\n }\n }\n\n //######################### public methods #########################\n\n /**\n * Sets as 'control' disabled\n * @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true\n */\n public setDisabled(disabled: boolean = true): void\n {\n this._disabled = disabled;\n this._activeSelector?.setDisabled(disabled);\n this._activeSelector?.invalidateVisuals();\n }\n\n /**\n * Gets simple value of selector\n */\n public valueOf(): TDate|null\n {\n if(!this._value)\n {\n return null;\n }\n\n return this._value.from!;\n }\n}\n","<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>"]}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, EventEmitter, Inject, Injector, Input, Optional, Output, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { POSITION, applyPositionResult } from '@anglr/common';
|
|
4
|
-
import { Subscription } from 'rxjs';
|
|
5
|
-
import { DateTimePickerLegacyComponent } from '../../../picker/types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Directive for rendering datetime picker in selector
|
|
9
|
-
*/
|
|
10
|
-
export class DateTimePickerRendererDirective {
|
|
11
|
-
//######################### constructor #########################
|
|
12
|
-
constructor(_viewContainer, _injector, _position, _document) {
|
|
13
|
-
this._viewContainer = _viewContainer;
|
|
14
|
-
this._injector = _injector;
|
|
15
|
-
this._position = _position;
|
|
16
|
-
this._document = _document;
|
|
17
|
-
/**
|
|
18
|
-
* Subscriptions created during initialization
|
|
19
|
-
*/
|
|
20
|
-
this._initSubscriptions = new Subscription();
|
|
21
|
-
//######################### public properties - outputs #########################
|
|
22
|
-
/**
|
|
23
|
-
* Occurs when value changes
|
|
24
|
-
*/
|
|
25
|
-
this.valueChange = new EventEmitter();
|
|
26
|
-
}
|
|
27
|
-
//######################### protected properties #########################
|
|
28
|
-
/**
|
|
29
|
-
* Current options used by selector
|
|
30
|
-
*/
|
|
31
|
-
get _options() {
|
|
32
|
-
return this.options;
|
|
33
|
-
}
|
|
34
|
-
//######################### public methods - implementation of OnInit #########################
|
|
35
|
-
/**
|
|
36
|
-
* Initialize component
|
|
37
|
-
*/
|
|
38
|
-
ngOnInit() {
|
|
39
|
-
this._createPicker();
|
|
40
|
-
}
|
|
41
|
-
//######################### public methods - implementation of OnChanges #########################
|
|
42
|
-
/**
|
|
43
|
-
* Called when input value changes
|
|
44
|
-
*/
|
|
45
|
-
ngOnChanges() {
|
|
46
|
-
this._createPicker();
|
|
47
|
-
if (this._pickerComponent) {
|
|
48
|
-
const picker = this._pickerComponent.instance;
|
|
49
|
-
picker.value = this.value;
|
|
50
|
-
picker.minValue = this.minValue;
|
|
51
|
-
picker.maxValue = this.maxValue;
|
|
52
|
-
picker.options = this.options;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
56
|
-
/**
|
|
57
|
-
* Called when component is destroyed
|
|
58
|
-
*/
|
|
59
|
-
ngOnDestroy() {
|
|
60
|
-
this._destroyPicker();
|
|
61
|
-
this._initSubscriptions.unsubscribe();
|
|
62
|
-
}
|
|
63
|
-
//######################### protected methods #########################
|
|
64
|
-
/**
|
|
65
|
-
* Destroys picker component
|
|
66
|
-
*/
|
|
67
|
-
_destroyPicker() {
|
|
68
|
-
if (this._pickerComponent) {
|
|
69
|
-
this._pickerComponent.destroy();
|
|
70
|
-
this._pickerComponent = undefined;
|
|
71
|
-
this._pickerElement = undefined;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Creates picker component
|
|
76
|
-
*/
|
|
77
|
-
_createPicker() {
|
|
78
|
-
if (this._pickerComponent) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
// 1. Create a component reference from the component
|
|
82
|
-
this._pickerComponent = this._viewContainer
|
|
83
|
-
.createComponent(DateTimePickerLegacyComponent, {
|
|
84
|
-
injector: this._injector
|
|
85
|
-
});
|
|
86
|
-
if (this._pickerComponent) {
|
|
87
|
-
this._initSubscriptions.add(this._pickerComponent.instance.valueChange.subscribe(itm => this.valueChange.next(itm)));
|
|
88
|
-
//absolutely position
|
|
89
|
-
if (this._options.pickerAbsolute && this._position) {
|
|
90
|
-
// 3. Get DOM element from component
|
|
91
|
-
this._pickerElement = this._pickerComponent.hostView
|
|
92
|
-
.rootNodes[0];
|
|
93
|
-
// 4. Append DOM element to the body
|
|
94
|
-
this._document.querySelector(this._options.pickerAbsoluteContainer)?.appendChild(this._pickerElement);
|
|
95
|
-
this._pickerElement.style.position = 'absolute';
|
|
96
|
-
this._initSubscriptions.add(this._position.placeElement(this._pickerElement, this.selectorElement.nativeElement, this._options.positionOptions).subscribe(applyPositionResult));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
DateTimePickerRendererDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerRendererDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: POSITION, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
105
|
-
DateTimePickerRendererDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimePickerRendererDirective, selector: "[dateTimePicker]", inputs: { options: "options", value: ["dateTimePicker", "value"], minValue: "minValue", maxValue: "maxValue", selectorElement: "selectorElement" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0 });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerRendererDirective, decorators: [{
|
|
107
|
-
type: Directive,
|
|
108
|
-
args: [{
|
|
109
|
-
selector: '[dateTimePicker]'
|
|
110
|
-
}]
|
|
111
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
112
|
-
type: Inject,
|
|
113
|
-
args: [POSITION]
|
|
114
|
-
}, {
|
|
115
|
-
type: Optional
|
|
116
|
-
}] }, { type: Document, decorators: [{
|
|
117
|
-
type: Inject,
|
|
118
|
-
args: [DOCUMENT]
|
|
119
|
-
}] }]; }, propDecorators: { options: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], value: [{
|
|
122
|
-
type: Input,
|
|
123
|
-
args: ['dateTimePicker']
|
|
124
|
-
}], minValue: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], maxValue: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], selectorElement: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], valueChange: [{
|
|
131
|
-
type: Output
|
|
132
|
-
}] } });
|
|
133
|
-
//# sourceMappingURL=dateTimePickerRenderer.directive.js.map
|