Skip to content

Commit c8a21b7

Browse files
committed
Merge branch 'release/2023.11.0'
2 parents 1308add + b522a06 commit c8a21b7

File tree

408 files changed

+12532
-5012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

408 files changed

+12532
-5012
lines changed

.gitpod.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV TRIGGER_REBUILD 4
1212
RUN npm install -g @angular/cli
1313

1414
# Install odoo
15-
ENV ODOO_VERSION 15.0
15+
ENV ODOO_VERSION 16.0
1616
ENV ODOO_RELEASE latest
1717
RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
1818
&& sudo apt-get update \

.gitpod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ tasks:
2626
cd /workspace/odoo
2727
mkdir -p addons-available addons-enabled
2828
cd addons-available
29-
git clone --depth=1 -b 15.0 https://github.com/OCA/partner-contact
30-
git clone --depth=1 -b 15.0 https://github.com/OCA/web.git
31-
git clone --depth=1 -b 15.0 https://github.com/OpenEMS/odoo-openems.git
29+
git clone --depth=1 -b 16.0 https://github.com/OCA/partner-contact
30+
git clone --depth=1 -b 16.0 https://github.com/OCA/web.git
31+
git clone --depth=1 -b 16.0 https://github.com/OpenEMS/odoo-openems.git
3232
cd ../addons-enabled
3333
ln -s ../addons-available/partner-contact/partner_firstname
3434
ln -s ../addons-available/web/web_m2x_options

.gradle-wrapper/gradle-wrapper.jar

346 Bytes
Binary file not shown.

.gradle-wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

cnf/build.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ buildpath: \
4040
org.osgi.service.metatype;version='1.4.1',\
4141
org.osgi.service.metatype.annotations;version='1.4.1',\
4242
org.osgi.util.promise;version='1.2.0',\
43-
com.google.guava;version='32.1.2.jre',\
43+
com.google.guava;version='32.1.3.jre',\
4444
com.google.gson;version='2.10.1',\
4545

4646
testpath: \

cnf/pom.xml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- On update: also update gradle.properties file -->
1212
<groupId>biz.aQute.bnd.workspace</groupId>
1313
<artifactId>biz.aQute.bnd.workspace.gradle.plugin</artifactId>
14-
<version>6.4.0</version>
14+
<version>7.0.0</version>
1515
</dependency>
1616
<!-- com -->
1717
<dependency>
@@ -37,30 +37,30 @@
3737
<dependency>
3838
<groupId>com.google.guava</groupId>
3939
<artifactId>guava</artifactId>
40-
<version>32.1.2-jre</version>
40+
<version>32.1.3-jre</version>
4141
</dependency>
4242
<dependency>
4343
<groupId>com.google.guava</groupId>
4444
<artifactId>failureaccess</artifactId>
45-
<version>1.0.1</version>
45+
<version>1.0.2</version>
4646
</dependency>
4747
<dependency>
4848
<!-- Used by com.influxdb: influxdb -->
4949
<groupId>com.squareup.okhttp3</groupId>
5050
<artifactId>logging-interceptor</artifactId>
51-
<version>4.11.0</version>
51+
<version>4.12.0</version>
5252
</dependency>
5353
<dependency>
5454
<!-- Used by com.influxdb: influxdb -->
5555
<groupId>com.squareup.okhttp3</groupId>
5656
<artifactId>okhttp</artifactId>
57-
<version>4.11.0</version>
57+
<version>4.12.0</version>
5858
</dependency>
5959
<dependency>
6060
<!-- Used by com.squareup.okhttp3: okhttp -->
6161
<groupId>com.squareup.okio</groupId>
6262
<artifactId>okio-jvm</artifactId>
63-
<version>3.5.0</version>
63+
<version>3.6.0</version>
6464
</dependency>
6565
<dependency>
6666
<!-- Used by com.influxdb: influxdb-client -->
@@ -109,15 +109,15 @@
109109
<!-- Changelog: https://commons.apache.org/proper/commons-io/changes-report.html -->
110110
<groupId>commons-io</groupId>
111111
<artifactId>commons-io</artifactId>
112-
<version>2.13.0</version>
112+
<version>2.15.0</version>
113113
</dependency>
114114
<!-- de -->
115115
<dependency>
116116
<!-- PgBulkInsert is a Java library for Bulk Inserts to PostgreSQL using the Binary COPY Protocol. -->
117117
<!-- Changelog: https://github.com/PgBulkInsert/PgBulkInsert/blob/master/CHANGELOG.md-->
118118
<groupId>de.bytefish</groupId>
119119
<artifactId>pgbulkinsert</artifactId>
120-
<version>8.1.1</version>
120+
<version>8.1.2</version>
121121
</dependency>
122122
<!-- eu -->
123123
<dependency>
@@ -154,7 +154,7 @@
154154
<dependency>
155155
<groupId>io.reactivex.rxjava3</groupId>
156156
<artifactId>rxjava</artifactId>
157-
<version>3.1.7</version>
157+
<version>3.1.8</version>
158158
</dependency>
159159
<!-- javax -->
160160
<dependency>
@@ -208,13 +208,13 @@
208208
<!-- Changelog: https://github.com/apache/felix-dev/commits/master/http -->
209209
<groupId>org.apache.felix</groupId>
210210
<artifactId>org.apache.felix.http.jetty</artifactId>
211-
<version>5.1.0</version>
211+
<version>5.1.2</version>
212212
</dependency>
213213
<dependency>
214214
<!-- Apache Felix Servlet API -->
215215
<groupId>org.apache.felix</groupId>
216216
<artifactId>org.apache.felix.http.servlet-api</artifactId>
217-
<version>2.1.0</version>
217+
<version>3.0.0</version>
218218
</dependency>
219219
<dependency>
220220
<!-- Apache Felix Inventory -->
@@ -242,7 +242,7 @@
242242
<!-- Changelog: https://github.com/apache/felix-dev/blob/master/webconsole/README.md#releases -->
243243
<groupId>org.apache.felix</groupId>
244244
<artifactId>org.apache.felix.webconsole</artifactId>
245-
<version>4.9.4</version>
245+
<version>4.9.6</version>
246246
</dependency>
247247
<dependency>
248248
<!-- Apache Felix Web Console Service Component Runtime/Declarative Services Plugin -->
@@ -256,13 +256,6 @@
256256
<artifactId>org.apache.servicemix.bundles.junit</artifactId>
257257
<version>4.13.2_1</version>
258258
</dependency>
259-
<dependency>
260-
<!-- Checker Qual: annotations for type-checking by the Checker Framework -->
261-
<!-- Changelog: https://github.com/typetools/checker-framework/blob/master/docs/CHANGELOG.md -->
262-
<groupId>org.checkerframework</groupId>
263-
<artifactId>checker-qual</artifactId>
264-
<version>3.38.0</version>
265-
</dependency>
266259
<dependency>
267260
<groupId>org.dhatim</groupId>
268261
<artifactId>fastexcel</artifactId>
@@ -313,7 +306,7 @@
313306
<!-- HTML processing -->
314307
<groupId>org.jsoup</groupId>
315308
<artifactId>jsoup</artifactId>
316-
<version>1.16.1</version>
309+
<version>1.16.2</version>
317310
</dependency>
318311
<dependency>
319312
<groupId>org.osgi</groupId>
5.9 KB
Loading

doc/modules/ROOT/pages/ui/implementing-a-widget.adoc

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,46 @@ Shows a horizontal line, that is used to divide children of AbstractFlatWidgetLi
135135
Passing data can be done two ways:
136136

137137
- @Input() channelAddress: provide channel, which will be subscribed in AbstractFlatWidgetLine.
138-
- @Input() value: subscribe in the ts-file and pass the subscribed value.
138+
- @Input() value: subscribe in the ts-file and pass the subscribed value.
139+
140+
### Creating a modal
141+
142+
Creating a `modal-widget` is pretty similar to creating a `flat-widget`.
143+
The model should act as the detailed view of a `flat-widget` and can also fit the purpose of user interaction.
144+
145+
There are multiple implementations of `modals` at the creation time of this page, but the one thats considered best practice is the unit-testable version.
146+
147+
#### Creating a Line
148+
149+
Lets take a look at one link:https://github.com/OpenEMS/openems/blob/develop/ui/src/app/edge/live/common/consumption/modal/modal.ts[example].
150+
151+
[source, html]
152+
----
153+
public static generateView(
154+
config: EdgeConfig, role: Role, translate: TranslateService)
155+
:OeFormlyView {
156+
157+
// Total
158+
lines.push({
159+
type: 'channel-line',
160+
name: translate.instant('General.TOTAL'),
161+
channel: '_sum/ConsumptionActivePower',
162+
converter: Converter.ONLY_POSITIVE_POWER_AND_NEGATIVE_AS_ZERO
163+
});
164+
165+
return {
166+
title: translate.instant('General.grid'),
167+
lines: lines
168+
};
169+
}
170+
----
171+
172+
Predefined fields in link:https://github.com/OpenEMS/openems/blob/develop/ui/src/app/shared/genericComponents/shared/oe-formly-component.ts[OeFormlyField] can be used here.
173+
174+
For this line we use the type 'channel-line'. This represents a line, where a channel has to be subscribed. You also need to specify the link:https://github.com/OpenEMS/openems/blob/develop/ui/src/app/shared/genericComponents/shared/converter.ts[converter], that uses the data coming from this channel and mutates it. A link:https://github.com/OpenEMS/openems/blob/develop/ui/src/app/shared/genericComponents/shared/filter.ts[filter], which has to return a boolean, decides if the line will be shown or not.
175+
176+
NOTE: Lines should always present one line of data visualisation. It could be consisting of a identifier and a value or just a value. The value or channel will be shown at the end of the line, the name, if provided, at the start.
177+
178+
This line will be looking like this:
179+
180+
image::modal-line-example-consumption.png[]

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bnd_version=6.4.0
1+
bnd_version=7.0.0
22
bnd_snapshots=https://bndtools.jfrog.io/bndtools/libs-snapshot-local
33
bnd_releases=https://bndtools.jfrog.io/bndtools/libs-release-local
44

gradlew

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum

0 commit comments

Comments
 (0)