@anglr/datetime 5.0.0-beta.20221019093146 → 5.0.0-beta.20221020044622

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.
Files changed (100) hide show
  1. package/changelog.md +26 -16
  2. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -1
  3. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +1 -1
  4. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +1 -1
  5. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +221 -0
  6. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -0
  7. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +25 -41
  8. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  9. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +16 -17
  10. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  11. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +10 -13
  12. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  13. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +9 -11
  14. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  15. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +6 -8
  16. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  17. package/es2015/src/modules/dateTime/directives/index.js +1 -1
  18. package/es2015/src/modules/dateTime/directives/index.js.map +1 -1
  19. package/es2015/src/modules/dateTime/modules/dateTime.module.js +7 -3
  20. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  21. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js +10 -10
  22. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  23. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +11 -13
  24. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  25. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +66 -5
  26. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  27. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -3
  28. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  29. package/es2015/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js.map +1 -1
  30. package/es2015/src/pipes/dateFormat.pipe.js +3 -9
  31. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  32. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -1
  33. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +1 -1
  34. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +1 -1
  35. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +218 -0
  36. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -0
  37. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +25 -41
  38. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  39. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +16 -17
  40. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  41. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +10 -13
  42. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  43. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +9 -11
  44. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  45. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +6 -8
  46. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  47. package/es2020/src/modules/dateTime/directives/index.js +1 -1
  48. package/es2020/src/modules/dateTime/directives/index.js.map +1 -1
  49. package/es2020/src/modules/dateTime/modules/dateTime.module.js +7 -3
  50. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  51. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js +10 -10
  52. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  53. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +11 -13
  54. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  55. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +63 -5
  56. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  57. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -3
  58. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  59. package/es2020/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js.map +1 -1
  60. package/es2020/src/pipes/dateFormat.pipe.js +3 -9
  61. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  64. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -4
  65. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +1 -1
  66. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +120 -0
  67. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -0
  68. package/src/modules/dateTime/directives/dateTimeBase.d.ts +19 -27
  69. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  70. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -2
  71. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  72. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +4 -4
  73. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  74. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +4 -4
  75. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  76. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +2 -2
  77. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  78. package/src/modules/dateTime/directives/index.d.ts +1 -1
  79. package/src/modules/dateTime/directives/index.d.ts.map +1 -1
  80. package/src/modules/dateTime/modules/dateTime.module.d.ts +7 -6
  81. package/src/modules/dateTime/modules/dateTime.module.d.ts.map +1 -1
  82. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +21 -8
  83. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  84. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +4 -5
  85. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  86. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +24 -0
  87. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  88. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.html +11 -13
  89. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  90. package/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.d.ts +16 -8
  91. package/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.d.ts.map +1 -1
  92. package/src/pipes/dateFormat.pipe.d.ts +28 -2
  93. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  94. package/version.bak +1 -1
  95. package/es2015/src/modules/dateTime/directives/dateTimeRestrictedBase.js +0 -152
  96. package/es2015/src/modules/dateTime/directives/dateTimeRestrictedBase.js.map +0 -1
  97. package/es2020/src/modules/dateTime/directives/dateTimeRestrictedBase.js +0 -149
  98. package/es2020/src/modules/dateTime/directives/dateTimeRestrictedBase.js.map +0 -1
  99. package/src/modules/dateTime/directives/dateTimeRestrictedBase.d.ts +0 -74
  100. package/src/modules/dateTime/directives/dateTimeRestrictedBase.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimePicker.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,SAAS,EAAE,UAAU,EAAmB,MAAM,EAAE,KAAK,EAAqB,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACjJ,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAW,QAAQ,EAAE,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACzF,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAGjD,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,kCAAkC,EAAC,MAAM,mBAAmB,CAAC;;AAErE;;GAEG;AACH,MAAM,cAAc,GACpB;IACI,QAAQ,EAAE,IAAI;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AK,CAAC,KAAK,CAAC,CAAC;YACvF,sDAAsD;YACtD,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;SACvD;IACL,CAAC;IAED;;;OAGG;IAEO,kBAAkB,CAAC,KAAiB;QAE1C,IAAG,CAAC,IAAI,CAAC,gBAAgB,EACzB;YACI,OAAO;SACV;QAED,IAAG,IAAI,CAAC,gBAAgB,IAAI,KAAK,CAAC,MAAM;YACrC,CAAC,YAAY,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAqB,CAAC;YACjE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM;gBAClC,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,MAAqB,CAAC,CAAC,CAAC,EAC5F;YACI,IAAI,CAAC,UAAU,EAAE,CAAC;SACrB;IACL,CAAC;;oHA7MQ,uBAAuB,4EAyDZ,eAAe,aACf,QAAQ,aACR,QAAQ,aACR,kCAAkC;wGA5D7C,uBAAuB;;IA8L/B,QAAQ;;qCAC2B,UAAU;;iEAc7C;2FA7MQ,uBAAuB;kBALnC,SAAS;mBACV;oBACI,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,gBAAgB;iBAC7B;;0BA0DgB,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,kCAAkC;;0BAAG,QAAQ;4CAftD,iBAAiB;sBAD3B,KAAK;gBAmJI,kBAAkB","sourcesContent":["import {ComponentRef, Directive, ElementRef, EmbeddedViewRef, Inject, Input, OnDestroy, OnInit, Optional, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Position, POSITION, applyPositionResult, PositionPlacement} from '@anglr/common';\nimport {extend, nameof, isDescendant, BindThis} from '@jscrpt/common';\nimport {lastValueFrom, Subscription} from 'rxjs';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimePickerComponent} from '../../components';\nimport {DateTimePickerDirectiveOptions} from './dateTimePicker.interface';\nimport {DATE_TIME_PICKER_DIRECTIVE_OPTIONS} from '../../misc/tokens';\n\n/**\n * Default options for date time picker directive\n */\nconst defaultOptions: DateTimePickerDirectiveOptions =\n{\n absolute: true,\n alwaysVisible: false,\n closeOnValueSelect: true,\n disabled: false,\n positionOptions: PositionPlacement.BottomStart,\n showOnFocus: true,\n};\n\n/**\n * Directive that is used for displaying and attaching date time picker\n */\n@Directive(\n{\n selector: '[dateTime][withPicker]',\n exportAs: 'dateTimePicker'\n})\nexport class DateTimePickerDirective<TDate = unknown> implements OnInit, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Indication whether is value changes disabled\n */\n protected valueChangeDisabled: boolean = false;\n\n /**\n * Options for date time picker directive\n */\n protected ɵWithPickerOptions: DateTimePickerDirectiveOptions;\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n /**\n * Date time picker component reference\n */\n protected componentRef: ComponentRef<DateTimePickerComponent<TDate>>|undefined|null;\n\n /**\n * Instance of date time picker component\n */\n protected component: DateTimePickerComponent<TDate>|undefined|null;\n\n /**\n * Instance of date time picker element\n */\n protected componentElement: HTMLElement|undefined|null;\n\n /**\n * Subscription for value changes in picker\n */\n protected valueChangeSubscription: Subscription|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets options for date time picker directive\n */\n @Input()\n public get withPickerOptions(): Partial<DateTimePickerDirectiveOptions>\n {\n return this.ɵWithPickerOptions;\n }\n public set withPickerOptions(value: Partial<DateTimePickerDirectiveOptions>)\n {\n this.ɵWithPickerOptions = extend(true, {}, this.ɵWithPickerOptions, value);\n }\n\n //######################### constructor #########################\n constructor(protected viewContainer: ViewContainerRef,\n protected element: ElementRef<HTMLElement>,\n @Inject(DATE_TIME_INPUT) protected input: DateTimeInput<TDate>,\n @Inject(DOCUMENT) protected document: Document,\n @Inject(POSITION) protected position: Position,\n @Inject(DATE_TIME_PICKER_DIRECTIVE_OPTIONS) @Optional() options?: DateTimePickerDirectiveOptions,)\n {\n this.ɵWithPickerOptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public async ngOnInit(): Promise<void>\n {\n if(this.withPickerOptions.alwaysVisible)\n {\n this.showPicker();\n }\n\n this.initSubscriptions.add(this.input.valueChange.subscribe(() => this.setPickerValue()));\n\n this.initSubscriptions.add(this.input.focus.subscribe(() =>\n {\n if(this.withPickerOptions.showOnFocus)\n {\n this.showPicker();\n }\n }));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.hidePicker();\n this.initSubscriptions.unsubscribe();\n }\n\n //######################### public methods #########################\n\n /**\n * Hides date time picker\n */\n public async showPicker(): Promise<void>\n {\n if(this.withPickerOptions.disabled || this.componentRef)\n {\n return;\n }\n\n this.componentRef = this.viewContainer.createComponent(DateTimePickerComponent<TDate>);\n this.componentElement = (this.componentRef?.hostView as EmbeddedViewRef<DateTimePickerComponent<TDate>>).rootNodes[0] as HTMLElement;\n this.component = this.componentRef.instance;\n\n if(this.withPickerOptions.absolute)\n {\n this.document.body.append(this.componentElement);\n }\n\n this.valueChangeSubscription = this.component.valueChange.subscribe(() =>\n {\n if(this.component)\n {\n this.valueChangeDisabled = true;\n this.input.value = this.component.value;\n this.input.valueChange.emit();\n this.valueChangeDisabled = false;\n }\n });\n\n this.document.addEventListener('click', this.handleClickOutside);\n\n const result = await lastValueFrom(this.position.placeElement(this.componentElement, this.element.nativeElement,\n {\n placement: this.withPickerOptions.positionOptions,\n }));\n\n applyPositionResult(result);\n this.setPickerValue();\n }\n\n /**\n * Shows date time picker\n */\n public hidePicker(): void\n {\n if(this.withPickerOptions.alwaysVisible)\n {\n return;\n }\n\n this.valueChangeSubscription?.unsubscribe();\n this.valueChangeSubscription = null;\n\n this.component = null;\n\n this.componentRef?.destroy();\n this.componentRef = null;\n\n this.componentElement?.remove();\n this.componentElement = null;\n\n this.document.removeEventListener('click', this.handleClickOutside);\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets all picker value\n */\n protected setPickerValue(): void\n {\n if(this.valueChangeDisabled)\n {\n return;\n }\n\n if(this.componentRef)\n {\n this.componentRef.setInput(nameof<DateTimePickerComponent>('value'), this.input.value);\n // this.componentRef.changeDetectorRef.markForCheck();\n this.componentRef.changeDetectorRef.detectChanges();\n }\n }\n\n /**\n * Handles clicking outside of picker\n * @param event - Event that occured\n */\n @BindThis\n protected handleClickOutside(event: MouseEvent): void\n {\n if(!this.componentElement)\n {\n return;\n }\n\n if(this.componentElement != event.target &&\n !isDescendant(this.componentElement, event.target as HTMLElement) &&\n (!this.input.element || (this.input.element != event.target &&\n !isDescendant(this.input.element, event.target as HTMLElement))))\n {\n this.hidePicker();\n }\n }\n}"]}
1
+ {"version":3,"file":"dateTimePicker.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,SAAS,EAAE,UAAU,EAAmB,MAAM,EAAE,KAAK,EAAqB,QAAQ,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AACjJ,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAW,QAAQ,EAAE,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AACzF,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAGjD,OAAO,EAAC,eAAe,EAAC,MAAM,yBA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C,QAAQ;;0BACf,MAAM;2BAAC,kCAAkC;;0BAAG,QAAQ;4CAftD,iBAAiB;sBAD3B,KAAK;gBAyJI,kBAAkB","sourcesContent":["import {ComponentRef, Directive, ElementRef, EmbeddedViewRef, Inject, Input, OnDestroy, OnInit, Optional, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {Position, POSITION, applyPositionResult, PositionPlacement} from '@anglr/common';\nimport {extend, nameof, isDescendant, BindThis} from '@jscrpt/common';\nimport {lastValueFrom, Subscription} from 'rxjs';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimePickerComponent} from '../../components';\nimport {DateTimePickerDirectiveOptions} from './dateTimePicker.interface';\nimport {DATE_TIME_PICKER_DIRECTIVE_OPTIONS} from '../../misc/tokens';\n\n/**\n * Default options for date time picker directive\n */\nconst defaultOptions: DateTimePickerDirectiveOptions =\n{\n absolute: true,\n alwaysVisible: false,\n closeOnValueSelect: true,\n disabled: false,\n positionOptions: PositionPlacement.BottomStart,\n showOnFocus: true,\n};\n\n/**\n * Directive that is used for displaying and attaching date time picker\n */\n@Directive(\n{\n selector: '[dateTime][withPicker]',\n exportAs: 'dateTimePicker'\n})\nexport class DateTimePickerDirective<TDate = unknown> implements OnInit, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Indication whether is value changes disabled\n */\n protected valueChangeDisabled: boolean = false;\n\n /**\n * Options for date time picker directive\n */\n protected ɵWithPickerOptions: DateTimePickerDirectiveOptions;\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n /**\n * Date time picker component reference\n */\n protected componentRef: ComponentRef<DateTimePickerComponent<TDate>>|undefined|null;\n\n /**\n * Instance of date time picker component\n */\n protected component: DateTimePickerComponent<TDate>|undefined|null;\n\n /**\n * Instance of date time picker element\n */\n protected componentElement: HTMLElement|undefined|null;\n\n /**\n * Subscription for value changes in picker\n */\n protected valueChangeSubscription: Subscription|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets options for date time picker directive\n */\n @Input()\n public get withPickerOptions(): Partial<DateTimePickerDirectiveOptions>\n {\n return this.ɵWithPickerOptions;\n }\n public set withPickerOptions(value: Partial<DateTimePickerDirectiveOptions>)\n {\n this.ɵWithPickerOptions = extend(true, {}, this.ɵWithPickerOptions, value);\n }\n\n //######################### constructor #########################\n constructor(protected viewContainer: ViewContainerRef,\n protected element: ElementRef<HTMLElement>,\n @Inject(DATE_TIME_INPUT) protected input: DateTimeInput<TDate>,\n @Inject(DOCUMENT) protected document: Document,\n @Inject(POSITION) protected position: Position,\n @Inject(DATE_TIME_PICKER_DIRECTIVE_OPTIONS) @Optional() options?: DateTimePickerDirectiveOptions,)\n {\n this.ɵWithPickerOptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public async ngOnInit(): Promise<void>\n {\n if(this.withPickerOptions.alwaysVisible)\n {\n this.showPicker();\n }\n\n this.initSubscriptions.add(this.input.valueChange.subscribe(() =>\n {\n this.setPickerValue();\n this.componentRef?.changeDetectorRef.detectChanges();\n }));\n\n this.initSubscriptions.add(this.input.focus.subscribe(() =>\n {\n if(this.withPickerOptions.showOnFocus)\n {\n this.showPicker();\n }\n }));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.hidePicker();\n this.initSubscriptions.unsubscribe();\n }\n\n //######################### public methods #########################\n\n /**\n * Hides date time picker\n */\n public async showPicker(): Promise<void>\n {\n if(this.withPickerOptions.disabled || this.componentRef)\n {\n return;\n }\n\n this.componentRef = this.viewContainer.createComponent(DateTimePickerComponent<TDate>);\n this.componentElement = (this.componentRef?.hostView as EmbeddedViewRef<DateTimePickerComponent<TDate>>).rootNodes[0] as HTMLElement;\n this.component = this.componentRef.instance;\n\n if(this.withPickerOptions.absolute)\n {\n this.document.body.append(this.componentElement);\n }\n\n this.valueChangeSubscription = this.component.valueChange.subscribe(() =>\n {\n if(this.component)\n {\n this.valueChangeDisabled = true;\n this.input.value = this.component.value;\n this.input.valueChange.emit();\n this.valueChangeDisabled = false;\n }\n });\n\n this.document.addEventListener('click', this.handleClickOutside);\n\n const result = await lastValueFrom(this.position.placeElement(this.componentElement, this.element.nativeElement,\n {\n placement: this.withPickerOptions.positionOptions,\n }));\n\n applyPositionResult(result);\n this.setPickerValue();\n // this.componentRef.setInput(nameof<DateTimePickerComponent>('valueFormat'), this.input.);\n // this.componentRef.setInput(nameof<DateTimePickerComponent>('value'), this.input.value);\n // this.componentRef.setInput(nameof<DateTimePickerComponent>('value'), this.input.value);\n this.componentRef.changeDetectorRef.detectChanges();\n }\n\n /**\n * Shows date time picker\n */\n public hidePicker(): void\n {\n if(this.withPickerOptions.alwaysVisible)\n {\n return;\n }\n\n this.valueChangeSubscription?.unsubscribe();\n this.valueChangeSubscription = null;\n\n this.component = null;\n\n this.componentRef?.destroy();\n this.componentRef = null;\n\n this.componentElement?.remove();\n this.componentElement = null;\n\n this.document.removeEventListener('click', this.handleClickOutside);\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets all picker value\n */\n protected setPickerValue(): void\n {\n if(this.valueChangeDisabled)\n {\n return;\n }\n\n if(this.componentRef)\n {\n this.componentRef.setInput(nameof<DateTimePickerComponent>('value'), this.input.value);\n }\n }\n\n /**\n * Handles clicking outside of picker\n * @param event - Event that occured\n */\n @BindThis\n protected handleClickOutside(event: MouseEvent): void\n {\n if(!this.componentElement)\n {\n return;\n }\n\n if(this.componentElement != event.target &&\n !isDescendant(this.componentElement, event.target as HTMLElement) &&\n (!this.input.element || (this.input.element != event.target &&\n !isDescendant(this.input.element, event.target as HTMLElement))))\n {\n this.hidePicker();\n }\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimePicker.interface.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable} from 'rxjs';\n\nimport {DateTimeObjectValue} from '../../../../misc/types';\n\n/**\n * Describes date time picker API for each date time period\n */\nexport interface DateTimePicker<TDate = unknown, TOptions = unknown>\n{\n /**\n * Value of date time picker\n */\n value: DateTimeObjectValue<TDate>|undefined|null;\n\n /**\n * Options for date time picker period\n */\n options: TOptions|undefined|null;\n\n /**\n * Date that describes which date should be displayed\n */\n display: TDate|undefined|null;\n\n /**\n * Indication whether picker can display lower granularity picker\n */\n canGoUp: boolean;\n\n /**\n * Indication whether picker can display higher granularity picker\n */\n canGoDown: boolean;\n\n /**\n * Occurs when date time picker value changes\n */\n readonly valueChange: Observable<void>; \n\n /**\n * Occurs when period with lower granularity should be displayed\n */\n readonly goUp: Observable<TDate>;\n\n /**\n * Occurs when period with higher granularity should be displayed\n */\n readonly goDown: Observable<TDate>;\n}"]}
1
+ {"version":3,"file":"dateTimePicker.interface.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable} from 'rxjs';\n\nimport {DateTimeObjectValue} from '../../../../misc/types';\n\n/**\n * Describes date time picker API for each date time period\n */\nexport interface DateTimePicker<TDate = unknown, TOptions = unknown>\n{\n /**\n * Value of date time picker\n */\n value: DateTimeObjectValue<TDate>|undefined|null;\n\n /**\n * Options for date time picker period\n */\n options: TOptions|undefined|null;\n\n /**\n * Date that describes which date should be displayed\n */\n display: TDate|undefined|null;\n\n /**\n * Max allowed date\n */\n maxDate: TDate|undefined|null;\n\n /**\n * Min allowed date to be selected\n */\n minDate: TDate|undefined|null;\n\n /**\n * Indication whether picker can display scale date time period up\n */\n canScaleUp: boolean;\n\n /**\n * Indication whether picker can display scale date time period down\n */\n canScaleDown: boolean;\n\n /**\n * Occurs when date time picker value changes\n */\n readonly valueChange: Observable<void>; \n\n /**\n * Occurs when period should be scaled up\n */\n readonly scaleUp: Observable<TDate>;\n\n /**\n * Occurs when period should be scaled down\n */\n readonly scaleDown: Observable<TDate>;\n}"]}
@@ -1,5 +1,5 @@
1
1
  import { Inject, Pipe } from '@angular/core';
2
- import { nameof } from '@jscrpt/common';
2
+ import { isString, nameof } from '@jscrpt/common';
3
3
  import { DATE_API, FORMAT_PROVIDER } from '../misc/tokens';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -11,14 +11,8 @@ export class DateFormatPipe {
11
11
  this._formatProvider = _formatProvider;
12
12
  this._dateApi = _dateApi;
13
13
  }
14
- //######################### public methods - implementation of PipeTransform #########################
15
- /**
16
- * Formats provided date into formatted string
17
- * @param value - value to be transformed
18
- * @param format - Format that is used for formatting, can be also 'FormatProvider' key
19
- * @param parseFormat - format used for parsing string date
20
- */
21
- transform(value, format = nameof('date'), parseFormat) {
14
+ transform(value, format = nameof('date'), parseFormatOrCustomFormat, _customFormat) {
15
+ const parseFormat = isString(parseFormatOrCustomFormat) ? parseFormatOrCustomFormat : undefined;
22
16
  //format provider value
23
17
  if (format in this._formatProvider) {
24
18
  format = this._formatProvider[format];
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormat.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;;AAGzD;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB,kEAAkE;IAClE,YAA6C,eAA+B,EACtC,QAAwB;QADjB,oBAAe,GAAf,eAAe,CAAgB;QACtC,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAED,sGAAsG;IAEtG;;;;;OAKG;IACI,SAAS,CAAC,KAAsB,EAAE,SAAsC,MAAM,CAAiB,MAAM,CAAC,EAAE,WAAoB;QAE/H,uBAAuB;QACvB,IAAG,MAAM,IAAI,IAAI,CAAC,eAAe,EACjC;YACI,MAAM,GAAS,IAAI,CAAC,eAAgB,CAAC,MAAM,CAAC,CAAC;SAChD;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1D;QAED,OAAO,EAAE,CAAC;IACd,CAAC;;2GAhCQ,cAAc,kBAGH,eAAe,aACf,QAAQ;yGAJnB,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC;;0BAIT,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {nameof} from '@jscrpt/common';\n\nimport {FormatProvider} from '../interfaces';\nimport {DATE_API, FORMAT_PROVIDER} from '../misc/tokens';\nimport {DateApi, DateValue} from '../services';\n\n/**\n * Pipe that is used for formatting date\n */\n@Pipe({name: 'dateFormat'})\nexport class DateFormatPipe<TDate = any> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(FORMAT_PROVIDER) private _formatProvider: FormatProvider,\n @Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - Format that is used for formatting, can be also 'FormatProvider' key\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, format: string|keyof FormatProvider = nameof<FormatProvider>('date'), parseFormat?: string): string\n {\n //format provider value\n if(format in this._formatProvider)\n {\n format = (<any>this._formatProvider)[format];\n }\n\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj.format(this._dateApi.getFormat(format));\n }\n\n return '';\n }\n}"]}
1
+ {"version":3,"file":"dateFormat.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;;AAGzD;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB,kEAAkE;IAClE,YAA6C,eAA+B,EACtC,QAAwB;QADjB,oBAAe,GAAf,eAAe,CAAgB;QACtC,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAqCM,SAAS,CAAC,KAAsB,EAAE,SAAsC,MAAM,CAAiB,MAAM,CAAC,EAAE,yBAA0C,EAAE,aAAuB;QAE9K,MAAM,WAAW,GAAqB,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;QAElH,uBAAuB;QACvB,IAAG,MAAM,IAAI,IAAI,CAAC,eAAe,EACjC;YACI,MAAM,GAAS,IAAI,CAAC,eAAgB,CAAC,MAAM,CAAC,CAAC;SAChD;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1D;QAED,OAAO,EAAE,CAAC;IACd,CAAC;;2GA7DQ,cAAc,kBAGH,eAAe,aACf,QAAQ;yGAJnB,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC;;0BAIT,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {isString, nameof} from '@jscrpt/common';\n\nimport {FormatProvider} from '../interfaces';\nimport {DATE_API, FORMAT_PROVIDER} from '../misc/tokens';\nimport {DateApi, DateValue} from '../services';\n\n/**\n * Pipe that is used for formatting date\n */\n@Pipe({name: 'dateFormat'})\nexport class DateFormatPipe<TDate = any> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(FORMAT_PROVIDER) private _formatProvider: FormatProvider,\n @Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Formats provided date into formatted string, with default format 'date'\n * @param value - value to be transformed\n */\n public transform(value: TDate|DateValue): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider, parseFormat: string): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, customFormat: true): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param parseFormat - format used for parsing string date\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, parseFormat: string, customFormat: true): string\n public transform(value: TDate|DateValue, format: string|keyof FormatProvider = nameof<FormatProvider>('date'), parseFormatOrCustomFormat?: string|boolean, _customFormat?: boolean): string\n {\n const parseFormat: string|undefined = isString(parseFormatOrCustomFormat) ? parseFormatOrCustomFormat : undefined;\n \n //format provider value\n if(format in this._formatProvider)\n {\n format = (<any>this._formatProvider)[format];\n }\n\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj.format(this._dateApi.getFormat(format));\n }\n\n return '';\n }\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anglr/datetime",
3
- "version": "5.0.0-beta.20221019093146",
3
+ "version": "5.0.0-beta.20221020044622",
4
4
  "description": "Angular library for datetime manipulation components",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1 +1 @@
1
- {"version":3,"file":"dayPicker.component.d.ts","sourceRoot":"","sources":["dayPicker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAG5F,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AAEjF,OAAO,EAAC,OAAO,EAAE,aAAa,EAAC,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAC,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;;AAiB3D;;GAEG;AACH,qBAOa,0BAA0B,CAAC,KAAK,GAAG,GAAG,CAAE,SAAQ,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,mBAAmB,CAAE,YAAW,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,CAAC;IAIpL;;OAEG;IACH,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAM;IAIhD;;;OAGG;IACI,QAAQ,EAAE,MAAM,EAAE,CAAM;IAE/B;;OAEG;IACH,IAAW,SAAS,IAAI,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI,CAGlD;gBAG6B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,EAC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;OAGG;IACH,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC;yCA9O7D,0BAA0B;2CAA1B,0BAA0B;CAkPtC"}
@@ -151,10 +151,6 @@ export interface PeriodData<TDate = any> {
151
151
  * Data that represents day in date picker
152
152
  */
153
153
  export interface DayData<TDate = any> extends PeriodData<TDate> {
154
- /**
155
- * Indication that range is selected and this day is between selected dates
156
- */
157
- betweenActive: boolean;
158
154
  /**
159
155
  * Indication that this day is out of currently selected month
160
156
  */
@@ -1 +1 @@
1
- {"version":3,"file":"datetimePicker.interface.d.ts","sourceRoot":"","sources":["datetimePicker.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IAEnC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IAErC;;OAEG;IACH,YAAY,CAAC,EAAE,sBAAsB,CAAC;IAEtC;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,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,SAAQ,UAAU,CAAC,KAAK,CAAC;IAE5D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,120 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Action1 } from '@jscrpt/common';
3
+ import { Observable, Subject, Subscription } from 'rxjs';
4
+ import { FormatProvider } from '../../../../interfaces';
5
+ import { DateTimeValueFormat } from '../../../../misc/enums';
6
+ import { DateApi, DateValue } from '../../../../services';
7
+ import { DateTimeBase } from '../dateTimeBase';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Directive that holds shared data for date time, like formats, restrictions
11
+ */
12
+ export declare class DateTimeDirective<TDate = unknown> implements OnDestroy {
13
+ /**
14
+ * Subject used for emitting changes in max date time value
15
+ */
16
+ protected maxDateTimeChangesSubject: Subject<void>;
17
+ /**
18
+ * Subject used for emitting changes in min date time value
19
+ */
20
+ protected minDateTimeChangesSubject: Subject<void>;
21
+ /**
22
+ * Subscription for max date instance value changes
23
+ */
24
+ protected maxDateInstanceChange: Subscription | undefined | null;
25
+ /**
26
+ * Subscription for min date instance value changes
27
+ */
28
+ protected minDateInstanceChange: Subscription | undefined | null;
29
+ /**
30
+ * Max allowed value of date time
31
+ */
32
+ protected ɵMaxDateTime: TDate | undefined | null;
33
+ /**
34
+ * Min allowed value of date time
35
+ */
36
+ protected ɵMinDateTime: TDate | undefined | null;
37
+ /**
38
+ * Date time value format which is being worked with in this date time
39
+ */
40
+ protected ɵValueFormat: DateTimeValueFormat;
41
+ /**
42
+ * Format of string representation of date
43
+ */
44
+ protected ɵFormat: keyof FormatProvider;
45
+ /**
46
+ * Date api instance, used for date time manipulation
47
+ */
48
+ protected dateApi: DateApi<TDate>;
49
+ /**
50
+ * Provider for available formats
51
+ */
52
+ protected formatProvider: FormatProvider;
53
+ /**
54
+ * Occurs when there are changes in max date time value
55
+ */
56
+ get maxDateTimeChanges(): Observable<void>;
57
+ /**
58
+ * Occurs when there are changes in min date time value
59
+ */
60
+ get minDateTimeChanges(): Observable<void>;
61
+ /**
62
+ * Gets or sets date time value format which is being worked with in this date time
63
+ */
64
+ get valueFormat(): DateTimeValueFormat;
65
+ set valueFormat(value: DateTimeValueFormat);
66
+ /**
67
+ * Gets or sets format of string representation of date
68
+ */
69
+ get format(): keyof FormatProvider;
70
+ set format(value: keyof FormatProvider);
71
+ /**
72
+ * Custom format string representation of date
73
+ */
74
+ customFormat: string;
75
+ /**
76
+ * Gets or sets max allowed date for date time
77
+ */
78
+ get maxDateTime(): TDate | undefined | null;
79
+ set maxDateTime(value: TDate | undefined | null);
80
+ /**
81
+ * Gets or sets min allowed date for date time
82
+ */
83
+ get minDateTime(): TDate | undefined | null;
84
+ set minDateTime(value: TDate | undefined | null);
85
+ /**
86
+ * Called when component is destroyed
87
+ */
88
+ ngOnDestroy(): void;
89
+ /**
90
+ * Sets min date time and notifies about changes
91
+ * @param value - Value to be set
92
+ */
93
+ protected minDateSet(value: TDate | undefined | null): void;
94
+ /**
95
+ * Sets max date time and notifies about changes
96
+ * @param value - Value to be set
97
+ */
98
+ protected maxDateSet(value: TDate | undefined | null): void;
99
+ /**
100
+ * Sets min or max date time value
101
+ * @param value - Value to be set
102
+ * @param setter - Action used for setting value
103
+ */
104
+ protected setMinMaxValue(value: string | number | TDate | Date, setter: Action1<TDate | undefined | null>): void;
105
+ /**
106
+ * Custom input type for `valueFormat` input
107
+ */
108
+ static ngAcceptInputType_valueFormat: keyof typeof DateTimeValueFormat | DateTimeValueFormat;
109
+ /**
110
+ * Custom input type for `maxDateTime` input
111
+ */
112
+ static ngAcceptInputType_maxDateTime: DateValue | DateTimeBase;
113
+ /**
114
+ * Custom input type for `minDateTime` input
115
+ */
116
+ static ngAcceptInputType_minDateTime: DateValue | DateTimeBase;
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeDirective<any>, never>;
118
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeDirective<any>, "[dateTime]", never, { "valueFormat": "valueFormat"; "format": "format"; "customFormat": "customFormat"; "maxDateTime": "maxDateTime"; "minDateTime": "minDateTime"; }, {}, never, never, false>;
119
+ }
120
+ //# sourceMappingURL=dateTime.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateTime.directive.d.ts","sourceRoot":"","sources":["dateTime.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAAC,MAAM,eAAe,CAAC;AAClE,OAAO,EAAC,OAAO,EAA8B,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAEvD,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAI3D,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AACH,qBAIa,iBAAiB,CAAC,KAAK,GAAG,OAAO,CAAE,YAAW,SAAS;IAIhE;;OAEG;IACH,SAAS,CAAC,yBAAyB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAuB;IAEzE;;OAEG;IACH,SAAS,CAAC,yBAAyB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAuB;IAEzE;;OAEG;IACH,SAAS,CAAC,qBAAqB,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;IAE7D;;OAEG;IACH,SAAS,CAAC,qBAAqB,EAAE,YAAY,GAAC,SAAS,GAAC,IAAI,CAAC;IAE7D;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,KAAK,GAAC,SAAS,GAAC,IAAI,CAAC;IAE7C;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,KAAK,GAAC,SAAS,GAAC,IAAI,CAAC;IAE7C;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,mBAAmB,CAAoC;IAE/E;;OAEG;IACH,SAA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AC,IAAI,CAAC,GAAG,IAAI;IAgBtG;;OAEG;IACH,OAAc,6BAA6B,EAAE,MAAM,OAAO,mBAAmB,GAAC,mBAAmB,CAAC;IAElG;;OAEG;IACH,OAAc,6BAA6B,EAAE,SAAS,GAAC,YAAY,CAAC;IAEpE;;OAEG;IACH,OAAc,6BAA6B,EAAE,SAAS,GAAC,YAAY,CAAC;yCApS3D,iBAAiB;2CAAjB,iBAAiB;CAqS7B"}
@@ -1,27 +1,25 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { DateTimeInputValue, FormatProvider } from '../../../interfaces';
3
- import { DateTimeValueFormat } from '../../../misc/enums';
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { DateTimeInputValue } from '../../../interfaces';
4
4
  import { DateTimeInputOutputValue } from '../../../misc/types';
5
- import { DateApi } from '../../../services';
5
+ import { DateTimeDirective } from './dateTime/dateTime.directive';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Base class for date time directives, contains basic shared data
9
9
  */
10
- export declare class DateTimeBase<TDate = unknown> implements DateTimeInputValue<TDate> {
11
- protected dateApi: DateApi<TDate>;
12
- protected formatProvider: FormatProvider;
10
+ export declare class DateTimeBase<TDate = unknown> implements DateTimeInputValue<TDate>, OnDestroy {
13
11
  /**
14
- * Date time value format which is being worked with in this date time
12
+ * Subscriptions created during initialization
15
13
  */
16
- protected ɵValueFormat: DateTimeValueFormat;
17
- /**
18
- * Format of string representation of date
19
- */
20
- protected ɵFormat: keyof FormatProvider;
14
+ protected initSubscriptions: Subscription;
21
15
  /**
22
16
  * Current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue
23
17
  */
24
18
  protected ɵValue: DateTimeInputOutputValue<TDate> | undefined | null;
19
+ /**
20
+ * Instance of date time shared data, like formats and restrictions
21
+ */
22
+ protected dateTimeData: DateTimeDirective<TDate>;
25
23
  /**
26
24
  * @inheritdoc
27
25
  */
@@ -31,26 +29,20 @@ export declare class DateTimeBase<TDate = unknown> implements DateTimeInputValue
31
29
  * @inheritdoc
32
30
  */
33
31
  valueChange: EventEmitter<void>;
32
+ constructor();
34
33
  /**
35
- * Gets or sets date time value format which is being worked with in this date time
36
- */
37
- get valueFormat(): DateTimeValueFormat;
38
- set valueFormat(value: DateTimeValueFormat);
39
- /**
40
- * Gets or sets format of string representation of date
34
+ * Called when component is destroyed
41
35
  */
42
- get format(): keyof FormatProvider;
43
- set format(value: keyof FormatProvider);
36
+ ngOnDestroy(): void;
44
37
  /**
45
- * Custom format string representation of date
38
+ * Called whenever max date time restriction changes
46
39
  */
47
- customFormat: string;
48
- constructor(dateApi: DateApi<TDate>, formatProvider: FormatProvider);
40
+ protected onMaxDateTimeChange(): void;
49
41
  /**
50
- * Custom input type for `valueFormat` input
42
+ * Called whenever min date time restriction changes
51
43
  */
52
- static ngAcceptInputType_valueFormat: keyof typeof DateTimeValueFormat | DateTimeValueFormat;
44
+ protected onMinDateTimeChange(): void;
53
45
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeBase<any>, never>;
54
- static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeBase<any>, never, never, { "valueFormat": "valueFormat"; "format": "format"; "customFormat": "customFormat"; }, {}, never, never, false>;
46
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeBase<any>, never, never, {}, {}, never, never, false>;
55
47
  }
56
48
  //# sourceMappingURL=dateTimeBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeBase.d.ts","sourceRoot":"","sources":["dateTimeBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAQ,MAAM,eAAe,CAAC;AAG7D,OAAO,EAAC,kBAAkB,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAC,mBAAmB,EAAC,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAC,wBAAwB,EAAC,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAC,OAAO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,SAAS,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAC,wBAAwB,EAAC,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;;AAEhE;;GAEG;AACH,qBACa,YAAY,CAAC,KAAK,GAAG,OAAO,CAAE,YAAW,kBAAkB,CAAC,KAAK,CAAC,EAAE,SAAS;IAItF;;OAEG;IACH,SAAS,CAAC,iBAAiB,EAAE,YAAY,CAAsB;IAE/D;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAC,SAAS,GAAC,IAAI,CAAC;IAEjE;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAoC;IAIpF;;OAEG;IACH,IAAW,KAAK,IAAI,wBAAwB,CAAC,KAAK,CAAC,GAAC,SAAS,GAAC,IAAI,CAGjE;IACD,IAAW,KAAK,CAAC,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAC,SAAS,GAAC,IAAI,EAGrE;IAED;;OAEG;IACI,WAAW,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;;IAWlE;;OAEG;IACI,WAAW,IAAI,IAAI;IAO1B;;OAEG;IACH,SAAS,CAAC,mBAAmB,IAAI,IAAI;IAIrC;;OAEG;IACH,SAAS,CAAC,mBAAmB,IAAI,IAAI;yCAnE5B,YAAY;2CAAZ,YAAY;CAsExB"}
@@ -1,5 +1,5 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
- import { DateTimeInput, FormatProvider } from '../../../../interfaces';
2
+ import { DateTimeInput } from '../../../../interfaces';
3
3
  import { DateTimeInputOutputValue, DateTimeObjectValue } from '../../../../misc/types';
4
4
  import { DateApi, DateValueProvider } from '../../../../services';
5
5
  import { DateTimeBase } from '../dateTimeBase';
@@ -9,6 +9,7 @@ import * as i0 from "@angular/core";
9
9
  */
10
10
  export declare class DateTimeInputDirective<TDate = unknown> extends DateTimeBase<TDate> implements DateTimeInput, OnDestroy {
11
11
  protected elementRef: ElementRef<HTMLInputElement>;
12
+ protected dateApi: DateApi<TDate>;
12
13
  protected valueProvider: DateValueProvider<TDate>;
13
14
  /**
14
15
  * Internal representation of current date time value
@@ -41,7 +42,7 @@ export declare class DateTimeInputDirective<TDate = unknown> extends DateTimeBas
41
42
  * @inheritdoc
42
43
  */
43
44
  blur: EventEmitter<FocusEvent>;
44
- constructor(elementRef: ElementRef<HTMLInputElement>, dateApi: DateApi<TDate>, formatProvider: FormatProvider, valueProvider: DateValueProvider<TDate>);
45
+ constructor(elementRef: ElementRef<HTMLInputElement>, dateApi: DateApi<TDate>, valueProvider: DateValueProvider<TDate>);
45
46
  /**
46
47
  * Called when component is destroyed
47
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeInput.directive.d.ts","sourceRoot":"","sources":["dateTimeInput.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,YAAY,EAAwC,SAAS,EAAC,MAAM,eAAe,CAAC;AAGnH,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAC,wBAAwB,EAAE,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAErF,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAI7C;;GAEG;AACH,qBAaa,sBAAsB,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,KAAK,CAAE,YAAW,aAAa,EAAE,SAAS;IA8EpG,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAGlD,SAAS,CAAC,aAAa,EAAE,iBAAiB,CAAC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,QAAQ,CAAC,KAAK,EAAE,OAAO,EAGjC;IAED;;OAEG;IACH,IAAW,OAAO,IAAI,WAAW,CAGhC;IAED;;OAEG;IACI,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,CAAkC;IAExE;;OAEG;IACI,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAkC;gBAGjD,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACtB,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,EACzC,aAAa,EAAE,iBAAiB,CAAC,KAAK,CAAC;IAW7D;;OAEG;IACa,WAAW,IAAI,IAAI;IAWnC;;;OAGG;IACH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAC,SAAS,GAAC,IAAI,GAAG,IAAI;IA6CvF;;OAEG;IAEH,SAAS,CAAC,WAAW,IAAI,IAAI;IAkB7B;;;OAGG;IAEH,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAK9C;;;OAGG;IAEH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;yCA/LpC,sBAAsB;2CAAtB,sBAAsB;CAmMlC"}
@@ -1,18 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
3
- import { FormatProvider } from '../../../../interfaces';
4
3
  import { DateApi } from '../../../../services';
5
- import { DateTimeRestrictedBase } from '../dateTimeRestrictedBase';
4
+ import { DateTimeBase } from '../dateTimeBase';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
8
7
  * Applies validator for date time max value
9
8
  */
10
- export declare class DateTimeMaxValidatorDirective<TDate = unknown> extends DateTimeRestrictedBase<TDate> implements Validator, OnInit {
9
+ export declare class DateTimeMaxValidatorDirective<TDate = unknown> extends DateTimeBase<TDate> implements Validator, OnInit {
10
+ protected dateApi: DateApi<TDate>;
11
11
  /**
12
12
  * Function used for validations
13
13
  */
14
14
  private _validator;
15
- constructor(dateApi: DateApi<TDate>, formatProvider: FormatProvider);
15
+ constructor(dateApi: DateApi<TDate>);
16
16
  /**
17
17
  * Initialize component
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeMaxValidator.directive.d.ts","sourceRoot":"","sources":["dateTimeMaxValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,MAAM,EAAC,MAAM,eAAe,CAAC;AACtF,OAAO,EAAC,eAAe,EAAiB,gBAAgB,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAExG,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,2BAA2B,CAAC;;AAEjE;;GAEG;AACH,qBAaa,6BAA6B,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,sBAAsB,CAAC,KAAK,CAAG,YAAW,SAAS,EAAE,MAAM;IAI3H;;OAEG;IACH,OAAO,CAAC,UAAU,CAA2B;gBAGf,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,EAChB,cAAc,EAAE,cAAc;IAQnE;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,GAAC,IAAI;IAOhE;;OAEG;cACgB,mBAAmB,IAAI,IAAI;yCA5CrC,6BAA6B;2CAA7B,6BAA6B;CAgDzC"}
1
+ {"version":3,"file":"dateTimeMaxValidator.directive.d.ts","sourceRoot":"","sources":["dateTimeMaxValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,MAAM,EAAC,MAAM,eAAe,CAAC;AACtF,OAAO,EAAC,eAAe,EAAiB,gBAAgB,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAIxG,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AACH,qBAaa,6BAA6B,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,KAAK,CAAG,YAAW,SAAS,EAAE,MAAM;IAUnF,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAN/D;;OAEG;IACH,OAAO,CAAC,UAAU,CAA2B;gBAGL,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAO/D;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,GAAC,IAAI;IAOhE;;OAEG;cACgB,mBAAmB,IAAI,IAAI;yCA1CrC,6BAA6B;2CAA7B,6BAA6B;CA8CzC"}
@@ -1,18 +1,18 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
3
- import { FormatProvider } from '../../../../interfaces';
4
3
  import { DateApi } from '../../../../services';
5
- import { DateTimeRestrictedBase } from '../dateTimeRestrictedBase';
4
+ import { DateTimeBase } from '../dateTimeBase';
6
5
  import * as i0 from "@angular/core";
7
6
  /**
8
7
  * Applies validator for date time min value
9
8
  */
10
- export declare class DateTimeMinValidatorDirective<TDate = unknown> extends DateTimeRestrictedBase<TDate> implements Validator, OnInit {
9
+ export declare class DateTimeMinValidatorDirective<TDate = unknown> extends DateTimeBase<TDate> implements Validator, OnInit {
10
+ protected dateApi: DateApi<TDate>;
11
11
  /**
12
12
  * Function used for validations
13
13
  */
14
14
  private _validator;
15
- constructor(dateApi: DateApi<TDate>, formatProvider: FormatProvider);
15
+ constructor(dateApi: DateApi<TDate>);
16
16
  /**
17
17
  * Initialize component
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeMinValidator.directive.d.ts","sourceRoot":"","sources":["dateTimeMinValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,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C,UAAU,CAA2B;gBAGL,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAO/D;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,GAAC,IAAI;IAOhE;;OAEG;cACgB,mBAAmB,IAAI,IAAI;yCA1CrC,6BAA6B;2CAA7B,6BAA6B;CA8CzC"}
@@ -1,6 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
3
- import { FormatProvider } from '../../../../interfaces';
4
3
  import { DateApi } from '../../../../services';
5
4
  import { DateTimeBase } from '../dateTimeBase';
6
5
  import * as i0 from "@angular/core";
@@ -8,11 +7,12 @@ import * as i0 from "@angular/core";
8
7
  * Applies validator for date time
9
8
  */
10
9
  export declare class DateTimeValidatorDirective<TDate = unknown> extends DateTimeBase<TDate> implements Validator, OnInit {
10
+ protected dateApi: DateApi<TDate>;
11
11
  /**
12
12
  * Function used for validations
13
13
  */
14
14
  private _validator;
15
- constructor(dateApi: DateApi<TDate>, formatProvider: FormatProvider);
15
+ constructor(dateApi: DateApi<TDate>);
16
16
  /**
17
17
  * Initialize component
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeValidator.directive.d.ts","sourceRoot":"","sources":["dateTimeValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,MAAM,EAAC,MAAM,eAAe,CAAC;AACtF,OAAO,EAAC,eAAe,EAAiB,gBAAgB,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAExG,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AACH,qBAaa,0BAA0B,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,KAAK,CAAE,YAAW,SAAS,EAAE,MAAM;IAI7G;;OAEG;IACH,OAAO,CAAC,UAAU,CAA2B;gBAGf,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,EAChB,cAAc,EAAE,cAAc;IAOnE;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,GAAC,IAAI;yCAjCvD,0BAA0B;2CAA1B,0BAA0B;CAqCtC"}
1
+ {"version":3,"file":"dateTimeValidator.directive.d.ts","sourceRoot":"","sources":["dateTimeValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,MAAM,EAAC,MAAM,eAAe,CAAC;AACtF,OAAO,EAAC,eAAe,EAAiB,gBAAgB,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAIxG,OAAO,EAAC,OAAO,EAAC,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AACH,qBAaa,0BAA0B,CAAC,KAAK,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,KAAK,CAAE,YAAW,SAAS,EAAE,MAAM;IAU/E,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAN/D;;OAEG;IACH,OAAO,CAAC,UAAU,CAA2B;gBAGL,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;IAO/D;;OAEG;IACI,QAAQ,IAAI,IAAI;IAOvB;;;;OAIG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,GAAC,IAAI;yCAhCvD,0BAA0B;2CAA1B,0BAA0B;CAoCtC"}
@@ -1,8 +1,8 @@
1
+ export * from './dateTime/dateTime.directive';
1
2
  export * from './dateTimeBase';
2
3
  export * from './dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive';
3
4
  export * from './dateTimeInput/dateTimeInput.directive';
4
5
  export * from './dateTimeMaxValidator/dateTimeMaxValidator.directive';
5
6
  export * from './dateTimeMinValidator/dateTimeMinValidator.directive';
6
- export * from './dateTimeRestrictedBase';
7
7
  export * from './dateTimeValidator/dateTimeValidator.directive';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uEAAuE,CAAC;AACtF,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,0BAA0B,CAAC;AACzC,cAAc,iDAAiD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uEAAuE,CAAC;AACtF,cAAc,yCAAyC,CAAC;AACxD,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC"}
@@ -1,15 +1,16 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "../directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive";
3
- import * as i2 from "../directives/dateTimeInput/dateTimeInput.directive";
4
- import * as i3 from "../directives/dateTimeMaxValidator/dateTimeMaxValidator.directive";
5
- import * as i4 from "../directives/dateTimeMinValidator/dateTimeMinValidator.directive";
6
- import * as i5 from "../directives/dateTimeValidator/dateTimeValidator.directive";
2
+ import * as i1 from "../directives/dateTime/dateTime.directive";
3
+ import * as i2 from "../directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive";
4
+ import * as i3 from "../directives/dateTimeInput/dateTimeInput.directive";
5
+ import * as i4 from "../directives/dateTimeMaxValidator/dateTimeMaxValidator.directive";
6
+ import * as i5 from "../directives/dateTimeMinValidator/dateTimeMinValidator.directive";
7
+ import * as i6 from "../directives/dateTimeValidator/dateTimeValidator.directive";
7
8
  /**
8
9
  * Module for basic date time directives, components, pipes
9
10
  */
10
11
  export declare class DateTimeModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimeModule, [typeof i1.DateTimeControlValueAccessorDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeMaxValidatorDirective, typeof i4.DateTimeMinValidatorDirective, typeof i5.DateTimeValidatorDirective], never, [typeof i1.DateTimeControlValueAccessorDirective, typeof i2.DateTimeInputDirective, typeof i3.DateTimeMaxValidatorDirective, typeof i4.DateTimeMinValidatorDirective, typeof i5.DateTimeValidatorDirective]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateTimeModule, [typeof i1.DateTimeDirective, typeof i2.DateTimeControlValueAccessorDirective, typeof i3.DateTimeInputDirective, typeof i4.DateTimeMaxValidatorDirective, typeof i5.DateTimeMinValidatorDirective, typeof i6.DateTimeValidatorDirective], never, [typeof i1.DateTimeDirective, typeof i2.DateTimeControlValueAccessorDirective, typeof i3.DateTimeInputDirective, typeof i4.DateTimeMaxValidatorDirective, typeof i5.DateTimeMinValidatorDirective, typeof i6.DateTimeValidatorDirective]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<DateTimeModule>;
14
15
  }
15
16
  //# sourceMappingURL=dateTime.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateTime.module.d.ts","sourceRoot":"","sources":["dateTime.module.ts"],"names":[],"mappings":";;;;;;AAIA;;GAEG;AACH,qBAmBa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAE1B"}
1
+ {"version":3,"file":"dateTime.module.d.ts","sourceRoot":"","sources":["dateTime.module.ts"],"names":[],"mappings":";;;;;;;AAIA;;GAEG;AACH,qBAqBa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAE1B"}
@@ -1,5 +1,6 @@
1
1
  import { Observable, Subject } from 'rxjs';
2
2
  import { DateTimeObjectValue } from '../../../misc/types';
3
+ import { DateApiObject } from '../../../services';
3
4
  import { DateTimePicker } from '../interfaces';
4
5
  /**
5
6
  * Base abstract class for each date time period picker
@@ -10,13 +11,17 @@ export declare abstract class DateTimePeriodPickerBase<TDate = unknown, TOptions
10
11
  */
11
12
  protected valueChangeSubject: Subject<void>;
12
13
  /**
13
- * Subject used for emitting of go up
14
+ * Subject used for scaling up
14
15
  */
15
- protected goUpSubject: Subject<TDate>;
16
+ protected scaleUpSubject: Subject<TDate>;
16
17
  /**
17
- * Subject used for emitting of go down
18
+ * Subject used for scaling down
18
19
  */
19
- protected goDownSubject: Subject<TDate>;
20
+ protected scaleDownSubject: Subject<TDate>;
21
+ /**
22
+ * Date api instance for displayed date
23
+ */
24
+ protected displayDate: DateApiObject<TDate> | undefined | null;
20
25
  /**
21
26
  * @inheritdoc
22
27
  */
@@ -32,11 +37,19 @@ export declare abstract class DateTimePeriodPickerBase<TDate = unknown, TOptions
32
37
  /**
33
38
  * @inheritdoc
34
39
  */
35
- canGoUp: boolean;
40
+ maxDate: TDate | undefined | null;
41
+ /**
42
+ * @inheritdoc
43
+ */
44
+ minDate: TDate | undefined | null;
45
+ /**
46
+ * @inheritdoc
47
+ */
48
+ canScaleUp: boolean;
36
49
  /**
37
50
  * @inheritdoc
38
51
  */
39
- canGoDown: boolean;
52
+ canScaleDown: boolean;
40
53
  /**
41
54
  * @inheritdoc
42
55
  */
@@ -44,10 +57,10 @@ export declare abstract class DateTimePeriodPickerBase<TDate = unknown, TOptions
44
57
  /**
45
58
  * @inheritdoc
46
59
  */
47
- get goUp(): Observable<TDate>;
60
+ get scaleUp(): Observable<TDate>;
48
61
  /**
49
62
  * @inheritdoc
50
63
  */
51
- get goDown(): Observable<TDate>;
64
+ get scaleDown(): Observable<TDate>;
52
65
  }
53
66
  //# sourceMappingURL=dateTimePeriodPickerBase.d.ts.map