@pageboard/html 0.11.3 → 0.11.6
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/fieldsets.js +4 -2
- package/elements/form.js +6 -3
- package/elements/layout.js +30 -0
- package/package.json +1 -1
- package/ui/fieldset-list.css +0 -3
- package/ui/fieldset.css +17 -0
- package/ui/site.css +1 -1
package/elements/fieldsets.js
CHANGED
|
@@ -25,14 +25,16 @@ exports.fieldset = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
plain: {
|
|
28
|
-
title: '
|
|
28
|
+
title: 'Plain',
|
|
29
|
+
description: 'Without legend or borders',
|
|
29
30
|
type: 'boolean',
|
|
30
31
|
default: false
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
contents: "fieldset_legend block+",
|
|
34
35
|
html: '<fieldset class="[plain|?]" data-name="[name]" data-value="[value]" is="element-fieldset"></fieldset>',
|
|
35
|
-
scripts: ["../ui/fieldset.js"]
|
|
36
|
+
scripts: ["../ui/fieldset.js"],
|
|
37
|
+
stylesheets: ['../ui/fieldset.css']
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
exports.fieldset_legend = {
|
package/elements/form.js
CHANGED
|
@@ -131,7 +131,8 @@ exports.api_form = {
|
|
|
131
131
|
properties: {
|
|
132
132
|
parameters: {
|
|
133
133
|
title: 'Parameters',
|
|
134
|
-
type: "object"
|
|
134
|
+
type: "object",
|
|
135
|
+
nullable: true
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
nullable: true
|
|
@@ -142,7 +143,8 @@ exports.api_form = {
|
|
|
142
143
|
properties: {
|
|
143
144
|
parameters: {
|
|
144
145
|
title: 'Parameters',
|
|
145
|
-
type: "object"
|
|
146
|
+
type: "object",
|
|
147
|
+
nullable: true
|
|
146
148
|
}
|
|
147
149
|
},
|
|
148
150
|
nullable: true
|
|
@@ -153,7 +155,8 @@ exports.api_form = {
|
|
|
153
155
|
properties: {
|
|
154
156
|
parameters: {
|
|
155
157
|
title: 'Parameters',
|
|
156
|
-
type: "object"
|
|
158
|
+
type: "object",
|
|
159
|
+
nullable: true
|
|
157
160
|
}
|
|
158
161
|
},
|
|
159
162
|
nullable: true
|
package/elements/layout.js
CHANGED
|
@@ -94,6 +94,33 @@ exports.layout = {
|
|
|
94
94
|
const: '%'
|
|
95
95
|
}]
|
|
96
96
|
},
|
|
97
|
+
margins: {
|
|
98
|
+
title: 'Margins',
|
|
99
|
+
type: 'object',
|
|
100
|
+
nullable: true,
|
|
101
|
+
properties: {
|
|
102
|
+
inline: {
|
|
103
|
+
title: 'Inline (em)',
|
|
104
|
+
type: 'number',
|
|
105
|
+
default: 0,
|
|
106
|
+
multipleOf: 0.1,
|
|
107
|
+
nullable: true
|
|
108
|
+
},
|
|
109
|
+
inlineUnits: {
|
|
110
|
+
const: 'em'
|
|
111
|
+
},
|
|
112
|
+
block: {
|
|
113
|
+
title: 'Block (rem)',
|
|
114
|
+
type: 'number',
|
|
115
|
+
default: 0,
|
|
116
|
+
multipleOf: 0.1,
|
|
117
|
+
nullable: true
|
|
118
|
+
},
|
|
119
|
+
blockUnits: {
|
|
120
|
+
const: 'rem'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
97
124
|
invert: {
|
|
98
125
|
title: 'Invert',
|
|
99
126
|
description: 'Invert background',
|
|
@@ -127,6 +154,7 @@ exports.layout = {
|
|
|
127
154
|
crop: {
|
|
128
155
|
title: 'Crop and scale',
|
|
129
156
|
type: "object",
|
|
157
|
+
nullable: true,
|
|
130
158
|
properties: {
|
|
131
159
|
x: {
|
|
132
160
|
type: "number",
|
|
@@ -260,6 +288,8 @@ exports.layout = {
|
|
|
260
288
|
[direction]
|
|
261
289
|
[invert|?:inverted]"
|
|
262
290
|
is="element-layout"
|
|
291
|
+
style-margin-block="[margins.block|eq:0:|not|magnet][margins.blockUnits]"
|
|
292
|
+
style-margin-inline="[margins.inline|eq:0:|not|magnet][margins.inlineUnits]"
|
|
263
293
|
style-height="[height|eq:0:|not|magnet][heightUnits]"
|
|
264
294
|
data-src="[background.image]"
|
|
265
295
|
data-crop="[background.crop.x];[background.crop.y];[background.crop.width];[background.crop.height];[background.crop.zoom]"
|
package/package.json
CHANGED
package/ui/fieldset-list.css
CHANGED
package/ui/fieldset.css
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
fieldset {
|
|
2
|
+
width:100%;
|
|
3
|
+
}
|
|
4
|
+
fieldset:not(.plain) {
|
|
5
|
+
padding: 1em;
|
|
6
|
+
padding-top:0.5em;
|
|
7
|
+
}
|
|
8
|
+
fieldset.plain {
|
|
9
|
+
padding:0;
|
|
10
|
+
}
|
|
11
|
+
fieldset.plain > legend {
|
|
12
|
+
display:none;
|
|
13
|
+
}
|
|
14
|
+
fieldset:not(.plain) > legend {
|
|
15
|
+
padding-left:0.1em;
|
|
16
|
+
padding-right:0.2em;
|
|
17
|
+
}
|