diff --git a/packages/main/__karma_snapshots__/ObjectPage.md b/packages/main/__karma_snapshots__/ObjectPage.md index 2f76df77467..5827bdd0105 100644 --- a/packages/main/__karma_snapshots__/ObjectPage.md +++ b/packages/main/__karma_snapshots__/ObjectPage.md @@ -6,20 +6,20 @@ - - -
-
-
- -

+ +
+ +
+
+ +

Fiori Object Page Title

- + Sub Title - +
-
-
- +
+
+
@@ -60,267 +60,277 @@
-
- -
+
-
    - -
  • - - - - Test 1 - - - -
  • -
    - -
  • - - - - Test 2 - - - -
  • -
    - -
  • - - - - Test 3 - - - -
  • -
    - -
  • - - - - Test 4 - - - - -
    - - - -
    - - - - - - - SubSection 4.1 - - - - - SubSection 4.2 - - - - - - -
    -
  • -
    - -
  • - - - - Test 5 - - - - -
    - - - -
    - - - - - - - SubSection 5.1 - - - - - SubSection 5.2 - - - - - - -
    -
  • -
    -
- - - -
- - -
-
-
- Test 1 -
-
-
-
- -
-
-
-
-
- - -
-
-
- Test 2 -
+ +
+ +
  • + + + + + Test 1 + + + + +
  • +
    + +
  • + + + + + Test 2 + + + + +
  • +
    + +
  • + + + + + Test 3 + + + + +
  • +
    + +
  • + + + + + Test 4 + + + + + +
    + + + +
    + + + + + + + + + + SubSection 4.1 + + + + + + + + + + + SubSection 4.2 + + + + + + + + + +
    +
  • +
    + +
  • + + + + + Test 5 + + + + + +
    + + + +
    + + + + + + + + + + SubSection 5.1 + + + + + + + + + + + SubSection 5.2 + + + + + + + + + +
    +
  • +
    +
    + +
    + +
    +
    +
    + Test 1 +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + Test 2 +
    +
    +
    +
    +
    + Test2 +
    +
    +
    +
    +
    + +
    +
    +
    + Test 3 +
    +
    +
    +
    + Test1 +
    +
    +
    +
    + +
    +
    +
    + Test 4 +
    +
    +
    +
    +

    + Section 4 +

    + +
    +
    + SubSection 4.1
    -
    -
    -
    - Test2 -
    -
    +
    + Test 4 SubSection 1
    -
    - - - - -
    -
    -
    - Test 3 -
    +
    + + +
    +
    + SubSection 4.2
    -
    -
    - Test1 -
    +
    + Test 4 SubSection 2
    -
    -
    -
    - - -
    -
    -
    - Test 4 -
    +
    + +
    +
    + +
    + +
    +
    +
    + Test 5 +
    +
    +
    +
    + +
    +
    + SubSection 5.1
    -
    -
    -

    - Section 4 -

    - - -
    -
    - SubSection 4.1 -
    -
    - Test 4 SubSection 1 -
    -
    -
    -
    - - -
    -
    - SubSection 4.2 -
    -
    - Test 4 SubSection 2 -
    -
    -
    -
    -
    +
    + Content of SubSection 5.1
    -
    - - - - -
    -
    -
    - Test 5 -
    +
    + + +
    +
    + SubSection 5.2
    -
    -
    - - -
    -
    - SubSection 5.1 -
    -
    - Content of SubSection 5.1 -
    -
    -
    -
    - - -
    -
    - SubSection 5.2 -
    -
    - Content of SubSection 5.2 -
    -
    -
    -
    -
    +
    + Content of SubSection 5.2
    -
    -
    -
    -
    - - - - -
    - - +

    + + + + + +
    + + +
    +
    @@ -332,20 +342,20 @@ - - -
    -
    -
    - -

    + +
    + +
    +
    + +

    Fiori Object Page Title

    - + Sub Title - +
    -
    -
    - +
    +
    +
    @@ -386,116 +396,111 @@
    -
    -
      - -
    • - - - - Test 1 - - - -
    • -
      - -
    • - - - - Test 2 - - - -
    • -
      - -
    • - - - - Test 3 - - - -
    • -
      -
    - - - -
    - - -
    -
    -
    - Test 1 -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - -
    -
    -
    - Test 2 -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - -
    -
    -
    - Test 3 -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - + +
    + +
  • + + + + + Test 1 + + + + +
  • +
    + +
  • + + + + + Test 2 + + + + +
  • +
    + +
  • + + + + + Test 3 + + + + +
  • +
    +
    + +
    + +
    +
    +
    + Test 1 +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + Test 2 +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    + Test 3 +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    +
    @@ -507,20 +512,20 @@ - - -
    -
    -
    - -

    + +
    + +
    +
    + +

    Fiori Object Page Title

    - + Sub Title - +
    -
    -
    - +
    +
    +
    @@ -561,152 +566,124 @@
    -
    - -
    +
    -
      - -
    • - - - - Test 1 - - - -
    • -
      - -
    • - - - - Test 2 - - - -
    • -
      - -
    • - - - - Test 3 - - - -
    • -
      - -
    • - - - - Test 4 - - - - -
      - - - -
      - - - - - - - SubSection 4.1 - - - - - SubSection 4.2 - - - - - - -
      -
    • -
      - -
    • - - - - Test 5 - - - - -
      - - - -
      - - - - - - - SubSection 5.1 - - - - - SubSection 5.2 - - - - - - -
      -
    • -
      -
    - - - -
    - - -
    -
    -
    - Test 1 -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - + +
    + +
  • + + Test 1 + +
  • +
    + +
  • + + Test 2 + +
  • +
    + +
  • + + Test 3 + +
  • +
    + +
  • + + Test 4 + + +
    + + + +
    + + + + + + + SubSection 4.1 + + + + + SubSection 4.2 + + + + + + +
    +
  • +
    + +
  • + + Test 5 + + +
    + + + +
    + + + + + + + SubSection 5.1 + + + + + SubSection 5.2 + + + + + + +
    +
  • +
    +
    + +
    + +
    +
    +
    + Test 1 +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    +
    @@ -715,7 +692,7 @@ #### `Just Some Sections` ``` -

    Test
    +

    Test
    ``` #### `Not crashing with 1 section` @@ -724,59 +701,48 @@ - - -
    -
    -
    - -

    - + +
    + +
    +
    + +

    + - +

    -
    -
    -
    +
    +
    -
      - -
    • - - - - - -
    • -
      -
    - - - -
    - - -
    -
    -
    -
    -
    -
    - Test -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - + +
    + +
  • + +
  • +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + Test +
    +
    +
    +
    +
    +
    +
    +

    +
    @@ -788,35 +754,30 @@ - - -
    -
    -
    - -

    - + +
    + +
    +
    + +

    + - +

    -
    -
    -
    +
    +
    -
    - - - -
    -
    -
    -
    -
    -
    -
    - - + +
    + +
    +
    +
    +
    +

    +
    @@ -828,68 +789,121 @@ - - -
    -
    -
    - -

    - + +
    + +
    +
    + +

    + - +

    -
    -
    -
    +
    +
    -
      - -
    • - - - - - -
    • -
      - -
    • - - - - - -
    • -
      -
    - - - -
    - - -
    -
    -
    -
    -
    -
    - Test 2 -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    - - + +
    + +
  • + +
  • +
    + +
  • + +
  • +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + Test 2 +
    +
    +
    +
    +
    +
    +
    +

    + +
    +
    +
    +``` + +#### `No Header` + +``` + + + + +
    +
    + +
  • + + + + + + + +
  • +
    + +
  • + + + + + + + +
  • +
    +
    + +
    + +
    +
    +
    +
    +
    +
    + Test +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + Test 2 +
    +
    +
    +
    +
    +
    +
    +
    +
    diff --git a/packages/main/__karma_snapshots__/ObjectPageSection.md b/packages/main/__karma_snapshots__/ObjectPageSection.md index b2c4a985fc7..0694c1f2601 100644 --- a/packages/main/__karma_snapshots__/ObjectPageSection.md +++ b/packages/main/__karma_snapshots__/ObjectPageSection.md @@ -3,12 +3,12 @@ #### `Renders with children` ``` -
    Test
    This is my Text
    +
    Test
    This is my Text
    ``` #### `ObjectPage w/ lowercase title` ``` -
    Test
    This is my Text
    +
    Test
    This is my Text
    ``` diff --git a/packages/main/__karma_snapshots__/ObjectPageSubSection.md b/packages/main/__karma_snapshots__/ObjectPageSubSection.md index f6f1bebc31e..9a0bfa03549 100644 --- a/packages/main/__karma_snapshots__/ObjectPageSubSection.md +++ b/packages/main/__karma_snapshots__/ObjectPageSubSection.md @@ -3,6 +3,6 @@ #### `Render without Crashing` ``` -
    +
    ``` diff --git a/packages/main/package.json b/packages/main/package.json index 9bf19515fe4..b62b3b83041 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -22,6 +22,7 @@ "dependencies": { "@ui5/webcomponents": "1.0.0-rc.2", "@ui5/webcomponents-react-base": "0.3.2-rc.15", + "lodash.debounce": "^4.0.8", "react-scroll": "^1.7.11", "react-table": "6.8.6", "react-toastify": "^5.0.1" diff --git a/packages/main/src/components/ActionSheet/ActionSheet.karma.tsx b/packages/main/src/components/ActionSheet/ActionSheet.karma.tsx index 736649a79e7..082b103c49c 100644 --- a/packages/main/src/components/ActionSheet/ActionSheet.karma.tsx +++ b/packages/main/src/components/ActionSheet/ActionSheet.karma.tsx @@ -1,7 +1,8 @@ import { mountThemedComponent } from '@shared/tests/utils'; import { expect, use } from 'chai'; import { matchSnapshot } from 'chai-karma-snapshot'; -import React, { createRef } from 'react'; +import React, { createRef, RefObject } from 'react'; +import { Ui5PopoverDomRef } from '../../interfaces/Ui5PopoverDomRef'; import { ActionSheet } from '../../lib/ActionSheet'; import { Button } from '../../lib/Button'; @@ -26,7 +27,7 @@ describe('ActionSheet', () => { }); it('Ref object', () => { - const ref = createRef(); + const ref: RefObject = createRef(); const button =