@livinglogic/livingapi 1.38.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 CHANGED
@@ -1,5 +1,47 @@
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
+
34
+ ## 1.39.0
35
+
36
+ `AppLookupControl` and `MultipleAppLookupControl` have a new read-only
37
+ attribute `on_delete` that specifies what happens when a record that is
38
+ referenced by a field of this control gets deleted: `null` means that the
39
+ reference is set to `null`, `"restrict"` means that deleting the referenced
40
+ record is prevented and `"cascade"` means that the referencing record is
41
+ deleted too. This mirrors the changes in the Java and Python LivingAPI (where
42
+ the attribute can also be changed and saved).
43
+
44
+
3
45
  ## 1.38.0
4
46
 
5
47
  `Globals` has a new read-only attribute `sys_lang` that contains the system
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.38.0/dist/esm-npm/livingapi.js';
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.38.0/dist/esm-npm/livingapi.js';
53
+ import * as la from '/npm/@livinglogic/livingapi@1.40.0/dist/esm-npm/livingapi.js';
54
54
  ...
55
55
  </script>
56
56
  ```