igniteui-webcomponents-inputs 7.1.1-beta.1 → 7.1.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (552) hide show
  1. package/fesm2022/igniteui-webcomponents-inputs.mjs +40140 -0
  2. package/igniteui-webcomponents-inputs.d.ts +9883 -1
  3. package/package.json +13 -9
  4. package/bundles/igniteui-webcomponents-inputs.umd.js +0 -47852
  5. package/bundles/igniteui-webcomponents-inputs.umd.min.js +0 -7
  6. package/esm2015/igniteui-webcomponents-inputs.js +0 -1
  7. package/esm2015/lib/ButtonClickEventArgs.js +0 -14
  8. package/esm2015/lib/ButtonDisplayStyle.js +0 -11
  9. package/esm2015/lib/ButtonGroupDisplayStyle.js +0 -11
  10. package/esm2015/lib/ButtonGroupOrientation.js +0 -16
  11. package/esm2015/lib/ButtonGroupSelectionChangedEventArgs.js +0 -14
  12. package/esm2015/lib/ButtonGroupView.js +0 -7
  13. package/esm2015/lib/ButtonGroupView_combined.js +0 -1343
  14. package/esm2015/lib/ButtonGroupVisualModelExport.js +0 -62
  15. package/esm2015/lib/ButtonView.js +0 -7
  16. package/esm2015/lib/ButtonView_combined.js +0 -3668
  17. package/esm2015/lib/ButtonVisualModelExport.js +0 -108
  18. package/esm2015/lib/CalendarView.js +0 -7
  19. package/esm2015/lib/CalendarView_combined.js +0 -2803
  20. package/esm2015/lib/CalendarVisualModelExport.js +0 -98
  21. package/esm2015/lib/CheckboxChangeEventArgs.js +0 -31
  22. package/esm2015/lib/CheckboxLabelPosition.js +0 -11
  23. package/esm2015/lib/CheckboxListVisualModelExport.js +0 -41
  24. package/esm2015/lib/CheckboxView.js +0 -7
  25. package/esm2015/lib/CheckboxView_combined.js +0 -1123
  26. package/esm2015/lib/CheckboxVisualModelExport.js +0 -68
  27. package/esm2015/lib/ColorEditor.js +0 -7
  28. package/esm2015/lib/ColorEditorBridge.js +0 -7
  29. package/esm2015/lib/ColorEditorGotFocusEventArgs.js +0 -14
  30. package/esm2015/lib/ColorEditorLostFocusEventArgs.js +0 -14
  31. package/esm2015/lib/ColorEditorPanel.js +0 -7
  32. package/esm2015/lib/ColorEditorPanelClosedEventArgs.js +0 -14
  33. package/esm2015/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +0 -31
  34. package/esm2015/lib/ColorEditorPanelView.js +0 -7
  35. package/esm2015/lib/ColorEditorView.js +0 -7
  36. package/esm2015/lib/ColorEditorVisualModelExport.js +0 -38
  37. package/esm2015/lib/DateFormats.js +0 -25
  38. package/esm2015/lib/DatePickerView.js +0 -7
  39. package/esm2015/lib/DatePickerView_combined.js +0 -1707
  40. package/esm2015/lib/DatePickerVisualModelExport.js +0 -68
  41. package/esm2015/lib/DateTimeValueFormatter.js +0 -106
  42. package/esm2015/lib/DayInfo.js +0 -21
  43. package/esm2015/lib/DayOfWeek.js +0 -45
  44. package/esm2015/lib/DefaultMultiSliderTrackBarVisual.js +0 -111
  45. package/esm2015/lib/DefaultMultiSliderTrackRangeVisual.js +0 -206
  46. package/esm2015/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +0 -168
  47. package/esm2015/lib/DefaultMultiSliderTrackThumbVisual.js +0 -191
  48. package/esm2015/lib/DefaultMultiTrackShadeVisual.js +0 -170
  49. package/esm2015/lib/ElevationHelper.js +0 -65
  50. package/esm2015/lib/FirstWeek.js +0 -29
  51. package/esm2015/lib/GotFocusEventArgs.js +0 -14
  52. package/esm2015/lib/IMultiSliderTrackBarVisual.js +0 -11
  53. package/esm2015/lib/IMultiSliderTrackRangeVisual.js +0 -11
  54. package/esm2015/lib/IMultiSliderTrackShadeVisual.js +0 -11
  55. package/esm2015/lib/IMultiSliderTrackThumbCalloutVisual.js +0 -11
  56. package/esm2015/lib/IMultiSliderTrackThumbVisual.js +0 -11
  57. package/esm2015/lib/ISliderTrackOwner.js +0 -11
  58. package/esm2015/lib/IconClickedEventArgs.js +0 -24
  59. package/esm2015/lib/IconView.js +0 -7
  60. package/esm2015/lib/IconViewType.js +0 -11
  61. package/esm2015/lib/IconView_combined.js +0 -1318
  62. package/esm2015/lib/IconVisualModelExport.js +0 -89
  63. package/esm2015/lib/InputChangeEventArgs.js +0 -31
  64. package/esm2015/lib/InputGroupDisplayType.js +0 -18
  65. package/esm2015/lib/InputGroupView.js +0 -7
  66. package/esm2015/lib/InputGroupView_combined.js +0 -5638
  67. package/esm2015/lib/InputGroupVisualModelExport.js +0 -107
  68. package/esm2015/lib/InputShiftType.js +0 -17
  69. package/esm2015/lib/InputView.js +0 -7
  70. package/esm2015/lib/InputVisualModelExport.js +0 -78
  71. package/esm2015/lib/KEYCODES.js +0 -11
  72. package/esm2015/lib/LabelShiftType.js +0 -17
  73. package/esm2015/lib/LabelView.js +0 -7
  74. package/esm2015/lib/LabelVisualModelExport.js +0 -82
  75. package/esm2015/lib/LostFocusEventArgs.js +0 -14
  76. package/esm2015/lib/MaskOptions.js +0 -19
  77. package/esm2015/lib/MaskParsingService.js +0 -211
  78. package/esm2015/lib/MultiSlider.js +0 -7
  79. package/esm2015/lib/MultiSliderBridge.js +0 -163
  80. package/esm2015/lib/MultiSliderCursor.js +0 -11
  81. package/esm2015/lib/MultiSliderHitInfo.js +0 -20
  82. package/esm2015/lib/MultiSliderOrientation.js +0 -17
  83. package/esm2015/lib/MultiSliderResolvingToolTipValueEventArgs.js +0 -31
  84. package/esm2015/lib/MultiSliderThumb.js +0 -7
  85. package/esm2015/lib/MultiSliderThumbCollection.js +0 -19
  86. package/esm2015/lib/MultiSliderThumbRangePosition.js +0 -16
  87. package/esm2015/lib/MultiSliderThumbValueChangingEventArgs.js +0 -19
  88. package/esm2015/lib/MultiSliderThumb_combined.js +0 -293
  89. package/esm2015/lib/MultiSliderTrackShadeOrientation.js +0 -11
  90. package/esm2015/lib/MultiSliderTrackThumbRange.js +0 -7
  91. package/esm2015/lib/MultiSliderView.js +0 -7
  92. package/esm2015/lib/MultiSliderView_combined.js +0 -1779
  93. package/esm2015/lib/MultiSliderVisualArea.js +0 -11
  94. package/esm2015/lib/MultiSliderYValueChangingEventArgs.js +0 -18
  95. package/esm2015/lib/NativeUIXInputsFactory.js +0 -7
  96. package/esm2015/lib/NativeUIXInputsFactory_combined.js +0 -2132
  97. package/esm2015/lib/PrefixShiftType.js +0 -17
  98. package/esm2015/lib/PrefixView.js +0 -7
  99. package/esm2015/lib/PrefixVisualModelExport.js +0 -33
  100. package/esm2015/lib/Replaced.js +0 -19
  101. package/esm2015/lib/RippleView.js +0 -7
  102. package/esm2015/lib/RippleView_combined.js +0 -392
  103. package/esm2015/lib/RippleVisualModelExport.js +0 -36
  104. package/esm2015/lib/SelectedValueChangedEventArgs.js +0 -31
  105. package/esm2015/lib/SuffixShiftType.js +0 -17
  106. package/esm2015/lib/SuffixView.js +0 -7
  107. package/esm2015/lib/SuffixVisualModelExport.js +0 -32
  108. package/esm2015/lib/TextBlockVisualModelExport.js +0 -62
  109. package/esm2015/lib/TextElementsVisualModelExport.js +0 -42
  110. package/esm2015/lib/Theme.js +0 -46
  111. package/esm2015/lib/ThemeResolver.js +0 -190
  112. package/esm2015/lib/XButton.js +0 -7
  113. package/esm2015/lib/XButtonBridge.js +0 -326
  114. package/esm2015/lib/XButtonGroup.js +0 -7
  115. package/esm2015/lib/XButtonGroupBridge.js +0 -185
  116. package/esm2015/lib/XButtonGroupButtonCollection.js +0 -26
  117. package/esm2015/lib/XCalendar.js +0 -7
  118. package/esm2015/lib/XCalendarLocaleEn.js +0 -56
  119. package/esm2015/lib/XCheckbox.js +0 -7
  120. package/esm2015/lib/XCheckboxBridge.js +0 -96
  121. package/esm2015/lib/XComponentBridge.js +0 -51
  122. package/esm2015/lib/XDatePicker.js +0 -7
  123. package/esm2015/lib/XIcon.js +0 -7
  124. package/esm2015/lib/XIconBridge.js +0 -128
  125. package/esm2015/lib/XIconButtonBridge.js +0 -75
  126. package/esm2015/lib/XInput.js +0 -7
  127. package/esm2015/lib/XInputBridge.js +0 -474
  128. package/esm2015/lib/XInputGroup.js +0 -7
  129. package/esm2015/lib/XInputGroupInputCollection.js +0 -7
  130. package/esm2015/lib/XInputGroupItem.js +0 -7
  131. package/esm2015/lib/XLabel.js +0 -7
  132. package/esm2015/lib/XPopupBridge.js +0 -323
  133. package/esm2015/lib/XPrefix.js +0 -7
  134. package/esm2015/lib/XRipple.js +0 -7
  135. package/esm2015/lib/XSuffix.js +0 -7
  136. package/esm2015/lib/igc-button-click-event-args.js +0 -30
  137. package/esm2015/lib/igc-button-group-selection-changed-event-args.js +0 -30
  138. package/esm2015/lib/igc-checkbox-change-event-args.js +0 -43
  139. package/esm2015/lib/igc-color-editor-component.js +0 -550
  140. package/esm2015/lib/igc-color-editor-got-focus-event-args.js +0 -30
  141. package/esm2015/lib/igc-color-editor-lost-focus-event-args.js +0 -30
  142. package/esm2015/lib/igc-color-editor-module.js +0 -19
  143. package/esm2015/lib/igc-color-editor-panel-closed-event-args.js +0 -30
  144. package/esm2015/lib/igc-color-editor-panel-component.js +0 -434
  145. package/esm2015/lib/igc-color-editor-panel-module.js +0 -25
  146. package/esm2015/lib/igc-color-editor-panel-selected-value-changed-event-args.js +0 -43
  147. package/esm2015/lib/igc-got-focus-event-args.js +0 -30
  148. package/esm2015/lib/igc-input-change-event-args.js +0 -43
  149. package/esm2015/lib/igc-lost-focus-event-args.js +0 -30
  150. package/esm2015/lib/igc-multi-slider-component.js +0 -683
  151. package/esm2015/lib/igc-multi-slider-module.js +0 -17
  152. package/esm2015/lib/igc-multi-slider-resolving-tool-tip-value-event-args.js +0 -42
  153. package/esm2015/lib/igc-multi-slider-thumb-collection.js +0 -53
  154. package/esm2015/lib/igc-multi-slider-thumb-component.js +0 -271
  155. package/esm2015/lib/igc-multi-slider-thumb-module.js +0 -16
  156. package/esm2015/lib/igc-multi-slider-thumb-value-changing-event-args.js +0 -54
  157. package/esm2015/lib/igc-multi-slider-track-thumb-range.js +0 -103
  158. package/esm2015/lib/igc-multi-slider-y-value-changing-event-args.js +0 -36
  159. package/esm2015/lib/igc-selected-value-changed-event-args.js +0 -42
  160. package/esm2015/lib/igc-x-button-component.js +0 -2398
  161. package/esm2015/lib/igc-x-button-group-button-collection.js +0 -53
  162. package/esm2015/lib/igc-x-button-group-component.js +0 -1023
  163. package/esm2015/lib/igc-x-button-group-module.js +0 -21
  164. package/esm2015/lib/igc-x-button-module.js +0 -21
  165. package/esm2015/lib/igc-x-calendar-component.js +0 -511
  166. package/esm2015/lib/igc-x-calendar-locale-en-module.js +0 -13
  167. package/esm2015/lib/igc-x-calendar-module.js +0 -21
  168. package/esm2015/lib/igc-x-checkbox-component.js +0 -626
  169. package/esm2015/lib/igc-x-checkbox-module.js +0 -21
  170. package/esm2015/lib/igc-x-date-picker-component.js +0 -680
  171. package/esm2015/lib/igc-x-date-picker-module.js +0 -25
  172. package/esm2015/lib/igc-x-icon-component.js +0 -705
  173. package/esm2015/lib/igc-x-icon-module.js +0 -19
  174. package/esm2015/lib/igc-x-input-component.js +0 -603
  175. package/esm2015/lib/igc-x-input-group-component.js +0 -2356
  176. package/esm2015/lib/igc-x-input-group-input-collection.js +0 -53
  177. package/esm2015/lib/igc-x-input-group-item-component.js +0 -198
  178. package/esm2015/lib/igc-x-input-group-module.js +0 -23
  179. package/esm2015/lib/igc-x-input-module.js +0 -19
  180. package/esm2015/lib/igc-x-label-component.js +0 -413
  181. package/esm2015/lib/igc-x-label-module.js +0 -19
  182. package/esm2015/lib/igc-x-prefix-component.js +0 -186
  183. package/esm2015/lib/igc-x-prefix-module.js +0 -19
  184. package/esm2015/lib/igc-x-ripple-component.js +0 -385
  185. package/esm2015/lib/igc-x-ripple-module.js +0 -17
  186. package/esm2015/lib/igc-x-suffix-component.js +0 -186
  187. package/esm2015/public_api.js +0 -169
  188. package/esm5/igniteui-webcomponents-inputs.js +0 -1
  189. package/esm5/lib/ButtonClickEventArgs.js +0 -19
  190. package/esm5/lib/ButtonDisplayStyle.js +0 -11
  191. package/esm5/lib/ButtonGroupDisplayStyle.js +0 -11
  192. package/esm5/lib/ButtonGroupOrientation.js +0 -16
  193. package/esm5/lib/ButtonGroupSelectionChangedEventArgs.js +0 -19
  194. package/esm5/lib/ButtonGroupView.js +0 -7
  195. package/esm5/lib/ButtonGroupView_combined.js +0 -1713
  196. package/esm5/lib/ButtonGroupVisualModelExport.js +0 -65
  197. package/esm5/lib/ButtonView.js +0 -7
  198. package/esm5/lib/ButtonView_combined.js +0 -4368
  199. package/esm5/lib/ButtonVisualModelExport.js +0 -111
  200. package/esm5/lib/CalendarView.js +0 -7
  201. package/esm5/lib/CalendarView_combined.js +0 -2929
  202. package/esm5/lib/CalendarVisualModelExport.js +0 -101
  203. package/esm5/lib/CheckboxChangeEventArgs.js +0 -42
  204. package/esm5/lib/CheckboxLabelPosition.js +0 -11
  205. package/esm5/lib/CheckboxListVisualModelExport.js +0 -44
  206. package/esm5/lib/CheckboxView.js +0 -7
  207. package/esm5/lib/CheckboxView_combined.js +0 -1327
  208. package/esm5/lib/CheckboxVisualModelExport.js +0 -71
  209. package/esm5/lib/ColorEditor.js +0 -7
  210. package/esm5/lib/ColorEditorBridge.js +0 -7
  211. package/esm5/lib/ColorEditorGotFocusEventArgs.js +0 -19
  212. package/esm5/lib/ColorEditorLostFocusEventArgs.js +0 -19
  213. package/esm5/lib/ColorEditorPanel.js +0 -7
  214. package/esm5/lib/ColorEditorPanelClosedEventArgs.js +0 -19
  215. package/esm5/lib/ColorEditorPanelSelectedValueChangedEventArgs.js +0 -42
  216. package/esm5/lib/ColorEditorPanelView.js +0 -7
  217. package/esm5/lib/ColorEditorView.js +0 -7
  218. package/esm5/lib/ColorEditorVisualModelExport.js +0 -41
  219. package/esm5/lib/DateFormats.js +0 -25
  220. package/esm5/lib/DatePickerView.js +0 -7
  221. package/esm5/lib/DatePickerView_combined.js +0 -1833
  222. package/esm5/lib/DatePickerVisualModelExport.js +0 -71
  223. package/esm5/lib/DateTimeValueFormatter.js +0 -109
  224. package/esm5/lib/DayInfo.js +0 -24
  225. package/esm5/lib/DayOfWeek.js +0 -45
  226. package/esm5/lib/DefaultMultiSliderTrackBarVisual.js +0 -138
  227. package/esm5/lib/DefaultMultiSliderTrackRangeVisual.js +0 -241
  228. package/esm5/lib/DefaultMultiSliderTrackThumbCalloutVisual.js +0 -211
  229. package/esm5/lib/DefaultMultiSliderTrackThumbVisual.js +0 -226
  230. package/esm5/lib/DefaultMultiTrackShadeVisual.js +0 -205
  231. package/esm5/lib/ElevationHelper.js +0 -70
  232. package/esm5/lib/FirstWeek.js +0 -29
  233. package/esm5/lib/GotFocusEventArgs.js +0 -19
  234. package/esm5/lib/IMultiSliderTrackBarVisual.js +0 -11
  235. package/esm5/lib/IMultiSliderTrackRangeVisual.js +0 -11
  236. package/esm5/lib/IMultiSliderTrackShadeVisual.js +0 -11
  237. package/esm5/lib/IMultiSliderTrackThumbCalloutVisual.js +0 -11
  238. package/esm5/lib/IMultiSliderTrackThumbVisual.js +0 -11
  239. package/esm5/lib/ISliderTrackOwner.js +0 -11
  240. package/esm5/lib/IconClickedEventArgs.js +0 -31
  241. package/esm5/lib/IconView.js +0 -7
  242. package/esm5/lib/IconViewType.js +0 -11
  243. package/esm5/lib/IconView_combined.js +0 -1590
  244. package/esm5/lib/IconVisualModelExport.js +0 -100
  245. package/esm5/lib/InputChangeEventArgs.js +0 -42
  246. package/esm5/lib/InputGroupDisplayType.js +0 -18
  247. package/esm5/lib/InputGroupView.js +0 -7
  248. package/esm5/lib/InputGroupView_combined.js +0 -6792
  249. package/esm5/lib/InputGroupVisualModelExport.js +0 -110
  250. package/esm5/lib/InputShiftType.js +0 -17
  251. package/esm5/lib/InputView.js +0 -7
  252. package/esm5/lib/InputVisualModelExport.js +0 -81
  253. package/esm5/lib/KEYCODES.js +0 -11
  254. package/esm5/lib/LabelShiftType.js +0 -17
  255. package/esm5/lib/LabelView.js +0 -7
  256. package/esm5/lib/LabelVisualModelExport.js +0 -85
  257. package/esm5/lib/LostFocusEventArgs.js +0 -19
  258. package/esm5/lib/MaskOptions.js +0 -22
  259. package/esm5/lib/MaskParsingService.js +0 -266
  260. package/esm5/lib/MultiSlider.js +0 -7
  261. package/esm5/lib/MultiSliderBridge.js +0 -166
  262. package/esm5/lib/MultiSliderCursor.js +0 -11
  263. package/esm5/lib/MultiSliderHitInfo.js +0 -23
  264. package/esm5/lib/MultiSliderOrientation.js +0 -17
  265. package/esm5/lib/MultiSliderResolvingToolTipValueEventArgs.js +0 -42
  266. package/esm5/lib/MultiSliderThumb.js +0 -7
  267. package/esm5/lib/MultiSliderThumbCollection.js +0 -21
  268. package/esm5/lib/MultiSliderThumbRangePosition.js +0 -16
  269. package/esm5/lib/MultiSliderThumbValueChangingEventArgs.js +0 -22
  270. package/esm5/lib/MultiSliderThumb_combined.js +0 -350
  271. package/esm5/lib/MultiSliderTrackShadeOrientation.js +0 -11
  272. package/esm5/lib/MultiSliderTrackThumbRange.js +0 -7
  273. package/esm5/lib/MultiSliderView.js +0 -7
  274. package/esm5/lib/MultiSliderView_combined.js +0 -2002
  275. package/esm5/lib/MultiSliderVisualArea.js +0 -11
  276. package/esm5/lib/MultiSliderYValueChangingEventArgs.js +0 -21
  277. package/esm5/lib/NativeUIXInputsFactory.js +0 -7
  278. package/esm5/lib/NativeUIXInputsFactory_combined.js +0 -2327
  279. package/esm5/lib/PrefixShiftType.js +0 -17
  280. package/esm5/lib/PrefixView.js +0 -7
  281. package/esm5/lib/PrefixVisualModelExport.js +0 -36
  282. package/esm5/lib/Replaced.js +0 -22
  283. package/esm5/lib/RippleView.js +0 -7
  284. package/esm5/lib/RippleView_combined.js +0 -489
  285. package/esm5/lib/RippleVisualModelExport.js +0 -39
  286. package/esm5/lib/SelectedValueChangedEventArgs.js +0 -42
  287. package/esm5/lib/SuffixShiftType.js +0 -17
  288. package/esm5/lib/SuffixView.js +0 -7
  289. package/esm5/lib/SuffixVisualModelExport.js +0 -35
  290. package/esm5/lib/TextBlockVisualModelExport.js +0 -65
  291. package/esm5/lib/TextElementsVisualModelExport.js +0 -45
  292. package/esm5/lib/Theme.js +0 -57
  293. package/esm5/lib/ThemeResolver.js +0 -197
  294. package/esm5/lib/XButton.js +0 -7
  295. package/esm5/lib/XButtonBridge.js +0 -329
  296. package/esm5/lib/XButtonGroup.js +0 -7
  297. package/esm5/lib/XButtonGroupBridge.js +0 -188
  298. package/esm5/lib/XButtonGroupButtonCollection.js +0 -29
  299. package/esm5/lib/XCalendar.js +0 -7
  300. package/esm5/lib/XCalendarLocaleEn.js +0 -58
  301. package/esm5/lib/XCheckbox.js +0 -7
  302. package/esm5/lib/XCheckboxBridge.js +0 -99
  303. package/esm5/lib/XComponentBridge.js +0 -58
  304. package/esm5/lib/XDatePicker.js +0 -7
  305. package/esm5/lib/XIcon.js +0 -7
  306. package/esm5/lib/XIconBridge.js +0 -131
  307. package/esm5/lib/XIconButtonBridge.js +0 -78
  308. package/esm5/lib/XInput.js +0 -7
  309. package/esm5/lib/XInputBridge.js +0 -477
  310. package/esm5/lib/XInputGroup.js +0 -7
  311. package/esm5/lib/XInputGroupInputCollection.js +0 -7
  312. package/esm5/lib/XInputGroupItem.js +0 -7
  313. package/esm5/lib/XLabel.js +0 -7
  314. package/esm5/lib/XPopupBridge.js +0 -326
  315. package/esm5/lib/XPrefix.js +0 -7
  316. package/esm5/lib/XRipple.js +0 -7
  317. package/esm5/lib/XSuffix.js +0 -7
  318. package/esm5/lib/igc-button-click-event-args.js +0 -36
  319. package/esm5/lib/igc-button-group-selection-changed-event-args.js +0 -36
  320. package/esm5/lib/igc-checkbox-change-event-args.js +0 -57
  321. package/esm5/lib/igc-color-editor-component.js +0 -663
  322. package/esm5/lib/igc-color-editor-got-focus-event-args.js +0 -36
  323. package/esm5/lib/igc-color-editor-lost-focus-event-args.js +0 -36
  324. package/esm5/lib/igc-color-editor-module.js +0 -23
  325. package/esm5/lib/igc-color-editor-panel-closed-event-args.js +0 -36
  326. package/esm5/lib/igc-color-editor-panel-component.js +0 -521
  327. package/esm5/lib/igc-color-editor-panel-module.js +0 -29
  328. package/esm5/lib/igc-color-editor-panel-selected-value-changed-event-args.js +0 -57
  329. package/esm5/lib/igc-got-focus-event-args.js +0 -36
  330. package/esm5/lib/igc-input-change-event-args.js +0 -57
  331. package/esm5/lib/igc-lost-focus-event-args.js +0 -36
  332. package/esm5/lib/igc-multi-slider-component.js +0 -888
  333. package/esm5/lib/igc-multi-slider-module.js +0 -21
  334. package/esm5/lib/igc-multi-slider-resolving-tool-tip-value-event-args.js +0 -56
  335. package/esm5/lib/igc-multi-slider-thumb-collection.js +0 -58
  336. package/esm5/lib/igc-multi-slider-thumb-component.js +0 -300
  337. package/esm5/lib/igc-multi-slider-thumb-module.js +0 -20
  338. package/esm5/lib/igc-multi-slider-thumb-value-changing-event-args.js +0 -68
  339. package/esm5/lib/igc-multi-slider-track-thumb-range.js +0 -133
  340. package/esm5/lib/igc-multi-slider-y-value-changing-event-args.js +0 -46
  341. package/esm5/lib/igc-selected-value-changed-event-args.js +0 -56
  342. package/esm5/lib/igc-x-button-component.js +0 -3162
  343. package/esm5/lib/igc-x-button-group-button-collection.js +0 -58
  344. package/esm5/lib/igc-x-button-group-component.js +0 -1322
  345. package/esm5/lib/igc-x-button-group-module.js +0 -25
  346. package/esm5/lib/igc-x-button-module.js +0 -25
  347. package/esm5/lib/igc-x-calendar-component.js +0 -625
  348. package/esm5/lib/igc-x-calendar-locale-en-module.js +0 -17
  349. package/esm5/lib/igc-x-calendar-module.js +0 -25
  350. package/esm5/lib/igc-x-checkbox-component.js +0 -792
  351. package/esm5/lib/igc-x-checkbox-module.js +0 -25
  352. package/esm5/lib/igc-x-date-picker-component.js +0 -834
  353. package/esm5/lib/igc-x-date-picker-module.js +0 -29
  354. package/esm5/lib/igc-x-icon-component.js +0 -898
  355. package/esm5/lib/igc-x-icon-module.js +0 -23
  356. package/esm5/lib/igc-x-input-component.js +0 -763
  357. package/esm5/lib/igc-x-input-group-component.js +0 -3034
  358. package/esm5/lib/igc-x-input-group-input-collection.js +0 -58
  359. package/esm5/lib/igc-x-input-group-item-component.js +0 -214
  360. package/esm5/lib/igc-x-input-group-module.js +0 -27
  361. package/esm5/lib/igc-x-input-module.js +0 -23
  362. package/esm5/lib/igc-x-label-component.js +0 -538
  363. package/esm5/lib/igc-x-label-module.js +0 -23
  364. package/esm5/lib/igc-x-prefix-component.js +0 -227
  365. package/esm5/lib/igc-x-prefix-module.js +0 -23
  366. package/esm5/lib/igc-x-ripple-component.js +0 -453
  367. package/esm5/lib/igc-x-ripple-module.js +0 -21
  368. package/esm5/lib/igc-x-suffix-component.js +0 -227
  369. package/esm5/public_api.js +0 -169
  370. package/fesm2015/igniteui-webcomponents-inputs.js +0 -40191
  371. package/fesm5/igniteui-webcomponents-inputs.js +0 -47666
  372. package/lib/ButtonClickEventArgs.d.ts +0 -7
  373. package/lib/ButtonDisplayStyle.d.ts +0 -15
  374. package/lib/ButtonGroupDisplayStyle.d.ts +0 -12
  375. package/lib/ButtonGroupOrientation.d.ts +0 -9
  376. package/lib/ButtonGroupSelectionChangedEventArgs.d.ts +0 -7
  377. package/lib/ButtonGroupView.d.ts +0 -1
  378. package/lib/ButtonGroupView_combined.d.ts +0 -374
  379. package/lib/ButtonGroupVisualModelExport.d.ts +0 -28
  380. package/lib/ButtonView.d.ts +0 -1
  381. package/lib/ButtonView_combined.d.ts +0 -708
  382. package/lib/ButtonVisualModelExport.d.ts +0 -47
  383. package/lib/CalendarView.d.ts +0 -1
  384. package/lib/CalendarView_combined.d.ts +0 -234
  385. package/lib/CalendarVisualModelExport.d.ts +0 -33
  386. package/lib/CheckboxChangeEventArgs.d.ts +0 -13
  387. package/lib/CheckboxLabelPosition.d.ts +0 -12
  388. package/lib/CheckboxListVisualModelExport.d.ts +0 -18
  389. package/lib/CheckboxView.d.ts +0 -1
  390. package/lib/CheckboxView_combined.d.ts +0 -216
  391. package/lib/CheckboxVisualModelExport.d.ts +0 -32
  392. package/lib/ColorEditor.d.ts +0 -1
  393. package/lib/ColorEditorBridge.d.ts +0 -1
  394. package/lib/ColorEditorGotFocusEventArgs.d.ts +0 -7
  395. package/lib/ColorEditorLostFocusEventArgs.d.ts +0 -7
  396. package/lib/ColorEditorPanel.d.ts +0 -1
  397. package/lib/ColorEditorPanelClosedEventArgs.d.ts +0 -7
  398. package/lib/ColorEditorPanelSelectedValueChangedEventArgs.d.ts +0 -14
  399. package/lib/ColorEditorPanelView.d.ts +0 -1
  400. package/lib/ColorEditorView.d.ts +0 -1
  401. package/lib/ColorEditorVisualModelExport.d.ts +0 -17
  402. package/lib/DateFormats.d.ts +0 -18
  403. package/lib/DatePickerView.d.ts +0 -1
  404. package/lib/DatePickerView_combined.d.ts +0 -247
  405. package/lib/DatePickerVisualModelExport.d.ts +0 -24
  406. package/lib/DateTimeValueFormatter.d.ts +0 -20
  407. package/lib/DayInfo.d.ts +0 -13
  408. package/lib/DayOfWeek.d.ts +0 -38
  409. package/lib/DefaultMultiSliderTrackBarVisual.d.ts +0 -34
  410. package/lib/DefaultMultiSliderTrackRangeVisual.d.ts +0 -43
  411. package/lib/DefaultMultiSliderTrackThumbCalloutVisual.d.ts +0 -49
  412. package/lib/DefaultMultiSliderTrackThumbVisual.d.ts +0 -45
  413. package/lib/DefaultMultiTrackShadeVisual.d.ts +0 -42
  414. package/lib/ElevationHelper.d.ts +0 -16
  415. package/lib/FirstWeek.d.ts +0 -22
  416. package/lib/GotFocusEventArgs.d.ts +0 -7
  417. package/lib/IMultiSliderTrackBarVisual.d.ts +0 -21
  418. package/lib/IMultiSliderTrackRangeVisual.d.ts +0 -25
  419. package/lib/IMultiSliderTrackShadeVisual.d.ts +0 -24
  420. package/lib/IMultiSliderTrackThumbCalloutVisual.d.ts +0 -27
  421. package/lib/IMultiSliderTrackThumbVisual.d.ts +0 -27
  422. package/lib/ISliderTrackOwner.d.ts +0 -15
  423. package/lib/IconClickedEventArgs.d.ts +0 -10
  424. package/lib/IconView.d.ts +0 -1
  425. package/lib/IconViewType.d.ts +0 -16
  426. package/lib/IconView_combined.d.ts +0 -257
  427. package/lib/IconVisualModelExport.d.ts +0 -32
  428. package/lib/InputChangeEventArgs.d.ts +0 -13
  429. package/lib/InputGroupDisplayType.d.ts +0 -11
  430. package/lib/InputGroupView.d.ts +0 -1
  431. package/lib/InputGroupView_combined.d.ts +0 -1213
  432. package/lib/InputGroupVisualModelExport.d.ts +0 -44
  433. package/lib/InputShiftType.d.ts +0 -10
  434. package/lib/InputView.d.ts +0 -1
  435. package/lib/InputVisualModelExport.d.ts +0 -32
  436. package/lib/KEYCODES.d.ts +0 -27
  437. package/lib/LabelShiftType.d.ts +0 -10
  438. package/lib/LabelView.d.ts +0 -1
  439. package/lib/LabelVisualModelExport.d.ts +0 -34
  440. package/lib/LostFocusEventArgs.d.ts +0 -7
  441. package/lib/MaskOptions.d.ts +0 -9
  442. package/lib/MaskParsingService.d.ts +0 -19
  443. package/lib/MultiSlider.d.ts +0 -1
  444. package/lib/MultiSliderBridge.d.ts +0 -24
  445. package/lib/MultiSliderCursor.d.ts +0 -15
  446. package/lib/MultiSliderHitInfo.d.ts +0 -13
  447. package/lib/MultiSliderOrientation.d.ts +0 -10
  448. package/lib/MultiSliderResolvingToolTipValueEventArgs.d.ts +0 -13
  449. package/lib/MultiSliderThumb.d.ts +0 -1
  450. package/lib/MultiSliderThumbCollection.d.ts +0 -10
  451. package/lib/MultiSliderThumbRangePosition.d.ts +0 -9
  452. package/lib/MultiSliderThumbValueChangingEventArgs.d.ts +0 -10
  453. package/lib/MultiSliderThumb_combined.d.ts +0 -76
  454. package/lib/MultiSliderTrackShadeOrientation.d.ts +0 -14
  455. package/lib/MultiSliderTrackThumbRange.d.ts +0 -1
  456. package/lib/MultiSliderView.d.ts +0 -1
  457. package/lib/MultiSliderView_combined.d.ts +0 -298
  458. package/lib/MultiSliderVisualArea.d.ts +0 -14
  459. package/lib/MultiSliderYValueChangingEventArgs.d.ts +0 -8
  460. package/lib/NativeUIXInputsFactory.d.ts +0 -1
  461. package/lib/NativeUIXInputsFactory_combined.d.ts +0 -400
  462. package/lib/PrefixShiftType.d.ts +0 -10
  463. package/lib/PrefixView.d.ts +0 -1
  464. package/lib/PrefixVisualModelExport.d.ts +0 -13
  465. package/lib/Replaced.d.ts +0 -9
  466. package/lib/RippleView.d.ts +0 -1
  467. package/lib/RippleView_combined.d.ts +0 -98
  468. package/lib/RippleVisualModelExport.d.ts +0 -15
  469. package/lib/SelectedValueChangedEventArgs.d.ts +0 -13
  470. package/lib/SuffixShiftType.d.ts +0 -10
  471. package/lib/SuffixView.d.ts +0 -1
  472. package/lib/SuffixVisualModelExport.d.ts +0 -13
  473. package/lib/TextBlockVisualModelExport.d.ts +0 -21
  474. package/lib/TextElementsVisualModelExport.d.ts +0 -16
  475. package/lib/Theme.d.ts +0 -15
  476. package/lib/ThemeResolver.d.ts +0 -59
  477. package/lib/XButton.d.ts +0 -1
  478. package/lib/XButtonBridge.d.ts +0 -40
  479. package/lib/XButtonGroup.d.ts +0 -1
  480. package/lib/XButtonGroupBridge.d.ts +0 -29
  481. package/lib/XButtonGroupButtonCollection.d.ts +0 -12
  482. package/lib/XCalendar.d.ts +0 -1
  483. package/lib/XCalendarLocaleEn.d.ts +0 -49
  484. package/lib/XCheckbox.d.ts +0 -1
  485. package/lib/XCheckboxBridge.d.ts +0 -20
  486. package/lib/XComponentBridge.d.ts +0 -18
  487. package/lib/XDatePicker.d.ts +0 -1
  488. package/lib/XIcon.d.ts +0 -1
  489. package/lib/XIconBridge.d.ts +0 -18
  490. package/lib/XIconButtonBridge.d.ts +0 -16
  491. package/lib/XInput.d.ts +0 -1
  492. package/lib/XInputBridge.d.ts +0 -53
  493. package/lib/XInputGroup.d.ts +0 -1
  494. package/lib/XInputGroupInputCollection.d.ts +0 -1
  495. package/lib/XInputGroupItem.d.ts +0 -1
  496. package/lib/XLabel.d.ts +0 -1
  497. package/lib/XPopupBridge.d.ts +0 -57
  498. package/lib/XPrefix.d.ts +0 -1
  499. package/lib/XRipple.d.ts +0 -1
  500. package/lib/XSuffix.d.ts +0 -1
  501. package/lib/igc-button-click-event-args.d.ts +0 -12
  502. package/lib/igc-button-group-selection-changed-event-args.d.ts +0 -12
  503. package/lib/igc-checkbox-change-event-args.d.ts +0 -16
  504. package/lib/igc-color-editor-component.d.ts +0 -163
  505. package/lib/igc-color-editor-got-focus-event-args.d.ts +0 -12
  506. package/lib/igc-color-editor-lost-focus-event-args.d.ts +0 -12
  507. package/lib/igc-color-editor-module.d.ts +0 -3
  508. package/lib/igc-color-editor-panel-closed-event-args.d.ts +0 -12
  509. package/lib/igc-color-editor-panel-component.d.ts +0 -124
  510. package/lib/igc-color-editor-panel-module.d.ts +0 -3
  511. package/lib/igc-color-editor-panel-selected-value-changed-event-args.d.ts +0 -16
  512. package/lib/igc-got-focus-event-args.d.ts +0 -12
  513. package/lib/igc-input-change-event-args.d.ts +0 -16
  514. package/lib/igc-lost-focus-event-args.d.ts +0 -12
  515. package/lib/igc-multi-slider-component.d.ts +0 -174
  516. package/lib/igc-multi-slider-module.d.ts +0 -3
  517. package/lib/igc-multi-slider-resolving-tool-tip-value-event-args.d.ts +0 -16
  518. package/lib/igc-multi-slider-thumb-collection.d.ts +0 -8
  519. package/lib/igc-multi-slider-thumb-component.d.ts +0 -53
  520. package/lib/igc-multi-slider-thumb-module.d.ts +0 -3
  521. package/lib/igc-multi-slider-thumb-value-changing-event-args.d.ts +0 -17
  522. package/lib/igc-multi-slider-track-thumb-range.d.ts +0 -26
  523. package/lib/igc-multi-slider-y-value-changing-event-args.d.ts +0 -14
  524. package/lib/igc-selected-value-changed-event-args.d.ts +0 -16
  525. package/lib/igc-x-button-component.d.ts +0 -902
  526. package/lib/igc-x-button-group-button-collection.d.ts +0 -8
  527. package/lib/igc-x-button-group-component.d.ts +0 -410
  528. package/lib/igc-x-button-group-module.d.ts +0 -3
  529. package/lib/igc-x-button-module.d.ts +0 -3
  530. package/lib/igc-x-calendar-component.d.ts +0 -181
  531. package/lib/igc-x-calendar-locale-en-module.d.ts +0 -3
  532. package/lib/igc-x-calendar-module.d.ts +0 -3
  533. package/lib/igc-x-checkbox-component.d.ts +0 -232
  534. package/lib/igc-x-checkbox-module.d.ts +0 -3
  535. package/lib/igc-x-date-picker-component.d.ts +0 -226
  536. package/lib/igc-x-date-picker-module.d.ts +0 -3
  537. package/lib/igc-x-icon-component.d.ts +0 -285
  538. package/lib/igc-x-icon-module.d.ts +0 -3
  539. package/lib/igc-x-input-component.d.ts +0 -194
  540. package/lib/igc-x-input-group-component.d.ts +0 -748
  541. package/lib/igc-x-input-group-input-collection.d.ts +0 -8
  542. package/lib/igc-x-input-group-item-component.d.ts +0 -41
  543. package/lib/igc-x-input-group-module.d.ts +0 -3
  544. package/lib/igc-x-input-module.d.ts +0 -3
  545. package/lib/igc-x-label-component.d.ts +0 -171
  546. package/lib/igc-x-label-module.d.ts +0 -3
  547. package/lib/igc-x-prefix-component.d.ts +0 -59
  548. package/lib/igc-x-prefix-module.d.ts +0 -3
  549. package/lib/igc-x-ripple-component.d.ts +0 -118
  550. package/lib/igc-x-ripple-module.d.ts +0 -3
  551. package/lib/igc-x-suffix-component.d.ts +0 -59
  552. package/public_api.d.ts +0 -169
@@ -1,2929 +0,0 @@
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, Number_$type } from "igniteui-webcomponents-core";
9
- import { DomWrapper_$type } from "igniteui-webcomponents-core";
10
- import { List$1 } from "igniteui-webcomponents-core";
11
- import { DayOfWeek_$type } from "./DayOfWeek";
12
- import { DayInfo } from "./DayInfo";
13
- import { XButton } from "./XButton";
14
- import { XIcon } from "./XIcon";
15
- import { truncate, intDivide, isNaN_ } from "igniteui-webcomponents-core";
16
- import { dateMinValue, dateGetMonth, dateNow, dateAddYears, dateFromValues, dateMaxValue, dateGetDate, dateAddDays, dateAddMonths } from "igniteui-webcomponents-core";
17
- import { parseBool } from "igniteui-webcomponents-core";
18
- import { SRProvider } from "igniteui-webcomponents-core";
19
- import { ControlDisplayDensity_$type } from "igniteui-webcomponents-core";
20
- import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
21
- import { FirstWeek_$type } from "./FirstWeek";
22
- import { BrushUtil } from "igniteui-webcomponents-core";
23
- import { ObservableCollection$1 } from "igniteui-webcomponents-core";
24
- import { SelectedValueChangedEventArgs } from "./SelectedValueChangedEventArgs";
25
- import { CornerRadius } from "igniteui-webcomponents-core";
26
- import { CalendarVisualModelExport } from "./CalendarVisualModelExport";
27
- import { ButtonVisualModelExport } from "./ButtonVisualModelExport";
28
- import { TextElementsVisualModelExport } from "./TextElementsVisualModelExport";
29
- import { AppearanceHelper } from "igniteui-webcomponents-core";
30
- import { NativeUI } from "igniteui-webcomponents-core";
31
- import { FontUtil } from "igniteui-webcomponents-core";
32
- import { stringIsNullOrWhiteSpace } from "igniteui-webcomponents-core";
33
- import { timeSpanTotalDays } from "igniteui-webcomponents-core";
34
- /**
35
- * @hidden
36
- */
37
- export var CalendarView = /** @class */ /*@__PURE__*/ (function (_super) {
38
- __extends(CalendarView, _super);
39
- function CalendarView() {
40
- var _this = _super.call(this) || this;
41
- _this.n = null;
42
- _this.o = null;
43
- _this.t = null;
44
- _this.q = null;
45
- _this.u = null;
46
- _this.s = null;
47
- _this.r = null;
48
- _this.g = new List$1(DomWrapper_$type, 0);
49
- _this.f = new List$1(DomWrapper_$type, 0);
50
- _this.h = new List$1(DomWrapper_$type, 0);
51
- _this.j = new List$1(DomWrapper_$type, 0);
52
- _this.i = new List$1(DomWrapper_$type, 0);
53
- _this.e = new List$1(DomWrapper_$type, 0);
54
- _this.p = null;
55
- _this.x = null;
56
- _this.w = 0;
57
- _this.c = null;
58
- _this.m = null;
59
- _this.x = "day";
60
- _this.p = null;
61
- return _this;
62
- }
63
- CalendarView.prototype.k = function () {
64
- return this.e;
65
- };
66
- CalendarView.prototype.l = function () {
67
- return this.i;
68
- };
69
- CalendarView.prototype.ap = function () {
70
- };
71
- CalendarView.prototype.ao = function (a) {
72
- if (a == null) {
73
- this.m = null;
74
- return;
75
- }
76
- this.m = a;
77
- this.m.rootWrapper.setStyleProperty("background-color", "rgb(255, 255, 255)");
78
- var b = Math.round(a.rootWrapper.width());
79
- var c = Math.round(a.rootWrapper.height());
80
- this.ab();
81
- this.a3();
82
- this.a4();
83
- this.a1();
84
- var d = this.m.rootWrapper;
85
- d.listen("keydown", runOn(this, this.aa));
86
- d.listen("focus", runOn(this, this.z));
87
- };
88
- CalendarView.prototype.y = function () {
89
- return this.x;
90
- };
91
- CalendarView.prototype.ab = function () {
92
- if (this.m != null) {
93
- this.n = this.m.createElement("div");
94
- this.n.setStyleProperty("display", "flex");
95
- this.n.setStyleProperty("width", "100%");
96
- this.n.setStyleProperty("height", "100%");
97
- this.o = this.m.createElement("div");
98
- this.o.setStyleProperty("height", "100%");
99
- this.o.setStyleProperty("width", "100%");
100
- this.t = this.m.createElement("div");
101
- this.ae();
102
- this.n.append(this.o);
103
- this.m.append(this.n);
104
- for (var a = 0; a < 42; a++) {
105
- var b = this.m.createElement("div");
106
- this.f.add(b);
107
- }
108
- this.ac();
109
- this.a9();
110
- this.q = this.m.createElement("div");
111
- this.q.setStyleProperty("height", "100%");
112
- this.m.append(this.q);
113
- for (var c = 0; c < 12; c++) {
114
- var d = this.m.createElement("div");
115
- this.h.add(d);
116
- }
117
- this.ad();
118
- for (var e = 0; e < 12; e++) {
119
- var f = this.q.getChildAt(e);
120
- f.listen("click", runOn(this, this.aj));
121
- }
122
- this.q.hide();
123
- this.u = this.m.createElement("div");
124
- this.u.setStyleProperty("height", "100%");
125
- this.m.append(this.u);
126
- for (var g = 0; g < 7; g++) {
127
- var h = this.m.createElement("div");
128
- this.j.add(h);
129
- }
130
- this.af();
131
- for (var i = 0; i < 7; i++) {
132
- var j = this.u.getChildAt(i);
133
- j.listen("click", runOn(this, this.be));
134
- }
135
- this.u.listen("wheel", runOn(this, this.bh));
136
- this.u.listen("touchstart", runOn(this, this.bg));
137
- this.u.listen("touchmove", runOn(this, this.bf));
138
- this.u.hide();
139
- }
140
- };
141
- CalendarView.prototype.ae = function () {
142
- if (this.m != null) {
143
- this.t.setStyleProperty("display", "flex");
144
- this.t.setStyleProperty("flex-direction", "column");
145
- this.t.setStyleProperty("padding-top", "26px");
146
- this.t.setStyleProperty("width", "12%");
147
- var a = this.c.ag();
148
- for (var b = 0; b < 6; b++) {
149
- var c = this.m.createElement("div");
150
- c.setAttribute("aria-hidden", "true");
151
- c.setStyleProperty("text-align", "center");
152
- c.setStyleProperty("vertical-align", "middle");
153
- c.setStyleProperty("height", "30px");
154
- c.setStyleProperty("width", "25px");
155
- c.setStyleProperty("border-width", "0px 1px 0px 0px");
156
- c.setStyleProperty("border-style", "solid");
157
- c.setStyleProperty("border-color", "rgb(163, 172, 184)");
158
- var d = this.m.createElement("span");
159
- d.setAttribute("aria-hidden", "true");
160
- d.setStyleProperty("font", "14px Verdana");
161
- d.setStyleProperty("color", "rgb(24, 29, 31)");
162
- c.append(d);
163
- this.i.add(d);
164
- d.setText(a._inner[b].toString());
165
- this.t.append(c);
166
- }
167
- }
168
- };
169
- CalendarView.prototype.a5 = function () {
170
- if (this.t != null) {
171
- var a = this.c.ag();
172
- this.i.clear();
173
- for (var b = 0; b < 6; b++) {
174
- var c = this.t.getChildAt(b);
175
- var d = c.getChildAt(0);
176
- d.setText(a._inner[b].toString());
177
- this.i.add(d);
178
- }
179
- }
180
- };
181
- CalendarView.prototype.a9 = function () {
182
- if (this.t != null) {
183
- if (this.c.af == true) {
184
- this.t.show();
185
- this.t.setStyleProperty("width", "12%");
186
- this.t.parent().setStyleProperty("max-width", "245px");
187
- this.t.parent().getChildAt(1).setStyleProperty("width", "88%");
188
- }
189
- else {
190
- this.t.hide();
191
- this.t.parent().setStyleProperty("max-width", "231px");
192
- this.t.parent().getChildAt(1).setStyleProperty("width", "100%");
193
- }
194
- }
195
- };
196
- CalendarView.prototype.ac = function () {
197
- if (this.m != null) {
198
- this.o.setStyleProperty("display", "flex");
199
- this.o.setStyleProperty("flex-direction", "column");
200
- this.o.setStyleProperty("justify-content", "space-evenly");
201
- var a = this.m.createElement("div");
202
- a.setStyleProperty("display", "flex");
203
- a.setStyleProperty("justify-content", "space-evenly");
204
- a.setStyleProperty("width", "100%");
205
- a.setAttribute("role", "row");
206
- var b = this.m.createElement("div");
207
- b.setStyleProperty("width", "15%");
208
- var c = this.m.createElement("div");
209
- c.setStyleProperty("width", "20%");
210
- var d = this.m.createElement("div");
211
- d.setStyleProperty("width", "20%");
212
- var e = this.m.createElement("div");
213
- e.setStyleProperty("width", "15%");
214
- a.append(b);
215
- a.append(c);
216
- a.append(d);
217
- a.append(e);
218
- this.o.append(a);
219
- var f = this.m.createElement("div");
220
- f.setStyleProperty("width", "100%");
221
- f.setStyleProperty("height", "100%");
222
- f.setStyleProperty("display", "flex");
223
- f.setStyleProperty("flex-direction", "row");
224
- f.setStyleProperty("justify-content", "space-evenly");
225
- this.t.setStyleProperty("padding-bottom", "6px");
226
- f.append(this.t);
227
- var g = this.m.createElement("div");
228
- g.setStyleProperty("display", "flex");
229
- g.setStyleProperty("flex-direction", "column");
230
- g.setStyleProperty("width", "88%");
231
- g.setAttribute("role", "grid");
232
- g.setAttribute("aria-readonly", "true");
233
- f.append(g);
234
- this.o.append(f);
235
- var h = 0;
236
- for (var i = 0; i < 7; i++) {
237
- var j = this.m.createElement("div");
238
- j.setAttribute("role", "row");
239
- j.setStyleProperty("display", "flex");
240
- j.setStyleProperty("justify-content", "space-evenly");
241
- if (i == 0) {
242
- for (var k = 0; k < 7; k++) {
243
- var l = this.m.createElement("div");
244
- l.setAttribute("role", "columnheader");
245
- l.setAttribute("scope", "col");
246
- l.setStyleProperty("text-align", "center");
247
- l.setStyleProperty("vertical-align", "middle");
248
- l.setStyleProperty("width", "12%");
249
- var m = this.m.createElement("span");
250
- m.setStyleProperty("font", "16px Verdana");
251
- m.setStyleProperty("color", "rgb(24, 29, 31)");
252
- l.append(m);
253
- this.e.add(m);
254
- j.append(l);
255
- }
256
- g.append(j);
257
- }
258
- else {
259
- for (var n = 0; n < 7; n++) {
260
- var o = this.m.createElement("div");
261
- o.setAttribute("role", "gridcell");
262
- o.setStyleProperty("justify-content", "center");
263
- var p = this.f._inner[h];
264
- var q = this.m.createElement("span");
265
- q.setAttribute("aria-hidden", "true");
266
- p.append(q);
267
- this.ag(o, p, h);
268
- p.parent().setStyleProperty("max-height", "30px");
269
- p.parent().setStyleProperty("display", "flex");
270
- o.setStyleProperty("width", "12%");
271
- o.setStyleProperty("height", "100%");
272
- j.append(o);
273
- h++;
274
- }
275
- g.append(j);
276
- }
277
- }
278
- this.s = this.m.createElement("div");
279
- this.s.setStyleProperty("display", "flex");
280
- this.s.setStyleProperty("padding-bottom", "4px");
281
- var r = this.m.createElement("div");
282
- r.setStyleProperty("width", "100%");
283
- r.setStyleProperty("justify-content", "center");
284
- this.r = this.m.createElement("div");
285
- this.r.setAttribute("aria-hidden", "true");
286
- var s = this.m.createElement("span");
287
- s.setAttribute("aria-hidden", "true");
288
- this.r.append(s);
289
- this.c.cm(r, this.r);
290
- this.r.parent().setAttribute("aria-hidden", "true");
291
- this.r.parent().parent().setAttribute("tabindex", "-1");
292
- this.r.parent().parent().setAttribute("aria-readonly", "true");
293
- this.r.parent().parent().setAttribute("aria-selected", "false");
294
- this.r.parent().parent().setAttribute("aria-disabled", "false");
295
- this.r.parent().parent().setAttribute("data-is-focusable", "true");
296
- this.s.append(r);
297
- this.o.append(this.s);
298
- this.a8();
299
- this.c.cf();
300
- }
301
- };
302
- CalendarView.prototype.ad = function () {
303
- if (this.m != null) {
304
- this.q.setStyleProperty("display", "flex");
305
- this.q.setStyleProperty("flex-direction", "row");
306
- this.q.setStyleProperty("flex-wrap", "wrap");
307
- this.q.setStyleProperty("margin", "2px");
308
- this.q.setStyleProperty("justify-content", "center");
309
- this.q.setStyleProperty("width", "100%");
310
- this.q.setStyleProperty("height", "100%");
311
- this.q.setAttribute("role", "grid");
312
- this.q.setAttribute("aria-readonly", "true");
313
- for (var a = 0; a < 12; a++) {
314
- var b = this.m.createElement("div");
315
- b.setStyleProperty("margin", "5px");
316
- b.setAttribute("data-month", (a + 1).toString());
317
- var c = this.h._inner[a];
318
- c.setAttribute("aria-hidden", "true");
319
- this.c.cl(b, c);
320
- b.setStyleProperty("width", "28%");
321
- var d = b.getChildAt(0);
322
- d.setStyleProperty("width", "100%");
323
- var e = this.m.createElement("span");
324
- e.setAttribute("aria-hidden", "true");
325
- var f = void 0;
326
- var g = a + 1;
327
- f = this.c.e(g, a);
328
- c.parent().parent().setAttribute("aria-label", f[0]);
329
- e.setText(f[1]);
330
- c.append(e);
331
- c.parent().setAttribute("aria-hidden", "true");
332
- c.parent().parent().setAttribute("tabindex", "-1");
333
- c.parent().parent().setAttribute("aria-readonly", "true");
334
- c.parent().parent().setAttribute("aria-selected", "false");
335
- c.parent().parent().setAttribute("aria-disabled", "false");
336
- c.parent().parent().setAttribute("data-is-focusable", "true");
337
- c.setAttribute("data-index", a.toString());
338
- this.q.append(b);
339
- }
340
- }
341
- };
342
- CalendarView.prototype.bd = function () {
343
- for (var a = 0; a < 12; a++) {
344
- var b = this.h._inner[a];
345
- var c = void 0;
346
- var d = a + 1;
347
- c = this.c.e(d, a);
348
- b.parent().parent().setAttribute("aria-label", c[0]);
349
- var e = b.getChildAt(0);
350
- e.setText(c[1]);
351
- }
352
- };
353
- CalendarView.prototype.af = function () {
354
- if (this.m != null) {
355
- this.u.setStyleProperty("width", "100%");
356
- this.u.setStyleProperty("height", "100%");
357
- var a = this.c.aq.getFullYear() - 3;
358
- this.u.setStyleProperty("padding", "5px");
359
- this.u.setAttribute("role", "grid");
360
- this.u.setAttribute("aria-readonly", "true");
361
- for (var b = 0; b < 7; b++) {
362
- var c = this.m.createElement("div");
363
- var d = this.j._inner[b];
364
- d.setAttribute("aria-hidden", "true");
365
- this.c.cn(c, d, b);
366
- d.parent().setAttribute("aria-hidden", "true");
367
- d.parent().parent().setAttribute("tabindex", "-1");
368
- d.parent().parent().setAttribute("aria-readonly", "true");
369
- d.parent().parent().setAttribute("aria-selected", "false");
370
- d.parent().parent().setAttribute("aria-disabled", "false");
371
- d.parent().parent().setAttribute("data-is-focusable", "true");
372
- c.setStyleProperty("width", "100%");
373
- c.setStyleProperty("height", "14%");
374
- c.setStyleProperty("justify-content", "center");
375
- var e = c.getChildAt(0);
376
- e.setStyleProperty("width", "98%");
377
- var f = this.m.createElement("span");
378
- f.setAttribute("aria-hidden", "true");
379
- f.setText(a.toString());
380
- a++;
381
- d.setAttribute("data-index", b.toString());
382
- d.append(f);
383
- this.u.append(c);
384
- }
385
- }
386
- };
387
- CalendarView.prototype.a8 = function () {
388
- if (this.m != null) {
389
- if (this.c.ae == true) {
390
- this.s.setStyleProperty("display", "flex");
391
- }
392
- else {
393
- this.s.setStyleProperty("display", "none");
394
- }
395
- }
396
- };
397
- CalendarView.prototype.a3 = function () {
398
- if (this.m != null) {
399
- var a = this.o.getChildAt(0);
400
- for (var b = 0; b < 4; b++) {
401
- var c = this.m.createElement("div");
402
- this.g.add(c);
403
- }
404
- var d = a.getChildAt(0);
405
- var e = this.g._inner[0];
406
- var f = this.m.createElement("div");
407
- f.setAttribute("aria-hidden", "true");
408
- e.append(f);
409
- this.c.ck(d, f, e, "prev");
410
- e.parent().parent().setAttribute("aria-label", "Previous Month");
411
- e.parent().setStyleProperty("max-height", "30px");
412
- e.parent().setStyleProperty("display", "flex");
413
- e.setAttribute("data-index", "0");
414
- this.aw(e);
415
- var g = a.getChildAt(1);
416
- var h = this.g._inner[1];
417
- var i = this.m.createElement("span");
418
- i.setAttribute("aria-hidden", "true");
419
- h.append(i);
420
- this.c.cj(g, h, "month");
421
- i = h.getChildAt(0);
422
- var j = this.c.bx();
423
- i.setText(j);
424
- h.parent().parent().setAttribute("aria-label", "Select Month");
425
- h.parent().setStyleProperty("min-width", "40px");
426
- h.parent().setStyleProperty("max-height", "30px");
427
- h.parent().setStyleProperty("display", "flex");
428
- h.setAttribute("data-index", "1");
429
- this.aw(h);
430
- var k = a.getChildAt(2);
431
- var l = this.g._inner[2];
432
- var m = this.m.createElement("span");
433
- m.setAttribute("aria-hidden", "true");
434
- l.append(m);
435
- this.c.cj(k, l, "year");
436
- m = this.g._inner[2].getChildAt(0);
437
- var n = this.c.by();
438
- m.setText(n);
439
- l.parent().parent().setAttribute("aria-label", "Select Year");
440
- l.parent().setStyleProperty("min-width", "40px");
441
- l.parent().setStyleProperty("max-height", "30px");
442
- l.parent().setStyleProperty("display", "flex");
443
- l.setAttribute("data-index", "2");
444
- this.aw(l);
445
- var o = a.getChildAt(3);
446
- var p = this.g._inner[3];
447
- var q = this.m.createElement("div");
448
- q.setAttribute("aria-hidden", "true");
449
- p.append(q);
450
- this.c.ck(o, q, p, "next");
451
- p.parent().parent().setAttribute("aria-label", "Next Month");
452
- p.parent().setStyleProperty("max-height", "30px");
453
- p.parent().setStyleProperty("display", "flex");
454
- p.setAttribute("data-index", "3");
455
- this.aw(p);
456
- var r = this.c.a();
457
- for (var s = 0; s < this.g.count; s++) {
458
- if (r[s] == true) {
459
- this.g._inner[s].setAttribute("data-disabled", "true");
460
- }
461
- else {
462
- this.g._inner[s].setAttribute("data-disabled", "false");
463
- }
464
- }
465
- d.listen("click", runOn(this, this.aq));
466
- o.listen("click", runOn(this, this.al));
467
- g.listen("click", runOn(this, this.ak));
468
- k.listen("click", runOn(this, this.bi));
469
- }
470
- };
471
- CalendarView.prototype.bc = function () {
472
- var a = this.g._inner[1];
473
- var b = a.getChildAt(0);
474
- var c = this.c.bx();
475
- b.setText(c);
476
- };
477
- CalendarView.prototype.aw = function (a) {
478
- a.setAttribute("aria-hidden", "true");
479
- a.parent().setAttribute("aria-hidden", "true");
480
- a.parent().parent().setAttribute("tabindex", "-1");
481
- a.parent().parent().setAttribute("aria-readonly", "true");
482
- a.parent().parent().setAttribute("aria-selected", "false");
483
- a.parent().parent().setAttribute("aria-disabled", "false");
484
- a.parent().parent().setAttribute("data-is-focusable", "true");
485
- a.setAttribute("data-section", "header");
486
- a.setAttribute("data-disabled", "false");
487
- };
488
- CalendarView.prototype.a4 = function () {
489
- if (this.m != null) {
490
- var a = this.o.getChildAt(1).getChildAt(1).getChildAt(0);
491
- var b = new List$1(DayOfWeek_$type, 0);
492
- switch (this.c.l) {
493
- case 0:
494
- b.add(0);
495
- b.add(1);
496
- b.add(2);
497
- b.add(3);
498
- b.add(4);
499
- b.add(5);
500
- b.add(6);
501
- break;
502
- case 1:
503
- b.add(1);
504
- b.add(2);
505
- b.add(3);
506
- b.add(4);
507
- b.add(5);
508
- b.add(6);
509
- b.add(0);
510
- break;
511
- case 2:
512
- b.add(2);
513
- b.add(3);
514
- b.add(4);
515
- b.add(5);
516
- b.add(6);
517
- b.add(0);
518
- b.add(1);
519
- break;
520
- case 3:
521
- b.add(3);
522
- b.add(4);
523
- b.add(5);
524
- b.add(6);
525
- b.add(0);
526
- b.add(1);
527
- b.add(2);
528
- break;
529
- case 4:
530
- b.add(4);
531
- b.add(5);
532
- b.add(6);
533
- b.add(0);
534
- b.add(1);
535
- b.add(2);
536
- b.add(3);
537
- break;
538
- case 5:
539
- b.add(5);
540
- b.add(6);
541
- b.add(0);
542
- b.add(1);
543
- b.add(2);
544
- b.add(3);
545
- b.add(4);
546
- break;
547
- case 6:
548
- b.add(6);
549
- b.add(0);
550
- b.add(1);
551
- b.add(2);
552
- b.add(3);
553
- b.add(4);
554
- b.add(5);
555
- break;
556
- }
557
- this.e.clear();
558
- for (var c = 0; c < b.count; c++) {
559
- var d = a.getChildAt(c);
560
- var e = d.getChildAt(0);
561
- var f = this.c.d(b._inner[c]);
562
- d.setAttribute("title", f[0]);
563
- d.setAttribute("aria-label", f[0]);
564
- e.setText(f[1]);
565
- this.e.add(e);
566
- }
567
- }
568
- };
569
- CalendarView.prototype.a1 = function () {
570
- if (this.m != null) {
571
- this.a2();
572
- this.a5();
573
- var a = this.o.getChildAt(1);
574
- var b = a.getChildAt(1);
575
- for (var c = 1; c < 7; c++) {
576
- var d = b.getChildAt(c);
577
- for (var e = 0; e < 7; e++) {
578
- var f = d.getChildAt(e);
579
- f.listen("click", runOn(this, this.ah));
580
- }
581
- }
582
- }
583
- };
584
- CalendarView.prototype.a2 = function (a, b) {
585
- if (a === void 0) {
586
- a = false;
587
- }
588
- if (b === void 0) {
589
- b = false;
590
- }
591
- if (this.m != null) {
592
- var c = null;
593
- var d = null;
594
- var e = null;
595
- var f = this.c.value;
596
- var g = this.c.aq;
597
- var h = this.c.av;
598
- for (var i = 0; i < 42; i++) {
599
- var j = this.f._inner[i];
600
- var k = j.getChildAt(0);
601
- var l = this.c.j(i);
602
- if (l != null) {
603
- j.parent().parent().setAttribute("aria-label", l.c.toString() + "/" + l.b.toString() + "/" + l.d.toString());
604
- j.setAttribute("data-section", "days");
605
- j.setAttribute("data-index", i.toString());
606
- j.setAttribute("data-date", l.b.toString() + "/" + l.c.toString() + "/" + l.d.toString());
607
- j.setAttribute("data-selected", "false");
608
- j.setAttribute("data-disabled", "false");
609
- j.setAttribute("data-today", "false");
610
- k.setText(l.b.toString());
611
- if (+f != +(dateMinValue()) && l.b == f.getDate() && l.c == dateGetMonth(f) && l.d == f.getFullYear()) {
612
- c = j;
613
- j.parent().parent().setAttribute("aria-selected", "true");
614
- j.setAttribute("data-selected", "true");
615
- }
616
- else if (l.b == h.getDate() && l.c == dateGetMonth(h) && l.d == h.getFullYear()) {
617
- d = j;
618
- j.setAttribute("data-today", "true");
619
- }
620
- var m = this.c.ad(i);
621
- if (m) {
622
- j.setAttribute("data-disabled", "true");
623
- }
624
- if (l.b == 1 && l.c == dateGetMonth(g)) {
625
- e = j;
626
- }
627
- }
628
- }
629
- if (a == true) {
630
- if (c != null && +f != +(dateMinValue()) && f.getFullYear() == g.getFullYear() && dateGetMonth(f) == dateGetMonth(g)) {
631
- this.d(c);
632
- }
633
- else if (d != null && h.getFullYear() == g.getFullYear() && dateGetMonth(h) == dateGetMonth(g)) {
634
- this.d(d);
635
- }
636
- else if (e != null) {
637
- if (b == true) {
638
- for (var n = 41; n >= 0; n--) {
639
- var o = this.c.j(n);
640
- if (o.c == dateGetMonth(g)) {
641
- var p = this.f._inner[n];
642
- var q = p.getAttribute("data-disabled");
643
- if (q == "false") {
644
- e = this.f._inner[n];
645
- break;
646
- }
647
- }
648
- }
649
- }
650
- else {
651
- for (var r = 0; r < 42; r++) {
652
- var s = this.c.j(r);
653
- if (s.c == dateGetMonth(g)) {
654
- var t = this.f._inner[r];
655
- var u = t.getAttribute("data-disabled");
656
- if (u == "false") {
657
- e = this.f._inner[r];
658
- break;
659
- }
660
- }
661
- }
662
- }
663
- this.d(e);
664
- }
665
- }
666
- }
667
- };
668
- CalendarView.prototype.ag = function (a, b, c) {
669
- if (this.m != null) {
670
- b.setAttribute("aria-hidden", "true");
671
- var d = this.m.createElement("span");
672
- d.setAttribute("aria-hidden", "true");
673
- b.append(d);
674
- this.c.ci(a, b, c);
675
- b.parent().setAttribute("aria-hidden", "true");
676
- b.parent().parent().setAttribute("tabindex", "-1");
677
- b.parent().parent().setAttribute("aria-readonly", "true");
678
- b.parent().parent().setAttribute("aria-selected", "false");
679
- b.parent().parent().setAttribute("aria-disabled", "false");
680
- b.parent().parent().setAttribute("data-is-focusable", "true");
681
- }
682
- };
683
- CalendarView.prototype.at = function (a, b) {
684
- if (this.m != null) {
685
- var c = this.m.getSubRenderer(a);
686
- b.provideContainer(c);
687
- var d = c.getExternal(b, c.rootWrapper, c.getExternal(this.c, null, null));
688
- }
689
- };
690
- CalendarView.prototype.a0 = function (a) {
691
- var b = this.r.getChildAt(0);
692
- b.setText(a);
693
- this.r.parent().parent().setAttribute("aria-label", a);
694
- };
695
- CalendarView.prototype.ax = function (a, b) {
696
- if (this.m != null) {
697
- var c = this.m.getSubRenderer(a);
698
- b.provideContainer(c);
699
- var d = c.getExternal(b, c.rootWrapper, c.getExternal(this.c, null, null));
700
- }
701
- };
702
- CalendarView.prototype.az = function () {
703
- if (this.m != null) {
704
- var a = this.g._inner[1].getChildAt(0);
705
- var b = this.c.bx();
706
- a.setText(b);
707
- var c = this.g._inner[2].getChildAt(0);
708
- var d = this.c.by();
709
- c.setText(d);
710
- }
711
- };
712
- CalendarView.prototype.au = function (a, b) {
713
- if (a === void 0) {
714
- a = false;
715
- }
716
- if (b === void 0) {
717
- b = false;
718
- }
719
- if (this.m != null) {
720
- this.a2(a, b);
721
- this.a5();
722
- var c = this.c.a();
723
- for (var d = 0; d < this.g.count; d++) {
724
- if (c[d] == true) {
725
- this.g._inner[d].setAttribute("data-disabled", "true");
726
- }
727
- else {
728
- this.g._inner[d].setAttribute("data-disabled", "false");
729
- }
730
- }
731
- }
732
- };
733
- CalendarView.prototype.ay = function () {
734
- if (this.m != null) {
735
- if (this.h.count != 0) {
736
- var a = null;
737
- var b = null;
738
- var c = 0;
739
- var d = 0;
740
- var e = 0;
741
- for (var f = 0; f < 12; f++) {
742
- var g = this.h._inner[f];
743
- g.setAttribute("data-section", "months");
744
- g.setAttribute("data-disabled", "false");
745
- g.parent().parent().setAttribute("aria-selected", "false");
746
- var h = f + 1;
747
- var i = this.c.value;
748
- var j = this.c.av;
749
- if (+i != +(dateMinValue()) && dateGetMonth(i) == h) {
750
- b = g;
751
- c = f;
752
- g.parent().parent().setAttribute("aria-selected", "true");
753
- }
754
- if (dateGetMonth(j) == h) {
755
- a = g;
756
- d = f;
757
- }
758
- var k = this.c.aa(f, h);
759
- if (k) {
760
- g.setAttribute("data-disabled", "true");
761
- }
762
- }
763
- for (var l = 0; l < this.h.count; l++) {
764
- var m = this.h._inner[l];
765
- var n = m.getAttribute("data-disabled");
766
- if (n == "false") {
767
- e = l;
768
- break;
769
- }
770
- }
771
- var o = this.h._inner[c].getAttribute("data-disabled");
772
- var p = this.h._inner[d].getAttribute("data-disabled");
773
- var q = this.h._inner[e].getAttribute("data-disabled");
774
- if (b != null && o == "false") {
775
- this.d(b);
776
- }
777
- else if (a != null && p == "false") {
778
- this.d(a);
779
- }
780
- else if (q == "false") {
781
- this.d(this.h._inner[e]);
782
- }
783
- else {
784
- this.as();
785
- }
786
- }
787
- }
788
- };
789
- CalendarView.prototype.a7 = function () {
790
- if (this.m != null) {
791
- if (this.j.count != 0) {
792
- var a = this.c.aq.getFullYear();
793
- var b = true;
794
- this.a6(a, b);
795
- }
796
- }
797
- };
798
- CalendarView.prototype.a6 = function (a, b) {
799
- if (b === void 0) {
800
- b = false;
801
- }
802
- if (a < this.c.au.getFullYear()) {
803
- a = this.c.au.getFullYear();
804
- }
805
- if (a > this.c.at.getFullYear()) {
806
- a = this.c.at.getFullYear();
807
- }
808
- var c = a - 3;
809
- var d = false;
810
- for (var e = 0; e < 7; e++) {
811
- var f = this.j._inner[e];
812
- f.setAttribute("data-section", "years");
813
- f.setAttribute("data-disabled", "false");
814
- f.parent().parent().setAttribute("aria-selected", "false");
815
- var g = this.c.ab(e, c);
816
- f.setAttribute("data-disabled", g.toString());
817
- var h = f.getChildAt(0);
818
- h.setText(c.toString());
819
- f.parent().parent().setAttribute("aria-label", c.toString());
820
- if (c == a && b) {
821
- if (g == false) {
822
- f.parent().parent().setAttribute("aria-selected", "true");
823
- d = true;
824
- this.d(f);
825
- }
826
- }
827
- c++;
828
- }
829
- if (d == false) {
830
- var i = this.j._inner[3].getAttribute("data-disabled");
831
- if (i == "false") {
832
- var j = this.j._inner[3];
833
- this.d(j);
834
- }
835
- }
836
- };
837
- CalendarView.prototype.as = function (a) {
838
- if (a === void 0) {
839
- a = false;
840
- }
841
- this.au();
842
- this.az();
843
- this.x = "day";
844
- this.n.show();
845
- this.n.setStyleProperty("display", "flex");
846
- this.q.hide();
847
- this.u.hide();
848
- this.av(a);
849
- this.ai();
850
- };
851
- CalendarView.prototype.av = function (a) {
852
- if (a === void 0) {
853
- a = false;
854
- }
855
- var b = null;
856
- var c = null;
857
- var d = null;
858
- for (var e = 0; e < this.f.count; e++) {
859
- var f = this.f._inner[e];
860
- var g = parseBool(f.getAttribute("data-disabled").toString());
861
- var h = f.getAttribute("data-date").toString().split('/');
862
- var i = h[1];
863
- var j = parseBool(f.getAttribute("data-selected").toString());
864
- var k = parseBool(f.getAttribute("data-today").toString());
865
- if (j == true) {
866
- c = f;
867
- }
868
- if (k == true) {
869
- d = f;
870
- }
871
- var l = dateGetMonth(this.c.aq).toString();
872
- if (g == false && l == i && b == null) {
873
- b = f;
874
- }
875
- }
876
- if (d != null) {
877
- b = d;
878
- }
879
- if (c != null && a == false) {
880
- b = c;
881
- }
882
- if (b == null) {
883
- for (var m = 0; m < this.g.count; m++) {
884
- var n = parseBool(this.g._inner[m].getAttribute("data-disabled").toString());
885
- if (n == false) {
886
- b = this.g._inner[m];
887
- break;
888
- }
889
- }
890
- }
891
- if (b != null) {
892
- this.d(b);
893
- }
894
- };
895
- CalendarView.prototype.d = function (a) {
896
- if (a == null) {
897
- return false;
898
- }
899
- var b = parseBool(a.getAttribute("data-disabled").toString());
900
- if (b) {
901
- return false;
902
- }
903
- this.p = a;
904
- return true;
905
- };
906
- CalendarView.prototype.ai = function () {
907
- if (this.p != null) {
908
- this.p.parent().parent().focus(true);
909
- }
910
- };
911
- CalendarView.prototype.ar = function (a, b) {
912
- if (a === void 0) {
913
- a = true;
914
- }
915
- if (b === void 0) {
916
- b = false;
917
- }
918
- var c = parseBool(this.g._inner[0].getAttribute("data-disabled").toString());
919
- if (c) {
920
- return;
921
- }
922
- this.c.cc(-1);
923
- this.au(a, b);
924
- this.az();
925
- };
926
- CalendarView.prototype.am = function (a, b) {
927
- if (a === void 0) {
928
- a = true;
929
- }
930
- if (b === void 0) {
931
- b = false;
932
- }
933
- var c = parseBool(this.g._inner[3].getAttribute("data-disabled").toString());
934
- if (c) {
935
- return;
936
- }
937
- this.c.cc(1);
938
- this.au(a, b);
939
- this.az();
940
- };
941
- CalendarView.prototype.ba = function () {
942
- this.n.hide();
943
- this.q.show();
944
- this.q.setStyleProperty("display", "flex");
945
- this.u.hide();
946
- this.x = "month";
947
- this.ay();
948
- this.ai();
949
- };
950
- CalendarView.prototype.bb = function () {
951
- this.n.hide();
952
- this.q.hide();
953
- this.u.show();
954
- this.x = "year";
955
- this.a7();
956
- this.ai();
957
- };
958
- CalendarView.prototype.z = function (a) {
959
- };
960
- CalendarView.prototype.aa = function (a) {
961
- var b = a.which;
962
- if (this.x == "day") {
963
- var c = this.p.getAttribute("data-section").toString();
964
- var d = parseInt(this.p.getAttribute("data-index").toString());
965
- if (c == "header") {
966
- if (b == 37) {
967
- if (d > 0) {
968
- var e = this.g._inner[d - 1];
969
- var f = this.d(e);
970
- if (f == false && d > 1) {
971
- e = this.g._inner[d - 2];
972
- this.d(e);
973
- }
974
- this.ai();
975
- }
976
- else {
977
- this.ar(false);
978
- var g = parseBool(this.p.getAttribute("data-disabled").toString());
979
- if (g == true) {
980
- this.av();
981
- this.ai();
982
- }
983
- }
984
- }
985
- else if (b == 39) {
986
- if (d < 3) {
987
- var h = this.g._inner[d + 1];
988
- var i = this.d(h);
989
- if (i == false && d < 2) {
990
- h = this.g._inner[d + 2];
991
- this.d(h);
992
- }
993
- this.ai();
994
- }
995
- else {
996
- this.am(false);
997
- var j = parseBool(this.p.getAttribute("data-disabled").toString());
998
- if (j == true) {
999
- this.av();
1000
- this.ai();
1001
- }
1002
- }
1003
- }
1004
- else if (b == 9) {
1005
- if (a.shiftKey) {
1006
- this.c.cs();
1007
- }
1008
- else {
1009
- a.preventDefault();
1010
- this.au(true);
1011
- this.ai();
1012
- }
1013
- }
1014
- else if (b == 13) {
1015
- a.preventDefault();
1016
- if (d == 0) {
1017
- this.ar(false);
1018
- }
1019
- else if (d == 1) {
1020
- this.ba();
1021
- }
1022
- else if (d == 2) {
1023
- this.bb();
1024
- }
1025
- else if (d == 3) {
1026
- this.am(false);
1027
- }
1028
- }
1029
- }
1030
- else if (c == "days") {
1031
- var k = this.p.getAttribute("data-date").toString().split('/');
1032
- var l = k[0];
1033
- var m = k[1];
1034
- if (b == 37) {
1035
- if (d == 0) {
1036
- this.ar(true, true);
1037
- this.ai();
1038
- }
1039
- else {
1040
- var n = this.f._inner[d - 1];
1041
- var o = n.getAttribute("data-date").toString().split('/');
1042
- var p = o[0];
1043
- var q = o[1];
1044
- if (m == q) {
1045
- this.d(n);
1046
- this.ai();
1047
- }
1048
- else {
1049
- this.ar();
1050
- var r = this.v(p, q);
1051
- this.d(r);
1052
- this.ai();
1053
- }
1054
- }
1055
- }
1056
- else if (b == 39) {
1057
- if (d == 41) {
1058
- this.am(true, false);
1059
- this.ai();
1060
- }
1061
- else {
1062
- var s = this.f._inner[d + 1];
1063
- var t = s.getAttribute("data-date").toString().split('/');
1064
- var u = t[0];
1065
- var v = t[1];
1066
- if (m == v) {
1067
- this.d(s);
1068
- this.ai();
1069
- }
1070
- else {
1071
- this.am();
1072
- var w = this.v(u, v);
1073
- this.d(w);
1074
- this.ai();
1075
- }
1076
- }
1077
- }
1078
- else if (b == 40) {
1079
- if (d >= 35) {
1080
- this.am();
1081
- var x = this.v(l, m);
1082
- var y = parseInt(x.getAttribute("data-index").toString());
1083
- var z = this.f._inner[y + 7];
1084
- var aa = z.getAttribute("data-date").toString().split('/');
1085
- var ab = aa[0];
1086
- var ac = aa[1];
1087
- var ad = this.v(ab, ac);
1088
- this.d(ad);
1089
- this.ai();
1090
- }
1091
- else {
1092
- var ae = this.f._inner[d + 7];
1093
- var af = ae.getAttribute("data-date").toString().split('/');
1094
- var ag = af[0];
1095
- var ah = af[1];
1096
- if (m == ah) {
1097
- this.d(ae);
1098
- this.ai();
1099
- }
1100
- else {
1101
- this.am();
1102
- var ai = this.v(ag, ah);
1103
- this.d(ai);
1104
- this.ai();
1105
- }
1106
- }
1107
- }
1108
- else if (b == 38) {
1109
- if (d <= 6) {
1110
- this.ar();
1111
- var aj = this.v(l, m);
1112
- var ak = parseInt(aj.getAttribute("data-index").toString());
1113
- var al = this.f._inner[ak - 7];
1114
- var am = al.getAttribute("data-date").toString().split('/');
1115
- var an = am[0];
1116
- var ao = am[1];
1117
- var ap = this.v(an, ao);
1118
- this.d(ap);
1119
- this.ai();
1120
- }
1121
- else {
1122
- var aq = this.f._inner[d - 7];
1123
- var ar = aq.getAttribute("data-date").toString().split('/');
1124
- var as = ar[0];
1125
- var at = ar[1];
1126
- if (m == at) {
1127
- this.d(aq);
1128
- this.ai();
1129
- }
1130
- else {
1131
- this.ar();
1132
- var au = this.v(as, at);
1133
- this.d(au);
1134
- this.ai();
1135
- }
1136
- }
1137
- }
1138
- else if (b == 34) {
1139
- this.am();
1140
- this.ai();
1141
- }
1142
- else if (b == 33) {
1143
- this.ar();
1144
- this.ai();
1145
- }
1146
- else if (b == 9) {
1147
- if (a.shiftKey) {
1148
- a.preventDefault();
1149
- var av = this.g._inner[1];
1150
- this.d(av);
1151
- this.ai();
1152
- }
1153
- else {
1154
- this.c.cs();
1155
- }
1156
- }
1157
- }
1158
- }
1159
- else if (this.x == "month") {
1160
- var aw = parseInt(this.p.getAttribute("data-index").toString());
1161
- if (b == 37) {
1162
- if (aw == 0) {
1163
- var ax = this.h._inner[11];
1164
- this.d(ax);
1165
- this.ai();
1166
- }
1167
- else {
1168
- var ay = this.h._inner[aw - 1];
1169
- this.d(ay);
1170
- this.ai();
1171
- }
1172
- }
1173
- else if (b == 39) {
1174
- if (aw == 11) {
1175
- var az = this.h._inner[0];
1176
- this.d(az);
1177
- this.ai();
1178
- }
1179
- else {
1180
- var a0 = this.h._inner[aw + 1];
1181
- this.d(a0);
1182
- this.ai();
1183
- }
1184
- }
1185
- else if (b == 40) {
1186
- if (aw >= 9) {
1187
- var a1 = this.h._inner[aw - 9];
1188
- this.d(a1);
1189
- this.ai();
1190
- }
1191
- else {
1192
- var a2 = this.h._inner[aw + 3];
1193
- this.d(a2);
1194
- this.ai();
1195
- }
1196
- }
1197
- else if (b == 38) {
1198
- if (aw <= 2) {
1199
- var a3 = this.h._inner[aw + 9];
1200
- this.d(a3);
1201
- this.ai();
1202
- }
1203
- else {
1204
- var a4 = this.h._inner[aw - 3];
1205
- this.d(a4);
1206
- this.ai();
1207
- }
1208
- }
1209
- else if (b == 13) {
1210
- this.d(this.g._inner[1]);
1211
- this.ai();
1212
- }
1213
- }
1214
- else if (this.x == "year") {
1215
- var a5 = parseInt(this.p.getAttribute("data-index").toString());
1216
- var a6 = parseInt(this.j._inner[3].getChildAt(0).getText());
1217
- if (b == 40) {
1218
- this.c.cz(a6, 1);
1219
- this.ai();
1220
- }
1221
- else if (b == 38) {
1222
- this.c.cz(a6, -1);
1223
- this.ai();
1224
- }
1225
- else if (b == 13) {
1226
- this.d(this.g._inner[2]);
1227
- this.ai();
1228
- }
1229
- }
1230
- if (b == 27) {
1231
- this.as();
1232
- this.c.cs();
1233
- }
1234
- if (a.altKey == true) {
1235
- if (b == 38) {
1236
- this.as();
1237
- this.c.cs();
1238
- }
1239
- }
1240
- };
1241
- CalendarView.prototype.v = function (a, b) {
1242
- var c = null;
1243
- var d = null;
1244
- for (var e = 0; e < 42; e++) {
1245
- var f = this.f._inner[e];
1246
- var g = f.getAttribute("data-date").toString().split('/');
1247
- var h = g[0];
1248
- var i = g[1];
1249
- if (b == i && d == null) {
1250
- d = f;
1251
- }
1252
- if (b == i && a == h) {
1253
- c = f;
1254
- break;
1255
- }
1256
- }
1257
- if (c == null) {
1258
- c = d;
1259
- }
1260
- return c;
1261
- };
1262
- CalendarView.prototype.aq = function (a) {
1263
- var b = this.g._inner[0];
1264
- var c = parseBool(b.getAttribute("data-disabled").toString());
1265
- if (c == true) {
1266
- return;
1267
- }
1268
- this.ar();
1269
- };
1270
- CalendarView.prototype.al = function (a) {
1271
- var b = this.g._inner[3];
1272
- var c = parseBool(b.getAttribute("data-disabled").toString());
1273
- if (c == true) {
1274
- return;
1275
- }
1276
- this.am();
1277
- };
1278
- CalendarView.prototype.ak = function (a) {
1279
- var b = this.g._inner[1];
1280
- var c = parseBool(b.getAttribute("data-disabled").toString());
1281
- if (c == true) {
1282
- return;
1283
- }
1284
- this.ba();
1285
- };
1286
- CalendarView.prototype.bi = function (a) {
1287
- var b = this.g._inner[2];
1288
- var c = parseBool(b.getAttribute("data-disabled").toString());
1289
- if (c == true) {
1290
- return;
1291
- }
1292
- this.bb();
1293
- };
1294
- CalendarView.prototype.ah = function (e_) {
1295
- var a = (e_.originalEvent.currentTarget);
1296
- var b = (a.textContent);
1297
- if (b != "") {
1298
- var c = a.lastChild.lastChild.lastChild;
1299
- var d = parseBool(c.getAttribute("data-disabled").toString());
1300
- if (d == false) {
1301
- var e = c.getAttribute("data-date").toString().split('/');
1302
- var f = e[1];
1303
- var g = e[2];
1304
- this.c.co(b, f, g);
1305
- }
1306
- }
1307
- };
1308
- CalendarView.prototype.aj = function (e_) {
1309
- var a = (e_.originalEvent.currentTarget);
1310
- var b = a.getAttribute("data-month").toString();
1311
- if (b != "") {
1312
- var c = parseInt(b);
1313
- var d = a.lastChild.lastChild.lastChild;
1314
- var e = parseBool(d.getAttribute("data-disabled").toString());
1315
- if (e == false) {
1316
- this.c.cd(c);
1317
- this.as();
1318
- }
1319
- }
1320
- };
1321
- CalendarView.prototype.be = function (e_) {
1322
- var a = (e_.originalEvent.currentTarget);
1323
- var b = a.innerText;
1324
- if (b != "") {
1325
- var c = parseInt(b);
1326
- var d = a.lastChild.lastChild.lastChild;
1327
- var e = parseBool(d.getAttribute("data-disabled").toString());
1328
- if (e == false) {
1329
- this.c.ce(c);
1330
- this.as();
1331
- }
1332
- }
1333
- };
1334
- CalendarView.prototype.bh = function (e_) {
1335
- e_.preventDefault();
1336
- var a = (e_.originalEvent.deltaY);
1337
- var b = parseInt(this.j._inner[3].getChildAt(0).getText());
1338
- this.c.cz(b, a);
1339
- };
1340
- CalendarView.prototype.bg = function (e_) {
1341
- this.w = e_.pageY;
1342
- };
1343
- CalendarView.prototype.bf = function (e_) {
1344
- var a = truncate(((this.w - e_.pageY) / (6)));
1345
- if (a > 1 || a < -1) {
1346
- this.w = e_.pageY;
1347
- var b = parseInt(this.j._inner[3].getChildAt(0).getText());
1348
- this.c.cz(b, a);
1349
- }
1350
- };
1351
- CalendarView.prototype.a = function () {
1352
- var rect_ = this.m.rootWrapper.getNativeElement().getBoundingClientRect();
1353
- var a = (rect_.top);
1354
- var b = (rect_.left);
1355
- var c = new Array(2);
1356
- c[0] = a;
1357
- c[1] = b;
1358
- return c;
1359
- };
1360
- CalendarView.prototype.b = function (a) {
1361
- var rect_ = a.getNativeElement().getBoundingClientRect();
1362
- var b = (rect_.top);
1363
- var c = (rect_.left);
1364
- var d = new Array(2);
1365
- d[0] = b;
1366
- d[1] = c;
1367
- return d;
1368
- };
1369
- CalendarView.prototype.an = function () {
1370
- };
1371
- CalendarView.$t = markType(CalendarView, 'CalendarView');
1372
- return CalendarView;
1373
- }(Base));
1374
- /**
1375
- * @hidden
1376
- */
1377
- export var XCalendar = /** @class */ /*@__PURE__*/ (function (_super) {
1378
- __extends(XCalendar, _super);
1379
- function XCalendar() {
1380
- var _this = _super.call(this) || this;
1381
- _this.h = null;
1382
- _this.aq = dateNow();
1383
- _this.am = new Date();
1384
- _this.ai = null;
1385
- _this.aj = null;
1386
- _this.ah = null;
1387
- _this.ak = null;
1388
- _this.al = null;
1389
- _this.g = null;
1390
- _this.ap = dateMinValue();
1391
- _this.propertyChanged = null;
1392
- _this.close = null;
1393
- _this.selectedValueChanged = null;
1394
- _this.w = null;
1395
- _this.as = dateMinValue();
1396
- _this.ar = dateNow();
1397
- _this.ao = dateMinValue();
1398
- _this.an = dateMaxValue();
1399
- _this.s = 3;
1400
- _this.q = 1;
1401
- _this.c6 = BrushUtil.l(0, 255, 255, 255);
1402
- _this.dc = BrushUtil.l(255, 33, 150, 243);
1403
- _this.de = BrushUtil.l(255, 21, 112, 184);
1404
- _this.c9 = BrushUtil.l(76, 33, 150, 243);
1405
- _this.db = BrushUtil.l(50, 186, 191, 199);
1406
- _this.df = BrushUtil.l(255, 24, 29, 31);
1407
- _this.dd = BrushUtil.l(255, 255, 255, 255);
1408
- _this.da = BrushUtil.l(255, 24, 29, 31);
1409
- _this.c8 = BrushUtil.l(255, 33, 150, 243);
1410
- _this.c7 = BrushUtil.l(255, 33, 150, 243);
1411
- _this.y = false;
1412
- _this.u = null;
1413
- _this.k = 0;
1414
- _this.n = 0;
1415
- _this.z = false;
1416
- _this.am = dateAddYears(_this.am, -200);
1417
- _this.ai = new ObservableCollection$1(DayInfo.$, 0);
1418
- _this.aj = new ObservableCollection$1(XButton.$, 0);
1419
- _this.ah = new ObservableCollection$1(XButton.$, 0);
1420
- _this.ak = new ObservableCollection$1(XButton.$, 0);
1421
- _this.al = new ObservableCollection$1(XButton.$, 0);
1422
- var a = new CalendarView();
1423
- a.c = _this;
1424
- _this.h = a;
1425
- _this.h.ap();
1426
- return _this;
1427
- }
1428
- XCalendar.prototype.cs = function () {
1429
- if (this.close != null) {
1430
- this.close(this);
1431
- }
1432
- };
1433
- XCalendar.prototype.cu = function (a) {
1434
- var b = this.as;
1435
- this.as = a;
1436
- if (this.selectedValueChanged != null) {
1437
- this.selectedValueChanged(this, ((function () {
1438
- var $ret = new SelectedValueChangedEventArgs();
1439
- $ret.oldValue = b;
1440
- $ret.newValue = a;
1441
- return $ret;
1442
- })()));
1443
- }
1444
- if (+(this.value) != +(dateMinValue())) {
1445
- this.aq = this.value;
1446
- }
1447
- this.cx();
1448
- };
1449
- XCalendar.prototype.co = function (a, b, c) {
1450
- var d = dateFromValues(parseInt(c), parseInt(b), parseInt(a), 0, 0, 0, 0);
1451
- this.cu(d);
1452
- };
1453
- XCalendar.prototype.notifySizeChanged = function () {
1454
- this.h.an();
1455
- };
1456
- XCalendar.prototype.destroy = function () {
1457
- if (this.g != null) {
1458
- var a = this.g;
1459
- a.clicked = delegateRemove(a.clicked, runOn(this, this.c2));
1460
- }
1461
- this.provideContainer(null);
1462
- };
1463
- XCalendar.prototype.provideContainer = function (a) {
1464
- this.h.ao(a);
1465
- };
1466
- Object.defineProperty(XCalendar.prototype, "x", {
1467
- get: function () {
1468
- if (this.w == null) {
1469
- this.w = new SRProvider(this.h.m);
1470
- this.w.cb("Calendar");
1471
- }
1472
- return this.w;
1473
- },
1474
- enumerable: false,
1475
- configurable: true
1476
- });
1477
- Object.defineProperty(XCalendar.prototype, "value", {
1478
- get: function () {
1479
- return this.as;
1480
- },
1481
- set: function (a) {
1482
- var b = this.as;
1483
- this.ap = b;
1484
- this.as = a;
1485
- if (+b != +(this.as)) {
1486
- this.ct("Value", b, this.as);
1487
- }
1488
- },
1489
- enumerable: false,
1490
- configurable: true
1491
- });
1492
- Object.defineProperty(XCalendar.prototype, "av", {
1493
- get: function () {
1494
- return this.ar;
1495
- },
1496
- set: function (a) {
1497
- var b = this.ar;
1498
- this.ar = a;
1499
- if (+b != +(this.ar)) {
1500
- this.ct("Today", b, this.ar);
1501
- }
1502
- },
1503
- enumerable: false,
1504
- configurable: true
1505
- });
1506
- Object.defineProperty(XCalendar.prototype, "au", {
1507
- get: function () {
1508
- return this.ao;
1509
- },
1510
- set: function (a) {
1511
- var b = this.ao;
1512
- this.ao = a;
1513
- if (+b != +(this.ao)) {
1514
- this.ct("MinDate", b, this.ao);
1515
- }
1516
- },
1517
- enumerable: false,
1518
- configurable: true
1519
- });
1520
- Object.defineProperty(XCalendar.prototype, "at", {
1521
- get: function () {
1522
- return this.an;
1523
- },
1524
- set: function (a) {
1525
- var b = this.an;
1526
- this.an = a;
1527
- if (+b != +(this.an)) {
1528
- this.ct("MaxDate", b, this.an);
1529
- }
1530
- },
1531
- enumerable: false,
1532
- configurable: true
1533
- });
1534
- Object.defineProperty(XCalendar.prototype, "t", {
1535
- get: function () {
1536
- return this.s;
1537
- },
1538
- set: function (a) {
1539
- var b = this.s;
1540
- this.s = a;
1541
- if (b != this.s) {
1542
- this.ct("Density", enumGetBox(ControlDisplayDensity_$type, b), enumGetBox(ControlDisplayDensity_$type, this.s));
1543
- }
1544
- },
1545
- enumerable: false,
1546
- configurable: true
1547
- });
1548
- Object.defineProperty(XCalendar.prototype, "r", {
1549
- get: function () {
1550
- return this.q;
1551
- },
1552
- set: function (a) {
1553
- var b = this.q;
1554
- this.q = a;
1555
- if (b != this.q) {
1556
- this.ct("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, this.q));
1557
- }
1558
- },
1559
- enumerable: false,
1560
- configurable: true
1561
- });
1562
- Object.defineProperty(XCalendar.prototype, "dg", {
1563
- get: function () {
1564
- return this.c6;
1565
- },
1566
- set: function (a) {
1567
- var b = this.c6;
1568
- this.c6 = a;
1569
- if (b != this.c6) {
1570
- this.ct("BackgroundColor", b, this.c6);
1571
- }
1572
- },
1573
- enumerable: false,
1574
- configurable: true
1575
- });
1576
- Object.defineProperty(XCalendar.prototype, "dm", {
1577
- get: function () {
1578
- return this.dc;
1579
- },
1580
- set: function (a) {
1581
- var b = this.dc;
1582
- this.dc = a;
1583
- if (b != this.dc) {
1584
- this.ct("SelectedDateBackgroundColor", b, this.dc);
1585
- }
1586
- },
1587
- enumerable: false,
1588
- configurable: true
1589
- });
1590
- Object.defineProperty(XCalendar.prototype, "dp", {
1591
- get: function () {
1592
- return this.de;
1593
- },
1594
- set: function (a) {
1595
- var b = this.de;
1596
- this.de = a;
1597
- if (b != this.de) {
1598
- this.ct("SelectedFocusDateBackgroundColor", b, this.de);
1599
- }
1600
- },
1601
- enumerable: false,
1602
- configurable: true
1603
- });
1604
- Object.defineProperty(XCalendar.prototype, "dj", {
1605
- get: function () {
1606
- return this.c9;
1607
- },
1608
- set: function (a) {
1609
- var b = this.c9;
1610
- this.c9 = a;
1611
- if (b != this.c9) {
1612
- this.ct("FocusDateBackgroundColor", b, this.c9);
1613
- }
1614
- },
1615
- enumerable: false,
1616
- configurable: true
1617
- });
1618
- Object.defineProperty(XCalendar.prototype, "dl", {
1619
- get: function () {
1620
- return this.db;
1621
- },
1622
- set: function (a) {
1623
- var b = this.db;
1624
- this.db = a;
1625
- if (b != this.db) {
1626
- this.ct("HoverBackgroundColor", b, this.db);
1627
- }
1628
- },
1629
- enumerable: false,
1630
- configurable: true
1631
- });
1632
- Object.defineProperty(XCalendar.prototype, "dq", {
1633
- get: function () {
1634
- return this.df;
1635
- },
1636
- set: function (a) {
1637
- var b = this.df;
1638
- this.df = a;
1639
- if (b != this.df) {
1640
- this.ct("TextColor", b, this.df);
1641
- }
1642
- },
1643
- enumerable: false,
1644
- configurable: true
1645
- });
1646
- Object.defineProperty(XCalendar.prototype, "dn", {
1647
- get: function () {
1648
- return this.dd;
1649
- },
1650
- set: function (a) {
1651
- var b = this.dd;
1652
- this.dd = a;
1653
- if (b != this.dd) {
1654
- this.ct("SelectedDateTextColor", b, this.dd);
1655
- }
1656
- },
1657
- enumerable: false,
1658
- configurable: true
1659
- });
1660
- Object.defineProperty(XCalendar.prototype, "dk", {
1661
- get: function () {
1662
- return this.da;
1663
- },
1664
- set: function (a) {
1665
- var b = this.da;
1666
- this.da = a;
1667
- if (b != this.da) {
1668
- this.ct("FocusDateTextColor", b, this.da);
1669
- }
1670
- },
1671
- enumerable: false,
1672
- configurable: true
1673
- });
1674
- Object.defineProperty(XCalendar.prototype, "di", {
1675
- get: function () {
1676
- return this.c8;
1677
- },
1678
- set: function (a) {
1679
- var b = this.c8;
1680
- this.c8 = a;
1681
- if (b != this.c8) {
1682
- this.ct("CurrentDateTextColor", b, this.c8);
1683
- }
1684
- },
1685
- enumerable: false,
1686
- configurable: true
1687
- });
1688
- Object.defineProperty(XCalendar.prototype, "dh", {
1689
- get: function () {
1690
- return this.c7;
1691
- },
1692
- set: function (a) {
1693
- var b = this.c7;
1694
- this.c7 = a;
1695
- if (b != this.c7) {
1696
- this.ct("CurrentDateBorderColor", b, this.c7);
1697
- }
1698
- },
1699
- enumerable: false,
1700
- configurable: true
1701
- });
1702
- Object.defineProperty(XCalendar.prototype, "ae", {
1703
- get: function () {
1704
- return this.y;
1705
- },
1706
- set: function (a) {
1707
- var b = this.y;
1708
- this.y = a;
1709
- if (b != this.y) {
1710
- this.ct("ShowTodayButton", b, this.y);
1711
- }
1712
- },
1713
- enumerable: false,
1714
- configurable: true
1715
- });
1716
- Object.defineProperty(XCalendar.prototype, "v", {
1717
- get: function () {
1718
- return this.u;
1719
- },
1720
- set: function (a) {
1721
- var b = this.u;
1722
- this.u = a;
1723
- if (b != this.u) {
1724
- this.ct("TextStyle", b, this.u);
1725
- }
1726
- },
1727
- enumerable: false,
1728
- configurable: true
1729
- });
1730
- Object.defineProperty(XCalendar.prototype, "l", {
1731
- get: function () {
1732
- return this.k;
1733
- },
1734
- set: function (a) {
1735
- var b = this.k;
1736
- this.k = a;
1737
- if (b != this.k) {
1738
- this.ct("FirstDayOfWeek", enumGetBox(DayOfWeek_$type, b), enumGetBox(DayOfWeek_$type, this.k));
1739
- }
1740
- },
1741
- enumerable: false,
1742
- configurable: true
1743
- });
1744
- Object.defineProperty(XCalendar.prototype, "o", {
1745
- get: function () {
1746
- return this.n;
1747
- },
1748
- set: function (a) {
1749
- var b = this.n;
1750
- this.n = a;
1751
- if (b != this.n) {
1752
- this.ct("FirstWeekOfYear", enumGetBox(FirstWeek_$type, b), enumGetBox(FirstWeek_$type, this.n));
1753
- }
1754
- },
1755
- enumerable: false,
1756
- configurable: true
1757
- });
1758
- Object.defineProperty(XCalendar.prototype, "af", {
1759
- get: function () {
1760
- return this.z;
1761
- },
1762
- set: function (a) {
1763
- var b = this.z;
1764
- this.z = a;
1765
- if (b != this.z) {
1766
- this.ct("ShowWeekNumbers", b, this.z);
1767
- }
1768
- },
1769
- enumerable: false,
1770
- configurable: true
1771
- });
1772
- XCalendar.prototype.ct = function (a, b, c) {
1773
- if (this.propertyChanged != null) {
1774
- this.propertyChanged(this, new PropertyChangedEventArgs(a));
1775
- }
1776
- this.cv(a, b, c);
1777
- };
1778
- XCalendar.prototype.cv = function (a, b, c) {
1779
- switch (a) {
1780
- case "Density":
1781
- this.c0();
1782
- break;
1783
- case "BaseTheme":
1784
- this.c1();
1785
- break;
1786
- case "Value":
1787
- if (+(this.value) != +(dateMinValue())) {
1788
- if (dateGetDate(this.value) < dateGetDate(this.au) || dateGetDate(this.value) > dateGetDate(this.at)) {
1789
- this.value = this.ap;
1790
- }
1791
- }
1792
- this.ap = this.value;
1793
- if (+(this.value) != +(dateMinValue())) {
1794
- this.aq = this.value;
1795
- }
1796
- this.cx();
1797
- break;
1798
- case "Today":
1799
- var d = Base.compareSimple(this.av, this.au);
1800
- var e = Base.compareSimple(this.av, this.at);
1801
- if (d < 0) {
1802
- this.ar = this.au;
1803
- }
1804
- else if (e > 0) {
1805
- this.ar = this.at;
1806
- }
1807
- if (+(this.value) == +(dateMinValue())) {
1808
- this.aq = this.av;
1809
- }
1810
- this.cx();
1811
- break;
1812
- case "MaxDate":
1813
- case "MinDate":
1814
- var f = Base.compareSimple(this.au, this.at);
1815
- if (f >= 0) {
1816
- this.at = dateMaxValue();
1817
- }
1818
- var g = Base.compareSimple(this.aq, this.au);
1819
- var h = Base.compareSimple(this.aq, this.at);
1820
- if (g < 0) {
1821
- this.aq = this.au;
1822
- }
1823
- else if (h > 0) {
1824
- this.aq = this.at;
1825
- }
1826
- this.cx();
1827
- break;
1828
- case "TextColor":
1829
- case "SelectedDateTextColor":
1830
- case "FocusDateTextColor":
1831
- case "CurrentDateTextColor":
1832
- case "CurrentDateBorderColor":
1833
- case "BackgroundColor":
1834
- case "FocusDateBackgroundColor":
1835
- case "SelectedFocusDateBackgroundColor":
1836
- case "SelectedDateBackgroundColor":
1837
- case "HoverBackgroundColor":
1838
- this.c3();
1839
- break;
1840
- case "TextStyle":
1841
- this.c4();
1842
- break;
1843
- case "ShowTodayButton":
1844
- this.h.a8();
1845
- break;
1846
- case "FirstDayOfWeek":
1847
- this.cx();
1848
- break;
1849
- case "FirstWeekOfYear":
1850
- case "ShowWeekNumbers":
1851
- this.h.a9();
1852
- this.cx();
1853
- break;
1854
- }
1855
- };
1856
- XCalendar.prototype.c3 = function () {
1857
- for (var a = 0; a < this.aj.count; a++) {
1858
- if (this.dq != null) {
1859
- this.aj._inner[a].qi = this.dq;
1860
- }
1861
- if (this.dk != null) {
1862
- this.aj._inner[a].qe = this.dk;
1863
- }
1864
- if (this.dg != null) {
1865
- this.aj._inner[a].p8 = this.dg;
1866
- }
1867
- if (this.dj != null) {
1868
- this.aj._inner[a].qd = this.dj;
1869
- }
1870
- if (this.dl != null) {
1871
- this.aj._inner[a].qf = this.dl;
1872
- }
1873
- }
1874
- for (var b = 0; b < this.ah.count; b++) {
1875
- if (this.dq != null) {
1876
- this.ah._inner[b].qi = this.dq;
1877
- }
1878
- if (this.dk != null) {
1879
- this.ah._inner[b].qe = this.dk;
1880
- }
1881
- if (this.dg != null) {
1882
- this.ah._inner[b].p8 = this.dg;
1883
- }
1884
- if (this.dj != null) {
1885
- this.ah._inner[b].qd = this.dj;
1886
- }
1887
- if (this.dl != null) {
1888
- this.ah._inner[b].qf = this.dl;
1889
- }
1890
- }
1891
- for (var c = 0; c < this.ak.count; c++) {
1892
- if (this.dq != null) {
1893
- this.ak._inner[c].qi = this.dq;
1894
- }
1895
- if (this.dk != null) {
1896
- this.ak._inner[c].qe = this.dk;
1897
- }
1898
- if (this.dg != null) {
1899
- this.ak._inner[c].p8 = this.dg;
1900
- }
1901
- if (this.dj != null) {
1902
- this.ak._inner[c].qd = this.dj;
1903
- }
1904
- if (this.dl != null) {
1905
- this.ak._inner[c].qf = this.dl;
1906
- }
1907
- }
1908
- for (var d = 0; d < this.al.count; d++) {
1909
- if (this.dq != null) {
1910
- this.al._inner[d].qi = this.dq;
1911
- }
1912
- if (this.dk != null) {
1913
- this.al._inner[d].qe = this.dk;
1914
- }
1915
- if (this.dg != null) {
1916
- this.al._inner[d].p8 = this.dg;
1917
- }
1918
- if (this.dj != null) {
1919
- this.al._inner[d].qd = this.dj;
1920
- }
1921
- if (this.dl != null) {
1922
- this.al._inner[d].qf = this.dl;
1923
- }
1924
- }
1925
- };
1926
- XCalendar.prototype.c4 = function () {
1927
- for (var a = 0; a < this.aj.count; a++) {
1928
- if (this.u != null) {
1929
- this.aj._inner[a].ab = this.u;
1930
- }
1931
- }
1932
- for (var b = 0; b < this.ah.count; b++) {
1933
- if (this.u != null) {
1934
- this.ah._inner[b].ab = this.u;
1935
- }
1936
- }
1937
- for (var c = 0; c < this.ak.count; c++) {
1938
- if (this.u != null) {
1939
- this.ak._inner[c].ab = this.u;
1940
- }
1941
- }
1942
- for (var d = 0; d < this.al.count; d++) {
1943
- if (this.u != null) {
1944
- this.al._inner[d].ab = this.u;
1945
- }
1946
- }
1947
- };
1948
- XCalendar.prototype.cq = function () {
1949
- this.cx();
1950
- this.h.av();
1951
- this.h.ai();
1952
- };
1953
- XCalendar.prototype.c1 = function () {
1954
- };
1955
- XCalendar.prototype.c0 = function () {
1956
- };
1957
- XCalendar.prototype.ch = function () {
1958
- this.value = dateMinValue();
1959
- this.h.au();
1960
- };
1961
- XCalendar.prototype.cx = function () {
1962
- this.c5();
1963
- this.h.a4();
1964
- this.cg();
1965
- this.h.az();
1966
- this.h.a7();
1967
- this.h.au();
1968
- };
1969
- XCalendar.prototype.c5 = function () {
1970
- var a = !stringIsNullOrWhiteSpace(this.x.b1("Today")) ? this.x.b1("Today") : "Today";
1971
- this.h.a0(a);
1972
- this.h.bd();
1973
- this.h.bc();
1974
- };
1975
- XCalendar.prototype.cf = function () {
1976
- this.cg();
1977
- };
1978
- XCalendar.prototype.ci = function (a, b, c) {
1979
- var d = new XButton();
1980
- this.h.at(a, d);
1981
- d.o = this.r;
1982
- d.s = this.t;
1983
- d.ab = this.u;
1984
- d.d8 = -1;
1985
- d.e = 1;
1986
- if (this.u != null) {
1987
- d.ab = this.u;
1988
- }
1989
- var e = new CornerRadius(0, 2);
1990
- d.k6 = e;
1991
- d.ld = e;
1992
- d.dq = 0;
1993
- d.appendButtonContent(b);
1994
- d.qi = this.dq;
1995
- d.qe = this.dk;
1996
- d.p8 = this.dg;
1997
- d.qd = this.dj;
1998
- d.qf = this.dl;
1999
- d.bz = 30;
2000
- d.by = 30;
2001
- this.ah.add(d);
2002
- d.h7 = "btnDays" + c.toString();
2003
- };
2004
- XCalendar.prototype.cm = function (a, b) {
2005
- var c = new XButton();
2006
- this.h.at(a, c);
2007
- c.o = this.r;
2008
- c.s = this.t;
2009
- c.ab = this.u;
2010
- c.d8 = -1;
2011
- c.e = 1;
2012
- if (this.u != null) {
2013
- c.ab = this.u;
2014
- }
2015
- var d = new CornerRadius(0, 2);
2016
- c.k6 = d;
2017
- c.ld = d;
2018
- c.dq = 0;
2019
- c.appendButtonContent(b);
2020
- var e = !stringIsNullOrWhiteSpace(this.x.b1("Today")) ? this.x.b1("Today") : "Today";
2021
- this.h.a0(e);
2022
- c.qi = this.dq;
2023
- c.qe = this.dk;
2024
- c.p8 = this.dg;
2025
- c.qd = this.dj;
2026
- c.qf = this.dl;
2027
- this.g = c;
2028
- var f = this.g;
2029
- f.clicked = delegateCombine(f.clicked, runOn(this, this.c2));
2030
- };
2031
- XCalendar.prototype.c2 = function (a, b) {
2032
- this.aq = this.av;
2033
- this.cg();
2034
- this.h.as(true);
2035
- };
2036
- XCalendar.prototype.cl = function (a, b) {
2037
- var c = new XButton();
2038
- this.h.at(a, c);
2039
- c.o = this.r;
2040
- c.s = this.t;
2041
- c.ab = this.u;
2042
- c.d8 = -1;
2043
- c.e = 1;
2044
- if (this.u != null) {
2045
- c.ab = this.u;
2046
- }
2047
- var d = new CornerRadius(0, 2);
2048
- c.k6 = d;
2049
- c.ld = d;
2050
- c.dq = 0;
2051
- c.appendButtonContent(b);
2052
- c.qi = this.dq;
2053
- c.qe = this.dk;
2054
- c.p8 = this.dg;
2055
- c.qd = this.dj;
2056
- c.qf = this.dl;
2057
- c.bz = 40;
2058
- this.ak.add(c);
2059
- };
2060
- XCalendar.prototype.e = function (a, b) {
2061
- var c = new Array(2);
2062
- c[0] = "";
2063
- c[1] = "";
2064
- switch (a) {
2065
- case 1:
2066
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("January_Full")) ? this.x.b1("January_Full") : "January";
2067
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("January_Short")) ? this.x.b1("January_Short") : "Jan";
2068
- break;
2069
- case 2:
2070
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("February_Full")) ? this.x.b1("February_Full") : "February";
2071
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("February_Short")) ? this.x.b1("February_Short") : "Feb";
2072
- break;
2073
- case 3:
2074
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("March_Full")) ? this.x.b1("March_Full") : "March";
2075
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("March_Short")) ? this.x.b1("March_Short") : "Mar";
2076
- break;
2077
- case 4:
2078
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("April_Full")) ? this.x.b1("April_Full") : "April";
2079
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("April_Short")) ? this.x.b1("April_Short") : "Apr";
2080
- break;
2081
- case 5:
2082
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("May_Full")) ? this.x.b1("May_Full") : "May";
2083
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("May_Short")) ? this.x.b1("May_Short") : "May";
2084
- break;
2085
- case 6:
2086
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("June_Full")) ? this.x.b1("June_Full") : "June";
2087
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("June_Short")) ? this.x.b1("June_Short") : "Jun";
2088
- break;
2089
- case 7:
2090
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("July_Full")) ? this.x.b1("July_Full") : "July";
2091
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("July_Short")) ? this.x.b1("July_Short") : "Jul";
2092
- break;
2093
- case 8:
2094
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("August_Full")) ? this.x.b1("August_Full") : "August";
2095
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("August_Short")) ? this.x.b1("August_Short") : "Aug";
2096
- break;
2097
- case 9:
2098
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("September_Full")) ? this.x.b1("September_Full") : "September";
2099
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("September_Short")) ? this.x.b1("September_Short") : "Sep";
2100
- break;
2101
- case 10:
2102
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("October_Full")) ? this.x.b1("October_Full") : "October";
2103
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("October_Short")) ? this.x.b1("October_Short") : "Oct";
2104
- break;
2105
- case 11:
2106
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("November_Full")) ? this.x.b1("November_Full") : "November";
2107
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("November_Short")) ? this.x.b1("November_Short") : "Nov";
2108
- break;
2109
- case 12:
2110
- c[0] = !stringIsNullOrWhiteSpace(this.x.b1("December_Full")) ? this.x.b1("December_Full") : "December";
2111
- c[1] = !stringIsNullOrWhiteSpace(this.x.b1("December_Short")) ? this.x.b1("December_Short") : "Dec";
2112
- break;
2113
- }
2114
- this.ak._inner[b].h7 = "btnMonth" + c[1];
2115
- return c;
2116
- };
2117
- XCalendar.prototype.cn = function (a, b, c) {
2118
- var d = new XButton();
2119
- this.h.at(a, d);
2120
- d.o = this.r;
2121
- d.s = this.t;
2122
- d.ab = this.u;
2123
- d.d8 = -1;
2124
- d.e = 1;
2125
- if (this.u != null) {
2126
- d.ab = this.u;
2127
- }
2128
- var e = new CornerRadius(0, 2);
2129
- d.k6 = e;
2130
- d.ld = e;
2131
- d.dq = 0;
2132
- d.appendButtonContent(b);
2133
- d.qi = this.dq;
2134
- d.qe = this.dk;
2135
- d.p8 = this.dg;
2136
- d.qd = this.dj;
2137
- d.qf = this.dl;
2138
- d.h7 = "btnYear" + c.toString();
2139
- this.al.add(d);
2140
- };
2141
- XCalendar.prototype.cg = function () {
2142
- if (+(this.aq) == +(dateMinValue())) {
2143
- this.aq = dateNow();
2144
- }
2145
- this.ai.clear();
2146
- var a = dateAddDays(this.aq, -(this.aq.getDate() - 1));
2147
- var b = this.l;
2148
- var c = a.getDay();
2149
- while (c != b) {
2150
- a = dateAddDays(a, -1);
2151
- c = a.getDay();
2152
- }
2153
- while (this.ai.count < 42) {
2154
- var d = new DayInfo();
2155
- d.b = a.getDate();
2156
- d.c = dateGetMonth(a);
2157
- d.d = a.getFullYear();
2158
- d.a = a.getDay();
2159
- this.ai.add(d);
2160
- a = dateAddDays(a, 1);
2161
- }
2162
- };
2163
- XCalendar.prototype.ag = function () {
2164
- var a = new List$1(Number_$type, 0);
2165
- if (this.af == false) {
2166
- for (var b = 0; b < 6; b++) {
2167
- a.add(b);
2168
- }
2169
- return a;
2170
- }
2171
- var c = dateFromValues(this.aq.getFullYear(), dateGetMonth(this.aq), 1, 0, 0, 0, 0);
2172
- for (var d = 0; d < 6; d++) {
2173
- var e = 0;
2174
- if (this.o == 2) {
2175
- e = this.ba(c, this.o, this.l);
2176
- }
2177
- else {
2178
- e = this.ba(c, this.o, this.l);
2179
- }
2180
- if (this.o == 0 || this.o == 2) {
2181
- if (e == 2 && a._inner[d - 1] == 53) {
2182
- var f = c;
2183
- for (var g = 0; g < 6; g++) {
2184
- if (f.getDay() == this.l) {
2185
- if (f.getDate() > 1) {
2186
- a._inner[d - 1] = 1;
2187
- }
2188
- else {
2189
- e = 1;
2190
- }
2191
- }
2192
- else if (f.getDay() < this.l) {
2193
- f = dateAddDays(f, 1);
2194
- }
2195
- else if (f.getDay() > this.l) {
2196
- f = dateAddDays(f, -1);
2197
- }
2198
- }
2199
- }
2200
- }
2201
- a.add(e);
2202
- c = dateAddDays(c, 7);
2203
- }
2204
- return a;
2205
- };
2206
- XCalendar.prototype.a9 = function (a) {
2207
- var b = dateAddMonths(dateAddDays(a, -a.getDate() + 1), -dateGetMonth(a) + 1);
2208
- var c = dateAddDays(dateAddYears(b, 1), -1);
2209
- var d = [6, 7, 8, 9, 10, 4, 5];
2210
- var e = truncate(timeSpanTotalDays((+a - +b)));
2211
- var f = e + d[b.getDay()];
2212
- var g = intDivide(f, 7);
2213
- switch (g) {
2214
- case 0: return this.a9(dateAddDays(b, -1));
2215
- case 53: if (c.getDay() < 4) {
2216
- return 1;
2217
- }
2218
- else {
2219
- return g;
2220
- }
2221
- default: return g;
2222
- }
2223
- };
2224
- XCalendar.prototype.ba = function (a, b, c) {
2225
- if (c < 0 || c > 6) {
2226
- return -1;
2227
- }
2228
- switch (b) {
2229
- case 0: return (this.a8(a, c));
2230
- case 1: return (this.bb(a, c, 7));
2231
- case 2: return (this.bb(a, c, 4));
2232
- }
2233
- return -1;
2234
- };
2235
- XCalendar.prototype.a8 = function (a, b) {
2236
- var c = this.a7(a) - 1;
2237
- var d = a.getDay();
2238
- var e = d - (c % 7);
2239
- var f = (e - b + 14) % 7;
2240
- return (intDivide((c + f), 7) + 1);
2241
- };
2242
- XCalendar.prototype.bb = function (a, b, c) {
2243
- var d;
2244
- var e;
2245
- var f;
2246
- var g = this.a7(a) - 1;
2247
- var h = a.getDay();
2248
- d = h - (g % 7);
2249
- e = (b - d + 14) % 7;
2250
- if (e != 0 && e >= c) {
2251
- e -= 7;
2252
- }
2253
- f = g - e;
2254
- if (f >= 0) {
2255
- return (intDivide(f, 7) + 1);
2256
- }
2257
- if (a <= dateAddDays(this.au, g)) {
2258
- return this.bc(b, c);
2259
- }
2260
- return (this.bb(dateAddDays(a, -(g + 1)), b, c));
2261
- };
2262
- XCalendar.prototype.bc = function (a, b) {
2263
- var c = this.a7(this.au) - 1;
2264
- var d = this.m(this.au) - c % 7;
2265
- var e = (a + 7 - d) % 7;
2266
- if (e == 0 || e >= b) {
2267
- return 1;
2268
- }
2269
- var f = 365 - 1;
2270
- var g = d - 1 - (f % 7);
2271
- var h = (a - g + 14) % 7;
2272
- var i = f - h;
2273
- if (h >= b) {
2274
- i += 7;
2275
- }
2276
- return (intDivide(i, 7) + 1);
2277
- };
2278
- XCalendar.prototype.a7 = function (a) {
2279
- return this.a6(a, 1);
2280
- };
2281
- XCalendar.prototype.m = function (a) {
2282
- return ((intDivide(a.getTime(), 0xC92A69C000) + 1) % 7);
2283
- };
2284
- XCalendar.prototype.a6 = function (a, b) {
2285
- var c = this.bd(a.getFullYear(), dateGetMonth(a), a.getDate());
2286
- var d = (intDivide(c, 0xC92A69C000));
2287
- var e = intDivide(d, 146097);
2288
- d -= e * 146097;
2289
- var f = intDivide(d, 36524);
2290
- if (f == 4) {
2291
- f = 3;
2292
- }
2293
- d -= f * 36524;
2294
- var g = intDivide(d, 1461);
2295
- d -= g * 1461;
2296
- var h = intDivide(d, 365);
2297
- if (h == 4) {
2298
- h = 3;
2299
- }
2300
- if (b == 0) {
2301
- return e * 400 + f * 100 + g * 4 + h + 1;
2302
- }
2303
- d -= h * 365;
2304
- if (b == 1) {
2305
- return d + 1;
2306
- }
2307
- var i = h == 3 && (g != 24 || f == 3);
2308
- var j = i ? XCalendar.c : XCalendar.b;
2309
- var k = d >> 5 + 1;
2310
- while (d >= j[k]) {
2311
- k++;
2312
- }
2313
- if (b == 2) {
2314
- return k;
2315
- }
2316
- return d - j[k - 1] + 1;
2317
- };
2318
- XCalendar.prototype.bd = function (a, b, c) {
2319
- if (a >= 1 && a <= 9999 && b >= 1 && b <= 12) {
2320
- var d = XCalendar.ac(a) ? XCalendar.c : XCalendar.b;
2321
- if (c >= 1 && c <= d[b] - d[b - 1]) {
2322
- var e = a - 1;
2323
- var f = e * 365 + intDivide(e, 4) - intDivide(e, 100) + intDivide(e, 400) + d[b - 1] + c - 1;
2324
- return f * 0xC92A69C000;
2325
- }
2326
- }
2327
- return -1;
2328
- };
2329
- XCalendar.ac = function (a) {
2330
- return a % 4 == 0 && (a % 100 != 0 || a % 400 == 0);
2331
- };
2332
- XCalendar.prototype.ck = function (a, b, c, d) {
2333
- var e = new XButton();
2334
- this.h.at(a, e);
2335
- e.o = this.r;
2336
- e.s = this.t;
2337
- e.ab = this.u;
2338
- e.d8 = -1;
2339
- e.e = 1;
2340
- var f = new CornerRadius(0, 2);
2341
- e.k6 = f;
2342
- e.ld = f;
2343
- e.dq = 0;
2344
- var g = new XIcon();
2345
- this.h.ax(b, g);
2346
- if (d == "prev") {
2347
- g.svgPath = XCalendar.bk;
2348
- e.h7 = "btnPrev";
2349
- }
2350
- else if (d == "next") {
2351
- g.svgPath = XCalendar.bl;
2352
- e.h7 = "btnNext";
2353
- }
2354
- e.appendButtonContent(c);
2355
- e.qi = this.dq;
2356
- e.qe = this.dk;
2357
- e.p8 = this.dg;
2358
- e.qd = this.dj;
2359
- e.qf = this.dl;
2360
- e.bz = 28;
2361
- e.by = 28;
2362
- this.aj.add(e);
2363
- };
2364
- XCalendar.prototype.cj = function (a, b, c) {
2365
- var d = new XButton();
2366
- this.h.at(a, d);
2367
- d.o = this.r;
2368
- d.s = this.t;
2369
- d.ab = this.u;
2370
- d.d8 = -1;
2371
- d.e = 1;
2372
- if (this.u != null) {
2373
- d.ab = this.u;
2374
- }
2375
- var e = new CornerRadius(0, 2);
2376
- d.k6 = e;
2377
- d.ld = e;
2378
- d.dq = 0;
2379
- d.appendButtonContent(b);
2380
- d.qi = this.dq;
2381
- d.qe = this.dk;
2382
- d.p8 = this.dg;
2383
- d.qd = this.dj;
2384
- d.qf = this.dl;
2385
- d.bz = 40;
2386
- if (c == "month") {
2387
- d.h7 = "btnMonth";
2388
- }
2389
- else if (c == "year") {
2390
- d.h7 = "btnYear";
2391
- }
2392
- this.aj.add(d);
2393
- };
2394
- XCalendar.prototype.a = function () {
2395
- var a = new Array(4);
2396
- a[0] = false;
2397
- a[1] = false;
2398
- a[2] = false;
2399
- a[3] = false;
2400
- var b = this.aq.getFullYear();
2401
- var c = dateGetMonth(this.aq);
2402
- if (b == this.au.getFullYear() && b == this.at.getFullYear()) {
2403
- this.aj._inner[2].disabled = true;
2404
- if (c == dateGetMonth(this.au) && c == dateGetMonth(this.at)) {
2405
- this.aj._inner[0].disabled = true;
2406
- this.aj._inner[1].disabled = true;
2407
- this.aj._inner[3].disabled = true;
2408
- }
2409
- else if (c == dateGetMonth(this.au)) {
2410
- this.aj._inner[0].disabled = true;
2411
- this.aj._inner[1].disabled = false;
2412
- this.aj._inner[3].disabled = false;
2413
- }
2414
- else if (c == dateGetMonth(this.at)) {
2415
- this.aj._inner[0].disabled = false;
2416
- this.aj._inner[1].disabled = false;
2417
- this.aj._inner[3].disabled = true;
2418
- }
2419
- else {
2420
- this.aj._inner[0].disabled = false;
2421
- this.aj._inner[1].disabled = false;
2422
- this.aj._inner[3].disabled = false;
2423
- }
2424
- }
2425
- else {
2426
- this.aj._inner[0].disabled = false;
2427
- this.aj._inner[2].disabled = false;
2428
- this.aj._inner[3].disabled = false;
2429
- if (b == this.au.getFullYear()) {
2430
- if (c == dateGetMonth(this.au)) {
2431
- this.aj._inner[0].disabled = true;
2432
- this.aj._inner[1].disabled = false;
2433
- this.aj._inner[3].disabled = false;
2434
- }
2435
- else {
2436
- this.aj._inner[0].disabled = false;
2437
- this.aj._inner[1].disabled = false;
2438
- this.aj._inner[3].disabled = false;
2439
- }
2440
- }
2441
- else if (b == this.at.getFullYear()) {
2442
- if (c == dateGetMonth(this.at)) {
2443
- this.aj._inner[0].disabled = false;
2444
- this.aj._inner[1].disabled = false;
2445
- this.aj._inner[3].disabled = true;
2446
- }
2447
- else {
2448
- this.aj._inner[0].disabled = false;
2449
- this.aj._inner[1].disabled = false;
2450
- this.aj._inner[3].disabled = false;
2451
- }
2452
- }
2453
- else if (b > this.at.getFullYear() || b < this.au.getFullYear()) {
2454
- this.aj._inner[0].disabled = true;
2455
- this.aj._inner[1].disabled = true;
2456
- this.aj._inner[3].disabled = true;
2457
- }
2458
- }
2459
- for (var d = 0; d < this.aj.count; d++) {
2460
- a[d] = this.aj._inner[d].disabled;
2461
- }
2462
- return a;
2463
- };
2464
- XCalendar.prototype.bx = function () {
2465
- var a = dateGetMonth(this.aq);
2466
- var b = "";
2467
- switch (a) {
2468
- case 1:
2469
- b = !stringIsNullOrWhiteSpace(this.x.b1("January_Short")) ? this.x.b1("January_Short") : "Jan";
2470
- break;
2471
- case 2:
2472
- b = !stringIsNullOrWhiteSpace(this.x.b1("February_Short")) ? this.x.b1("February_Short") : "Feb";
2473
- break;
2474
- case 3:
2475
- b = !stringIsNullOrWhiteSpace(this.x.b1("March_Short")) ? this.x.b1("March_Short") : "Mar";
2476
- break;
2477
- case 4:
2478
- b = !stringIsNullOrWhiteSpace(this.x.b1("April_Short")) ? this.x.b1("April_Short") : "Apr";
2479
- break;
2480
- case 5:
2481
- b = !stringIsNullOrWhiteSpace(this.x.b1("May_Short")) ? this.x.b1("May_Short") : "May";
2482
- break;
2483
- case 6:
2484
- b = !stringIsNullOrWhiteSpace(this.x.b1("June_Short")) ? this.x.b1("June_Short") : "Jun";
2485
- break;
2486
- case 7:
2487
- b = !stringIsNullOrWhiteSpace(this.x.b1("July_Short")) ? this.x.b1("July_Short") : "Jul";
2488
- break;
2489
- case 8:
2490
- b = !stringIsNullOrWhiteSpace(this.x.b1("August_Short")) ? this.x.b1("August_Short") : "Aug";
2491
- break;
2492
- case 9:
2493
- b = !stringIsNullOrWhiteSpace(this.x.b1("September_Short")) ? this.x.b1("September_Short") : "Sep";
2494
- break;
2495
- case 10:
2496
- b = !stringIsNullOrWhiteSpace(this.x.b1("October_Short")) ? this.x.b1("October_Short") : "Oct";
2497
- break;
2498
- case 11:
2499
- b = !stringIsNullOrWhiteSpace(this.x.b1("November_Short")) ? this.x.b1("November_Short") : "Nov";
2500
- break;
2501
- case 12:
2502
- b = !stringIsNullOrWhiteSpace(this.x.b1("December_Short")) ? this.x.b1("December_Short") : "Dec";
2503
- break;
2504
- }
2505
- return b;
2506
- };
2507
- XCalendar.prototype.by = function () {
2508
- var a = this.aq.getFullYear().toString();
2509
- return a;
2510
- };
2511
- XCalendar.prototype.d = function (a) {
2512
- var b = new Array(2);
2513
- b[0] = "";
2514
- b[1] = "";
2515
- if (a == 0) {
2516
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Sunday_Full")) ? this.x.b1("Sunday_Full") : "Sunday";
2517
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Sunday_Single")) ? this.x.b1("Sunday_Single") : "S";
2518
- }
2519
- else if (a == 1) {
2520
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Monday_Full")) ? this.x.b1("Monday_Full") : "Monday";
2521
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Monday_Single")) ? this.x.b1("Monday_Single") : "M";
2522
- }
2523
- else if (a == 2) {
2524
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Tuesday_Full")) ? this.x.b1("Tuesday_Full") : "Tuesday";
2525
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Tuesday_Single")) ? this.x.b1("Tuesday_Single") : "T";
2526
- }
2527
- else if (a == 3) {
2528
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Wednesday_Full")) ? this.x.b1("Wednesday_Full") : "Wednesday";
2529
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Wednesday_Single")) ? this.x.b1("Wednesday_Single") : "W";
2530
- }
2531
- else if (a == 4) {
2532
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Thursday_Full")) ? this.x.b1("Thursday_Full") : "Thursday";
2533
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Thursday_Single")) ? this.x.b1("Thursday_Single") : "T";
2534
- }
2535
- else if (a == 5) {
2536
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Friday_Full")) ? this.x.b1("Friday_Full") : "Friday";
2537
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Friday_Single")) ? this.x.b1("Friday_Single") : "F";
2538
- }
2539
- else if (a == 6) {
2540
- b[0] = !stringIsNullOrWhiteSpace(this.x.b1("Saturday_Full")) ? this.x.b1("Saturday_Full") : "Saturday";
2541
- b[1] = !stringIsNullOrWhiteSpace(this.x.b1("Saturday_Single")) ? this.x.b1("Saturday_Single") : "S";
2542
- }
2543
- return b;
2544
- };
2545
- XCalendar.prototype.j = function (a) {
2546
- return this.ai._inner[a];
2547
- };
2548
- XCalendar.prototype.ad = function (a) {
2549
- var b = this.ai._inner[a];
2550
- var c = this.ah._inner[a];
2551
- if (+(this.value) != +(dateMinValue()) && b.b == this.value.getDate() && b.c == dateGetMonth(this.value) && b.d == this.value.getFullYear()) {
2552
- c.qi = this.dn;
2553
- c.qe = this.dn;
2554
- c.p8 = this.dm;
2555
- c.qd = this.dp;
2556
- c.p9 = this.dg;
2557
- }
2558
- else if (b.b == this.av.getDate() && b.c == dateGetMonth(this.av) && b.d == this.av.getFullYear()) {
2559
- c.qi = this.di;
2560
- ;
2561
- c.qe = this.dk;
2562
- c.p8 = this.dg;
2563
- c.qd = this.dj;
2564
- c.p9 = this.dh;
2565
- c.bw = 1;
2566
- }
2567
- else if (b.a != 0 && b.a != 6 && b.c == dateGetMonth(this.aq)) {
2568
- c.qi = this.dq;
2569
- c.qe = this.dk;
2570
- c.p8 = this.dg;
2571
- c.qd = this.dj;
2572
- c.p9 = this.dg;
2573
- }
2574
- else {
2575
- c.qi = this.dq;
2576
- c.qe = this.dk;
2577
- c.p8 = this.dg;
2578
- c.qd = this.dj;
2579
- c.p9 = this.dg;
2580
- }
2581
- if (b.d >= this.au.getFullYear() && b.d <= this.at.getFullYear()) {
2582
- if (b.d == this.au.getFullYear() && b.d == this.at.getFullYear()) {
2583
- if (b.c == dateGetMonth(this.au) && b.c == dateGetMonth(this.at)) {
2584
- if (b.b >= this.au.getDate() && b.b <= this.at.getDate()) {
2585
- c.disabled = false;
2586
- }
2587
- else {
2588
- c.disabled = true;
2589
- }
2590
- }
2591
- else if (b.c >= dateGetMonth(this.au) && b.c <= dateGetMonth(this.at)) {
2592
- if (b.c == dateGetMonth(this.au)) {
2593
- if (b.b >= this.au.getDate()) {
2594
- c.disabled = false;
2595
- }
2596
- else {
2597
- c.disabled = true;
2598
- }
2599
- }
2600
- else if (b.c == dateGetMonth(this.at)) {
2601
- if (b.b <= this.at.getDate()) {
2602
- c.disabled = false;
2603
- }
2604
- else {
2605
- c.disabled = true;
2606
- }
2607
- }
2608
- else {
2609
- c.disabled = false;
2610
- }
2611
- }
2612
- else {
2613
- c.disabled = true;
2614
- }
2615
- }
2616
- else {
2617
- if (b.d == this.au.getFullYear()) {
2618
- if (b.c >= dateGetMonth(this.au)) {
2619
- if (b.c == dateGetMonth(this.au)) {
2620
- if (b.b >= this.au.getDate()) {
2621
- c.disabled = false;
2622
- }
2623
- else {
2624
- c.disabled = true;
2625
- }
2626
- }
2627
- else {
2628
- c.disabled = false;
2629
- }
2630
- }
2631
- else {
2632
- c.disabled = true;
2633
- }
2634
- }
2635
- else if (b.d == this.at.getFullYear()) {
2636
- if (b.c <= dateGetMonth(this.at)) {
2637
- if (b.c == dateGetMonth(this.at)) {
2638
- if (b.b <= this.at.getDate()) {
2639
- c.disabled = false;
2640
- }
2641
- else {
2642
- c.disabled = true;
2643
- }
2644
- }
2645
- else {
2646
- c.disabled = false;
2647
- }
2648
- }
2649
- else {
2650
- c.disabled = true;
2651
- }
2652
- }
2653
- else {
2654
- c.disabled = false;
2655
- }
2656
- }
2657
- }
2658
- else {
2659
- c.disabled = true;
2660
- }
2661
- return c.disabled;
2662
- };
2663
- XCalendar.prototype.aa = function (a, b) {
2664
- if (this.aq.getFullYear() >= this.au.getFullYear() && this.aq.getFullYear() <= this.at.getFullYear()) {
2665
- if (this.aq.getFullYear() == this.au.getFullYear() && this.aq.getFullYear() == this.at.getFullYear()) {
2666
- if (b < dateGetMonth(this.au) || b > dateGetMonth(this.at)) {
2667
- this.ak._inner[a].disabled = true;
2668
- }
2669
- else {
2670
- this.ak._inner[a].disabled = false;
2671
- }
2672
- }
2673
- else if (this.aq.getFullYear() == this.au.getFullYear()) {
2674
- if (b < dateGetMonth(this.au)) {
2675
- this.ak._inner[a].disabled = true;
2676
- }
2677
- else {
2678
- this.ak._inner[a].disabled = false;
2679
- }
2680
- }
2681
- else if (this.aq.getFullYear() == this.at.getFullYear()) {
2682
- if (b > dateGetMonth(this.at)) {
2683
- this.ak._inner[a].disabled = true;
2684
- }
2685
- else {
2686
- this.ak._inner[a].disabled = false;
2687
- }
2688
- }
2689
- else {
2690
- this.ak._inner[a].disabled = false;
2691
- }
2692
- }
2693
- else {
2694
- this.ak._inner[a].disabled = true;
2695
- }
2696
- return this.ak._inner[a].disabled;
2697
- };
2698
- XCalendar.prototype.ab = function (a, b) {
2699
- if (b < this.au.getFullYear() || b > this.at.getFullYear()) {
2700
- this.al._inner[a].disabled = true;
2701
- }
2702
- else {
2703
- this.al._inner[a].disabled = false;
2704
- }
2705
- return this.al._inner[a].disabled;
2706
- };
2707
- XCalendar.prototype.cc = function (a) {
2708
- this.aq = dateAddMonths(this.aq, a);
2709
- this.cg();
2710
- };
2711
- XCalendar.prototype.cd = function (a) {
2712
- this.aq = dateFromValues(this.aq.getFullYear(), a, this.aq.getDate(), 0, 0, 0, 0);
2713
- this.cg();
2714
- };
2715
- XCalendar.prototype.ce = function (a) {
2716
- var b = dateGetMonth(this.aq);
2717
- var c = this.aq.getDate();
2718
- if (a == this.au.getFullYear() && a == this.at.getFullYear()) {
2719
- if (b < dateGetMonth(this.au)) {
2720
- b = dateGetMonth(this.au);
2721
- if (c < this.au.getDate()) {
2722
- c = this.au.getDate();
2723
- }
2724
- }
2725
- else if (b > dateGetMonth(this.at)) {
2726
- b = dateGetMonth(this.at);
2727
- if (c > this.at.getDate()) {
2728
- c = this.at.getDate();
2729
- }
2730
- }
2731
- else if (b == dateGetMonth(this.au) && b == dateGetMonth(this.at)) {
2732
- if (c < this.au.getDate()) {
2733
- c = this.au.getDate();
2734
- }
2735
- else if (c > this.at.getDate()) {
2736
- c = this.at.getDate();
2737
- }
2738
- }
2739
- else if (b == dateGetMonth(this.au)) {
2740
- if (c < this.au.getDate()) {
2741
- c = this.au.getDate();
2742
- }
2743
- }
2744
- else if (b == dateGetMonth(this.at)) {
2745
- if (c > this.at.getDate()) {
2746
- c = this.at.getDate();
2747
- }
2748
- }
2749
- }
2750
- else if (a == this.au.getFullYear()) {
2751
- if (b < dateGetMonth(this.au)) {
2752
- b = dateGetMonth(this.au);
2753
- if (c < this.au.getDate()) {
2754
- c = this.au.getDate();
2755
- }
2756
- }
2757
- else if (b == dateGetMonth(this.au)) {
2758
- if (c < this.au.getDate()) {
2759
- c = this.au.getDate();
2760
- }
2761
- }
2762
- }
2763
- else if (a == this.at.getFullYear()) {
2764
- if (b > dateGetMonth(this.at)) {
2765
- b = dateGetMonth(this.at);
2766
- if (c > this.at.getDate()) {
2767
- c = this.at.getDate();
2768
- }
2769
- }
2770
- else if (b == dateGetMonth(this.at)) {
2771
- if (c > this.at.getDate()) {
2772
- c = this.at.getDate();
2773
- }
2774
- }
2775
- }
2776
- this.aq = dateFromValues(a, b, c, 0, 0, 0, 0);
2777
- this.cg();
2778
- };
2779
- XCalendar.prototype.cz = function (a, b) {
2780
- if (b < 0) {
2781
- a--;
2782
- }
2783
- else {
2784
- a++;
2785
- }
2786
- this.h.a6(a);
2787
- };
2788
- XCalendar.prototype.cy = function () {
2789
- this.h.as();
2790
- };
2791
- XCalendar.prototype.bj = function () {
2792
- return this.f();
2793
- };
2794
- XCalendar.prototype.bs = function () {
2795
- var a = this.f();
2796
- return a.o();
2797
- };
2798
- XCalendar.prototype.f = function () {
2799
- var a = new CalendarVisualModelExport();
2800
- a.i = this.t;
2801
- a.h = this.r;
2802
- a.e = AppearanceHelper.a(this.dm);
2803
- a.g = AppearanceHelper.a(this.dp);
2804
- a.c = AppearanceHelper.a(this.dj);
2805
- a.f = AppearanceHelper.a(this.dn);
2806
- a.d = AppearanceHelper.a(this.dk);
2807
- a.b = AppearanceHelper.a(this.di);
2808
- a.a = AppearanceHelper.a(this.dh);
2809
- a.j = new List$1(ButtonVisualModelExport.$, 0);
2810
- a.k = new List$1(TextElementsVisualModelExport.$, 0);
2811
- a.l = new List$1(TextElementsVisualModelExport.$, 0);
2812
- var b = this.h.y();
2813
- a.n = b;
2814
- var c = this.h.a();
2815
- var d = c[0];
2816
- var e = c[1];
2817
- if (b == "day") {
2818
- for (var f = 0; f < this.aj.count; f++) {
2819
- if (this.aj._inner[f].h7 == null) {
2820
- this.aj._inner[f].h7 = "header" + f.toString();
2821
- }
2822
- var g = this.aj._inner[f].ec();
2823
- g.s = g.s - d;
2824
- g.q = g.q - e;
2825
- a.j.add(g);
2826
- }
2827
- for (var h = 0; h < this.ah.count; h++) {
2828
- if (this.ah._inner[h].h7 == null) {
2829
- this.ah._inner[h].h7 = "days" + h.toString();
2830
- }
2831
- var i = this.ah._inner[h].ec();
2832
- i.s = i.s - d;
2833
- i.q = i.q - e;
2834
- a.j.add(i);
2835
- }
2836
- if (this.ae == true) {
2837
- this.g.h7 = "todayButton";
2838
- var j = this.g.ec();
2839
- j.s = j.s - d;
2840
- j.q = j.q - e;
2841
- a.j.add(j);
2842
- }
2843
- var k = this.h.k();
2844
- for (var l = 0; l < k.count; l++) {
2845
- var m = new TextElementsVisualModelExport();
2846
- var n = this.h.b(k._inner[l]);
2847
- m.e = n[0] - d;
2848
- m.d = n[1] - e;
2849
- m.c = NativeUI.d(k._inner[l].parent());
2850
- m.f = NativeUI.k(k._inner[l].parent());
2851
- m.b = AppearanceHelper.a(NativeUI.ao(k._inner[l]));
2852
- m.g = k._inner[l].getText();
2853
- a.k.add(m);
2854
- }
2855
- if (this.af == true) {
2856
- var o = this.h.l();
2857
- for (var p = 0; p < o.count; p++) {
2858
- var q = new TextElementsVisualModelExport();
2859
- var r = this.h.b(o._inner[p]);
2860
- q.e = r[0] - d;
2861
- q.d = r[1] - e;
2862
- q.c = NativeUI.d(o._inner[p].parent());
2863
- q.f = NativeUI.k(o._inner[p].parent());
2864
- q.b = AppearanceHelper.a(NativeUI.ao(o._inner[p]));
2865
- q.a = AppearanceHelper.a(NativeUI.an(o._inner[p]));
2866
- q.g = o._inner[p].getText();
2867
- a.l.add(q);
2868
- }
2869
- }
2870
- }
2871
- else if (b == "month") {
2872
- for (var s = 0; s < this.ak.count; s++) {
2873
- if (this.ak._inner[s].h7 == null) {
2874
- this.ak._inner[s].h7 = "months" + s.toString();
2875
- }
2876
- var t = this.ak._inner[s].ec();
2877
- t.s = t.s - d;
2878
- t.q = t.q - e;
2879
- a.j.add(t);
2880
- }
2881
- }
2882
- else if (b == "year") {
2883
- for (var u = 0; u < this.al.count; u++) {
2884
- if (this.al._inner[u].h7 == null) {
2885
- this.al._inner[u].h7 = "years" + u.toString();
2886
- }
2887
- var v = this.al._inner[u].ec();
2888
- v.s = v.s - d;
2889
- v.q = v.q - e;
2890
- a.j.add(v);
2891
- }
2892
- }
2893
- if (this.v != null) {
2894
- var w = this.v;
2895
- if (this.h != null && w.q == null) {
2896
- var x = this.h.m;
2897
- var y = FontUtil.getFontInfoFromString(x, w.fontString);
2898
- w.q = y.q;
2899
- w.f = y.f;
2900
- w.r = y.r;
2901
- w.t = y.t;
2902
- w.u = y.u;
2903
- w.v = y.v;
2904
- }
2905
- if (w.q != null) {
2906
- a.p = w.q;
2907
- }
2908
- if (!isNaN_(w.f)) {
2909
- a.m = w.f;
2910
- }
2911
- if (w.v != null) {
2912
- a.t = w.v;
2913
- }
2914
- if (w.t != null) {
2915
- a.r = w.t;
2916
- }
2917
- if (w.r != null) {
2918
- a.q = w.t;
2919
- }
2920
- }
2921
- return a;
2922
- };
2923
- XCalendar.$t = markType(XCalendar, 'XCalendar', Base.$, [INotifyPropertyChanged_$type]);
2924
- XCalendar.bk = "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z";
2925
- XCalendar.bl = "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z";
2926
- XCalendar.b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
2927
- XCalendar.c = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
2928
- return XCalendar;
2929
- }(Base));