@pageboard/html 0.10.20 → 0.10.21

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/grid.js CHANGED
@@ -19,7 +19,7 @@ exports.grid = {
19
19
  title: 'Responsive',
20
20
  anyOf: [{
21
21
  title: 'No',
22
- const: null
22
+ type: 'null'
23
23
  }, {
24
24
  title: 'Stackable',
25
25
  const: 'stackable'
@@ -52,8 +52,13 @@ exports.input_date_time = {
52
52
  title: 'Step',
53
53
  description: 'rounding/increment in seconds',
54
54
  type: 'integer',
55
- nullable: true,
55
+ default: null,
56
56
  anyOf: [{
57
+ const: null,
58
+ title: '1 minute'
59
+ }, {
60
+ const: 60
61
+ }, {
57
62
  const: 60 * 5,
58
63
  title: '5 minutes'
59
64
  }, {
@@ -156,8 +156,8 @@ exports.input_text = {
156
156
  nodes: 'inline*'
157
157
  },
158
158
  patterns: {
159
- tel: /^(\(\d+\))? *\d+([ .\-]?\d+)*$/.source,
160
- email: /^[\w.!#$%&'*+\/=?^`{|}~-]+@\w(?:[\w-]{0,61}\w)?(?:\.\w(?:[\w-]{0,61}\w)?)*$/.source
159
+ tel: /^(\(\d+\))? *\d+([ .-]?\d+)*$/.source,
160
+ email: /^[\w.!#$%&'*+/=?^`{|}~-]+@\w(?:[\w-]{0,61}\w)?(?:\.\w(?:[\w-]{0,61}\w)?)*$/.source
161
161
  },
162
162
  html: `<div class="[width|num: wide] field [type|eq:hidden:hidden:]">
163
163
  <label block-content="label">Label</label>
@@ -233,7 +233,7 @@ exports.input_range = {
233
233
  menu: "form",
234
234
  group: "block",
235
235
  context: 'form//',
236
- properties: Object.assign({
236
+ properties: Object.assign({}, exports.input_number.properties, {
237
237
  multiple: {
238
238
  title: 'Multiple',
239
239
  type: 'boolean',
@@ -242,9 +242,14 @@ exports.input_range = {
242
242
  pips: {
243
243
  title: 'Pips',
244
244
  type: 'boolean',
245
- default: true
245
+ default: false
246
+ },
247
+ step: {
248
+ title: 'Step',
249
+ type: "number",
250
+ default: 10
246
251
  }
247
- }, exports.input_number.properties),
252
+ }),
248
253
  contents: {
249
254
  id: 'label',
250
255
  nodes: 'inline*'
@@ -57,8 +57,10 @@ exports.layout = {
57
57
  },
58
58
  width: {
59
59
  title: 'Width',
60
- default: "full",
61
60
  anyOf: [{
61
+ type: "null",
62
+ title: "None"
63
+ }, {
62
64
  const: "full",
63
65
  title: "Full"
64
66
  }, {
@@ -125,6 +127,7 @@ exports.layout = {
125
127
  crop: {
126
128
  title: 'Crop and scale',
127
129
  type: "object",
130
+ nullable: true,
128
131
  properties: {
129
132
  x: {
130
133
  type: "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pageboard/html",
3
- "version": "0.10.20",
3
+ "version": "0.10.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {