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