From e7f61640579a0147251a15eb92ad69fe2684d56a Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Mon, 24 Jun 2019 16:41:02 +0200 Subject: [PATCH] * chore(Web Components): Updated Web Components to v0.13.1 (#39) BREAKING CHANGE **Select**: the parameter of the change event is now called `selectedOption` BREAKING CHANGE **Select**: Use `Option` instead of `StandardListItem` for selection BREAKING CHANGE **Link**: Use design with `LinkDesign`, type with `LinkType` is deleted BREAKING CHANGE **Button**: Use design with `ButtonDesign`, type with `ButtonDesign` is deleted BREAKING CHANGE **ToggleButton**: Use design with `ButtonDesign`, type with `ButtonDesign` is deleted BREAKING CHANGE **Switch**: type is removed, use `graphical` BREAKING CHANGE **MessageStrip**: `hideIcon` and `hideCloseButton` are renamed to `noIcon` and `noCloseButton` BREAKING CHANGE **Popover**: `hideArrow` and `hideHeader` are renamed to `noArrow` and `noHeader` Please refer to the [UI5 Web Components Changelog](https://github.com/SAP/ui5-webcomponents/releases/tag/v0.13.1) as well. Closes #36 --- .travis.yml | 2 +- .../fiori3/__karma_snapshots__/ActionSheet.md | 14 +- .../__karma_snapshots__/AnalyticalTable.md | 202 +++++++++--------- packages/fiori3/__karma_snapshots__/Badge.md | 12 +- packages/fiori3/__karma_snapshots__/Button.md | 6 +- .../fiori3/__karma_snapshots__/FilterBar.md | 138 ++++++------ packages/fiori3/__karma_snapshots__/Link.md | 6 +- .../fiori3/__karma_snapshots__/MessageBox.md | 78 +++---- .../__karma_snapshots__/MessageStrip.md | 14 ++ .../__karma_snapshots__/MultiComboBox.md | 16 ++ .../fiori3/__karma_snapshots__/ObjectPage.md | 178 +++++++-------- packages/fiori3/__karma_snapshots__/Option.md | 16 ++ packages/fiori3/__karma_snapshots__/Page.md | 2 +- .../__karma_snapshots__/StandardListItem.md | 6 +- packages/fiori3/__karma_snapshots__/Switch.md | 14 ++ .../__karma_snapshots__/ToggleButton.md | 6 +- packages/fiori3/__karma_snapshots__/Token.md | 14 ++ .../fiori3/__karma_snapshots__/Tokenizer.md | 14 ++ .../__karma_snapshots__/VariantManagement.md | 24 +-- packages/fiori3/package.json | 2 +- .../generateTypingStatements.js | 4 +- .../wrapperGeneration/generateTypingsWeb.js | 16 +- .../generateWebComponentTests.js | 9 +- .../generateWebComponentWrappers.js | 1 + .../src/components/ActionSheet/index.tsx | 6 +- .../columnHeader/ColumnHeaderModal.tsx | 4 +- .../AnalyticalTable/pagination/index.tsx | 4 +- .../fiori3/src/components/FilterBar/index.tsx | 4 +- .../MessageBox/MessageBoxButton.tsx | 4 +- .../ObjectPage/ObjectPageAnchor.tsx | 8 +- .../components/ObjectPage/demo.stories.tsx | 4 +- packages/fiori3/src/components/Page/index.tsx | 4 +- .../components/VariantManagement/index.tsx | 6 +- .../enums/{ButtonType.ts => ButtonDesign.ts} | 2 +- .../src/enums/{LinkType.ts => LinkDesign.ts} | 2 +- packages/fiori3/src/index.ts | 14 +- packages/fiori3/src/lib/ButtonDesign.ts | 3 + packages/fiori3/src/lib/ButtonType.ts | 3 - packages/fiori3/src/lib/LinkDesign.ts | 3 + packages/fiori3/src/lib/LinkType.ts | 3 - packages/fiori3/src/lib/Option.ts | 3 + .../fiori3/src/webComponents/Badge/index.tsx | 4 + .../src/webComponents/Button/demo.stories.tsx | 6 +- .../fiori3/src/webComponents/Button/index.tsx | 8 +- .../src/webComponents/Card/demo.stories.tsx | 23 +- .../fiori3/src/webComponents/Card/index.tsx | 1 + .../src/webComponents/Link/demo.stories.tsx | 4 +- .../fiori3/src/webComponents/Link/index.tsx | 8 +- .../src/webComponents/List/demo.stories.tsx | 5 +- .../MessageStrip/MessageStrip.karma.tsx | 14 ++ .../MessageStrip/demo.stories.tsx | 4 +- .../src/webComponents/MessageStrip/index.tsx | 9 +- .../MultiComboBox/MultiComboBox.karma.tsx | 14 ++ .../src/webComponents/Option/Option.karma.tsx | 14 ++ .../fiori3/src/webComponents/Option/index.tsx | 19 ++ .../webComponents/Popover/demo.stories.tsx | 4 +- .../src/webComponents/Popover/index.tsx | 4 +- .../fiori3/src/webComponents/Popup/index.tsx | 9 +- .../src/webComponents/Select/demo.stories.tsx | 23 +- .../webComponents/StandardListItem/index.tsx | 11 +- .../src/webComponents/Switch/Switch.karma.tsx | 14 ++ .../src/webComponents/Switch/demo.stories.tsx | 4 +- .../fiori3/src/webComponents/Switch/index.tsx | 10 +- .../ToggleButton/demo.stories.tsx | 4 +- .../src/webComponents/ToggleButton/index.tsx | 8 +- .../src/webComponents/Token/Token.karma.tsx | 14 ++ .../Tokenizer/Tokenizer.karma.tsx | 14 ++ yarn.lock | 30 +-- 68 files changed, 678 insertions(+), 475 deletions(-) create mode 100644 packages/fiori3/__karma_snapshots__/MultiComboBox.md create mode 100644 packages/fiori3/__karma_snapshots__/Option.md rename packages/fiori3/src/enums/{ButtonType.ts => ButtonDesign.ts} (82%) rename packages/fiori3/src/enums/{LinkType.ts => LinkDesign.ts} (82%) create mode 100644 packages/fiori3/src/lib/ButtonDesign.ts delete mode 100644 packages/fiori3/src/lib/ButtonType.ts create mode 100644 packages/fiori3/src/lib/LinkDesign.ts delete mode 100644 packages/fiori3/src/lib/LinkType.ts create mode 100644 packages/fiori3/src/lib/Option.ts create mode 100644 packages/fiori3/src/webComponents/MessageStrip/MessageStrip.karma.tsx create mode 100644 packages/fiori3/src/webComponents/MultiComboBox/MultiComboBox.karma.tsx create mode 100644 packages/fiori3/src/webComponents/Option/Option.karma.tsx create mode 100644 packages/fiori3/src/webComponents/Option/index.tsx create mode 100644 packages/fiori3/src/webComponents/Switch/Switch.karma.tsx create mode 100644 packages/fiori3/src/webComponents/Token/Token.karma.tsx create mode 100644 packages/fiori3/src/webComponents/Tokenizer/Tokenizer.karma.tsx diff --git a/.travis.yml b/.travis.yml index 37fb05d75c8..652a7e0a41d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ git: depth: false node_js: - - '8' + - '8.16.0' - '10' cache: yarn diff --git a/packages/fiori3/__karma_snapshots__/ActionSheet.md b/packages/fiori3/__karma_snapshots__/ActionSheet.md index c307c35949f..5c1e7362cbc 100644 --- a/packages/fiori3/__karma_snapshots__/ActionSheet.md +++ b/packages/fiori3/__karma_snapshots__/ActionSheet.md @@ -8,17 +8,17 @@ - +
-
- - - + + +
    diff --git a/packages/fiori3/__karma_snapshots__/AnalyticalTable.md b/packages/fiori3/__karma_snapshots__/AnalyticalTable.md index f10edc562a2..a091354aa22 100644 --- a/packages/fiori3/__karma_snapshots__/AnalyticalTable.md +++ b/packages/fiori3/__karma_snapshots__/AnalyticalTable.md @@ -38,7 +38,7 @@ - +
    @@ -50,22 +50,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -89,7 +89,7 @@ - +
    @@ -101,22 +101,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -140,7 +140,7 @@ - +
    @@ -152,22 +152,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -191,7 +191,7 @@ - +
    @@ -205,22 +205,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -607,27 +607,27 @@
    - - - + + + < - - - + + + 1 - - - + + + > @@ -695,7 +695,7 @@ - +
    @@ -707,22 +707,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -746,7 +746,7 @@ - +
    @@ -758,22 +758,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -797,7 +797,7 @@ - +
    @@ -809,22 +809,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -848,7 +848,7 @@ - +
    @@ -862,22 +862,22 @@
    - - - + + + - - - + + + Sort Ascending - - - + + + Sort Descending @@ -1272,36 +1272,36 @@
    - - - + + + < - - - + + + 1 - - - + + + 2 - - - + + + > diff --git a/packages/fiori3/__karma_snapshots__/Badge.md b/packages/fiori3/__karma_snapshots__/Badge.md index 5b17e732bea..bee6d9f4051 100644 --- a/packages/fiori3/__karma_snapshots__/Badge.md +++ b/packages/fiori3/__karma_snapshots__/Badge.md @@ -5,9 +5,9 @@ ``` - - - + + + My Badge @@ -21,9 +21,9 @@ ``` - - - + + + diff --git a/packages/fiori3/__karma_snapshots__/Button.md b/packages/fiori3/__karma_snapshots__/Button.md index 71218c7e8e3..0d068cb1d4c 100644 --- a/packages/fiori3/__karma_snapshots__/Button.md +++ b/packages/fiori3/__karma_snapshots__/Button.md @@ -5,9 +5,9 @@ ``` - diff --git a/packages/fiori3/__karma_snapshots__/FilterBar.md b/packages/fiori3/__karma_snapshots__/FilterBar.md index b94c98ce28e..a1742560eb0 100644 --- a/packages/fiori3/__karma_snapshots__/FilterBar.md +++ b/packages/fiori3/__karma_snapshots__/FilterBar.md @@ -25,9 +25,9 @@ -
    @@ -35,9 +35,9 @@ -
    -
    @@ -356,9 +356,9 @@ -