@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datePositionParser.service.js","sourceRoot":"","sources":["../../../../src/services/datePositionParser/datePositionParser.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAIvC;;GAEG;AAEH,MAAM,OAAO,yBAAyB;IAElC,oEAAoE;IAEpE;;;OAGG;IACI,YAAY,CAAC,MAAc;QAE9B,OAAO,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;;sHAXQ,yBAAyB;0HAAzB,yBAAyB,cADb,MAAM;2FAClB,yBAAyB;kBADrC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;AAehC;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAmBlC,iEAAiE;IACjE,YAAsB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;QAlBrC,sEAAsE;QAEtE;;WAEG;QACO,kBAAa,GAAY,KAAK,CAAC;QAEzC;;WAEG;QACO,sBAAiB,GAAa,EAAE,CAAC;QAE3C;;WAEG;QACO,4BAAuB,GAAsD,EAAE,CAAC;QAKtF,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,2GAA2G;IAE3G;;;;OAIG;IACI,IAAI,CAAC,IAA2B,EAAE,cAAsB;QAE3D,IAAG,OAAO,CAAC,IAAI,CAAC,EAChB;YACI,OAAO,IAAI,CAAC;SACf;QAED,mBAAmB;QACnB,IAAG,IAAI,CAAC,aAAa,EACrB;YACI,IAAI,OAAO,GAAG,KAAK,CAAC;YAEpB,OAAM,IAAI,EACV;gBACI,IAAG,cAAc,IAAI,IAAI,CAAC,MAAM,EAChC;oBACI,OAAO,IAAI,CAAC;iBACf;gBAED,IAAG,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,EAC3C;oBACI,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;i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SAAS,CAAC;qBAClE;oBAED,SAAS,GAAG,CAAC,CAAC;oBACd,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAE3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC;wBAC/B;4BACI,MAAM,EAAE,CAAC;4BACT,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;yBACxB,CAAC;iBACL;aACJ;YAED,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;SACpF;IACL,CAAC;CACJ","sourcesContent":["import {Injectable} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {DatePositionParser, DatePositionParserResult} from './datePositionParser.interface';\n\n/**\n * Service used for parsing date\n */\n@Injectable({providedIn: 'root'})\nexport class DatePositionParserService\n{\n //######################### public methods #########################\n\n /**\n * Creates parser instance for specified format\n * @param format - Format to be used for parsing date string\n */\n public createParser(format: string): DatePositionParser\n {\n return new DefaultDatePositionParser(format);\n }\n}\n\n/**\n * Default implementation of DatePositionParser\n */\nexport class DefaultDatePositionParser implements DatePositionParser\n{\n //######################### protected fields #########################\n\n /**\n * Indication whether format contains separators\n */\n protected _hasSeparator: boolean = false;\n\n /**\n * Array of date parts of parsed date format\n */\n protected _datePartsIndexes: string[] = [];\n\n /**\n * Object storing indexes for strict date parts of parsed date format\n */\n protected _strictDatePartsIndexes: {[index: number]: {part: string, length: number}} = {};\n\n //######################### constructor #########################\n constructor(protected _format: string)\n {\n this._initialize();\n }\n\n //######################### public methods - implementation of DatePositionParser #########################\n\n /**\n * Parse date as string and returns information about position and selected part of date, while moving it to next part, if it was last part returns null\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public next(date: string|null|undefined, cursorPosition: number): null|DatePositionParserResult\n {\n if(isBlank(date))\n {\n return null;\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n let useNext = false;\n\n while(true)\n {\n if(cursorPosition == date.length)\n {\n return null;\n }\n\n if(useNext && !isNaN(+date[cursorPosition]))\n {\n return this.parse(date, cursorPosition);\n }\n\n if(isNaN(+date[cursorPosition]))\n {\n useNext = true;\n }\n\n cursorPosition++;\n }\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition < index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return null;\n }\n\n /**\n * Parse date as string and returns information about position and selected part of date, while moving it to previous part, if it was first part returns null\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public previous(date: string|null|undefined, cursorPosition: number): null|DatePositionParserResult\n {\n if(isBlank(date))\n {\n return null;\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n let useNext = false;\n\n while(true)\n {\n if(cursorPosition < 0)\n {\n return null;\n }\n\n if(useNext && !isNaN(+date[cursorPosition]))\n {\n return this.parse(date, cursorPosition);\n }\n\n if(isNaN(+date[cursorPosition]))\n {\n useNext = true;\n }\n\n cursorPosition--;\n }\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).reverse().map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition > index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return null;\n }\n\n /**\n * Parse date as string and returns information about positions and selected part of date\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public parse(date: string|null|undefined, cursorPosition: number): DatePositionParserResult\n {\n if(isBlank(date))\n {\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n //fix cursor position if is clicked on separator\n if(cursorPosition != date.length &&\n /[^0-9ɵ]/.test(date[cursorPosition]) &&\n /[^0-9ɵ]/.test(date[cursorPosition - 1]))\n {\n let breakCycle = false;\n cursorPosition++;\n\n while(/[^0-9ɵ]/.test(date[cursorPosition]))\n {\n if(cursorPosition >= date.length)\n {\n if(breakCycle)\n {\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n breakCycle = true;\n cursorPosition = 0;\n }\n\n cursorPosition++;\n }\n }\n\n const updateDate = [date.substr(0, cursorPosition), 'ɵ', date.substr(cursorPosition)].join('');\n const indexed = updateDate.replace(/[^0-9ɵ]/g, ' ').split(' ');\n let partIndex = 0;\n let startPosition = 0;\n let selectionLength = 0;\n\n for(const itm of indexed)\n {\n //this segment contains cursor\n if(itm.indexOf('ɵ') >= 0)\n {\n selectionLength = itm.length - 1;\n\n break;\n }\n\n startPosition++;\n\n //separator\n if(!itm.length)\n {\n continue;\n }\n\n partIndex++;\n startPosition += itm.length;\n }\n\n return {\n part: this._datePartsIndexes[partIndex],\n positionFrom: startPosition,\n positionTo: startPosition + selectionLength\n };\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).reverse().map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition >= index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n /**\n * Initialize parser, process format\n */\n protected _initialize(): void\n {\n this._hasSeparator = /[^yqmwdhs]/i.test(this._format);\n\n //non strict format\n if(this._hasSeparator)\n {\n this._datePartsIndexes = this._format.replace(/[^yqmwdhs]+/gi, ' ')\n .split(' ')\n .filter(itm => !!itm)\n .map(itm => itm[0]);\n }\n //strict format\n else\n {\n let lastPart: string|null = null;\n let lastIndex: number = 0;\n\n for(let x = 0; x < this._format.length; x++)\n {\n //next part\n if(this._format[x] != lastPart)\n {\n if(x > 0)\n {\n this._strictDatePartsIndexes[lastIndex].length = x - lastIndex;\n }\n\n lastIndex = x;\n lastPart = this._format[x];\n\n this._strictDatePartsIndexes[x] =\n {\n length: 0,\n part: this._format[x]\n };\n }\n }\n\n this._strictDatePartsIndexes[lastIndex].length = this._format.length - lastIndex;\n }\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"datePositionParser.service.js","sourceRoot":"","sources":["../../../../src/services/datePositionParser/datePositionParser.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAIvC;;GAEG;AAEH,MAAM,OAAO,yBAAyB;IAElC,oEAAoE;IAEpE;;;OAGG;IACI,YAAY,CAAC,MAAc;QAE9B,OAAO,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;;sHAXQ,yBAAyB;0HAAzB,yBAAyB,cADb,MAAM;2FAClB,yBAAyB;kBADrC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;AAehC;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAmBlC,iEAAiE;IACjE,YAAsB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;QAlBrC,sEAAsE;QAEtE;;WAEG;QACO,kBAAa,GAAY,KAAK,CAAC;QAEzC;;WAEG;QACO,sBAAiB,GAAa,EAAE,CAAC;QAE3C;;WAEG;QACO,4BAAuB,GAAsD,EAAE,CAAC;QAKtF,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,2GAA2G;IAE3G;;;;OAIG;IACI,IAAI,CAAC,IAA2B,EAAE,cAAsB;QAE3D,IAAG,OAAO,CAAC,IAAI,CAAC,EAChB;YACI,OAAO,IAAI,CAAC;SACf;QAED,mBAAmB;QACnB,IAAG,IAAI,CAAC,aAAa,EACrB;YACI,IAAI,OAAO,GAAG,KAAK,CAAC;YAEpB,iDAAiD;YACjD,OAAM,IAAI,EACV;gBACI,IAAG,cAAc,IAAI,IAAI,CA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AE,CAAC,EAAE,EAC3C;gBACI,WAAW;gBACX,IAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,EAC9B;oBACI,IAAG,CAAC,GAAG,CAAC,EACR;wBACI,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;qBAClE;oBAED,SAAS,GAAG,CAAC,CAAC;oBACd,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;oBAE3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC;wBAC/B;4BACI,MAAM,EAAE,CAAC;4BACT,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;yBACxB,CAAC;iBACL;aACJ;YAED,IAAI,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;SACpF;IACL,CAAC;CACJ","sourcesContent":["import {Injectable} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {DatePositionParser, DatePositionParserResult} from './datePositionParser.interface';\n\n/**\n * Service used for parsing date\n */\n@Injectable({providedIn: 'root'})\nexport class DatePositionParserService\n{\n //######################### public methods #########################\n\n /**\n * Creates parser instance for specified format\n * @param format - Format to be used for parsing date string\n */\n public createParser(format: string): DatePositionParser\n {\n return new DefaultDatePositionParser(format);\n }\n}\n\n/**\n * Default implementation of DatePositionParser\n */\nexport class DefaultDatePositionParser implements DatePositionParser\n{\n //######################### protected fields #########################\n\n /**\n * Indication whether format contains separators\n */\n protected _hasSeparator: boolean = false;\n\n /**\n * Array of date parts of parsed date format\n */\n protected _datePartsIndexes: string[] = [];\n\n /**\n * Object storing indexes for strict date parts of parsed date format\n */\n protected _strictDatePartsIndexes: {[index: number]: {part: string, length: number}} = {};\n\n //######################### constructor #########################\n constructor(protected _format: string)\n {\n this._initialize();\n }\n\n //######################### public methods - implementation of DatePositionParser #########################\n\n /**\n * Parse date as string and returns information about position and selected part of date, while moving it to next part, if it was last part returns null\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public next(date: string|null|undefined, cursorPosition: number): null|DatePositionParserResult\n {\n if(isBlank(date))\n {\n return null;\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n let useNext = false;\n\n // eslint-disable-next-line no-constant-condition\n while(true)\n {\n if(cursorPosition == date.length)\n {\n return null;\n }\n\n if(useNext && !isNaN(+date[cursorPosition]))\n {\n return this.parse(date, cursorPosition);\n }\n\n if(isNaN(+date[cursorPosition]))\n {\n useNext = true;\n }\n\n cursorPosition++;\n }\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition < index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return null;\n }\n\n /**\n * Parse date as string and returns information about position and selected part of date, while moving it to previous part, if it was first part returns null\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public previous(date: string|null|undefined, cursorPosition: number): null|DatePositionParserResult\n {\n if(isBlank(date))\n {\n return null;\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n let useNext = false;\n\n // eslint-disable-next-line no-constant-condition\n while(true)\n {\n if(cursorPosition < 0)\n {\n return null;\n }\n\n if(useNext && !isNaN(+date[cursorPosition]))\n {\n return this.parse(date, cursorPosition);\n }\n\n if(isNaN(+date[cursorPosition]))\n {\n useNext = true;\n }\n\n cursorPosition--;\n }\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).reverse().map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition > index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return null;\n }\n\n /**\n * Parse date as string and returns information about positions and selected part of date\n * @param date - String date to be parsed\n * @param cursorPosition - Current cursor position\n */\n public parse(date: string|null|undefined, cursorPosition: number): DatePositionParserResult\n {\n if(isBlank(date))\n {\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n //non strict format\n if(this._hasSeparator)\n {\n //fix cursor position if is clicked on separator\n if(cursorPosition != date.length &&\n /[^0-9ɵ]/.test(date[cursorPosition]) &&\n /[^0-9ɵ]/.test(date[cursorPosition - 1]))\n {\n let breakCycle = false;\n cursorPosition++;\n\n while(/[^0-9ɵ]/.test(date[cursorPosition]))\n {\n if(cursorPosition >= date.length)\n {\n if(breakCycle)\n {\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n breakCycle = true;\n cursorPosition = 0;\n }\n\n cursorPosition++;\n }\n }\n\n const updateDate = [date.substr(0, cursorPosition), 'ɵ', date.substr(cursorPosition)].join('');\n const indexed = updateDate.replace(/[^0-9ɵ]/g, ' ').split(' ');\n let partIndex = 0;\n let startPosition = 0;\n let selectionLength = 0;\n\n for(const itm of indexed)\n {\n //this segment contains cursor\n if(itm.indexOf('ɵ') >= 0)\n {\n selectionLength = itm.length - 1;\n\n break;\n }\n\n startPosition++;\n\n //separator\n if(!itm.length)\n {\n continue;\n }\n\n partIndex++;\n startPosition += itm.length;\n }\n\n return {\n part: this._datePartsIndexes[partIndex],\n positionFrom: startPosition,\n positionTo: startPosition + selectionLength\n };\n }\n //strict format\n else\n {\n const indexes = Object.keys(this._strictDatePartsIndexes).reverse().map(itm => +itm);\n\n for(const index of indexes)\n {\n if(cursorPosition >= index)\n {\n return {\n part: this._strictDatePartsIndexes[index].part,\n positionFrom: index,\n positionTo: index + this._strictDatePartsIndexes[index].length\n };\n }\n }\n }\n\n return {\n part: '',\n positionFrom: 0,\n positionTo: 0\n };\n }\n\n /**\n * Initialize parser, process format\n */\n protected _initialize(): void\n {\n this._hasSeparator = /[^yqmwdhs]/i.test(this._format);\n\n //non strict format\n if(this._hasSeparator)\n {\n this._datePartsIndexes = this._format.replace(/[^yqmwdhs]+/gi, ' ')\n .split(' ')\n .filter(itm => !!itm)\n .map(itm => itm[0]);\n }\n //strict format\n else\n {\n let lastPart: string|null = null;\n let lastIndex: number = 0;\n\n for(let x = 0; x < this._format.length; x++)\n {\n //next part\n if(this._format[x] != lastPart)\n {\n if(x > 0)\n {\n this._strictDatePartsIndexes[lastIndex].length = x - lastIndex;\n }\n\n lastIndex = x;\n lastPart = this._format[x];\n\n this._strictDatePartsIndexes[x] =\n {\n length: 0,\n part: this._format[x]\n };\n }\n }\n\n this._strictDatePartsIndexes[lastIndex].length = this._format.length - lastIndex;\n }\n }\n}"]}
|
|
@@ -71,9 +71,9 @@ export class DateTimeRelativeParser {
|
|
|
71
71
|
return value;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
DateTimeRelativeParser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
75
|
-
DateTimeRelativeParser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
DateTimeRelativeParser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeRelativeParser, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
DateTimeRelativeParser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeRelativeParser, providedIn: 'root' });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeRelativeParser, decorators: [{
|
|
77
77
|
type: Injectable,
|
|
78
78
|
args: [{ providedIn: 'root' }]
|
|
79
79
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateTimeRelativeParser.service.js","sourceRoot":"","sources":["../../../../src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;;AAG3C;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IAS/B,iEAAiE;IACjE,YAAsB,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAEzC,CAAC;IAED,oEAAoE;IAEpE;;;;;;;;;;;OAWG;IACI,KAAK,CAAC,KAAsB;QAE/B,MAAM,KAAK,GAAG,8BAA8B,CAAC;QAC7C,IAAI,OAAO,GAA2B,IAAI,CAAC;QAE3C,wBAAwB;QACxB,IAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EACnD;YACI,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"dateTimeRelativeParser.service.js","sourceRoot":"","sources":["../../../../src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;;AAG3C;;GAEG;AAEH,MAAM,O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;oBACR;wBACI,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;wBAE5F,MAAM;qBACT;gBACD,KAAK,GAAG;oBACR;wBACI,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;wBAE9F,MAAM;qBACT;gBACD,KAAK,GAAG;oBACR;wBACI,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;wBAEhG,MAAM;qBACT;gBACD,KAAK,GAAG;oBACR;wBACI,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;wBAE9F,MAAM;qBACT;aACJ;YAED,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;SACrB;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;;mHAvFQ,sBAAsB;uHAAtB,sBAAsB,cADV,MAAM;2FAClB,sBAAsB;kBADlC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable, Injector} from '@angular/core';\nimport {isString} from '@jscrpt/common';\n\nimport {DATE_API} from '../../misc/tokens';\nimport {DateApi, DateApiObject, DateValue} from '../dateApi/dateApi.interface';\n\n/**\n * Service used for parsing relative date time strings\n */\n@Injectable({providedIn: 'root'})\nexport class DateTimeRelativeParser<TDate = unknown>\n{\n //######################### protected fields #########################\n \n /**\n * Date api for handling\n */\n protected _dateApi?: DateApi<TDate, DateApiObject<TDate>>;\n\n //######################### constructor #########################\n constructor(protected _injector: Injector)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Tries to parse relative value and returns parsed TDate, otherwise returns input value\n * @param value - Value to be parsed\n * \n * @summary\n * m - for minutes\n * h - for hours\n * d - for days\n * w - for weeks\n * M - for months\n * y - for years\n */\n public parse(value: TDate|DateValue): TDate|DateValue\n {\n const regex = /([+-])\\s*(\\d+)\\s*([hHmdwMy])/;\n let matches: RegExpExecArray | null = null;\n\n //relative date provided\n if(isString(value) && (matches = regex.exec(value)))\n {\n const operation = matches[1];\n const amount = matches[2];\n const period = matches[3];\n this._dateApi = this._dateApi ?? this._injector.get(DATE_API) as DateApi<TDate>;\n const now = this._dateApi.now();\n\n switch(period)\n {\n case 'm':\n {\n operation == '+' ? now.addMinutes(+amount).endOfMinute() : now.subtractMinutes(+amount).startOfMinute();\n\n break;\n }\n case 'H':\n case 'h':\n {\n operation == '+' ? now.addHours(+amount).endOfHour() : now.subtractHours(+amount).startOfHour();\n\n break;\n }\n case 'd':\n {\n operation == '+' ? now.addDays(+amount).endOfDay() : now.subtractDays(+amount).startOfDay();\n\n break;\n }\n case 'w':\n {\n operation == '+' ? now.addWeeks(+amount).endOfDay() : now.subtractWeeks(+amount).startOfDay();\n\n break;\n }\n case 'M':\n {\n operation == '+' ? now.addMonths(+amount).endOfDay() : now.subtractMonths(+amount).startOfDay();\n\n break;\n }\n case 'y':\n {\n operation == '+' ? now.addYears(+amount).endOfDay() : now.subtractYears(+amount).startOfDay();\n\n break;\n }\n }\n\n value = now.value;\n }\n\n return value;\n }\n}"]}
|
|
@@ -57,9 +57,9 @@ export class DateValueProvider {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
DateValueProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
DateValueProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
DateValueProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateValueProvider, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
DateValueProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateValueProvider, providedIn: 'root' });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateValueProvider, decorators: [{
|
|
63
63
|
type: Injectable,
|
|
64
64
|
args: [{ providedIn: 'root' }]
|
|
65
65
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateValueProvider.service.js","sourceRoot":"","sources":["../../../../src/services/dateValueProvider/dateValueProvider.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;;AAG3C,sDAAsD;AAEtD;;GAEG;AAEH,MAAM,OAAO,iBAAiB;IAE1B,iEAAiE;IACjE,YAAwC,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAEhE,CAAC;IAED,oEAAoE;IAEpE;;;;OAIG;IACI,QAAQ,CAAC,KAAY,EAAE,MAAc;QAExC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,CAAC,QAA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,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EACpE;YACI,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YAChC,GAAG,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC;SAC/B;QAED,OAAO;YACH,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;SACV,CAAC;IACN,CAAC;;8GA9DQ,iBAAiB,kBAGN,QAAQ;kHAHnB,iBAAiB,cADL,MAAM;2FAClB,iBAAiB;kBAD7B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;0BAIf,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Injectable} from '@angular/core';\n\nimport {DateTimeValue} from '../../interfaces/dateTime/datetime.interface';\nimport {DATE_API} from '../../misc/tokens';\nimport {DateApi} from '../dateApi/dateApi.interface';\n\n//TODO: change to unknown when legacy stuff is removed\n\n/**\n * Class used for obtaining DateTimeValue for various formats\n */\n@Injectable({providedIn: 'root'})\nexport class DateValueProvider<TDate =
|
|
1
|
+
{"version":3,"file":"dateValueProvider.service.js","sourceRoot":"","sources":["../../../../src/services/dateValueProvider/dateValueProvider.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;;AAG3C,sDAAsD;AAEtD;;GAEG;AAEH,MAAM,OAAO,iBAAiB;IAE1B,iEAAiE;IACjE,YAAwC,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAEhE,CAAC;IAED,oEAAoE;IAEpE;;;;OAIG;IACI,QAAQ,CAAC,KAAY,EAAE,MAAc;QAExC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,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AAC,GAAG,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EACpE;YACI,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YAChC,GAAG,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC;SAC/B;QAED,OAAO;YACH,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;SACV,CAAC;IACN,CAAC;;8GA9DQ,iBAAiB,kBAGN,QAAQ;kHAHnB,iBAAiB,cADL,MAAM;2FAClB,iBAAiB;kBAD7B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;0BAIf,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Injectable} from '@angular/core';\n\nimport {DateTimeValue} from '../../interfaces/dateTime/datetime.interface';\nimport {DATE_API} from '../../misc/tokens';\nimport {DateApi} from '../dateApi/dateApi.interface';\n\n//TODO: change to unknown when legacy stuff is removed\n\n/**\n * Class used for obtaining DateTimeValue for various formats\n */\n@Injectable({providedIn: 'root'})\nexport class DateValueProvider<TDate = unknown>\n{\n //######################### constructor #########################\n constructor(@Inject(DATE_API) protected _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets DateTimeValue from single value based on format\n * @param value - Current value to be converted to ranged value\n * @param format - Format that is requested to be displayed, it tells what range should be created\n */\n public getValue(value: TDate, format: string): DateTimeValue<TDate>\n {\n const val = this._dateApi.getValue(value, format);\n const fullFormat = this._dateApi.getFormat(format);\n let start: TDate = value;\n let end: TDate = value;\n\n //minute\n if(fullFormat.indexOf('m') >= 0)\n {\n start = val.startOfMinute().value;\n end = val.endOfMinute().value;\n }\n //hour\n else if(fullFormat.indexOf('H') >= 0 || fullFormat.indexOf('h') >= 0)\n {\n start = val.startOfHour().value;\n end = val.endOfHour().value;\n }\n //day\n else if(fullFormat.indexOf('d') >= 0)\n {\n start = val.startOfDay().value;\n end = val.endOfDay().value;\n }\n //week\n else if(fullFormat.indexOf('w') >= 0)\n {\n start = val.startOfWeek().value;\n end = val.endOfWeek().value;\n }\n //month\n else if(fullFormat.indexOf('M') >= 0)\n {\n start = val.startOfMonth().value;\n end = val.endOfMonth().value;\n }\n //year\n else if(fullFormat.indexOf('Y') >= 0 || fullFormat.indexOf('y') >= 0)\n {\n start = val.startOfYear().value;\n end = val.endOfYear().value;\n }\n\n return {\n from: start,\n to: end\n };\n }\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValueProvider } from '@angular/core';
|
|
2
|
-
import { DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor } from '@anglr/datetime';
|
|
2
|
+
import { DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor, DateObject } from '@anglr/datetime';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -36,6 +36,10 @@ export declare class MomentDateApiObject implements DateApiObject<moment.Moment>
|
|
|
36
36
|
* @param format - Format token used for creating formatted string
|
|
37
37
|
*/
|
|
38
38
|
format(format: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritdoc
|
|
41
|
+
*/
|
|
42
|
+
formatISO(): string;
|
|
39
43
|
/**
|
|
40
44
|
* @inheritdoc
|
|
41
45
|
*/
|
|
@@ -244,42 +248,46 @@ export declare class MomentDateApiObject implements DateApiObject<moment.Moment>
|
|
|
244
248
|
* Gets indication whether current value is before 'date'
|
|
245
249
|
* @param date - Date which is this date compared to
|
|
246
250
|
*/
|
|
247
|
-
isBefore(date: moment.Moment): boolean;
|
|
251
|
+
isBefore(date: DateObject<moment.Moment>): boolean;
|
|
248
252
|
/**
|
|
249
253
|
* Gets indication whether current value is after 'date'
|
|
250
254
|
* @param date - Date which is this date compared to
|
|
251
255
|
*/
|
|
252
|
-
isAfter(date: moment.Moment): boolean;
|
|
256
|
+
isAfter(date: DateObject<moment.Moment>): boolean;
|
|
253
257
|
/**
|
|
254
258
|
* Gets number of days between this and provided date
|
|
255
259
|
* @param date - Date which is used for computation of diff against
|
|
256
260
|
*/
|
|
257
|
-
diffDays(date: moment.Moment): number;
|
|
261
|
+
diffDays(date: DateObject<moment.Moment>): number;
|
|
258
262
|
/**
|
|
259
263
|
* Compares whether this date is same week as provided date
|
|
260
264
|
* @param date - Date which is used for comparison of same week
|
|
261
265
|
*/
|
|
262
|
-
isSameWeek(date: moment.Moment): boolean;
|
|
266
|
+
isSameWeek(date: DateObject<moment.Moment>): boolean;
|
|
263
267
|
/**
|
|
264
268
|
* Compares whether this date is same decade as provided date
|
|
265
269
|
* @param date - Date which is used for comparison of same decade
|
|
266
270
|
*/
|
|
267
|
-
isSameDecade(date: moment.Moment): boolean;
|
|
271
|
+
isSameDecade(date: DateObject<moment.Moment>): boolean;
|
|
268
272
|
/**
|
|
269
273
|
* Compares whether this date is same year as provided date
|
|
270
274
|
* @param date - Date which is used for comparison of same year
|
|
271
275
|
*/
|
|
272
|
-
isSameYear(date: moment.Moment): boolean;
|
|
276
|
+
isSameYear(date: DateObject<moment.Moment>): boolean;
|
|
273
277
|
/**
|
|
274
278
|
* Compares whether this date is same month as provided date
|
|
275
279
|
* @param date - Date which is used for comparison of same month
|
|
276
280
|
*/
|
|
277
|
-
isSameMonth(date: moment.Moment): boolean;
|
|
281
|
+
isSameMonth(date: DateObject<moment.Moment>): boolean;
|
|
278
282
|
/**
|
|
279
283
|
* Compares whether this date is same day as provided date
|
|
280
284
|
* @param date - Date which is used for comparison of same day
|
|
281
285
|
*/
|
|
282
|
-
isSameDay(date: moment.Moment): boolean;
|
|
286
|
+
isSameDay(date: DateObject<moment.Moment>): boolean;
|
|
287
|
+
/**
|
|
288
|
+
* @inheritdoc
|
|
289
|
+
*/
|
|
290
|
+
isSame(date: DateObject<moment.Moment>): boolean;
|
|
283
291
|
/**
|
|
284
292
|
* Creates clone of this instance, value and originalValue have same value and are cloned from value
|
|
285
293
|
*/
|
|
@@ -299,14 +307,19 @@ export declare class MomentDateApiObject implements DateApiObject<moment.Moment>
|
|
|
299
307
|
* @returns Itself for fluent API
|
|
300
308
|
*/
|
|
301
309
|
resetOriginal(): DateApiObject<moment.Moment>;
|
|
310
|
+
/**
|
|
311
|
+
* Converts date object to date
|
|
312
|
+
* @param value - Value to be converted to date
|
|
313
|
+
*/
|
|
314
|
+
protected getDate(value: DateObject<moment.Moment>): moment.Moment;
|
|
302
315
|
}
|
|
303
316
|
/**
|
|
304
317
|
* Date api using MomentJS, used for obtaining DateApi wrapper object
|
|
305
318
|
*/
|
|
306
319
|
export declare class MomentDateApi implements DateApi<moment.Moment> {
|
|
307
320
|
protected _relativeParser: DateTimeRelativeParser<moment.Moment>;
|
|
308
|
-
protected _dateApiObjecType: DateApiObjectCtor<
|
|
309
|
-
constructor(_relativeParser: DateTimeRelativeParser<moment.Moment>, _dateApiObjecType: DateApiObjectCtor<
|
|
321
|
+
protected _dateApiObjecType: DateApiObjectCtor<moment.Moment, MomentDateApiObject>;
|
|
322
|
+
constructor(_relativeParser: DateTimeRelativeParser<moment.Moment>, _dateApiObjecType: DateApiObjectCtor<moment.Moment, MomentDateApiObject>);
|
|
310
323
|
/**
|
|
311
324
|
* Gets wrapping object used for manipulation
|
|
312
325
|
* @param value - Value to be converted (parsed) and used for manipulation
|
|
@@ -340,7 +353,7 @@ export declare class MomentDateApi implements DateApi<moment.Moment> {
|
|
|
340
353
|
/**
|
|
341
354
|
* Type that represents creation of DateApiObject for moment
|
|
342
355
|
*/
|
|
343
|
-
export declare const momentDateApiObjectType: DateApiObjectCtor<
|
|
356
|
+
export declare const momentDateApiObjectType: DateApiObjectCtor<moment.Moment, MomentDateApiObject>;
|
|
344
357
|
/**
|
|
345
358
|
* Injection token used for injecting type that creates instance of DateApiObject for moment
|
|
346
359
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"momentDateApi.service.d.ts","sourceRoot":"","sources":["momentDateApi.service.ts"],"names":[],"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,eAAO,MAAM,uBAAuB,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAuB,CAAC;AAElH;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,aAIzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anglr/datetime",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.20221223060503",
|
|
4
4
|
"description": "Angular library for datetime manipulation components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"doc:api:date-fns": "copyfiles -u 2 date-fns/temp/datetime-date-fns.api.md docs/content/api/ng-datetime-date-fns && rimraf date-fns/temp"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": "^14.
|
|
45
|
+
"node": "^14.20.0 || ^16.13.0 || >=18.10.0",
|
|
46
46
|
"npm": "^6.10.0"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
@@ -62,52 +62,52 @@
|
|
|
62
62
|
},
|
|
63
63
|
"homepage": "https://github.com/ressurectit/ng-datetime",
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@angular/core": ">=
|
|
66
|
-
"@angular/common": ">=
|
|
67
|
-
"@angular/forms": ">=
|
|
68
|
-
"@angular/animations": ">=
|
|
65
|
+
"@angular/core": ">=15.0.4",
|
|
66
|
+
"@angular/common": ">=15.0.4",
|
|
67
|
+
"@angular/forms": ">=15.0.4",
|
|
68
|
+
"@angular/animations": ">=15.0.4",
|
|
69
69
|
"rxjs": ">=7.5.6",
|
|
70
|
-
"@jscrpt/common": ">=3.
|
|
71
|
-
"@anglr/common": ">=
|
|
70
|
+
"@jscrpt/common": ">=3.3.0",
|
|
71
|
+
"@anglr/common": ">=15.0.1",
|
|
72
72
|
"moment": "^2.29.4",
|
|
73
73
|
"date-fns": "^2.29.3",
|
|
74
|
-
"tslib": "^2.4.
|
|
74
|
+
"tslib": "^2.4.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@angular/core": "^
|
|
78
|
-
"@angular/common": "^
|
|
79
|
-
"@angular/forms": "^
|
|
80
|
-
"@angular/animations": "^
|
|
77
|
+
"@angular/core": "^15.0.4",
|
|
78
|
+
"@angular/common": "^15.0.4",
|
|
79
|
+
"@angular/forms": "^15.0.4",
|
|
80
|
+
"@angular/animations": "^15.0.4",
|
|
81
81
|
"rxjs": "^7.5.6",
|
|
82
|
-
"@jscrpt/common": "^3.
|
|
83
|
-
"@anglr/common": "^
|
|
82
|
+
"@jscrpt/common": "^3.3.0",
|
|
83
|
+
"@anglr/common": "^15.0.1",
|
|
84
84
|
"@types/node": "14.14.31",
|
|
85
85
|
"moment": "^2.29.4",
|
|
86
86
|
"date-fns": "^2.29.3",
|
|
87
|
-
"@angular/compiler-cli": "^
|
|
88
|
-
"@angular/compiler": "^
|
|
89
|
-
"@angular/language-service": "^
|
|
87
|
+
"@angular/compiler-cli": "^15.0.4",
|
|
88
|
+
"@angular/compiler": "^15.0.4",
|
|
89
|
+
"@angular/language-service": "^15.0.4",
|
|
90
90
|
"@microsoft/api-extractor": "7.19.2",
|
|
91
91
|
"@microsoft/api-documenter": "7.13.77",
|
|
92
|
-
"tslib": "2.4.
|
|
92
|
+
"tslib": "2.4.1",
|
|
93
93
|
"eslint": "7.32.0",
|
|
94
94
|
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
95
95
|
"@typescript-eslint/parser": "4.33.0",
|
|
96
96
|
"eslint-plugin-ressurectit": "0.1.0",
|
|
97
97
|
"eslint-plugin-jest": "26.1.1",
|
|
98
|
-
"jest": "29.
|
|
98
|
+
"jest": "29.3.1",
|
|
99
99
|
"ts-jest": "29.0.3",
|
|
100
|
-
"jest-preset-angular": "12.2.
|
|
101
|
-
"@types/jest": "29.
|
|
102
|
-
"zone.js": "0.
|
|
103
|
-
"@angular/platform-browser-dynamic": "^
|
|
104
|
-
"@angular/platform-browser": "^
|
|
100
|
+
"jest-preset-angular": "12.2.3",
|
|
101
|
+
"@types/jest": "29.2.4",
|
|
102
|
+
"zone.js": "0.12.0",
|
|
103
|
+
"@angular/platform-browser-dynamic": "^15.0.4",
|
|
104
|
+
"@angular/platform-browser": "^15.0.4",
|
|
105
105
|
"@anglr/animations": "^9.1.0",
|
|
106
106
|
"rimraf": "3.0.2",
|
|
107
107
|
"copyfiles": "2.4.1",
|
|
108
|
-
"replace-in-file": "6.3.
|
|
108
|
+
"replace-in-file": "6.3.5",
|
|
109
109
|
"path-exists-cli": "2.0.0",
|
|
110
|
-
"typescript": "4.
|
|
110
|
+
"typescript": "4.8.4",
|
|
111
111
|
"npm-git-version": "2.0.0"
|
|
112
112
|
},
|
|
113
113
|
"esm2020": "./es2020/src/index.js",
|
|
@@ -125,15 +125,6 @@
|
|
|
125
125
|
"./styles/themes/*": {
|
|
126
126
|
"sass": "./styles/themes/*.scss"
|
|
127
127
|
},
|
|
128
|
-
"./src/theme.scss": {
|
|
129
|
-
"sass": "./src/theme.scss"
|
|
130
|
-
},
|
|
131
|
-
"./src/dark.scss": {
|
|
132
|
-
"sass": "./src/dark.scss"
|
|
133
|
-
},
|
|
134
|
-
"./src/default.scss": {
|
|
135
|
-
"sass": "./src/default.scss"
|
|
136
|
-
},
|
|
137
128
|
".": {
|
|
138
129
|
"types": "./src/index.d.ts",
|
|
139
130
|
"esm2020": "./es2020/src/index.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC;AACxE,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "../../modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive";
|
|
3
|
+
import * as i2 from "../../modules/dateTime/directives/dateTimeInput/dateTimeInput.directive";
|
|
4
|
+
/**
|
|
5
|
+
* Directive that combines date picker with simple date time input
|
|
6
|
+
*/
|
|
7
|
+
export declare class DatePickerInputSADirective {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerInputSADirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatePickerInputSADirective, "input[dateTime][simpleDatePickerInput]", never, {}, {}, never, never, true, [{ directive: typeof i1.DateTimePickerSADirective; inputs: { "withPickerOptions": "withPickerOptions"; "pickerOptions": "pickerOptions"; }; outputs: {}; }, { directive: typeof i2.DateTimeInputSADirective; inputs: {}; outputs: {}; }]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=simpleDatePickerInput.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleDatePickerInput.directive.d.ts","sourceRoot":"","sources":["simpleDatePickerInput.directive.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,qBAmBa,0BAA0B;yCAA1B,0BAA0B;2CAA1B,0BAA0B;CAEtC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateTimePickerSADirective, DateTimeSADirective } from '../../modules';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Directive that sets up usage of date time picker to use time format and time picker
|
|
5
5
|
*/
|
|
6
6
|
export declare class WithTimeSADirective<TDate = unknown> {
|
|
7
|
-
constructor(picker:
|
|
7
|
+
constructor(picker: DateTimePickerSADirective<TDate>, dateTime: DateTimeSADirective<TDate>);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<WithTimeSADirective<any>, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WithTimeSADirective<any>, "[dateTime][withPicker][withTime]", never, {}, {}, never, never, true>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WithTimeSADirective<any>, "[dateTime][withPicker][withTime]", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=withTime.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTime.directive.d.ts","sourceRoot":"","sources":["withTime.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,
|
|
1
|
+
{"version":3,"file":"withTime.directive.d.ts","sourceRoot":"","sources":["withTime.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,yBAAyB,EAAuE,mBAAmB,EAAC,MAAM,eAAe,CAAC;;AAE/K;;GAEG;AACH,qBAKa,mBAAmB,CAAC,KAAK,GAAG,OAAO;gBAGhC,MAAM,EAAE,yBAAyB,CAAC,KAAK,CAAC,EACxC,QAAQ,EAAE,mBAAmB,CAAC,KAAK,CAAC;yCAJvC,mBAAmB;2CAAnB,mBAAmB;CAmB/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimeInputSADirective } from '../../modules';
|
|
3
3
|
import { DateApi } from '../../services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -10,12 +10,12 @@ export declare class WithTodaySADirective<TDate = unknown> implements OnDestroy
|
|
|
10
10
|
* Subscriptions created during initialization
|
|
11
11
|
*/
|
|
12
12
|
private _initSubscriptions;
|
|
13
|
-
constructor(input:
|
|
13
|
+
constructor(input: DateTimeInputSADirective<TDate>, dateApi: DateApi<TDate>);
|
|
14
14
|
/**
|
|
15
15
|
* Called when component is destroyed
|
|
16
16
|
*/
|
|
17
17
|
ngOnDestroy(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<WithTodaySADirective<any>, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<WithTodaySADirective<any>, "[dateTime][withToday]", never, {}, {}, never, never, true>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WithTodaySADirective<any>, "[dateTime][withToday]", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=withToday.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withToday.directive.d.ts","sourceRoot":"","sources":["withToday.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAC,MAAM,eAAe,CAAC;AAI3D,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"withToday.directive.d.ts","sourceRoot":"","sources":["withToday.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAC,MAAM,eAAe,CAAC;AAI3D,OAAO,EAAC,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAEvC;;GAEG;AACH,qBAKa,oBAAoB,CAAC,KAAK,GAAG,OAAO,CAAE,YAAW,SAAS;IAInE;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAoC;gBAGlD,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAarD;;OAEG;IACI,WAAW,IAAI,IAAI;yCA3BjB,oBAAoB;2CAApB,oBAAoB;CA+BhC"}
|
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
export * from './directives';
|
|
2
2
|
export * from './interfaces';
|
|
3
|
-
export * from './legacy/picker/directives';
|
|
4
|
-
export * from './legacy/picker/interfaces';
|
|
5
|
-
export * from './legacy/picker/modules/picker.module';
|
|
6
|
-
export * from './legacy/picker/types';
|
|
7
|
-
export * from './legacy/selector/interfaces';
|
|
8
|
-
export * from './legacy/selector/modules/basicSelector.module';
|
|
9
|
-
export * from './legacy/selector/modules/selector.module';
|
|
10
|
-
export * from './legacy/selector/types';
|
|
11
3
|
export * from './misc/constants';
|
|
12
4
|
export * from './misc/enums';
|
|
13
5
|
export * from './misc/tokens';
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Represents datetime value as period
|
|
3
3
|
*/
|
|
4
|
-
export interface DateTimeValue<TDate =
|
|
4
|
+
export interface DateTimeValue<TDate = unknown> {
|
|
5
5
|
/**
|
|
6
6
|
* Starting date and time of period
|
|
7
7
|
*/
|
|
@@ -11,25 +11,4 @@ export interface DateTimeValue<TDate = any> {
|
|
|
11
11
|
*/
|
|
12
12
|
to: TDate | undefined | null;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents object that holds data for identification of validity of date time
|
|
16
|
-
*/
|
|
17
|
-
export interface DateTimeValueObject<TDate = any> {
|
|
18
|
-
/**
|
|
19
|
-
* Current value of datetime
|
|
20
|
-
*/
|
|
21
|
-
readonly value: DateTimeValue<TDate> | null;
|
|
22
|
-
/**
|
|
23
|
-
* Indicaiton whether is current value valid, empty value is valid
|
|
24
|
-
*/
|
|
25
|
-
readonly valid: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Minimal possible value, that can be
|
|
28
|
-
*/
|
|
29
|
-
readonly minValue: TDate | null;
|
|
30
|
-
/**
|
|
31
|
-
* Maximal possible value, that can be
|
|
32
|
-
*/
|
|
33
|
-
readonly maxValue: TDate | null;
|
|
34
|
-
}
|
|
35
14
|
//# sourceMappingURL=datetime.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.interface.d.ts","sourceRoot":"","sources":["datetime.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"datetime.interface.d.ts","sourceRoot":"","sources":["datetime.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,KAAK,GAAG,OAAO;IAE1C;;OAEG;IACH,IAAI,EAAE,KAAK,GAAC,SAAS,GAAC,IAAI,CAAC;IAE3B;;OAEG;IACH,EAAE,EAAE,KAAK,GAAC,SAAS,GAAC,IAAI,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picker.component.animations.d.ts","sourceRoot":"","sources":["picker.component.animations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"picker.component.animations.d.ts","sourceRoot":"","sources":["picker.component.animations.ts"],"names":[],"mappings":""}
|