solid-ui 2.4.22-8500c0e8 → 2.4.22-88972c23

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.
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.versionInfo = void 0;
7
7
  var versionInfo = {
8
- buildTime: '2022-05-09T07:57:48Z',
9
- commit: '8500c0e80299634b639b4ebc93b8487d412b4e5c',
8
+ buildTime: '2022-05-09T09:08:52Z',
9
+ commit: '88972c2329237c3816beccd876f19d12454ebcf5',
10
10
  npmInfo: {
11
11
  'solid-ui': '2.4.22',
12
12
  npm: '6.14.16',
@@ -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-09T07:57:48Z',\n commit: '8500c0e80299634b639b4ebc93b8487d412b4e5c',\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"}
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-09T09:08:52Z',\n commit: '88972c2329237c3816beccd876f19d12454ebcf5',\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"}
@@ -1055,6 +1055,12 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
1055
1055
  }
1056
1056
 
1057
1057
  lhs.appendChild((0, _basic.fieldLabel)(dom, property, form));
1058
+ var uiFrom = kb.any(form, ui('from'));
1059
+
1060
+ if (!uiFrom) {
1061
+ return (0, _error.errorMessageBlock)(dom, "No 'from' for Choice: " + form);
1062
+ }
1063
+
1058
1064
  var subForm = kb.any(form, ui('use')); // Optional
1059
1065
 
1060
1066
  var follow = kb.anyJS(form, ui('follow'), null, formDoc); // data doc moves to new subject?
@@ -1069,12 +1075,6 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
1069
1075
  firstSelectOptionText: firstSelectOptionText,
1070
1076
  disambiguate: false
1071
1077
  };
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
1078
  possible = kb.each(undefined, ns.rdf('type'), uiFrom, formDoc);
1079
1079
 
1080
1080
  for (var x in kb.findMembersNT(uiFrom)) {
@@ -1561,7 +1561,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
1561
1561
  var opt = select.options[_i];
1562
1562
 
1563
1563
  if (opt.selected && opt.AJAR_mint) {
1564
- // not sure if this if is used because I cannot find mintClass
1564
+ // not sure if this 'if' is used because I cannot find mintClass
1565
1565
  if (options.mintClass) {
1566
1566
  var thisForm = promptForNew(dom, kb, subject, predicate, options.mintClass, null, dataDoc, function (ok, body) {
1567
1567
  if (!ok) {
@@ -1577,7 +1577,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
1577
1577
  }
1578
1578
 
1579
1579
  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
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
1581
1581
 
1582
1582
  if (options.mintStatementsFun) {
1583
1583
  is = is.concat(options.mintStatementsFun(newObject));
@@ -1620,7 +1620,11 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
1620
1620
  actual = getActual(); // refresh
1621
1621
 
1622
1622
  if (!success) select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating select: ' + errorBody));
1623
- }); // if (callbackFunction) callbackFunction(ok, { widget: 'select', event: 'new' })
1623
+ });
1624
+ if (callbackFunction) callbackFunction(ok, {
1625
+ widget: 'select',
1626
+ event: 'new'
1627
+ });
1624
1628
  } else {
1625
1629
  select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating data in field of select: ' + body));
1626
1630
  }
@@ -1683,10 +1687,10 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
1683
1687
  if (!select.currentURI && !options.multiple) {
1684
1688
  var prompt = dom.createElement('option');
1685
1689
  prompt.appendChild(dom.createTextNode(options.firstSelectOptionText));
1686
- prompt.selected = true;
1687
1690
  prompt.disabled = true;
1688
1691
  prompt.value = true;
1689
1692
  prompt.hidden = true;
1693
+ prompt.selected = true;
1690
1694
  select.insertBefore(prompt, select.firstChild);
1691
1695
  }
1692
1696