@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,128 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { extend } from '@jscrpt/common';
|
|
3
|
-
import { DATE_API } from '../../../../misc/tokens';
|
|
4
|
-
import { PickerBaseComponent } from '../pickerBase.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "@anglr/common";
|
|
8
|
-
/**
|
|
9
|
-
* Default styles for picker
|
|
10
|
-
*/
|
|
11
|
-
const defaultStyles = {
|
|
12
|
-
periodSelection: 'period',
|
|
13
|
-
previousPeriod: 'fas fa-angle-left clickable',
|
|
14
|
-
nextPeriod: 'fas fa-angle-right clickable',
|
|
15
|
-
periodValue: 'period-value',
|
|
16
|
-
periodData: 'period-data',
|
|
17
|
-
periodDatum: 'period-datum clickable',
|
|
18
|
-
clickable: 'clickable'
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Component used for displaying year picker
|
|
22
|
-
*/
|
|
23
|
-
export class DateTimeYearPickerComponent extends PickerBaseComponent {
|
|
24
|
-
//######################### constructor #########################
|
|
25
|
-
constructor(dateApi, changeDetector) {
|
|
26
|
-
super(dateApi, changeDetector);
|
|
27
|
-
//######################### public properties - template bindings #########################
|
|
28
|
-
/**
|
|
29
|
-
* Displayed decade period
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
this.period = '';
|
|
33
|
-
this.cssClasses = extend(true, {}, defaultStyles);
|
|
34
|
-
}
|
|
35
|
-
//######################### public methods - template bindings #########################
|
|
36
|
-
/**
|
|
37
|
-
* Changes displayed decade to next decade
|
|
38
|
-
* @param event - Event that occured
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
nextDecade(event) {
|
|
42
|
-
event.preventDefault();
|
|
43
|
-
this.displayDate.addYears(10);
|
|
44
|
-
this.display(this.displayDate);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Changes displayed decade to previous decade
|
|
48
|
-
* @param event - Event that occured
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
previousDecade(event) {
|
|
52
|
-
event.preventDefault();
|
|
53
|
-
this.displayDate.subtractYears(10);
|
|
54
|
-
this.display(this.displayDate);
|
|
55
|
-
}
|
|
56
|
-
//######################### public methods - implementation of DateTimePicker #########################
|
|
57
|
-
/**
|
|
58
|
-
* Set displays date to be displayed
|
|
59
|
-
* @param value - Value that identifies period that is going to be displayed
|
|
60
|
-
*/
|
|
61
|
-
display(value) {
|
|
62
|
-
this.displayDate = value;
|
|
63
|
-
let year = this.displayDate.startOfYear().year();
|
|
64
|
-
while (year % 10 !== 0) {
|
|
65
|
-
year--;
|
|
66
|
-
}
|
|
67
|
-
this.displayDate.year(year).updateOriginal();
|
|
68
|
-
this.periodData = [];
|
|
69
|
-
for (let x = 0; x < 10; x++) {
|
|
70
|
-
this.periodData.push({
|
|
71
|
-
active: false,
|
|
72
|
-
disabled: false,
|
|
73
|
-
date: this.displayDate.value,
|
|
74
|
-
value: year,
|
|
75
|
-
dateObj: this.displayDate.clone(),
|
|
76
|
-
});
|
|
77
|
-
year++;
|
|
78
|
-
this.displayDate.addYears(1);
|
|
79
|
-
}
|
|
80
|
-
this.displayDate.resetOriginal();
|
|
81
|
-
this._updateMinMax();
|
|
82
|
-
this.period = `${this.displayDate.year()} - ${this.displayDate.year() + 10}`;
|
|
83
|
-
//set value if exists
|
|
84
|
-
if (this._value && (this.displayDate.isSameDecade(this._value.from) || this.displayDate.isSameDecade(this._value.to))) {
|
|
85
|
-
this.setValue(this._value);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
//######################### protected methods #########################
|
|
89
|
-
/**
|
|
90
|
-
* Obtains end of period
|
|
91
|
-
* @param period - Period for which should be end obtained
|
|
92
|
-
*/
|
|
93
|
-
_endOfPeriod(period) {
|
|
94
|
-
return this._dateApi.getValue(period.date).endOfYear().value;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Tests whether provided value is in same period as displayed picker
|
|
98
|
-
* @param val - Tested value for same period as displayed picker
|
|
99
|
-
*/
|
|
100
|
-
_isSamePeriodAsDisplayed(val) {
|
|
101
|
-
return val.isSameDecade(this.displayDate.value);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Tests whether provided value is in same period target value
|
|
105
|
-
* @param val - Tested value
|
|
106
|
-
* @param target - Target value to be tested against
|
|
107
|
-
*/
|
|
108
|
-
_isSamePeriod(val, target) {
|
|
109
|
-
return val.isSameYear(target);
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Gets period data for specified value
|
|
113
|
-
* @param val - Value for which is period data obtained
|
|
114
|
-
*/
|
|
115
|
-
_getPeriodData(val) {
|
|
116
|
-
return this.periodData[val.year() % 10];
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
DateTimeYearPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeYearPickerComponent, deps: [{ token: DATE_API }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
120
|
-
DateTimeYearPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeYearPickerComponent, selector: "date-time-year-picker", usesInheritance: true, ngImport: i0, template: "<div [ngClass]=\"cssClasses.periodSelection | asRequired\">\r\n <div [ngClass]=\"cssClasses.previousPeriod | asRequired\" (mousedown)=\"previousDecade($event)\"></div>\r\n <div [ngClass]=\"cssClasses.periodValue | asRequired\" [class.clickable]=\"canGoUp\" (mousedown)=\"goUp($event)\">{{period}}</div>\r\n <div [ngClass]=\"cssClasses.nextPeriod | asRequired\" (mousedown)=\"nextDecade($event)\"></div>\r\n</div>\r\n\r\n<div [ngClass]=\"cssClasses.periodData | asRequired\">\r\n <div *ngFor=\"let year of periodData\"\r\n [ngClass]=\"cssClasses.periodDatum | asRequired\"\r\n [class.active]=\"year.active\"\r\n [class.disabled]=\"year.disabled\"\r\n (mousedown)=\"select($event, year)\">{{year.value}}</div>\r\n</div>", styles: [".period-data\r\n{\r\n grid-template-columns: repeat(5, 1fr);\r\n}"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i2.AsRequiredTypePipe, name: "asRequired" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeYearPickerComponent, decorators: [{
|
|
122
|
-
type: Component,
|
|
123
|
-
args: [{ selector: 'date-time-year-picker', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"cssClasses.periodSelection | asRequired\">\r\n <div [ngClass]=\"cssClasses.previousPeriod | asRequired\" (mousedown)=\"previousDecade($event)\"></div>\r\n <div [ngClass]=\"cssClasses.periodValue | asRequired\" [class.clickable]=\"canGoUp\" (mousedown)=\"goUp($event)\">{{period}}</div>\r\n <div [ngClass]=\"cssClasses.nextPeriod | asRequired\" (mousedown)=\"nextDecade($event)\"></div>\r\n</div>\r\n\r\n<div [ngClass]=\"cssClasses.periodData | asRequired\">\r\n <div *ngFor=\"let year of periodData\"\r\n [ngClass]=\"cssClasses.periodDatum | asRequired\"\r\n [class.active]=\"year.active\"\r\n [class.disabled]=\"year.disabled\"\r\n (mousedown)=\"select($event, year)\">{{year.value}}</div>\r\n</div>", styles: [".period-data\r\n{\r\n grid-template-columns: repeat(5, 1fr);\r\n}"] }]
|
|
124
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
125
|
-
type: Inject,
|
|
126
|
-
args: [DATE_API]
|
|
127
|
-
}] }, { type: i0.ChangeDetectorRef }]; } });
|
|
128
|
-
//# sourceMappingURL=yearPicker.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yearPicker.component.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/components/yearPicker/yearPicker.component.ts","../../../../../../src/legacy/picker/components/yearPicker/yearPicker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAGjD,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;;;;AAG5D;;GAEG;AACH,MAAM,aAAa,GACnB;IACI,eAAe,EAAE,QAAQ;IACzB,cAAc,EAAE,6BAA6B;IAC7C,UAAU,EAAE,8BAA8B;IAC1C,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,wBAAwB;IACrC,SAAS,EAAE,WAAW;CACzB,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,2BAAyC,SAAQ,mBAAiE;IAU3H,iEAAiE;IACjE,YAA8B,OAAuB,EACzC,cAAiC;QAEzC,KAAK,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAZnC,2FAA2F;QAE3F;;;WAGG;QACI,WAAM,GAAW,EAAE,CAAC;QAQvB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;IAED,wFAAwF;IAExF;;;;OAIG;IACI,UAAU,CAAC,KAAY;QAE1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,WAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAE/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAY,CAAC,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAY;QAE9B,KAAK,C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,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,IAAK,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAG,CAAC,CAAC,EACtH;YACI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC9B;IACL,CAAC;IAED,uEAAuE;IAEvE;;;OAGG;IACO,YAAY,CAAC,MAAyB;QAE5C,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC;IACjE,CAAC;IAED;;;OAGG;IACO,wBAAwB,CAAC,GAAyB;QAExD,OAAO,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACO,aAAa,CAAC,GAAyB,EAAE,MAAa;QAE5D,OAAO,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED;;;OAGG;IACO,cAAc,CAAC,GAAyB;QAE9C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5C,CAAC;;wHAnIQ,2BAA2B,kBAWhB,QAAQ;4GAXnB,2BAA2B,oFCjCxC,2vBAYM;2FDqBO,2BAA2B;kBAPvC,SAAS;+BAEI,uBAAuB,mBAGhB,uBAAuB,CAAC,MAAM;;0BAalC,MAAM;2BAAC,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef} from '@angular/core';\nimport {extend} from '@jscrpt/common';\n\nimport {DATE_API} from '../../../../misc/tokens';\nimport {DateApi, DateApiObject} from '../../../../services/dateApi/dateApi.interface';\nimport {DateTimeLegacyPicker, PeriodData, YearData} from '../../misc/datetimePicker.interface';\nimport {PickerBaseComponent} from '../pickerBase.component';\nimport {YearPickerCssClasses} from './yearPicker.interfaces';\n\n/**\n * Default styles for picker\n */\nconst defaultStyles: YearPickerCssClasses =\n{\n periodSelection: 'period',\n previousPeriod: 'fas fa-angle-left clickable',\n nextPeriod: 'fas fa-angle-right clickable',\n periodValue: 'period-value',\n periodData: 'period-data',\n periodDatum: 'period-datum clickable',\n clickable: 'clickable'\n};\n\n/**\n * Component used for displaying year picker\n */\n@Component(\n{\n selector: 'date-time-year-picker',\n templateUrl: 'yearPicker.component.html',\n styleUrls: ['yearPicker.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DateTimeYearPickerComponent<TDate = any> extends PickerBaseComponent<TDate, YearData<TDate>, YearPickerCssClasses> implements DateTimeLegacyPicker<TDate, YearPickerCssClasses>\n{\n //######################### public properties - template bindings #########################\n\n /**\n * Displayed decade period\n * @internal\n */\n public period: string = '';\n\n //######################### constructor #########################\n constructor(@Inject(DATE_API) dateApi: DateApi<TDate>,\n changeDetector: ChangeDetectorRef)\n {\n super(dateApi, changeDetector);\n\n this.cssClasses = extend(true, {}, defaultStyles);\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Changes displayed decade to next decade\n * @param event - Event that occured\n * @internal\n */\n public nextDecade(event: Event)\n {\n event.preventDefault();\n this.displayDate!.addYears(10);\n\n this.display(this.displayDate!);\n }\n\n /**\n * Changes displayed decade to previous decade\n * @param event - Event that occured\n * @internal\n */\n public previousDecade(event: Event)\n {\n event.preventDefault();\n this.displayDate!.subtractYears(10);\n\n this.display(this.displayDate!);\n }\n\n //######################### public methods - implementation of DateTimePicker #########################\n\n /**\n * Set displays date to be displayed\n * @param value - Value that identifies period that is going to be displayed\n */\n public display(value: DateApiObject<TDate>): void\n {\n this.displayDate = value;\n\n let year = this.displayDate.startOfYear().year();\n\n while(year % 10 !== 0)\n {\n year--;\n }\n\n this.displayDate.year(year).updateOriginal();\n\n this.periodData = [];\n\n for(let x = 0; x < 10; x++)\n {\n this.periodData.push(\n {\n active: false,\n disabled: false,\n date: this.displayDate.value,\n value: year,\n dateObj: this.displayDate.clone(),\n });\n\n year++;\n this.displayDate.addYears(1);\n }\n\n this.displayDate.resetOriginal();\n this._updateMinMax();\n this.period = `${this.displayDate.year()} - ${this.displayDate.year() + 10}`;\n\n //set value if exists\n if(this._value && (this.displayDate.isSameDecade(this._value.from!) || this.displayDate.isSameDecade(this._value.to!)))\n {\n this.setValue(this._value);\n }\n }\n\n //######################### protected methods #########################\n\n /**\n * Obtains end of period\n * @param period - Period for which should be end obtained\n */\n protected _endOfPeriod(period: PeriodData<TDate>): TDate\n {\n return this._dateApi.getValue(period.date).endOfYear().value;\n }\n\n /**\n * Tests whether provided value is in same period as displayed picker\n * @param val - Tested value for same period as displayed picker\n */\n protected _isSamePeriodAsDisplayed(val: DateApiObject<TDate>): boolean\n {\n return val.isSameDecade(this.displayDate!.value);\n }\n\n /**\n * Tests whether provided value is in same period target value\n * @param val - Tested value\n * @param target - Target value to be tested against\n */\n protected _isSamePeriod(val: DateApiObject<TDate>, target: TDate): boolean\n {\n return val.isSameYear(target);\n }\n\n /**\n * Gets period data for specified value\n * @param val - Value for which is period data obtained\n */\n protected _getPeriodData(val: DateApiObject<TDate>): PeriodData<TDate>\n {\n return this.periodData[val.year() % 10];\n }\n}","<div [ngClass]=\"cssClasses.periodSelection | asRequired\">\r\n <div [ngClass]=\"cssClasses.previousPeriod | asRequired\" (mousedown)=\"previousDecade($event)\"></div>\r\n <div [ngClass]=\"cssClasses.periodValue | asRequired\" [class.clickable]=\"canGoUp\" (mousedown)=\"goUp($event)\">{{period}}</div>\r\n <div [ngClass]=\"cssClasses.nextPeriod | asRequired\" (mousedown)=\"nextDecade($event)\"></div>\r\n</div>\r\n\r\n<div [ngClass]=\"cssClasses.periodData | asRequired\">\r\n <div *ngFor=\"let year of periodData\"\r\n [ngClass]=\"cssClasses.periodDatum | asRequired\"\r\n [class.active]=\"year.active\"\r\n [class.disabled]=\"year.disabled\"\r\n (mousedown)=\"select($event, year)\">{{year.value}}</div>\r\n</div>"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"yearPicker.interfaces.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/components/yearPicker/yearPicker.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {CommonPickerCssClasses} from '../../misc/datetimePicker.interface';\n\n/**\n * Specific css classes for year picker\n */\nexport interface YearPickerCssClasses extends CommonPickerCssClasses\n{\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC","sourcesContent":["export * from './loopScroll/loopScroll.directive';\nexport * from './loopScroll/loopScroll.interface';\nexport * from './loopScrollData/loopScrollData.directive';\n"]}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, Output, QueryList } from '@angular/core';
|
|
3
|
-
import { DebounceCall, isBlank, nameof } from '@jscrpt/common';
|
|
4
|
-
import { LoopScrollDataDirective } from '../loopScrollData/loopScrollData.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Renders loop scroll for array of elements
|
|
8
|
-
*/
|
|
9
|
-
export class LoopScrollDirective {
|
|
10
|
-
//######################### constructor #########################
|
|
11
|
-
constructor(_scrollElement) {
|
|
12
|
-
this._scrollElement = _scrollElement;
|
|
13
|
-
/**
|
|
14
|
-
* Indication whether is loop scroll initialized
|
|
15
|
-
*/
|
|
16
|
-
this._initialized = false;
|
|
17
|
-
/**
|
|
18
|
-
* Count of cloned elements before or after
|
|
19
|
-
*/
|
|
20
|
-
this._clonedCount = 0;
|
|
21
|
-
/**
|
|
22
|
-
* Indication whether ignore scroll handle
|
|
23
|
-
*/
|
|
24
|
-
this._ignoreScrollHandle = false;
|
|
25
|
-
/**
|
|
26
|
-
* Indication whether skip value change
|
|
27
|
-
*/
|
|
28
|
-
this._skipValueChange = false;
|
|
29
|
-
/**
|
|
30
|
-
* Indication whether is currently selection scroll open
|
|
31
|
-
*/
|
|
32
|
-
this.open = false;
|
|
33
|
-
//######################### public properties - outputs #########################
|
|
34
|
-
/**
|
|
35
|
-
* Occurs when current value of loop scroll changes
|
|
36
|
-
*/
|
|
37
|
-
this.valueChange = new EventEmitter();
|
|
38
|
-
}
|
|
39
|
-
//######################### public properties - inputs #########################
|
|
40
|
-
/**
|
|
41
|
-
* Gets or sets value that is being set in loop scroll
|
|
42
|
-
*/
|
|
43
|
-
get value() {
|
|
44
|
-
return this._value;
|
|
45
|
-
}
|
|
46
|
-
set value(value) {
|
|
47
|
-
this._skipValueChange = this._value == value;
|
|
48
|
-
this._value = value;
|
|
49
|
-
}
|
|
50
|
-
//######################### public methods - implementation of OnChanges #########################
|
|
51
|
-
/**
|
|
52
|
-
* Called when input value changes
|
|
53
|
-
*/
|
|
54
|
-
ngOnChanges(changes) {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
if (!this._initialized) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const itemHeight = (_a = this._itemHeight) !== null && _a !== void 0 ? _a : 1;
|
|
60
|
-
if (nameof('open') in changes) {
|
|
61
|
-
if (this.open) {
|
|
62
|
-
this._scrollElement.nativeElement.scrollTo({ top: this._scrollElement.nativeElement.scrollTop - (2 * itemHeight), behavior: 'auto' });
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
if (nameof('value') in changes) {
|
|
66
|
-
const selectedItem = (_b = this._dataItems) === null || _b === void 0 ? void 0 : _b.find(itm => itm.data == this.value);
|
|
67
|
-
if (!selectedItem) {
|
|
68
|
-
throw new Error('No item selected in loop scroll');
|
|
69
|
-
}
|
|
70
|
-
const selectedIndex = this._dataItems.indexOf(selectedItem);
|
|
71
|
-
this._scrollElement.nativeElement.scrollTo({ top: (selectedIndex + this._clonedCount) * itemHeight, behavior: 'auto' });
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
this._scrollElement.nativeElement.scrollTo({ top: this._scrollElement.nativeElement.scrollTop + (2 * itemHeight), behavior: 'auto' });
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
else if (nameof('value') in changes) {
|
|
78
|
-
if (!this._skipValueChange) {
|
|
79
|
-
this._ignoreScrollHandle = true;
|
|
80
|
-
this._scrollElement.nativeElement.scrollTo({ top: this._itemHeight * (this._clonedCount + this._dataItems.findIndex(itm => itm.data == this.value) + (this.open ? -2 : 0)), behavior: 'auto' });
|
|
81
|
-
this._ignoreScrollHandle = false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
this._skipValueChange = false;
|
|
85
|
-
}
|
|
86
|
-
//######################### public methods - implementation of AfterContentInit #########################
|
|
87
|
-
/**
|
|
88
|
-
* Called when content was initialized
|
|
89
|
-
*/
|
|
90
|
-
ngAfterContentInit() {
|
|
91
|
-
var _a, _b, _c, _d;
|
|
92
|
-
this._items = (_a = this.items) === null || _a === void 0 ? void 0 : _a.toArray();
|
|
93
|
-
this._dataItems = (_b = this._items) === null || _b === void 0 ? void 0 : _b.filter(itm => !itm.clone);
|
|
94
|
-
if (!((_c = this._dataItems) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
95
|
-
(_d = this.items) === null || _d === void 0 ? void 0 : _d.changes.subscribe(() => {
|
|
96
|
-
var _a, _b;
|
|
97
|
-
this._items = (_a = this.items) === null || _a === void 0 ? void 0 : _a.toArray();
|
|
98
|
-
this._dataItems = (_b = this._items) === null || _b === void 0 ? void 0 : _b.filter(itm => !itm.clone);
|
|
99
|
-
this._initialize();
|
|
100
|
-
});
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
this._initialize();
|
|
104
|
-
}
|
|
105
|
-
//######################### protected methods #########################
|
|
106
|
-
/**
|
|
107
|
-
* Intialize default value
|
|
108
|
-
*/
|
|
109
|
-
_initialize() {
|
|
110
|
-
var _a, _b, _c;
|
|
111
|
-
const cloned = (_b = (_a = this._items) === null || _a === void 0 ? void 0 : _a.filter(itm => itm.clone)) !== null && _b !== void 0 ? _b : [];
|
|
112
|
-
this._clonedCount = cloned.length / 2;
|
|
113
|
-
if (!((_c = this._dataItems) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
this._dataItems.forEach(itm => {
|
|
117
|
-
if (isBlank(this._itemHeight)) {
|
|
118
|
-
this._itemHeight = itm.element.nativeElement.offsetHeight;
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
if (this._itemHeight != itm.element.nativeElement.offsetHeight) {
|
|
122
|
-
throw new Error('All items inside of loop scroll should have same height');
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
this._scrollElement.nativeElement.scrollTo({ top: this._itemHeight * (this._clonedCount + this._dataItems.findIndex(itm => itm.data == this.value)), behavior: 'auto' });
|
|
126
|
-
this._initialized = true;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Handles scroll event
|
|
130
|
-
*/
|
|
131
|
-
_handleScroll() {
|
|
132
|
-
if (this._ignoreScrollHandle) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
requestAnimationFrame(() => {
|
|
136
|
-
var _a, _b, _c, _d, _e;
|
|
137
|
-
if (!this._dataItems) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const index = this._scrollElement.nativeElement.scrollTop / ((_a = this._itemHeight) !== null && _a !== void 0 ? _a : 1);
|
|
141
|
-
const dataIndex = index + (this.open ? 2 : 0) - this._clonedCount;
|
|
142
|
-
const dataLength = ((_b = this._itemHeight) !== null && _b !== void 0 ? _b : 1) * this._dataItems.length;
|
|
143
|
-
if (index % 1 <= .2 || index % 1 >= .8) {
|
|
144
|
-
(_d = (_c = this._scrollElement.nativeElement.querySelector('.selected')) === null || _c === void 0 ? void 0 : _c.classList) === null || _d === void 0 ? void 0 : _d.remove('selected');
|
|
145
|
-
const roundIndex = Math.round(index);
|
|
146
|
-
this._items[roundIndex + (this.open ? 2 : 0)].element.nativeElement.classList.add('selected');
|
|
147
|
-
this._emitValue(dataIndex);
|
|
148
|
-
}
|
|
149
|
-
if (dataIndex <= -1) {
|
|
150
|
-
this._updateScroll(dataLength, true, index, dataIndex);
|
|
151
|
-
}
|
|
152
|
-
else if (dataIndex >= ((_e = this._dataItems.length) !== null && _e !== void 0 ? _e : 0)) {
|
|
153
|
-
this._updateScroll(dataLength, false, index, dataIndex);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Updates scroll to be at full value of item
|
|
159
|
-
* @param dataLength - Length of all data
|
|
160
|
-
* @param add - Indication whether add or subtract length
|
|
161
|
-
* @param index - Current index
|
|
162
|
-
* @param dataIndex - Current index of data
|
|
163
|
-
*/
|
|
164
|
-
_updateScroll(dataLength, add, index, dataIndex) {
|
|
165
|
-
var _a;
|
|
166
|
-
this._scrollElement.nativeElement.scrollTo({ top: (Math.round(index) * ((_a = this._itemHeight) !== null && _a !== void 0 ? _a : 1)) + (add ? dataLength : (dataLength * -1)), behavior: 'auto' });
|
|
167
|
-
this._emitValue(dataIndex);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Emits value after scroll
|
|
171
|
-
* @param index - Index of currently selected data item
|
|
172
|
-
*/
|
|
173
|
-
_emitValue(index) {
|
|
174
|
-
index = Math.round(index) % this._dataItems.length;
|
|
175
|
-
if (index < 0) {
|
|
176
|
-
index = this._dataItems.length + index;
|
|
177
|
-
}
|
|
178
|
-
const item = this._dataItems[index];
|
|
179
|
-
if (this.value != item.data) {
|
|
180
|
-
this.value = item.data;
|
|
181
|
-
this.valueChange.next(this.value);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
LoopScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
186
|
-
LoopScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: LoopScrollDirective, selector: "[loopScroll]", inputs: { value: ["loopScroll", "value"], open: "open" }, outputs: { valueChange: "loopScrollChange" }, host: { listeners: { "scroll": "_handleScroll()" } }, queries: [{ propertyName: "items", predicate: LoopScrollDataDirective }], usesOnChanges: true, ngImport: i0 });
|
|
187
|
-
__decorate([
|
|
188
|
-
DebounceCall(18),
|
|
189
|
-
__metadata("design:type", Function),
|
|
190
|
-
__metadata("design:paramtypes", [Number, Boolean, Number, Number]),
|
|
191
|
-
__metadata("design:returntype", void 0)
|
|
192
|
-
], LoopScrollDirective.prototype, "_updateScroll", null);
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDirective, decorators: [{
|
|
194
|
-
type: Directive,
|
|
195
|
-
args: [{
|
|
196
|
-
selector: '[loopScroll]'
|
|
197
|
-
}]
|
|
198
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { value: [{
|
|
199
|
-
type: Input,
|
|
200
|
-
args: ['loopScroll']
|
|
201
|
-
}], open: [{
|
|
202
|
-
type: Input
|
|
203
|
-
}], valueChange: [{
|
|
204
|
-
type: Output,
|
|
205
|
-
args: ['loopScrollChange']
|
|
206
|
-
}], items: [{
|
|
207
|
-
type: ContentChildren,
|
|
208
|
-
args: [LoopScrollDataDirective]
|
|
209
|
-
}], _handleScroll: [{
|
|
210
|
-
type: HostListener,
|
|
211
|
-
args: ['scroll']
|
|
212
|
-
}], _updateScroll: [] } });
|
|
213
|
-
//# sourceMappingURL=loopScroll.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loopScroll.directive.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/directives/loopScroll/loopScroll.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAa,MAAM,EAAE,SAAS,EAAgB,MAAM,eAAe,CAAC;AACvK,OAAO,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,4CAA4C,CAAC;;AAEnF;;GAEG;AAKH,MAAM,OAAO,mBAAmB;IAkF5B,iEAAiE;IACjE,YAAsB,cAAuC;QAAvC,mBAAc,GAAd,cAAc,CAAyB;QAhE7D;;WAEG;QACO,iBAAY,GAAY,KAAK,CAAC;QAExC;;WAEG;QACO,iBAAY,GAAW,CAAC,CAAC;QAEnC;;WAEG;QACO,wBAAmB,GAAY,KAAK,CAAC;QAE/C;;WAEG;QACO,qBAAgB,GAAY,KAAK,CAAC;QAuB5C;;WAEG;QAEI,SAAI,GAAY,KAAK,CAAC;QAE7B,iFAAiF;QAEjF;;WAEG;QAEI,gBAAW,GAAwB,IAAI,YAAY,EAAS,CAAC;IAapE,CAAC;IAzCD,gFAAgF;IAEhF;;OAEG;IACH,IACW,KAAK;QAEZ,OAAO,IAAI,CAAC,MAAO,CAAC;IACxB,CAAC;IACD,IAAW,KAAK,CAAC,KAAY;QAEzB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,IAAI,KAAK,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IA6BD,kGAAkG;IAElG;;OAEG;IACI,WAAW,CAAC,OAAsB;;QAErC,IAAG,CAAC,IAAI,CAAC,YAAY,EACrB;YACI,OAAO;SACV;QAED,MAAM,UAAU,GAAG,MAAA,IAAI,CAAC,WAAW,mCAAI,CAAC,CAAC;QAEzC,IAAG,MAAM,CAAsB,MAAM,CA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BAAC,kBAAkB;gBAShB,KAAK;sBADd,eAAe;uBAAC,uBAAuB;gBA8H9B,aAAa;sBADtB,YAAY;uBAAC,QAAQ;gBA+CZ,aAAa","sourcesContent":["import {AfterContentInit, ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, OnChanges, Output, QueryList, SimpleChanges} from '@angular/core';\nimport {DebounceCall, isBlank, nameof} from '@jscrpt/common';\n\nimport {LoopScrollDataDirective} from '../loopScrollData/loopScrollData.directive';\n\n/**\n * Renders loop scroll for array of elements\n */\n@Directive(\n{\n selector: '[loopScroll]'\n})\nexport class LoopScrollDirective<TData = any> implements OnChanges, AfterContentInit\n{\n //######################### protected fields #########################\n\n /**\n * Item height that obtained\n */\n protected _itemHeight?: number;\n\n /**\n * Array of elements for scrolled stuff\n */\n protected _items?: LoopScrollDataDirective[];\n\n /**\n * Array of elements and data for scrolled stuff\n */ \n protected _dataItems?: LoopScrollDataDirective[];\n\n /**\n * Indication whether is loop scroll initialized\n */\n protected _initialized: boolean = false;\n\n /**\n * Count of cloned elements before or after\n */\n protected _clonedCount: number = 0;\n\n /**\n * Indication whether ignore scroll handle\n */\n protected _ignoreScrollHandle: boolean = false;\n\n /**\n * Indication whether skip value change\n */\n protected _skipValueChange: boolean = false;\n\n /**\n * Value that is being set in loop scroll\n */\n protected _value?: TData;\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets value that is being set in loop scroll\n */\n @Input('loopScroll')\n public get value(): TData\n {\n return this._value!;\n }\n public set value(value: TData)\n {\n this._skipValueChange = this._value == value;\n this._value = value;\n }\n\n /**\n * Indication whether is currently selection scroll open\n */\n @Input()\n public open: boolean = false;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when current value of loop scroll changes\n */\n @Output('loopScrollChange')\n public valueChange: EventEmitter<TData> = new EventEmitter<TData>();\n\n //######################### protected properties - children #########################\n\n /**\n * Array of items that are loop scrolled\n */\n @ContentChildren(LoopScrollDataDirective)\n protected items?: QueryList<LoopScrollDataDirective>;\n\n //######################### constructor #########################\n constructor(protected _scrollElement: ElementRef<HTMLElement>)\n {\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(!this._initialized)\n {\n return;\n }\n\n const itemHeight = this._itemHeight ?? 1;\n\n if(nameof<LoopScrollDirective>('open') in changes)\n {\n if(this.open)\n {\n this._scrollElement.nativeElement.scrollTo({top: this._scrollElement.nativeElement.scrollTop - (2 * itemHeight), behavior: 'auto'});\n\n return;\n }\n\n if(nameof<LoopScrollDirective>('value') in changes)\n {\n const selectedItem = this._dataItems?.find(itm => itm.data == this.value);\n\n if(!selectedItem)\n {\n throw new Error('No item selected in loop scroll');\n }\n\n const selectedIndex = this._dataItems!.indexOf(selectedItem);\n\n this._scrollElement.nativeElement.scrollTo({top: (selectedIndex + this._clonedCount) * itemHeight, behavior: 'auto'});\n }\n else\n {\n this._scrollElement.nativeElement.scrollTo({top: this._scrollElement.nativeElement.scrollTop + (2 * itemHeight), behavior: 'auto'});\n }\n }\n else if(nameof<LoopScrollDirective>('value') in changes)\n {\n if(!this._skipValueChange)\n {\n this._ignoreScrollHandle = true;\n this._scrollElement.nativeElement.scrollTo({top: this._itemHeight! * (this._clonedCount + this._dataItems!.findIndex(itm => itm.data == this.value) + (this.open ? -2 : 0)), behavior: 'auto'});\n this._ignoreScrollHandle = false;\n }\n }\n\n this._skipValueChange = false;\n }\n\n //######################### public methods - implementation of AfterContentInit #########################\n \n /**\n * Called when content was initialized\n */\n public ngAfterContentInit(): void\n {\n this._items = this.items?.toArray();\n this._dataItems = this._items?.filter(itm => !itm.clone);\n\n if(!this._dataItems?.length)\n {\n this.items?.changes.subscribe(() =>\n {\n this._items = this.items?.toArray();\n this._dataItems = this._items?.filter(itm => !itm.clone);\n\n this._initialize();\n });\n\n return;\n }\n\n this._initialize();\n }\n\n //######################### protected methods #########################\n\n /**\n * Intialize default value\n */\n protected _initialize(): void\n {\n const cloned = this._items?.filter(itm => itm.clone) ?? [];\n this._clonedCount = cloned.length / 2;\n\n if(!this._dataItems?.length)\n {\n return;\n }\n\n this._dataItems.forEach(itm =>\n {\n if(isBlank(this._itemHeight))\n {\n this._itemHeight = itm.element.nativeElement.offsetHeight;\n\n return;\n }\n\n if(this._itemHeight != itm.element.nativeElement.offsetHeight)\n {\n throw new Error('All items inside of loop scroll should have same height');\n }\n });\n\n this._scrollElement.nativeElement.scrollTo({top: this._itemHeight! * (this._clonedCount + this._dataItems!.findIndex(itm => itm.data == this.value)), behavior: 'auto'});\n this._initialized = true;\n }\n\n /**\n * Handles scroll event\n */\n @HostListener('scroll')\n protected _handleScroll(): void\n {\n if(this._ignoreScrollHandle)\n {\n return;\n }\n\n requestAnimationFrame(() =>\n {\n if(!this._dataItems)\n {\n return;\n }\n\n const index = this._scrollElement.nativeElement.scrollTop / (this._itemHeight ?? 1);\n const dataIndex = index + (this.open ? 2 : 0) - this._clonedCount;\n const dataLength = (this._itemHeight ?? 1) * this._dataItems.length;\n\n if(index % 1 <= .2 || index % 1 >= .8)\n {\n this._scrollElement.nativeElement.querySelector('.selected')?.classList?.remove('selected');\n\n const roundIndex = Math.round(index);\n this._items![roundIndex + (this.open ? 2 : 0)].element.nativeElement.classList.add('selected');\n this._emitValue(dataIndex);\n }\n\n if(dataIndex <= -1)\n {\n this._updateScroll(dataLength, true, index, dataIndex);\n }\n else if(dataIndex >= (this._dataItems.length ?? 0))\n {\n this._updateScroll(dataLength, false, index, dataIndex);\n }\n });\n }\n\n /**\n * Updates scroll to be at full value of item\n * @param dataLength - Length of all data\n * @param add - Indication whether add or subtract length\n * @param index - Current index\n * @param dataIndex - Current index of data \n */\n @DebounceCall(18)\n protected _updateScroll(dataLength: number, add: boolean, index: number, dataIndex: number): void\n {\n this._scrollElement.nativeElement.scrollTo({top: (Math.round(index) * (this._itemHeight ?? 1)) + (add ? dataLength : (dataLength * -1)), behavior: 'auto'});\n\n this._emitValue(dataIndex);\n }\n\n /**\n * Emits value after scroll\n * @param index - Index of currently selected data item\n */\n protected _emitValue(index: number): void\n {\n index = Math.round(index) % this._dataItems!.length;\n \n if(index < 0)\n {\n index = this._dataItems!.length + index;\n }\n\n const item = this._dataItems![index];\n\n if(this.value != item.data)\n {\n this.value = item.data;\n this.valueChange.next(this.value);\n }\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loopScroll.interface.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/directives/loopScroll/loopScroll.interface.ts"],"names":[],"mappings":"AAAA,gDAAgD","sourcesContent":["//FIXME: not used for now, maybe will be removed\n\n/**\n * Represents data for LoopScrollDirective\n */\nexport interface LoopScrollData<TData = any>\n{\n /**\n * Text to be displayed for item\n */\n displayText?: string;\n\n /**\n * Data that are stored per value\n */\n data?: TData;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loopScrollData.directive.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/directives/loopScrollData/loopScrollData.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;;AAE3D;;GAEG;AAKH,MAAM,OAAO,uBAAuB;IAgBhC,iEAAiE;IACjE,YAAmB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;QAPnD;;WAEG;QAEI,UAAK,GAAY,KAAK,CAAC;IAK9B,CAAC;;oHAnBQ,uBAAuB;wGAAvB,uBAAuB;2FAAvB,uBAAuB;kBAJnC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;iBAC/B;iGASU,IAAI;sBADV,KAAK;uBAAC,gBAAgB;gBAOhB,KAAK;sBADX,KAAK","sourcesContent":["import {Directive, ElementRef, Input} from '@angular/core';\n\n/**\n * Loop scroll data that are used inside LoopScrollDirective\n */\n@Directive(\n{\n selector: '[loopScrollData]'\n})\nexport class LoopScrollDataDirective<TData = any>\n{\n //######################### public properties - inputs #########################\n\n /**\n * Data for loop\n */\n @Input('loopScrollData')\n public data!: TData;\n\n /**\n * Indication that this node is clone\n */\n @Input()\n public clone: boolean = false;\n\n //######################### constructor #########################\n constructor(public element: ElementRef<HTMLElement>)\n {\n }\n}"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './components/dayPicker/dayPicker.interfaces';
|
|
2
|
-
export * from './components/monthPicker/monthPicker.interfaces';
|
|
3
|
-
export * from './components/yearPicker/yearPicker.interfaces';
|
|
4
|
-
export * from './components/rollerTimePicker/rollerTimePicker.interface';
|
|
5
|
-
export * from './misc/datetimePicker.interface';
|
|
6
|
-
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/legacy/picker/interfaces.ts"],"names":[],"mappings":"AAAA,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './components/dayPicker/dayPicker.interfaces';\nexport * from './components/monthPicker/monthPicker.interfaces';\nexport * from './components/yearPicker/yearPicker.interfaces';\nexport * from './components/rollerTimePicker/rollerTimePicker.interface';\nexport * from './misc/datetimePicker.interface';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datetimePicker.interface.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/misc/datetimePicker.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type} from '@angular/core';\nimport {Dictionary} from '@jscrpt/common';\nimport {Observable} from 'rxjs';\n\nimport {DateTimeValue} from '../../../interfaces/dateTime/datetime.interface';\nimport {DateApiObject} from '../../../services/dateApi/dateApi.interface';\n\n/**\n * Shared css classes for all pickers\n */\nexport interface CommonPickerCssClasses\n{\n /**\n * Period selection element wrapping displayed period and previous, next buttons\n */\n periodSelection: string;\n\n /**\n * Element used for switching period to previous one\n */\n previousPeriod: string;\n\n /**\n * Element used for switching period to next one\n */\n nextPeriod: string;\n\n /**\n * Element representing currently displayed period\n */\n periodValue: string;\n\n /**\n * Element wrapping displayed period data\n */\n periodData: string;\n\n /**\n * Element representing single datum for period item\n */\n periodDatum: string;\n\n /**\n * Name of css class that represents clickable items in picker\n */\n clickable: string;\n}\n\n/**\n * Css classes applied to datetime picker\n */\nexport interface DateTimePickerCssClasses\n{\n /**\n * Shared css classes for all pickers\n */\n pickerShared?: CommonPickerCssClasses;\n\n /**\n * Custom css classes specific for each picker type\n */\n pickerCustom?: Dictionary<object>;\n}\n\n/**\n * Defintion of datetime picker component options\n */\nexport interface DateTimePickerLegacyOptions<TPicker = any>\n{\n /**\n * Order of pickers, it's possible use less pickers as is defined in pickerPeriodsDefinition for example 'month,year'\n */\n pickerPeriodsOrder: string[]|string|null;\n\n /**\n * Definition of types for each period type for picker\n */\n pickerPeriodsDefinition: Dictionary<Type<TPicker>>;\n\n /**\n * Name of default period for picker that is displayed\n */\n defaultPeriod: string;\n\n /**\n * Css classes for date time picker\n */\n cssClasses: DateTimePickerCssClasses;\n}\n\n/**\n * Describes datetime picker component used for displaying and selecting value\n */\nexport interface DateTimeLegacyPicker<TDate = any, TCssClasses = object>\n{\n /**\n * Gets current value of datetime\n */\n readonly value: DateTimeValue<TDate>|null;\n\n /**\n * Occurs when value changes\n */\n readonly valueChange: Observable<void>;\n\n /**\n * Occurs when user scales up\n */\n readonly scaleUp: Observable<TDate>;\n\n /**\n * Occurs when user scales down\n */\n readonly scaleDown: Observable<TDate>;\n\n /**\n * Sets css classes for picker, allowing to override defaults\n * @param cssClasses - Css classes to be set for picker\n */\n setCssClasses(cssClasses: TCssClasses): void;\n\n /**\n * Sets minimal possible value for picker, that can be picked\n * @param value - Minimal possible value that can be picked\n */\n setMinValue(value: TDate|null): void;\n\n /**\n * Sets maximal possible value for picker, that can be picked\n * @param value - Maximal possible value that can be picked\n */\n setMaxValue(value: TDate|null): void;\n\n /**\n * Sets value of datetime picker\n * @param value - Value to be set to this picker\n */\n setValue(value: DateTimeValue<TDate>|null): void;\n\n /**\n * Set displays date to be displayed\n * @param value - Value that identifies period that is going to be displayed\n */\n display(value: DateApiObject<TDate>): void;\n\n /**\n * Sets indication whether can go down\n * @param value - Indication whether can go down in period\n */\n setCanGoDown(value: boolean): void;\n\n /**\n * Sets indication whether can go up\n * @param value - Indication whether can go up in period\n */\n setCanGoUp(value: boolean): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * Data that represents data for any picker type\n */\nexport interface PeriodData<TDate = any>\n{\n /**\n * Indication that this period item is active and selected\n */\n active: boolean;\n\n /**\n * Indication that this period item is disabled\n */\n disabled: boolean;\n\n //TODO: remove\n\n /**\n * Date for this period item\n */\n date: TDate;\n\n /**\n * Date for this period item as date api object\n */\n dateObj: DateApiObject<TDate>;\n}\n\n/**\n * Data that represents day in date picker\n */\nexport interface DayData<TDate = any> extends PeriodData<TDate>\n{\n\n /**\n * Indication that this day is out of currently selected month\n */\n otherMonth: boolean;\n\n /**\n * Indication that this day is today\n */\n today: boolean;\n\n /**\n * Indication that this day is weekend day\n */\n weekend: boolean;\n\n /**\n * Day number of month\n */\n day: number;\n}\n\n/**\n * Data that represents month in date picker\n */\nexport interface MonthData<TDate = any> extends PeriodData<TDate>\n{\n /**\n * Name of month\n */\n name: string;\n}\n\n/**\n * Data that represents year in date picker\n */\nexport interface YearData<TDate = any> extends PeriodData<TDate>\n{\n /**\n * Value of year\n */\n value: number;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/misc/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAqD,IAAI,cAAc,CAAmC,gCAAgC,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {DateTimePickerLegacyOptions} from './datetimePicker.interface';\n\n/**\n * Injection token used for obtaining datetime picker configuration\n */\nexport const DATE_TIME_PICKER_CONFIGURATION: InjectionToken<DateTimePickerLegacyOptions<any>> = new InjectionToken<DateTimePickerLegacyOptions<any>>('DATE_TIME_PICKER_CONFIGURATION');"]}
|
|
@@ -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,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,IAAI,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAC,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAE1G,OAAO,EAAC,6BAA6B,EAAC,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAC,0BAA0B,EAAC,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAC,4BAA4B,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,2BAA2B,EAAC,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAC,iCAAiC,EAAC,MAAM,2DAA2D,CAAC;AAC5G,OAAO,EAAC,uBAAuB,EAAE,mBAAmB,EAAC,MAAM,eAAe,CAAC;;AAE3E;;GAEG;AA6BH,MAAM,OAAO,0BAA0B;;uHAA1B,0BAA0B;wHAA1B,0BAA0B,iBAf/B,6BAA6B;QAC7B,iCAAiC;QACjC,0BAA0B;QAC1B,4BAA4B;QAC5B,2BAA2B;QAC3B,uBAAuB;QACvB,mBAAmB,aAfnB,mBAAmB;QACnB,mBAAmB;QACnB,iBAAiB;QACjB,eAAe;QACf,eAAe;QACf,kBAAkB,aAclB,6BAA6B;QAC7B,uBAAuB;QACvB,mBAAmB;wHAGd,0BAA0B,YAxB/B,mBAAmB;QACnB,mBAAmB;QACnB,iBAAiB;QACjB,eAAe;QACf,eAAe;QACf,kBAAkB;2FAmBb,0BAA0B;kBA5BtC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,mBAAmB;wBACnB,mBAAmB;wBACnB,iBAAiB;wBACjB,eAAe;wBACf,eAAe;wBACf,kBAAkB;qBACrB;oBACD,YAAY,EACZ;wBACI,6BAA6B;wBAC7B,iCAAiC;wBACjC,0BAA0B;wBAC1B,4BAA4B;wBAC5B,2BAA2B;wBAC3B,uBAAuB;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]);"]}
|