solid-ui 2.4.22-a9c5fbee → 2.4.22-b82de984
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/main.js +24 -19
- package/dist/main.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/forms.js +22 -17
- package/lib/widgets/forms.js.map +1 -1
- package/package.json +1 -1
package/lib/versionInfo.js
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.versionInfo = void 0;
|
|
7
7
|
var versionInfo = {
|
|
8
|
-
buildTime: '2022-05-
|
|
9
|
-
commit: '
|
|
8
|
+
buildTime: '2022-05-10T08:32:21Z',
|
|
9
|
+
commit: 'b82de9840c3fb6ddbe51c92da3546f27520525ce',
|
|
10
10
|
npmInfo: {
|
|
11
11
|
'solid-ui': '2.4.22',
|
|
12
12
|
npm: '6.14.16',
|
package/lib/versionInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/versionInfo.ts"],"names":["versionInfo","buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;AAAO,IAAMA,WAAW,GAAG;AACzBC,EAAAA,SAAS,EAAE,sBADc;AAEzBC,EAAAA,MAAM,EAAE,0CAFiB;AAGzBC,EAAAA,OAAO,EACT;AACE,gBAAY,QADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,QAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJ2B,CAApB","sourcesContent":["export const versionInfo = {\n buildTime: '2022-05-
|
|
1
|
+
{"version":3,"sources":["../src/versionInfo.ts"],"names":["versionInfo","buildTime","commit","npmInfo","npm","ares","brotli","cldr","icu","llhttp","modules","napi","nghttp2","node","openssl","tz","unicode","uv","v8","zlib"],"mappings":";;;;;;AAAO,IAAMA,WAAW,GAAG;AACzBC,EAAAA,SAAS,EAAE,sBADc;AAEzBC,EAAAA,MAAM,EAAE,0CAFiB;AAGzBC,EAAAA,OAAO,EACT;AACE,gBAAY,QADd;AAEEC,IAAAA,GAAG,EAAE,SAFP;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEC,IAAAA,MAAM,EAAE,OAJV;AAKEC,IAAAA,IAAI,EAAE,MALR;AAMEC,IAAAA,GAAG,EAAE,MANP;AAOEC,IAAAA,MAAM,EAAE,OAPV;AAQEC,IAAAA,OAAO,EAAE,IARX;AASEC,IAAAA,IAAI,EAAE,GATR;AAUEC,IAAAA,OAAO,EAAE,QAVX;AAWEC,IAAAA,IAAI,EAAE,SAXR;AAYEC,IAAAA,OAAO,EAAE,QAZX;AAaEC,IAAAA,EAAE,EAAE,QAbN;AAcEC,IAAAA,OAAO,EAAE,MAdX;AAeEC,IAAAA,EAAE,EAAE,QAfN;AAgBEC,IAAAA,EAAE,EAAE,oBAhBN;AAiBEC,IAAAA,IAAI,EAAE;AAjBR;AAJ2B,CAApB","sourcesContent":["export const versionInfo = {\n buildTime: '2022-05-10T08:32:21Z',\n commit: 'b82de9840c3fb6ddbe51c92da3546f27520525ce',\n npmInfo:\n{\n 'solid-ui': '2.4.22',\n npm: '6.14.16',\n ares: '1.18.1',\n brotli: '1.0.9',\n cldr: '40.0',\n icu: '70.1',\n llhttp: '2.1.4',\n modules: '83',\n napi: '8',\n nghttp2: '1.42.0',\n node: '14.19.1',\n openssl: '1.1.1n',\n tz: '2021a3',\n unicode: '14.0',\n uv: '1.42.0',\n v8: '8.4.371.23-node.85',\n zlib: '1.2.11'\n}\n}\n"],"file":"versionInfo.js"}
|
package/lib/widgets/forms.js
CHANGED
|
@@ -1041,12 +1041,15 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
1041
1041
|
var formDoc = form.doc ? form.doc() : null; // @@ if blank no way to know
|
|
1042
1042
|
|
|
1043
1043
|
var p;
|
|
1044
|
-
var box = dom.createElement('div');
|
|
1044
|
+
var box = dom.createElement('div');
|
|
1045
|
+
box.setAttribute('class', 'choiceBox'); // Set flexDirection column?
|
|
1045
1046
|
|
|
1046
1047
|
if (container) container.appendChild(box);
|
|
1047
1048
|
var lhs = dom.createElement('div');
|
|
1049
|
+
lhs.setAttribute('class', 'formFieldName choiceBox-label');
|
|
1048
1050
|
box.appendChild(lhs);
|
|
1049
1051
|
var rhs = dom.createElement('div');
|
|
1052
|
+
rhs.setAttribute('class', 'formFieldValue choiceBox-selectBox');
|
|
1050
1053
|
box.appendChild(rhs);
|
|
1051
1054
|
var property = kb.any(form, ui('property'));
|
|
1052
1055
|
|
|
@@ -1055,6 +1058,12 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
1055
1058
|
}
|
|
1056
1059
|
|
|
1057
1060
|
lhs.appendChild((0, _basic.fieldLabel)(dom, property, form));
|
|
1061
|
+
var uiFrom = kb.any(form, ui('from'));
|
|
1062
|
+
|
|
1063
|
+
if (!uiFrom) {
|
|
1064
|
+
return (0, _error.errorMessageBlock)(dom, "No 'from' for Choice: " + form);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1058
1067
|
var subForm = kb.any(form, ui('use')); // Optional
|
|
1059
1068
|
|
|
1060
1069
|
var follow = kb.anyJS(form, ui('follow'), null, formDoc); // data doc moves to new subject?
|
|
@@ -1069,12 +1078,6 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
1069
1078
|
firstSelectOptionText: firstSelectOptionText,
|
|
1070
1079
|
disambiguate: false
|
|
1071
1080
|
};
|
|
1072
|
-
var uiFrom = kb.any(form, ui('from'));
|
|
1073
|
-
|
|
1074
|
-
if (!uiFrom) {
|
|
1075
|
-
return (0, _error.errorMessageBlock)(dom, "No 'from' for Choice: " + form);
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
1081
|
possible = kb.each(undefined, ns.rdf('type'), uiFrom, formDoc);
|
|
1079
1082
|
|
|
1080
1083
|
for (var x in kb.findMembersNT(uiFrom)) {
|
|
@@ -1117,7 +1120,7 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
|
|
|
1117
1120
|
opts.disambiguate = true;
|
|
1118
1121
|
}
|
|
1119
1122
|
|
|
1120
|
-
var sortedPossible = sortByLabel(possible); // TODO: this checks for any
|
|
1123
|
+
var sortedPossible = sortByLabel(possible); // TODO: this checks for any occurrence, regardless of true or false setting
|
|
1121
1124
|
|
|
1122
1125
|
if (kb.any(form, ui('canMintNew'))) {
|
|
1123
1126
|
opts.mint = '* Create new *'; // @@ could be better
|
|
@@ -1561,7 +1564,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
|
|
|
1561
1564
|
var opt = select.options[_i];
|
|
1562
1565
|
|
|
1563
1566
|
if (opt.selected && opt.AJAR_mint) {
|
|
1564
|
-
// not sure if this if is used because I cannot find mintClass
|
|
1567
|
+
// not sure if this 'if' is used because I cannot find mintClass
|
|
1565
1568
|
if (options.mintClass) {
|
|
1566
1569
|
var thisForm = promptForNew(dom, kb, subject, predicate, options.mintClass, null, dataDoc, function (ok, body) {
|
|
1567
1570
|
if (!ok) {
|
|
@@ -1577,7 +1580,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
|
|
|
1577
1580
|
}
|
|
1578
1581
|
|
|
1579
1582
|
is.push($rdf.st(subject, predicate, kb.sym(newObject), dataDoc));
|
|
1580
|
-
if (uiFrom) is.push($rdf.st(newObject, ns.rdf('type'), kb.sym(uiFrom), dataDoc)); // not sure if this if is used because I cannot find mintStatementsFun
|
|
1583
|
+
if (uiFrom) is.push($rdf.st(newObject, ns.rdf('type'), kb.sym(uiFrom), dataDoc)); // not sure if this 'if' is used because I cannot find mintStatementsFun
|
|
1581
1584
|
|
|
1582
1585
|
if (options.mintStatementsFun) {
|
|
1583
1586
|
is = is.concat(options.mintStatementsFun(newObject));
|
|
@@ -1619,13 +1622,15 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
|
|
|
1619
1622
|
kb.updater.update(ds, is, function (uri, success, errorBody) {
|
|
1620
1623
|
actual = getActual(); // refresh
|
|
1621
1624
|
|
|
1622
|
-
if (!success)
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1625
|
+
if (!success) select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating select: ' + errorBody));
|
|
1626
|
+
});
|
|
1627
|
+
if (callbackFunction) callbackFunction(ok, {
|
|
1628
|
+
widget: 'select',
|
|
1629
|
+
event: 'new'
|
|
1627
1630
|
});
|
|
1628
|
-
} else
|
|
1631
|
+
} else {
|
|
1632
|
+
select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating data in field of select: ' + body));
|
|
1633
|
+
}
|
|
1629
1634
|
});
|
|
1630
1635
|
};
|
|
1631
1636
|
|
|
@@ -1685,10 +1690,10 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
|
|
|
1685
1690
|
if (!select.currentURI && !options.multiple) {
|
|
1686
1691
|
var prompt = dom.createElement('option');
|
|
1687
1692
|
prompt.appendChild(dom.createTextNode(options.firstSelectOptionText));
|
|
1688
|
-
prompt.selected = true;
|
|
1689
1693
|
prompt.disabled = true;
|
|
1690
1694
|
prompt.value = true;
|
|
1691
1695
|
prompt.hidden = true;
|
|
1696
|
+
prompt.selected = true;
|
|
1692
1697
|
select.insertBefore(prompt, select.firstChild);
|
|
1693
1698
|
}
|
|
1694
1699
|
|