@pageboard/html 0.16.15 → 0.16.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/table.js +16 -3
- package/package.json +2 -2
- package/ui/input-date.js +3 -0
package/elements/table.js
CHANGED
|
@@ -113,7 +113,7 @@ exports.table_row = {
|
|
|
113
113
|
title: "Row",
|
|
114
114
|
menu: 'widget',
|
|
115
115
|
icon: '<b class="icon">row</b>',
|
|
116
|
-
contents: 'table_cell+',
|
|
116
|
+
contents: '(table_cell|table_head_cell)+',
|
|
117
117
|
inplace: true,
|
|
118
118
|
html: '<tr></tr>'
|
|
119
119
|
};
|
|
@@ -175,7 +175,7 @@ exports.table_cell = {
|
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
exports.table_head_cell = {
|
|
178
|
-
title: "Cell",
|
|
178
|
+
title: "Head Cell",
|
|
179
179
|
menu: 'widget',
|
|
180
180
|
icon: '<i class="icons"><b class="icon">head</b><i class="corner add icon"></i></i>',
|
|
181
181
|
properties: {
|
|
@@ -201,12 +201,25 @@ exports.table_head_cell = {
|
|
|
201
201
|
minimum: 1,
|
|
202
202
|
maximum: 1000,
|
|
203
203
|
default: 1
|
|
204
|
+
},
|
|
205
|
+
scope: {
|
|
206
|
+
title: 'Scope',
|
|
207
|
+
anyOf: [{
|
|
208
|
+
const: null,
|
|
209
|
+
title: 'None'
|
|
210
|
+
}, {
|
|
211
|
+
const: 'row',
|
|
212
|
+
title: 'Row'
|
|
213
|
+
}, {
|
|
214
|
+
const: 'col',
|
|
215
|
+
title: 'Column'
|
|
216
|
+
}]
|
|
204
217
|
}
|
|
205
218
|
},
|
|
206
219
|
contents: "block+",
|
|
207
220
|
tag: 'th',
|
|
208
221
|
inplace: true,
|
|
209
|
-
html: '<th class="[align|post: aligned] [width|as:colnums|post: wide]" rowspan="[rowspan]" colspan="[colspan]"></th>',
|
|
222
|
+
html: '<th class="[align|post: aligned] [width|as:colnums|post: wide]" rowspan="[rowspan]" colspan="[colspan]" scope="[scope]"></th>',
|
|
210
223
|
stylesheets: [
|
|
211
224
|
"../ui/table.css"
|
|
212
225
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pageboard/html",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"homepage": "https://github.com/pageboard/client#readme",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"nouislider": "^15.8.1",
|
|
18
|
-
"postinstall": "^0.11.
|
|
18
|
+
"postinstall": "^0.11.1"
|
|
19
19
|
},
|
|
20
20
|
"postinstall": {
|
|
21
21
|
"nouislider/dist/nouislider.js": "link lib/",
|
package/ui/input-date.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
class HTMLElementInputDate extends Page.create(HTMLInputElement) {
|
|
2
2
|
patch() {
|
|
3
3
|
if (this.type == "date") this.removeAttribute('step');
|
|
4
|
+
if (this.hasAttribute('value')) this.setAttribute('value', this.getAttribute('value'));
|
|
4
5
|
}
|
|
5
6
|
|
|
7
|
+
// FIXME: doesn't initialize itself with already set "value" attribute
|
|
8
|
+
|
|
6
9
|
setAttribute(name, value) {
|
|
7
10
|
if (name == "value") {
|
|
8
11
|
this.value = value;
|