solid-ui 2.4.22-3e0d1a42 → 2.4.22-3e379ebd
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/README.md +23 -58
- package/dist/main.js +19 -11
- package/dist/main.js.map +1 -1
- package/lib/versionInfo.js +5 -5
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons.d.ts.map +1 -1
- package/lib/widgets/buttons.js +2 -0
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/forms.js +12 -6
- package/lib/widgets/forms.js.map +1 -1
- package/package.json +1 -1
package/lib/widgets/forms.js
CHANGED
|
@@ -159,10 +159,11 @@ _fieldFunction.field[ns.ui('Form').uri] = _fieldFunction.field[ns.ui('Group').ur
|
|
|
159
159
|
|
|
160
160
|
if (already[key]) {
|
|
161
161
|
// been there done that
|
|
162
|
-
box.appendChild(dom.createTextNode('Group: see above ' + key));
|
|
163
|
-
|
|
162
|
+
box.appendChild(dom.createTextNode('Group: see above ' + key)); // TODO fix dependency cycle to solid-panes by calling outlineManager
|
|
163
|
+
// const plist = [$rdf.st(subject, ns.owl('sameAs'), subject)] // @@ need prev subject
|
|
164
|
+
// dom.outlineManager.appendPropertyTRs(box, plist)
|
|
165
|
+
// dom.appendChild(plist)
|
|
164
166
|
|
|
165
|
-
dom.outlineManager.appendPropertyTRs(box, plist);
|
|
166
167
|
return box;
|
|
167
168
|
}
|
|
168
169
|
|
|
@@ -692,8 +693,7 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
692
693
|
}
|
|
693
694
|
|
|
694
695
|
var multipleUIlabel = kb.any(form, ui('label'));
|
|
695
|
-
if (!multipleUIlabel) multipleUIlabel = utils.label(property
|
|
696
|
-
|
|
696
|
+
if (!multipleUIlabel) multipleUIlabel = utils.label(property);
|
|
697
697
|
var min = kb.any(form, ui('min')); // This is the minimum number -- default 0
|
|
698
698
|
|
|
699
699
|
min = min ? 0 + min.value : 0;
|
|
@@ -1033,6 +1033,7 @@ _fieldFunction.field[ns.ui('Classifier').uri] = function (dom, container, alread
|
|
|
1033
1033
|
** -- radio buttons
|
|
1034
1034
|
** -- auto-complete typing
|
|
1035
1035
|
**
|
|
1036
|
+
** TODO: according to ontology ui:choice can also have ns.ui('default') - this is not implemented yet
|
|
1036
1037
|
*/
|
|
1037
1038
|
|
|
1038
1039
|
|
|
@@ -1082,6 +1083,10 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
1082
1083
|
firstSelectOptionText = utils.label(subject, true);
|
|
1083
1084
|
}
|
|
1084
1085
|
|
|
1086
|
+
if (subject.termType === 'BlankNode') {
|
|
1087
|
+
firstSelectOptionText = '* Select for ' + utils.label(property) + ' *';
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1085
1090
|
var opts = {
|
|
1086
1091
|
form: form,
|
|
1087
1092
|
subForm: subForm,
|
|
@@ -1373,7 +1378,8 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
|
|
|
1373
1378
|
b.setAttribute('type', 'button');
|
|
1374
1379
|
b.setAttribute('style', 'float: right;');
|
|
1375
1380
|
b.innerHTML = 'Goto ' + utils.label(theClass);
|
|
1376
|
-
b.addEventListener('click',
|
|
1381
|
+
b.addEventListener('click', // TODO fix dependency cycle to solid-panes by calling outlineManager
|
|
1382
|
+
function (_e) {
|
|
1377
1383
|
dom.outlineManager.GotoSubject(theClass, true, undefined, true, undefined);
|
|
1378
1384
|
}, false);
|
|
1379
1385
|
return box;
|