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