@livinglogic/livingapi 1.39.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-npm/livingapi.js +1 -1
- package/dist/esm-npm/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +1 -1
- package/src/livingapi.js +102 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 1.40.0
|
|
4
|
+
|
|
5
|
+
`Globals` has two new read-only attributes for the versioned template
|
|
6
|
+
library: `template_libraries` is a dict that maps each available version
|
|
7
|
+
number to a `TemplateLibrary` object, and `template_library_version` is the
|
|
8
|
+
version that is used for rendering (the version of the app the dump was made
|
|
9
|
+
for).
|
|
10
|
+
|
|
11
|
+
`App` has a new attribute `template_library_version` that specifies which
|
|
12
|
+
version of the template library the app uses. It can be set from UL4 (to an
|
|
13
|
+
int); setting it to a version that isn't in `globals.template_libraries`
|
|
14
|
+
raises an error.
|
|
15
|
+
|
|
16
|
+
The new class `TemplateLibrary` describes one version of the template
|
|
17
|
+
library. It has the read-only attributes `version`, `label`, `description`,
|
|
18
|
+
`templates` and `parameters`.
|
|
19
|
+
|
|
20
|
+
The UL4ON attributes of `Globals` now contain the `form` string at the
|
|
21
|
+
position where the Java gateway dumps it. Previously it was missing, so that
|
|
22
|
+
`view_template_id` received the form string, `email_template_id` the view
|
|
23
|
+
template id and `view_id` the email template id. The attributes
|
|
24
|
+
`externaldatasources` and `template_params` have been added to the UL4ON
|
|
25
|
+
attributes too.
|
|
26
|
+
|
|
27
|
+
This mirrors the changes in the Java and Python LivingAPI.
|
|
28
|
+
|
|
29
|
+
`User` has a new attribute `colorscheme`: the preferred browser color scheme
|
|
30
|
+
of the user as one of the strings `"light"`, `"dark"` or `"auto"` (dumps from
|
|
31
|
+
an older database default to `"auto"`).
|
|
32
|
+
|
|
33
|
+
|
|
3
34
|
## 1.39.0
|
|
4
35
|
|
|
5
36
|
`AppLookupControl` and `MultipleAppLookupControl` have a new read-only
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ do
|
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
42
|
<script type="module">
|
|
43
|
-
import * as la from '/npm/@livinglogic/livingapi@1.
|
|
43
|
+
import * as la from '/npm/@livinglogic/livingapi@1.40.0/dist/esm-npm/livingapi.js';
|
|
44
44
|
...
|
|
45
45
|
</script>
|
|
46
46
|
```
|
|
@@ -50,7 +50,7 @@ or (if you need both UL4 and LivingAPI):
|
|
|
50
50
|
```html
|
|
51
51
|
<script type="module">
|
|
52
52
|
import * as ul4 from '/npm/@livinglogic/ul4@1.19.0/dist/esm/ul4.js';
|
|
53
|
-
import * as la from '/npm/@livinglogic/livingapi@1.
|
|
53
|
+
import * as la from '/npm/@livinglogic/livingapi@1.40.0/dist/esm-npm/livingapi.js';
|
|
54
54
|
...
|
|
55
55
|
</script>
|
|
56
56
|
```
|