@zohodesk/components 1.2.21 → 1.2.23

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 (664) hide show
  1. package/.DS_Store +0 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/.cli/stringContains.js +1 -0
  5. package/README.md +10 -0
  6. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +15 -0
  7. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +1 -0
  8. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +15 -0
  9. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +1 -0
  10. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +15 -0
  11. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +1 -0
  12. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +15 -0
  13. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +1 -0
  14. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +15 -0
  15. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +1 -0
  16. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +15 -0
  17. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +1 -0
  18. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +15 -0
  19. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +1 -0
  20. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +15 -0
  21. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +1 -0
  22. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +15 -0
  23. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +1 -0
  24. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +15 -0
  25. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +1 -0
  26. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +15 -0
  27. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +1 -0
  28. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +15 -0
  29. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +1 -0
  30. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +15 -0
  31. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +1 -0
  32. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +15 -0
  33. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +1 -0
  34. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +15 -0
  35. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +1 -0
  36. package/es/Accordion/Accordion.js +3 -7
  37. package/es/Accordion/AccordionItem.js +2 -4
  38. package/es/Animation/Animation.js +3 -3
  39. package/es/AppContainer/AppContainer.js +3 -14
  40. package/es/AppContainer/AppContainer.module.css +2 -2
  41. package/es/Avatar/Avatar.js +11 -23
  42. package/es/Avatar/Avatar.module.css +18 -18
  43. package/es/AvatarTeam/AvatarTeam.js +3 -3
  44. package/es/AvatarTeam/AvatarTeam.module.css +37 -35
  45. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +2 -1
  46. package/es/Button/Button.js +3 -4
  47. package/es/Button/css/Button.module.css +70 -70
  48. package/es/Buttongroup/Buttongroup.js +3 -3
  49. package/es/Buttongroup/Buttongroup.module.css +15 -13
  50. package/es/Card/Card.js +10 -21
  51. package/es/CheckBox/CheckBox.js +3 -5
  52. package/es/CheckBox/CheckBox.module.css +16 -16
  53. package/es/DateTime/CalendarView.js +20 -32
  54. package/es/DateTime/DateTime.js +6 -69
  55. package/es/DateTime/DateTime.module.css +40 -40
  56. package/es/DateTime/DateTimePopupFooter.js +1 -4
  57. package/es/DateTime/DateTimePopupHeader.js +2 -8
  58. package/es/DateTime/DateWidget.js +35 -98
  59. package/es/DateTime/DateWidget.module.css +5 -5
  60. package/es/DateTime/DaysRow.js +1 -4
  61. package/es/DateTime/Time.js +1 -10
  62. package/es/DateTime/YearView.js +4 -28
  63. package/es/DateTime/YearView.module.css +15 -15
  64. package/es/DateTime/common.js +0 -3
  65. package/es/DateTime/constants.js +0 -1
  66. package/es/DateTime/dateFormatUtils/dateFormat.js +30 -65
  67. package/es/DateTime/dateFormatUtils/dateFormats.js +1 -0
  68. package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
  69. package/es/DateTime/dateFormatUtils/index.js +1 -31
  70. package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
  71. package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
  72. package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
  73. package/es/DateTime/objectUtils.js +20 -14
  74. package/es/DateTime/typeChecker.js +0 -3
  75. package/es/DateTime/validator.js +6 -58
  76. package/es/DropBox/DropBox.js +2 -6
  77. package/es/DropBox/DropBoxElement/DropBoxElement.js +2 -8
  78. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
  79. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +3 -5
  80. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -3
  81. package/es/DropBox/css/DropBox.module.css +6 -6
  82. package/es/DropBox/props/defaultProps.js +2 -1
  83. package/es/DropBox/props/propTypes.js +2 -1
  84. package/es/DropDown/DropDown.js +1 -7
  85. package/es/DropDown/DropDown.module.css +2 -2
  86. package/es/DropDown/DropDownHeading.js +5 -4
  87. package/es/DropDown/DropDownHeading.module.css +6 -6
  88. package/es/DropDown/DropDownItem.js +0 -6
  89. package/es/DropDown/DropDownItem.module.css +12 -12
  90. package/es/DropDown/DropDownSearch.js +0 -4
  91. package/es/DropDown/DropDownSearch.module.css +3 -3
  92. package/es/DropDown/DropDownSeparator.js +0 -1
  93. package/es/DropDown/DropDownSeparator.module.css +2 -2
  94. package/es/DropDown/props/propTypes.js +2 -1
  95. package/es/Heading/Heading.js +3 -2
  96. package/es/Heading/Heading.module.css +2 -2
  97. package/es/Label/Label.js +3 -2
  98. package/es/Label/Label.module.css +5 -5
  99. package/es/Label/__tests__/Label.spec.js +2 -1
  100. package/es/Layout/Box.js +2 -15
  101. package/es/Layout/Container.js +3 -14
  102. package/es/Layout/Layout.module.css +15 -15
  103. package/es/Layout/index.js +2 -1
  104. package/es/Layout/utils.js +0 -1
  105. package/es/ListItem/ListContainer.js +3 -8
  106. package/es/ListItem/ListItem.js +3 -9
  107. package/es/ListItem/ListItem.module.css +38 -27
  108. package/es/ListItem/ListItemWithAvatar.js +3 -9
  109. package/es/ListItem/ListItemWithCheckBox.js +2 -7
  110. package/es/ListItem/ListItemWithIcon.js +3 -8
  111. package/es/ListItem/ListItemWithRadio.js +3 -7
  112. package/es/Modal/Modal.js +11 -28
  113. package/es/MultiSelect/AdvancedGroupMultiSelect.js +13 -89
  114. package/es/MultiSelect/AdvancedMultiSelect.js +9 -32
  115. package/es/MultiSelect/EmptyState.js +0 -2
  116. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
  117. package/es/MultiSelect/MultiSelect.js +30 -99
  118. package/es/MultiSelect/MultiSelect.module.css +31 -31
  119. package/es/MultiSelect/MultiSelectHeader.js +0 -3
  120. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -10
  121. package/es/MultiSelect/SelectedOptions.js +3 -6
  122. package/es/MultiSelect/SelectedOptions.module.css +5 -5
  123. package/es/MultiSelect/Suggestions.js +3 -7
  124. package/es/MultiSelect/props/propTypes.js +2 -2
  125. package/es/PopOver/PopOver.js +0 -16
  126. package/es/Popup/Popup.js +24 -77
  127. package/es/Popup/viewPort.js +4 -16
  128. package/es/Provider/IdProvider.js +5 -10
  129. package/es/Provider/LibraryContext.js +4 -6
  130. package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
  131. package/es/Provider/ZindexProvider.js +2 -9
  132. package/es/Radio/Radio.js +0 -3
  133. package/es/Radio/Radio.module.css +9 -9
  134. package/es/Responsive/CustomResponsive.js +18 -30
  135. package/es/Responsive/RefWrapper.js +7 -6
  136. package/es/Responsive/ResizeComponent.js +25 -35
  137. package/es/Responsive/ResizeObserver.js +6 -26
  138. package/es/Responsive/Responsive.js +20 -34
  139. package/es/Responsive/index.js +3 -1
  140. package/es/Responsive/sizeObservers.js +7 -28
  141. package/es/Responsive/utils/index.js +5 -7
  142. package/es/Responsive/utils/shallowCompare.js +2 -7
  143. package/es/Responsive/windowResizeObserver.js +0 -7
  144. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
  145. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  146. package/es/ResponsiveDropBox/props/propTypes.js +2 -1
  147. package/es/Ribbon/Ribbon.js +2 -3
  148. package/es/Ribbon/Ribbon.module.css +48 -45
  149. package/es/RippleEffect/RippleEffect.js +3 -1
  150. package/es/Select/GroupSelect.js +14 -58
  151. package/es/Select/Select.js +34 -80
  152. package/es/Select/Select.module.css +23 -23
  153. package/es/Select/SelectWithAvatar.js +4 -17
  154. package/es/Select/SelectWithIcon.js +5 -46
  155. package/es/Select/props/propTypes.js +2 -2
  156. package/es/Stencils/Stencils.js +3 -3
  157. package/es/Stencils/Stencils.module.css +11 -11
  158. package/es/Switch/Switch.js +3 -5
  159. package/es/Switch/Switch.module.css +23 -23
  160. package/es/Tab/Tab.js +4 -4
  161. package/es/Tab/Tab.module.css +14 -14
  162. package/es/Tab/TabContent.js +0 -1
  163. package/es/Tab/TabContentWrapper.js +8 -6
  164. package/es/Tab/TabWrapper.js +2 -5
  165. package/es/Tab/Tabs.js +7 -54
  166. package/es/Tab/Tabs.module.css +22 -22
  167. package/es/Tab/props/defaultProps.js +2 -1
  168. package/es/Tab/props/propTypes.js +3 -1
  169. package/es/Tag/Tag.js +3 -6
  170. package/es/Tag/Tag.module.css +26 -25
  171. package/es/TextBox/TextBox.js +3 -16
  172. package/es/TextBox/TextBox.module.css +10 -10
  173. package/es/TextBoxIcon/TextBoxIcon.js +2 -9
  174. package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
  175. package/es/TextBoxIcon/props/propTypes.js +2 -1
  176. package/es/Textarea/Textarea.js +3 -12
  177. package/es/Textarea/Textarea.module.css +22 -22
  178. package/es/Tooltip/Tooltip.js +14 -58
  179. package/es/Tooltip/Tooltip.module.css +5 -9
  180. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -3
  181. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -7
  182. package/es/common/animation.module.css +8 -8
  183. package/es/common/avatarsizes.module.css +16 -16
  184. package/es/common/basicReset.module.css +3 -3
  185. package/es/common/common.module.css +24 -24
  186. package/es/common/customscroll.module.css +2 -12
  187. package/es/deprecated/PortalLayer/PortalLayer.js +20 -25
  188. package/es/semantic/Button/Button.js +2 -3
  189. package/es/semantic/Button/semanticButton.module.css +1 -1
  190. package/es/utils/Common.js +9 -54
  191. package/es/utils/ContextOptimizer.js +5 -4
  192. package/es/utils/constructFullName.js +0 -2
  193. package/es/utils/datetime/common.js +5 -16
  194. package/es/utils/debounce.js +1 -5
  195. package/es/utils/dropDownUtils.js +11 -68
  196. package/es/utils/getInitial.js +0 -4
  197. package/es/utils/shallowEqual.js +0 -6
  198. package/es/v1/Accordion/Accordion.js +3 -4
  199. package/es/v1/Accordion/AccordionItem.js +2 -4
  200. package/es/v1/Animation/Animation.js +3 -1
  201. package/es/v1/AppContainer/AppContainer.js +3 -9
  202. package/es/v1/Avatar/Avatar.js +6 -18
  203. package/es/v1/AvatarTeam/AvatarTeam.js +0 -1
  204. package/es/v1/Button/Button.js +3 -3
  205. package/es/v1/Card/Card.js +8 -16
  206. package/es/v1/CheckBox/CheckBox.js +3 -6
  207. package/es/v1/DateTime/CalendarView.js +20 -32
  208. package/es/v1/DateTime/DateTime.js +6 -69
  209. package/es/v1/DateTime/DateTimePopupFooter.js +1 -4
  210. package/es/v1/DateTime/DateTimePopupHeader.js +2 -8
  211. package/es/v1/DateTime/DateWidget.js +35 -98
  212. package/es/v1/DateTime/DaysRow.js +1 -4
  213. package/es/v1/DateTime/Time.js +1 -10
  214. package/es/v1/DateTime/YearView.js +4 -28
  215. package/es/v1/DropBox/DropBox.js +2 -6
  216. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -8
  217. package/es/v1/DropBox/props/defaultProps.js +2 -1
  218. package/es/v1/DropBox/props/propTypes.js +2 -1
  219. package/es/v1/DropDown/DropDown.js +0 -3
  220. package/es/v1/DropDown/DropDownHeading.js +2 -2
  221. package/es/v1/DropDown/DropDownItem.js +0 -5
  222. package/es/v1/DropDown/DropDownSearch.js +2 -3
  223. package/es/v1/DropDown/props/propTypes.js +2 -1
  224. package/es/v1/Heading/Heading.js +3 -1
  225. package/es/v1/Layout/Box.js +2 -15
  226. package/es/v1/Layout/Container.js +3 -14
  227. package/es/v1/ListItem/ListContainer.js +3 -8
  228. package/es/v1/ListItem/ListItem.js +3 -10
  229. package/es/v1/ListItem/ListItemWithAvatar.js +1 -9
  230. package/es/v1/ListItem/ListItemWithCheckBox.js +2 -8
  231. package/es/v1/ListItem/ListItemWithIcon.js +3 -9
  232. package/es/v1/ListItem/ListItemWithRadio.js +3 -8
  233. package/es/v1/Modal/Modal.js +1 -17
  234. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +15 -90
  235. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -32
  236. package/es/v1/MultiSelect/EmptyState.js +0 -2
  237. package/es/v1/MultiSelect/MultiSelect.js +31 -100
  238. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -3
  239. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +3 -11
  240. package/es/v1/MultiSelect/SelectedOptions.js +3 -6
  241. package/es/v1/MultiSelect/Suggestions.js +3 -7
  242. package/es/v1/MultiSelect/props/propTypes.js +2 -2
  243. package/es/v1/PopOver/PopOver.js +0 -11
  244. package/es/v1/Popup/Popup.js +24 -77
  245. package/es/v1/Provider/IdProvider.js +5 -10
  246. package/es/v1/Provider/LibraryContext.js +4 -6
  247. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +7 -21
  248. package/es/v1/Provider/ZindexProvider.js +2 -9
  249. package/es/v1/Radio/Radio.js +2 -5
  250. package/es/v1/Responsive/CustomResponsive.js +18 -30
  251. package/es/v1/Responsive/RefWrapper.js +7 -6
  252. package/es/v1/Responsive/ResizeComponent.js +25 -35
  253. package/es/v1/Responsive/ResizeObserver.js +6 -26
  254. package/es/v1/Responsive/Responsive.js +20 -34
  255. package/es/v1/Responsive/index.js +3 -1
  256. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -1
  257. package/es/v1/ResponsiveDropBox/props/propTypes.js +2 -1
  258. package/es/v1/Select/GroupSelect.js +14 -58
  259. package/es/v1/Select/Select.js +38 -82
  260. package/es/v1/Select/SelectWithAvatar.js +4 -17
  261. package/es/v1/Select/SelectWithIcon.js +5 -46
  262. package/es/v1/Select/props/propTypes.js +2 -2
  263. package/es/v1/Stencils/Stencils.js +0 -2
  264. package/es/v1/Switch/Switch.js +3 -6
  265. package/es/v1/Tab/Tab.js +3 -3
  266. package/es/v1/Tab/TabContent.js +0 -1
  267. package/es/v1/Tab/TabContentWrapper.js +8 -6
  268. package/es/v1/Tab/TabWrapper.js +2 -5
  269. package/es/v1/Tab/Tabs.js +9 -54
  270. package/es/v1/Tab/props/defaultProps.js +2 -1
  271. package/es/v1/Tab/props/propTypes.js +3 -1
  272. package/es/v1/Tab/v1Tab.module.css +14 -14
  273. package/es/v1/Tab/v1Tabs.module.css +22 -22
  274. package/es/v1/Tag/Tag.js +1 -5
  275. package/es/v1/TextBox/TextBox.js +0 -14
  276. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -6
  277. package/es/v1/TextBoxIcon/props/propTypes.js +2 -1
  278. package/es/v1/Textarea/Textarea.js +3 -10
  279. package/es/v1/Tooltip/Tooltip.js +14 -58
  280. package/es/v1/Typography/Typography.js +0 -2
  281. package/es/v1/Typography/css/Typography.module.css +31 -31
  282. package/es/v1/Typography/css/cssJSLogic.js +0 -3
  283. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -1
  284. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  285. package/es/v1/semantic/Button/Button.js +2 -1
  286. package/lib/Accordion/Accordion.js +18 -42
  287. package/lib/Accordion/AccordionItem.js +18 -40
  288. package/lib/Accordion/index.js +0 -3
  289. package/lib/Accordion/props/propTypes.js +0 -3
  290. package/lib/Animation/Animation.js +18 -38
  291. package/lib/Animation/props/propTypes.js +0 -3
  292. package/lib/AppContainer/AppContainer.js +20 -58
  293. package/lib/AppContainer/AppContainer.module.css +2 -2
  294. package/lib/AppContainer/props/propTypes.js +0 -3
  295. package/lib/Avatar/Avatar.js +38 -78
  296. package/lib/Avatar/Avatar.module.css +18 -18
  297. package/lib/Avatar/__tests__/Avatar.spec.js +71 -95
  298. package/lib/Avatar/props/propTypes.js +0 -3
  299. package/lib/AvatarTeam/AvatarTeam.js +30 -52
  300. package/lib/AvatarTeam/AvatarTeam.module.css +37 -35
  301. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +61 -77
  302. package/lib/AvatarTeam/props/propTypes.js +0 -3
  303. package/lib/Button/Button.js +22 -33
  304. package/lib/Button/__tests__/Button.spec.js +48 -65
  305. package/lib/Button/css/Button.module.css +70 -70
  306. package/lib/Button/css/cssJSLogic.js +17 -18
  307. package/lib/Button/index.js +0 -3
  308. package/lib/Button/props/defaultProps.js +0 -2
  309. package/lib/Button/props/propTypes.js +0 -3
  310. package/lib/Buttongroup/Buttongroup.js +12 -32
  311. package/lib/Buttongroup/Buttongroup.module.css +15 -13
  312. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +10 -18
  313. package/lib/Buttongroup/props/propTypes.js +0 -3
  314. package/lib/Card/Card.js +46 -102
  315. package/lib/Card/index.js +0 -4
  316. package/lib/Card/props/propTypes.js +0 -3
  317. package/lib/CheckBox/CheckBox.js +47 -71
  318. package/lib/CheckBox/CheckBox.module.css +16 -16
  319. package/lib/CheckBox/props/propTypes.js +0 -3
  320. package/lib/DateTime/CalendarView.js +42 -82
  321. package/lib/DateTime/DateTime.js +156 -244
  322. package/lib/DateTime/DateTime.module.css +40 -40
  323. package/lib/DateTime/DateTimePopupFooter.js +8 -33
  324. package/lib/DateTime/DateTimePopupHeader.js +17 -49
  325. package/lib/DateTime/DateWidget.js +249 -350
  326. package/lib/DateTime/DateWidget.module.css +5 -5
  327. package/lib/DateTime/DaysRow.js +5 -28
  328. package/lib/DateTime/Time.js +32 -75
  329. package/lib/DateTime/YearView.js +27 -76
  330. package/lib/DateTime/YearView.module.css +15 -15
  331. package/lib/DateTime/common.js +0 -6
  332. package/lib/DateTime/constants.js +0 -1
  333. package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -187
  334. package/lib/DateTime/dateFormatUtils/dateFormats.js +1 -0
  335. package/lib/DateTime/dateFormatUtils/dayChange.js +7 -15
  336. package/lib/DateTime/dateFormatUtils/index.js +16 -73
  337. package/lib/DateTime/dateFormatUtils/monthChange.js +9 -20
  338. package/lib/DateTime/dateFormatUtils/timeChange.js +22 -54
  339. package/lib/DateTime/dateFormatUtils/yearChange.js +11 -23
  340. package/lib/DateTime/index.js +0 -2
  341. package/lib/DateTime/objectUtils.js +20 -24
  342. package/lib/DateTime/props/propTypes.js +1 -11
  343. package/lib/DateTime/typeChecker.js +0 -4
  344. package/lib/DateTime/validator.js +10 -73
  345. package/lib/DropBox/DropBox.js +21 -45
  346. package/lib/DropBox/DropBoxElement/DropBoxElement.js +40 -60
  347. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
  348. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +34 -42
  349. package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -3
  350. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +9 -14
  351. package/lib/DropBox/css/DropBox.module.css +6 -6
  352. package/lib/DropBox/css/cssJSLogic.js +1 -3
  353. package/lib/DropBox/props/defaultProps.js +4 -8
  354. package/lib/DropBox/props/propTypes.js +4 -10
  355. package/lib/DropDown/DropDown.js +5 -51
  356. package/lib/DropDown/DropDown.module.css +2 -2
  357. package/lib/DropDown/DropDownHeading.js +20 -39
  358. package/lib/DropDown/DropDownHeading.module.css +6 -6
  359. package/lib/DropDown/DropDownItem.js +20 -42
  360. package/lib/DropDown/DropDownItem.module.css +12 -12
  361. package/lib/DropDown/DropDownSearch.js +17 -40
  362. package/lib/DropDown/DropDownSearch.module.css +3 -3
  363. package/lib/DropDown/DropDownSeparator.js +4 -24
  364. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  365. package/lib/DropDown/index.js +0 -9
  366. package/lib/DropDown/props/propTypes.js +4 -10
  367. package/lib/Heading/Heading.js +15 -37
  368. package/lib/Heading/Heading.module.css +2 -2
  369. package/lib/Heading/props/propTypes.js +0 -3
  370. package/lib/Label/Label.js +21 -41
  371. package/lib/Label/Label.module.css +5 -5
  372. package/lib/Label/__tests__/Label.spec.js +34 -48
  373. package/lib/Label/props/propTypes.js +0 -3
  374. package/lib/Layout/Box.js +15 -35
  375. package/lib/Layout/Container.js +14 -33
  376. package/lib/Layout/Layout.module.css +15 -15
  377. package/lib/Layout/index.js +0 -3
  378. package/lib/Layout/props/propTypes.js +0 -3
  379. package/lib/Layout/utils.js +0 -11
  380. package/lib/ListItem/ListContainer.js +30 -55
  381. package/lib/ListItem/ListItem.js +45 -74
  382. package/lib/ListItem/ListItem.module.css +38 -27
  383. package/lib/ListItem/ListItemWithAvatar.js +48 -80
  384. package/lib/ListItem/ListItemWithCheckBox.js +40 -70
  385. package/lib/ListItem/ListItemWithIcon.js +44 -73
  386. package/lib/ListItem/ListItemWithRadio.js +42 -71
  387. package/lib/ListItem/index.js +0 -7
  388. package/lib/ListItem/props/propTypes.js +4 -6
  389. package/lib/Modal/Modal.js +10 -45
  390. package/lib/Modal/props/propTypes.js +0 -3
  391. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +166 -293
  392. package/lib/MultiSelect/AdvancedMultiSelect.js +125 -202
  393. package/lib/MultiSelect/EmptyState.js +24 -45
  394. package/lib/MultiSelect/MobileHeader/MobileHeader.js +5 -14
  395. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
  396. package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -3
  397. package/lib/MultiSelect/MultiSelect.js +214 -333
  398. package/lib/MultiSelect/MultiSelect.module.css +31 -31
  399. package/lib/MultiSelect/MultiSelectHeader.js +7 -29
  400. package/lib/MultiSelect/MultiSelectWithAvatar.js +43 -85
  401. package/lib/MultiSelect/SelectedOptions.js +17 -43
  402. package/lib/MultiSelect/SelectedOptions.module.css +5 -5
  403. package/lib/MultiSelect/Suggestions.js +32 -64
  404. package/lib/MultiSelect/index.js +0 -5
  405. package/lib/MultiSelect/props/defaultProps.js +0 -2
  406. package/lib/MultiSelect/props/propTypes.js +4 -14
  407. package/lib/PopOver/PopOver.js +47 -94
  408. package/lib/PopOver/index.js +0 -4
  409. package/lib/PopOver/props/propTypes.js +0 -3
  410. package/lib/Popup/Popup.js +81 -158
  411. package/lib/Popup/viewPort.js +14 -28
  412. package/lib/Provider/AvatarSize.js +0 -4
  413. package/lib/Provider/Config.js +0 -2
  414. package/lib/Provider/CssProvider.js +0 -4
  415. package/lib/Provider/IdProvider.js +6 -17
  416. package/lib/Provider/LibraryContext.js +15 -35
  417. package/lib/Provider/LibraryContextInit.js +0 -4
  418. package/lib/Provider/NumberGenerator/NumberGenerator.js +15 -44
  419. package/lib/Provider/ZindexProvider.js +3 -15
  420. package/lib/Provider/index.js +0 -5
  421. package/lib/Radio/Radio.js +36 -60
  422. package/lib/Radio/Radio.module.css +9 -9
  423. package/lib/Radio/__tests__/Radio.spec.js +103 -134
  424. package/lib/Radio/props/propTypes.js +0 -3
  425. package/lib/Responsive/CustomResponsive.js +29 -73
  426. package/lib/Responsive/RefWrapper.js +11 -17
  427. package/lib/Responsive/ResizeComponent.js +36 -62
  428. package/lib/Responsive/ResizeObserver.js +10 -24
  429. package/lib/Responsive/Responsive.js +30 -80
  430. package/lib/Responsive/index.js +0 -4
  431. package/lib/Responsive/props/propTypes.js +0 -3
  432. package/lib/Responsive/sizeObservers.js +17 -53
  433. package/lib/Responsive/utils/index.js +3 -11
  434. package/lib/Responsive/utils/shallowCompare.js +2 -11
  435. package/lib/Responsive/windowResizeObserver.js +0 -8
  436. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +17 -45
  437. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  438. package/lib/ResponsiveDropBox/props/propTypes.js +4 -9
  439. package/lib/Ribbon/Ribbon.js +13 -33
  440. package/lib/Ribbon/Ribbon.module.css +48 -45
  441. package/lib/Ribbon/__tests__/Ribbon.spec.js +14 -24
  442. package/lib/Ribbon/props/propTypes.js +0 -3
  443. package/lib/RippleEffect/RippleEffect.js +10 -18
  444. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +22 -34
  445. package/lib/RippleEffect/props/propTypes.js +0 -3
  446. package/lib/Select/GroupSelect.js +130 -229
  447. package/lib/Select/Select.js +212 -296
  448. package/lib/Select/Select.module.css +23 -23
  449. package/lib/Select/SelectWithAvatar.js +56 -102
  450. package/lib/Select/SelectWithIcon.js +76 -131
  451. package/lib/Select/index.js +0 -5
  452. package/lib/Select/props/defaultProps.js +4 -5
  453. package/lib/Select/props/propTypes.js +4 -10
  454. package/lib/Stencils/Stencils.js +10 -29
  455. package/lib/Stencils/Stencils.module.css +11 -11
  456. package/lib/Stencils/__tests__/Stencils.spec.js +13 -22
  457. package/lib/Stencils/props/propTypes.js +0 -3
  458. package/lib/Switch/Switch.js +34 -57
  459. package/lib/Switch/Switch.module.css +23 -23
  460. package/lib/Switch/__tests__/Switch.spec.js +72 -91
  461. package/lib/Switch/props/propTypes.js +0 -3
  462. package/lib/Tab/Tab.js +27 -40
  463. package/lib/Tab/Tab.module.css +14 -14
  464. package/lib/Tab/TabContent.js +5 -12
  465. package/lib/Tab/TabContentWrapper.js +13 -16
  466. package/lib/Tab/TabWrapper.js +19 -37
  467. package/lib/Tab/Tabs.js +91 -171
  468. package/lib/Tab/Tabs.module.css +22 -22
  469. package/lib/Tab/index.js +0 -6
  470. package/lib/Tab/props/defaultProps.js +2 -1
  471. package/lib/Tab/props/propTypes.js +3 -4
  472. package/lib/Tag/Tag.js +43 -72
  473. package/lib/Tag/Tag.module.css +26 -25
  474. package/lib/Tag/props/propTypes.js +0 -3
  475. package/lib/TextBox/TextBox.js +60 -86
  476. package/lib/TextBox/TextBox.module.css +10 -10
  477. package/lib/TextBox/props/propTypes.js +4 -6
  478. package/lib/TextBoxIcon/TextBoxIcon.js +53 -80
  479. package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
  480. package/lib/TextBoxIcon/props/propTypes.js +4 -9
  481. package/lib/Textarea/Textarea.js +29 -54
  482. package/lib/Textarea/Textarea.module.css +22 -22
  483. package/lib/Textarea/props/propTypes.js +0 -3
  484. package/lib/Tooltip/Tooltip.js +31 -94
  485. package/lib/Tooltip/Tooltip.module.css +5 -9
  486. package/lib/Tooltip/props/propTypes.js +0 -3
  487. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +16 -40
  488. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  489. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +25 -53
  490. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  491. package/lib/VelocityAnimation/index.js +0 -3
  492. package/lib/common/animation.module.css +8 -8
  493. package/lib/common/avatarsizes.module.css +16 -16
  494. package/lib/common/basicReset.module.css +3 -3
  495. package/lib/common/common.module.css +24 -24
  496. package/lib/common/customscroll.module.css +2 -12
  497. package/lib/css.js +0 -40
  498. package/lib/deprecated/PortalLayer/PortalLayer.js +23 -46
  499. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
  500. package/lib/index.js +0 -58
  501. package/lib/semantic/Button/Button.js +22 -42
  502. package/lib/semantic/Button/props/propTypes.js +0 -3
  503. package/lib/semantic/Button/semanticButton.module.css +1 -1
  504. package/lib/semantic/index.js +0 -2
  505. package/lib/utils/Common.js +18 -111
  506. package/lib/utils/ContextOptimizer.js +10 -16
  507. package/lib/utils/constructFullName.js +4 -13
  508. package/lib/utils/datetime/common.js +5 -34
  509. package/lib/utils/debounce.js +1 -6
  510. package/lib/utils/dropDownUtils.js +59 -175
  511. package/lib/utils/dummyFunction.js +0 -2
  512. package/lib/utils/getHTMLFontSize.js +0 -1
  513. package/lib/utils/getInitial.js +0 -6
  514. package/lib/utils/index.js +0 -1
  515. package/lib/utils/scrollTo.js +0 -2
  516. package/lib/utils/shallowEqual.js +0 -8
  517. package/lib/v1/Accordion/Accordion.js +19 -38
  518. package/lib/v1/Accordion/AccordionItem.js +13 -23
  519. package/lib/v1/Accordion/index.js +0 -3
  520. package/lib/v1/Accordion/props/propTypes.js +0 -3
  521. package/lib/v1/Animation/Animation.js +14 -20
  522. package/lib/v1/Animation/props/propTypes.js +0 -3
  523. package/lib/v1/AppContainer/AppContainer.js +17 -46
  524. package/lib/v1/AppContainer/props/propTypes.js +0 -3
  525. package/lib/v1/Avatar/Avatar.js +32 -68
  526. package/lib/v1/Avatar/props/propTypes.js +0 -3
  527. package/lib/v1/AvatarTeam/AvatarTeam.js +24 -32
  528. package/lib/v1/AvatarTeam/props/propTypes.js +0 -3
  529. package/lib/v1/Button/Button.js +22 -32
  530. package/lib/v1/Button/props/defaultProps.js +0 -2
  531. package/lib/v1/Button/props/propTypes.js +0 -3
  532. package/lib/v1/Buttongroup/Buttongroup.js +5 -13
  533. package/lib/v1/Buttongroup/props/propTypes.js +0 -3
  534. package/lib/v1/Card/Card.js +44 -78
  535. package/lib/v1/Card/index.js +0 -4
  536. package/lib/v1/Card/props/propTypes.js +0 -3
  537. package/lib/v1/CheckBox/CheckBox.js +41 -52
  538. package/lib/v1/CheckBox/props/propTypes.js +0 -3
  539. package/lib/v1/DateTime/CalendarView.js +48 -89
  540. package/lib/v1/DateTime/DateTime.js +158 -246
  541. package/lib/v1/DateTime/DateTimePopupFooter.js +8 -33
  542. package/lib/v1/DateTime/DateTimePopupHeader.js +17 -49
  543. package/lib/v1/DateTime/DateWidget.js +251 -352
  544. package/lib/v1/DateTime/DaysRow.js +5 -28
  545. package/lib/v1/DateTime/Time.js +32 -75
  546. package/lib/v1/DateTime/YearView.js +27 -76
  547. package/lib/v1/DateTime/index.js +0 -2
  548. package/lib/v1/DateTime/props/propTypes.js +1 -11
  549. package/lib/v1/DropBox/DropBox.js +21 -45
  550. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +40 -60
  551. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -3
  552. package/lib/v1/DropBox/props/defaultProps.js +4 -8
  553. package/lib/v1/DropBox/props/propTypes.js +4 -10
  554. package/lib/v1/DropDown/DropDown.js +3 -23
  555. package/lib/v1/DropDown/DropDownHeading.js +13 -20
  556. package/lib/v1/DropDown/DropDownItem.js +11 -26
  557. package/lib/v1/DropDown/DropDownSearch.js +16 -28
  558. package/lib/v1/DropDown/DropDownSeparator.js +1 -7
  559. package/lib/v1/DropDown/props/propTypes.js +4 -10
  560. package/lib/v1/Heading/Heading.js +14 -19
  561. package/lib/v1/Heading/props/propTypes.js +0 -3
  562. package/lib/v1/Label/Label.js +14 -22
  563. package/lib/v1/Label/props/propTypes.js +0 -3
  564. package/lib/v1/Layout/Box.js +15 -35
  565. package/lib/v1/Layout/Container.js +14 -33
  566. package/lib/v1/Layout/index.js +0 -3
  567. package/lib/v1/Layout/props/propTypes.js +0 -3
  568. package/lib/v1/ListItem/ListContainer.js +30 -55
  569. package/lib/v1/ListItem/ListItem.js +38 -53
  570. package/lib/v1/ListItem/ListItemWithAvatar.js +39 -62
  571. package/lib/v1/ListItem/ListItemWithCheckBox.js +34 -49
  572. package/lib/v1/ListItem/ListItemWithIcon.js +37 -52
  573. package/lib/v1/ListItem/ListItemWithRadio.js +35 -49
  574. package/lib/v1/ListItem/index.js +0 -7
  575. package/lib/v1/ListItem/props/propTypes.js +4 -6
  576. package/lib/v1/Modal/Modal.js +9 -46
  577. package/lib/v1/Modal/props/propTypes.js +0 -3
  578. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +168 -294
  579. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +125 -202
  580. package/lib/v1/MultiSelect/EmptyState.js +24 -45
  581. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -14
  582. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -3
  583. package/lib/v1/MultiSelect/MultiSelect.js +216 -335
  584. package/lib/v1/MultiSelect/MultiSelectHeader.js +7 -29
  585. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +43 -86
  586. package/lib/v1/MultiSelect/SelectedOptions.js +17 -43
  587. package/lib/v1/MultiSelect/Suggestions.js +32 -64
  588. package/lib/v1/MultiSelect/index.js +0 -5
  589. package/lib/v1/MultiSelect/props/defaultProps.js +0 -2
  590. package/lib/v1/MultiSelect/props/propTypes.js +4 -14
  591. package/lib/v1/PopOver/PopOver.js +40 -71
  592. package/lib/v1/PopOver/props/propTypes.js +0 -3
  593. package/lib/v1/Popup/Popup.js +81 -158
  594. package/lib/v1/Provider/AvatarSize.js +0 -4
  595. package/lib/v1/Provider/Config.js +0 -2
  596. package/lib/v1/Provider/CssProvider.js +0 -4
  597. package/lib/v1/Provider/IdProvider.js +6 -17
  598. package/lib/v1/Provider/LibraryContext.js +15 -35
  599. package/lib/v1/Provider/LibraryContextInit.js +0 -4
  600. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +15 -44
  601. package/lib/v1/Provider/ZindexProvider.js +3 -15
  602. package/lib/v1/Provider/index.js +0 -5
  603. package/lib/v1/Radio/Radio.js +32 -42
  604. package/lib/v1/Radio/props/propTypes.js +0 -3
  605. package/lib/v1/Responsive/CustomResponsive.js +29 -73
  606. package/lib/v1/Responsive/RefWrapper.js +11 -17
  607. package/lib/v1/Responsive/ResizeComponent.js +36 -62
  608. package/lib/v1/Responsive/ResizeObserver.js +10 -24
  609. package/lib/v1/Responsive/Responsive.js +30 -80
  610. package/lib/v1/Responsive/index.js +0 -4
  611. package/lib/v1/Responsive/props/propTypes.js +0 -3
  612. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +13 -27
  613. package/lib/v1/ResponsiveDropBox/props/propTypes.js +4 -9
  614. package/lib/v1/Ribbon/Ribbon.js +7 -14
  615. package/lib/v1/Ribbon/props/propTypes.js +0 -3
  616. package/lib/v1/RippleEffect/RippleEffect.js +7 -17
  617. package/lib/v1/RippleEffect/props/propTypes.js +0 -3
  618. package/lib/v1/Select/GroupSelect.js +130 -229
  619. package/lib/v1/Select/Select.js +215 -298
  620. package/lib/v1/Select/SelectWithAvatar.js +56 -102
  621. package/lib/v1/Select/SelectWithIcon.js +76 -131
  622. package/lib/v1/Select/index.js +0 -5
  623. package/lib/v1/Select/props/defaultProps.js +4 -5
  624. package/lib/v1/Select/props/propTypes.js +4 -10
  625. package/lib/v1/Stencils/Stencils.js +3 -13
  626. package/lib/v1/Stencils/props/propTypes.js +0 -3
  627. package/lib/v1/Switch/Switch.js +25 -38
  628. package/lib/v1/Switch/props/propTypes.js +0 -3
  629. package/lib/v1/Tab/Tab.js +27 -40
  630. package/lib/v1/Tab/TabContent.js +5 -12
  631. package/lib/v1/Tab/TabContentWrapper.js +13 -16
  632. package/lib/v1/Tab/TabWrapper.js +19 -37
  633. package/lib/v1/Tab/Tabs.js +83 -170
  634. package/lib/v1/Tab/index.js +0 -6
  635. package/lib/v1/Tab/props/defaultProps.js +2 -1
  636. package/lib/v1/Tab/props/propTypes.js +3 -4
  637. package/lib/v1/Tab/v1Tab.module.css +14 -14
  638. package/lib/v1/Tab/v1Tabs.module.css +22 -22
  639. package/lib/v1/Tag/Tag.js +32 -50
  640. package/lib/v1/Tag/props/propTypes.js +0 -3
  641. package/lib/v1/TextBox/TextBox.js +47 -70
  642. package/lib/v1/TextBox/props/propTypes.js +4 -6
  643. package/lib/v1/TextBoxIcon/TextBoxIcon.js +55 -80
  644. package/lib/v1/TextBoxIcon/props/propTypes.js +4 -9
  645. package/lib/v1/Textarea/Textarea.js +28 -45
  646. package/lib/v1/Textarea/props/propTypes.js +0 -3
  647. package/lib/v1/Tooltip/Tooltip.js +31 -94
  648. package/lib/v1/Tooltip/props/propTypes.js +0 -3
  649. package/lib/v1/Typography/Typography.js +15 -26
  650. package/lib/v1/Typography/css/Typography.module.css +31 -31
  651. package/lib/v1/Typography/css/cssJSLogic.js +20 -25
  652. package/lib/v1/Typography/props/propTypes.js +0 -3
  653. package/lib/v1/Typography/utils/index.js +0 -1
  654. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +12 -25
  655. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
  656. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +22 -38
  657. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
  658. package/lib/v1/semantic/Button/Button.js +18 -24
  659. package/lib/v1/semantic/Button/props/propTypes.js +0 -3
  660. package/lib/v1/semantic/index.js +0 -2
  661. package/package.json +13 -12
  662. package/propValidationArg.json +2 -2
  663. package/result.json +1 -1
  664. /package/.cli/{AppearanceThemeValidationExcludeFiles.js → ThemeValidationExcludeFiles.js} +0 -0
@@ -10,19 +10,12 @@ exports.getDateText = getDateText;
10
10
  exports.getDateTimeString = getDateTimeString;
11
11
  exports.getIsValidDate = getIsValidDate;
12
12
  exports.getSelectedDate = getSelectedDate;
13
-
14
13
  var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
15
-
16
14
  var _index = require("./index");
17
-
18
15
  var _Common = require("../../utils/Common");
19
-
20
16
  var _common = require("../../utils/datetime/common");
21
-
22
17
  var _constants = require("../constants");
23
-
24
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
26
19
  /* eslint-disable no-param-reassign */
27
20
 
28
21
  /** * Libraries ** */
@@ -30,6 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
30
23
  /** * Methods ** */
31
24
 
32
25
  /** * Constants ** */
26
+
33
27
  function getDateFormatString() {
34
28
  var dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
35
29
  var datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
@@ -39,18 +33,15 @@ function getDateFormatString() {
39
33
  return res;
40
34
  }, '');
41
35
  }
42
-
43
36
  function getIsValidPattern() {
44
37
  var dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
45
38
  var datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
46
-
47
39
  var isValueInArray = function isValueInArray() {
48
40
  var possibleFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
49
41
  return possibleFormat.some(function (str) {
50
42
  return dateFormatArr.indexOf(str) >= 0;
51
43
  });
52
44
  };
53
-
54
45
  var haveDay = isValueInArray(_constants.flags.day);
55
46
  var haveMonth = isValueInArray(_constants.flags.month);
56
47
  var haveYear = isValueInArray(_constants.flags.year);
@@ -59,42 +50,34 @@ function getIsValidPattern() {
59
50
  });
60
51
  return haveDay && haveMonth && (haveYear || !haveYear) && isValidPattern;
61
52
  }
62
-
63
53
  function getDateFormatDetails() {
64
54
  var dateFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
65
-
66
55
  var _ref = arguments.length > 1 ? arguments[1] : undefined,
67
- isHideCurrentYear = _ref.isHideCurrentYear,
68
- value = _ref.value,
69
- timeZone = _ref.timeZone,
70
- isDateTime = _ref.isDateTime;
71
-
56
+ isHideCurrentYear = _ref.isHideCurrentYear,
57
+ value = _ref.value,
58
+ timeZone = _ref.timeZone,
59
+ isDateTime = _ref.isDateTime;
72
60
  var dayInfo = {};
73
61
  var monthInfo = {};
74
62
  var yearInfo = {};
75
63
  var dateFormatArr = [];
76
64
  var patternArr = [];
77
-
78
65
  var _getIsCurrentYear = (0, _index.getIsCurrentYear)({
79
- value: value,
80
- timeZone: timeZone,
81
- isDateTime: isDateTime
82
- }),
83
- isCurrentYear = _getIsCurrentYear.isCurrentYear;
84
-
66
+ value: value,
67
+ timeZone: timeZone,
68
+ isDateTime: isDateTime
69
+ }),
70
+ isCurrentYear = _getIsCurrentYear.isCurrentYear;
85
71
  var isHideYear = isHideCurrentYear ? isCurrentYear : false;
86
-
87
72
  function getDateFormat(dateFormat) {
88
73
  var token = /D{1,4}|M{1,4}|YY(?:YY)?|([HhmsA])\1?|[LloSZWN]|\[[^\]]*\]|'[^']*'/gi;
89
74
  dateFormatArr = [];
90
75
  patternArr = [];
91
76
  var newDateFormat = dateFormat.replace(token, function (match) {
92
77
  var dateFormatArrLen = dateFormatArr.length;
93
-
94
78
  if (match in _constants.flags) {
95
79
  dateFormatArr.push(match);
96
80
  var type = _constants.flags[match].type;
97
-
98
81
  if (type === 'day') {
99
82
  dayInfo = Object.assign({}, _constants.flags[match], {
100
83
  index: dateFormatArrLen
@@ -108,35 +91,27 @@ function getDateFormatDetails() {
108
91
  index: dateFormatArrLen
109
92
  });
110
93
  }
111
-
112
94
  return _constants.patternSplitStr;
113
95
  }
114
-
115
96
  return match.slice(1, match.length - 1);
116
97
  });
117
98
  patternArr = newDateFormat.split(_constants.patternSplitStr).reduce(function (res, patternStr) {
118
99
  if (patternStr) {
119
100
  res.push(patternStr);
120
101
  }
121
-
122
102
  return res;
123
103
  }, []);
124
104
  }
125
-
126
105
  getDateFormat(dateFormat);
127
106
  var isValidPattern = getIsValidPattern(dateFormatArr, patternArr);
128
-
129
107
  if (!isValidPattern) {
130
108
  getDateFormat(_constants.defaultFormat);
131
109
  }
132
-
133
110
  if (isHideYear) {
134
111
  var _removeYearPattern = (0, _index.removeYearPattern)(dateFormatArr, patternArr);
135
-
136
112
  dateFormatArr = _removeYearPattern.dateFormatArr;
137
113
  patternArr = _removeYearPattern.patternArr;
138
114
  }
139
-
140
115
  return {
141
116
  dateFormat: getDateFormatString(dateFormatArr, patternArr),
142
117
  dateFormatArr: dateFormatArr,
@@ -147,43 +122,35 @@ function getDateFormatDetails() {
147
122
  isValidPattern: isValidPattern
148
123
  };
149
124
  }
150
-
151
125
  function getDisplayFormatValue(dateVal, formatVal) {
152
126
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
153
- _ref2$i18nShortMonths = _ref2.i18nShortMonths,
154
- i18nShortMonths = _ref2$i18nShortMonths === void 0 ? [] : _ref2$i18nShortMonths,
155
- _ref2$i18nMonths = _ref2.i18nMonths,
156
- i18nMonths = _ref2$i18nMonths === void 0 ? [] : _ref2$i18nMonths;
157
-
127
+ _ref2$i18nShortMonths = _ref2.i18nShortMonths,
128
+ i18nShortMonths = _ref2$i18nShortMonths === void 0 ? [] : _ref2$i18nShortMonths,
129
+ _ref2$i18nMonths = _ref2.i18nMonths,
130
+ i18nMonths = _ref2$i18nMonths === void 0 ? [] : _ref2$i18nMonths;
158
131
  var _ref3 = _constants.flags[formatVal] || {},
159
- length = _ref3.length,
160
- type = _ref3.type;
161
-
132
+ length = _ref3.length,
133
+ type = _ref3.type;
162
134
  if (length === _constants.INCONSTANT) {
163
135
  if (dateVal && formatVal === 'MMM' && i18nShortMonths.length) {
164
136
  return i18nShortMonths[dateVal - 1];
165
137
  } else if (dateVal && formatVal === 'MMMM' && i18nMonths.length) {
166
138
  return i18nMonths[dateVal - 1];
167
139
  }
168
-
169
140
  return (0, _index.addZero)(dateVal, formatVal.length ? formatVal.length : 1);
170
141
  } else if (type === 'year' && length === 2) {
171
142
  return (0, _index.addZero)((0, _index.convertYearToTwoDigit)(dateVal), length);
172
143
  }
173
-
174
144
  return (0, _index.addZero)(dateVal, length);
175
145
  }
176
-
177
146
  function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
178
147
  var _ref4 = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {},
179
- i18nShortMonths = _ref4.i18nShortMonths,
180
- i18nMonths = _ref4.i18nMonths;
181
-
148
+ i18nShortMonths = _ref4.i18nShortMonths,
149
+ i18nMonths = _ref4.i18nMonths;
182
150
  var dateString = dateFormatArr.reduce(function (res, formatVal, index) {
183
151
  var _ref5 = _constants.flags[formatVal] || {},
184
- _ref5$type = _ref5.type,
185
- dateFormatVal = _ref5$type === void 0 ? '' : _ref5$type;
186
-
152
+ _ref5$type = _ref5.type,
153
+ dateFormatVal = _ref5$type === void 0 ? '' : _ref5$type;
187
154
  var dateVal = values[dateFormatVal];
188
155
  dateVal = !(0, _Common.getIsEmptyValue)(dateVal) ? getDisplayFormatValue(dateVal, formatVal, {
189
156
  i18nShortMonths: i18nShortMonths,
@@ -195,27 +162,24 @@ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
195
162
  }, '');
196
163
  return dateString;
197
164
  }
198
-
199
165
  function getDateTimeString() {
200
166
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
201
167
  var dateFormatDetails = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
202
168
  var isDateTime = arguments.length > 2 ? arguments[2] : undefined;
203
-
204
169
  var _ref6 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
205
- i18nShortMonths = _ref6.i18nShortMonths,
206
- i18nMonths = _ref6.i18nMonths,
207
- is24Hour = _ref6.is24Hour;
208
-
170
+ i18nShortMonths = _ref6.i18nShortMonths,
171
+ i18nMonths = _ref6.i18nMonths,
172
+ is24Hour = _ref6.is24Hour;
209
173
  var day = values.day,
210
- month = values.month,
211
- year = values.year,
212
- noon = values.noon;
174
+ month = values.month,
175
+ year = values.year,
176
+ noon = values.noon;
213
177
  var hour = values.hour,
214
- minute = values.minute;
178
+ minute = values.minute;
215
179
  var _dateFormatDetails$da = dateFormatDetails.dateFormatArr,
216
- dateFormatArr = _dateFormatDetails$da === void 0 ? [] : _dateFormatDetails$da,
217
- _dateFormatDetails$pa = dateFormatDetails.patternArr,
218
- patternArr = _dateFormatDetails$pa === void 0 ? [] : _dateFormatDetails$pa;
180
+ dateFormatArr = _dateFormatDetails$da === void 0 ? [] : _dateFormatDetails$da,
181
+ _dateFormatDetails$pa = dateFormatDetails.patternArr,
182
+ patternArr = _dateFormatDetails$pa === void 0 ? [] : _dateFormatDetails$pa;
219
183
  var dateString = concatDate({
220
184
  day: day,
221
185
  month: month,
@@ -225,33 +189,27 @@ function getDateTimeString() {
225
189
  i18nMonths: i18nMonths
226
190
  });
227
191
  var timeString = '';
228
-
229
192
  if (isDateTime) {
230
193
  hour = !(0, _Common.getIsEmptyValue)(hour) ? (0, _index.addZero)(hour, 2) : is24Hour ? 'HH' : 'hh';
231
194
  minute = !(0, _Common.getIsEmptyValue)(minute) ? (0, _index.addZero)(minute, 2) : 'mm';
232
195
  timeString = " ".concat(hour, ":").concat(minute, " ").concat(is24Hour ? '' : "".concat(noon || '--'));
233
196
  }
234
-
235
197
  return "".concat(dateString).concat(timeString);
236
198
  }
237
-
238
199
  function getDateText(value, isDateTime, timeZone) {
239
200
  if (value && !timeZone) {
240
201
  value = value.replace('Z', '');
241
202
  }
242
-
243
203
  return value ? isDateTime ? timeZone ? _datetimejs["default"].toDate(_datetimejs["default"].tz.utcToTz(value, timeZone)) : new Date(value) : timeZone ? _datetimejs["default"].toDate(value) : new Date(value) : new Date();
244
204
  }
245
-
246
205
  function getDateDetails(value, localValues, isDateTime, timeZone, _ref7) {
247
206
  var is24Hour = _ref7.is24Hour;
248
207
  var day = localValues.day,
249
- month = localValues.month,
250
- year = localValues.year,
251
- hour = localValues.hour,
252
- minute = localValues.minute,
253
- noon = localValues.noon;
254
-
208
+ month = localValues.month,
209
+ year = localValues.year,
210
+ hour = localValues.hour,
211
+ minute = localValues.minute,
212
+ noon = localValues.noon;
255
213
  if (value) {
256
214
  var dateObj = getDateText(value, isDateTime, timeZone);
257
215
  var selectedDay = dateObj.getDate();
@@ -260,16 +218,13 @@ function getDateDetails(value, localValues, isDateTime, timeZone, _ref7) {
260
218
  var newDay = day ? day : selectedDay;
261
219
  var newMonth = month ? month : selectedMonth + 1;
262
220
  var newYear = year ? year : selectedYear;
263
-
264
221
  if (isDateTime) {
265
222
  var selectedHour = dateObj.getHours();
266
223
  var selectedMinute = dateObj.getMinutes();
267
224
  var selectedNoon = selectedHour < 12 ? 'AM' : 'PM';
268
-
269
225
  if (!is24Hour) {
270
226
  selectedHour = selectedHour === 0 ? 12 : selectedHour > 12 ? selectedHour - 12 : selectedHour;
271
227
  }
272
-
273
228
  var newHour = hour ? hour : selectedHour;
274
229
  var newMinute = minute ? minute : selectedMinute;
275
230
  var newNoon = noon ? noon : selectedNoon;
@@ -282,25 +237,22 @@ function getDateDetails(value, localValues, isDateTime, timeZone, _ref7) {
282
237
  noon: newNoon
283
238
  };
284
239
  }
285
-
286
240
  return {
287
241
  day: newDay,
288
242
  month: newMonth,
289
243
  year: newYear
290
244
  };
291
245
  }
292
-
293
246
  return localValues;
294
247
  }
295
-
296
248
  function getIsValidDate(values, isDateTime, _ref8) {
297
249
  var is24Hour = _ref8.is24Hour;
298
250
  var day = values.day,
299
- month = values.month,
300
- year = values.year,
301
- hour = values.hour,
302
- minute = values.minute,
303
- noon = values.noon;
251
+ month = values.month,
252
+ year = values.year,
253
+ hour = values.hour,
254
+ minute = values.minute,
255
+ noon = values.noon;
304
256
  var isError = false;
305
257
  var message = '';
306
258
  var valuesArr = isDateTime ? is24Hour ? [day, month, year, hour, minute] : [day, month, year, hour, minute, noon] : [day, month, year];
@@ -310,7 +262,6 @@ function getIsValidDate(values, isDateTime, _ref8) {
310
262
  var value = parseInt(val);
311
263
  return (0, _Common.getIsEmptyValue)(value);
312
264
  }
313
-
314
265
  return (0, _Common.getIsEmptyValue)(val);
315
266
  });
316
267
  var haveAllValues = valuesArr.every(function (val, index) {
@@ -326,35 +277,26 @@ function getIsValidDate(values, isDateTime, _ref8) {
326
277
  } else if (val) {
327
278
  return true;
328
279
  }
329
-
330
280
  return false;
331
281
  });
332
-
333
282
  if (haveAllValues) {
334
283
  var dayEnd = (0, _index.getDayEnd)(month, year);
335
-
336
284
  var _getMonthDetails = (0, _index.getMonthDetails)(),
337
- monthStart = _getMonthDetails.startPoint,
338
- monthEnd = _getMonthDetails.endPoint;
339
-
285
+ monthStart = _getMonthDetails.startPoint,
286
+ monthEnd = _getMonthDetails.endPoint;
340
287
  var _getYearDetails = (0, _index.getYearDetails)(),
341
- yearStart = _getYearDetails.startPoint,
342
- yearEnd = _getYearDetails.endPoint;
343
-
288
+ yearStart = _getYearDetails.startPoint,
289
+ yearEnd = _getYearDetails.endPoint;
344
290
  var _getDayDetails = (0, _index.getDayDetails)(),
345
- dayStart = _getDayDetails.startPoint;
346
-
291
+ dayStart = _getDayDetails.startPoint;
347
292
  var _getHourDetails = (0, _index.getHourDetails)(is24Hour),
348
- hourStart = _getHourDetails.startPoint,
349
- hourEnd = _getHourDetails.endPoint;
350
-
293
+ hourStart = _getHourDetails.startPoint,
294
+ hourEnd = _getHourDetails.endPoint;
351
295
  var _getMinuteDetails = (0, _index.getMinuteDetails)(),
352
- minuteStart = _getMinuteDetails.startPoint,
353
- minuteEnd = _getMinuteDetails.endPoint;
354
-
296
+ minuteStart = _getMinuteDetails.startPoint,
297
+ minuteEnd = _getMinuteDetails.endPoint;
355
298
  var _getNoonDetails = (0, _index.getNoonDetails)(),
356
- noonAllowedValues = _getNoonDetails.allowedValues;
357
-
299
+ noonAllowedValues = _getNoonDetails.allowedValues;
358
300
  if (dayEnd < day || dayStart > day) {
359
301
  isError = true;
360
302
  message = 'Wrong Day';
@@ -378,61 +320,52 @@ function getIsValidDate(values, isDateTime, _ref8) {
378
320
  isError = true;
379
321
  message = 'Empty value';
380
322
  }
381
-
382
323
  return {
383
324
  isError: isError,
384
325
  message: message,
385
326
  isEmptyValError: haveNotAllValues
386
327
  };
387
328
  }
388
-
389
329
  function getSelectedDate(values, props) {
390
330
  var month = values.month,
391
- hour = values.hour;
331
+ hour = values.hour;
392
332
  var year = values.year,
393
- date = values.day,
394
- mins = values.minute,
395
- noon = values.noon;
333
+ date = values.day,
334
+ mins = values.minute,
335
+ noon = values.noon;
396
336
  var min = props.min,
397
- max = props.max,
398
- timeZone = props.timeZone,
399
- isDateTime = props.isDateTime,
400
- is24Hour = props.is24Hour;
401
-
337
+ max = props.max,
338
+ timeZone = props.timeZone,
339
+ isDateTime = props.isDateTime,
340
+ is24Hour = props.is24Hour;
402
341
  if (!is24Hour) {
403
342
  if (parseInt(hour) === 12) {
404
343
  hour = noon === 'AM' ? 0 : 12;
405
344
  }
406
-
407
345
  if (noon === 'PM') {
408
346
  if (hour < 12) {
409
347
  hour = parseInt(hour) + 12;
410
348
  }
411
349
  }
412
350
  }
413
-
414
351
  month = parseInt(month) - 1;
415
352
  var minInMillis = min ? _datetimejs["default"].millis(min) : null,
416
- maxInMillis = max ? _datetimejs["default"].millis(max) : null;
353
+ maxInMillis = max ? _datetimejs["default"].millis(max) : null;
417
354
  var selectedInMillis,
418
- selectedValue = '';
419
-
355
+ selectedValue = '';
420
356
  if (isDateTime) {
421
357
  if (timeZone) {
422
358
  selectedInMillis = _datetimejs["default"].tz.tzToUtc(Date.UTC(year, month, date, hour, mins), timeZone);
423
359
  } else {
424
360
  selectedInMillis = Date.UTC(year, month, date, hour, mins);
425
361
  }
426
-
427
362
  selectedValue = _datetimejs["default"].ISO(selectedInMillis);
428
363
  } else {
429
364
  selectedInMillis = Date.UTC(year, month, date);
430
365
  selectedValue = (0, _common.formatDate)(new Date(year, month, date), 'YYYY-MM-DD');
431
366
  }
432
-
433
367
  var isError = false;
434
368
  var errorType = '';
435
-
436
369
  if (minInMillis && minInMillis > selectedInMillis) {
437
370
  isError = true;
438
371
  errorType = 'MIN';
@@ -440,101 +373,87 @@ function getSelectedDate(values, props) {
440
373
  isError = true;
441
374
  errorType = 'MAX';
442
375
  }
443
-
444
376
  return {
445
377
  isError: isError,
446
378
  errorType: errorType,
447
379
  selectedValue: selectedValue
448
380
  };
449
381
  }
450
-
451
382
  function getDateFormatLength(type, length) {
452
383
  var formatVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
453
-
454
384
  var _ref9 = arguments.length > 3 ? arguments[3] : undefined,
455
- i18nShortMonths = _ref9.i18nShortMonths,
456
- i18nMonths = _ref9.i18nMonths,
457
- selectedValue = _ref9.selectedValue,
458
- day = _ref9.day,
459
- month = _ref9.month,
460
- year = _ref9.year,
461
- hour = _ref9.hour,
462
- minute = _ref9.minute,
463
- noon = _ref9.noon,
464
- timeZone = _ref9.timeZone,
465
- isDateTime = _ref9.isDateTime,
466
- is24Hour = _ref9.is24Hour;
467
-
385
+ i18nShortMonths = _ref9.i18nShortMonths,
386
+ i18nMonths = _ref9.i18nMonths,
387
+ selectedValue = _ref9.selectedValue,
388
+ day = _ref9.day,
389
+ month = _ref9.month,
390
+ year = _ref9.year,
391
+ hour = _ref9.hour,
392
+ minute = _ref9.minute,
393
+ noon = _ref9.noon,
394
+ timeZone = _ref9.timeZone,
395
+ isDateTime = _ref9.isDateTime,
396
+ is24Hour = _ref9.is24Hour;
468
397
  var _getDateDetails = getDateDetails(selectedValue, {
469
- day: day,
470
- month: month,
471
- year: year,
472
- hour: hour,
473
- minute: minute,
474
- noon: noon
475
- }, isDateTime, timeZone, {
476
- is24Hour: is24Hour
477
- }),
478
- selectedMonth = _getDateDetails.month;
479
-
398
+ day: day,
399
+ month: month,
400
+ year: year,
401
+ hour: hour,
402
+ minute: minute,
403
+ noon: noon
404
+ }, isDateTime, timeZone, {
405
+ is24Hour: is24Hour
406
+ }),
407
+ selectedMonth = _getDateDetails.month;
480
408
  if (length === _constants.INCONSTANT) {
481
409
  if (selectedMonth && formatVal === 'MMM' && i18nShortMonths.length) {
482
410
  return i18nShortMonths[selectedMonth - 1].length;
483
411
  } else if (selectedMonth && formatVal === 'MMMM' && i18nMonths.length) {
484
412
  return i18nMonths[selectedMonth - 1].length;
485
413
  }
486
-
487
414
  return formatVal.length ? formatVal.length : 1;
488
415
  }
489
-
490
416
  return length;
491
417
  }
492
-
493
418
  function getDateFormatSelection(dateFormatDetails, isDateTime) {
494
419
  var _ref10 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
495
- i18nShortMonths = _ref10.i18nShortMonths,
496
- i18nMonths = _ref10.i18nMonths,
497
- selectedValue = _ref10.selectedValue,
498
- day = _ref10.day,
499
- month = _ref10.month,
500
- year = _ref10.year,
501
- hour = _ref10.hour,
502
- minute = _ref10.minute,
503
- noon = _ref10.noon,
504
- timeZone = _ref10.timeZone,
505
- is24Hour = _ref10.is24Hour;
506
-
420
+ i18nShortMonths = _ref10.i18nShortMonths,
421
+ i18nMonths = _ref10.i18nMonths,
422
+ selectedValue = _ref10.selectedValue,
423
+ day = _ref10.day,
424
+ month = _ref10.month,
425
+ year = _ref10.year,
426
+ hour = _ref10.hour,
427
+ minute = _ref10.minute,
428
+ noon = _ref10.noon,
429
+ timeZone = _ref10.timeZone,
430
+ is24Hour = _ref10.is24Hour;
507
431
  var _dateFormatDetails$da2 = dateFormatDetails.dateFormatArr,
508
- dateFormatArr = _dateFormatDetails$da2 === void 0 ? [] : _dateFormatDetails$da2,
509
- _dateFormatDetails$pa2 = dateFormatDetails.patternArr,
510
- patternArr = _dateFormatDetails$pa2 === void 0 ? [] : _dateFormatDetails$pa2;
432
+ dateFormatArr = _dateFormatDetails$da2 === void 0 ? [] : _dateFormatDetails$da2,
433
+ _dateFormatDetails$pa2 = dateFormatDetails.patternArr,
434
+ patternArr = _dateFormatDetails$pa2 === void 0 ? [] : _dateFormatDetails$pa2;
511
435
  var focusedIndex = {};
512
436
  var clickIndex = {};
513
437
  var order = [];
514
438
  var tempLength = 0;
515
-
516
439
  function addResult(type, length) {
517
440
  var startIndex = tempLength;
518
441
  var endIndex = tempLength + length;
519
442
  var orderLen = order.length;
520
443
  focusedIndex["".concat(startIndex, "_").concat(endIndex)] = orderLen;
521
-
522
444
  for (var i = startIndex; i <= endIndex; i++) {
523
445
  clickIndex[i] = orderLen;
524
446
  }
525
-
526
447
  order.push({
527
448
  type: type,
528
449
  index: [startIndex, endIndex]
529
450
  });
530
451
  tempLength += length;
531
452
  }
532
-
533
453
  dateFormatArr.forEach(function (formatVal, index) {
534
454
  var _ref11 = _constants.flags[formatVal] || '',
535
- type = _ref11.type,
536
- length = _ref11.length;
537
-
455
+ type = _ref11.type,
456
+ length = _ref11.length;
538
457
  var patternVal = patternArr[index] || '';
539
458
  var validLength = getDateFormatLength(type, length, formatVal, {
540
459
  i18nShortMonths: i18nShortMonths,
@@ -553,32 +472,38 @@ function getDateFormatSelection(dateFormatDetails, isDateTime) {
553
472
  addResult(type, validLength);
554
473
  tempLength += patternVal.length;
555
474
  });
556
-
557
475
  if (isDateTime) {
558
476
  //For space between date and time
559
- tempLength += 1; //hour
477
+ tempLength += 1;
560
478
 
561
- addResult('hour', 2); //For :
479
+ //hour
480
+ addResult('hour', 2);
562
481
 
563
- tempLength += 1; //minute
482
+ //For :
483
+ tempLength += 1;
564
484
 
565
- addResult('minute', 2); //For space between time and noon
485
+ //minute
486
+ addResult('minute', 2);
566
487
 
567
- tempLength += 1; //noon
488
+ //For space between time and noon
489
+ tempLength += 1;
568
490
 
491
+ //noon
569
492
  if (!is24Hour) {
570
493
  addResult('noon', 2);
571
494
  }
572
495
  }
573
-
574
496
  return {
575
497
  focusedIndex: focusedIndex,
576
498
  clickIndex: clickIndex,
577
499
  order: order
578
500
  };
579
- } // export function getDateValues(date = '', dateFormatDetails = {}) {
501
+ }
502
+
503
+ // export function getDateValues(date = '', dateFormatDetails = {}) {
580
504
  // const { dateFormatArr, patternArr, dayInfo, monthInfo, yearInfo } =
581
505
  // dateFormatDetails;
506
+
582
507
  // const newDate = date.split('').reduce((res, str) => {
583
508
  // if (patternArr.indexOf(str) >= 0) {
584
509
  // res += patternChangeStr;
@@ -587,16 +512,21 @@ function getDateFormatSelection(dateFormatDetails, isDateTime) {
587
512
  // }
588
513
  // return res;
589
514
  // }, '');
515
+
590
516
  // const dateArr = newDate.split(patternChangeStr);
517
+
591
518
  // const { index: dayIndex, length: dayLength } = dayInfo;
592
519
  // let day = dateArr[dayIndex];
593
520
  // day = addZero(day, dayLength);
521
+
594
522
  // const { index: monthIndex, length: monthLength } = monthInfo;
595
523
  // let month = dateArr[monthIndex];
596
524
  // month = addZero(month, monthLength);
525
+
597
526
  // const { index: yearIndex, length: yearLength } = yearInfo;
598
527
  // let year = dateArr[yearIndex];
599
528
  // year = addZero(year, yearLength);
529
+
600
530
  // return {
601
531
  // day,
602
532
  // month,
@@ -604,16 +534,21 @@ function getDateFormatSelection(dateFormatDetails, isDateTime) {
604
534
  // dateString: concatDate({ day, month, year }, dateFormatArr, patternArr)
605
535
  // };
606
536
  // }
537
+
607
538
  // export function getDateTimeValues(value = '', dateFormatDetails = {}) {
608
539
  // const [date, time = '', noon = ''] = value.split(' ');
540
+
609
541
  // let [hour = '', minute = ''] = time.split(':');
610
542
  // hour = addZero(hour, 2);
611
543
  // minute = addZero(minute, 2);
544
+
612
545
  // const { day, month, year, dateString } = getDateValues(
613
546
  // date,
614
547
  // dateFormatDetails
615
548
  // );
549
+
616
550
  // const timeString = `${hour}:${minute}`;
551
+
617
552
  // return {
618
553
  // day,
619
554
  // month,
@@ -22,6 +22,7 @@ exports.dateSymbols = exports.dataFormatList = void 0;
22
22
  // 15.A: represent the AM or PM
23
23
  // 16.Z: represent the timezone (Asia/Kolkata)
24
24
  // 17. (O) : Offset Of the timezone (GMT+00:00)
25
+
25
26
  var dateSymbols = {
26
27
  d: 'date',
27
28
  dd: 'date',