@anglr/datetime 1.0.0 → 2.0.1-beta.20220222061608
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 +19 -0
- package/date-fns/package.json +7 -7
- package/date-fns/src/{date-fns.d.ts → index.d.ts} +4 -4
- package/date-fns/src/index.d.ts.map +1 -0
- package/date-fns/src/misc/tokens.d.ts +10 -10
- package/date-fns/src/services/dateFnsDateApi.service.d.ts +36 -33
- package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
- package/date-fns/src/services/dateFnsLocale.service.d.ts +10 -10
- package/es2015/date-fns/src/index.js +4 -0
- package/es2015/date-fns/src/index.js.map +1 -0
- package/es2015/date-fns/src/misc/tokens.js +20 -0
- package/es2015/date-fns/src/misc/tokens.js.map +1 -0
- package/es2015/date-fns/src/services/dateFnsDateApi.service.js +438 -0
- package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -0
- package/es2015/date-fns/src/services/dateFnsLocale.service.js +2 -0
- package/es2015/date-fns/src/services/dateFnsLocale.service.js.map +1 -0
- package/es2015/karma.conf.js +57 -0
- package/es2015/karma.conf.js.map +1 -0
- package/{moment/src/moment.d.ts → es2015/moment/src/index.js} +3 -3
- package/es2015/moment/src/index.js.map +1 -0
- package/es2015/moment/src/misc/tokens.js +15 -0
- package/es2015/moment/src/misc/tokens.js.map +1 -0
- package/es2015/moment/src/services/momentDateApi.service.js +398 -0
- package/es2015/moment/src/services/momentDateApi.service.js.map +1 -0
- package/{src/datetime.d.ts → es2015/src/index.js} +19 -19
- package/es2015/src/index.js.map +1 -0
- package/es2015/src/misc/constants.js +33 -0
- package/es2015/src/misc/constants.js.map +1 -0
- package/es2015/src/misc/datetime.interface.js +2 -0
- package/es2015/src/misc/datetime.interface.js.map +1 -0
- package/es2015/src/misc/tokens.js +19 -0
- package/es2015/src/misc/tokens.js.map +1 -0
- package/es2015/src/misc/validators.js +58 -0
- package/es2015/src/misc/validators.js.map +1 -0
- package/es2015/src/modules/datePipes.module.js +33 -0
- package/es2015/src/modules/datePipes.module.js.map +1 -0
- package/es2015/src/picker/components/dayPicker/dayPicker.component.js +172 -0
- package/es2015/src/picker/components/dayPicker/dayPicker.component.js.map +1 -0
- package/es2015/src/picker/components/dayPicker/dayPicker.interfaces.js +2 -0
- package/es2015/src/picker/components/dayPicker/dayPicker.interfaces.js.map +1 -0
- package/es2015/src/picker/components/monthPicker/monthPicker.component.js +114 -0
- package/es2015/src/picker/components/monthPicker/monthPicker.component.js.map +1 -0
- package/es2015/src/picker/components/monthPicker/monthPicker.interfaces.js +2 -0
- package/es2015/src/picker/components/monthPicker/monthPicker.interfaces.js.map +1 -0
- package/es2015/src/picker/components/picker/picker.component.animations.js +71 -0
- package/es2015/src/picker/components/picker/picker.component.animations.js.map +1 -0
- package/es2015/src/picker/components/picker/picker.component.js +241 -0
- package/es2015/src/picker/components/picker/picker.component.js.map +1 -0
- package/es2015/src/picker/components/pickerBase.component.js +243 -0
- package/es2015/src/picker/components/pickerBase.component.js.map +1 -0
- package/es2015/src/picker/components/yearPicker/yearPicker.component.js +126 -0
- package/es2015/src/picker/components/yearPicker/yearPicker.component.js.map +1 -0
- package/es2015/src/picker/components/yearPicker/yearPicker.interfaces.js +2 -0
- package/es2015/src/picker/components/yearPicker/yearPicker.interfaces.js.map +1 -0
- package/es2015/src/picker/interfaces.js +5 -0
- package/es2015/src/picker/interfaces.js.map +1 -0
- package/es2015/src/picker/misc/datetimePicker.interface.js +2 -0
- package/es2015/src/picker/misc/datetimePicker.interface.js.map +1 -0
- package/es2015/src/picker/misc/tokens.js +6 -0
- package/es2015/src/picker/misc/tokens.js.map +1 -0
- package/es2015/src/picker/modules/picker.module.js +46 -0
- package/es2015/src/picker/modules/picker.module.js.map +1 -0
- package/es2015/src/picker/types.js +8 -0
- package/es2015/src/picker/types.js.map +1 -0
- package/es2015/src/pipes/asRequiredType.js +22 -0
- package/es2015/src/pipes/asRequiredType.js.map +1 -0
- package/es2015/src/pipes/dateConvert.pipe.js +35 -0
- package/es2015/src/pipes/dateConvert.pipe.js.map +1 -0
- package/es2015/src/pipes/dateFormat.pipe.js +45 -0
- package/es2015/src/pipes/dateFormat.pipe.js.map +1 -0
- package/es2015/src/selector/components/inputDateTime/inputDateTime.component.js +421 -0
- package/es2015/src/selector/components/inputDateTime/inputDateTime.component.js.map +1 -0
- package/es2015/src/selector/components/selector/selector.component.animations.js +15 -0
- package/es2015/src/selector/components/selector/selector.component.animations.js.map +1 -0
- package/es2015/src/selector/components/selector/selector.component.js +344 -0
- package/es2015/src/selector/components/selector/selector.component.js.map +1 -0
- package/es2015/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +317 -0
- package/es2015/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -0
- package/es2015/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +51 -0
- package/es2015/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +1 -0
- package/es2015/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +51 -0
- package/es2015/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +1 -0
- package/es2015/src/selector/directives/datetimeValidator/datetimeValidator.directive.js +47 -0
- package/es2015/src/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +1 -0
- package/es2015/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +119 -0
- package/es2015/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +1 -0
- package/es2015/src/selector/interfaces.js +2 -0
- package/es2015/src/selector/interfaces.js.map +1 -0
- package/es2015/src/selector/misc/datetimeSelector.interface.js +2 -0
- package/es2015/src/selector/misc/datetimeSelector.interface.js.map +1 -0
- package/es2015/src/selector/misc/tokens.js +6 -0
- package/es2015/src/selector/misc/tokens.js.map +1 -0
- package/es2015/src/selector/modules/basicSelector.module.js +20 -0
- package/es2015/src/selector/modules/basicSelector.module.js.map +1 -0
- package/es2015/src/selector/modules/selector.module.js +60 -0
- package/es2015/src/selector/modules/selector.module.js.map +1 -0
- package/es2015/src/selector/types.js +10 -0
- package/es2015/src/selector/types.js.map +1 -0
- package/es2015/src/services/dateApi.interface.js +2 -0
- package/es2015/src/services/dateApi.interface.js.map +1 -0
- package/es2015/src/services/datePositionParser.interface.js +2 -0
- package/es2015/src/services/datePositionParser.interface.js.map +1 -0
- package/es2015/src/services/datePositionParser.service.js +227 -0
- package/es2015/src/services/datePositionParser.service.js.map +1 -0
- package/es2015/src/services/dateTimeRelativeParser.service.js +66 -0
- package/es2015/src/services/dateTimeRelativeParser.service.js.map +1 -0
- package/es2015/src/services/dateValueProvider.service.js +58 -0
- package/es2015/src/services/dateValueProvider.service.js.map +1 -0
- package/es2015/src/services/formatProvider.interface.js +2 -0
- package/es2015/src/services/formatProvider.interface.js.map +1 -0
- package/es2015/src/services/index.js +4 -0
- package/es2015/src/services/index.js.map +1 -0
- package/es2020/date-fns/src/index.js +4 -0
- package/es2020/date-fns/src/index.js.map +1 -0
- package/es2020/date-fns/src/misc/tokens.js +20 -0
- package/es2020/date-fns/src/misc/tokens.js.map +1 -0
- package/es2020/date-fns/src/services/dateFnsDateApi.service.js +437 -0
- package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -0
- package/es2020/date-fns/src/services/dateFnsLocale.service.js +2 -0
- package/es2020/date-fns/src/services/dateFnsLocale.service.js.map +1 -0
- package/es2020/karma.conf.js +57 -0
- package/es2020/karma.conf.js.map +1 -0
- package/es2020/moment/src/index.js +3 -0
- package/es2020/moment/src/index.js.map +1 -0
- package/es2020/moment/src/misc/tokens.js +15 -0
- package/es2020/moment/src/misc/tokens.js.map +1 -0
- package/es2020/moment/src/services/momentDateApi.service.js +398 -0
- package/es2020/moment/src/services/momentDateApi.service.js.map +1 -0
- package/es2020/src/index.js +19 -0
- package/es2020/src/index.js.map +1 -0
- package/es2020/src/misc/constants.js +33 -0
- package/es2020/src/misc/constants.js.map +1 -0
- package/es2020/src/misc/datetime.interface.js +2 -0
- package/es2020/src/misc/datetime.interface.js.map +1 -0
- package/es2020/src/misc/tokens.js +19 -0
- package/es2020/src/misc/tokens.js.map +1 -0
- package/es2020/src/misc/validators.js +58 -0
- package/es2020/src/misc/validators.js.map +1 -0
- package/es2020/src/modules/datePipes.module.js +33 -0
- package/es2020/src/modules/datePipes.module.js.map +1 -0
- package/es2020/src/picker/components/dayPicker/dayPicker.component.js +172 -0
- package/es2020/src/picker/components/dayPicker/dayPicker.component.js.map +1 -0
- package/es2020/src/picker/components/dayPicker/dayPicker.interfaces.js +2 -0
- package/es2020/src/picker/components/dayPicker/dayPicker.interfaces.js.map +1 -0
- package/es2020/src/picker/components/monthPicker/monthPicker.component.js +114 -0
- package/es2020/src/picker/components/monthPicker/monthPicker.component.js.map +1 -0
- package/es2020/src/picker/components/monthPicker/monthPicker.interfaces.js +2 -0
- package/es2020/src/picker/components/monthPicker/monthPicker.interfaces.js.map +1 -0
- package/es2020/src/picker/components/picker/picker.component.animations.js +71 -0
- package/es2020/src/picker/components/picker/picker.component.animations.js.map +1 -0
- package/es2020/src/picker/components/picker/picker.component.js +236 -0
- package/es2020/src/picker/components/picker/picker.component.js.map +1 -0
- package/es2020/src/picker/components/pickerBase.component.js +243 -0
- package/es2020/src/picker/components/pickerBase.component.js.map +1 -0
- package/es2020/src/picker/components/yearPicker/yearPicker.component.js +126 -0
- package/es2020/src/picker/components/yearPicker/yearPicker.component.js.map +1 -0
- package/es2020/src/picker/components/yearPicker/yearPicker.interfaces.js +2 -0
- package/es2020/src/picker/components/yearPicker/yearPicker.interfaces.js.map +1 -0
- package/es2020/src/picker/interfaces.js +5 -0
- package/es2020/src/picker/interfaces.js.map +1 -0
- package/es2020/src/picker/misc/datetimePicker.interface.js +2 -0
- package/es2020/src/picker/misc/datetimePicker.interface.js.map +1 -0
- package/es2020/src/picker/misc/tokens.js +6 -0
- package/es2020/src/picker/misc/tokens.js.map +1 -0
- package/es2020/src/picker/modules/picker.module.js +46 -0
- package/es2020/src/picker/modules/picker.module.js.map +1 -0
- package/es2020/src/picker/types.js +8 -0
- package/es2020/src/picker/types.js.map +1 -0
- package/es2020/src/pipes/asRequiredType.js +22 -0
- package/es2020/src/pipes/asRequiredType.js.map +1 -0
- package/es2020/src/pipes/dateConvert.pipe.js +35 -0
- package/es2020/src/pipes/dateConvert.pipe.js.map +1 -0
- package/es2020/src/pipes/dateFormat.pipe.js +45 -0
- package/es2020/src/pipes/dateFormat.pipe.js.map +1 -0
- package/es2020/src/selector/components/inputDateTime/inputDateTime.component.js +417 -0
- package/es2020/src/selector/components/inputDateTime/inputDateTime.component.js.map +1 -0
- package/es2020/src/selector/components/selector/selector.component.animations.js +15 -0
- package/es2020/src/selector/components/selector/selector.component.animations.js.map +1 -0
- package/es2020/src/selector/components/selector/selector.component.js +334 -0
- package/es2020/src/selector/components/selector/selector.component.js.map +1 -0
- package/es2020/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +314 -0
- package/es2020/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -0
- package/es2020/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +51 -0
- package/es2020/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +1 -0
- package/es2020/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +51 -0
- package/es2020/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +1 -0
- package/es2020/src/selector/directives/datetimeValidator/datetimeValidator.directive.js +47 -0
- package/es2020/src/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +1 -0
- package/es2020/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +118 -0
- package/es2020/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +1 -0
- package/es2020/src/selector/interfaces.js +2 -0
- package/es2020/src/selector/interfaces.js.map +1 -0
- package/es2020/src/selector/misc/datetimeSelector.interface.js +2 -0
- package/es2020/src/selector/misc/datetimeSelector.interface.js.map +1 -0
- package/es2020/src/selector/misc/tokens.js +6 -0
- package/es2020/src/selector/misc/tokens.js.map +1 -0
- package/es2020/src/selector/modules/basicSelector.module.js +20 -0
- package/es2020/src/selector/modules/basicSelector.module.js.map +1 -0
- package/es2020/src/selector/modules/selector.module.js +60 -0
- package/es2020/src/selector/modules/selector.module.js.map +1 -0
- package/es2020/src/selector/types.js +10 -0
- package/es2020/src/selector/types.js.map +1 -0
- package/es2020/src/services/dateApi.interface.js +2 -0
- package/es2020/src/services/dateApi.interface.js.map +1 -0
- package/es2020/src/services/datePositionParser.interface.js +2 -0
- package/es2020/src/services/datePositionParser.interface.js.map +1 -0
- package/es2020/src/services/datePositionParser.service.js +227 -0
- package/es2020/src/services/datePositionParser.service.js.map +1 -0
- package/es2020/src/services/dateTimeRelativeParser.service.js +65 -0
- package/es2020/src/services/dateTimeRelativeParser.service.js.map +1 -0
- package/es2020/src/services/dateValueProvider.service.js +58 -0
- package/es2020/src/services/dateValueProvider.service.js.map +1 -0
- package/es2020/src/services/formatProvider.interface.js +2 -0
- package/es2020/src/services/formatProvider.interface.js.map +1 -0
- package/es2020/src/services/index.js +4 -0
- package/es2020/src/services/index.js.map +1 -0
- package/karma.conf.d.ts +2 -0
- package/karma.conf.d.ts.map +1 -0
- package/moment/package.json +7 -7
- package/moment/src/index.d.ts +3 -0
- package/moment/src/index.d.ts.map +1 -0
- package/moment/src/misc/tokens.d.ts +5 -5
- package/moment/src/services/momentDateApi.service.d.ts +35 -32
- package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
- package/package.json +100 -48
- package/src/index.d.ts +19 -0
- package/src/index.d.ts.map +1 -0
- package/src/misc/constants.d.ts +32 -32
- package/src/misc/datetime.interface.d.ts +34 -34
- package/src/misc/tokens.d.ts +10 -10
- package/src/misc/validators.d.ts +25 -25
- package/src/modules/datePipes.module.d.ts +12 -5
- package/src/modules/datePipes.module.d.ts.map +1 -1
- package/src/picker/components/dayPicker/dayPicker.component.d.ts +68 -65
- package/src/picker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
- package/src/picker/components/dayPicker/dayPicker.component.html +7 -7
- package/src/picker/components/dayPicker/dayPicker.interfaces.d.ts +10 -10
- package/src/picker/components/monthPicker/monthPicker.component.d.ts +52 -49
- package/src/picker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
- package/src/picker/components/monthPicker/monthPicker.component.html +6 -6
- package/src/picker/components/monthPicker/monthPicker.interfaces.d.ts +6 -6
- package/src/picker/components/picker/picker.component.animations.d.ts +4 -4
- package/src/picker/components/picker/picker.component.d.ts +104 -101
- package/src/picker/components/picker/picker.component.d.ts.map +1 -1
- package/src/picker/components/pickerBase.component.d.ts +169 -166
- package/src/picker/components/pickerBase.component.d.ts.map +1 -1
- package/src/picker/components/yearPicker/yearPicker.component.d.ts +57 -54
- package/src/picker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
- package/src/picker/components/yearPicker/yearPicker.component.html +6 -6
- package/src/picker/components/yearPicker/yearPicker.interfaces.d.ts +6 -6
- package/src/picker/interfaces.d.ts +4 -4
- package/src/picker/misc/datetimePicker.interface.d.ts +188 -188
- package/src/picker/misc/tokens.d.ts +6 -6
- package/src/picker/modules/picker.module.d.ts +16 -5
- package/src/picker/modules/picker.module.d.ts.map +1 -1
- package/src/picker/types.d.ts +7 -7
- package/src/pipes/asRequiredType.d.ts +21 -0
- package/src/pipes/asRequiredType.d.ts.map +1 -0
- package/src/pipes/dateConvert.pipe.d.ts +18 -15
- package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
- package/src/pipes/dateFormat.pipe.d.ts +20 -17
- package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
- package/src/selector/components/inputDateTime/inputDateTime.component.d.ts +187 -184
- package/src/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
- package/src/selector/components/selector/selector.component.animations.d.ts +4 -4
- package/src/selector/components/selector/selector.component.d.ts +155 -152
- package/src/selector/components/selector/selector.component.d.ts.map +1 -1
- package/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +170 -167
- package/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
- package/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +22 -19
- package/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +1 -1
- package/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +22 -19
- package/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +1 -1
- package/src/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +21 -18
- package/src/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +1 -1
- package/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +53 -50
- package/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +1 -1
- package/src/selector/interfaces.d.ts +1 -1
- package/src/selector/misc/datetimeSelector.interface.d.ts +82 -82
- package/src/selector/misc/tokens.d.ts +6 -6
- package/src/selector/modules/basicSelector.module.d.ts +10 -5
- package/src/selector/modules/basicSelector.module.d.ts.map +1 -1
- package/src/selector/modules/selector.module.d.ts +18 -5
- package/src/selector/modules/selector.module.d.ts.map +1 -1
- package/src/selector/types.d.ts +9 -9
- package/src/services/dateApi.interface.d.ts +275 -275
- package/src/services/datePositionParser.interface.d.ts +40 -40
- package/src/services/datePositionParser.service.d.ts +60 -57
- package/src/services/datePositionParser.service.d.ts.map +1 -1
- package/src/services/dateTimeRelativeParser.service.d.ts +21 -18
- package/src/services/dateTimeRelativeParser.service.d.ts.map +1 -1
- package/src/services/dateValueProvider.service.d.ts +18 -15
- package/src/services/dateValueProvider.service.d.ts.map +1 -1
- package/src/services/formatProvider.interface.d.ts +17 -17
- package/src/services/index.d.ts +3 -3
- package/tsconfig.karma.json +5 -6
- package/version.bak +1 -1
- package/appveyor.yml +0 -70
- package/date-fns/dist/es2015/date-fns/index.js +0 -10
- package/date-fns/dist/es2015/date-fns/public_api.js +0 -7
- package/date-fns/dist/es2015/date-fns/src/date-fns.js +0 -9
- package/date-fns/dist/es2015/date-fns/src/misc/tokens.js +0 -32
- package/date-fns/dist/es2015/date-fns/src/services/dateFnsDateApi.service.js +0 -512
- package/date-fns/dist/es2015/date-fns/src/services/dateFnsLocale.service.js +0 -18
- package/date-fns/dist/es5/date-fns/index.js +0 -10
- package/date-fns/dist/es5/date-fns/public_api.js +0 -7
- package/date-fns/dist/es5/date-fns/src/date-fns.js +0 -9
- package/date-fns/dist/es5/date-fns/src/misc/tokens.js +0 -32
- package/date-fns/dist/es5/date-fns/src/services/dateFnsDateApi.service.js +0 -902
- package/date-fns/dist/es5/date-fns/src/services/dateFnsLocale.service.js +0 -18
- package/date-fns/index.d.ts +0 -5
- package/date-fns/index.d.ts.map +0 -1
- package/date-fns/index.metadata.json +0 -1
- package/date-fns/public_api.d.ts +0 -2
- package/date-fns/public_api.d.ts.map +0 -1
- package/date-fns/src/date-fns.d.ts.map +0 -1
- package/date-fns/src/services/dateFnsDateApi.service.ngfactory.d.ts.map +0 -1
- package/datetime.d.ts +0 -7
- package/datetime.d.ts.map +0 -1
- package/datetime.metadata.json +0 -1
- package/dist/es2015/datetime.js +0 -10
- package/dist/es2015/public_api.js +0 -7
- package/dist/es2015/src/datetime.js +0 -24
- package/dist/es2015/src/misc/constants.js +0 -46
- package/dist/es2015/src/misc/datetime.interface.js +0 -52
- package/dist/es2015/src/misc/tokens.js +0 -29
- package/dist/es2015/src/misc/validators.js +0 -80
- package/dist/es2015/src/modules/datePipes.module.js +0 -26
- package/dist/es2015/src/picker/components/dayPicker/dayPicker.component.js +0 -215
- package/dist/es2015/src/picker/components/dayPicker/dayPicker.interfaces.js +0 -18
- package/dist/es2015/src/picker/components/monthPicker/monthPicker.component.js +0 -138
- package/dist/es2015/src/picker/components/monthPicker/monthPicker.interfaces.js +0 -11
- package/dist/es2015/src/picker/components/picker/picker.component.animations.js +0 -77
- package/dist/es2015/src/picker/components/picker/picker.component.js +0 -386
- package/dist/es2015/src/picker/components/pickerBase.component.js +0 -406
- package/dist/es2015/src/picker/components/yearPicker/yearPicker.component.js +0 -158
- package/dist/es2015/src/picker/components/yearPicker/yearPicker.interfaces.js +0 -11
- package/dist/es2015/src/picker/interfaces.js +0 -10
- package/dist/es2015/src/picker/misc/datetimePicker.interface.js +0 -245
- package/dist/es2015/src/picker/misc/tokens.js +0 -12
- package/dist/es2015/src/picker/modules/picker.module.js +0 -35
- package/dist/es2015/src/picker/types.js +0 -13
- package/dist/es2015/src/pipes/dateConvert.pipe.js +0 -50
- package/dist/es2015/src/pipes/dateFormat.pipe.js +0 -64
- package/dist/es2015/src/selector/components/inputDateTime/inputDateTime.component.js +0 -588
- package/dist/es2015/src/selector/components/selector/selector.component.animations.js +0 -21
- package/dist/es2015/src/selector/components/selector/selector.component.js +0 -514
- package/dist/es2015/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +0 -456
- package/dist/es2015/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -73
- package/dist/es2015/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -73
- package/dist/es2015/src/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -70
- package/dist/es2015/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -171
- package/dist/es2015/src/selector/interfaces.js +0 -7
- package/dist/es2015/src/selector/misc/datetimeSelector.interface.js +0 -106
- package/dist/es2015/src/selector/misc/tokens.js +0 -12
- package/dist/es2015/src/selector/modules/basicSelector.module.js +0 -20
- package/dist/es2015/src/selector/modules/selector.module.js +0 -45
- package/dist/es2015/src/selector/types.js +0 -15
- package/dist/es2015/src/services/dateApi.interface.js +0 -316
- package/dist/es2015/src/services/datePositionParser.interface.js +0 -56
- package/dist/es2015/src/services/datePositionParser.service.js +0 -297
- package/dist/es2015/src/services/dateTimeRelativeParser.service.js +0 -97
- package/dist/es2015/src/services/dateValueProvider.service.js +0 -79
- package/dist/es2015/src/services/formatProvider.interface.js +0 -28
- package/dist/es2015/src/services/index.js +0 -9
- package/dist/es5/datetime.js +0 -10
- package/dist/es5/public_api.js +0 -7
- package/dist/es5/src/datetime.js +0 -24
- package/dist/es5/src/misc/constants.js +0 -46
- package/dist/es5/src/misc/datetime.interface.js +0 -52
- package/dist/es5/src/misc/tokens.js +0 -29
- package/dist/es5/src/misc/validators.js +0 -124
- package/dist/es5/src/modules/datePipes.module.js +0 -30
- package/dist/es5/src/picker/components/dayPicker/dayPicker.component.js +0 -323
- package/dist/es5/src/picker/components/dayPicker/dayPicker.interfaces.js +0 -18
- package/dist/es5/src/picker/components/monthPicker/monthPicker.component.js +0 -233
- package/dist/es5/src/picker/components/monthPicker/monthPicker.interfaces.js +0 -11
- package/dist/es5/src/picker/components/picker/picker.component.animations.js +0 -77
- package/dist/es5/src/picker/components/picker/picker.component.js +0 -460
- package/dist/es5/src/picker/components/pickerBase.component.js +0 -561
- package/dist/es5/src/picker/components/yearPicker/yearPicker.component.js +0 -253
- package/dist/es5/src/picker/components/yearPicker/yearPicker.interfaces.js +0 -11
- package/dist/es5/src/picker/interfaces.js +0 -10
- package/dist/es5/src/picker/misc/datetimePicker.interface.js +0 -245
- package/dist/es5/src/picker/misc/tokens.js +0 -12
- package/dist/es5/src/picker/modules/picker.module.js +0 -39
- package/dist/es5/src/picker/types.js +0 -13
- package/dist/es5/src/pipes/dateConvert.pipe.js +0 -63
- package/dist/es5/src/pipes/dateFormat.pipe.js +0 -79
- package/dist/es5/src/selector/components/inputDateTime/inputDateTime.component.js +0 -808
- package/dist/es5/src/selector/components/selector/selector.component.animations.js +0 -21
- package/dist/es5/src/selector/components/selector/selector.component.js +0 -653
- package/dist/es5/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +0 -656
- package/dist/es5/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -84
- package/dist/es5/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -84
- package/dist/es5/src/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -82
- package/dist/es5/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -230
- package/dist/es5/src/selector/interfaces.js +0 -7
- package/dist/es5/src/selector/misc/datetimeSelector.interface.js +0 -106
- package/dist/es5/src/selector/misc/tokens.js +0 -12
- package/dist/es5/src/selector/modules/basicSelector.module.js +0 -24
- package/dist/es5/src/selector/modules/selector.module.js +0 -49
- package/dist/es5/src/selector/types.js +0 -15
- package/dist/es5/src/services/dateApi.interface.js +0 -316
- package/dist/es5/src/services/datePositionParser.interface.js +0 -56
- package/dist/es5/src/services/datePositionParser.service.js +0 -366
- package/dist/es5/src/services/dateTimeRelativeParser.service.js +0 -108
- package/dist/es5/src/services/dateValueProvider.service.js +0 -92
- package/dist/es5/src/services/formatProvider.interface.js +0 -28
- package/dist/es5/src/services/index.js +0 -9
- package/moment/dist/es2015/moment/index.js +0 -10
- package/moment/dist/es2015/moment/public_api.js +0 -7
- package/moment/dist/es2015/moment/src/misc/tokens.js +0 -26
- package/moment/dist/es2015/moment/src/moment.js +0 -8
- package/moment/dist/es2015/moment/src/services/momentDateApi.service.js +0 -466
- package/moment/dist/es5/moment/index.js +0 -10
- package/moment/dist/es5/moment/public_api.js +0 -7
- package/moment/dist/es5/moment/src/misc/tokens.js +0 -26
- package/moment/dist/es5/moment/src/moment.js +0 -8
- package/moment/dist/es5/moment/src/services/momentDateApi.service.js +0 -858
- package/moment/index.d.ts +0 -5
- package/moment/index.d.ts.map +0 -1
- package/moment/index.metadata.json +0 -1
- package/moment/public_api.d.ts +0 -2
- package/moment/public_api.d.ts.map +0 -1
- package/moment/src/moment.d.ts.map +0 -1
- package/moment/src/services/momentDateApi.service.ngfactory.d.ts.map +0 -1
- package/public_api.d.ts +0 -2
- package/public_api.d.ts.map +0 -1
- package/src/datetime.d.ts.map +0 -1
- package/src/modules/datePipes.module.ngfactory.d.ts.map +0 -1
- package/src/picker/components/dayPicker/dayPicker.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/picker/components/dayPicker/dayPicker.component.ngfactory.d.ts.map +0 -1
- package/src/picker/components/monthPicker/monthPicker.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/picker/components/monthPicker/monthPicker.component.ngfactory.d.ts.map +0 -1
- package/src/picker/components/picker/picker.component.ngfactory.d.ts.map +0 -1
- package/src/picker/components/yearPicker/yearPicker.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/picker/components/yearPicker/yearPicker.component.ngfactory.d.ts.map +0 -1
- package/src/picker/modules/picker.module.ngfactory.d.ts.map +0 -1
- package/src/pipes/dateConvert.pipe.ngfactory.d.ts.map +0 -1
- package/src/pipes/dateFormat.pipe.ngfactory.d.ts.map +0 -1
- package/src/selector/components/inputDateTime/inputDateTime.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/selector/components/inputDateTime/inputDateTime.component.ngfactory.d.ts.map +0 -1
- package/src/selector/components/selector/selector.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/selector/components/selector/selector.component.ngfactory.d.ts.map +0 -1
- package/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/selector/components/simpleInputDateTime/simpleInputDateTime.component.ngfactory.d.ts.map +0 -1
- package/src/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.ngfactory.d.ts.map +0 -1
- package/src/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.ngfactory.d.ts.map +0 -1
- package/src/selector/directives/datetimeValidator/datetimeValidator.directive.ngfactory.d.ts.map +0 -1
- package/src/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.ngfactory.d.ts.map +0 -1
- package/src/selector/modules/basicSelector.module.ngfactory.d.ts.map +0 -1
- package/src/selector/modules/selector.module.ngfactory.d.ts.map +0 -1
- package/src/services/datePositionParser.service.ngfactory.d.ts.map +0 -1
- package/src/services/dateTimeRelativeParser.service.ngfactory.d.ts.map +0 -1
- package/src/services/dateValueProvider.service.ngfactory.d.ts.map +0 -1
|
@@ -1,276 +1,276 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Date can be represented as formatted string, timestamp or javascript Date object
|
|
3
|
-
*/
|
|
4
|
-
export declare type DateValue = Date | string | number;
|
|
5
|
-
/**
|
|
6
|
-
* Instance of object wrapping TDate, allowing manipulation with it
|
|
7
|
-
*/
|
|
8
|
-
export interface DateApiObject<TDate = any> {
|
|
9
|
-
/**
|
|
10
|
-
* Original value that is not changed unless 'updateOriginal' is called
|
|
11
|
-
*/
|
|
12
|
-
readonly originalValue: TDate;
|
|
13
|
-
/**
|
|
14
|
-
* Instance of date
|
|
15
|
-
*/
|
|
16
|
-
readonly value: TDate;
|
|
17
|
-
/**
|
|
18
|
-
* Gets indication whether provided instance of date is valid
|
|
19
|
-
*/
|
|
20
|
-
isValid(): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Gets indication whether provided instance of date is weekend day
|
|
23
|
-
*/
|
|
24
|
-
isWeekend(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Formats date value
|
|
27
|
-
* @param format - Format token used for creating formatted string
|
|
28
|
-
*/
|
|
29
|
-
format(format: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* Updates value to start date and time of current decade
|
|
32
|
-
* @returns Itself for fluent API
|
|
33
|
-
*/
|
|
34
|
-
startOfDecade(): DateApiObject<TDate>;
|
|
35
|
-
/**
|
|
36
|
-
* Updates value to end date and time of current decade
|
|
37
|
-
* @returns Itself for fluent API
|
|
38
|
-
*/
|
|
39
|
-
endOfDecade(): DateApiObject<TDate>;
|
|
40
|
-
/**
|
|
41
|
-
* Updates value to start date and time of current year
|
|
42
|
-
* @returns Itself for fluent API
|
|
43
|
-
*/
|
|
44
|
-
startOfYear(): DateApiObject<TDate>;
|
|
45
|
-
/**
|
|
46
|
-
* Updates value to end date and time of current year
|
|
47
|
-
* @returns Itself for fluent API
|
|
48
|
-
*/
|
|
49
|
-
endOfYear(): DateApiObject<TDate>;
|
|
50
|
-
/**
|
|
51
|
-
* Add years, if count not specified adds 1 year
|
|
52
|
-
* @param count - Number of years count
|
|
53
|
-
* @returns Itself for fluent API
|
|
54
|
-
*/
|
|
55
|
-
addYears(count?: number): DateApiObject<TDate>;
|
|
56
|
-
/**
|
|
57
|
-
* Subtract years, if count not specified subtract 1 year
|
|
58
|
-
* @param count - Number of years count
|
|
59
|
-
* @returns Itself for fluent API
|
|
60
|
-
*/
|
|
61
|
-
subtractYears(count?: number): DateApiObject<TDate>;
|
|
62
|
-
/**
|
|
63
|
-
* Updates value to start date and time of current month
|
|
64
|
-
* @returns Itself for fluent API
|
|
65
|
-
*/
|
|
66
|
-
startOfMonth(): DateApiObject<TDate>;
|
|
67
|
-
/**
|
|
68
|
-
* Updates value to end date and time of current month
|
|
69
|
-
* @returns Itself for fluent API
|
|
70
|
-
*/
|
|
71
|
-
endOfMonth(): DateApiObject<TDate>;
|
|
72
|
-
/**
|
|
73
|
-
* Add months, if count not specified adds 1 month
|
|
74
|
-
* @param count - Number of months count
|
|
75
|
-
* @returns Itself for fluent API
|
|
76
|
-
*/
|
|
77
|
-
addMonths(count?: number): DateApiObject<TDate>;
|
|
78
|
-
/**
|
|
79
|
-
* Subtract months, if count not specified subtract 1 month
|
|
80
|
-
* @param count - Number of months count
|
|
81
|
-
* @returns Itself for fluent API
|
|
82
|
-
*/
|
|
83
|
-
subtractMonths(count?: number): DateApiObject<TDate>;
|
|
84
|
-
/**
|
|
85
|
-
* Updates value to start date and time of current week
|
|
86
|
-
* @returns Itself for fluent API
|
|
87
|
-
*/
|
|
88
|
-
startOfWeek(): DateApiObject<TDate>;
|
|
89
|
-
/**
|
|
90
|
-
* Updates value to end date and time of current week
|
|
91
|
-
* @returns Itself for fluent API
|
|
92
|
-
*/
|
|
93
|
-
endOfWeek(): DateApiObject<TDate>;
|
|
94
|
-
/**
|
|
95
|
-
* Add weeks, if count not specified adds 1 week
|
|
96
|
-
* @param count - Number of weeks count
|
|
97
|
-
* @returns Itself for fluent API
|
|
98
|
-
*/
|
|
99
|
-
addWeeks(count?: number): DateApiObject<TDate>;
|
|
100
|
-
/**
|
|
101
|
-
* Subtract weeks, if count not specified subtract 1 week
|
|
102
|
-
* @param count - Number of weeks count
|
|
103
|
-
* @returns Itself for fluent API
|
|
104
|
-
*/
|
|
105
|
-
subtractWeeks(count?: number): DateApiObject<TDate>;
|
|
106
|
-
/**
|
|
107
|
-
* Updates value to start date and time of current day
|
|
108
|
-
* @returns Itself for fluent API
|
|
109
|
-
*/
|
|
110
|
-
startOfDay(): DateApiObject<TDate>;
|
|
111
|
-
/**
|
|
112
|
-
* Updates value to end date and time of current day
|
|
113
|
-
* @returns Itself for fluent API
|
|
114
|
-
*/
|
|
115
|
-
endOfDay(): DateApiObject<TDate>;
|
|
116
|
-
/**
|
|
117
|
-
* Add days, if count not specified adds 1 day
|
|
118
|
-
* @param count - Number of days count
|
|
119
|
-
* @returns Itself for fluent API
|
|
120
|
-
*/
|
|
121
|
-
addDays(count?: number): DateApiObject<TDate>;
|
|
122
|
-
/**
|
|
123
|
-
* Subtract days, if count not specified subtract 1 day
|
|
124
|
-
* @param count - Number of days count
|
|
125
|
-
* @returns Itself for fluent API
|
|
126
|
-
*/
|
|
127
|
-
subtractDays(count?: number): DateApiObject<TDate>;
|
|
128
|
-
/**
|
|
129
|
-
* Gets number of days in month
|
|
130
|
-
*/
|
|
131
|
-
daysInMonth(): number;
|
|
132
|
-
/**
|
|
133
|
-
* Gets year
|
|
134
|
-
*/
|
|
135
|
-
year(): number;
|
|
136
|
-
/**
|
|
137
|
-
* Sets year
|
|
138
|
-
* @param year - Year to be set
|
|
139
|
-
*/
|
|
140
|
-
year(year: number): DateApiObject<TDate>;
|
|
141
|
-
/**
|
|
142
|
-
* Gets or sets year
|
|
143
|
-
* @param year - If specified, sets year
|
|
144
|
-
*/
|
|
145
|
-
year(year?: number): DateApiObject<TDate> | number;
|
|
146
|
-
/**
|
|
147
|
-
* Gets month
|
|
148
|
-
*/
|
|
149
|
-
month(): number;
|
|
150
|
-
/**
|
|
151
|
-
* Sets month
|
|
152
|
-
* @param month - Month to be set
|
|
153
|
-
*/
|
|
154
|
-
month(month: number): DateApiObject<TDate>;
|
|
155
|
-
/**
|
|
156
|
-
* Gets or sets month
|
|
157
|
-
* @param month - If specified, sets month
|
|
158
|
-
*/
|
|
159
|
-
month(month?: number): DateApiObject<TDate> | number;
|
|
160
|
-
/**
|
|
161
|
-
* Gets day of month one based
|
|
162
|
-
*/
|
|
163
|
-
dayOfMonth(): number;
|
|
164
|
-
/**
|
|
165
|
-
* Sets day of month one based
|
|
166
|
-
* @param day - Day of month to be set
|
|
167
|
-
*/
|
|
168
|
-
dayOfMonth(day: number): DateApiObject<TDate>;
|
|
169
|
-
/**
|
|
170
|
-
* Gets or sets day of month one based
|
|
171
|
-
* @param day - If specified, sets day of month
|
|
172
|
-
*/
|
|
173
|
-
dayOfMonth(day?: number): DateApiObject<TDate> | number;
|
|
174
|
-
/**
|
|
175
|
-
* Gets day of week zero based, first is monday
|
|
176
|
-
*/
|
|
177
|
-
dayOfWeek(): number;
|
|
178
|
-
/**
|
|
179
|
-
* Sets day of week zero based, first is monday
|
|
180
|
-
* @param day - Day of week to be set
|
|
181
|
-
*/
|
|
182
|
-
dayOfWeek(day: number): DateApiObject<TDate>;
|
|
183
|
-
/**
|
|
184
|
-
* Gets or sets day of week zero based, first is monday
|
|
185
|
-
* @param day - If specified, sets day of week
|
|
186
|
-
*/
|
|
187
|
-
dayOfWeek(day?: number): number | DateApiObject<TDate>;
|
|
188
|
-
/**
|
|
189
|
-
* Gets indication whether current value is before 'date'
|
|
190
|
-
* @param date - Date which is this date compared to
|
|
191
|
-
*/
|
|
192
|
-
isBefore(date: TDate): boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Gets indication whether current value is after 'date'
|
|
195
|
-
* @param date - Date which is this date compared to
|
|
196
|
-
*/
|
|
197
|
-
isAfter(date: TDate): boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Gets number of days between this and provided date
|
|
200
|
-
* @param date - Date which is used for computation of diff against
|
|
201
|
-
*/
|
|
202
|
-
diffDays(date: TDate): number;
|
|
203
|
-
/**
|
|
204
|
-
* Compares whether this date is same week as provided date
|
|
205
|
-
* @param date - Date which is used for comparison of same week
|
|
206
|
-
*/
|
|
207
|
-
isSameWeek(date: TDate): boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Compares whether this date is same decade as provided date
|
|
210
|
-
* @param date - Date which is used for comparison of same decade
|
|
211
|
-
*/
|
|
212
|
-
isSameDecade(date: TDate): boolean;
|
|
213
|
-
/**
|
|
214
|
-
* Compares whether this date is same year as provided date
|
|
215
|
-
* @param date - Date which is used for comparison of same year
|
|
216
|
-
*/
|
|
217
|
-
isSameYear(date: TDate): boolean;
|
|
218
|
-
/**
|
|
219
|
-
* Compares whether this date is same month as provided date
|
|
220
|
-
* @param date - Date which is used for comparison of same month
|
|
221
|
-
*/
|
|
222
|
-
isSameMonth(date: TDate): boolean;
|
|
223
|
-
/**
|
|
224
|
-
* Compares whether this date is same day as provided date
|
|
225
|
-
* @param date - Date which is used for comparison of same day
|
|
226
|
-
*/
|
|
227
|
-
isSameDay(date: TDate): boolean;
|
|
228
|
-
/**
|
|
229
|
-
* Creates clone of this instance, value and originalValue have same value and are cloned from value
|
|
230
|
-
*/
|
|
231
|
-
clone(): DateApiObject<TDate>;
|
|
232
|
-
/**
|
|
233
|
-
* Creates clone of this instance, value and originalValue have same value and are cloned from originalValue
|
|
234
|
-
*/
|
|
235
|
-
cloneOriginal(): DateApiObject<TDate>;
|
|
236
|
-
/**
|
|
237
|
-
* Updates originalValue, if value is not provided originalValue is set to value
|
|
238
|
-
* @param value - Value to be set as original, or null (value will be used as value)
|
|
239
|
-
* @returns Itself for fluent API
|
|
240
|
-
*/
|
|
241
|
-
updateOriginal(value?: TDate): DateApiObject<TDate>;
|
|
242
|
-
/**
|
|
243
|
-
* Changes value to same value as originalValue
|
|
244
|
-
* @returns Itself for fluent API
|
|
245
|
-
*/
|
|
246
|
-
resetOriginal(): DateApiObject<TDate>;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Date api abstraction, used for obtaining DateApi wrapper object
|
|
250
|
-
*/
|
|
251
|
-
export interface DateApi<TDate = any> {
|
|
252
|
-
/**
|
|
253
|
-
* Gets wrapping object used for manipulation
|
|
254
|
-
* @param value - Value to be converted (parsed) and used for manipulation
|
|
255
|
-
* @param format - Format string used for parsing string value
|
|
256
|
-
*/
|
|
257
|
-
getValue(value: DateValue | TDate, format?: string): DateApiObject<TDate>;
|
|
258
|
-
/**
|
|
259
|
-
* Gets wrapping object used for manipulation instantiated to current date and time
|
|
260
|
-
*/
|
|
261
|
-
now(): DateApiObject<TDate>;
|
|
262
|
-
/**
|
|
263
|
-
* Gets format string using pseudo format
|
|
264
|
-
* @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
|
|
265
|
-
*/
|
|
266
|
-
getFormat(pseudoFormat: string): string;
|
|
267
|
-
/**
|
|
268
|
-
* Gets information
|
|
269
|
-
*/
|
|
270
|
-
weekStartsOnMonday(): boolean;
|
|
271
|
-
/**
|
|
272
|
-
* Gets array of weekday names in short format, order of days is dependent on locale
|
|
273
|
-
*/
|
|
274
|
-
weekdaysShort(): string[];
|
|
275
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Date can be represented as formatted string, timestamp or javascript Date object
|
|
3
|
+
*/
|
|
4
|
+
export declare type DateValue = Date | string | number;
|
|
5
|
+
/**
|
|
6
|
+
* Instance of object wrapping TDate, allowing manipulation with it
|
|
7
|
+
*/
|
|
8
|
+
export interface DateApiObject<TDate = any> {
|
|
9
|
+
/**
|
|
10
|
+
* Original value that is not changed unless 'updateOriginal' is called
|
|
11
|
+
*/
|
|
12
|
+
readonly originalValue: TDate;
|
|
13
|
+
/**
|
|
14
|
+
* Instance of date
|
|
15
|
+
*/
|
|
16
|
+
readonly value: TDate;
|
|
17
|
+
/**
|
|
18
|
+
* Gets indication whether provided instance of date is valid
|
|
19
|
+
*/
|
|
20
|
+
isValid(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Gets indication whether provided instance of date is weekend day
|
|
23
|
+
*/
|
|
24
|
+
isWeekend(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Formats date value
|
|
27
|
+
* @param format - Format token used for creating formatted string
|
|
28
|
+
*/
|
|
29
|
+
format(format: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Updates value to start date and time of current decade
|
|
32
|
+
* @returns Itself for fluent API
|
|
33
|
+
*/
|
|
34
|
+
startOfDecade(): DateApiObject<TDate>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates value to end date and time of current decade
|
|
37
|
+
* @returns Itself for fluent API
|
|
38
|
+
*/
|
|
39
|
+
endOfDecade(): DateApiObject<TDate>;
|
|
40
|
+
/**
|
|
41
|
+
* Updates value to start date and time of current year
|
|
42
|
+
* @returns Itself for fluent API
|
|
43
|
+
*/
|
|
44
|
+
startOfYear(): DateApiObject<TDate>;
|
|
45
|
+
/**
|
|
46
|
+
* Updates value to end date and time of current year
|
|
47
|
+
* @returns Itself for fluent API
|
|
48
|
+
*/
|
|
49
|
+
endOfYear(): DateApiObject<TDate>;
|
|
50
|
+
/**
|
|
51
|
+
* Add years, if count not specified adds 1 year
|
|
52
|
+
* @param count - Number of years count
|
|
53
|
+
* @returns Itself for fluent API
|
|
54
|
+
*/
|
|
55
|
+
addYears(count?: number): DateApiObject<TDate>;
|
|
56
|
+
/**
|
|
57
|
+
* Subtract years, if count not specified subtract 1 year
|
|
58
|
+
* @param count - Number of years count
|
|
59
|
+
* @returns Itself for fluent API
|
|
60
|
+
*/
|
|
61
|
+
subtractYears(count?: number): DateApiObject<TDate>;
|
|
62
|
+
/**
|
|
63
|
+
* Updates value to start date and time of current month
|
|
64
|
+
* @returns Itself for fluent API
|
|
65
|
+
*/
|
|
66
|
+
startOfMonth(): DateApiObject<TDate>;
|
|
67
|
+
/**
|
|
68
|
+
* Updates value to end date and time of current month
|
|
69
|
+
* @returns Itself for fluent API
|
|
70
|
+
*/
|
|
71
|
+
endOfMonth(): DateApiObject<TDate>;
|
|
72
|
+
/**
|
|
73
|
+
* Add months, if count not specified adds 1 month
|
|
74
|
+
* @param count - Number of months count
|
|
75
|
+
* @returns Itself for fluent API
|
|
76
|
+
*/
|
|
77
|
+
addMonths(count?: number): DateApiObject<TDate>;
|
|
78
|
+
/**
|
|
79
|
+
* Subtract months, if count not specified subtract 1 month
|
|
80
|
+
* @param count - Number of months count
|
|
81
|
+
* @returns Itself for fluent API
|
|
82
|
+
*/
|
|
83
|
+
subtractMonths(count?: number): DateApiObject<TDate>;
|
|
84
|
+
/**
|
|
85
|
+
* Updates value to start date and time of current week
|
|
86
|
+
* @returns Itself for fluent API
|
|
87
|
+
*/
|
|
88
|
+
startOfWeek(): DateApiObject<TDate>;
|
|
89
|
+
/**
|
|
90
|
+
* Updates value to end date and time of current week
|
|
91
|
+
* @returns Itself for fluent API
|
|
92
|
+
*/
|
|
93
|
+
endOfWeek(): DateApiObject<TDate>;
|
|
94
|
+
/**
|
|
95
|
+
* Add weeks, if count not specified adds 1 week
|
|
96
|
+
* @param count - Number of weeks count
|
|
97
|
+
* @returns Itself for fluent API
|
|
98
|
+
*/
|
|
99
|
+
addWeeks(count?: number): DateApiObject<TDate>;
|
|
100
|
+
/**
|
|
101
|
+
* Subtract weeks, if count not specified subtract 1 week
|
|
102
|
+
* @param count - Number of weeks count
|
|
103
|
+
* @returns Itself for fluent API
|
|
104
|
+
*/
|
|
105
|
+
subtractWeeks(count?: number): DateApiObject<TDate>;
|
|
106
|
+
/**
|
|
107
|
+
* Updates value to start date and time of current day
|
|
108
|
+
* @returns Itself for fluent API
|
|
109
|
+
*/
|
|
110
|
+
startOfDay(): DateApiObject<TDate>;
|
|
111
|
+
/**
|
|
112
|
+
* Updates value to end date and time of current day
|
|
113
|
+
* @returns Itself for fluent API
|
|
114
|
+
*/
|
|
115
|
+
endOfDay(): DateApiObject<TDate>;
|
|
116
|
+
/**
|
|
117
|
+
* Add days, if count not specified adds 1 day
|
|
118
|
+
* @param count - Number of days count
|
|
119
|
+
* @returns Itself for fluent API
|
|
120
|
+
*/
|
|
121
|
+
addDays(count?: number): DateApiObject<TDate>;
|
|
122
|
+
/**
|
|
123
|
+
* Subtract days, if count not specified subtract 1 day
|
|
124
|
+
* @param count - Number of days count
|
|
125
|
+
* @returns Itself for fluent API
|
|
126
|
+
*/
|
|
127
|
+
subtractDays(count?: number): DateApiObject<TDate>;
|
|
128
|
+
/**
|
|
129
|
+
* Gets number of days in month
|
|
130
|
+
*/
|
|
131
|
+
daysInMonth(): number;
|
|
132
|
+
/**
|
|
133
|
+
* Gets year
|
|
134
|
+
*/
|
|
135
|
+
year(): number;
|
|
136
|
+
/**
|
|
137
|
+
* Sets year
|
|
138
|
+
* @param year - Year to be set
|
|
139
|
+
*/
|
|
140
|
+
year(year: number): DateApiObject<TDate>;
|
|
141
|
+
/**
|
|
142
|
+
* Gets or sets year
|
|
143
|
+
* @param year - If specified, sets year
|
|
144
|
+
*/
|
|
145
|
+
year(year?: number): DateApiObject<TDate> | number;
|
|
146
|
+
/**
|
|
147
|
+
* Gets month
|
|
148
|
+
*/
|
|
149
|
+
month(): number;
|
|
150
|
+
/**
|
|
151
|
+
* Sets month
|
|
152
|
+
* @param month - Month to be set
|
|
153
|
+
*/
|
|
154
|
+
month(month: number): DateApiObject<TDate>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets or sets month
|
|
157
|
+
* @param month - If specified, sets month
|
|
158
|
+
*/
|
|
159
|
+
month(month?: number): DateApiObject<TDate> | number;
|
|
160
|
+
/**
|
|
161
|
+
* Gets day of month one based
|
|
162
|
+
*/
|
|
163
|
+
dayOfMonth(): number;
|
|
164
|
+
/**
|
|
165
|
+
* Sets day of month one based
|
|
166
|
+
* @param day - Day of month to be set
|
|
167
|
+
*/
|
|
168
|
+
dayOfMonth(day: number): DateApiObject<TDate>;
|
|
169
|
+
/**
|
|
170
|
+
* Gets or sets day of month one based
|
|
171
|
+
* @param day - If specified, sets day of month
|
|
172
|
+
*/
|
|
173
|
+
dayOfMonth(day?: number): DateApiObject<TDate> | number;
|
|
174
|
+
/**
|
|
175
|
+
* Gets day of week zero based, first is monday
|
|
176
|
+
*/
|
|
177
|
+
dayOfWeek(): number;
|
|
178
|
+
/**
|
|
179
|
+
* Sets day of week zero based, first is monday
|
|
180
|
+
* @param day - Day of week to be set
|
|
181
|
+
*/
|
|
182
|
+
dayOfWeek(day: number): DateApiObject<TDate>;
|
|
183
|
+
/**
|
|
184
|
+
* Gets or sets day of week zero based, first is monday
|
|
185
|
+
* @param day - If specified, sets day of week
|
|
186
|
+
*/
|
|
187
|
+
dayOfWeek(day?: number): number | DateApiObject<TDate>;
|
|
188
|
+
/**
|
|
189
|
+
* Gets indication whether current value is before 'date'
|
|
190
|
+
* @param date - Date which is this date compared to
|
|
191
|
+
*/
|
|
192
|
+
isBefore(date: TDate): boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Gets indication whether current value is after 'date'
|
|
195
|
+
* @param date - Date which is this date compared to
|
|
196
|
+
*/
|
|
197
|
+
isAfter(date: TDate): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Gets number of days between this and provided date
|
|
200
|
+
* @param date - Date which is used for computation of diff against
|
|
201
|
+
*/
|
|
202
|
+
diffDays(date: TDate): number;
|
|
203
|
+
/**
|
|
204
|
+
* Compares whether this date is same week as provided date
|
|
205
|
+
* @param date - Date which is used for comparison of same week
|
|
206
|
+
*/
|
|
207
|
+
isSameWeek(date: TDate): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Compares whether this date is same decade as provided date
|
|
210
|
+
* @param date - Date which is used for comparison of same decade
|
|
211
|
+
*/
|
|
212
|
+
isSameDecade(date: TDate): boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Compares whether this date is same year as provided date
|
|
215
|
+
* @param date - Date which is used for comparison of same year
|
|
216
|
+
*/
|
|
217
|
+
isSameYear(date: TDate): boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Compares whether this date is same month as provided date
|
|
220
|
+
* @param date - Date which is used for comparison of same month
|
|
221
|
+
*/
|
|
222
|
+
isSameMonth(date: TDate): boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Compares whether this date is same day as provided date
|
|
225
|
+
* @param date - Date which is used for comparison of same day
|
|
226
|
+
*/
|
|
227
|
+
isSameDay(date: TDate): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Creates clone of this instance, value and originalValue have same value and are cloned from value
|
|
230
|
+
*/
|
|
231
|
+
clone(): DateApiObject<TDate>;
|
|
232
|
+
/**
|
|
233
|
+
* Creates clone of this instance, value and originalValue have same value and are cloned from originalValue
|
|
234
|
+
*/
|
|
235
|
+
cloneOriginal(): DateApiObject<TDate>;
|
|
236
|
+
/**
|
|
237
|
+
* Updates originalValue, if value is not provided originalValue is set to value
|
|
238
|
+
* @param value - Value to be set as original, or null (value will be used as value)
|
|
239
|
+
* @returns Itself for fluent API
|
|
240
|
+
*/
|
|
241
|
+
updateOriginal(value?: TDate): DateApiObject<TDate>;
|
|
242
|
+
/**
|
|
243
|
+
* Changes value to same value as originalValue
|
|
244
|
+
* @returns Itself for fluent API
|
|
245
|
+
*/
|
|
246
|
+
resetOriginal(): DateApiObject<TDate>;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Date api abstraction, used for obtaining DateApi wrapper object
|
|
250
|
+
*/
|
|
251
|
+
export interface DateApi<TDate = any> {
|
|
252
|
+
/**
|
|
253
|
+
* Gets wrapping object used for manipulation
|
|
254
|
+
* @param value - Value to be converted (parsed) and used for manipulation
|
|
255
|
+
* @param format - Format string used for parsing string value
|
|
256
|
+
*/
|
|
257
|
+
getValue(value: DateValue | TDate, format?: string): DateApiObject<TDate>;
|
|
258
|
+
/**
|
|
259
|
+
* Gets wrapping object used for manipulation instantiated to current date and time
|
|
260
|
+
*/
|
|
261
|
+
now(): DateApiObject<TDate>;
|
|
262
|
+
/**
|
|
263
|
+
* Gets format string using pseudo format
|
|
264
|
+
* @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string
|
|
265
|
+
*/
|
|
266
|
+
getFormat(pseudoFormat: string): string;
|
|
267
|
+
/**
|
|
268
|
+
* Gets information
|
|
269
|
+
*/
|
|
270
|
+
weekStartsOnMonday(): boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Gets array of weekday names in short format, order of days is dependent on locale
|
|
273
|
+
*/
|
|
274
|
+
weekdaysShort(): string[];
|
|
275
|
+
}
|
|
276
276
|
//# sourceMappingURL=dateApi.interface.d.ts.map
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parser used for parsing date using provided format and returning positions and selected date part
|
|
3
|
-
*/
|
|
4
|
-
export interface DatePositionParser {
|
|
5
|
-
/**
|
|
6
|
-
* Parse date as string and returns information about positions and selected part of date
|
|
7
|
-
* @param date - String date to be parsed
|
|
8
|
-
* @param cursorPosition - Current cursor position
|
|
9
|
-
*/
|
|
10
|
-
parse(date: string, cursorPosition: number): DatePositionParserResult;
|
|
11
|
-
/**
|
|
12
|
-
* 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
|
|
13
|
-
* @param date - String date to be parsed
|
|
14
|
-
* @param cursorPosition - Current cursor position
|
|
15
|
-
*/
|
|
16
|
-
next(date: string, cursorPosition: number): null | DatePositionParserResult;
|
|
17
|
-
/**
|
|
18
|
-
* 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
|
|
19
|
-
* @param date - String date to be parsed
|
|
20
|
-
* @param cursorPosition - Current cursor position
|
|
21
|
-
*/
|
|
22
|
-
previous(date: string, cursorPosition: number): null | DatePositionParserResult;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Result of date position parsing
|
|
26
|
-
*/
|
|
27
|
-
export interface DatePositionParserResult {
|
|
28
|
-
/**
|
|
29
|
-
* Index of charater where returned part of date starts
|
|
30
|
-
*/
|
|
31
|
-
positionFrom: number;
|
|
32
|
-
/**
|
|
33
|
-
* Index of charater where returned part of date ends
|
|
34
|
-
*/
|
|
35
|
-
positionTo: number;
|
|
36
|
-
/**
|
|
37
|
-
* Type of part that is selected
|
|
38
|
-
*/
|
|
39
|
-
part: string;
|
|
40
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Parser used for parsing date using provided format and returning positions and selected date part
|
|
3
|
+
*/
|
|
4
|
+
export interface DatePositionParser {
|
|
5
|
+
/**
|
|
6
|
+
* Parse date as string and returns information about positions and selected part of date
|
|
7
|
+
* @param date - String date to be parsed
|
|
8
|
+
* @param cursorPosition - Current cursor position
|
|
9
|
+
*/
|
|
10
|
+
parse(date: string, cursorPosition: number): DatePositionParserResult;
|
|
11
|
+
/**
|
|
12
|
+
* 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
|
|
13
|
+
* @param date - String date to be parsed
|
|
14
|
+
* @param cursorPosition - Current cursor position
|
|
15
|
+
*/
|
|
16
|
+
next(date: string, cursorPosition: number): null | DatePositionParserResult;
|
|
17
|
+
/**
|
|
18
|
+
* 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
|
|
19
|
+
* @param date - String date to be parsed
|
|
20
|
+
* @param cursorPosition - Current cursor position
|
|
21
|
+
*/
|
|
22
|
+
previous(date: string, cursorPosition: number): null | DatePositionParserResult;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Result of date position parsing
|
|
26
|
+
*/
|
|
27
|
+
export interface DatePositionParserResult {
|
|
28
|
+
/**
|
|
29
|
+
* Index of charater where returned part of date starts
|
|
30
|
+
*/
|
|
31
|
+
positionFrom: number;
|
|
32
|
+
/**
|
|
33
|
+
* Index of charater where returned part of date ends
|
|
34
|
+
*/
|
|
35
|
+
positionTo: number;
|
|
36
|
+
/**
|
|
37
|
+
* Type of part that is selected
|
|
38
|
+
*/
|
|
39
|
+
part: string;
|
|
40
|
+
}
|
|
41
41
|
//# sourceMappingURL=datePositionParser.interface.d.ts.map
|