@zohodesk/dot 1.0.0-temp-175.6 → 1.0.0-temp-181

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 (237) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +30 -0
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +0 -1
  4. package/assets/Appearance/light/mode/Dot_LightMode.module.css +0 -1
  5. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +0 -1
  6. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  7. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  8. package/coverage/ExternalLink/index.html +1 -1
  9. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  10. package/coverage/ExternalLink/props/index.html +1 -1
  11. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  12. package/coverage/IconButton/IconButton.js.html +7 -7
  13. package/coverage/IconButton/IconButton.module.css.html +1 -1
  14. package/coverage/IconButton/index.html +11 -11
  15. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  16. package/coverage/IconButton/props/index.html +1 -1
  17. package/coverage/IconButton/props/propTypes.js.html +1 -1
  18. package/coverage/Image/Image.js.html +1 -1
  19. package/coverage/Image/Image.module.css.html +1 -1
  20. package/coverage/Image/index.html +1 -1
  21. package/coverage/Image/props/defaultProps.js.html +1 -1
  22. package/coverage/Image/props/index.html +1 -1
  23. package/coverage/Image/props/propTypes.js.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  30. package/coverage/coverage-final.json +16 -16
  31. package/coverage/coverage-summary.json +17 -17
  32. package/coverage/index.html +11 -11
  33. package/es/Drawer/Drawer.js +6 -3
  34. package/es/Drawer/props/defaultProps.js +2 -1
  35. package/es/Drawer/props/propTypes.js +2 -1
  36. package/es/Hooks/Dragger/useDragger.js +4 -3
  37. package/es/IconButton/IconButton.js +2 -2
  38. package/es/NewStar/NewStar.module.css +128 -67
  39. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  40. package/es/form/fields/TextEditor/TextEditor.module.css +63 -47
  41. package/es/list/status/StatusDropdown/StatusDropdown.js +2 -1
  42. package/es/list/status/StatusListItem/StatusListItem.js +12 -5
  43. package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
  44. package/es/list/status/StatusListItem/props/propTypes.js +3 -1
  45. package/es/lookup/Lookup/Lookup.js +6 -3
  46. package/es/v1/DotWrapper/DotWrapper.js +28 -0
  47. package/es/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +1 -0
  48. package/es/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +1 -0
  49. package/es/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +1 -0
  50. package/es/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +1 -0
  51. package/es/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +1 -0
  52. package/es/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +1 -0
  53. package/es/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +1 -0
  54. package/es/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +1 -0
  55. package/es/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +1 -0
  56. package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +19 -0
  57. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
  58. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
  59. package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
  60. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
  61. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
  62. package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
  63. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
  64. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
  65. package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
  66. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
  67. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
  68. package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
  69. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
  70. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
  71. package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
  72. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
  73. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
  74. package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
  75. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
  76. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
  77. package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
  78. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
  79. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
  80. package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
  81. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
  82. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
  83. package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
  84. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
  85. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
  86. package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
  87. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
  88. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
  89. package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
  90. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
  91. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
  92. package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
  93. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
  94. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
  95. package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
  96. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
  97. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
  98. package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
  99. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
  100. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
  101. package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
  102. package/es/v1/DotWrapper/props/defaultProps.js +7 -0
  103. package/es/v1/DotWrapper/props/propTypes.js +8 -0
  104. package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
  105. package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
  106. package/es/v1/DotWrapper/utils/importFiles.js +18 -0
  107. package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
  108. package/es/v1/Drawer/Drawer.js +6 -3
  109. package/es/v1/Drawer/props/defaultProps.js +2 -1
  110. package/es/v1/Drawer/props/propTypes.js +2 -1
  111. package/es/v1/GlobalNotification/GlobalNotification.js +51 -19
  112. package/es/v1/GlobalNotification/props/defaultProps.js +3 -1
  113. package/es/v1/GlobalNotification/props/propTypes.js +12 -2
  114. package/es/v1/IconButton/IconButton.js +2 -2
  115. package/es/v1/form/fields/SelectField/SelectField.js +1 -9
  116. package/es/v1/form/fields/TextBoxField/TextBoxField.js +122 -142
  117. package/es/v1/form/fields/TextEditorField/TextEditorField.js +133 -153
  118. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +137 -178
  119. package/es/v1/form/fields/TextareaField/TextareaField.js +113 -137
  120. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +43 -43
  121. package/es/v1/form/layout/Field/Field.js +24 -28
  122. package/es/v1/form/layout/Section/Section.js +25 -33
  123. package/es/v1/form/layout/Section/props/propTypes.js +0 -1
  124. package/es/v1/list/Subject/Subject.js +39 -48
  125. package/es/v1/list/TagNew/TagNew.js +18 -27
  126. package/es/v1/list/Thread/Thread.js +26 -35
  127. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
  128. package/es/v1/list/status/StatusListItem/StatusListItem.js +12 -5
  129. package/es/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
  130. package/es/v1/list/status/StatusListItem/props/propTypes.js +3 -1
  131. package/es/v1/lookup/Lookup/Lookup.js +6 -3
  132. package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -2
  133. package/lib/Drawer/Drawer.js +6 -3
  134. package/lib/Drawer/props/defaultProps.js +2 -1
  135. package/lib/Drawer/props/propTypes.js +2 -1
  136. package/lib/Hooks/Dragger/useDragger.js +4 -3
  137. package/lib/IconButton/IconButton.js +2 -2
  138. package/lib/NewStar/NewStar.module.css +128 -67
  139. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  140. package/lib/form/fields/TextEditor/TextEditor.module.css +63 -47
  141. package/lib/list/status/StatusDropdown/StatusDropdown.js +2 -1
  142. package/lib/list/status/StatusListItem/StatusListItem.js +12 -5
  143. package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
  144. package/lib/list/status/StatusListItem/props/propTypes.js +3 -1
  145. package/lib/lookup/Lookup/Lookup.js +14 -3
  146. package/lib/v1/DotWrapper/DotWrapper.js +41 -0
  147. package/lib/v1/DotWrapper/libraryChunks/appearance/component/DarkMode_Component.js +3 -0
  148. package/lib/v1/DotWrapper/libraryChunks/appearance/component/LightMode_Component.js +3 -0
  149. package/lib/v1/DotWrapper/libraryChunks/appearance/component/PureDarkMode_Component.js +3 -0
  150. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/DarkMode_Dot.js +3 -0
  151. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/LightMode_Dot.js +3 -0
  152. package/lib/v1/DotWrapper/libraryChunks/appearance/dot/PureDarkMode_Dot.js +3 -0
  153. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/DarkMode_SVG.js +3 -0
  154. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/LightMode_SVG.js +3 -0
  155. package/lib/v1/DotWrapper/libraryChunks/appearance/svg/PureDarkMode_SVG.js +3 -0
  156. package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +33 -0
  157. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
  158. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
  159. package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
  160. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
  161. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
  162. package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
  163. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
  164. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
  165. package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
  166. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
  167. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
  168. package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
  169. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
  170. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
  171. package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
  172. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
  173. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
  174. package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
  175. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
  176. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
  177. package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
  178. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
  179. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
  180. package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
  181. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
  182. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
  183. package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
  184. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
  185. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
  186. package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
  187. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
  188. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
  189. package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
  190. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
  191. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
  192. package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
  193. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
  194. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
  195. package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
  196. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
  197. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
  198. package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
  199. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
  200. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
  201. package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
  202. package/lib/v1/DotWrapper/props/defaultProps.js +14 -0
  203. package/lib/v1/DotWrapper/props/propTypes.js +19 -0
  204. package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
  205. package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
  206. package/lib/v1/DotWrapper/utils/importFiles.js +25 -0
  207. package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
  208. package/lib/v1/Drawer/Drawer.js +6 -3
  209. package/lib/v1/Drawer/props/defaultProps.js +2 -1
  210. package/lib/v1/Drawer/props/propTypes.js +2 -1
  211. package/lib/v1/GlobalNotification/GlobalNotification.js +66 -17
  212. package/lib/v1/GlobalNotification/props/defaultProps.js +3 -1
  213. package/lib/v1/GlobalNotification/props/propTypes.js +17 -4
  214. package/lib/v1/IconButton/IconButton.js +2 -2
  215. package/lib/v1/form/fields/SelectField/SelectField.js +1 -7
  216. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +125 -181
  217. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +138 -193
  218. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +160 -212
  219. package/lib/v1/form/fields/TextareaField/TextareaField.js +117 -177
  220. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +41 -80
  221. package/lib/v1/form/layout/Field/Field.js +22 -69
  222. package/lib/v1/form/layout/Section/Section.js +27 -72
  223. package/lib/v1/form/layout/Section/props/propTypes.js +0 -1
  224. package/lib/v1/list/Subject/Subject.js +39 -87
  225. package/lib/v1/list/TagNew/TagNew.js +18 -66
  226. package/lib/v1/list/Thread/Thread.js +25 -73
  227. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -1
  228. package/lib/v1/list/status/StatusListItem/StatusListItem.js +12 -5
  229. package/lib/v1/list/status/StatusListItem/props/defaultProps.js +2 -1
  230. package/lib/v1/list/status/StatusListItem/props/propTypes.js +3 -1
  231. package/lib/v1/lookup/Lookup/Lookup.js +11 -6
  232. package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -2
  233. package/package.json +13 -13
  234. package/prePublish.js +0 -69
  235. package/react-cli.config.js +6 -1
  236. package/result.json +1 -1
  237. package/unittest/index.html +1 -1
@@ -31,200 +31,145 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
33
 
34
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
-
36
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
37
-
38
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
-
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
-
44
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
45
-
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
47
-
48
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
49
-
50
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
-
52
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
-
54
- var TextEditorField = /*#__PURE__*/function (_PureComponent) {
55
- _inherits(TextEditorField, _PureComponent);
56
-
57
- var _super = _createSuper(TextEditorField);
58
-
59
- function TextEditorField(props) {
60
- var _this;
61
-
62
- _classCallCheck(this, TextEditorField);
63
-
64
- _this = _super.call(this, props);
65
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
66
- _this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
67
- _this.handleLabelClick = _this.handleLabelClick.bind(_assertThisInitialized(_this));
68
- _this.renderEnd = _this.renderEnd.bind(_assertThisInitialized(_this));
69
- return _this;
70
- }
71
-
72
- _createClass(TextEditorField, [{
73
- key: "handleChange",
74
- value: function handleChange(value) {
75
- var _this$props = this.props,
76
- id = _this$props.id,
77
- onChange = _this$props.onChange;
78
- onChange && onChange(id, value);
34
+ var TextEditorField = function TextEditorField(props) {
35
+ var labelName = props.labelName,
36
+ id = props.id,
37
+ isMandatory = props.isMandatory,
38
+ value = props.value,
39
+ validationMessage = props.validationMessage,
40
+ validationPalette = props.validationPalette,
41
+ isReadOnly = props.isReadOnly,
42
+ onAttachmentUpload = props.onAttachmentUpload,
43
+ needEditor = props.needEditor,
44
+ dataId = props.dataId,
45
+ dataSelectorId = props.dataSelectorId,
46
+ isDisabled = props.isDisabled,
47
+ fieldSize = props.fieldSize,
48
+ textBoxSize = props.textBoxSize,
49
+ textBoxVariant = props.textBoxVariant,
50
+ labelPalette = props.labelPalette,
51
+ labelCustomClass = props.labelCustomClass,
52
+ infoText = props.infoText,
53
+ isLocked = props.isLocked,
54
+ lockedInfoText = props.lockedInfoText,
55
+ errorType = props.errorType,
56
+ EDITORURL = props.EDITORURL,
57
+ editorMode = props.editorMode,
58
+ isCustomScroll = props.isCustomScroll,
59
+ initCallback = props.initCallback,
60
+ loadingComponent = props.loadingComponent,
61
+ handleAlertMessage = props.handleAlertMessage,
62
+ editorCallback = props.editorCallback,
63
+ editorBlurCallback = props.editorBlurCallback,
64
+ editorOptions = props.editorOptions,
65
+ onFocus = props.onFocus,
66
+ isEditorDefaultOpen = props.isEditorDefaultOpen,
67
+ changeEditorContent = props.changeEditorContent,
68
+ shouldEditorUpdateContent = props.shouldEditorUpdateContent,
69
+ setInlineAttachmentInProgress = props.setInlineAttachmentInProgress,
70
+ handleEditorDropUpload = props.handleEditorDropUpload,
71
+ ImgLazyLoad = props.ImgLazyLoad,
72
+ needInlineAttachment = props.needInlineAttachment,
73
+ i18nKeys = props.i18nKeys,
74
+ className = props.className,
75
+ children = props.children,
76
+ ePhiData = props.ePhiData,
77
+ customProps = props.customProps,
78
+ onChange = props.onChange,
79
+ getRef = props.getRef,
80
+ isFocusOnLabelClick = props.isFocusOnLabelClick;
81
+ var textEditorEleRef = (0, _react.useRef)(null);
82
+ var _customProps$LabelPro = customProps.LabelProps,
83
+ LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
84
+ _customProps$TextEdit = customProps.TextEditorWrapperProps,
85
+ TextEditorWrapperProps = _customProps$TextEdit === void 0 ? {} : _customProps$TextEdit,
86
+ _customProps$Validati = customProps.ValidationMessageProps,
87
+ ValidationMessageProps = _customProps$Validati === void 0 ? {} : _customProps$Validati;
88
+
89
+ var handleChange = function handleChange(value) {
90
+ onChange && onChange(id, value);
91
+ };
92
+
93
+ var handleGetRef = function handleGetRef(el) {
94
+ textEditorEleRef.current = el;
95
+ getRef && getRef(el, id);
96
+ };
97
+
98
+ var handleLabelClick = function handleLabelClick() {
99
+ if (isFocusOnLabelClick && !isDisabled && !isReadOnly && textEditorEleRef.current && textEditorEleRef.current.focus) {
100
+ textEditorEleRef.current.focus();
79
101
  }
80
- }, {
81
- key: "handleGetRef",
82
- value: function handleGetRef(el) {
83
- var _this$props2 = this.props,
84
- getRef = _this$props2.getRef,
85
- id = _this$props2.id;
86
- this.textEditor = el;
87
- getRef && getRef(el, id);
102
+ };
103
+
104
+ var renderEnd = function renderEnd() {
105
+ return children ? children : null;
106
+ };
107
+
108
+ return /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(className || ''),
110
+ "data-selector-id": dataSelectorId
111
+ }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
112
+ infoText: infoText,
113
+ isLocked: isLocked,
114
+ lockedInfoText: lockedInfoText,
115
+ ePhiData: ePhiData,
116
+ dataId: dataId,
117
+ renderProps: {
118
+ end: renderEnd
88
119
  }
89
- }, {
90
- key: "handleLabelClick",
91
- value: function handleLabelClick() {
92
- var _this$props3 = this.props,
93
- isFocusOnLabelClick = _this$props3.isFocusOnLabelClick,
94
- isDisabled = _this$props3.isDisabled,
95
- isReadOnly = _this$props3.isReadOnly;
96
-
97
- if (isFocusOnLabelClick && !isDisabled && !isReadOnly && this.textEditor && this.textEditor.focus) {
98
- this.textEditor.focus();
99
- }
100
- }
101
- }, {
102
- key: "renderEnd",
103
- value: function renderEnd() {
104
- var children = this.props.children;
105
- return children ? children : null;
106
- }
107
- }, {
108
- key: "render",
109
- value: function render() {
110
- var _this$props4 = this.props,
111
- labelName = _this$props4.labelName,
112
- id = _this$props4.id,
113
- isMandatory = _this$props4.isMandatory,
114
- value = _this$props4.value,
115
- validationMessage = _this$props4.validationMessage,
116
- validationPalette = _this$props4.validationPalette,
117
- isReadOnly = _this$props4.isReadOnly,
118
- onAttachmentUpload = _this$props4.onAttachmentUpload,
119
- needEditor = _this$props4.needEditor,
120
- dataId = _this$props4.dataId,
121
- dataSelectorId = _this$props4.dataSelectorId,
122
- isDisabled = _this$props4.isDisabled,
123
- fieldSize = _this$props4.fieldSize,
124
- textBoxSize = _this$props4.textBoxSize,
125
- textBoxVariant = _this$props4.textBoxVariant,
126
- labelPalette = _this$props4.labelPalette,
127
- labelCustomClass = _this$props4.labelCustomClass,
128
- infoText = _this$props4.infoText,
129
- isLocked = _this$props4.isLocked,
130
- lockedInfoText = _this$props4.lockedInfoText,
131
- errorType = _this$props4.errorType,
132
- EDITORURL = _this$props4.EDITORURL,
133
- editorMode = _this$props4.editorMode,
134
- isCustomScroll = _this$props4.isCustomScroll,
135
- initCallback = _this$props4.initCallback,
136
- loadingComponent = _this$props4.loadingComponent,
137
- handleAlertMessage = _this$props4.handleAlertMessage,
138
- editorCallback = _this$props4.editorCallback,
139
- editorBlurCallback = _this$props4.editorBlurCallback,
140
- editorOptions = _this$props4.editorOptions,
141
- onFocus = _this$props4.onFocus,
142
- isEditorDefaultOpen = _this$props4.isEditorDefaultOpen,
143
- changeEditorContent = _this$props4.changeEditorContent,
144
- shouldEditorUpdateContent = _this$props4.shouldEditorUpdateContent,
145
- setInlineAttachmentInProgress = _this$props4.setInlineAttachmentInProgress,
146
- handleEditorDropUpload = _this$props4.handleEditorDropUpload,
147
- ImgLazyLoad = _this$props4.ImgLazyLoad,
148
- needInlineAttachment = _this$props4.needInlineAttachment,
149
- i18nKeys = _this$props4.i18nKeys,
150
- className = _this$props4.className,
151
- children = _this$props4.children,
152
- ePhiData = _this$props4.ePhiData,
153
- customProps = _this$props4.customProps;
154
- var _customProps$LabelPro = customProps.LabelProps,
155
- LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
156
- _customProps$TextEdit = customProps.TextEditorWrapperProps,
157
- TextEditorWrapperProps = _customProps$TextEdit === void 0 ? {} : _customProps$TextEdit,
158
- _customProps$Validati = customProps.ValidationMessageProps,
159
- ValidationMessageProps = _customProps$Validati === void 0 ? {} : _customProps$Validati;
160
- return /*#__PURE__*/_react["default"].createElement("div", {
161
- className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(className || ''),
162
- "data-selector-id": dataSelectorId
163
- }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
164
- infoText: infoText,
165
- isLocked: isLocked,
166
- lockedInfoText: lockedInfoText,
167
- ePhiData: ePhiData,
168
- dataId: dataId,
169
- renderProps: {
170
- end: this.renderEnd
171
- }
172
- }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
173
- text: labelName,
174
- size: fieldSize === 'small' ? 'small' : 'medium',
175
- htmlFor: !isReadOnly && !isDisabled ? id : undefined,
176
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
177
- onClick: this.handleLabelClick,
178
- customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
179
- dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
180
- }, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
181
- className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
182
- }, /*#__PURE__*/_react["default"].createElement(_TextEditorWrapper["default"], _extends({
183
- needEditor: needEditor,
184
- onChange: this.handleChange,
185
- id: id,
186
- value: value,
187
- isReadOnly: isReadOnly,
188
- getRef: this.handleGetRef,
189
- onAttachmentUpload: onAttachmentUpload,
190
- dataId: dataId,
191
- isDisabled: isDisabled,
192
- textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
193
- textBoxVariant: textBoxVariant,
194
- EDITORURL: EDITORURL,
195
- editorMode: editorMode,
196
- isCustomScroll: isCustomScroll,
197
- initCallback: initCallback,
198
- loadingComponent: loadingComponent,
199
- handleAlertMessage: handleAlertMessage,
200
- editorCallback: editorCallback,
201
- i18nKeys: i18nKeys,
202
- ImgLazyLoad: ImgLazyLoad,
203
- editorOptions: editorOptions,
204
- editorBlurCallback: editorBlurCallback,
205
- onFocus: onFocus,
206
- isEditorDefaultOpen: isEditorDefaultOpen,
207
- changeEditorContent: changeEditorContent,
208
- shouldEditorUpdateContent: shouldEditorUpdateContent,
209
- setInlineAttachmentInProgress: setInlineAttachmentInProgress,
210
- handleEditorDropUpload: handleEditorDropUpload,
211
- needInlineAttachment: needInlineAttachment
212
- }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
213
- text: validationMessage,
214
- palette: validationPalette,
215
- type: errorType,
216
- dataId: "".concat(dataId, "_ValidationMessage")
217
- }, ValidationMessageProps)));
218
- }
219
- }]);
220
-
221
- return TextEditorField;
222
- }(_react.PureComponent);
120
+ }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
121
+ text: labelName,
122
+ size: fieldSize === 'small' ? 'small' : 'medium',
123
+ htmlFor: !isReadOnly && !isDisabled ? id : undefined,
124
+ palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
125
+ onClick: handleLabelClick,
126
+ customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
127
+ dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
128
+ }, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
130
+ }, /*#__PURE__*/_react["default"].createElement(_TextEditorWrapper["default"], _extends({
131
+ needEditor: needEditor,
132
+ onChange: handleChange,
133
+ id: id,
134
+ value: value,
135
+ isReadOnly: isReadOnly,
136
+ getRef: handleGetRef,
137
+ onAttachmentUpload: onAttachmentUpload,
138
+ dataId: dataId,
139
+ isDisabled: isDisabled,
140
+ textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
141
+ textBoxVariant: textBoxVariant,
142
+ EDITORURL: EDITORURL,
143
+ editorMode: editorMode,
144
+ isCustomScroll: isCustomScroll,
145
+ initCallback: initCallback,
146
+ loadingComponent: loadingComponent,
147
+ handleAlertMessage: handleAlertMessage,
148
+ editorCallback: editorCallback,
149
+ i18nKeys: i18nKeys,
150
+ ImgLazyLoad: ImgLazyLoad,
151
+ editorOptions: editorOptions,
152
+ editorBlurCallback: editorBlurCallback,
153
+ onFocus: onFocus,
154
+ isEditorDefaultOpen: isEditorDefaultOpen,
155
+ changeEditorContent: changeEditorContent,
156
+ shouldEditorUpdateContent: shouldEditorUpdateContent,
157
+ setInlineAttachmentInProgress: setInlineAttachmentInProgress,
158
+ handleEditorDropUpload: handleEditorDropUpload,
159
+ needInlineAttachment: needInlineAttachment
160
+ }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
161
+ text: validationMessage,
162
+ palette: validationPalette,
163
+ type: errorType,
164
+ dataId: "".concat(dataId, "_ValidationMessage")
165
+ }, ValidationMessageProps)));
166
+ };
223
167
 
224
- exports["default"] = TextEditorField;
225
168
  TextEditorField.propTypes = _propTypes.propTypes;
226
- TextEditorField.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
227
- // TextEditorField.docs = {
228
- // componentGroup: 'Fields'
229
- // };
230
- // }
169
+ TextEditorField.defaultProps = _defaultProps.defaultProps;
170
+ var MemoizedTextEditorField = /*#__PURE__*/(0, _react.memo)(TextEditorField);
171
+ MemoizedTextEditorField.propTypes = _propTypes.propTypes;
172
+ MemoizedTextEditorField.defaultProps = _defaultProps.defaultProps;
173
+ MemoizedTextEditorField.displayName = 'TextEditorField';
174
+ var _default = TextEditorField;
175
+ exports["default"] = _default;