@pageboard/html 0.11.21 → 0.11.23
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/form.js +1 -1
- package/elements/input-date.js +6 -3
- package/elements/input-file.js +2 -1
- package/elements/paragraph.js +0 -3
- package/package.json +6 -7
- package/ui/card.css +0 -0
- package/ui/item.css +0 -0
- package/ui/menu.css +0 -4
- package/ui/rating.css +0 -0
- package/ui/heading.js +0 -9
package/elements/form.js
CHANGED
|
@@ -168,7 +168,7 @@ exports.api_form = {
|
|
|
168
168
|
tag: 'form[method="post"]',
|
|
169
169
|
html: `<form is="element-form" method="post" name="[name]"
|
|
170
170
|
action="/.api/form/[$id]"
|
|
171
|
-
parameters="[$expr.action.parameters|ornull|templates:$query
|
|
171
|
+
parameters="[$expr.action.parameters|ornull|templates:$query]"
|
|
172
172
|
success="[redirection|urltpl:url:parameters]"
|
|
173
173
|
badrequest="[badrequest|urltpl:url:parameters]"
|
|
174
174
|
unauthorized="[unauthorized|urltpl:url:parameters]"
|
package/elements/input-date.js
CHANGED
|
@@ -10,7 +10,8 @@ exports.input_date_time = {
|
|
|
10
10
|
title: "Name",
|
|
11
11
|
description: "The form object key",
|
|
12
12
|
type: "string",
|
|
13
|
-
format: "singleline"
|
|
13
|
+
format: "singleline",
|
|
14
|
+
$helper: 'element-property'
|
|
14
15
|
},
|
|
15
16
|
value: {
|
|
16
17
|
title: "Default value",
|
|
@@ -105,13 +106,15 @@ exports.input_date_slot = {
|
|
|
105
106
|
title: "Name for start date",
|
|
106
107
|
description: "The form object key",
|
|
107
108
|
type: "string",
|
|
108
|
-
format: "singleline"
|
|
109
|
+
format: "singleline",
|
|
110
|
+
$helper: 'element-property'
|
|
109
111
|
},
|
|
110
112
|
nameEnd: {
|
|
111
113
|
title: "Name for end date",
|
|
112
114
|
description: "The form object key",
|
|
113
115
|
type: "string",
|
|
114
|
-
format: "singleline"
|
|
116
|
+
format: "singleline",
|
|
117
|
+
$helper: 'element-property'
|
|
115
118
|
},
|
|
116
119
|
valueStart: {
|
|
117
120
|
title: 'Start time',
|
package/elements/input-file.js
CHANGED
package/elements/paragraph.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pageboard/html",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"postinstall": "postinstall",
|
|
9
|
-
"prepare": "postinstall"
|
|
10
|
-
},
|
|
11
6
|
"repository": {
|
|
12
7
|
"type": "git",
|
|
13
8
|
"url": "git+https://github.com/pageboard/client.git"
|
|
@@ -48,5 +43,9 @@
|
|
|
48
43
|
"elements": [
|
|
49
44
|
"elements/"
|
|
50
45
|
]
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
49
|
+
"postinstall": "postinstall"
|
|
51
50
|
}
|
|
52
|
-
}
|
|
51
|
+
}
|
package/ui/card.css
CHANGED
|
File without changes
|
package/ui/item.css
CHANGED
|
File without changes
|
package/ui/menu.css
CHANGED
package/ui/rating.css
CHANGED
|
File without changes
|
package/ui/heading.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Page.patch(state => {
|
|
2
|
-
state.finish(() => {
|
|
3
|
-
const heading = document.body.querySelector('element-template > .view h1');
|
|
4
|
-
if (!heading) return;
|
|
5
|
-
const title = document.head.querySelector('title');
|
|
6
|
-
if (!title) return;
|
|
7
|
-
title.textContent = heading.textContent.trim() + ' - ' + title.textContent;
|
|
8
|
-
});
|
|
9
|
-
});
|