igniteui-angular-inputs 16.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License +27 -0
- package/README.md +19 -0
- package/bundles/igniteui-angular-inputs.umd.js +36173 -0
- package/bundles/igniteui-angular-inputs.umd.min.js +7 -0
- package/esm2015/igniteui-angular-inputs.js +4 -0
- package/esm2015/lib/ButtonClickEventArgs.js +16 -0
- package/esm2015/lib/ButtonDisplayStyle.js +11 -0
- package/esm2015/lib/ButtonGroupDisplayStyle.js +11 -0
- package/esm2015/lib/ButtonGroupOrientation.js +16 -0
- package/esm2015/lib/ButtonGroupSelectionChangedEventArgs.js +16 -0
- package/esm2015/lib/ButtonGroupView.js +7 -0
- package/esm2015/lib/ButtonGroupView_combined.js +1333 -0
- package/esm2015/lib/ButtonGroupVisualModelExport.js +56 -0
- package/esm2015/lib/ButtonView.js +7 -0
- package/esm2015/lib/ButtonView_combined.js +3291 -0
- package/esm2015/lib/ButtonVisualModelExport.js +109 -0
- package/esm2015/lib/CalendarView.js +7 -0
- package/esm2015/lib/CalendarView_combined.js +2791 -0
- package/esm2015/lib/CalendarVisualModelExport.js +100 -0
- package/esm2015/lib/CheckboxChangeEventArgs.js +33 -0
- package/esm2015/lib/CheckboxLabelPosition.js +11 -0
- package/esm2015/lib/CheckboxView.js +7 -0
- package/esm2015/lib/CheckboxView_combined.js +1105 -0
- package/esm2015/lib/CheckboxVisualModelExport.js +62 -0
- package/esm2015/lib/DateFormats.js +25 -0
- package/esm2015/lib/DatePicker.js +7 -0
- package/esm2015/lib/DatePickerView.js +7 -0
- package/esm2015/lib/DatePickerView_combined.js +1578 -0
- package/esm2015/lib/DatePickerVisualModelExport.js +70 -0
- package/esm2015/lib/DateTimeValueFormatter.js +108 -0
- package/esm2015/lib/DayInfo.js +23 -0
- package/esm2015/lib/DayOfWeek.js +45 -0
- package/esm2015/lib/ElevationHelper.js +67 -0
- package/esm2015/lib/FirstWeek.js +29 -0
- package/esm2015/lib/GotFocusEventArgs.js +16 -0
- package/esm2015/lib/IconClickedEventArgs.js +16 -0
- package/esm2015/lib/IconView.js +7 -0
- package/esm2015/lib/IconView_combined.js +815 -0
- package/esm2015/lib/IconVisualModelExport.js +76 -0
- package/esm2015/lib/InputChangeEventArgs.js +33 -0
- package/esm2015/lib/InputGroupDisplayType.js +18 -0
- package/esm2015/lib/InputGroupView.js +7 -0
- package/esm2015/lib/InputGroupView_combined.js +5518 -0
- package/esm2015/lib/InputGroupVisualModelExport.js +109 -0
- package/esm2015/lib/InputShiftType.js +17 -0
- package/esm2015/lib/InputView.js +7 -0
- package/esm2015/lib/InputVisualModelExport.js +78 -0
- package/esm2015/lib/KEYCODES.js +11 -0
- package/esm2015/lib/LabelShiftType.js +17 -0
- package/esm2015/lib/LabelView.js +7 -0
- package/esm2015/lib/LabelVisualModelExport.js +84 -0
- package/esm2015/lib/LostFocusEventArgs.js +16 -0
- package/esm2015/lib/MaskOptions.js +21 -0
- package/esm2015/lib/MaskParsingService.js +213 -0
- package/esm2015/lib/NativeUIXInputsFactory.js +185 -0
- package/esm2015/lib/PrefixShiftType.js +17 -0
- package/esm2015/lib/PrefixView.js +7 -0
- package/esm2015/lib/PrefixVisualModelExport.js +35 -0
- package/esm2015/lib/Replaced.js +21 -0
- package/esm2015/lib/RippleView.js +7 -0
- package/esm2015/lib/RippleView_combined.js +396 -0
- package/esm2015/lib/RippleVisualModelExport.js +38 -0
- package/esm2015/lib/SelectedValueChangedEventArgs.js +33 -0
- package/esm2015/lib/SuffixShiftType.js +17 -0
- package/esm2015/lib/SuffixView.js +7 -0
- package/esm2015/lib/SuffixVisualModelExport.js +34 -0
- package/esm2015/lib/TextElementsVisualModelExport.js +44 -0
- package/esm2015/lib/Theme.js +48 -0
- package/esm2015/lib/ThemeResolver.js +176 -0
- package/esm2015/lib/XButton.js +7 -0
- package/esm2015/lib/XButtonBridge.js +297 -0
- package/esm2015/lib/XButtonGroup.js +7 -0
- package/esm2015/lib/XButtonGroupButtonCollection.js +28 -0
- package/esm2015/lib/XCalendar.js +7 -0
- package/esm2015/lib/XCalendarLocaleEn.js +56 -0
- package/esm2015/lib/XCheckbox.js +7 -0
- package/esm2015/lib/XCheckboxBridge.js +78 -0
- package/esm2015/lib/XComponentBridge.js +48 -0
- package/esm2015/lib/XIcon.js +7 -0
- package/esm2015/lib/XIconBridge.js +93 -0
- package/esm2015/lib/XIconButtonBridge.js +77 -0
- package/esm2015/lib/XInput.js +7 -0
- package/esm2015/lib/XInputBridge.js +215 -0
- package/esm2015/lib/XInputGroup.js +7 -0
- package/esm2015/lib/XInputGroupInputCollection.js +7 -0
- package/esm2015/lib/XInputGroupItem.js +7 -0
- package/esm2015/lib/XLabel.js +7 -0
- package/esm2015/lib/XPopupBridge.js +287 -0
- package/esm2015/lib/XPrefix.js +7 -0
- package/esm2015/lib/XRipple.js +7 -0
- package/esm2015/lib/XSuffix.js +7 -0
- package/esm2015/lib/igx-button-click-event-args.js +24 -0
- package/esm2015/lib/igx-button-group-selection-changed-event-args.js +24 -0
- package/esm2015/lib/igx-checkbox-change-event-args.js +37 -0
- package/esm2015/lib/igx-date-picker-component.js +596 -0
- package/esm2015/lib/igx-date-picker-dynamic-module.js +66 -0
- package/esm2015/lib/igx-date-picker-module.js +60 -0
- package/esm2015/lib/igx-got-focus-event-args.js +24 -0
- package/esm2015/lib/igx-input-change-event-args.js +37 -0
- package/esm2015/lib/igx-lost-focus-event-args.js +24 -0
- package/esm2015/lib/igx-selected-value-changed-event-args.js +36 -0
- package/esm2015/lib/igx-x-button-component.js +2286 -0
- package/esm2015/lib/igx-x-button-dynamic-module.js +52 -0
- package/esm2015/lib/igx-x-button-group-button-collection.js +48 -0
- package/esm2015/lib/igx-x-button-group-component.js +1000 -0
- package/esm2015/lib/igx-x-button-group-dynamic-module.js +52 -0
- package/esm2015/lib/igx-x-button-group-module.js +46 -0
- package/esm2015/lib/igx-x-button-module.js +46 -0
- package/esm2015/lib/igx-x-calendar-component.js +468 -0
- package/esm2015/lib/igx-x-calendar-dynamic-module.js +52 -0
- package/esm2015/lib/igx-x-calendar-locale-en-module.js +31 -0
- package/esm2015/lib/igx-x-calendar-module.js +46 -0
- package/esm2015/lib/igx-x-checkbox-component.js +586 -0
- package/esm2015/lib/igx-x-checkbox-dynamic-module.js +52 -0
- package/esm2015/lib/igx-x-checkbox-module.js +46 -0
- package/esm2015/lib/igx-x-icon-component.js +596 -0
- package/esm2015/lib/igx-x-icon-dynamic-module.js +45 -0
- package/esm2015/lib/igx-x-icon-module.js +39 -0
- package/esm2015/lib/igx-x-input-component.js +551 -0
- package/esm2015/lib/igx-x-input-dynamic-module.js +45 -0
- package/esm2015/lib/igx-x-input-group-component.js +2046 -0
- package/esm2015/lib/igx-x-input-group-dynamic-module.js +59 -0
- package/esm2015/lib/igx-x-input-group-input-collection.js +48 -0
- package/esm2015/lib/igx-x-input-group-item-component.js +140 -0
- package/esm2015/lib/igx-x-input-group-module.js +53 -0
- package/esm2015/lib/igx-x-input-module.js +39 -0
- package/esm2015/lib/igx-x-label-component.js +423 -0
- package/esm2015/lib/igx-x-label-dynamic-module.js +45 -0
- package/esm2015/lib/igx-x-label-module.js +39 -0
- package/esm2015/lib/igx-x-prefix-component.js +165 -0
- package/esm2015/lib/igx-x-prefix-dynamic-module.js +45 -0
- package/esm2015/lib/igx-x-prefix-module.js +39 -0
- package/esm2015/lib/igx-x-ripple-component.js +322 -0
- package/esm2015/lib/igx-x-ripple-dynamic-module.js +38 -0
- package/esm2015/lib/igx-x-ripple-module.js +36 -0
- package/esm2015/lib/igx-x-suffix-component.js +165 -0
- package/esm2015/public_api.js +123 -0
- package/esm5/igniteui-angular-inputs.js +4 -0
- package/esm5/lib/ButtonClickEventArgs.js +20 -0
- package/esm5/lib/ButtonDisplayStyle.js +11 -0
- package/esm5/lib/ButtonGroupDisplayStyle.js +11 -0
- package/esm5/lib/ButtonGroupOrientation.js +16 -0
- package/esm5/lib/ButtonGroupSelectionChangedEventArgs.js +20 -0
- package/esm5/lib/ButtonGroupView.js +7 -0
- package/esm5/lib/ButtonGroupView_combined.js +1701 -0
- package/esm5/lib/ButtonGroupVisualModelExport.js +58 -0
- package/esm5/lib/ButtonView.js +7 -0
- package/esm5/lib/ButtonView_combined.js +3985 -0
- package/esm5/lib/ButtonVisualModelExport.js +111 -0
- package/esm5/lib/CalendarView.js +7 -0
- package/esm5/lib/CalendarView_combined.js +2915 -0
- package/esm5/lib/CalendarVisualModelExport.js +102 -0
- package/esm5/lib/CheckboxChangeEventArgs.js +43 -0
- package/esm5/lib/CheckboxLabelPosition.js +11 -0
- package/esm5/lib/CheckboxView.js +7 -0
- package/esm5/lib/CheckboxView_combined.js +1303 -0
- package/esm5/lib/CheckboxVisualModelExport.js +64 -0
- package/esm5/lib/DateFormats.js +25 -0
- package/esm5/lib/DatePicker.js +7 -0
- package/esm5/lib/DatePickerView.js +7 -0
- package/esm5/lib/DatePickerView_combined.js +1690 -0
- package/esm5/lib/DatePickerVisualModelExport.js +72 -0
- package/esm5/lib/DateTimeValueFormatter.js +110 -0
- package/esm5/lib/DayInfo.js +25 -0
- package/esm5/lib/DayOfWeek.js +45 -0
- package/esm5/lib/ElevationHelper.js +71 -0
- package/esm5/lib/FirstWeek.js +29 -0
- package/esm5/lib/GotFocusEventArgs.js +20 -0
- package/esm5/lib/IconClickedEventArgs.js +20 -0
- package/esm5/lib/IconView.js +7 -0
- package/esm5/lib/IconView_combined.js +1012 -0
- package/esm5/lib/IconVisualModelExport.js +82 -0
- package/esm5/lib/InputChangeEventArgs.js +43 -0
- package/esm5/lib/InputGroupDisplayType.js +18 -0
- package/esm5/lib/InputGroupView.js +7 -0
- package/esm5/lib/InputGroupView_combined.js +6660 -0
- package/esm5/lib/InputGroupVisualModelExport.js +111 -0
- package/esm5/lib/InputShiftType.js +17 -0
- package/esm5/lib/InputView.js +7 -0
- package/esm5/lib/InputVisualModelExport.js +80 -0
- package/esm5/lib/KEYCODES.js +11 -0
- package/esm5/lib/LabelShiftType.js +17 -0
- package/esm5/lib/LabelView.js +7 -0
- package/esm5/lib/LabelVisualModelExport.js +86 -0
- package/esm5/lib/LostFocusEventArgs.js +20 -0
- package/esm5/lib/MaskOptions.js +23 -0
- package/esm5/lib/MaskParsingService.js +267 -0
- package/esm5/lib/NativeUIXInputsFactory.js +195 -0
- package/esm5/lib/PrefixShiftType.js +17 -0
- package/esm5/lib/PrefixView.js +7 -0
- package/esm5/lib/PrefixVisualModelExport.js +37 -0
- package/esm5/lib/Replaced.js +23 -0
- package/esm5/lib/RippleView.js +7 -0
- package/esm5/lib/RippleView_combined.js +491 -0
- package/esm5/lib/RippleVisualModelExport.js +40 -0
- package/esm5/lib/SelectedValueChangedEventArgs.js +43 -0
- package/esm5/lib/SuffixShiftType.js +17 -0
- package/esm5/lib/SuffixView.js +7 -0
- package/esm5/lib/SuffixVisualModelExport.js +36 -0
- package/esm5/lib/TextElementsVisualModelExport.js +46 -0
- package/esm5/lib/Theme.js +58 -0
- package/esm5/lib/ThemeResolver.js +182 -0
- package/esm5/lib/XButton.js +7 -0
- package/esm5/lib/XButtonBridge.js +299 -0
- package/esm5/lib/XButtonGroup.js +7 -0
- package/esm5/lib/XButtonGroupButtonCollection.js +30 -0
- package/esm5/lib/XCalendar.js +7 -0
- package/esm5/lib/XCalendarLocaleEn.js +58 -0
- package/esm5/lib/XCheckbox.js +7 -0
- package/esm5/lib/XCheckboxBridge.js +80 -0
- package/esm5/lib/XComponentBridge.js +54 -0
- package/esm5/lib/XIcon.js +7 -0
- package/esm5/lib/XIconBridge.js +95 -0
- package/esm5/lib/XIconButtonBridge.js +79 -0
- package/esm5/lib/XInput.js +7 -0
- package/esm5/lib/XInputBridge.js +217 -0
- package/esm5/lib/XInputGroup.js +7 -0
- package/esm5/lib/XInputGroupInputCollection.js +7 -0
- package/esm5/lib/XInputGroupItem.js +7 -0
- package/esm5/lib/XLabel.js +7 -0
- package/esm5/lib/XPopupBridge.js +289 -0
- package/esm5/lib/XPrefix.js +7 -0
- package/esm5/lib/XRipple.js +7 -0
- package/esm5/lib/XSuffix.js +7 -0
- package/esm5/lib/igx-button-click-event-args.js +30 -0
- package/esm5/lib/igx-button-group-selection-changed-event-args.js +30 -0
- package/esm5/lib/igx-checkbox-change-event-args.js +51 -0
- package/esm5/lib/igx-date-picker-component.js +720 -0
- package/esm5/lib/igx-date-picker-dynamic-module.js +65 -0
- package/esm5/lib/igx-date-picker-module.js +59 -0
- package/esm5/lib/igx-got-focus-event-args.js +30 -0
- package/esm5/lib/igx-input-change-event-args.js +51 -0
- package/esm5/lib/igx-lost-focus-event-args.js +30 -0
- package/esm5/lib/igx-selected-value-changed-event-args.js +50 -0
- package/esm5/lib/igx-x-button-component.js +3018 -0
- package/esm5/lib/igx-x-button-dynamic-module.js +51 -0
- package/esm5/lib/igx-x-button-group-button-collection.js +53 -0
- package/esm5/lib/igx-x-button-group-component.js +1272 -0
- package/esm5/lib/igx-x-button-group-dynamic-module.js +51 -0
- package/esm5/lib/igx-x-button-group-module.js +45 -0
- package/esm5/lib/igx-x-button-module.js +45 -0
- package/esm5/lib/igx-x-calendar-component.js +572 -0
- package/esm5/lib/igx-x-calendar-dynamic-module.js +51 -0
- package/esm5/lib/igx-x-calendar-locale-en-module.js +30 -0
- package/esm5/lib/igx-x-calendar-module.js +45 -0
- package/esm5/lib/igx-x-checkbox-component.js +724 -0
- package/esm5/lib/igx-x-checkbox-dynamic-module.js +51 -0
- package/esm5/lib/igx-x-checkbox-module.js +45 -0
- package/esm5/lib/igx-x-icon-component.js +732 -0
- package/esm5/lib/igx-x-icon-dynamic-module.js +44 -0
- package/esm5/lib/igx-x-icon-module.js +38 -0
- package/esm5/lib/igx-x-input-component.js +683 -0
- package/esm5/lib/igx-x-input-dynamic-module.js +44 -0
- package/esm5/lib/igx-x-input-group-component.js +2697 -0
- package/esm5/lib/igx-x-input-group-dynamic-module.js +58 -0
- package/esm5/lib/igx-x-input-group-input-collection.js +53 -0
- package/esm5/lib/igx-x-input-group-item-component.js +151 -0
- package/esm5/lib/igx-x-input-group-module.js +52 -0
- package/esm5/lib/igx-x-input-module.js +38 -0
- package/esm5/lib/igx-x-label-component.js +522 -0
- package/esm5/lib/igx-x-label-dynamic-module.js +44 -0
- package/esm5/lib/igx-x-label-module.js +38 -0
- package/esm5/lib/igx-x-prefix-component.js +180 -0
- package/esm5/lib/igx-x-prefix-dynamic-module.js +44 -0
- package/esm5/lib/igx-x-prefix-module.js +38 -0
- package/esm5/lib/igx-x-ripple-component.js +381 -0
- package/esm5/lib/igx-x-ripple-dynamic-module.js +37 -0
- package/esm5/lib/igx-x-ripple-module.js +35 -0
- package/esm5/lib/igx-x-suffix-component.js +180 -0
- package/esm5/public_api.js +123 -0
- package/fesm2015/igniteui-angular-inputs.js +30534 -0
- package/fesm5/igniteui-angular-inputs.js +36038 -0
- package/igniteui-angular-inputs.d.ts +5 -0
- package/lib/ButtonClickEventArgs.d.ts +7 -0
- package/lib/ButtonDisplayStyle.d.ts +15 -0
- package/lib/ButtonGroupDisplayStyle.d.ts +12 -0
- package/lib/ButtonGroupOrientation.d.ts +9 -0
- package/lib/ButtonGroupSelectionChangedEventArgs.d.ts +7 -0
- package/lib/ButtonGroupView.d.ts +1 -0
- package/lib/ButtonGroupView_combined.d.ts +372 -0
- package/lib/ButtonGroupVisualModelExport.d.ts +24 -0
- package/lib/ButtonView.d.ts +1 -0
- package/lib/ButtonView_combined.d.ts +695 -0
- package/lib/ButtonVisualModelExport.d.ts +46 -0
- package/lib/CalendarView.d.ts +1 -0
- package/lib/CalendarView_combined.d.ts +231 -0
- package/lib/CalendarVisualModelExport.d.ts +33 -0
- package/lib/CheckboxChangeEventArgs.d.ts +13 -0
- package/lib/CheckboxLabelPosition.d.ts +12 -0
- package/lib/CheckboxView.d.ts +1 -0
- package/lib/CheckboxView_combined.d.ts +214 -0
- package/lib/CheckboxVisualModelExport.d.ts +28 -0
- package/lib/DateFormats.d.ts +18 -0
- package/lib/DatePicker.d.ts +1 -0
- package/lib/DatePickerView.d.ts +1 -0
- package/lib/DatePickerView_combined.d.ts +225 -0
- package/lib/DatePickerVisualModelExport.d.ts +24 -0
- package/lib/DateTimeValueFormatter.d.ts +20 -0
- package/lib/DayInfo.d.ts +13 -0
- package/lib/DayOfWeek.d.ts +38 -0
- package/lib/ElevationHelper.d.ts +16 -0
- package/lib/FirstWeek.d.ts +22 -0
- package/lib/GotFocusEventArgs.d.ts +7 -0
- package/lib/IconClickedEventArgs.d.ts +7 -0
- package/lib/IconView.d.ts +1 -0
- package/lib/IconView_combined.d.ts +198 -0
- package/lib/IconVisualModelExport.d.ts +26 -0
- package/lib/InputChangeEventArgs.d.ts +13 -0
- package/lib/InputGroupDisplayType.d.ts +11 -0
- package/lib/InputGroupView.d.ts +1 -0
- package/lib/InputGroupView_combined.d.ts +1202 -0
- package/lib/InputGroupVisualModelExport.d.ts +44 -0
- package/lib/InputShiftType.d.ts +10 -0
- package/lib/InputView.d.ts +1 -0
- package/lib/InputVisualModelExport.d.ts +30 -0
- package/lib/KEYCODES.d.ts +27 -0
- package/lib/LabelShiftType.d.ts +10 -0
- package/lib/LabelView.d.ts +1 -0
- package/lib/LabelVisualModelExport.d.ts +34 -0
- package/lib/LostFocusEventArgs.d.ts +7 -0
- package/lib/MaskOptions.d.ts +9 -0
- package/lib/MaskParsingService.d.ts +19 -0
- package/lib/NativeUIXInputsFactory.d.ts +24 -0
- package/lib/PrefixShiftType.d.ts +10 -0
- package/lib/PrefixView.d.ts +1 -0
- package/lib/PrefixVisualModelExport.d.ts +13 -0
- package/lib/Replaced.d.ts +9 -0
- package/lib/RippleView.d.ts +1 -0
- package/lib/RippleView_combined.d.ts +98 -0
- package/lib/RippleVisualModelExport.d.ts +15 -0
- package/lib/SelectedValueChangedEventArgs.d.ts +13 -0
- package/lib/SuffixShiftType.d.ts +10 -0
- package/lib/SuffixView.d.ts +1 -0
- package/lib/SuffixVisualModelExport.d.ts +13 -0
- package/lib/TextElementsVisualModelExport.d.ts +16 -0
- package/lib/Theme.d.ts +15 -0
- package/lib/ThemeResolver.d.ts +56 -0
- package/lib/XButton.d.ts +1 -0
- package/lib/XButtonBridge.d.ts +39 -0
- package/lib/XButtonGroup.d.ts +1 -0
- package/lib/XButtonGroupButtonCollection.d.ts +12 -0
- package/lib/XCalendar.d.ts +1 -0
- package/lib/XCalendarLocaleEn.d.ts +49 -0
- package/lib/XCheckbox.d.ts +1 -0
- package/lib/XCheckboxBridge.d.ts +19 -0
- package/lib/XComponentBridge.d.ts +18 -0
- package/lib/XIcon.d.ts +1 -0
- package/lib/XIconBridge.d.ts +14 -0
- package/lib/XIconButtonBridge.d.ts +16 -0
- package/lib/XInput.d.ts +1 -0
- package/lib/XInputBridge.d.ts +28 -0
- package/lib/XInputGroup.d.ts +1 -0
- package/lib/XInputGroupInputCollection.d.ts +1 -0
- package/lib/XInputGroupItem.d.ts +1 -0
- package/lib/XLabel.d.ts +1 -0
- package/lib/XPopupBridge.d.ts +52 -0
- package/lib/XPrefix.d.ts +1 -0
- package/lib/XRipple.d.ts +1 -0
- package/lib/XSuffix.d.ts +1 -0
- package/lib/igx-button-click-event-args.d.ts +12 -0
- package/lib/igx-button-group-selection-changed-event-args.d.ts +12 -0
- package/lib/igx-checkbox-change-event-args.d.ts +18 -0
- package/lib/igx-date-picker-component.d.ts +215 -0
- package/lib/igx-date-picker-dynamic-module.d.ts +13 -0
- package/lib/igx-date-picker-module.d.ts +13 -0
- package/lib/igx-got-focus-event-args.d.ts +12 -0
- package/lib/igx-input-change-event-args.d.ts +17 -0
- package/lib/igx-lost-focus-event-args.d.ts +12 -0
- package/lib/igx-selected-value-changed-event-args.d.ts +16 -0
- package/lib/igx-x-button-component.d.ts +980 -0
- package/lib/igx-x-button-dynamic-module.d.ts +11 -0
- package/lib/igx-x-button-group-button-collection.d.ts +8 -0
- package/lib/igx-x-button-group-component.d.ts +416 -0
- package/lib/igx-x-button-group-dynamic-module.d.ts +11 -0
- package/lib/igx-x-button-group-module.d.ts +11 -0
- package/lib/igx-x-button-module.d.ts +11 -0
- package/lib/igx-x-calendar-component.d.ts +177 -0
- package/lib/igx-x-calendar-dynamic-module.d.ts +11 -0
- package/lib/igx-x-calendar-locale-en-module.d.ts +8 -0
- package/lib/igx-x-calendar-module.d.ts +11 -0
- package/lib/igx-x-checkbox-component.d.ts +238 -0
- package/lib/igx-x-checkbox-dynamic-module.d.ts +11 -0
- package/lib/igx-x-checkbox-module.d.ts +11 -0
- package/lib/igx-x-icon-component.d.ts +255 -0
- package/lib/igx-x-icon-dynamic-module.d.ts +10 -0
- package/lib/igx-x-icon-module.d.ts +10 -0
- package/lib/igx-x-input-component.d.ts +212 -0
- package/lib/igx-x-input-dynamic-module.d.ts +10 -0
- package/lib/igx-x-input-group-component.d.ts +855 -0
- package/lib/igx-x-input-group-dynamic-module.d.ts +12 -0
- package/lib/igx-x-input-group-input-collection.d.ts +8 -0
- package/lib/igx-x-input-group-item-component.d.ts +35 -0
- package/lib/igx-x-input-group-module.d.ts +12 -0
- package/lib/igx-x-input-module.d.ts +10 -0
- package/lib/igx-x-label-component.d.ts +175 -0
- package/lib/igx-x-label-dynamic-module.d.ts +10 -0
- package/lib/igx-x-label-module.d.ts +10 -0
- package/lib/igx-x-prefix-component.d.ts +60 -0
- package/lib/igx-x-prefix-dynamic-module.d.ts +10 -0
- package/lib/igx-x-prefix-module.d.ts +10 -0
- package/lib/igx-x-ripple-component.d.ts +110 -0
- package/lib/igx-x-ripple-dynamic-module.d.ts +9 -0
- package/lib/igx-x-ripple-module.d.ts +9 -0
- package/lib/igx-x-suffix-component.d.ts +60 -0
- package/package.json +39 -0
- package/public_api.d.ts +123 -0
|
@@ -0,0 +1,1690 @@
|
|
|
1
|
+
/*
|
|
2
|
+
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
3
|
+
https://www.infragistics.com/legal/license/igultimate-la
|
|
4
|
+
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
|
+
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
|
+
*/
|
|
7
|
+
import { __extends } from "tslib";
|
|
8
|
+
import { Base, runOn, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, delegateRemove, enumGetBox, delegateCombine } from "igniteui-angular-core";
|
|
9
|
+
import { XInputGroup } from "./XInputGroup";
|
|
10
|
+
import { XLabel } from "./XLabel";
|
|
11
|
+
import { XInput } from "./XInput";
|
|
12
|
+
import { XSuffix } from "./XSuffix";
|
|
13
|
+
import { XIcon } from "./XIcon";
|
|
14
|
+
import { Popup } from "igniteui-angular-core";
|
|
15
|
+
import { XCalendar } from "./XCalendar";
|
|
16
|
+
import { Rect } from "igniteui-angular-core";
|
|
17
|
+
import { SRProvider } from "igniteui-angular-core";
|
|
18
|
+
import { ControlDisplayDensity_$type } from "igniteui-angular-core";
|
|
19
|
+
import { BaseControlTheme_$type } from "igniteui-angular-core";
|
|
20
|
+
import { DayOfWeek_$type } from "./DayOfWeek";
|
|
21
|
+
import { FirstWeek_$type } from "./FirstWeek";
|
|
22
|
+
import { DateFormats_$type } from "./DateFormats";
|
|
23
|
+
import { BrushUtil } from "igniteui-angular-core";
|
|
24
|
+
import { DateTimeValueFormatter } from "./DateTimeValueFormatter";
|
|
25
|
+
import { SelectedValueChangedEventArgs } from "./SelectedValueChangedEventArgs";
|
|
26
|
+
import { GotFocusEventArgs } from "./GotFocusEventArgs";
|
|
27
|
+
import { LostFocusEventArgs } from "./LostFocusEventArgs";
|
|
28
|
+
import { DatePickerVisualModelExport } from "./DatePickerVisualModelExport";
|
|
29
|
+
import { FontUtil } from "igniteui-angular-core";
|
|
30
|
+
import { dateMinValue, dateMaxValue, dateGetDate, dateFromValues, dateGetMonth } from "igniteui-angular-core";
|
|
31
|
+
import { stringContains, stringIsNullOrWhiteSpace, stringIsNullOrEmpty } from "igniteui-angular-core";
|
|
32
|
+
import { stringSplit } from "igniteui-angular-core";
|
|
33
|
+
import { isNaN_ } from "igniteui-angular-core";
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
var DatePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
38
|
+
__extends(DatePickerView, _super);
|
|
39
|
+
function DatePickerView() {
|
|
40
|
+
var _this = _super.call(this) || this;
|
|
41
|
+
_this.b = null;
|
|
42
|
+
_this.d = null;
|
|
43
|
+
_this.k = null;
|
|
44
|
+
_this.e = null;
|
|
45
|
+
_this.m = null;
|
|
46
|
+
_this.l = null;
|
|
47
|
+
_this.j = null;
|
|
48
|
+
_this.g = null;
|
|
49
|
+
_this.f = null;
|
|
50
|
+
_this.i = null;
|
|
51
|
+
_this.h = null;
|
|
52
|
+
_this.document_Click = _this.document_Click.bind(_this);
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
DatePickerView.prototype.ah = function () {
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(DatePickerView.prototype, "n", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this.e;
|
|
60
|
+
},
|
|
61
|
+
enumerable: false,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
DatePickerView.prototype.ag = function (a) {
|
|
65
|
+
if (a == null) {
|
|
66
|
+
if (this.d != null) {
|
|
67
|
+
var b = this.d.rootWrapper.getChildAt(0);
|
|
68
|
+
b.unlistenAll();
|
|
69
|
+
document.removeEventListener("click", this.document_Click, false);
|
|
70
|
+
}
|
|
71
|
+
this.d = null;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.d = a;
|
|
75
|
+
var c = Math.round(a.rootWrapper.width());
|
|
76
|
+
var d = Math.round(a.rootWrapper.height());
|
|
77
|
+
this.aa();
|
|
78
|
+
this.ab();
|
|
79
|
+
var e = this.d.rootWrapper.getChildAt(0);
|
|
80
|
+
e.listen("keydown", runOn(this, this.x));
|
|
81
|
+
e.listen("focusin", runOn(this, this.v));
|
|
82
|
+
e.listen("focusout", runOn(this, this.w));
|
|
83
|
+
document.addEventListener("click", this.document_Click, false);
|
|
84
|
+
};
|
|
85
|
+
DatePickerView.prototype.aa = function () {
|
|
86
|
+
if (this.d != null) {
|
|
87
|
+
this.k = this.d.rootWrapper.getChildAt(0);
|
|
88
|
+
this.k.setAttribute("tabIndex", this.b.a7.toString());
|
|
89
|
+
this.k.setStyleProperty("display", "flex");
|
|
90
|
+
this.k.setStyleProperty("height", "100%");
|
|
91
|
+
this.l = this.d.createElement("div");
|
|
92
|
+
this.j = this.d.createElement("div");
|
|
93
|
+
this.j.setRawStyleProperty("flex-grow", "1");
|
|
94
|
+
this.g = this.d.createElement("div");
|
|
95
|
+
this.g.setAttribute("aria-hidden", "true");
|
|
96
|
+
this.f = this.d.createElement("div");
|
|
97
|
+
this.g.setStyleProperty("padding-right", "2px");
|
|
98
|
+
this.i = this.d.createElement("div");
|
|
99
|
+
this.i.setAttribute("aria-hidden", "true");
|
|
100
|
+
this.h = this.d.createElement("div");
|
|
101
|
+
this.b.ch();
|
|
102
|
+
this.j.getChildAt(0).setAttribute("aria-expanded", "fasle");
|
|
103
|
+
this.j.getChildAt(0).setAttribute("aria-invalid", "false");
|
|
104
|
+
this.f.setStyleProperty("height", "16px");
|
|
105
|
+
this.f.setStyleProperty("width", "16px");
|
|
106
|
+
this.h.setStyleProperty("height", "16px");
|
|
107
|
+
this.h.setStyleProperty("width", "16px");
|
|
108
|
+
this.f.listen("click", runOn(this, this.z));
|
|
109
|
+
this.h.listen("click", runOn(this, this.ad));
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
DatePickerView.prototype.ak = function (a) {
|
|
113
|
+
if (this.d != null) {
|
|
114
|
+
var b = this.d.getSubRenderer(this.k);
|
|
115
|
+
a.provideContainer(b);
|
|
116
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
DatePickerView.prototype.am = function (a) {
|
|
120
|
+
if (this.d != null) {
|
|
121
|
+
var b = this.d.getSubRenderer(this.l);
|
|
122
|
+
a.provideContainer(b);
|
|
123
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
DatePickerView.prototype.al = function (a) {
|
|
127
|
+
if (this.d != null) {
|
|
128
|
+
var b = this.d.getSubRenderer(this.j);
|
|
129
|
+
a.provideContainer(b);
|
|
130
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
DatePickerView.prototype.ao = function (a, b) {
|
|
134
|
+
if (this.d != null) {
|
|
135
|
+
var c = this.d.getSubRenderer(b);
|
|
136
|
+
a.provideContainer(c);
|
|
137
|
+
var d = c.getExternal(a, c.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
DatePickerView.prototype.aj = function (a, b) {
|
|
141
|
+
if (this.d != null) {
|
|
142
|
+
var c = this.d.getSubRenderer(b);
|
|
143
|
+
a.provideContainer(c);
|
|
144
|
+
var d = c.getExternal(a, c.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
DatePickerView.prototype.u = function () {
|
|
148
|
+
return this.l;
|
|
149
|
+
};
|
|
150
|
+
DatePickerView.prototype.t = function () {
|
|
151
|
+
return this.j;
|
|
152
|
+
};
|
|
153
|
+
DatePickerView.prototype.q = function () {
|
|
154
|
+
return this.g;
|
|
155
|
+
};
|
|
156
|
+
DatePickerView.prototype.p = function () {
|
|
157
|
+
return this.f;
|
|
158
|
+
};
|
|
159
|
+
DatePickerView.prototype.s = function () {
|
|
160
|
+
return this.i;
|
|
161
|
+
};
|
|
162
|
+
DatePickerView.prototype.r = function () {
|
|
163
|
+
return this.h;
|
|
164
|
+
};
|
|
165
|
+
DatePickerView.prototype.aq = function (a) {
|
|
166
|
+
if (this.j != null) {
|
|
167
|
+
if (a) {
|
|
168
|
+
this.j.getChildAt(0).setAttribute("aria-expanded", "true");
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.j.getChildAt(0).setAttribute("aria-expanded", "false");
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
DatePickerView.prototype.as = function (a) {
|
|
176
|
+
if (a != null && a != "") {
|
|
177
|
+
this.j.getChildAt(0).setAttribute("aria-label", a);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
this.j.getChildAt(0).setAttribute("aria-label", "Select a date");
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
DatePickerView.prototype.ap = function () {
|
|
184
|
+
if (this.f != null) {
|
|
185
|
+
if (this.b.at == true) {
|
|
186
|
+
this.f.show();
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
this.f.hide();
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
DatePickerView.prototype.ae = function () {
|
|
194
|
+
if (this.f != null) {
|
|
195
|
+
this.f.hide();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
DatePickerView.prototype.ar = function () {
|
|
199
|
+
this.k.setAttribute("tabIndex", this.b.a7.toString());
|
|
200
|
+
};
|
|
201
|
+
DatePickerView.prototype.ab = function () {
|
|
202
|
+
if (this.d != null) {
|
|
203
|
+
this.m = this.d.rootWrapper.getChildAt(1);
|
|
204
|
+
this.e = this.d.createElement("div");
|
|
205
|
+
this.e.setStyleProperty("width", "100%");
|
|
206
|
+
this.e.setStyleProperty("height", "100%");
|
|
207
|
+
this.e.setStyleProperty("display", "flex");
|
|
208
|
+
this.b.ci();
|
|
209
|
+
this.e.parent().setStyleProperty("height", "100%");
|
|
210
|
+
if (this.b.av == true) {
|
|
211
|
+
this.e.parent().parent().setStyleProperty("max-width", "245px");
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this.e.parent().parent().setStyleProperty("max-width", "232px");
|
|
215
|
+
}
|
|
216
|
+
if (this.b.au == true) {
|
|
217
|
+
this.e.parent().parent().setStyleProperty("min-height", "270px");
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.e.parent().parent().setStyleProperty("min-height", "234px");
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
DatePickerView.prototype.y = function () {
|
|
225
|
+
if (this.d != null) {
|
|
226
|
+
if (this.b.av == true) {
|
|
227
|
+
this.e.parent().parent().setStyleProperty("max-width", "245px");
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
this.e.parent().parent().setStyleProperty("max-width", "232px");
|
|
231
|
+
}
|
|
232
|
+
if (this.b.au == true) {
|
|
233
|
+
this.e.parent().parent().setStyleProperty("min-height", "270px");
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
this.e.parent().parent().setStyleProperty("min-height", "234px");
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
DatePickerView.prototype.an = function (a) {
|
|
241
|
+
if (this.d != null) {
|
|
242
|
+
var b = this.d.getSubRenderer(this.m);
|
|
243
|
+
a.provideRenderer(b);
|
|
244
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
DatePickerView.prototype.ai = function (a) {
|
|
248
|
+
if (this.d != null) {
|
|
249
|
+
var b = this.d.getSubRenderer(this.e);
|
|
250
|
+
a.provideContainer(b);
|
|
251
|
+
var c = b.getExternal(a, b.rootWrapper, this.d.getExternal(this.b, null, null));
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
DatePickerView.prototype.o = function () {
|
|
255
|
+
return this.e;
|
|
256
|
+
};
|
|
257
|
+
DatePickerView.prototype.z = function (a) {
|
|
258
|
+
if (this.b.ar == true) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
this.b.cf();
|
|
262
|
+
if (this.f != null) {
|
|
263
|
+
this.f.hide();
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
DatePickerView.prototype.ad = function (a) {
|
|
267
|
+
a.stopPropagation();
|
|
268
|
+
this.b.cn();
|
|
269
|
+
};
|
|
270
|
+
DatePickerView.prototype.x = function (a) {
|
|
271
|
+
var b = a.which;
|
|
272
|
+
if (b == 27) {
|
|
273
|
+
this.b.cg();
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
DatePickerView.prototype.v = function (a) {
|
|
277
|
+
this.b.focus();
|
|
278
|
+
var b = (a.originalEvent.relatedTarget);
|
|
279
|
+
if (!this.c(b)) {
|
|
280
|
+
this.b.ct();
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
DatePickerView.prototype.w = function (a) {
|
|
284
|
+
var b = (a.originalEvent.relatedTarget);
|
|
285
|
+
if (!this.c(b)) {
|
|
286
|
+
this.b.cm();
|
|
287
|
+
this.b.cu();
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
DatePickerView.prototype.document_Click = function (a) {
|
|
291
|
+
var b = a.target;
|
|
292
|
+
if (!this.c(b)) {
|
|
293
|
+
this.b.cg();
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
DatePickerView.prototype.at = function () {
|
|
297
|
+
if (this.d != null) {
|
|
298
|
+
var a = this.d.rootWrapper.getNativeElement();
|
|
299
|
+
var b = a.getBoundingClientRect();
|
|
300
|
+
;
|
|
301
|
+
return b;
|
|
302
|
+
}
|
|
303
|
+
return null;
|
|
304
|
+
};
|
|
305
|
+
DatePickerView.prototype.a = function () {
|
|
306
|
+
var a = (window.innerWidth);
|
|
307
|
+
var b = (window.innerHeight);
|
|
308
|
+
var c = new Array(2);
|
|
309
|
+
c[0] = a;
|
|
310
|
+
c[1] = b;
|
|
311
|
+
return c;
|
|
312
|
+
};
|
|
313
|
+
DatePickerView.prototype.c = function (a) {
|
|
314
|
+
if (null == a) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
var b = this.j.getNativeElement();
|
|
318
|
+
var c = this.e.getNativeElement();
|
|
319
|
+
return b.contains(a) || c.contains(a);
|
|
320
|
+
};
|
|
321
|
+
DatePickerView.prototype.af = function () {
|
|
322
|
+
};
|
|
323
|
+
DatePickerView.$t = markType(DatePickerView, 'DatePickerView');
|
|
324
|
+
return DatePickerView;
|
|
325
|
+
}(Base));
|
|
326
|
+
export { DatePickerView };
|
|
327
|
+
/**
|
|
328
|
+
* @hidden
|
|
329
|
+
*/
|
|
330
|
+
var DatePicker = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
331
|
+
__extends(DatePicker, _super);
|
|
332
|
+
function DatePicker() {
|
|
333
|
+
var _this = _super.call(this) || this;
|
|
334
|
+
_this.h = null;
|
|
335
|
+
_this.u = null;
|
|
336
|
+
_this.q = null;
|
|
337
|
+
_this.o = null;
|
|
338
|
+
_this.r = null;
|
|
339
|
+
_this.m = null;
|
|
340
|
+
_this.n = null;
|
|
341
|
+
_this.c = null;
|
|
342
|
+
_this.a9 = "dd";
|
|
343
|
+
_this.bd = "mm";
|
|
344
|
+
_this.bg = "yyyy";
|
|
345
|
+
_this.ba = "mdy";
|
|
346
|
+
_this.bf = "/";
|
|
347
|
+
_this.ah = false;
|
|
348
|
+
_this.ap = false;
|
|
349
|
+
_this.ao = false;
|
|
350
|
+
_this.ay = dateMinValue();
|
|
351
|
+
_this.ai = false;
|
|
352
|
+
_this.propertyChanged = null;
|
|
353
|
+
_this.selectedValueChanged = null;
|
|
354
|
+
_this.ae = null;
|
|
355
|
+
_this.a0 = dateMinValue();
|
|
356
|
+
_this.az = dateMinValue();
|
|
357
|
+
_this.bc = "";
|
|
358
|
+
_this.de = BrushUtil.g(255, 24, 29, 31);
|
|
359
|
+
_this.z = null;
|
|
360
|
+
_this.be = "";
|
|
361
|
+
_this.ax = dateMinValue();
|
|
362
|
+
_this.aw = dateMaxValue();
|
|
363
|
+
_this.x = 2;
|
|
364
|
+
_this.v = 1;
|
|
365
|
+
_this.aa = null;
|
|
366
|
+
_this.df = BrushUtil.g(255, 24, 29, 31);
|
|
367
|
+
_this.dd = BrushUtil.g(255, 163, 172, 184);
|
|
368
|
+
_this.al = true;
|
|
369
|
+
_this.am = false;
|
|
370
|
+
_this.ag = true;
|
|
371
|
+
_this.ak = true;
|
|
372
|
+
_this.i = 0;
|
|
373
|
+
_this.k = 0;
|
|
374
|
+
_this.an = false;
|
|
375
|
+
_this.a = new DateTimeValueFormatter();
|
|
376
|
+
_this.d = 0;
|
|
377
|
+
_this.bb = null;
|
|
378
|
+
_this.aj = false;
|
|
379
|
+
_this.a6 = 0;
|
|
380
|
+
_this.gotFocus = null;
|
|
381
|
+
_this.lostFocus = null;
|
|
382
|
+
_this.keyDown = null;
|
|
383
|
+
_this.changing = null;
|
|
384
|
+
var a = new DatePickerView();
|
|
385
|
+
a.b = _this;
|
|
386
|
+
_this.h = a;
|
|
387
|
+
_this.h.ah();
|
|
388
|
+
_this.ce();
|
|
389
|
+
return _this;
|
|
390
|
+
}
|
|
391
|
+
DatePicker.prototype.cz = function (a, b) {
|
|
392
|
+
if (this.u != null) {
|
|
393
|
+
this.ah = true;
|
|
394
|
+
this.cg();
|
|
395
|
+
}
|
|
396
|
+
this.c8();
|
|
397
|
+
if (this.selectedValueChanged != null) {
|
|
398
|
+
this.selectedValueChanged(this, ((function () {
|
|
399
|
+
var $ret = new SelectedValueChangedEventArgs();
|
|
400
|
+
$ret.oldValue = a;
|
|
401
|
+
$ret.newValue = b;
|
|
402
|
+
return $ret;
|
|
403
|
+
})()));
|
|
404
|
+
}
|
|
405
|
+
if (this.ai) {
|
|
406
|
+
this.c3();
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
DatePicker.prototype.notifySizeChanged = function () {
|
|
410
|
+
this.h.af();
|
|
411
|
+
};
|
|
412
|
+
DatePicker.prototype.destroy = function () {
|
|
413
|
+
if (this.c != null) {
|
|
414
|
+
var a = this.c;
|
|
415
|
+
a.selectedValueChanged = delegateRemove(a.selectedValueChanged, runOn(this, this.cd));
|
|
416
|
+
var b = this.c;
|
|
417
|
+
b.close = delegateRemove(b.close, runOn(this, this.cc));
|
|
418
|
+
}
|
|
419
|
+
this.provideContainer(null);
|
|
420
|
+
};
|
|
421
|
+
DatePicker.prototype.provideContainer = function (a) {
|
|
422
|
+
this.h.ag(a);
|
|
423
|
+
};
|
|
424
|
+
DatePicker.prototype.setName = function (a) {
|
|
425
|
+
this.o.e = a;
|
|
426
|
+
};
|
|
427
|
+
Object.defineProperty(DatePicker.prototype, "af", {
|
|
428
|
+
get: function () {
|
|
429
|
+
if (this.ae == null) {
|
|
430
|
+
this.ae = new SRProvider(this.h.d);
|
|
431
|
+
this.ae.cb("Calendar");
|
|
432
|
+
}
|
|
433
|
+
return this.ae;
|
|
434
|
+
},
|
|
435
|
+
enumerable: false,
|
|
436
|
+
configurable: true
|
|
437
|
+
});
|
|
438
|
+
Object.defineProperty(DatePicker.prototype, "value", {
|
|
439
|
+
get: function () {
|
|
440
|
+
return this.a0;
|
|
441
|
+
},
|
|
442
|
+
set: function (a) {
|
|
443
|
+
var b = this.a0;
|
|
444
|
+
this.ay = b;
|
|
445
|
+
this.a0 = a;
|
|
446
|
+
if (+b != +(this.a0)) {
|
|
447
|
+
this.cy("Value", b, this.a0);
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
enumerable: false,
|
|
451
|
+
configurable: true
|
|
452
|
+
});
|
|
453
|
+
Object.defineProperty(DatePicker.prototype, "a3", {
|
|
454
|
+
get: function () {
|
|
455
|
+
return this.az;
|
|
456
|
+
},
|
|
457
|
+
set: function (a) {
|
|
458
|
+
var b = this.az;
|
|
459
|
+
this.az = a;
|
|
460
|
+
if (+b != +(this.az)) {
|
|
461
|
+
this.cy("Today", b, this.az);
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
enumerable: false,
|
|
465
|
+
configurable: true
|
|
466
|
+
});
|
|
467
|
+
Object.defineProperty(DatePicker.prototype, "bv", {
|
|
468
|
+
get: function () {
|
|
469
|
+
return this.bc;
|
|
470
|
+
},
|
|
471
|
+
set: function (a) {
|
|
472
|
+
var b = this.bc;
|
|
473
|
+
this.bc = a;
|
|
474
|
+
if (b != this.bc) {
|
|
475
|
+
this.cy("Label", b, this.bc);
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
enumerable: false,
|
|
479
|
+
configurable: true
|
|
480
|
+
});
|
|
481
|
+
Object.defineProperty(DatePicker.prototype, "dh", {
|
|
482
|
+
get: function () {
|
|
483
|
+
return this.de;
|
|
484
|
+
},
|
|
485
|
+
set: function (a) {
|
|
486
|
+
var b = this.de;
|
|
487
|
+
this.de = a;
|
|
488
|
+
if (b != this.de) {
|
|
489
|
+
this.cy("LabelTextColor", b, a);
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
enumerable: false,
|
|
493
|
+
configurable: true
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(DatePicker.prototype, "ac", {
|
|
496
|
+
get: function () {
|
|
497
|
+
return this.z;
|
|
498
|
+
},
|
|
499
|
+
set: function (a) {
|
|
500
|
+
var b = this.z;
|
|
501
|
+
this.z = a;
|
|
502
|
+
if (b != this.z) {
|
|
503
|
+
this.cy("LabelTextStyle", b, this.z);
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
enumerable: false,
|
|
507
|
+
configurable: true
|
|
508
|
+
});
|
|
509
|
+
Object.defineProperty(DatePicker.prototype, "b2", {
|
|
510
|
+
get: function () {
|
|
511
|
+
return this.be;
|
|
512
|
+
},
|
|
513
|
+
set: function (a) {
|
|
514
|
+
var b = this.be;
|
|
515
|
+
this.be = a;
|
|
516
|
+
if (b != this.be) {
|
|
517
|
+
this.cy("Placeholder", b, this.be);
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
enumerable: false,
|
|
521
|
+
configurable: true
|
|
522
|
+
});
|
|
523
|
+
Object.defineProperty(DatePicker.prototype, "a2", {
|
|
524
|
+
get: function () {
|
|
525
|
+
return this.ax;
|
|
526
|
+
},
|
|
527
|
+
set: function (a) {
|
|
528
|
+
var b = this.ax;
|
|
529
|
+
this.ax = a;
|
|
530
|
+
if (+b != +(this.ax)) {
|
|
531
|
+
this.cy("MinDate", b, this.ax);
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
enumerable: false,
|
|
535
|
+
configurable: true
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(DatePicker.prototype, "a1", {
|
|
538
|
+
get: function () {
|
|
539
|
+
return this.aw;
|
|
540
|
+
},
|
|
541
|
+
set: function (a) {
|
|
542
|
+
var b = this.aw;
|
|
543
|
+
this.aw = a;
|
|
544
|
+
if (+b != +(this.aw)) {
|
|
545
|
+
this.cy("MaxDate", b, this.aw);
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
enumerable: false,
|
|
549
|
+
configurable: true
|
|
550
|
+
});
|
|
551
|
+
Object.defineProperty(DatePicker.prototype, "y", {
|
|
552
|
+
get: function () {
|
|
553
|
+
return this.x;
|
|
554
|
+
},
|
|
555
|
+
set: function (a) {
|
|
556
|
+
var b = this.x;
|
|
557
|
+
this.x = a;
|
|
558
|
+
if (b != this.x) {
|
|
559
|
+
this.cy("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.x));
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
enumerable: false,
|
|
563
|
+
configurable: true
|
|
564
|
+
});
|
|
565
|
+
Object.defineProperty(DatePicker.prototype, "w", {
|
|
566
|
+
get: function () {
|
|
567
|
+
return this.v;
|
|
568
|
+
},
|
|
569
|
+
set: function (a) {
|
|
570
|
+
var b = this.v;
|
|
571
|
+
this.v = a;
|
|
572
|
+
if (b != this.v) {
|
|
573
|
+
this.cy("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.v));
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
enumerable: false,
|
|
577
|
+
configurable: true
|
|
578
|
+
});
|
|
579
|
+
Object.defineProperty(DatePicker.prototype, "ad", {
|
|
580
|
+
get: function () {
|
|
581
|
+
return this.aa;
|
|
582
|
+
},
|
|
583
|
+
set: function (a) {
|
|
584
|
+
var b = this.aa;
|
|
585
|
+
this.aa = a;
|
|
586
|
+
if (b != this.aa) {
|
|
587
|
+
this.cy("TextStyle", b, this.aa);
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
enumerable: false,
|
|
591
|
+
configurable: true
|
|
592
|
+
});
|
|
593
|
+
Object.defineProperty(DatePicker.prototype, "di", {
|
|
594
|
+
get: function () {
|
|
595
|
+
return this.df;
|
|
596
|
+
},
|
|
597
|
+
set: function (a) {
|
|
598
|
+
var b = this.df;
|
|
599
|
+
this.df = a;
|
|
600
|
+
if (b != this.df) {
|
|
601
|
+
this.cy("TextColor", b, this.df);
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
enumerable: false,
|
|
605
|
+
configurable: true
|
|
606
|
+
});
|
|
607
|
+
Object.defineProperty(DatePicker.prototype, "dg", {
|
|
608
|
+
get: function () {
|
|
609
|
+
return this.dd;
|
|
610
|
+
},
|
|
611
|
+
set: function (a) {
|
|
612
|
+
var b = this.dd;
|
|
613
|
+
this.dd = a;
|
|
614
|
+
if (b != this.dd) {
|
|
615
|
+
this.cy("IconColor", b, this.dd);
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
enumerable: false,
|
|
619
|
+
configurable: true
|
|
620
|
+
});
|
|
621
|
+
Object.defineProperty(DatePicker.prototype, "at", {
|
|
622
|
+
get: function () {
|
|
623
|
+
return this.al;
|
|
624
|
+
},
|
|
625
|
+
set: function (a) {
|
|
626
|
+
var b = this.al;
|
|
627
|
+
this.al = a;
|
|
628
|
+
if (b != this.al) {
|
|
629
|
+
this.cy("ShowClearButton", b, this.al);
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
enumerable: false,
|
|
633
|
+
configurable: true
|
|
634
|
+
});
|
|
635
|
+
Object.defineProperty(DatePicker.prototype, "au", {
|
|
636
|
+
get: function () {
|
|
637
|
+
return this.am;
|
|
638
|
+
},
|
|
639
|
+
set: function (a) {
|
|
640
|
+
var b = this.am;
|
|
641
|
+
this.am = a;
|
|
642
|
+
if (b != this.am) {
|
|
643
|
+
this.cy("ShowTodayButton", b, this.am);
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
enumerable: false,
|
|
647
|
+
configurable: true
|
|
648
|
+
});
|
|
649
|
+
Object.defineProperty(DatePicker.prototype, "aq", {
|
|
650
|
+
get: function () {
|
|
651
|
+
return this.ag;
|
|
652
|
+
},
|
|
653
|
+
set: function (a) {
|
|
654
|
+
var b = this.ag;
|
|
655
|
+
this.ag = a;
|
|
656
|
+
if (b != this.ag) {
|
|
657
|
+
this.cy("AllowTextInput", b, this.ag);
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
enumerable: false,
|
|
661
|
+
configurable: true
|
|
662
|
+
});
|
|
663
|
+
Object.defineProperty(DatePicker.prototype, "as", {
|
|
664
|
+
get: function () {
|
|
665
|
+
return this.ak;
|
|
666
|
+
},
|
|
667
|
+
set: function (a) {
|
|
668
|
+
var b = this.ak;
|
|
669
|
+
this.ak = a;
|
|
670
|
+
if (b != this.ak) {
|
|
671
|
+
this.cy("OpenOnFocus", b, this.ak);
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
enumerable: false,
|
|
675
|
+
configurable: true
|
|
676
|
+
});
|
|
677
|
+
Object.defineProperty(DatePicker.prototype, "j", {
|
|
678
|
+
get: function () {
|
|
679
|
+
return this.i;
|
|
680
|
+
},
|
|
681
|
+
set: function (a) {
|
|
682
|
+
var b = this.i;
|
|
683
|
+
this.i = a;
|
|
684
|
+
if (b != this.i) {
|
|
685
|
+
this.cy("FirstDayOfWeek", enumGetBox(DayOfWeek_$type, b), enumGetBox(DayOfWeek_$type, this.i));
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
enumerable: false,
|
|
689
|
+
configurable: true
|
|
690
|
+
});
|
|
691
|
+
Object.defineProperty(DatePicker.prototype, "l", {
|
|
692
|
+
get: function () {
|
|
693
|
+
return this.k;
|
|
694
|
+
},
|
|
695
|
+
set: function (a) {
|
|
696
|
+
var b = this.k;
|
|
697
|
+
this.k = a;
|
|
698
|
+
if (b != this.k) {
|
|
699
|
+
this.cy("FirstWeekOfYear", enumGetBox(FirstWeek_$type, b), enumGetBox(FirstWeek_$type, this.k));
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
enumerable: false,
|
|
703
|
+
configurable: true
|
|
704
|
+
});
|
|
705
|
+
Object.defineProperty(DatePicker.prototype, "av", {
|
|
706
|
+
get: function () {
|
|
707
|
+
return this.an;
|
|
708
|
+
},
|
|
709
|
+
set: function (a) {
|
|
710
|
+
var b = this.an;
|
|
711
|
+
this.an = a;
|
|
712
|
+
if (b != this.an) {
|
|
713
|
+
this.cy("ShowWeekNumbers", b, this.an);
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
enumerable: false,
|
|
717
|
+
configurable: true
|
|
718
|
+
});
|
|
719
|
+
Object.defineProperty(DatePicker.prototype, "e", {
|
|
720
|
+
get: function () {
|
|
721
|
+
return this.d;
|
|
722
|
+
},
|
|
723
|
+
set: function (a) {
|
|
724
|
+
var b = this.d;
|
|
725
|
+
this.d = a;
|
|
726
|
+
if (this.d != b) {
|
|
727
|
+
this.cy("DateFormat", enumGetBox(DateFormats_$type, b), enumGetBox(DateFormats_$type, this.d));
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
enumerable: false,
|
|
731
|
+
configurable: true
|
|
732
|
+
});
|
|
733
|
+
Object.defineProperty(DatePicker.prototype, "br", {
|
|
734
|
+
get: function () {
|
|
735
|
+
return this.bb;
|
|
736
|
+
},
|
|
737
|
+
set: function (a) {
|
|
738
|
+
var b = this.bb;
|
|
739
|
+
this.bb = a;
|
|
740
|
+
if (b != this.bb) {
|
|
741
|
+
this.cy("FormatString", b, this.bb);
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
enumerable: false,
|
|
745
|
+
configurable: true
|
|
746
|
+
});
|
|
747
|
+
Object.defineProperty(DatePicker.prototype, "ar", {
|
|
748
|
+
get: function () {
|
|
749
|
+
return this.aj;
|
|
750
|
+
},
|
|
751
|
+
set: function (a) {
|
|
752
|
+
var b = this.aj;
|
|
753
|
+
this.aj = a;
|
|
754
|
+
if (b != this.aj) {
|
|
755
|
+
this.cy("IsDisabled", b, this.aj);
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
enumerable: false,
|
|
759
|
+
configurable: true
|
|
760
|
+
});
|
|
761
|
+
Object.defineProperty(DatePicker.prototype, "a7", {
|
|
762
|
+
get: function () {
|
|
763
|
+
return this.a6;
|
|
764
|
+
},
|
|
765
|
+
set: function (a) {
|
|
766
|
+
var b = this.a6;
|
|
767
|
+
this.a6 = a;
|
|
768
|
+
if (b != this.a6) {
|
|
769
|
+
this.cy("TabIndex", b, this.a6);
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
enumerable: false,
|
|
773
|
+
configurable: true
|
|
774
|
+
});
|
|
775
|
+
DatePicker.prototype.cy = function (a, b, c) {
|
|
776
|
+
if (this.propertyChanged != null) {
|
|
777
|
+
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
778
|
+
}
|
|
779
|
+
this.c1(a, b, c);
|
|
780
|
+
};
|
|
781
|
+
DatePicker.prototype.c1 = function (a, b, c) {
|
|
782
|
+
switch (a) {
|
|
783
|
+
case "Density":
|
|
784
|
+
this.c4();
|
|
785
|
+
break;
|
|
786
|
+
case "BaseTheme":
|
|
787
|
+
this.c6();
|
|
788
|
+
break;
|
|
789
|
+
case "Value":
|
|
790
|
+
if (+(this.value) != +(dateMinValue())) {
|
|
791
|
+
if (dateGetDate(this.value) < dateGetDate(this.a2) || dateGetDate(this.value) > dateGetDate(this.a1)) {
|
|
792
|
+
this.ai = true;
|
|
793
|
+
this.value = this.ay;
|
|
794
|
+
this.ai = false;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
this.cz(this.ay, this.value);
|
|
798
|
+
this.ay = this.value;
|
|
799
|
+
if (this.c != null) {
|
|
800
|
+
this.c.value = this.value;
|
|
801
|
+
}
|
|
802
|
+
break;
|
|
803
|
+
case "Label":
|
|
804
|
+
if (this.r != null) {
|
|
805
|
+
this.r.text = this.bv;
|
|
806
|
+
if (this.bv != null && this.bv != "") {
|
|
807
|
+
if (!this.q.inputs.contains(this.r)) {
|
|
808
|
+
this.q.inputs.insert(0, this.r);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
else {
|
|
812
|
+
if (this.q.inputs.contains(this.r)) {
|
|
813
|
+
this.q.inputs.remove(this.r);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
break;
|
|
818
|
+
case "Placeholder":
|
|
819
|
+
if (this.o != null) {
|
|
820
|
+
this.o.cg = this.b2;
|
|
821
|
+
this.h.as(this.b2);
|
|
822
|
+
}
|
|
823
|
+
break;
|
|
824
|
+
case "Today":
|
|
825
|
+
if (this.c != null) {
|
|
826
|
+
this.c.av = this.a3;
|
|
827
|
+
}
|
|
828
|
+
break;
|
|
829
|
+
case "MaxDate":
|
|
830
|
+
if (this.c != null) {
|
|
831
|
+
var d = Base.compareSimple(this.a2, this.a1);
|
|
832
|
+
if (d >= 0) {
|
|
833
|
+
this.a1 = dateMaxValue();
|
|
834
|
+
}
|
|
835
|
+
this.c.at = this.aw;
|
|
836
|
+
}
|
|
837
|
+
if (dateGetDate(this.value) > dateGetDate(this.a1)) {
|
|
838
|
+
this.ay = dateMinValue();
|
|
839
|
+
this.ai = true;
|
|
840
|
+
this.value = dateMinValue();
|
|
841
|
+
this.ai = false;
|
|
842
|
+
}
|
|
843
|
+
break;
|
|
844
|
+
case "MinDate":
|
|
845
|
+
if (this.c != null) {
|
|
846
|
+
this.c.au = this.ax;
|
|
847
|
+
var e = Base.compareSimple(this.a2, this.a1);
|
|
848
|
+
if (e >= 0) {
|
|
849
|
+
this.ay = dateMaxValue();
|
|
850
|
+
this.c.at = this.a1;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
if (dateGetDate(this.value) < dateGetDate(this.a2)) {
|
|
854
|
+
this.ay = dateMinValue();
|
|
855
|
+
this.ai = true;
|
|
856
|
+
this.value = dateMinValue();
|
|
857
|
+
this.ai = false;
|
|
858
|
+
}
|
|
859
|
+
break;
|
|
860
|
+
case "TextStyle":
|
|
861
|
+
this.c9();
|
|
862
|
+
break;
|
|
863
|
+
case "ShowClearButton":
|
|
864
|
+
if (this.o != null) {
|
|
865
|
+
if (this.o.cq != "") {
|
|
866
|
+
this.h.ap();
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
break;
|
|
870
|
+
case "LabelTextColor":
|
|
871
|
+
case "LabelTextStyle":
|
|
872
|
+
case "TextColor":
|
|
873
|
+
case "IconColor":
|
|
874
|
+
this.da();
|
|
875
|
+
break;
|
|
876
|
+
case "ShowTodayButton":
|
|
877
|
+
if (this.c != null) {
|
|
878
|
+
this.c.ae = this.au;
|
|
879
|
+
this.h.y();
|
|
880
|
+
}
|
|
881
|
+
break;
|
|
882
|
+
case "AllowTextInput":
|
|
883
|
+
if (this.o != null) {
|
|
884
|
+
this.o.disabled = !this.aq;
|
|
885
|
+
}
|
|
886
|
+
break;
|
|
887
|
+
case "OpenOnFocus": break;
|
|
888
|
+
case "DateFormat":
|
|
889
|
+
this.a.k(this.e);
|
|
890
|
+
this.c8();
|
|
891
|
+
break;
|
|
892
|
+
case "FormatString":
|
|
893
|
+
this.ce();
|
|
894
|
+
this.c8();
|
|
895
|
+
break;
|
|
896
|
+
case "FirstDayOfWeek":
|
|
897
|
+
if (this.c != null) {
|
|
898
|
+
this.c.l = this.j;
|
|
899
|
+
}
|
|
900
|
+
break;
|
|
901
|
+
case "ShowWeekNumbers":
|
|
902
|
+
if (this.c != null) {
|
|
903
|
+
this.c.af = this.av;
|
|
904
|
+
this.h.y();
|
|
905
|
+
}
|
|
906
|
+
break;
|
|
907
|
+
case "FirstWeekOfYear":
|
|
908
|
+
if (this.c != null) {
|
|
909
|
+
this.c.o = this.l;
|
|
910
|
+
}
|
|
911
|
+
break;
|
|
912
|
+
case "IsDisabled":
|
|
913
|
+
{
|
|
914
|
+
if (this.q != null) {
|
|
915
|
+
this.q.disabled = this.ar;
|
|
916
|
+
}
|
|
917
|
+
if (this.o != null) {
|
|
918
|
+
this.o.disabled = this.ar;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
break;
|
|
922
|
+
case "TabIndex":
|
|
923
|
+
this.h.ar();
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
DatePicker.prototype.ce = function () {
|
|
928
|
+
var a = '/';
|
|
929
|
+
var b = this.br != null ? this.br.toLowerCase() : this.a.j();
|
|
930
|
+
if (stringContains(b, "/")) {
|
|
931
|
+
a = '/';
|
|
932
|
+
}
|
|
933
|
+
else if (stringContains(b, "-")) {
|
|
934
|
+
a = '-';
|
|
935
|
+
}
|
|
936
|
+
else if (stringContains(b, " ")) {
|
|
937
|
+
a = ' ';
|
|
938
|
+
}
|
|
939
|
+
else if (stringContains(b, ".")) {
|
|
940
|
+
a = '.';
|
|
941
|
+
}
|
|
942
|
+
else if (stringContains(b, ",")) {
|
|
943
|
+
a = ',';
|
|
944
|
+
}
|
|
945
|
+
this.bf = a.toString();
|
|
946
|
+
var c = b.split(a);
|
|
947
|
+
if (c.length == 3) {
|
|
948
|
+
var d = "";
|
|
949
|
+
for (var e = 0; e < 3; e++) {
|
|
950
|
+
if (stringContains(c[e], "d")) {
|
|
951
|
+
d += "d";
|
|
952
|
+
switch (c[e]) {
|
|
953
|
+
case "d":
|
|
954
|
+
this.a9 = c[e];
|
|
955
|
+
break;
|
|
956
|
+
case "dd":
|
|
957
|
+
this.a9 = c[e];
|
|
958
|
+
break;
|
|
959
|
+
case "ddd":
|
|
960
|
+
this.a9 = c[e];
|
|
961
|
+
break;
|
|
962
|
+
case "dddd":
|
|
963
|
+
this.a9 = c[e];
|
|
964
|
+
break;
|
|
965
|
+
default:
|
|
966
|
+
this.a9 = "dd";
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
else if (stringContains(c[e], "m")) {
|
|
971
|
+
d += "m";
|
|
972
|
+
switch (c[e]) {
|
|
973
|
+
case "m":
|
|
974
|
+
this.bd = c[e];
|
|
975
|
+
break;
|
|
976
|
+
case "mm":
|
|
977
|
+
this.bd = c[e];
|
|
978
|
+
break;
|
|
979
|
+
case "mmm":
|
|
980
|
+
this.bd = c[e];
|
|
981
|
+
break;
|
|
982
|
+
case "mmmm":
|
|
983
|
+
this.bd = c[e];
|
|
984
|
+
break;
|
|
985
|
+
default:
|
|
986
|
+
this.bd = "mm";
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
this.bd = c[e];
|
|
990
|
+
}
|
|
991
|
+
else if (stringContains(c[e], "y")) {
|
|
992
|
+
d += "y";
|
|
993
|
+
switch (c[e]) {
|
|
994
|
+
case "yy":
|
|
995
|
+
this.bg = c[e];
|
|
996
|
+
break;
|
|
997
|
+
case "yyyy":
|
|
998
|
+
this.bg = c[e];
|
|
999
|
+
break;
|
|
1000
|
+
default:
|
|
1001
|
+
this.bg = "yyyy";
|
|
1002
|
+
break;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
if (d == "dmy" || d == "mdy" || d == "ymd") {
|
|
1007
|
+
this.ba = d;
|
|
1008
|
+
}
|
|
1009
|
+
else {
|
|
1010
|
+
this.ba = "mdy";
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
};
|
|
1014
|
+
DatePicker.prototype.da = function () {
|
|
1015
|
+
if (this.o != null) {
|
|
1016
|
+
this.o.d8 = this.di;
|
|
1017
|
+
}
|
|
1018
|
+
if (this.m != null) {
|
|
1019
|
+
this.m.fill = this.dg;
|
|
1020
|
+
}
|
|
1021
|
+
if (this.n != null) {
|
|
1022
|
+
this.n.fill = this.dg;
|
|
1023
|
+
}
|
|
1024
|
+
if (this.r != null) {
|
|
1025
|
+
this.r.df = this.dh;
|
|
1026
|
+
this.r.y = this.ac;
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
DatePicker.prototype.c7 = function () {
|
|
1030
|
+
if (this.q != null) {
|
|
1031
|
+
}
|
|
1032
|
+
};
|
|
1033
|
+
DatePicker.prototype.c9 = function () {
|
|
1034
|
+
if (this.aa != null) {
|
|
1035
|
+
this.o.af = this.aa;
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
DatePicker.prototype.ch = function () {
|
|
1039
|
+
this.q = new XInputGroup();
|
|
1040
|
+
this.h.ak(this.q);
|
|
1041
|
+
this.q.d = 0;
|
|
1042
|
+
this.q.p = this.w;
|
|
1043
|
+
this.q.t = this.y;
|
|
1044
|
+
this.r = new XLabel();
|
|
1045
|
+
this.h.am(this.r);
|
|
1046
|
+
this.r.df = this.dh;
|
|
1047
|
+
this.r.y = this.ac;
|
|
1048
|
+
this.q.appendContentChild(this.h.u());
|
|
1049
|
+
if (this.bv != null && this.bv != "") {
|
|
1050
|
+
this.r.text = this.bv;
|
|
1051
|
+
this.q.inputs.add(this.r);
|
|
1052
|
+
}
|
|
1053
|
+
this.o = new XInput();
|
|
1054
|
+
this.h.al(this.o);
|
|
1055
|
+
this.o.b8 = "text";
|
|
1056
|
+
if (this.aa != null) {
|
|
1057
|
+
this.o.af = this.aa;
|
|
1058
|
+
}
|
|
1059
|
+
this.o.disabled = !this.aq;
|
|
1060
|
+
this.o.d8 = this.di;
|
|
1061
|
+
this.q.appendContentChild(this.h.t());
|
|
1062
|
+
this.q.inputs.add(this.o);
|
|
1063
|
+
this.o.cg = this.b2;
|
|
1064
|
+
this.h.as(this.b2);
|
|
1065
|
+
var a = this.o;
|
|
1066
|
+
a.change = delegateCombine(a.change, runOn(this, this.co));
|
|
1067
|
+
var b = this.o;
|
|
1068
|
+
b.changing = delegateCombine(b.changing, runOn(this, this.cp));
|
|
1069
|
+
var c = this.o;
|
|
1070
|
+
c.keyDown = delegateCombine(c.keyDown, runOn(this, this.cq));
|
|
1071
|
+
var d = new XSuffix();
|
|
1072
|
+
this.h.ao(d, this.h.q());
|
|
1073
|
+
this.m = new XIcon();
|
|
1074
|
+
this.h.aj(this.m, this.h.p());
|
|
1075
|
+
this.m.svgPath = DatePicker.bk;
|
|
1076
|
+
this.m.fill = this.dg;
|
|
1077
|
+
d.appendContentChild(this.h.p());
|
|
1078
|
+
this.q.appendContentChild(this.h.q());
|
|
1079
|
+
this.q.inputs.add(d);
|
|
1080
|
+
this.c8();
|
|
1081
|
+
var e = new XSuffix();
|
|
1082
|
+
this.h.ao(e, this.h.s());
|
|
1083
|
+
this.n = new XIcon();
|
|
1084
|
+
this.h.aj(this.n, this.h.r());
|
|
1085
|
+
this.n.svgPath = DatePicker.bj;
|
|
1086
|
+
this.n.fill = this.dg;
|
|
1087
|
+
e.appendContentChild(this.h.r());
|
|
1088
|
+
this.q.appendContentChild(this.h.s());
|
|
1089
|
+
this.q.inputs.add(e);
|
|
1090
|
+
};
|
|
1091
|
+
DatePicker.prototype.cq = function (a, b) {
|
|
1092
|
+
this.cw(b);
|
|
1093
|
+
if (b.defaultPrevented) {
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
var c = b.keyCode;
|
|
1097
|
+
var d = b.modifiers;
|
|
1098
|
+
switch (c) {
|
|
1099
|
+
case 9:
|
|
1100
|
+
this.ao = true;
|
|
1101
|
+
if (!this.ap) {
|
|
1102
|
+
this.dc(this.o.cq);
|
|
1103
|
+
}
|
|
1104
|
+
this.ah = true;
|
|
1105
|
+
this.cg();
|
|
1106
|
+
this.ao = false;
|
|
1107
|
+
break;
|
|
1108
|
+
case 13:
|
|
1109
|
+
this.ao = true;
|
|
1110
|
+
if (!this.ap) {
|
|
1111
|
+
this.dc(this.o.cq);
|
|
1112
|
+
}
|
|
1113
|
+
this.ah = true;
|
|
1114
|
+
this.cg();
|
|
1115
|
+
this.ao = false;
|
|
1116
|
+
break;
|
|
1117
|
+
case 40:
|
|
1118
|
+
if (d == 1) {
|
|
1119
|
+
this.c0();
|
|
1120
|
+
this.cl();
|
|
1121
|
+
}
|
|
1122
|
+
break;
|
|
1123
|
+
case 38:
|
|
1124
|
+
if (d == 1) {
|
|
1125
|
+
this.cg();
|
|
1126
|
+
}
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
DatePicker.prototype.cp = function (a, b) {
|
|
1131
|
+
this.cs(b);
|
|
1132
|
+
if (b.value.length > 0) {
|
|
1133
|
+
this.h.ap();
|
|
1134
|
+
}
|
|
1135
|
+
else {
|
|
1136
|
+
this.h.ae();
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
DatePicker.prototype.co = function (a, b) {
|
|
1140
|
+
this.ap = true;
|
|
1141
|
+
this.dc(b.value);
|
|
1142
|
+
this.ap = false;
|
|
1143
|
+
};
|
|
1144
|
+
DatePicker.prototype.dc = function (a) {
|
|
1145
|
+
var b = ['/', '-', ' ', '.', ','];
|
|
1146
|
+
var c = stringSplit(a, b, 1);
|
|
1147
|
+
var d = 0;
|
|
1148
|
+
var e = 0;
|
|
1149
|
+
var f = 0;
|
|
1150
|
+
var g = true;
|
|
1151
|
+
if (c.length == 3) {
|
|
1152
|
+
if (c[0].length == 0 || c[1].length == 0 || c[2].length == 0) {
|
|
1153
|
+
g = false;
|
|
1154
|
+
}
|
|
1155
|
+
if (this.ba == "dmy") {
|
|
1156
|
+
d = parseInt(c[0]);
|
|
1157
|
+
e = parseInt(c[1]);
|
|
1158
|
+
f = parseInt(c[2]);
|
|
1159
|
+
}
|
|
1160
|
+
else if (this.ba == "mdy") {
|
|
1161
|
+
e = parseInt(c[0]);
|
|
1162
|
+
d = parseInt(c[1]);
|
|
1163
|
+
f = parseInt(c[2]);
|
|
1164
|
+
}
|
|
1165
|
+
else if (this.ba == "ymd") {
|
|
1166
|
+
f = parseInt(c[0]);
|
|
1167
|
+
e = parseInt(c[1]);
|
|
1168
|
+
d = parseInt(c[2]);
|
|
1169
|
+
}
|
|
1170
|
+
if (isNaN_(d) || isNaN_(f)) {
|
|
1171
|
+
g = false;
|
|
1172
|
+
}
|
|
1173
|
+
if (f < 50) {
|
|
1174
|
+
f = f + 2000;
|
|
1175
|
+
}
|
|
1176
|
+
if (isNaN_(e)) {
|
|
1177
|
+
var h = "";
|
|
1178
|
+
if (this.ba == "dmy") {
|
|
1179
|
+
h = c[1].toLowerCase();
|
|
1180
|
+
}
|
|
1181
|
+
else if (this.ba == "mdy") {
|
|
1182
|
+
h = c[0].toLowerCase();
|
|
1183
|
+
}
|
|
1184
|
+
else if (this.ba == "ymd") {
|
|
1185
|
+
h = c[1].toLowerCase();
|
|
1186
|
+
}
|
|
1187
|
+
var i = !stringIsNullOrWhiteSpace(this.af.b1("January_Full")) ? this.af.b1("January_Full").toLowerCase() : "january";
|
|
1188
|
+
var j = !stringIsNullOrWhiteSpace(this.af.b1("January_Short")) ? this.af.b1("January_Short").toLowerCase() : "jan";
|
|
1189
|
+
var k = !stringIsNullOrWhiteSpace(this.af.b1("February_Full")) ? this.af.b1("February_Full").toLowerCase() : "february";
|
|
1190
|
+
var l = !stringIsNullOrWhiteSpace(this.af.b1("February_Short")) ? this.af.b1("February_Short").toLowerCase() : "feb";
|
|
1191
|
+
var m = !stringIsNullOrWhiteSpace(this.af.b1("March_Full")) ? this.af.b1("March_Full").toLowerCase() : "march";
|
|
1192
|
+
var n = !stringIsNullOrWhiteSpace(this.af.b1("March_Short")) ? this.af.b1("March_Short").toLowerCase() : "mar";
|
|
1193
|
+
var o = !stringIsNullOrWhiteSpace(this.af.b1("April_Full")) ? this.af.b1("April_Full").toLowerCase() : "april";
|
|
1194
|
+
var p = !stringIsNullOrWhiteSpace(this.af.b1("April_Short")) ? this.af.b1("April_Short").toLowerCase() : "apr";
|
|
1195
|
+
var q = !stringIsNullOrWhiteSpace(this.af.b1("May_Full")) ? this.af.b1("May_Full").toLowerCase() : "may";
|
|
1196
|
+
var r = !stringIsNullOrWhiteSpace(this.af.b1("May_Short")) ? this.af.b1("May_Short").toLowerCase() : "may";
|
|
1197
|
+
var s = !stringIsNullOrWhiteSpace(this.af.b1("June_Full")) ? this.af.b1("June_Full").toLowerCase() : "june";
|
|
1198
|
+
var t = !stringIsNullOrWhiteSpace(this.af.b1("June_Short")) ? this.af.b1("June_Short").toLowerCase() : "jun";
|
|
1199
|
+
var u = !stringIsNullOrWhiteSpace(this.af.b1("July_Full")) ? this.af.b1("July_Full").toLowerCase() : "july";
|
|
1200
|
+
var v = !stringIsNullOrWhiteSpace(this.af.b1("July_Short")) ? this.af.b1("July_Short").toLowerCase() : "jul";
|
|
1201
|
+
var w = !stringIsNullOrWhiteSpace(this.af.b1("August_Full")) ? this.af.b1("August_Full").toLowerCase() : "august";
|
|
1202
|
+
var x = !stringIsNullOrWhiteSpace(this.af.b1("August_Short")) ? this.af.b1("August_Short").toLowerCase() : "aug";
|
|
1203
|
+
var y = !stringIsNullOrWhiteSpace(this.af.b1("September_Full")) ? this.af.b1("September_Full").toLowerCase() : "september";
|
|
1204
|
+
var z = !stringIsNullOrWhiteSpace(this.af.b1("September_Short")) ? this.af.b1("September_Short").toLowerCase() : "sep";
|
|
1205
|
+
var aa = !stringIsNullOrWhiteSpace(this.af.b1("October_Full")) ? this.af.b1("October_Full").toLowerCase() : "october";
|
|
1206
|
+
var ab = !stringIsNullOrWhiteSpace(this.af.b1("October_Short")) ? this.af.b1("October_Short").toLowerCase() : "oct";
|
|
1207
|
+
var ac = !stringIsNullOrWhiteSpace(this.af.b1("November_Full")) ? this.af.b1("November_Full").toLowerCase() : "november";
|
|
1208
|
+
var ad = !stringIsNullOrWhiteSpace(this.af.b1("November_Short")) ? this.af.b1("November_Short").toLowerCase() : "nov";
|
|
1209
|
+
var ae = !stringIsNullOrWhiteSpace(this.af.b1("December_Full")) ? this.af.b1("December_Full").toLowerCase() : "december";
|
|
1210
|
+
var af = !stringIsNullOrWhiteSpace(this.af.b1("December_Short")) ? this.af.b1("December_Short").toLowerCase() : "dec";
|
|
1211
|
+
if (h == i || h == j) {
|
|
1212
|
+
e = 1;
|
|
1213
|
+
}
|
|
1214
|
+
else if (h == k || h == l) {
|
|
1215
|
+
e = 2;
|
|
1216
|
+
}
|
|
1217
|
+
else if (h == m || h == n) {
|
|
1218
|
+
e = 3;
|
|
1219
|
+
}
|
|
1220
|
+
else if (h == o || h == p) {
|
|
1221
|
+
e = 4;
|
|
1222
|
+
}
|
|
1223
|
+
else if (h == q || h == r) {
|
|
1224
|
+
e = 5;
|
|
1225
|
+
}
|
|
1226
|
+
else if (h == s || h == t) {
|
|
1227
|
+
e = 6;
|
|
1228
|
+
}
|
|
1229
|
+
else if (h == u || h == v) {
|
|
1230
|
+
e = 7;
|
|
1231
|
+
}
|
|
1232
|
+
else if (h == w || h == x) {
|
|
1233
|
+
e = 8;
|
|
1234
|
+
}
|
|
1235
|
+
else if (h == y || h == z) {
|
|
1236
|
+
e = 9;
|
|
1237
|
+
}
|
|
1238
|
+
else if (h == aa || h == ab) {
|
|
1239
|
+
e = 10;
|
|
1240
|
+
}
|
|
1241
|
+
else if (h == ac || h == ad) {
|
|
1242
|
+
e = 11;
|
|
1243
|
+
}
|
|
1244
|
+
else if (h == ae || h == af) {
|
|
1245
|
+
e = 12;
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
g = false;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
if (e > 12 || e < 1) {
|
|
1252
|
+
g = false;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
else {
|
|
1256
|
+
g = false;
|
|
1257
|
+
}
|
|
1258
|
+
if (g) {
|
|
1259
|
+
var ag = dateFromValues(f, e, d, 0, 0, 0, 0);
|
|
1260
|
+
var ah = Base.compareSimple(ag, this.a2);
|
|
1261
|
+
var ai = Base.compareSimple(ag, this.a1);
|
|
1262
|
+
if (ah < 0 || ai > 0) {
|
|
1263
|
+
this.c8();
|
|
1264
|
+
}
|
|
1265
|
+
else {
|
|
1266
|
+
this.db(ag);
|
|
1267
|
+
this.h.ap();
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
else {
|
|
1271
|
+
if (stringIsNullOrEmpty(a)) {
|
|
1272
|
+
this.cf();
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
this.c8();
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
DatePicker.prototype.db = function (a) {
|
|
1280
|
+
var b = this.value;
|
|
1281
|
+
this.value = a;
|
|
1282
|
+
};
|
|
1283
|
+
DatePicker.prototype.c8 = function () {
|
|
1284
|
+
if (this.o != null) {
|
|
1285
|
+
if (+(this.a0) != +(dateMinValue())) {
|
|
1286
|
+
var a = "";
|
|
1287
|
+
if (this.br == null) {
|
|
1288
|
+
a = this.a.i(this.value);
|
|
1289
|
+
}
|
|
1290
|
+
else {
|
|
1291
|
+
var b = this.value.getDate().toString();
|
|
1292
|
+
var c = b;
|
|
1293
|
+
if (this.a9 == "dd") {
|
|
1294
|
+
if (this.value.getDate() < 10) {
|
|
1295
|
+
b = "0" + b;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
else if (this.a9 == "ddd") {
|
|
1299
|
+
switch (this.value.getDay()) {
|
|
1300
|
+
case 0:
|
|
1301
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Sunday_Short")) ? this.af.b1("Sunday_Short") : "Sun";
|
|
1302
|
+
break;
|
|
1303
|
+
case 1:
|
|
1304
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Monday_Short")) ? this.af.b1("Monday_Short") : "Mon";
|
|
1305
|
+
break;
|
|
1306
|
+
case 2:
|
|
1307
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Tuesday_Short")) ? this.af.b1("Tuesday_Short") : "Tue";
|
|
1308
|
+
break;
|
|
1309
|
+
case 3:
|
|
1310
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Wednesday_Short")) ? this.af.b1("Wednesday_Short") : "Wed";
|
|
1311
|
+
break;
|
|
1312
|
+
case 4:
|
|
1313
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Thursday_Short")) ? this.af.b1("Thursday_Short") : "Thu";
|
|
1314
|
+
break;
|
|
1315
|
+
case 5:
|
|
1316
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Friday_Short")) ? this.af.b1("Friday_Short") : "Fri";
|
|
1317
|
+
break;
|
|
1318
|
+
case 6:
|
|
1319
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Saturday_Short")) ? this.af.b1("Saturday_Short") : "Sat";
|
|
1320
|
+
break;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
else if (this.a9 == "dddd") {
|
|
1324
|
+
switch (this.value.getDay()) {
|
|
1325
|
+
case 0:
|
|
1326
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Sunday_Full")) ? this.af.b1("Sunday_Full") : "Sunday";
|
|
1327
|
+
break;
|
|
1328
|
+
case 1:
|
|
1329
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Monday_Full")) ? this.af.b1("Monday_Full") : "Monday";
|
|
1330
|
+
break;
|
|
1331
|
+
case 2:
|
|
1332
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Tuesday_Full")) ? this.af.b1("Tuesday_Full") : "Tuesday";
|
|
1333
|
+
break;
|
|
1334
|
+
case 3:
|
|
1335
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Wednesday_Full")) ? this.af.b1("Wednesday_Full") : "Wednesday";
|
|
1336
|
+
break;
|
|
1337
|
+
case 4:
|
|
1338
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Thursday_Full")) ? this.af.b1("Thursday_Full") : "Thursday";
|
|
1339
|
+
break;
|
|
1340
|
+
case 5:
|
|
1341
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Friday_Full")) ? this.af.b1("Friday_Full") : "Friday";
|
|
1342
|
+
break;
|
|
1343
|
+
case 6:
|
|
1344
|
+
b = !stringIsNullOrWhiteSpace(this.af.b1("Saturday_Full")) ? this.af.b1("Saturday_Full") : "Saturday";
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
var d = dateGetMonth(this.value).toString();
|
|
1349
|
+
if (this.bd == "mm") {
|
|
1350
|
+
if (dateGetMonth(this.value) < 10) {
|
|
1351
|
+
d = "0" + d;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
else if (this.bd == "mmm") {
|
|
1355
|
+
switch (dateGetMonth(this.value)) {
|
|
1356
|
+
case 1:
|
|
1357
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("January_Short")) ? this.af.b1("January_Short") : "Jan";
|
|
1358
|
+
break;
|
|
1359
|
+
case 2:
|
|
1360
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("February_Short")) ? this.af.b1("February_Short") : "Feb";
|
|
1361
|
+
break;
|
|
1362
|
+
case 3:
|
|
1363
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("March_Short")) ? this.af.b1("March_Short") : "Mar";
|
|
1364
|
+
break;
|
|
1365
|
+
case 4:
|
|
1366
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("April_Short")) ? this.af.b1("April_Short") : "Apr";
|
|
1367
|
+
break;
|
|
1368
|
+
case 5:
|
|
1369
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("May_Short")) ? this.af.b1("May_Short") : "May";
|
|
1370
|
+
break;
|
|
1371
|
+
case 6:
|
|
1372
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("June_Short")) ? this.af.b1("June_Short") : "Jun";
|
|
1373
|
+
break;
|
|
1374
|
+
case 7:
|
|
1375
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("July_Short")) ? this.af.b1("July_Short") : "Jul";
|
|
1376
|
+
break;
|
|
1377
|
+
case 8:
|
|
1378
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("August_Short")) ? this.af.b1("August_Short") : "Aug";
|
|
1379
|
+
break;
|
|
1380
|
+
case 9:
|
|
1381
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("September_Short")) ? this.af.b1("September_Short") : "Sep";
|
|
1382
|
+
break;
|
|
1383
|
+
case 10:
|
|
1384
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("October_Short")) ? this.af.b1("October_Short") : "Oct";
|
|
1385
|
+
break;
|
|
1386
|
+
case 11:
|
|
1387
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("November_Short")) ? this.af.b1("November_Short") : "Nov";
|
|
1388
|
+
break;
|
|
1389
|
+
case 12:
|
|
1390
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("December_Short")) ? this.af.b1("December_Short") : "Dec";
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
else if (this.bd == "mmmm") {
|
|
1395
|
+
switch (dateGetMonth(this.value)) {
|
|
1396
|
+
case 1:
|
|
1397
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("January_Full")) ? this.af.b1("January_Full") : "January";
|
|
1398
|
+
break;
|
|
1399
|
+
case 2:
|
|
1400
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("February_Full")) ? this.af.b1("February_Full") : "February";
|
|
1401
|
+
break;
|
|
1402
|
+
case 3:
|
|
1403
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("March_Full")) ? this.af.b1("March_Full") : "March";
|
|
1404
|
+
break;
|
|
1405
|
+
case 4:
|
|
1406
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("April_Full")) ? this.af.b1("April_Full") : "April";
|
|
1407
|
+
break;
|
|
1408
|
+
case 5:
|
|
1409
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("May_Full")) ? this.af.b1("May_Full") : "May";
|
|
1410
|
+
break;
|
|
1411
|
+
case 6:
|
|
1412
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("June_Full")) ? this.af.b1("June_Full") : "June";
|
|
1413
|
+
break;
|
|
1414
|
+
case 7:
|
|
1415
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("July_Full")) ? this.af.b1("July_Full") : "July";
|
|
1416
|
+
break;
|
|
1417
|
+
case 8:
|
|
1418
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("August_Full")) ? this.af.b1("August_Full") : "August";
|
|
1419
|
+
break;
|
|
1420
|
+
case 9:
|
|
1421
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("September_Full")) ? this.af.b1("September_Full") : "September";
|
|
1422
|
+
break;
|
|
1423
|
+
case 10:
|
|
1424
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("October_Full")) ? this.af.b1("October_Full") : "October";
|
|
1425
|
+
break;
|
|
1426
|
+
case 11:
|
|
1427
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("November_Full")) ? this.af.b1("November_Full") : "November";
|
|
1428
|
+
break;
|
|
1429
|
+
case 12:
|
|
1430
|
+
d = !stringIsNullOrWhiteSpace(this.af.b1("December_Full")) ? this.af.b1("December_Full") : "December";
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
var e = this.value.getFullYear().toString();
|
|
1435
|
+
if (this.bg == "yy") {
|
|
1436
|
+
e = e.substr(2);
|
|
1437
|
+
}
|
|
1438
|
+
if (this.ba == "dmy") {
|
|
1439
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1440
|
+
a = b + this.bf + d + " " + c + this.bf + e;
|
|
1441
|
+
}
|
|
1442
|
+
else {
|
|
1443
|
+
a = b + this.bf + d + this.bf + e;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
else if (this.ba == "mdy") {
|
|
1447
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1448
|
+
a = d + " " + c + this.bf + b + this.bf + e;
|
|
1449
|
+
}
|
|
1450
|
+
else {
|
|
1451
|
+
a = d + this.bf + b + this.bf + e;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
else if (this.ba == "ymd") {
|
|
1455
|
+
if (this.a9 == "ddd" || this.a9 == "dddd") {
|
|
1456
|
+
a = e + this.bf + d + " " + c + this.bf + b;
|
|
1457
|
+
}
|
|
1458
|
+
else {
|
|
1459
|
+
a = e + this.bf + d + this.bf + b;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
this.o.cq = a;
|
|
1464
|
+
this.h.ap();
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
this.o.cq = "";
|
|
1468
|
+
this.h.ae();
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
DatePicker.prototype.cf = function () {
|
|
1473
|
+
if (this.ar == true) {
|
|
1474
|
+
return;
|
|
1475
|
+
}
|
|
1476
|
+
if (this.o != null) {
|
|
1477
|
+
this.o.cq = "";
|
|
1478
|
+
}
|
|
1479
|
+
this.value = dateMinValue();
|
|
1480
|
+
this.c.ch();
|
|
1481
|
+
};
|
|
1482
|
+
DatePicker.prototype.ci = function () {
|
|
1483
|
+
this.u = new Popup();
|
|
1484
|
+
this.h.an(this.u);
|
|
1485
|
+
this.c = new XCalendar();
|
|
1486
|
+
this.h.ai(this.c);
|
|
1487
|
+
if (+(this.a2) != +(dateMinValue())) {
|
|
1488
|
+
this.c.au = this.a2;
|
|
1489
|
+
}
|
|
1490
|
+
if (+(this.a1) != +(dateMaxValue())) {
|
|
1491
|
+
this.c.at = this.a1;
|
|
1492
|
+
}
|
|
1493
|
+
if (+(this.a3) != +(dateMinValue())) {
|
|
1494
|
+
this.c.av = this.a3;
|
|
1495
|
+
}
|
|
1496
|
+
this.c.ae = this.au;
|
|
1497
|
+
this.c.l = this.j;
|
|
1498
|
+
this.c.af = this.av;
|
|
1499
|
+
this.c.o = this.l;
|
|
1500
|
+
var a = this.c;
|
|
1501
|
+
a.selectedValueChanged = delegateCombine(a.selectedValueChanged, runOn(this, this.cd));
|
|
1502
|
+
var b = this.c;
|
|
1503
|
+
b.close = delegateCombine(b.close, runOn(this, this.cc));
|
|
1504
|
+
this.u.appendPopupContent(this.h.o());
|
|
1505
|
+
};
|
|
1506
|
+
DatePicker.prototype.cd = function (a, b) {
|
|
1507
|
+
this.ai = true;
|
|
1508
|
+
this.value = b.newValue;
|
|
1509
|
+
this.ai = false;
|
|
1510
|
+
};
|
|
1511
|
+
DatePicker.prototype.cc = function (a) {
|
|
1512
|
+
if (this.u.ao) {
|
|
1513
|
+
this.ah = true;
|
|
1514
|
+
this.cg();
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
DatePicker.prototype.cn = function () {
|
|
1518
|
+
if (this.ah == false) {
|
|
1519
|
+
if (this.u.ao) {
|
|
1520
|
+
this.cg();
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
this.c0();
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
else {
|
|
1527
|
+
this.ah = false;
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
DatePicker.prototype.c0 = function () {
|
|
1531
|
+
if (this.ar) {
|
|
1532
|
+
return;
|
|
1533
|
+
}
|
|
1534
|
+
if (this.u != null) {
|
|
1535
|
+
var a = this.h.at();
|
|
1536
|
+
var b = new Rect(0, a.left + window.pageXOffset, a.top + window.pageYOffset, a.width, a.height);
|
|
1537
|
+
var c = this.h.a()[1];
|
|
1538
|
+
var d = 240;
|
|
1539
|
+
if (this.au == true) {
|
|
1540
|
+
d = 270;
|
|
1541
|
+
}
|
|
1542
|
+
var e = a.bottom + d;
|
|
1543
|
+
if (c < e) {
|
|
1544
|
+
var f = a.top - d;
|
|
1545
|
+
if (f < 0) {
|
|
1546
|
+
this.u.showRelativeToExclusionRect(b, 1, 0);
|
|
1547
|
+
}
|
|
1548
|
+
else {
|
|
1549
|
+
this.u.showRelativeToExclusionRect(b, 2, 0);
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
else {
|
|
1553
|
+
this.u.showRelativeToExclusionRect(b, 1, 0);
|
|
1554
|
+
}
|
|
1555
|
+
this.h.aq(true);
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
DatePicker.prototype.cg = function () {
|
|
1559
|
+
var _this = this;
|
|
1560
|
+
if (this.u != null) {
|
|
1561
|
+
window.setTimeout(function () { return _this.u.bj(); }, 0);
|
|
1562
|
+
}
|
|
1563
|
+
if (this.c != null) {
|
|
1564
|
+
this.c.cy();
|
|
1565
|
+
}
|
|
1566
|
+
this.h.aq(false);
|
|
1567
|
+
this.ah = false;
|
|
1568
|
+
};
|
|
1569
|
+
DatePicker.prototype.focus = function (a) {
|
|
1570
|
+
var _this = this;
|
|
1571
|
+
if (a === void 0) {
|
|
1572
|
+
a = false;
|
|
1573
|
+
}
|
|
1574
|
+
if (this.o != null) {
|
|
1575
|
+
this.o.focus(a);
|
|
1576
|
+
}
|
|
1577
|
+
if (!this.u.ao && this.as == true) {
|
|
1578
|
+
if (this.ah == false) {
|
|
1579
|
+
if (this.aq == false) {
|
|
1580
|
+
this.c0();
|
|
1581
|
+
this.ah = true;
|
|
1582
|
+
window.setTimeout(function () { return _this.cl(); }, 0);
|
|
1583
|
+
}
|
|
1584
|
+
else {
|
|
1585
|
+
if (this.as == true && this.ao == false) {
|
|
1586
|
+
this.c0();
|
|
1587
|
+
this.ah = true;
|
|
1588
|
+
window.setTimeout(function () { return _this.cl(); }, 0);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
else {
|
|
1593
|
+
this.ah = false;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
};
|
|
1597
|
+
DatePicker.prototype.cm = function () {
|
|
1598
|
+
this.ah = false;
|
|
1599
|
+
};
|
|
1600
|
+
DatePicker.prototype.c3 = function () {
|
|
1601
|
+
if (this.o != null) {
|
|
1602
|
+
this.o.dp();
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
DatePicker.prototype.cl = function () {
|
|
1606
|
+
this.c.cq();
|
|
1607
|
+
};
|
|
1608
|
+
DatePicker.prototype.ct = function () {
|
|
1609
|
+
var a = new GotFocusEventArgs();
|
|
1610
|
+
this.cv(a);
|
|
1611
|
+
};
|
|
1612
|
+
DatePicker.prototype.cu = function () {
|
|
1613
|
+
var a = new LostFocusEventArgs();
|
|
1614
|
+
this.cx(a);
|
|
1615
|
+
};
|
|
1616
|
+
DatePicker.prototype.c6 = function () {
|
|
1617
|
+
};
|
|
1618
|
+
DatePicker.prototype.c4 = function () {
|
|
1619
|
+
};
|
|
1620
|
+
DatePicker.prototype.a8 = function () {
|
|
1621
|
+
return this.b();
|
|
1622
|
+
};
|
|
1623
|
+
DatePicker.prototype.bo = function () {
|
|
1624
|
+
var a = this.b();
|
|
1625
|
+
return a.g();
|
|
1626
|
+
};
|
|
1627
|
+
DatePicker.prototype.b = function () {
|
|
1628
|
+
var a = new DatePickerVisualModelExport();
|
|
1629
|
+
a.e = this.y;
|
|
1630
|
+
a.d = this.w;
|
|
1631
|
+
a.c = this.u.ay();
|
|
1632
|
+
a.b = this.q.fe();
|
|
1633
|
+
a.a = this.c.bj();
|
|
1634
|
+
if (this.ad != null) {
|
|
1635
|
+
var b = this.ad;
|
|
1636
|
+
if (this.h != null && b.n == null) {
|
|
1637
|
+
var c = this.h.d;
|
|
1638
|
+
var d = FontUtil.getFontInfoFromString(c, b.fontString);
|
|
1639
|
+
b.n = d.n;
|
|
1640
|
+
b.d = d.d;
|
|
1641
|
+
b.o = d.o;
|
|
1642
|
+
b.q = d.q;
|
|
1643
|
+
b.r = d.r;
|
|
1644
|
+
b.s = d.s;
|
|
1645
|
+
}
|
|
1646
|
+
if (b.n != null) {
|
|
1647
|
+
a.h = b.n;
|
|
1648
|
+
}
|
|
1649
|
+
if (!isNaN_(b.d)) {
|
|
1650
|
+
a.f = b.d;
|
|
1651
|
+
}
|
|
1652
|
+
if (b.s != null) {
|
|
1653
|
+
a.l = b.s;
|
|
1654
|
+
}
|
|
1655
|
+
if (b.q != null) {
|
|
1656
|
+
a.j = b.q;
|
|
1657
|
+
}
|
|
1658
|
+
if (b.o != null) {
|
|
1659
|
+
a.i = b.q;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
return a;
|
|
1663
|
+
};
|
|
1664
|
+
DatePicker.prototype.cv = function (a) {
|
|
1665
|
+
if (null != this.gotFocus) {
|
|
1666
|
+
this.gotFocus(this, a);
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
DatePicker.prototype.cx = function (a) {
|
|
1670
|
+
if (null != this.lostFocus) {
|
|
1671
|
+
this.lostFocus(this, a);
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
DatePicker.prototype.cw = function (a) {
|
|
1675
|
+
if (null != this.keyDown) {
|
|
1676
|
+
this.keyDown(this, a);
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
DatePicker.prototype.cs = function (a) {
|
|
1680
|
+
if (null != this.changing) {
|
|
1681
|
+
this.changing(this, a);
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
DatePicker.$t = markType(DatePicker, 'DatePicker', Base.$, [INotifyPropertyChanged_$type]);
|
|
1685
|
+
DatePicker.bj = "M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z";
|
|
1686
|
+
DatePicker.bk = "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
1687
|
+
DatePicker.ab = null;
|
|
1688
|
+
return DatePicker;
|
|
1689
|
+
}(Base));
|
|
1690
|
+
export { DatePicker };
|