igniteui-angular-inputs 16.1.0-beta.1

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