@startinblox/core 1.0.0-beta.4 → 2.0.0-beta.1
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/dist/index.js +34 -27
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34494,43 +34494,49 @@ const formTemplates = {
|
|
|
34494
34494
|
},
|
|
34495
34495
|
radio: {
|
|
34496
34496
|
template: (value, attributes) => x`
|
|
34497
|
-
|
|
34497
|
+
<fieldset>
|
|
34498
|
+
<legend
|
|
34498
34499
|
name=${o$2(attributes.name)}
|
|
34499
34500
|
>
|
|
34500
|
-
${
|
|
34501
|
+
${attributes.label}
|
|
34502
|
+
</legend>
|
|
34503
|
+
${(attributes.range || []).map(
|
|
34501
34504
|
(el) => x`
|
|
34502
|
-
|
|
34503
|
-
|
|
34504
|
-
|
|
34505
|
-
|
|
34506
|
-
|
|
34507
|
-
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
|
|
34511
|
-
|
|
34505
|
+
<label>
|
|
34506
|
+
<input
|
|
34507
|
+
type="radio"
|
|
34508
|
+
name=${o$2(attributes.id)}
|
|
34509
|
+
value=${el.value}
|
|
34510
|
+
?required=${attributes.required}
|
|
34511
|
+
?checked=${value === el.selectedValue}
|
|
34512
|
+
> <span>${el.label}</span>
|
|
34513
|
+
</label>
|
|
34514
|
+
`
|
|
34512
34515
|
)}
|
|
34513
|
-
|
|
34516
|
+
${Object.entries(attributes.enum || []).map(
|
|
34514
34517
|
([key, val]) => x`
|
|
34515
|
-
|
|
34516
|
-
|
|
34517
|
-
|
|
34518
|
-
|
|
34519
|
-
|
|
34520
|
-
|
|
34521
|
-
|
|
34522
|
-
|
|
34523
|
-
|
|
34524
|
-
|
|
34518
|
+
<label>
|
|
34519
|
+
<input
|
|
34520
|
+
type="radio"
|
|
34521
|
+
value="${key}"
|
|
34522
|
+
name=${o$2(attributes.id)}
|
|
34523
|
+
?required=${attributes.required}
|
|
34524
|
+
?checked=${value === key}
|
|
34525
|
+
> <span>${val}</span>
|
|
34526
|
+
</label>
|
|
34527
|
+
`
|
|
34525
34528
|
)}
|
|
34529
|
+
</fieldset>
|
|
34526
34530
|
`,
|
|
34527
34531
|
dependencies: [FormRadioMixin, FormMixin, RangeMixin]
|
|
34528
34532
|
},
|
|
34529
34533
|
multicheckbox: {
|
|
34530
34534
|
template: (_value, attributes) => x`
|
|
34531
|
-
<
|
|
34532
|
-
|
|
34533
|
-
|
|
34535
|
+
<fieldset>
|
|
34536
|
+
<legend
|
|
34537
|
+
name=${o$2(attributes.name)}>
|
|
34538
|
+
${attributes.label}
|
|
34539
|
+
</legend>
|
|
34534
34540
|
${(attributes.range || []).map(
|
|
34535
34541
|
(el) => x`
|
|
34536
34542
|
<label>
|
|
@@ -34551,7 +34557,7 @@ const formTemplates = {
|
|
|
34551
34557
|
</label>
|
|
34552
34558
|
`
|
|
34553
34559
|
)}
|
|
34554
|
-
</
|
|
34560
|
+
</fieldset>
|
|
34555
34561
|
`,
|
|
34556
34562
|
dependencies: [FormCheckboxesMixin, FormMixin, RangeMixin]
|
|
34557
34563
|
},
|
|
@@ -34568,6 +34574,7 @@ const formTemplates = {
|
|
|
34568
34574
|
order-asc=${o$2(attributes.orderAsc)}
|
|
34569
34575
|
order-desc=${o$2(attributes.orderDesc)}
|
|
34570
34576
|
?required=${attributes.required}
|
|
34577
|
+
label=${o$2(attributes.label)}
|
|
34571
34578
|
></solid-form-multicheckbox>
|
|
34572
34579
|
`,
|
|
34573
34580
|
dependencies: [MultipleselectFormMixin, FormMixin, RangeMixin]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|