@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.
- package/elements/layout.js +2 -2
- package/package.json +1 -1
- package/ui/fieldset-list.js +2 -2
- package/ui/image.js +4 -4
- package/ui/transition.js +1 -1
package/elements/layout.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.layout = {
|
|
|
7
7
|
properties: {
|
|
8
8
|
horizontal: {
|
|
9
9
|
title: 'Horizontal',
|
|
10
|
-
description: '
|
|
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: '
|
|
31
|
+
description: 'Block disposition',
|
|
32
32
|
default: "top",
|
|
33
33
|
anyOf: [{
|
|
34
34
|
const: "top",
|
package/package.json
CHANGED
package/ui/fieldset-list.js
CHANGED
|
@@ -27,12 +27,12 @@ class HTMLElementFieldsetList extends Page.Element {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
reset() {
|
|
30
|
-
this.#list = this.#defaultList
|
|
30
|
+
this.#list = this.#defaultList?.slice();
|
|
31
31
|
this.#refresh();
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
save() {
|
|
35
|
-
this.#defaultList = this.#list
|
|
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
|
|