Skip to content

Commit

Permalink
chore: release main (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Jun 13, 2024
1 parent a639b02 commit 5717054
Show file tree
Hide file tree
Showing 27 changed files with 111 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packages/ui5-cc-spreadsheetimporter": "1.0.0",
"packages/ui5-cc-spreadsheetimporter": "1.1.0",
"packages/ui5-cc-spreadsheetimporter-generator": "0.6.0"
}
10 changes: 5 additions & 5 deletions docs/pages/Button.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ npm install ui5-cc-spreadsheetimporter
⚠️ You must always keep your `ui5-cc-spreadsheetimporter` and button version up to date here when updating the module.

!!! warning ""
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.


```json
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
}
```

Expand All @@ -52,7 +52,7 @@ npm install ui5-cc-spreadsheetimporter
"sap.ui.table": {}
},
"components": {
"cc.spreadsheetimporter.v1_0_0": {}
"cc.spreadsheetimporter.v1_1_0": {}
}
}
```
Expand All @@ -64,7 +64,7 @@ npm install ui5-cc-spreadsheetimporter
```json
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
}
```
Expand Down Expand Up @@ -134,7 +134,7 @@ A sample configuration can be found in the manifest.json of the [OData V4 Fiori
"customSectionReuse": {
"title": "Spreadsheet Upload",
"embeddedComponent": {
"name": "cc.spreadsheetimporter.v1_0_0",
"name": "cc.spreadsheetimporter.v1_1_0",
"settings": {
"tableId": "ui.v4.ordersv4fe::OrdersObjectPage--fe::table::Items::LineItem-innerTable"
}
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/CHANGELOGSPREADSHEETIMPORTER.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.1.0](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/compare/ui5-cc-spreadsheetimporter-v1.0.0...ui5-cc-spreadsheetimporter-v1.1.0) (2024-06-13)


### Features

* new option `excludeColumns` ([#575](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/575)) ([a639b02](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/commit/a639b0250242870cafa3b500dfd11c2c0c32bd37))
* parse `Edm.Time` when excel data is text ([#573](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/issues/573)) ([cfaeace](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/commit/cfaeace8f53f9ed81cc8f10fc51519ab1e68605e))

## [1.0.0](https://github.com/spreadsheetimporter/ui5-cc-spreadsheetimporter/compare/ui5-cc-spreadsheetimporter-v0.34.1...ui5-cc-spreadsheetimporter-v1.0.0) (2024-05-23)


Expand Down
28 changes: 14 additions & 14 deletions docs/pages/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ npm install ui5-cc-spreadsheetimporter

```json
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
}
```

Expand All @@ -68,7 +68,7 @@ npm install ui5-cc-spreadsheetimporter
```json
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
}
```
Expand All @@ -80,12 +80,12 @@ If you deploy your app to a SAP System (S/4 On-Premise or SAP BTP ABAP environme
To avoid this error, you can add the following to your `manifest.json` file:

!!! warning ""
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.


```json
"sap.app": {
"embeds": ["thirdparty/customcontrol/spreadsheetimporter/v1_0_0"]
"embeds": ["thirdparty/customcontrol/spreadsheetimporter/v1_1_0"]
}
```

Expand All @@ -101,7 +101,7 @@ To avoid this error, you can add the following to your `manifest.json` file:
```json
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
}
```
Expand Down Expand Up @@ -278,7 +278,7 @@ openSpreadsheetUploadDialog: async function (oEvent) {
context: this,
},
url: "/sap/bc/ui5_ui5/sap/Z_XUP_v0_33_2",
name: "cc.spreadsheetimporter.v1_0_0"
name: "cc.spreadsheetimporter.v1_1_0"
});
this.spreadsheetUpload.openSpreadsheetUploadDialog();
this.getView().setBusy(false);
Expand All @@ -289,17 +289,17 @@ This is alternative to using resourceRoots in the manifest.json when you don't h

#### Error: library/component used in application does not exist

When deploying the app to your ABAP system, you may get an error like this: `SAPUI5 library/component cc.spreadsheetimporter.v1_0_0 used in application Z*** does not exist`. The application is deployed, but the service returns an error.
When deploying the app to your ABAP system, you may get an error like this: `SAPUI5 library/component cc.spreadsheetimporter.v1_1_0 used in application Z*** does not exist`. The application is deployed, but the service returns an error.

To avoid this error, you can add the following to your `manifest.json` file:

!!! warning ""
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.


```json
"sap.app": {
"embeds": ["thirdparty/customcontrol/spreadsheetimporter/v1_0_0"]
"embeds": ["thirdparty/customcontrol/spreadsheetimporter/v1_1_0"]
}
```

Expand Down Expand Up @@ -336,7 +336,7 @@ After you have deployed the component centrally, you can consume it in your app

To find out which URL to enter, the App Index can be called up at the following URL:
```
<SAP SYSTEM URL>/sap/bc/ui2/app_index/ui5_app_info?id=cc.spreadsheetimporter.v1_0_0
<SAP SYSTEM URL>/sap/bc/ui2/app_index/ui5_app_info?id=cc.spreadsheetimporter.v1_1_0
```

Here are the examples for [`fiori-tools-proxy`](https://www.npmjs.com/package/@sap/ux-ui5-tooling#2-proxy) and [`ui5-middleware-simpleproxy`](https://www.npmjs.com/package/ui5-middleware-simpleproxy).
Expand All @@ -351,9 +351,9 @@ Here are the examples for [`fiori-tools-proxy`](https://www.npmjs.com/package/@s
- path: /sap
url: <Cloud Connector or local URL>
destination: <System Destination name if in BAS>
- path: /resources/cc/spreadsheetimporter/v1_0_0
- path: /resources/cc/spreadsheetimporter/v1_1_0
destination: <System Destination name if in BAS>
pathPrefix: /sap/bc/ui5_ui5/sap/<BSP NAME>/thirdparty/customcontrol/spreadsheetimporter/v1_0_0/
pathPrefix: /sap/bc/ui5_ui5/sap/<BSP NAME>/thirdparty/customcontrol/spreadsheetimporter/v1_1_0/
url: <Cloud Connector or local URL>
```

Expand All @@ -362,9 +362,9 @@ Here are the examples for [`fiori-tools-proxy`](https://www.npmjs.com/package/@s
```yml
- name: ui5-middleware-simpleproxy
afterMiddleware: compression
mountPath: /resources/cc/spreadsheetimporter/v1_0_0/
mountPath: /resources/cc/spreadsheetimporter/v1_1_0/
configuration:
baseUri: "<SAP SYSTEM URL>/sap/bc/ui5_ui5/sap/<BSP NAME>/thirdparty/customcontrol/spreadsheetimporter/v1_0_0/"
baseUri: "<SAP SYSTEM URL>/sap/bc/ui5_ui5/sap/<BSP NAME>/thirdparty/customcontrol/spreadsheetimporter/v1_1_0/"
username: <SAP USERNAME>
password: <SAP PASSWORD
query:
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Alternatively, you can try selecting all the messages and copying them to a text
If you receive an error similar to the following:

```
ui5loader-dbg.js:1042 Uncaught (in promise) ModuleError: failed to load 'cc/spreadsheetimporter/v1_0_0/Component.js' from resources/cc/spreadsheetimporter/v1_0_0/Component.js: script load error
ui5loader-dbg.js:1042 Uncaught (in promise) ModuleError: failed to load 'cc/spreadsheetimporter/v1_1_0/Component.js' from resources/cc/spreadsheetimporter/v1_1_0/Component.js: script load error
```

Since the component is designed to always use a specific version, you must ensure that the correct version is used after an update.
Expand All @@ -59,16 +59,16 @@ See the configurations for this version below:
### manifest.json

!!! warning ""
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.


```json
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
}
```
8 changes: 4 additions & 4 deletions docs/pages/Typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ You can consume the types from the `@sapui5/ts-types-esm` and the `ui5-cc-spread
Add the component usage and the resource roots to the manifest.json as described in the [Getting Started](GettingStarted.md) section.

!!! warning ""
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.
⚠️ The `resourceRoots` path "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0" changed from version 0.34.0 to lowercase. Please make sure to use the correct path.

```json
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
```

Expand All @@ -38,7 +38,7 @@ Add the component usage and the resource roots to the manifest.json as described
This is an example of how you could create the component and attach an event handler to the `checkBeforeRead` event with the types `Component` and `Component$CheckBeforeReadEventParameters` for the event parameters with an OData V4 Fiori Elements Application and UI5 Version 1.116.

```typescript
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent, Component$UploadButtonPressEvent } from "cc/spreadsheetimporter/v1_0_0/Component";
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent, Component$UploadButtonPressEvent } from "cc/spreadsheetimporter/v1_1_0/Component";
import BaseController from "sap/fe/core/BaseController";
import ExtensionAPI from "sap/fe/core/ExtensionAPI";

Expand Down
4 changes: 2 additions & 2 deletions examples/packages/ordersv2fe/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"config": {},
Expand Down
4 changes: 2 additions & 2 deletions examples/packages/ordersv2fenondraft/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"config": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"sap.ui.table": {}
},
"components": {
"cc.spreadsheetimporter.v1_0_0": {}
"cc.spreadsheetimporter.v1_1_0": {}
}
},
"contentDensities": {
Expand All @@ -79,14 +79,14 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0",
"name": "cc.spreadsheetimporter.v1_1_0",
"settings": {},
"componentData": {},
"lazy": false
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"sap.ui.table": {}
},
"components": {
"cc.spreadsheetimporter.v1_0_0": {}
"cc.spreadsheetimporter.v1_1_0": {}
}
},
"contentDensities": {
Expand All @@ -79,11 +79,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"config": {
Expand Down
4 changes: 2 additions & 2 deletions examples/packages/ordersv4fe/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"routes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ sap.ui.require(
errorMessage: "Can not select 'sap.m.Button'"
});
Then.waitFor({
controlType: "cc.spreadsheetimporter.v1_0_0.SpreadsheetDialog",
controlType: "cc.spreadsheetimporter.v1_1_0.SpreadsheetDialog",
check: function (dialog) {
return dialog[0].isOpen();
},
success: function (dialog) {
const util = Opa5.getWindow().cc.spreadsheetimporter.v1_0_0.Util;
const util = Opa5.getWindow().cc.spreadsheetimporter.v1_1_0.Util;
console.log("Util", util);
Opa5.getContext().util = util;
Opa5.getContext().component = dialog[0].getComponent();
Expand Down Expand Up @@ -71,7 +71,7 @@ sap.ui.require(

function testNormalizeNumberString(Then, decimalSeparator, input, expectedOutput) {
Then.waitFor({
controlType: "cc.spreadsheetimporter.v1_0_0.SpreadsheetDialog",
controlType: "cc.spreadsheetimporter.v1_1_0.SpreadsheetDialog",
success: function (dialog) {
Opa5.getContext().component.setDecimalSeparator(decimalSeparator);
// Call 'normalizeNumberString' method and check its output
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent, Component$UploadButtonPressEvent } from "cc/spreadsheetimporter/v1_0_0/Component";
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent, Component$UploadButtonPressEvent } from "cc/spreadsheetimporter/v1_1_0/Component";
import BaseController from "sap/fe/core/BaseController";
import ExtensionAPI from "sap/fe/core/ExtensionAPI";
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent } from "cc/spreadsheetimporter/v1_0_0/Component";
import Component, { Component$ChangeBeforeCreateEvent, Component$CheckBeforeReadEvent } from "cc/spreadsheetimporter/v1_1_0/Component";
import BaseController from "sap/fe/core/BaseController";
import ExtensionAPI from "sap/fe/core/ExtensionAPI";
/**
Expand Down
4 changes: 2 additions & 2 deletions examples/packages/ordersv4fets/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"routes": [
Expand Down
6 changes: 3 additions & 3 deletions examples/packages/ordersv4fpm/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"sap.fe.templates": {}
},
"components": {
"cc.spreadsheetimporter.v1_0_0": {}
"cc.spreadsheetimporter.v1_1_0": {}
}
},
"contentDensities": {
Expand Down Expand Up @@ -95,11 +95,11 @@
},
"componentUsages": {
"spreadsheetImporter": {
"name": "cc.spreadsheetimporter.v1_0_0"
"name": "cc.spreadsheetimporter.v1_1_0"
}
},
"resourceRoots": {
"cc.spreadsheetimporter.v1_0_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_0_0"
"cc.spreadsheetimporter.v1_1_0": "./thirdparty/customcontrol/spreadsheetimporter/v1_1_0"
},
"routing": {
"config": {},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"prettier --write --config .prettierrc.json"
],
"**/*.{ts,json,xml}": "prettier --write --config .prettierrc.json"
}
},
"packageManager": "pnpm@9.3.0+sha512.ee7b93e0c2bd11409c6424f92b866f31d3ea1bef5fbe47d3c7500cdc3c9668833d2e55681ad66df5b640c61fa9dc25d546efa54d76d7f8bf54b13614ac293631"
}
Loading

0 comments on commit 5717054

Please sign in to comment.