Upgrade to ONAP-UI 90/90990/2
authorAriel Kenan <Ariel.Kenan@amdocs.com>
Sun, 7 Jul 2019 11:08:55 +0000 (14:08 +0300)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Sun, 7 Jul 2019 12:00:49 +0000 (12:00 +0000)
Change-Id: I1266dea133a4bd5196ba7662c0905afaa021972d
Issue-ID: SDC-2411
Signed-off-by: Ariel Kenan <Ariel.Kenan@amdocs.com>
26 files changed:
workflow-designer-ui/src/main/frontend/package.json
workflow-designer-ui/src/main/frontend/resources/scss/_common.scss
workflow-designer-ui/src/main/frontend/resources/scss/style.scss
workflow-designer-ui/src/main/frontend/src/features/catalog/views/AddWorkflow.jsx
workflow-designer-ui/src/main/frontend/src/features/catalog/views/Main.jsx
workflow-designer-ui/src/main/frontend/src/features/catalog/views/Workflows.jsx
workflow-designer-ui/src/main/frontend/src/features/version/composition/components/CompositionButton.js
workflow-designer-ui/src/main/frontend/src/features/version/create/CreateVersionView.jsx
workflow-designer-ui/src/main/frontend/src/features/version/create/__tests__/__snapshots__/CreateVersionView_snapshot-test.js.snap
workflow-designer-ui/src/main/frontend/src/features/version/create/views/NewVersionContainer.jsx
workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/InputOutputView.jsx
workflow-designer-ui/src/main/frontend/src/features/version/inputOutput/views/DataRow.jsx
workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/ActionButtons.js
workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/OperationModeButtons.js
workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/SvgButton.js
workflow-designer-ui/src/main/frontend/src/features/version/versionController/views/VersionButton.js
workflow-designer-ui/src/main/frontend/src/features/workflow/create/CreateWorkflowView.jsx
workflow-designer-ui/src/main/frontend/src/features/workflow/create/__tests__/__snapshots__/CreateWorkflowView_snapshot-test.js.snap
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/__tests__/__snapshots__/OverviewView_snapshot-test.js.snap
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowDetails.jsx
workflow-designer-ui/src/main/frontend/src/features/workflow/overview/views/WorkflowHeader.jsx
workflow-designer-ui/src/main/frontend/src/shared/components/Description/index.js
workflow-designer-ui/src/main/frontend/src/shared/modal/ModalWrapperView.jsx
workflow-designer-ui/src/main/frontend/src/shared/notifications/NotificationsView.jsx
workflow-designer-ui/src/main/frontend/src/shared/searchInput/SearchInput.jsx
workflow-designer-ui/src/main/frontend/yarn.lock

index f1fde4d..bc43db1 100644 (file)
@@ -34,6 +34,8 @@
                "lodash.set": "^4.3.2",
                "md5": "^2.2.1",
                "moment": "^2.18.1",
+               "onap-ui-common": "^1.0.101",
+               "onap-ui-react": "^1.0.0",
                "perfect-scrollbar": "^1.4.0",
                "prop-types": "^15.6.1",
                "qs": "^6.5.2",
@@ -52,7 +54,6 @@
                "redux-saga": "^0.16.0",
                "redux-thunk": "^2.3.0",
                "reselect": "^3.0.1",
-               "sdc-ui": "1.6.61",
                "uuid-js": "^0.7.5",
                "validator": "^10.2.0"
        },
index edde536..825609d 100644 (file)
@@ -1,5 +1,5 @@
-@import '../../node_modules/sdc-ui/lib/style/scss/common/typography.scss';
-@import '../../node_modules/sdc-ui/lib/style/scss/common/variables.scss';
+@import '~onap-ui-common/lib/scss/_typography.scss';
+@import '~onap-ui-common/lib/scss/variables.scss';
 @import 'common/fonts';
 @import 'common/utils';
 @import 'common/customVariables';
index 88e33a9..09e8c8b 100644 (file)
@@ -1,7 +1,7 @@
-@import '../../node_modules/bpmn-js/dist/assets/diagram-js.css';
-@import '../../node_modules/bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
+@import '~bpmn-js/dist/assets/diagram-js.css';
+@import '~bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
 @import 'common';
-@import '../../node_modules/sdc-ui/lib/css/style.css';
-@import '../../node_modules/perfect-scrollbar/css/perfect-scrollbar.css';
+@import '~onap-ui-common/lib/style.css';
+@import '~perfect-scrollbar/css/perfect-scrollbar.css';
 @import 'components';
 @import 'features';
index 7209f63..1700d92 100644 (file)
@@ -17,7 +17,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 import { Translate } from 'react-redux-i18n';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
+import { SVGIcon } from 'onap-ui-react';
 
 class AddWorkflow extends React.Component {
     render() {
index b363dd8..b4288f3 100644 (file)
@@ -19,7 +19,7 @@ import PropTypes from 'prop-types';
 import { Translate } from 'react-redux-i18n';
 
 import { ASC } from 'features/catalog/catalogConstants';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
+import { SVGIcon } from 'onap-ui-react';
 
 class Main extends Component {
     render() {
index a94e454..d69ec47 100644 (file)
@@ -17,7 +17,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 
-import { Tile, TileInfo, TileInfoLine } from 'sdc-ui/lib/react';
+import { Tile, TileInfo, TileInfoLine } from 'onap-ui-react';
 
 const Workflows = ({ items, onWorkflowClick }) =>
     items.map((workflow, index) => (
index 433e055..62500d2 100644 (file)
@@ -15,7 +15,7 @@
 */
 import React from 'react';
 import PropTypes from 'prop-types';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
+import { SVGIcon } from 'onap-ui-react';
 
 const CompositionButton = ({ onClick, name, title, disabled }) => (
     <div
index 23e5db1..101b442 100644 (file)
@@ -16,7 +16,7 @@
 import React, { Component } from 'react';
 import PropTypes from 'prop-types';
 import { I18n } from 'react-redux-i18n';
-import { Button } from 'sdc-ui/lib/react';
+import { Button } from 'onap-ui-react';
 import Description from 'shared/components/Description';
 import Select from 'shared/components/Select/index';
 import { VERSION_LEVEL_LIST } from 'wfapp/appConstants';
index 991ad18..4e17b93 100644 (file)
@@ -41,15 +41,15 @@ exports[`Create new version snapshot renders correctly 1`] = `
         className="description-part"
       >
         <div
-          className="sdc-input"
+          className="sdc-textarea"
         >
           <div
-            className="sdc-input__label"
+            className="sdc-textarea__label"
           >
             description
           </div>
           <textarea
-            className="custom-textarea field-section sdc-input__input"
+            className="custom-textarea field-section sdc-textarea__textarea"
             data-test-id="new-version-description"
             disabled={false}
             onChange={[Function]}
index 9e26793..4d88473 100644 (file)
@@ -16,7 +16,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 import { I18n } from 'react-redux-i18n';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
+import { SVGIcon } from 'onap-ui-react';
 
 const NewVersionContainer = ({
     onCreateVersion,
index fae8144..61e3499 100644 (file)
@@ -18,7 +18,7 @@ import React from 'react';
 import PropTypes from 'prop-types';
 import { Translate, I18n } from 'react-redux-i18n';
 import cn from 'classnames';
-import { SVGIcon } from 'sdc-ui/lib/react';
+import { SVGIcon } from 'onap-ui-react';
 
 import Scrollbars from 'shared/scroll/Scrollbars';
 import SearchInput from 'shared/searchInput/SearchInput';
index 022038f..70103f8 100644 (file)
@@ -17,7 +17,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 
-import { Input, Checkbox, SVGIcon } from 'sdc-ui/lib/react';
+import { Input, Checkbox, SVGIcon } from 'onap-ui-react';
 
 const DataRow = ({
     data: { name, type, mandatory },
index 472b3a0..0a9c2b1 100644 (file)
@@ -16,7 +16,7 @@
 
 import React from 'react';
 import { I18n } from 'react-redux-i18n';
-import { Button } from 'sdc-ui/lib/react';
+import { Button } from 'onap-ui-react';
 import PropTypes from 'prop-types';
 import SvgButton from 'features/version/versionController/views/SvgButton';
 import CompositionUpdate from 'features/version/composition/CompositionUpdate';
index ea94397..4d992ad 100644 (file)
@@ -16,7 +16,7 @@
 
 import React from 'react';
 import { I18n } from 'react-redux-i18n';
-import { Button } from 'sdc-ui/lib/react';
+import { Button } from 'onap-ui-react';
 import PropTypes from 'prop-types';
 import SvgButton from 'features/version/versionController/views/SvgButton';
 
index 4a607e6..41bdeb8 100644 (file)
@@ -14,7 +14,7 @@
 * limitations under the License.
 */
 import React from 'react';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon.js';
+import { SVGIcon } from 'onap-ui-react';
 import PropTypes from 'prop-types';
 
 const SvgButton = props => {
index 723e176..19e148c 100644 (file)
@@ -14,7 +14,7 @@
 * limitations under the License.
 */
 import React from 'react';
-import { Button } from 'sdc-ui/lib/react';
+import { Button } from 'onap-ui-react';
 import { I18n } from 'react-redux-i18n';
 import PropTypes from 'prop-types';
 
index 6aee9f7..9af92db 100644 (file)
@@ -15,7 +15,7 @@
 */
 import React, { Component } from 'react';
 import PropTypes from 'prop-types';
-import { Input, Button } from 'sdc-ui/lib/react';
+import { Input, Button } from 'onap-ui-react';
 import { I18n } from 'react-redux-i18n';
 import Description from 'shared/components/Description';
 
index 59695f0..e26da0d 100644 (file)
@@ -20,34 +20,38 @@ exports[`New Workflow View Snapshot renders correctly 1`] = `
         >
           name
         </label>
-        <input
-          className="sdc-input__input  "
-          data-test-id={undefined}
-          disabled={false}
-          id="workflowName"
-          name="workflowName"
-          onBlur={[Function]}
-          onChange={[Function]}
-          onKeyDown={[Function]}
-          placeholder={undefined}
-          readOnly={false}
-          type="text"
-          value=""
-        />
+        <div
+          className="sdc-input-wrapper"
+        >
+          <input
+            className="sdc-input__input  "
+            data-test-id={undefined}
+            disabled={false}
+            id="workflowName"
+            name="workflowName"
+            onBlur={[Function]}
+            onChange={[Function]}
+            onKeyDown={[Function]}
+            placeholder={undefined}
+            readOnly={false}
+            type="text"
+            value=""
+          />
+        </div>
       </div>
       <div
         className="description-part"
       >
         <div
-          className="sdc-input"
+          className="sdc-textarea"
         >
           <div
-            className="sdc-input__label"
+            className="sdc-textarea__label"
           >
             description
           </div>
           <textarea
-            className="custom-textarea field-section sdc-input__input"
+            className="custom-textarea field-section sdc-textarea__textarea"
             data-test-id="description"
             disabled={false}
             onChange={[Function]}
index d870bed..a54b832 100644 (file)
@@ -62,34 +62,38 @@ exports[`OverviewView Snapshot renders correctly 1`] = `
           >
             name
           </label>
-          <input
-            className="sdc-input__input  "
-            data-test-id={undefined}
-            disabled={true}
-            id="workflowName"
-            name="workflowName"
-            onBlur={[Function]}
-            onChange={[Function]}
-            onKeyDown={[Function]}
-            placeholder={undefined}
-            readOnly={false}
-            type="text"
-            value="wf1"
-          />
+          <div
+            className="sdc-input-wrapper"
+          >
+            <input
+              className="sdc-input__input  "
+              data-test-id={undefined}
+              disabled={true}
+              id="workflowName"
+              name="workflowName"
+              onBlur={[Function]}
+              onChange={[Function]}
+              onKeyDown={[Function]}
+              placeholder={undefined}
+              readOnly={false}
+              type="text"
+              value="wf1"
+            />
+          </div>
         </div>
         <div
           className="description-part"
         >
           <div
-            className="sdc-input"
+            className="sdc-textarea"
           >
             <div
-              className="sdc-input__label"
+              className="sdc-textarea__label"
             >
               description
             </div>
             <textarea
-              className="custom-textarea field-section sdc-input__input"
+              className="custom-textarea field-section sdc-textarea__textarea"
               data-test-id="description"
               disabled={false}
               onChange={[Function]}
index de638a1..38f6af0 100644 (file)
@@ -15,7 +15,7 @@
 */
 import React, { Component } from 'react';
 import { I18n } from 'react-redux-i18n';
-import { Input, Button } from 'sdc-ui/lib/react';
+import { Input, Button } from 'onap-ui-react';
 import PropTypes from 'prop-types';
 
 import Description from 'shared/components/Description';
index ce28129..46a1d94 100644 (file)
@@ -16,8 +16,7 @@
 import React from 'react';
 import PropTypes from 'prop-types';
 import { I18n } from 'react-redux-i18n';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
-import Button from 'sdc-ui/lib/react/Button';
+import { SVGIcon, Button } from 'onap-ui-react';
 import ArchiveLabel from 'shared/archiveLabel/ArchiveLabel';
 
 const Buttons = ({ history, archiveWorkflow, restoreWorkflow, isArchive }) => (
index f674490..7ff4d32 100644 (file)
@@ -19,8 +19,8 @@ import { I18n } from 'react-redux-i18n';
 
 const Description = ({ description, onDataChange, dataTestId, disabled }) => (
     <div className="description-part">
-        <div className="sdc-input">
-            <div className="sdc-input__label">
+        <div className="sdc-textarea">
+            <div className="sdc-textarea__label">
                 {I18n.t('workflow.general.description')}
             </div>
             <textarea
@@ -29,7 +29,7 @@ const Description = ({ description, onDataChange, dataTestId, disabled }) => (
                 onChange={event => {
                     onDataChange({ description: event.target.value });
                 }}
-                className="custom-textarea field-section sdc-input__input"
+                className="custom-textarea field-section sdc-textarea__textarea"
                 disabled={disabled}
             />
         </div>
index 95be8cd..c83a0ac 100644 (file)
@@ -23,7 +23,7 @@ import {
     ModalTitle,
     ModalBody,
     ModalFooter
-} from 'sdc-ui/lib/react';
+} from 'onap-ui-react';
 
 import modalWrapperComponents from 'shared/modal/modalWrapperComponents';
 
index 710ffce..4481289 100644 (file)
@@ -15,7 +15,7 @@
 */
 import React, { PureComponent } from 'react';
 import PropTypes from 'prop-types';
-import { Notification } from 'sdc-ui/lib/react/';
+import { Notification } from 'onap-ui-react';
 import { CSSTransition, TransitionGroup } from 'react-transition-group';
 
 export default class NotificationsView extends PureComponent {
index ef1f0f3..a4ae2cd 100644 (file)
@@ -16,7 +16,7 @@
 
 import React from 'react';
 import PropTypes from 'prop-types';
-import SVGIcon from 'sdc-ui/lib/react/SVGIcon';
+import { SVGIcon } from 'onap-ui-react';
 
 class ExpandableInput extends React.Component {
     static propTypes = {
index 7de46ac..9670e72 100644 (file)
@@ -2,38 +2,6 @@
 # yarn lockfile v1
 
 
-"@angular/common@~2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/common/-/common-2.4.10.tgz#a3a682d2228fa30ec23dd0eb57c8e887fba26997"
-
-"@angular/core@~2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/core/-/core-2.4.10.tgz#0b8320a65065965d998645b1f5cd3cf769b441ea"
-
-"@angular/forms@~2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-2.4.10.tgz#062133aaade1f3b3c962f1593208c541b622fd06"
-
-"@angular/http@^2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/http/-/http-2.4.10.tgz#ff6beade5b39c989ebf2393c49b34eebd43e9555"
-
-"@angular/platform-browser-dynamic@~2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-2.4.10.tgz#8df25dec2b06adc690cc9bc26448deccaebcd8ec"
-
-"@angular/platform-browser@~2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-2.4.10.tgz#cbf25608148fb4ffef96cc5005ba5d7b3e093906"
-
-"@angular/router@~3.2.1":
-  version "3.2.4"
-  resolved "https://registry.yarnpkg.com/@angular/router/-/router-3.2.4.tgz#dfec71ad072ec031364ba5d08bd6fe03fd5beadc"
-
-"@angular/upgrade@^2.4.8":
-  version "2.4.10"
-  resolved "https://registry.yarnpkg.com/@angular/upgrade/-/upgrade-2.4.10.tgz#b69a3ee324d4450eb1696ddc9bded1a6ec06ca52"
-
 "@babel/code-frame@^7.0.0":
   version "7.0.0"
   resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8"
@@ -8324,6 +8292,25 @@ on-headers@~1.0.1:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7"
 
+onap-ui-common@1.0.100:
+  version "1.0.100"
+  resolved "https://registry.yarnpkg.com/onap-ui-common/-/onap-ui-common-1.0.100.tgz#c0dae1d3d1c3fd2b866340d27a1179ed10a3a860"
+  integrity sha512-d+eaYgVgrj9B8/3iVDlkxO2jiE7wXFrvMogxxHsyM8E0Fa7wXGEGwohA4JD5nGydT84dU2vPzwkby7SZNgGpKA==
+
+onap-ui-react@^0.1.1:
+  version "0.1.1"
+  resolved "https://registry.yarnpkg.com/onap-ui-react/-/onap-ui-react-0.1.1.tgz#3640bdb9fb10f85104ad9dd57a9f320b0703abf3"
+  integrity sha512-hax7WzSMIPll9fHvKVjFbn2dIOh39fWuiy0VQKONq/ccU3f/y08Y6EzJo7rzWcwjt8bp2KDhqNZky0HwIquc6w==
+  dependencies:
+    "@storybook/react" "^3.1.5"
+    http-loader "0.0.1"
+    onap-ui-common "1.0.100"
+    prop-types "^15.6.0"
+    react "15.6.2"
+    react-dom "15.6.2"
+    reflect-metadata "^0.1.3"
+    svg-react-loader "^0.4.4"
+
 once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.3.3, once@^1.4.0, once@~1.4.0:
   version "1.4.0"
   resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
@@ -10278,12 +10265,6 @@ rx@4.1.0:
   version "4.1.0"
   resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
 
-rxjs@5.4.2:
-  version "5.4.2"
-  resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.4.2.tgz#2a3236fcbf03df57bae06fd6972fd99e5c08fcf7"
-  dependencies:
-    symbol-observable "^1.0.1"
-
 rxjs@^5.4.2, rxjs@^5.5.2:
   version "5.5.10"
   resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.10.tgz#fde02d7a614f6c8683d0d1957827f492e09db045"
@@ -10382,28 +10363,6 @@ scss-tokenizer@^0.2.3:
     js-base64 "^2.1.8"
     source-map "^0.4.2"
 
-sdc-ui@1.6.61:
-  version "1.6.61"
-  resolved "https://registry.yarnpkg.com/sdc-ui/-/sdc-ui-1.6.61.tgz#2ad3b9ef1f848889f978dac4082cd56420b28dd5"
-  dependencies:
-    "@angular/common" "~2.4.8"
-    "@angular/core" "~2.4.8"
-    "@angular/forms" "~2.4.8"
-    "@angular/http" "^2.4.8"
-    "@angular/platform-browser" "~2.4.8"
-    "@angular/platform-browser-dynamic" "~2.4.8"
-    "@angular/router" "~3.2.1"
-    "@angular/upgrade" "^2.4.8"
-    "@storybook/react" "^3.1.5"
-    http-loader "0.0.1"
-    prop-types "^15.6.0"
-    react "15.6.2"
-    react-dom "15.6.2"
-    reflect-metadata "^0.1.3"
-    rxjs "5.4.2"
-    svg-react-loader "^0.4.4"
-    zone.js "^0.8.18"
-
 select-hose@^2.0.0:
   version "2.0.0"
   resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
@@ -11154,7 +11113,7 @@ symbol-observable@^0.2.2:
   version "0.2.4"
   resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-0.2.4.tgz#95a83db26186d6af7e7a18dbd9760a2f86d08f40"
 
-symbol-observable@^1.0.1, symbol-observable@^1.0.3:
+symbol-observable@^1.0.3:
   version "1.2.0"
   resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
 
@@ -12513,7 +12472,3 @@ yeoman-generator@^2.0.4:
     text-table "^0.2.0"
     through2 "^2.0.0"
     yeoman-environment "^2.0.5"
-
-zone.js@^0.8.18:
-  version "0.8.26"
-  resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"