devextreme-angular
Version:
DevExtreme UI and Visualization Components for Angular
1 lines • 72.2 kB
Source Map (JSON)
{"version":3,"file":"devextreme-angular-ui-date-box.mjs","sources":["../../../dist/ui/date-box/index.ts","../../../dist/ui/date-box/devextreme-angular-ui-date-box.ts"],"sourcesContent":["/*!\n * devextreme-angular\n * Version: 26.1.3\n * Build date: Wed Jun 10 2026\n *\n * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file in the root of the project for details.\n *\n * https://github.com/DevExpress/DevExtreme\n */\n\n/* tslint:disable:max-line-length */\n\n\nimport {\n TransferState,\n Component,\n NgModule,\n ElementRef,\n NgZone,\n PLATFORM_ID,\n Inject,\n\n Input,\n Output,\n OnDestroy,\n EventEmitter,\n forwardRef,\n HostListener,\n OnChanges,\n DoCheck,\n SimpleChanges,\n ContentChildren,\n QueryList\n} from '@angular/core';\n\n\nimport type { ApplyValueMode, TextEditorButton, LabelMode, EditorStyle, ValidationMessageMode, Mode, Position, ValidationStatus } from 'devextreme/common';\nimport type { DropDownPredefinedButton } from 'devextreme/ui/drop_down_editor/ui.drop_down_editor';\nimport type { dxCalendarOptions } from 'devextreme/ui/calendar';\nimport type { Format } from 'devextreme/common/core/localization';\nimport type { dxPopupOptions } from 'devextreme/ui/popup';\nimport type { default as dxDateBox, ChangeEvent, ClosedEvent, ContentReadyEvent, CopyEvent, CutEvent, DisposingEvent, EnterKeyEvent, FocusInEvent, FocusOutEvent, InitializedEvent, InputEvent, KeyDownEvent, KeyUpEvent, OpenedEvent, OptionChangedEvent, PasteEvent, ValueChangedEvent, DatePickerType, DateType } from 'devextreme/ui/date_box';\n\nimport DxDateBox from 'devextreme/ui/date_box';\n\nimport {\n ControlValueAccessor,\n NG_VALUE_ACCESSOR\n} from '@angular/forms';\n\nimport {\n DxComponent,\n DxTemplateHost,\n DxIntegrationModule,\n DxTemplateModule,\n NestedOptionHost,\n IterableDifferHelper,\n WatcherHelper,\n CollectionNestedOption,\n} from 'devextreme-angular/core';\n\nimport { DxiButtonModule } from 'devextreme-angular/ui/nested';\nimport { DxoOptionsModule } from 'devextreme-angular/ui/nested';\nimport { DxoCalendarOptionsModule } from 'devextreme-angular/ui/nested';\nimport { DxoDisplayFormatModule } from 'devextreme-angular/ui/nested';\nimport { DxoDropDownOptionsModule } from 'devextreme-angular/ui/nested';\nimport { DxoAnimationModule } from 'devextreme-angular/ui/nested';\nimport { DxoHideModule } from 'devextreme-angular/ui/nested';\nimport { DxoFromModule } from 'devextreme-angular/ui/nested';\nimport { DxoPositionModule } from 'devextreme-angular/ui/nested';\nimport { DxoAtModule } from 'devextreme-angular/ui/nested';\nimport { DxoBoundaryOffsetModule } from 'devextreme-angular/ui/nested';\nimport { DxoCollisionModule } from 'devextreme-angular/ui/nested';\nimport { DxoMyModule } from 'devextreme-angular/ui/nested';\nimport { DxoOffsetModule } from 'devextreme-angular/ui/nested';\nimport { DxoToModule } from 'devextreme-angular/ui/nested';\nimport { DxoShowModule } from 'devextreme-angular/ui/nested';\n\nimport { DxoDateBoxAnimationModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxAtModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxBoundaryOffsetModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxiDateBoxButtonModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxCalendarOptionsModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxCollisionModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxDisplayFormatModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxDropDownOptionsModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxFromModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxHideModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxMyModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxOffsetModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxOptionsModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxPositionModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxShowModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxoDateBoxToModule } from 'devextreme-angular/ui/date-box/nested';\nimport { DxiDateBoxToolbarItemModule } from 'devextreme-angular/ui/date-box/nested';\nimport { \n PROPERTY_TOKEN_buttons,\n PROPERTY_TOKEN_toolbarItems,\n } from 'devextreme-angular/core/tokens';\n\n\n\nconst CUSTOM_VALUE_ACCESSOR_PROVIDER = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DxDateBoxComponent),\n multi: true\n};\n/**\n * The DateBox is a UI component that displays date and time in a specified format, and enables a user to pick or type in the required date/time value.\n\n */\n@Component({\n selector: 'dx-date-box',\n template: '',\n host: { ngSkipHydration: 'true' },\n imports: [ DxIntegrationModule ],\n providers: [\n DxTemplateHost,\n WatcherHelper,\n CUSTOM_VALUE_ACCESSOR_PROVIDER,\n NestedOptionHost,\n IterableDifferHelper\n ]\n})\nexport class DxDateBoxComponent extends DxComponent implements OnDestroy, ControlValueAccessor, OnChanges, DoCheck {\n\n @ContentChildren(PROPERTY_TOKEN_buttons)\n set _buttonsContentChildren(value: QueryList<CollectionNestedOption>) {\n this.setChildren('buttons', value);\n }\n\n @ContentChildren(PROPERTY_TOKEN_toolbarItems)\n set _toolbarItemsContentChildren(value: QueryList<CollectionNestedOption>) {\n this.setChildren('toolbarItems', value);\n }\n\n instance: DxDateBox = null;\n\n /**\n * Specifies whether or not the UI component allows an end user to enter a custom value.\n \n */\n @Input()\n get acceptCustomValue(): boolean {\n return this._getOption('acceptCustomValue');\n }\n set acceptCustomValue(value: boolean) {\n this._setOption('acceptCustomValue', value);\n }\n\n\n /**\n * Specifies the shortcut key that sets focus on the UI component.\n \n */\n @Input()\n get accessKey(): string | undefined {\n return this._getOption('accessKey');\n }\n set accessKey(value: string | undefined) {\n this._setOption('accessKey', value);\n }\n\n\n /**\n * Specifies whether the UI component changes its visual state as a result of user interaction.\n \n */\n @Input()\n get activeStateEnabled(): boolean {\n return this._getOption('activeStateEnabled');\n }\n set activeStateEnabled(value: boolean) {\n this._setOption('activeStateEnabled', value);\n }\n\n\n /**\n * Specifies whether or not adaptive UI component rendering is enabled on a small screen.\n \n */\n @Input()\n get adaptivityEnabled(): boolean {\n return this._getOption('adaptivityEnabled');\n }\n set adaptivityEnabled(value: boolean) {\n this._setOption('adaptivityEnabled', value);\n }\n\n\n /**\n * Specifies the Apply button's text.\n \n */\n @Input()\n get applyButtonText(): string {\n return this._getOption('applyButtonText');\n }\n set applyButtonText(value: string) {\n this._setOption('applyButtonText', value);\n }\n\n\n /**\n * Specifies the way an end user applies the selected value.\n \n */\n @Input()\n get applyValueMode(): ApplyValueMode {\n return this._getOption('applyValueMode');\n }\n set applyValueMode(value: ApplyValueMode) {\n this._setOption('applyValueMode', value);\n }\n\n\n /**\n * Allows you to add custom buttons to the input text field.\n \n */\n @Input()\n get buttons(): Array<DropDownPredefinedButton | TextEditorButton> {\n return this._getOption('buttons');\n }\n set buttons(value: Array<DropDownPredefinedButton | TextEditorButton>) {\n this._setOption('buttons', value);\n }\n\n\n /**\n * Configures the calendar's value picker.\n \n */\n @Input()\n get calendarOptions(): dxCalendarOptions {\n return this._getOption('calendarOptions');\n }\n set calendarOptions(value: dxCalendarOptions) {\n this._setOption('calendarOptions', value);\n }\n\n\n /**\n * Specifies the Cancel button's text.\n \n */\n @Input()\n get cancelButtonText(): string {\n return this._getOption('cancelButtonText');\n }\n set cancelButtonText(value: string) {\n this._setOption('cancelButtonText', value);\n }\n\n\n /**\n * Specifies the message displayed if the specified date is later than the max value or earlier than the min value.\n \n */\n @Input()\n get dateOutOfRangeMessage(): string {\n return this._getOption('dateOutOfRangeMessage');\n }\n set dateOutOfRangeMessage(value: string) {\n this._setOption('dateOutOfRangeMessage', value);\n }\n\n\n /**\n * Specifies the date value serialization format.\n \n */\n @Input()\n get dateSerializationFormat(): string | undefined {\n return this._getOption('dateSerializationFormat');\n }\n set dateSerializationFormat(value: string | undefined) {\n this._setOption('dateSerializationFormat', value);\n }\n\n\n /**\n * Specifies whether to render the drop-down field's content when it is displayed. If false, the content is rendered immediately.\n \n */\n @Input()\n get deferRendering(): boolean {\n return this._getOption('deferRendering');\n }\n set deferRendering(value: boolean) {\n this._setOption('deferRendering', value);\n }\n\n\n /**\n * Specifies whether the UI component responds to user interaction.\n \n */\n @Input()\n get disabled(): boolean {\n return this._getOption('disabled');\n }\n set disabled(value: boolean) {\n this._setOption('disabled', value);\n }\n\n\n /**\n * Specifies dates that users cannot select. Applies only if pickerType is 'calendar'.\n \n */\n @Input()\n get disabledDates(): Array<Date> | ((data: { component: dxDateBox, date: Date, view: string }) => boolean) {\n return this._getOption('disabledDates');\n }\n set disabledDates(value: Array<Date> | ((data: { component: dxDateBox, date: Date, view: string }) => boolean)) {\n this._setOption('disabledDates', value);\n }\n\n\n /**\n * Specifies the date's display format.\n \n */\n @Input()\n get displayFormat(): Format {\n return this._getOption('displayFormat');\n }\n set displayFormat(value: Format) {\n this._setOption('displayFormat', value);\n }\n\n\n /**\n * Specifies a custom template for the drop-down button.\n \n */\n @Input()\n get dropDownButtonTemplate(): any {\n return this._getOption('dropDownButtonTemplate');\n }\n set dropDownButtonTemplate(value: any) {\n this._setOption('dropDownButtonTemplate', value);\n }\n\n\n /**\n * Configures the drop-down that holds the content.\n \n */\n @Input()\n get dropDownOptions(): dxPopupOptions<any> {\n return this._getOption('dropDownOptions');\n }\n set dropDownOptions(value: dxPopupOptions<any>) {\n this._setOption('dropDownOptions', value);\n }\n\n\n /**\n * Specifies the global attributes to be attached to the UI component's container element.\n \n */\n @Input()\n get elementAttr(): Record<string, any> {\n return this._getOption('elementAttr');\n }\n set elementAttr(value: Record<string, any>) {\n this._setOption('elementAttr', value);\n }\n\n\n /**\n * Specifies whether the UI component can be focused using keyboard navigation.\n \n */\n @Input()\n get focusStateEnabled(): boolean {\n return this._getOption('focusStateEnabled');\n }\n set focusStateEnabled(value: boolean) {\n this._setOption('focusStateEnabled', value);\n }\n\n\n /**\n * Specifies the UI component's height.\n \n */\n @Input()\n get height(): number | string | undefined {\n return this._getOption('height');\n }\n set height(value: number | string | undefined) {\n this._setOption('height', value);\n }\n\n\n /**\n * Specifies text for a hint that appears when a user pauses on the UI component.\n \n */\n @Input()\n get hint(): string | undefined {\n return this._getOption('hint');\n }\n set hint(value: string | undefined) {\n this._setOption('hint', value);\n }\n\n\n /**\n * Specifies whether the UI component changes its state when a user pauses on it.\n \n */\n @Input()\n get hoverStateEnabled(): boolean {\n return this._getOption('hoverStateEnabled');\n }\n set hoverStateEnabled(value: boolean) {\n this._setOption('hoverStateEnabled', value);\n }\n\n\n /**\n * Specifies the attributes to be passed on to the underlying HTML element.\n \n */\n @Input()\n get inputAttr(): any {\n return this._getOption('inputAttr');\n }\n set inputAttr(value: any) {\n this._setOption('inputAttr', value);\n }\n\n\n /**\n * Specifies the interval between neighboring values in the popup list in minutes.\n \n */\n @Input()\n get interval(): number {\n return this._getOption('interval');\n }\n set interval(value: number) {\n this._setOption('interval', value);\n }\n\n\n /**\n * Specifies the message displayed if the typed value is not a valid date or time.\n \n */\n @Input()\n get invalidDateMessage(): string {\n return this._getOption('invalidDateMessage');\n }\n set invalidDateMessage(value: string) {\n this._setOption('invalidDateMessage', value);\n }\n\n\n /**\n * Specifies whether the component's current value differs from the initial value.\n \n */\n @Input()\n get isDirty(): boolean {\n return this._getOption('isDirty');\n }\n set isDirty(value: boolean) {\n this._setOption('isDirty', value);\n }\n\n\n /**\n * Specifies or indicates whether the editor's value is valid.\n \n */\n @Input()\n get isValid(): boolean {\n return this._getOption('isValid');\n }\n set isValid(value: boolean) {\n this._setOption('isValid', value);\n }\n\n\n /**\n * Specifies a text string used to annotate the editor's value.\n \n */\n @Input()\n get label(): string {\n return this._getOption('label');\n }\n set label(value: string) {\n this._setOption('label', value);\n }\n\n\n /**\n * Specifies the label's display mode.\n \n */\n @Input()\n get labelMode(): LabelMode {\n return this._getOption('labelMode');\n }\n set labelMode(value: LabelMode) {\n this._setOption('labelMode', value);\n }\n\n\n /**\n * The latest date that can be selected in the UI component.\n \n */\n @Input()\n get max(): Date | null | number | string | undefined {\n return this._getOption('max');\n }\n set max(value: Date | null | number | string | undefined) {\n this._setOption('max', value);\n }\n\n\n /**\n * Specifies the maximum number of characters you can enter into the textbox.\n \n */\n @Input()\n get maxLength(): number | string {\n return this._getOption('maxLength');\n }\n set maxLength(value: number | string) {\n this._setOption('maxLength', value);\n }\n\n\n /**\n * The earliest date that can be selected in the UI component.\n \n */\n @Input()\n get min(): Date | null | number | string | undefined {\n return this._getOption('min');\n }\n set min(value: Date | null | number | string | undefined) {\n this._setOption('min', value);\n }\n\n\n /**\n * The value to be assigned to the `name` attribute of the underlying HTML element.\n \n */\n @Input()\n get name(): string {\n return this._getOption('name');\n }\n set name(value: string) {\n this._setOption('name', value);\n }\n\n\n /**\n * Specifies whether or not the drop-down editor is displayed.\n \n */\n @Input()\n get opened(): boolean {\n return this._getOption('opened');\n }\n set opened(value: boolean) {\n this._setOption('opened', value);\n }\n\n\n /**\n * Specifies whether a user can open the drop-down list by clicking a text field.\n \n */\n @Input()\n get openOnFieldClick(): boolean {\n return this._getOption('openOnFieldClick');\n }\n set openOnFieldClick(value: boolean) {\n this._setOption('openOnFieldClick', value);\n }\n\n\n /**\n * Specifies the type of the date/time picker.\n \n */\n @Input()\n get pickerType(): DatePickerType {\n return this._getOption('pickerType');\n }\n set pickerType(value: DatePickerType) {\n this._setOption('pickerType', value);\n }\n\n\n /**\n * Specifies a placeholder for the input field.\n \n */\n @Input()\n get placeholder(): string {\n return this._getOption('placeholder');\n }\n set placeholder(value: string) {\n this._setOption('placeholder', value);\n }\n\n\n /**\n * Specifies whether the editor is read-only.\n \n */\n @Input()\n get readOnly(): boolean {\n return this._getOption('readOnly');\n }\n set readOnly(value: boolean) {\n this._setOption('readOnly', value);\n }\n\n\n /**\n * Switches the UI component to a right-to-left representation.\n \n */\n @Input()\n get rtlEnabled(): boolean {\n return this._getOption('rtlEnabled');\n }\n set rtlEnabled(value: boolean) {\n this._setOption('rtlEnabled', value);\n }\n\n\n /**\n * Specifies whether to show the analog clock in the value picker. Applies only if type is 'datetime' and pickerType is 'calendar'.\n \n */\n @Input()\n get showAnalogClock(): boolean {\n return this._getOption('showAnalogClock');\n }\n set showAnalogClock(value: boolean) {\n this._setOption('showAnalogClock', value);\n }\n\n\n /**\n * Specifies whether to display the Clear button in the UI component.\n \n */\n @Input()\n get showClearButton(): boolean {\n return this._getOption('showClearButton');\n }\n set showClearButton(value: boolean) {\n this._setOption('showClearButton', value);\n }\n\n\n /**\n * Specifies whether the drop-down button is visible.\n \n */\n @Input()\n get showDropDownButton(): boolean {\n return this._getOption('showDropDownButton');\n }\n set showDropDownButton(value: boolean) {\n this._setOption('showDropDownButton', value);\n }\n\n\n /**\n * Specifies whether or not the UI component checks the inner text for spelling mistakes.\n \n */\n @Input()\n get spellcheck(): boolean {\n return this._getOption('spellcheck');\n }\n set spellcheck(value: boolean) {\n this._setOption('spellcheck', value);\n }\n\n\n /**\n * Specifies how the UI component's text field is styled.\n \n */\n @Input()\n get stylingMode(): EditorStyle {\n return this._getOption('stylingMode');\n }\n set stylingMode(value: EditorStyle) {\n this._setOption('stylingMode', value);\n }\n\n\n /**\n * Specifies the number of the element when the Tab key is used for navigating.\n \n */\n @Input()\n get tabIndex(): number {\n return this._getOption('tabIndex');\n }\n set tabIndex(value: number) {\n this._setOption('tabIndex', value);\n }\n\n\n /**\n * The read-only property that stores the text displayed by the UI component input element.\n \n */\n @Input()\n get text(): string {\n return this._getOption('text');\n }\n set text(value: string) {\n this._setOption('text', value);\n }\n\n\n /**\n * Specified the Today button's text.\n \n */\n @Input()\n get todayButtonText(): string {\n return this._getOption('todayButtonText');\n }\n set todayButtonText(value: string) {\n this._setOption('todayButtonText', value);\n }\n\n\n /**\n * A format used to display date/time information.\n \n */\n @Input()\n get type(): DateType {\n return this._getOption('type');\n }\n set type(value: DateType) {\n this._setOption('type', value);\n }\n\n\n /**\n * Specifies whether to use an input mask based on the displayFormat property.\n \n */\n @Input()\n get useMaskBehavior(): boolean {\n return this._getOption('useMaskBehavior');\n }\n set useMaskBehavior(value: boolean) {\n this._setOption('useMaskBehavior', value);\n }\n\n\n /**\n * Information on the broken validation rule. Contains the first item from the validationErrors array.\n \n */\n @Input()\n get validationError(): any {\n return this._getOption('validationError');\n }\n set validationError(value: any) {\n this._setOption('validationError', value);\n }\n\n\n /**\n * An array of validation errors.\n \n */\n @Input()\n get validationErrors(): Array<any> {\n return this._getOption('validationErrors');\n }\n set validationErrors(value: Array<any>) {\n this._setOption('validationErrors', value);\n }\n\n\n /**\n * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.\n \n */\n @Input()\n get validationMessageMode(): ValidationMessageMode {\n return this._getOption('validationMessageMode');\n }\n set validationMessageMode(value: ValidationMessageMode) {\n this._setOption('validationMessageMode', value);\n }\n\n\n /**\n * Specifies the position of a validation message relative to the component. The validation message describes the validation rules that this component's value does not satisfy.\n \n */\n @Input()\n get validationMessagePosition(): Mode | Position {\n return this._getOption('validationMessagePosition');\n }\n set validationMessagePosition(value: Mode | Position) {\n this._setOption('validationMessagePosition', value);\n }\n\n\n /**\n * Indicates or specifies the current validation status.\n \n */\n @Input()\n get validationStatus(): ValidationStatus {\n return this._getOption('validationStatus');\n }\n set validationStatus(value: ValidationStatus) {\n this._setOption('validationStatus', value);\n }\n\n\n /**\n * Specifies the currently selected date and time.\n \n */\n @Input()\n get value(): Date | null | number | string {\n return this._getOption('value');\n }\n set value(value: Date | null | number | string) {\n this._setOption('value', value);\n }\n\n\n /**\n * Specifies the DOM events after which the UI component's value should be updated.\n \n */\n @Input()\n get valueChangeEvent(): string {\n return this._getOption('valueChangeEvent');\n }\n set valueChangeEvent(value: string) {\n this._setOption('valueChangeEvent', value);\n }\n\n\n /**\n * Specifies whether the UI component is visible.\n \n */\n @Input()\n get visible(): boolean {\n return this._getOption('visible');\n }\n set visible(value: boolean) {\n this._setOption('visible', value);\n }\n\n\n /**\n * Specifies the UI component's width.\n \n */\n @Input()\n get width(): number | string | undefined {\n return this._getOption('width');\n }\n set width(value: number | string | undefined) {\n this._setOption('width', value);\n }\n\n /**\n \n * A function that is executed when the UI component loses focus after the text field's content was changed using the keyboard.\n \n \n */\n @Output() onChange: EventEmitter<ChangeEvent>;\n\n /**\n \n * A function that is executed once the drop-down editor is closed.\n \n \n */\n @Output() onClosed: EventEmitter<ClosedEvent>;\n\n /**\n \n * A function that is executed when the UI component is rendered and each time the component is repainted.\n \n \n */\n @Output() onContentReady: EventEmitter<ContentReadyEvent>;\n\n /**\n \n * A function that is executed when the UI component's input has been copied.\n \n \n */\n @Output() onCopy: EventEmitter<CopyEvent>;\n\n /**\n \n * A function that is executed when the UI component's input has been cut.\n \n \n */\n @Output() onCut: EventEmitter<CutEvent>;\n\n /**\n \n * A function that is executed before the UI component is disposed of.\n \n \n */\n @Output() onDisposing: EventEmitter<DisposingEvent>;\n\n /**\n \n * A function that is executed when the Enter key has been pressed while the UI component is focused.\n \n \n */\n @Output() onEnterKey: EventEmitter<EnterKeyEvent>;\n\n /**\n \n * A function that is executed when the UI component gets focus.\n \n \n */\n @Output() onFocusIn: EventEmitter<FocusInEvent>;\n\n /**\n \n * A function that is executed when the UI component loses focus.\n \n \n */\n @Output() onFocusOut: EventEmitter<FocusOutEvent>;\n\n /**\n \n * A function used in JavaScript frameworks to save the UI component instance.\n \n \n */\n @Output() onInitialized: EventEmitter<InitializedEvent>;\n\n /**\n \n * A function that is executed each time the UI component's input is changed while the UI component is focused.\n \n \n */\n @Output() onInput: EventEmitter<InputEvent>;\n\n /**\n \n * A function that is executed when a user is pressing a key on the keyboard.\n \n \n */\n @Output() onKeyDown: EventEmitter<KeyDownEvent>;\n\n /**\n \n * A function that is executed when a user releases a key on the keyboard.\n \n \n */\n @Output() onKeyUp: EventEmitter<KeyUpEvent>;\n\n /**\n \n * A function that is executed once the drop-down editor is opened.\n \n \n */\n @Output() onOpened: EventEmitter<OpenedEvent>;\n\n /**\n \n * A function that is executed after a UI component property is changed.\n \n \n */\n @Output() onOptionChanged: EventEmitter<OptionChangedEvent>;\n\n /**\n \n * A function that is executed when the UI component's input has been pasted.\n \n \n */\n @Output() onPaste: EventEmitter<PasteEvent>;\n\n /**\n \n * A function that is executed after the UI component's value is changed.\n \n \n */\n @Output() onValueChanged: EventEmitter<ValueChangedEvent>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() acceptCustomValueChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() accessKeyChange: EventEmitter<string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() activeStateEnabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() adaptivityEnabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() applyButtonTextChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() applyValueModeChange: EventEmitter<ApplyValueMode>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() buttonsChange: EventEmitter<Array<DropDownPredefinedButton | TextEditorButton>>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() calendarOptionsChange: EventEmitter<dxCalendarOptions>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() cancelButtonTextChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() dateOutOfRangeMessageChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() dateSerializationFormatChange: EventEmitter<string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() deferRenderingChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() disabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() disabledDatesChange: EventEmitter<Array<Date> | ((data: { component: dxDateBox, date: Date, view: string }) => boolean)>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() displayFormatChange: EventEmitter<Format>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() dropDownButtonTemplateChange: EventEmitter<any>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() dropDownOptionsChange: EventEmitter<dxPopupOptions<any>>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() elementAttrChange: EventEmitter<Record<string, any>>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() focusStateEnabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() heightChange: EventEmitter<number | string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() hintChange: EventEmitter<string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() hoverStateEnabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() inputAttrChange: EventEmitter<any>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() intervalChange: EventEmitter<number>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() invalidDateMessageChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() isDirtyChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() isValidChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() labelChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() labelModeChange: EventEmitter<LabelMode>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() maxChange: EventEmitter<Date | null | number | string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() maxLengthChange: EventEmitter<number | string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() minChange: EventEmitter<Date | null | number | string | undefined>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() nameChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() openedChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() openOnFieldClickChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() pickerTypeChange: EventEmitter<DatePickerType>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() placeholderChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() readOnlyChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() rtlEnabledChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() showAnalogClockChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() showClearButtonChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() showDropDownButtonChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() spellcheckChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() stylingModeChange: EventEmitter<EditorStyle>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() tabIndexChange: EventEmitter<number>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() textChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() todayButtonTextChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() typeChange: EventEmitter<DateType>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() useMaskBehaviorChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() validationErrorChange: EventEmitter<any>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() validationErrorsChange: EventEmitter<Array<any>>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() validationMessageModeChange: EventEmitter<ValidationMessageMode>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() validationMessagePositionChange: EventEmitter<Mode | Position>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() validationStatusChange: EventEmitter<ValidationStatus>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() valueChange: EventEmitter<Date | null | number | string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() valueChangeEventChange: EventEmitter<string>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() visibleChange: EventEmitter<boolean>;\n\n /**\n \n * This member supports the internal infrastructure and is not intended to be used directly from your code.\n \n */\n @Output() widthChange: EventEmitter<number | string | undefined>;\n\n /**\n \n * \n \n \n */\n @Output() onBlur: EventEmitter<any>;\n\n\n @HostListener('valueChange', ['$event']) change(_) { }\n @HostListener('onBlur', ['$event']) touched = (_) => {};\n\n\n constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost,\n private _watcherHelper: WatcherHelper,\n private _idh: IterableDifferHelper,\n optionHost: NestedOptionHost,\n transferState: TransferState,\n @Inject(PLATFORM_ID) platformId: any) {\n\n super(elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId);\n\n this._createEventEmitters([\n { subscribe: 'change', emit: 'onChange' },\n { subscribe: 'closed', emit: 'onClosed' },\n { subscribe: 'contentReady', emit: 'onContentReady' },\n { subscribe: 'copy', emit: 'onCopy' },\n { subscribe: 'cut', emit: 'onCut' },\n { subscribe: 'disposing', emit: 'onDisposing' },\n { subscribe: 'enterKey', emit: 'onEnterKey' },\n { subscribe: 'focusIn', emit: 'onFocusIn' },\n { subscribe: 'focusOut', emit: 'onFocusOut' },\n { subscribe: 'initialized', emit: 'onInitialized' },\n { subscribe: 'input', emit: 'onInput' },\n { subscribe: 'keyDown', emit: 'onKeyDown' },\n { subscribe: 'keyUp', emit: 'onKeyUp' },\n { subscribe: 'opened', emit: 'onOpened' },\n { subscribe: 'optionChanged', emit: 'onOptionChanged' },\n { subscribe: 'paste', emit: 'onPaste' },\n { subscribe: 'valueChanged', emit: 'onValueChanged' },\n { emit: 'acceptCustomValueChange' },\n { emit: 'accessKeyChange' },\n { emit: 'activeStateEnabledChange' },\n { emit: 'adaptivityEnabledChange' },\n { emit: 'applyButtonTextChange' },\n { emit: 'applyValueModeChange' },\n { emit: 'buttonsChange' },\n { emit: 'calendarOptionsChange' },\n { emit: 'cancelButtonTextChange' },\n { emit: 'dateOutOfRangeMessageChange' },\n { emit: 'dateSerializationFormatChange' },\n { emit: 'deferRenderingChange' },\n { emit: 'disabledChange' },\n { emit: 'disabledDatesChange' },\n { emit: 'displayFormatChange' },\n { emit: 'dropDownButtonTemplateChange' },\n { emit: 'dropDownOptionsChange' },\n { emit: 'elementAttrChange' },\n { emit: 'focusStateEnabledChange' },\n { emit: 'heightChange' },\n { emit: 'hintChange' },\n { emit: 'hoverStateEnabledChange' },\n { emit: 'inputAttrChange' },\n { emit: 'intervalChange' },\n { emit: 'invalidDateMessageChange' },\n { emit: 'isDirtyChange' },\n { emit: 'isValidChange' },\n { emit: 'labelChange' },\n { emit: 'labelModeChange' },\n { emit: 'maxChange' },\n { emit: 'maxLengthChange' },\n { emit: 'minChange' },\n { emit: 'nameChange' },\n { emit: 'openedChange' },\n { emit: 'openOnFieldClickChange' },\n { emit: 'pickerTypeChange' },\n { emit: 'placeholderChange' },\n { emit: 'readOnlyChange' },\n { emit: 'rtlEnabledChange' },\n { emit: 'showAnalogClockChange' },\n { emit: 'showClearButtonChange' },\n { emit: 'showDropDownButtonChange' },\n { emit: 'spellcheckChange' },\n { emit: 'stylingModeChange' },\n { emit: 'tabIndexChange' },\n { emit: 'textChange' },\n { emit: 'todayButtonTextChange' },\n { emit: 'typeChange' },\n { emit: 'useMaskBehaviorChange' },\n { emit: 'validationErrorChange' },\n { emit: 'validationErrorsChange' },\n { emit: 'validationMessageModeChange' },\n { emit: 'validationMessagePositionChange' },\n { emit: 'validationStatusChange' },\n { emit: 'valueChange' },\n { emit: 'valueChangeEventChange' },\n { emit: 'visibleChange' },\n { emit: 'widthChange' },\n { emit: 'onBlur' }\n ]);\n\n this._idh.setHost(this);\n optionHost.setHost(this);\n }\n\n protected _createInstance(element, options) {\n\n return new DxDateBox(element, options);\n }\n\n\n writeValue(value: any): void {\n this.eventHelper.lockedValueChangeEvent = true;\n this.value = value;\n this.eventHelper.lockedValueChangeEvent = false;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled;\n }\n\n registerOnChange(fn: (_: any) => void): void { this.change = fn; }\n registerOnTouched(fn: () => void): void { this.touched = fn; }\n\n _createWidget(element: any) {\n super._createWidget(element);\n this.instance.on('focusOut', (e) => {\n this.eventHelper.fireNgEvent('onBlur', [e]);\n });\n }\n\n ngOnDestroy() {\n this._destroyWidget();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n super.ngOnChanges(changes);\n this.setupChanges('buttons', changes);\n this.setupChanges('disabledDates', changes);\n this.setupChanges('validationErrors', changes);\n }\n\n setupChanges(prop: string, changes: SimpleChanges) {\n if (!(prop in this._optionsToUpdate)) {\n this._idh.setup(prop, changes);\n }\n }\n\n ngDoCheck() {\n this._idh.doCheck('buttons');\n this._idh.doCheck('disabledDates');\n this._idh.doCheck('validationErrors');\n this._watcherHelper.checkWatchers();\n super.ngDoCheck();\n super.clearChangedOptions();\n }\n\n _setOption(name: string, value: any) {\n let isSetup = this._idh.setupSingle(name, value);\n let isChanged = this._idh.getChanges(name, value) !== null;\n\n if (isSetup || isChanged) {\n super._setOption(name, value);\n }\n }\n}\n\n@NgModule({\n imports: [\n DxDateBoxComponent,\n DxiButtonModule,\n DxoOptionsModule,\n DxoCalendarOptionsModule,\n DxoDisplayFormatModule,\n DxoDropDownOptionsModule,\n DxoAnimationModule,\n DxoHideModule,\n DxoFromModule,\n DxoPositionModule,\n DxoAtModule,\n DxoBoundaryOffsetModule,\n DxoCollisionModule,\n DxoMyModule,\n DxoOffsetModule,\n DxoToModule,\n DxoShowModule,\n DxoDateBoxAnimationModule,\n DxoDateBoxAtModule,\n DxoDateBoxBoundaryOffsetModule,\n DxiDateBoxButtonModule,\n DxoDateBoxCalendarOptionsModule,\n DxoDateBoxCollisionModule,\n DxoDateBoxDisplayFormatModule,\n DxoDateBoxDropDownOptionsModule,\n DxoDateBoxFromModule,\n DxoDateBoxHideModule,\n DxoDateBoxMyModule,\n DxoDateBoxOffsetModule,\n DxoDateBoxOptionsModule,\n DxoDateBoxPositionModule,\n DxoDateBoxShowModule,\n DxoDateBoxToModule,\n DxiDateBoxToolbarItemModule,\n DxIntegrationModule,\n DxTemplateModule\n ],\n exports: [\n DxDateBoxComponent,\n DxiButtonModule,\n DxoOptionsModule,\n DxoCalendarOptionsModule,\n DxoDisplayFormatModule,\n DxoDropDownOptionsModule,\n DxoAnimationModule,\n DxoHideModule,\n DxoFromModule,\n DxoPositionModule,\n DxoAtModule,\n DxoBoundaryOffsetModule,\n DxoCollisionModule,\n DxoMyModule,\n DxoOffsetModule,\n DxoToModule,\n DxoShowModule,\n DxoDateBoxAnimationModule,\n DxoDateBoxAtModule,\n DxoDateBoxBoundaryOffsetModule,\n DxiDateBoxButtonModule,\n DxoDateBoxCalendarOptionsModule,\n DxoDateBoxCollisionModule,\n DxoDateBoxDisplayFormatModule,\n DxoDateBoxDropDownOptionsModule,\n DxoDateBoxFromModule,\n DxoDateBoxHideModule,\n DxoDateBoxMyModule,\n DxoDateBoxOffsetModule,\n DxoDateBoxOptionsModule,\n DxoDateBoxPositionModule,\n DxoDateBoxShowModule,\n DxoDateBoxToModule,\n DxiDateBoxToolbarItemModule,\n DxTemplateModule\n ]\n})\nexport class DxDateBoxModule { }\n\nexport * from 'devextreme-angular/ui/date-box/nested';\n\nimport type * as DxDateBoxTypes from \"devextreme/ui/date_box_types\";\nexport { DxDateBoxTypes };\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;AAWG;AAEH;AA4FA,MAAM,8BAA8B,GAAG;AACnC,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,kBAAkB,CAAC;AACjD,IAAA,KAAK,EAAE;CACV;AACD;;;AAGG;AAcG,MAAO,kBAAmB,SAAQ,WAAW,CAAA;IAE/C,IACI,uBAAuB,CAAC,KAAwC,EAAA;AAChE,QAAA,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC;IACtC;IAEA,IACI,4BAA4B,CAAC,KAAwC,EAAA;AACrE,QAAA,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC;IAC3C;AAIA;;;AAGG;AACH,IAAA,IACI,iBAAiB,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C;IACA,IAAI,iBAAiB,CAAC,KAAc,EAAA;AAChC,QAAA,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC/C;AAGA;;;AAGG;AACH,IAAA,IACI,SAAS,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IACvC;IACA,IAAI,SAAS,CAAC,KAAyB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC;IACvC;AAGA;;;AAGG;AACH,IAAA,IACI,kBAAkB,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAChD;IACA,IAAI,kBAAkB,CAAC,KAAc,EAAA;AACjC,QAAA,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,KAAK,CAAC;IAChD;AAGA;;;AAGG;AACH,IAAA,IACI,iBAAiB,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C;IACA,IAAI,iBAAiB,CAAC,KAAc,EAAA;AAChC,QAAA,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAC/C;AAGA;;;AAGG;AACH,IAAA,IACI,eAAe,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAC7C;IACA,IAAI,eAAe,CAAC,KAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAC7C;AAGA;;;AAGG;AACH,IAAA,IACI,cAAc,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAC5C;IACA,IAAI,cAAc,CAAC,KAAqB,EAAA;AACpC,QAAA,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,KAAK,CAAC;IAC5C;AAGA;;;AAGG;AACH,IAAA,IACI,OAAO,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IACrC;IACA,IAAI,OAAO,CAAC,KAAyD,EAAA;AACjE,QAAA,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC;IACrC;AAGA;;;AAGG;AACH,IAAA,IACI,eAAe,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAC7C;IACA,IAAI,eAAe,CAAC,KAAwB,EAAA;AACxC,QAAA,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAC7C;AAGA;;;AAGG;AACH,IAAA,IACI,gBAAgB,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,C