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

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