@pageboard/html 0.14.14 → 0.14.16

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.
@@ -7,7 +7,7 @@ exports.layout = {
7
7
  properties: {
8
8
  horizontal: {
9
9
  title: 'Horizontal',
10
- description: 'Position horizontally',
10
+ description: 'Inline disposition',
11
11
  default: "left",
12
12
  anyOf: [{
13
13
  const: "left",
@@ -28,7 +28,7 @@ exports.layout = {
28
28
  },
29
29
  vertical: {
30
30
  title: 'Vertical',
31
- description: 'Position vertically',
31
+ description: 'Block disposition',
32
32
  default: "top",
33
33
  anyOf: [{
34
34
  const: "top",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.14.14",
3
+ "version": "0.14.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -27,12 +27,12 @@ class HTMLElementFieldsetList extends Page.Element {
27
27
  }
28
28
 
29
29
  reset() {
30
- this.#list = this.#defaultList.slice();
30
+ this.#list = this.#defaultList?.slice();
31
31
  this.#refresh();
32
32
  }
33
33
 
34
34
  save() {
35
- this.#defaultList = this.#list.slice();
35
+ this.#defaultList = this.#list?.slice();
36
36
  }
37
37
 
38
38
  #modelize(tpl) {
package/ui/image.js CHANGED
@@ -156,8 +156,8 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
156
156
  this.#defer.resolve();
157
157
  this.classList.remove('loading');
158
158
  }
159
- captureError() {
160
- this.#defer.reject();
159
+ captureError(e) {
160
+ this.#defer.reject(new Error(this.currentSrc));
161
161
  this.classList.remove('loading');
162
162
  this.classList.add('error');
163
163
  this.placeholder(true);
@@ -200,8 +200,8 @@ class HTMLElementInlineImage extends HTMLElementImageConstructor(Page.create(HTM
200
200
  captureLoad() {
201
201
  super.captureLoad();
202
202
  }
203
- captureError() {
204
- super.captureError();
203
+ captureError(e) {
204
+ super.captureError(e);
205
205
  }
206
206
  }
207
207
 
package/ui/transition.js CHANGED
@@ -10,7 +10,7 @@ const loader = new class {
10
10
  this.update(state.stage);
11
11
  }
12
12
  build(state) {
13
- document.body.hidden = true;
13
+ if (!document.hidden) document.body.hidden = true;
14
14
  }
15
15
  patch(state) {
16
16
  this.update(state);