@livinglogic/livingapi 0.10.0 → 0.13.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 +68 -0
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1823
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1823
- 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 +14 -11
- package/rollup.config.js +1 -1
- package/src/livingapi.js +1641 -186
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## 0.13.0 (2021-11-30)
|
|
5
|
+
|
|
6
|
+
Renamed `AppLookupControl.lookupapp` to `lookup_app` and
|
|
7
|
+
`AppLookupControl.lookupcontrols` to `lookup_controls`.
|
|
8
|
+
|
|
9
|
+
Add the following attributes for hierarchical applookup to ``AppLookupControl``:
|
|
10
|
+
``local_master_control``, ``local_detail_controls`` and ``remote_master_control``.
|
|
11
|
+
|
|
12
|
+
Add attribute `favorite` to `App` and expose it to UL4. Expose `superid` to
|
|
13
|
+
UL4ON.
|
|
14
|
+
|
|
15
|
+
Rename `App.language` to `App.lang`.
|
|
16
|
+
|
|
17
|
+
Added `Globals.mode` which is the template mode we're running in. Valid values
|
|
18
|
+
are `"form/new/init"`, `"form/new/search"`, `"form/new/failed"`,
|
|
19
|
+
`"form/new/presave"`, `"form/new/postsave"`, `"form/edit/init"`,
|
|
20
|
+
`"form/edit/search"`, `"form/edit/failed"`, `"form/edit/presave`,
|
|
21
|
+
`"form/edit/postsave"`, `"view/list"`, `"view/detail"`, `"view/support"`,
|
|
22
|
+
`"email/text` and `email/html"`.
|
|
23
|
+
|
|
24
|
+
Most LivingAPI objects are now persistent objects.
|
|
25
|
+
|
|
26
|
+
Updated the code to directly use `Set` and `Map`.
|
|
27
|
+
|
|
28
|
+
Implement `Globals.scaledURL()`.
|
|
29
|
+
|
|
30
|
+
All LivingAPI object now implement `toString()` (by calling `repr()`).
|
|
31
|
+
|
|
32
|
+
Add the classes `ViewControl`, `HTMLLayoutControl` and `ImageLayoutControl` and
|
|
33
|
+
attributes `View.controls` and `App.active_view`.
|
|
34
|
+
|
|
35
|
+
Setting `App.active_view` to a `View` objects makes `Control` attributes honor
|
|
36
|
+
the additional information defined in the `View`.
|
|
37
|
+
|
|
38
|
+
Added `View` attributes `lang`, `controls` and `layout_controls`.
|
|
39
|
+
|
|
40
|
+
Added `App` attribute `layout_controls`.
|
|
41
|
+
|
|
42
|
+
Added various `Control` attributes that are used in `View`s: `top`, `left`,
|
|
43
|
+
`width`, `height`, `default`, `tabindex`, `minlength`, `maxlength`, `required`,
|
|
44
|
+
`placeholder`, `mode`, `labelpos`, `autoalign` and `labelwidth`.
|
|
45
|
+
|
|
46
|
+
Added attribute `format` to `DateControl`.
|
|
47
|
+
|
|
48
|
+
Added attributes `none_key` and `none_label` to `LookupControl`,
|
|
49
|
+
`MultipleLookupControl`, `AppLookupControl` and `MultipleAppLookupControl`.
|
|
50
|
+
|
|
51
|
+
Implemented field value validation and support for field default values.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## 0.12.0 (2020-08-31)
|
|
55
|
+
|
|
56
|
+
Added classes `FileSignatureControl` and `HTMLControl`.
|
|
57
|
+
|
|
58
|
+
Added attributes `Globals.app` and `Globals.record`.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 0.11.1 (2020-04-06)
|
|
62
|
+
|
|
63
|
+
Updated dependencies.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## 0.11.0 (2019-07-24)
|
|
67
|
+
|
|
68
|
+
Add support for the following attributes of the ``globals`` objects: ``lang``,
|
|
69
|
+
``datasources`` and ``hostname``.
|
|
70
|
+
|
|
71
|
+
|
|
4
72
|
## 0.10.0 (2019-05-13)
|
|
5
73
|
|
|
6
74
|
The UMD version is the default now (i.e. in `package.json/main`).
|
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ do
|
|
|
41
41
|
|
|
42
42
|
```html
|
|
43
43
|
<script type="module">
|
|
44
|
-
import * as la from '/static/livingapi/0.
|
|
44
|
+
import * as la from '/static/livingapi/0.11.0/dist/esm-static/livingapi.js';
|
|
45
45
|
...
|
|
46
46
|
</script>
|
|
47
47
|
```
|
|
@@ -51,7 +51,7 @@ or (if you need both UL4 and LivingAPI):
|
|
|
51
51
|
```html
|
|
52
52
|
<script type="module">
|
|
53
53
|
import * as ul4 from '/static/ul4/1.1.0/dist/esm/ul4.js';
|
|
54
|
-
import * as la from '/static/livingapi/0.
|
|
54
|
+
import * as la from '/static/livingapi/0.11.0/dist/esm-static/livingapi.js';
|
|
55
55
|
...
|
|
56
56
|
</script>
|
|
57
57
|
```
|