@elyra/canvas 12.9.0 → 12.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/.eslintrc.js +1 -1
  2. package/README.md +1 -1
  3. package/build.sh +1 -1
  4. package/dist/canvas-constants-af93267a.js +2 -0
  5. package/dist/canvas-constants-af93267a.js.map +1 -0
  6. package/dist/canvas-constants-ffce3b78.js +2 -0
  7. package/dist/canvas-constants-ffce3b78.js.map +1 -0
  8. package/dist/canvas-controller-3f67c4fb.js +2 -0
  9. package/dist/canvas-controller-3f67c4fb.js.map +1 -0
  10. package/dist/canvas-controller-cee447d2.js +2 -0
  11. package/dist/canvas-controller-cee447d2.js.map +1 -0
  12. package/dist/common-canvas-e212a9c1.js +2 -0
  13. package/dist/common-canvas-e212a9c1.js.map +1 -0
  14. package/dist/common-canvas-e98191b3.js +2 -0
  15. package/dist/common-canvas-e98191b3.js.map +1 -0
  16. package/dist/common-canvas.es.js +1 -1
  17. package/dist/common-canvas.es.js.map +1 -1
  18. package/dist/common-canvas.js +1 -1
  19. package/dist/common-canvas.js.map +1 -1
  20. package/dist/common-properties-653e50e3.js +2 -0
  21. package/dist/common-properties-653e50e3.js.map +1 -0
  22. package/dist/common-properties-e2c6def7.js +2 -0
  23. package/dist/common-properties-e2c6def7.js.map +1 -0
  24. package/dist/datarecord-metadata-v3-schema-10ddafaf.js +2 -0
  25. package/dist/datarecord-metadata-v3-schema-10ddafaf.js.map +1 -0
  26. package/dist/datarecord-metadata-v3-schema-1504c843.js +2 -0
  27. package/dist/datarecord-metadata-v3-schema-1504c843.js.map +1 -0
  28. package/dist/{en-3f6094d9.js → en-517f38fc.js} +2 -2
  29. package/dist/{en-3f6094d9.js.map → en-517f38fc.js.map} +1 -1
  30. package/dist/{en-8e5bfa1b.js → en-dc6f2e9f.js} +2 -2
  31. package/dist/{en-8e5bfa1b.js.map → en-dc6f2e9f.js.map} +1 -1
  32. package/dist/extends-5a45f92e.js +7 -0
  33. package/dist/extends-5a45f92e.js.map +1 -0
  34. package/dist/extends-a52336ca.js +8 -0
  35. package/dist/extends-a52336ca.js.map +1 -0
  36. package/dist/flexible-table-e6ccbe58.js +2 -0
  37. package/dist/flexible-table-e6ccbe58.js.map +1 -0
  38. package/dist/flexible-table-f60c1680.js +2 -0
  39. package/dist/flexible-table-f60c1680.js.map +1 -0
  40. package/dist/index-567978da.js +2 -0
  41. package/dist/{index-c21aec1b.js.map → index-567978da.js.map} +1 -1
  42. package/dist/index-59486e9a.js +2 -0
  43. package/dist/{index-7e2e5c97.js.map → index-59486e9a.js.map} +1 -1
  44. package/dist/isEmpty-def8f509.js +2 -0
  45. package/dist/{isEmpty-5d2981b6.js.map → isEmpty-def8f509.js.map} +1 -1
  46. package/dist/isEmpty-e171b734.js +2 -0
  47. package/dist/{isEmpty-6528e7c8.js.map → isEmpty-e171b734.js.map} +1 -1
  48. package/dist/lib/canvas-controller.es.js +2 -0
  49. package/dist/lib/canvas-controller.es.js.map +1 -0
  50. package/dist/lib/canvas-controller.js +2 -0
  51. package/dist/lib/canvas-controller.js.map +1 -0
  52. package/dist/lib/canvas.es.js +1 -1
  53. package/dist/lib/canvas.js +1 -1
  54. package/dist/lib/command-stack.es.js.map +1 -1
  55. package/dist/lib/command-stack.js.map +1 -1
  56. package/dist/lib/context-menu.es.js +1 -1
  57. package/dist/lib/context-menu.es.js.map +1 -1
  58. package/dist/lib/context-menu.js +1 -1
  59. package/dist/lib/context-menu.js.map +1 -1
  60. package/dist/lib/properties/field-picker.es.js +1 -1
  61. package/dist/lib/properties/field-picker.js +1 -1
  62. package/dist/lib/properties/flexible-table.es.js +1 -1
  63. package/dist/lib/properties/flexible-table.js +1 -1
  64. package/dist/lib/properties.es.js +1 -1
  65. package/dist/lib/properties.js +1 -1
  66. package/dist/lib/tooltip.es.js +1 -1
  67. package/dist/lib/tooltip.es.js.map +1 -1
  68. package/dist/lib/tooltip.js +1 -1
  69. package/dist/lib/tooltip.js.map +1 -1
  70. package/dist/styles/common-canvas.min.css +1 -1
  71. package/dist/styles/common-canvas.min.css.map +1 -1
  72. package/dist/toolbar-404bf690.js +2 -0
  73. package/dist/toolbar-404bf690.js.map +1 -0
  74. package/dist/toolbar-611d8ab9.js +2 -0
  75. package/dist/toolbar-611d8ab9.js.map +1 -0
  76. package/locales/command-actions/locales/index.js +1 -1
  77. package/locales/common-canvas/locales/index.js +1 -1
  78. package/locales/common-properties/locales/index.js +1 -1
  79. package/locales/palette/locales/index.js +1 -1
  80. package/locales/toolbar/locales/index.js +1 -1
  81. package/package.json +7 -4
  82. package/rollup.config.js +11 -8
  83. package/src/.eslintrc.js +1 -1
  84. package/src/command-actions/arrangeLayoutAction.js +1 -1
  85. package/src/command-actions/attachNodeToLinksAction.js +1 -1
  86. package/src/command-actions/collapseSuperNodeInPlaceAction.js +1 -1
  87. package/src/command-actions/commonPropertiesAction.js +1 -1
  88. package/src/command-actions/convertSuperNodeExternalToLocalAction.js +1 -1
  89. package/src/command-actions/convertSuperNodeLocalToExternalAction.js +1 -1
  90. package/src/command-actions/createAutoNodeAction.js +1 -1
  91. package/src/command-actions/createCommentAction.js +1 -1
  92. package/src/command-actions/createCommentLinkAction.js +1 -1
  93. package/src/command-actions/createNodeAction.js +1 -1
  94. package/src/command-actions/createNodeAttachLinksAction.js +1 -1
  95. package/src/command-actions/createNodeLinkAction.js +1 -1
  96. package/src/command-actions/createNodeLinkDetachedAction.js +1 -1
  97. package/src/command-actions/createNodeOnLinkAction.js +1 -1
  98. package/src/command-actions/createSuperNodeAction.js +1 -1
  99. package/src/command-actions/deconstructSuperNodeAction.js +1 -1
  100. package/src/command-actions/deleteLinkAction.js +1 -1
  101. package/src/command-actions/deleteObjectsAction.js +1 -1
  102. package/src/command-actions/disconnectObjectsAction.js +1 -1
  103. package/src/command-actions/displayPreviousPipelineAction.js +1 -1
  104. package/src/command-actions/displaySubPipelineAction.js +1 -1
  105. package/src/command-actions/editCommentAction.js +1 -1
  106. package/src/command-actions/editDecorationLabelAction.js +1 -1
  107. package/src/command-actions/expandSuperNodeInPlaceAction.js +1 -1
  108. package/src/command-actions/insertNodeIntoLinkAction.js +1 -1
  109. package/src/command-actions/moveObjectsAction.js +1 -1
  110. package/src/command-actions/pasteAction.js +1 -1
  111. package/src/command-actions/saveToPaletteAction.js +1 -1
  112. package/src/command-actions/setLinksStyleAction.js +2 -2
  113. package/src/command-actions/setNodeLabelAction.js +1 -1
  114. package/src/command-actions/setObjectsStyleAction.js +2 -2
  115. package/src/command-actions/sizeAndPositionObjectsAction.js +1 -1
  116. package/src/command-actions/updateLinkAction.js +1 -1
  117. package/src/command-stack/action.js +1 -1
  118. package/src/command-stack/command-stack.js +1 -1
  119. package/src/common-canvas/canvas-controller.js +79 -10
  120. package/src/common-canvas/cc-bottom-panel.jsx +28 -37
  121. package/src/common-canvas/cc-central-items.jsx +1 -1
  122. package/src/common-canvas/cc-contents.jsx +12 -4
  123. package/src/common-canvas/cc-context-menu.jsx +1 -1
  124. package/src/common-canvas/cc-right-flyout.jsx +1 -1
  125. package/src/common-canvas/cc-toolbar.jsx +14 -9
  126. package/src/common-canvas/common-canvas-utils.js +1 -1
  127. package/src/common-canvas/common-canvas.jsx +25 -5
  128. package/src/common-canvas/common-canvas.scss +24 -10
  129. package/src/common-canvas/d3-zoom-extension/.eslintrc.js +1 -1
  130. package/src/common-canvas/index.js +1 -1
  131. package/src/common-canvas/label-util.js +1 -1
  132. package/src/common-canvas/local-storage.js +1 -1
  133. package/src/common-canvas/svg-canvas-d3.js +40 -33
  134. package/src/common-canvas/svg-canvas-d3.scss +2 -3
  135. package/src/common-canvas/svg-canvas-renderer.js +56 -35
  136. package/src/common-canvas/svg-canvas-utils-comments.js +1 -1
  137. package/src/common-canvas/svg-canvas-utils-decs.js +1 -1
  138. package/src/common-canvas/svg-canvas-utils-display.js +1 -1
  139. package/src/common-canvas/svg-canvas-utils-links.js +1 -1
  140. package/src/common-canvas/svg-canvas-utils-nodes.js +1 -1
  141. package/src/common-properties/actions/action-factory.js +1 -1
  142. package/src/common-properties/actions/actions.scss +1 -1
  143. package/src/common-properties/actions/button/button.jsx +1 -1
  144. package/src/common-properties/actions/button/button.scss +1 -1
  145. package/src/common-properties/actions/button/index.js +1 -1
  146. package/src/common-properties/actions/image/image.jsx +1 -1
  147. package/src/common-properties/actions/image/image.scss +1 -1
  148. package/src/common-properties/actions/image/index.js +1 -1
  149. package/src/common-properties/actions.js +1 -1
  150. package/src/common-properties/common-properties.jsx +1 -1
  151. package/src/common-properties/components/components.scss +1 -1
  152. package/src/common-properties/components/control-item/control-item.jsx +1 -1
  153. package/src/common-properties/components/control-item/control-item.scss +1 -1
  154. package/src/common-properties/components/control-item/index.js +1 -1
  155. package/src/common-properties/components/editor-form/editor-form.jsx +1 -1
  156. package/src/common-properties/components/editor-form/editor-form.scss +1 -1
  157. package/src/common-properties/components/editor-form/index.js +1 -1
  158. package/src/common-properties/components/empty-table/empty-table.jsx +1 -1
  159. package/src/common-properties/components/empty-table/empty-table.scss +1 -1
  160. package/src/common-properties/components/empty-table/index.js +1 -1
  161. package/src/common-properties/components/field-picker/field-picker.jsx +1 -1
  162. package/src/common-properties/components/field-picker/field-picker.scss +1 -1
  163. package/src/common-properties/components/field-picker/index.js +1 -1
  164. package/src/common-properties/components/flexible-table/flexible-table.jsx +1 -1
  165. package/src/common-properties/components/flexible-table/index.js +1 -1
  166. package/src/common-properties/components/main-editor-properties-buttons/index.js +1 -1
  167. package/src/common-properties/components/main-editor-properties-buttons/main-editor-properties-buttons.jsx +1 -1
  168. package/src/common-properties/components/moveable-table-rows/index.js +1 -1
  169. package/src/common-properties/components/moveable-table-rows/moveable-table-rows.jsx +1 -1
  170. package/src/common-properties/components/moveable-table-rows/moveable-table-rows.scss +1 -1
  171. package/src/common-properties/components/properties-buttons/index.js +1 -1
  172. package/src/common-properties/components/properties-buttons/properties-buttons.jsx +1 -1
  173. package/src/common-properties/components/properties-buttons/properties-buttons.scss +1 -1
  174. package/src/common-properties/components/properties-editor/index.js +1 -1
  175. package/src/common-properties/components/properties-editor/properties-editor.jsx +1 -1
  176. package/src/common-properties/components/properties-modal/index.js +1 -1
  177. package/src/common-properties/components/properties-modal/properties-modal.jsx +1 -1
  178. package/src/common-properties/components/properties-modal/properties-modal.scss +1 -1
  179. package/src/common-properties/components/title-editor/index.js +1 -1
  180. package/src/common-properties/components/title-editor/title-editor.jsx +1 -1
  181. package/src/common-properties/components/title-editor/title-editor.scss +1 -1
  182. package/src/common-properties/components/truncated-content-tooltip/index.js +1 -1
  183. package/src/common-properties/components/truncated-content-tooltip/truncated-content-tooltip.jsx +7 -2
  184. package/src/common-properties/components/truncated-content-tooltip/truncated-content-tooltip.scss +1 -1
  185. package/src/common-properties/components/validation-message/index.js +1 -1
  186. package/src/common-properties/components/validation-message/validation-message.jsx +1 -1
  187. package/src/common-properties/components/validation-message/validation-message.scss +1 -1
  188. package/src/common-properties/components/virtualized-table/index.js +1 -1
  189. package/src/common-properties/components/virtualized-table/virtualized-table.jsx +2 -3
  190. package/src/common-properties/components/virtualized-table/virtualized-table.scss +1 -1
  191. package/src/common-properties/components/wide-flyout/index.js +1 -1
  192. package/src/common-properties/components/wide-flyout/wide-flyout.jsx +1 -1
  193. package/src/common-properties/components/wide-flyout/wide-flyout.scss +1 -1
  194. package/src/common-properties/constants/constants.js +2 -2
  195. package/src/common-properties/constants/form-constants.js +1 -1
  196. package/src/common-properties/controls/abstract-table.jsx +1 -1
  197. package/src/common-properties/controls/abstract-table.scss +1 -1
  198. package/src/common-properties/controls/checkbox/checkbox.jsx +1 -1
  199. package/src/common-properties/controls/checkbox/checkbox.scss +1 -1
  200. package/src/common-properties/controls/checkbox/index.js +1 -1
  201. package/src/common-properties/controls/checkboxset/checkboxset.jsx +1 -1
  202. package/src/common-properties/controls/checkboxset/checkboxset.scss +1 -1
  203. package/src/common-properties/controls/checkboxset/index.js +1 -1
  204. package/src/common-properties/controls/control-factory.js +1 -1
  205. package/src/common-properties/controls/controls.scss +1 -1
  206. package/src/common-properties/controls/datefield/datefield.jsx +32 -32
  207. package/src/common-properties/controls/datefield/index.js +1 -1
  208. package/src/common-properties/controls/dropdown/dropdown.jsx +1 -1
  209. package/src/common-properties/controls/dropdown/dropdown.scss +1 -1
  210. package/src/common-properties/controls/dropdown/index.js +1 -1
  211. package/src/common-properties/controls/expression/expression-builder/expression-builder.jsx +1 -1
  212. package/src/common-properties/controls/expression/expression-builder/expression-builder.scss +1 -1
  213. package/src/common-properties/controls/expression/expression-builder/expression-select-field-function.jsx +1 -1
  214. package/src/common-properties/controls/expression/expression-builder/expression-select-operator.jsx +1 -1
  215. package/src/common-properties/controls/expression/expression-builder/expression-selection-panel.jsx +1 -1
  216. package/src/common-properties/controls/expression/expression.jsx +1 -1
  217. package/src/common-properties/controls/expression/expression.scss +1 -1
  218. package/src/common-properties/controls/expression/expressionInfo-parser.js +1 -1
  219. package/src/common-properties/controls/expression/index.js +1 -1
  220. package/src/common-properties/controls/expression/languages/CLEM-hint.js +1 -1
  221. package/src/common-properties/controls/expression/languages/python-hint.js +1 -1
  222. package/src/common-properties/controls/expression/languages/r-hint.js +1 -1
  223. package/src/common-properties/controls/list/index.js +1 -1
  224. package/src/common-properties/controls/list/list.jsx +1 -1
  225. package/src/common-properties/controls/multiselect/index.js +1 -1
  226. package/src/common-properties/controls/multiselect/multiselect.jsx +1 -1
  227. package/src/common-properties/controls/multiselect/multiselect.scss +1 -1
  228. package/src/common-properties/controls/numberfield/index.js +1 -1
  229. package/src/common-properties/controls/numberfield/numberfield.jsx +1 -1
  230. package/src/common-properties/controls/numberfield/numberfield.scss +1 -1
  231. package/src/common-properties/controls/passwordfield/index.js +1 -1
  232. package/src/common-properties/controls/passwordfield/passwordfield.jsx +1 -1
  233. package/src/common-properties/controls/radioset/index.js +1 -1
  234. package/src/common-properties/controls/radioset/radioset.jsx +1 -1
  235. package/src/common-properties/controls/radioset/radioset.scss +1 -1
  236. package/src/common-properties/controls/readonly/index.js +1 -1
  237. package/src/common-properties/controls/readonly/readonly.jsx +13 -8
  238. package/src/common-properties/controls/readonly/readonly.scss +1 -1
  239. package/src/common-properties/controls/readonlytable/index.js +1 -1
  240. package/src/common-properties/controls/readonlytable/readonlytable.jsx +1 -1
  241. package/src/common-properties/controls/selectcolumns/index.js +1 -1
  242. package/src/common-properties/controls/selectcolumns/selectcolumns.jsx +1 -1
  243. package/src/common-properties/controls/selectcolumns/selectcolumns.scss +1 -1
  244. package/src/common-properties/controls/someofselect/index.js +1 -1
  245. package/src/common-properties/controls/someofselect/someofselect.jsx +1 -1
  246. package/src/common-properties/controls/someofselect/someofselect.scss +1 -1
  247. package/src/common-properties/controls/structureeditor/index.js +1 -1
  248. package/src/common-properties/controls/structureeditor/structureeditor.jsx +1 -1
  249. package/src/common-properties/controls/structureeditor/structureeditor.scss +1 -1
  250. package/src/common-properties/controls/structurelisteditor/index.js +1 -1
  251. package/src/common-properties/controls/structurelisteditor/structurelisteditor.jsx +1 -1
  252. package/src/common-properties/controls/structuretable/index.js +1 -1
  253. package/src/common-properties/controls/structuretable/structuretable.jsx +1 -1
  254. package/src/common-properties/controls/textarea/index.js +1 -1
  255. package/src/common-properties/controls/textarea/textarea.jsx +1 -1
  256. package/src/common-properties/controls/textarea/textarea.scss +1 -1
  257. package/src/common-properties/controls/textfield/index.js +1 -1
  258. package/src/common-properties/controls/textfield/textfield.jsx +1 -1
  259. package/src/common-properties/controls/textfield/textfield.scss +1 -1
  260. package/src/common-properties/controls/timefield/index.js +1 -1
  261. package/src/common-properties/controls/timefield/timefield.jsx +32 -33
  262. package/src/common-properties/controls/toggletext/index.js +1 -1
  263. package/src/common-properties/controls/toggletext/toggletext.jsx +1 -1
  264. package/src/common-properties/controls/toggletext/toggletext.scss +1 -1
  265. package/src/common-properties/form/ActionInfo.js +1 -1
  266. package/src/common-properties/form/Conditions.js +1 -1
  267. package/src/common-properties/form/ControlInfo.js +1 -1
  268. package/src/common-properties/form/EditorForm.js +1 -1
  269. package/src/common-properties/form/Form.js +1 -1
  270. package/src/common-properties/form/GroupInfo.js +1 -1
  271. package/src/common-properties/form/ParameterInfo.js +1 -1
  272. package/src/common-properties/form/PropertyDef.js +1 -1
  273. package/src/common-properties/form/StructureInfo.js +1 -1
  274. package/src/common-properties/form/UIItem.js +1 -1
  275. package/src/common-properties/index.js +1 -1
  276. package/src/common-properties/index.scss +1 -1
  277. package/src/common-properties/panels/action-panel/action-panel.jsx +1 -1
  278. package/src/common-properties/panels/action-panel/action-panel.scss +1 -1
  279. package/src/common-properties/panels/action-panel/index.js +1 -1
  280. package/src/common-properties/panels/column/column.jsx +1 -1
  281. package/src/common-properties/panels/column/column.scss +1 -1
  282. package/src/common-properties/panels/column/index.js +1 -1
  283. package/src/common-properties/panels/control/control.jsx +1 -1
  284. package/src/common-properties/panels/control/control.scss +1 -1
  285. package/src/common-properties/panels/control/index.js +1 -1
  286. package/src/common-properties/panels/panels.scss +1 -1
  287. package/src/common-properties/panels/selector/index.js +1 -1
  288. package/src/common-properties/panels/selector/selector.jsx +1 -1
  289. package/src/common-properties/panels/sub-panel/button.jsx +1 -1
  290. package/src/common-properties/panels/sub-panel/cell.jsx +1 -1
  291. package/src/common-properties/panels/sub-panel/invoker.jsx +1 -1
  292. package/src/common-properties/panels/sub-panel/sub-panel.scss +1 -1
  293. package/src/common-properties/panels/subtabs/index.js +1 -1
  294. package/src/common-properties/panels/subtabs/subtabs.jsx +1 -1
  295. package/src/common-properties/panels/subtabs/subtabs.scss +1 -1
  296. package/src/common-properties/panels/summary/index.js +1 -1
  297. package/src/common-properties/panels/summary/summary.jsx +1 -1
  298. package/src/common-properties/panels/summary/summary.scss +1 -1
  299. package/src/common-properties/panels/text-panel/index.js +1 -1
  300. package/src/common-properties/panels/text-panel/text-panel.jsx +1 -1
  301. package/src/common-properties/panels/text-panel/text-panel.scss +1 -1
  302. package/src/common-properties/panels/twisty/index.js +1 -1
  303. package/src/common-properties/panels/twisty/twisty.jsx +1 -1
  304. package/src/common-properties/panels/twisty/twisty.scss +1 -1
  305. package/src/common-properties/properties-controller.js +1 -1
  306. package/src/common-properties/properties-main/index.js +1 -1
  307. package/src/common-properties/properties-main/properties-main-widths.scss +1 -1
  308. package/src/common-properties/properties-main/properties-main.jsx +1 -1
  309. package/src/common-properties/properties-main/properties-main.scss +1 -1
  310. package/src/common-properties/properties-store.js +1 -1
  311. package/src/common-properties/reducers/action-states.js +1 -1
  312. package/src/common-properties/reducers/component-metadata.js +1 -1
  313. package/src/common-properties/reducers/control-states.js +1 -1
  314. package/src/common-properties/reducers/dataset-metadata.js +1 -1
  315. package/src/common-properties/reducers/disable-row-move-buttons.js +1 -1
  316. package/src/common-properties/reducers/error-messages.js +1 -1
  317. package/src/common-properties/reducers/panel-states.js +1 -1
  318. package/src/common-properties/reducers/properties.js +1 -1
  319. package/src/common-properties/reducers/row-selections.js +1 -1
  320. package/src/common-properties/reducers/row-static.js +1 -1
  321. package/src/common-properties/reducers/save-button-disable.jsx +1 -1
  322. package/src/common-properties/schema-validator/properties-schema-validator.js +2 -2
  323. package/src/common-properties/ui-conditions/condition-ops/cellNotEmpty.js +1 -1
  324. package/src/common-properties/ui-conditions/condition-ops/colDoesExists.js +1 -1
  325. package/src/common-properties/ui-conditions/condition-ops/colNotExists.js +1 -1
  326. package/src/common-properties/ui-conditions/condition-ops/condition-ops.js +1 -1
  327. package/src/common-properties/ui-conditions/condition-ops/contains.js +1 -1
  328. package/src/common-properties/ui-conditions/condition-ops/dmMeasurementEquals.js +1 -1
  329. package/src/common-properties/ui-conditions/condition-ops/dmMeasurementNotEquals.js +1 -1
  330. package/src/common-properties/ui-conditions/condition-ops/dmRoleEquals.js +1 -1
  331. package/src/common-properties/ui-conditions/condition-ops/dmRoleNotEquals.js +1 -1
  332. package/src/common-properties/ui-conditions/condition-ops/dmTypeEquals.js +1 -1
  333. package/src/common-properties/ui-conditions/condition-ops/dmTypeNotEquals.js +1 -1
  334. package/src/common-properties/ui-conditions/condition-ops/equals.js +1 -1
  335. package/src/common-properties/ui-conditions/condition-ops/greaterThan.js +1 -1
  336. package/src/common-properties/ui-conditions/condition-ops/isDateTime.js +7 -5
  337. package/src/common-properties/ui-conditions/condition-ops/isEmpty.js +1 -1
  338. package/src/common-properties/ui-conditions/condition-ops/isNotEmpty.js +1 -1
  339. package/src/common-properties/ui-conditions/condition-ops/lengthEquals.js +1 -1
  340. package/src/common-properties/ui-conditions/condition-ops/lengthGreaterThan.js +1 -1
  341. package/src/common-properties/ui-conditions/condition-ops/lengthLessThan.js +1 -1
  342. package/src/common-properties/ui-conditions/condition-ops/lessThan.js +1 -1
  343. package/src/common-properties/ui-conditions/condition-ops/matches.js +1 -1
  344. package/src/common-properties/ui-conditions/condition-ops/notContains.js +1 -1
  345. package/src/common-properties/ui-conditions/condition-ops/notEquals.js +1 -1
  346. package/src/common-properties/ui-conditions/condition-ops/notMatches.js +1 -1
  347. package/src/common-properties/ui-conditions/conditions-utils.js +1 -1
  348. package/src/common-properties/ui-conditions/ui-conditions-parser.js +1 -1
  349. package/src/common-properties/ui-conditions/ui-conditions.js +1 -1
  350. package/src/common-properties/ui-conditions/ui-groups-parser.js +1 -1
  351. package/src/common-properties/util/L10nProvider.js +1 -1
  352. package/src/common-properties/util/control-utils.js +1 -1
  353. package/src/common-properties/util/property-utils.js +1 -1
  354. package/src/context-menu/common-context-menu.jsx +12 -3
  355. package/src/context-menu/context-menu-wrapper.jsx +1 -1
  356. package/src/context-menu/context-menu.scss +1 -1
  357. package/src/flow-validation/validate-flow.js +2 -2
  358. package/src/icons/icon.jsx +1 -1
  359. package/src/icons/icon.scss +1 -1
  360. package/src/index.js +1 -1
  361. package/src/index.scss +1 -1
  362. package/src/logging/canvas-logger.js +1 -1
  363. package/src/notification-panel/notification-panel.jsx +1 -1
  364. package/src/notification-panel/notification-panel.scss +1 -1
  365. package/src/object-model/api-pipeline.js +9 -37
  366. package/src/object-model/canvas-in-handler.js +2 -2
  367. package/src/object-model/canvas-out-handler.js +1 -1
  368. package/src/object-model/config-utils.js +2 -2
  369. package/src/object-model/layout-dimensions.js +1 -1
  370. package/src/object-model/object-model.js +1 -1
  371. package/src/object-model/pipeline-in-handler.js +2 -3
  372. package/src/object-model/pipeline-out-handler.js +1 -1
  373. package/src/object-model/redux/canvas-store.js +69 -1
  374. package/src/object-model/redux/reducers/bottompanel.js +1 -1
  375. package/src/object-model/redux/reducers/breadcrumbs.js +1 -1
  376. package/src/object-model/redux/reducers/canvasconfig.js +1 -1
  377. package/src/object-model/redux/reducers/canvasinfo.js +1 -1
  378. package/src/object-model/redux/reducers/canvastoolbar.js +1 -1
  379. package/src/object-model/redux/reducers/categories.js +1 -1
  380. package/src/object-model/redux/reducers/comments.js +1 -1
  381. package/src/object-model/redux/reducers/contextmenu.js +1 -1
  382. package/src/object-model/redux/reducers/externalpipelineflows.js +1 -1
  383. package/src/object-model/redux/reducers/links.js +1 -1
  384. package/src/object-model/redux/reducers/nodes.js +1 -1
  385. package/src/object-model/redux/reducers/nodetypes.js +1 -1
  386. package/src/object-model/redux/reducers/notificationpanel.js +1 -1
  387. package/src/object-model/redux/reducers/notifications.js +1 -1
  388. package/src/object-model/redux/reducers/palette.js +1 -1
  389. package/src/object-model/redux/reducers/ports.js +1 -1
  390. package/src/object-model/redux/reducers/rightflyout.js +1 -1
  391. package/src/object-model/redux/reducers/selectioninfo.js +1 -1
  392. package/src/object-model/redux/reducers/tooltip.js +1 -1
  393. package/src/object-model/schemas-utils/schema-validator.js +2 -2
  394. package/src/object-model/schemas-utils/upgrade-palette.js +1 -1
  395. package/src/palette/palette-content-list-item.jsx +7 -6
  396. package/src/palette/palette-content-list.jsx +4 -2
  397. package/src/palette/palette-dialog-content-categories.jsx +1 -1
  398. package/src/palette/palette-dialog-content-category.jsx +1 -1
  399. package/src/palette/palette-dialog-content-grid-node.jsx +8 -7
  400. package/src/palette/palette-dialog-content-grid.jsx +4 -1
  401. package/src/palette/palette-dialog-content.jsx +5 -2
  402. package/src/palette/palette-dialog-topbar-three-way-icon.jsx +1 -1
  403. package/src/palette/palette-dialog-topbar.jsx +1 -1
  404. package/src/palette/palette-dialog.jsx +4 -2
  405. package/src/palette/palette-flyout-content-category.jsx +1 -1
  406. package/src/palette/palette-flyout-content-filtered-list.jsx +3 -1
  407. package/src/palette/palette-flyout-content-search.jsx +1 -1
  408. package/src/palette/palette-flyout-content.jsx +6 -3
  409. package/src/palette/palette-flyout-utils.js +5 -5
  410. package/src/palette/palette-flyout.jsx +4 -2
  411. package/src/palette/palette.jsx +6 -2
  412. package/src/palette/palette.scss +1 -1
  413. package/src/toolbar/toolbar-action-item.jsx +19 -6
  414. package/src/toolbar/toolbar-divider-item.jsx +1 -1
  415. package/src/toolbar/toolbar-overflow-item.jsx +1 -1
  416. package/src/toolbar/toolbar.jsx +2 -6
  417. package/src/toolbar/toolbar.scss +2 -2
  418. package/src/tooltip/tooltip.jsx +1 -1
  419. package/src/tooltip/tooltip.scss +1 -1
  420. package/stats.html +1 -1
  421. package/utils/logger.js +1 -1
  422. package/dist/canvas-controller-6f6b6511.js +0 -2
  423. package/dist/canvas-controller-6f6b6511.js.map +0 -1
  424. package/dist/canvas-controller-bf6c2800.js +0 -2
  425. package/dist/canvas-controller-bf6c2800.js.map +0 -1
  426. package/dist/common-properties-20877208.js +0 -2
  427. package/dist/common-properties-20877208.js.map +0 -1
  428. package/dist/common-properties-ea686c1c.js +0 -2
  429. package/dist/common-properties-ea686c1c.js.map +0 -1
  430. package/dist/datarecord-metadata-v3-schema-b4ad907c.js +0 -2
  431. package/dist/datarecord-metadata-v3-schema-b4ad907c.js.map +0 -1
  432. package/dist/datarecord-metadata-v3-schema-bf4483dd.js +0 -2
  433. package/dist/datarecord-metadata-v3-schema-bf4483dd.js.map +0 -1
  434. package/dist/extends-112ec8af.js +0 -8
  435. package/dist/extends-112ec8af.js.map +0 -1
  436. package/dist/extends-51fe578d.js +0 -7
  437. package/dist/extends-51fe578d.js.map +0 -1
  438. package/dist/flexible-table-13570aa9.js +0 -2
  439. package/dist/flexible-table-13570aa9.js.map +0 -1
  440. package/dist/flexible-table-20276887.js +0 -2
  441. package/dist/flexible-table-20276887.js.map +0 -1
  442. package/dist/index-7e2e5c97.js +0 -2
  443. package/dist/index-c21aec1b.js +0 -2
  444. package/dist/isEmpty-5d2981b6.js +0 -2
  445. package/dist/isEmpty-6528e7c8.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -24,9 +24,13 @@ import { has } from "lodash";
24
24
  export default class TruncatedContentTooltip extends React.Component {
25
25
 
26
26
  render() {
27
+ let tooltipText = this.props.tooltipText;
28
+ if (typeof this.props.tooltipText !== "object") {
29
+ tooltipText = String(this.props.tooltipText);
30
+ }
27
31
  const tooltip = (
28
32
  <div className="properties-tooltips">
29
- {String(this.props.tooltipText)}
33
+ {tooltipText}
30
34
  </div>
31
35
  );
32
36
  return (
@@ -50,6 +54,7 @@ TruncatedContentTooltip.propTypes = {
50
54
  content: PropTypes.element.isRequired,
51
55
  tooltipText: PropTypes.oneOfType([
52
56
  PropTypes.string.isRequired,
57
+ PropTypes.object.isRequired,
53
58
  PropTypes.number.isRequired,
54
59
  PropTypes.bool.isRequired,
55
60
  PropTypes.array.isRequired
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -14,8 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import AutoSizer from "react-virtualized/dist/commonjs/AutoSizer";
18
- import { Column, Table } from "react-virtualized/dist/commonjs/Table";
17
+ import { Column, Table, AutoSizer } from "react-virtualized";
19
18
 
20
19
  import { Checkbox, Loading } from "carbon-components-react";
21
20
  import Icon from "./../../../icons/icon.jsx";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -133,7 +133,7 @@ export const DATA_TYPE = {
133
133
  TIMESTAMP: "timestamp"
134
134
  };
135
135
 
136
- export const DEFAULT_DATE_FORMAT = "YYYY-M-D";
136
+ export const DEFAULT_DATE_FORMAT = "yyyy-mm-dd";
137
137
 
138
138
  export const DEFAULT_TIME_FORMAT = "H:m:s";
139
139
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -20,54 +20,54 @@ import { connect } from "react-redux";
20
20
  import { TextInput } from "carbon-components-react";
21
21
  import ValidationMessage from "./../../components/validation-message";
22
22
  import * as ControlUtils from "./../../util/control-utils";
23
- import moment from "moment";
23
+ import { parse, format, isValid } from "date-fns";
24
24
  import { DEFAULT_DATE_FORMAT, STATES } from "./../../constants/constants.js";
25
25
  import classNames from "classnames";
26
- import { formatMessage } from "./../../util/property-utils.js";
27
-
28
26
 
29
27
  class DatefieldControl extends React.Component {
30
28
  constructor(props) {
31
29
  super(props);
32
30
  this.id = ControlUtils.getControlId(this.props.propertyId);
31
+ this.getDateFormat = this.getDateFormat.bind(this);
32
+ this.handleChange = this.handleChange.bind(this);
33
+
34
+ this.value = props.value;
35
+ if (!this.value) {
36
+ this.value = "";
37
+ } else {
38
+ const date = parse(this.value, DEFAULT_DATE_FORMAT, new Date());
39
+ if (isValid(date)) {
40
+ this.value = format(date, this.getDateFormat());
41
+ }
42
+ }
43
+ }
44
+
45
+ /*
46
+ * date-fns date format
47
+ */
48
+ getDateFormat() {
49
+ let dateFormat = this.props.control.dateFormat || DEFAULT_DATE_FORMAT;
50
+ dateFormat = dateFormat.replace(/Y/g, "y").replace(/D/g, "d");
51
+ return dateFormat;
33
52
  }
34
53
 
35
54
  handleChange(evt) {
36
- let stringValue = null;
55
+ let formattedValue = null;
56
+ this.value = "";
37
57
 
38
58
  if (evt.target.value) {
39
- const format = this.props.control.dateFormat || DEFAULT_DATE_FORMAT;
40
- const mom = moment.utc(evt.target.value, format, true);
41
- // Catch large year numbers which are parsed OK in the specified format
42
- // but cannot be parsed as the ISO format when being rendered.
43
- if (mom.isValid() && mom.year() < 10000) {
44
- stringValue = mom.format("YYYY-MM-DD"); // If moment is valid save as ISO format
59
+ this.value = evt.target.value;
60
+ const date = parse(evt.target.value, this.getDateFormat(), new Date());
61
+ if (isValid(date)) {
62
+ formattedValue = format(date, DEFAULT_DATE_FORMAT); // save as ISO format
45
63
  } else {
46
- stringValue = evt.target.value; // Otherwise just save as invalid entered string
64
+ formattedValue = evt.target.value; // Otherwise just save as invalid entered string
47
65
  }
48
- } else {
49
- stringValue = null;
50
66
  }
51
-
52
- this.props.controller.updatePropertyValue(this.props.propertyId, stringValue);
67
+ this.props.controller.updatePropertyValue(this.props.propertyId, formattedValue);
53
68
  }
54
69
 
55
70
  render() {
56
- let displayValue = "";
57
- if (this.props.value) {
58
- const format = this.props.control.dateFormat || DEFAULT_DATE_FORMAT;
59
- const mom = moment.utc(this.props.value, moment.ISO_8601, true);
60
-
61
- if (mom.isValid()) {
62
- try {
63
- displayValue = mom.format(format);
64
- } catch (err) { // This will only happen if the caller provides something other than a string as the format.
65
- displayValue = formatMessage(this.props.controller.getReactIntl(), "datetimefield.format.error.message");
66
- }
67
- } else {
68
- displayValue = this.props.value;
69
- }
70
- }
71
71
  const className = classNames("properties-datefield", "properties-input-control", { "hide": this.props.state === STATES.HIDDEN },
72
72
  this.props.messageInfo ? this.props.messageInfo.type : null);
73
73
  const validationProps = ControlUtils.getValidationProps(this.props.messageInfo, this.props.tableControl);
@@ -80,7 +80,7 @@ class DatefieldControl extends React.Component {
80
80
  disabled={this.props.state === STATES.DISABLED}
81
81
  placeholder={this.props.control.additionalText}
82
82
  onChange={this.handleChange.bind(this)}
83
- value={displayValue}
83
+ value={this.value}
84
84
  labelText={this.props.controlItem}
85
85
  hideLabel={this.props.tableControl}
86
86
  light={this.props.controller.getLight()}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2021 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -17,17 +17,18 @@
17
17
  import React from "react";
18
18
  import PropTypes from "prop-types";
19
19
  import { connect } from "react-redux";
20
+ import { FormattedDate } from "react-intl";
21
+ import { isValid } from "date-fns";
22
+ import { isEqual, intersection } from "lodash";
23
+ import classNames from "classnames";
24
+
20
25
  import * as ControlUtils from "./../../util/control-utils";
21
26
  import ValidationMessage from "./../../components/validation-message";
22
27
  import TruncatedContentTooltip from "./../../components/truncated-content-tooltip";
23
28
  import { STATES, DATA_TYPE } from "./../../constants/constants";
24
29
  import Icon from "./../../../icons/icon";
25
- import moment from "moment";
26
- import { isEqual, intersection } from "lodash";
27
30
 
28
31
  import { ControlType } from "./../../constants/form-constants";
29
-
30
- import classNames from "classnames";
31
32
  import { stringifyFieldValue } from "./../../util/property-utils";
32
33
 
33
34
  class ReadonlyControl extends React.Component {
@@ -85,9 +86,13 @@ class ReadonlyControl extends React.Component {
85
86
  controlValue = this.props.controller.getCustomControl(this.props.propertyId, this.props.control, { table: true, editStyle: "summary" });
86
87
  } else if (this.props.control.controlType === ControlType.TIMESTAMP ||
87
88
  (this.props.control.valueDef && this.props.control.valueDef.propType === DATA_TYPE.TIMESTAMP)) {
88
- const mom = moment(controlValue); // timestamp in ms
89
- if (mom.isValid()) {
90
- controlValue = mom.format("LLLL");
89
+ const date = new Date(controlValue);
90
+ if (isValid(date)) {
91
+ if (this.props.tableControl) {
92
+ controlValue = <FormattedDate value={date} day="numeric" month="long" year="numeric" hour="numeric" minute="numeric" />;
93
+ } else {
94
+ controlValue = <FormattedDate value={date} day="numeric" month="long" year="numeric" hour="numeric" minute="numeric" weekday="long" />;
95
+ }
91
96
  } else {
92
97
  controlValue = ""; // invalid timestamp
93
98
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2020 Elyra Authors
2
+ * Copyright 2017-2022 Elyra Authors
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.