@pageboard/html 0.11.9 → 0.11.12

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 CHANGED
@@ -66,6 +66,7 @@ exports.api_form = {
66
66
  group: 'block form',
67
67
  menu: "form",
68
68
  required: ["action"],
69
+ expressions: true,
69
70
  $lock: {
70
71
  'data.action.parameters': 'webmaster'
71
72
  },
@@ -115,7 +116,7 @@ exports.api_form = {
115
116
  nullable: true,
116
117
  type: "string",
117
118
  format: "pathname",
118
- $helper: "page"
119
+ $helper: "page" // isn't it pageUrl here ?
119
120
  },
120
121
  parameters: {
121
122
  title: 'Parameters',
@@ -52,8 +52,11 @@ exports.input_date_time = {
52
52
  title: 'Step',
53
53
  description: 'rounding/increment in seconds',
54
54
  type: 'integer',
55
- nullable: true,
55
+ default: 60,
56
56
  anyOf: [{
57
+ const: 60,
58
+ title: '1 minute'
59
+ }, {
57
60
  const: 60 * 5,
58
61
  title: '5 minutes'
59
62
  }, {
@@ -439,7 +439,8 @@ exports.input_select = {
439
439
  </div>`,
440
440
  stylesheets: [
441
441
  '../lib/components/dropdown.css',
442
- '../lib/components/label.css'
442
+ '../lib/components/label.css',
443
+ '../ui/select.css'
443
444
  ],
444
445
  scripts: [
445
446
  '../ui/select.js'
@@ -65,4 +65,4 @@ exports.sitemap = {
65
65
  };
66
66
 
67
67
  exports.sitepage = exports.sitemap.itemModel('page', false);
68
-
68
+ exports.siteredirection = exports.sitemap.itemModel('redirection', true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.11.9",
3
+ "version": "0.11.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -62,7 +62,7 @@ class HTMLElementFieldsetList extends VirtualHTMLElement {
62
62
  const splits = Array.from(keys).map(name => name.split('.'));
63
63
  const coms = [];
64
64
  let pos = 0, com = null;
65
- while (splits.every(list => {
65
+ if (splits.length && splits.every(list => {
66
66
  if (com == null) {
67
67
  if (pos < list.length) {
68
68
  com = list[pos];
package/ui/form.js CHANGED
@@ -127,8 +127,11 @@ class HTMLCustomFormElement extends HTMLFormElement {
127
127
  if (v == null) {
128
128
  return "";
129
129
  } else if (Array.isArray(v)) {
130
- if (["radio", "checkbox"].includes(elem.type)) return v;
131
- else return v.shift();
130
+ if (["radio", "checkbox", "select-multiple"].includes(elem.type)) {
131
+ return v;
132
+ } else {
133
+ return v.shift();
134
+ }
132
135
  } else if (typeof v == "object") {
133
136
  return v;
134
137
  } else {
package/ui/select.css ADDED
@@ -0,0 +1,7 @@
1
+ element-select.ui.multiple.dropdown > .label > .icon {
2
+ vertical-align: middle;
3
+ }
4
+ element-select.ui.multiple.dropdown > .label {
5
+ vertical-align: baseline;
6
+ line-height: inherit;
7
+ }