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.
package/dist/main.js CHANGED
@@ -15192,8 +15192,8 @@ Object.defineProperty(exports, "__esModule", ({
15192
15192
  }));
15193
15193
  exports.versionInfo = void 0;
15194
15194
  var versionInfo = {
15195
- buildTime: '2022-05-09T07:57:48Z',
15196
- commit: '8500c0e80299634b639b4ebc93b8487d412b4e5c',
15195
+ buildTime: '2022-05-09T09:08:52Z',
15196
+ commit: '88972c2329237c3816beccd876f19d12454ebcf5',
15197
15197
  npmInfo: {
15198
15198
  'solid-ui': '2.4.22',
15199
15199
  npm: '6.14.16',
@@ -18158,6 +18158,12 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
18158
18158
  }
18159
18159
 
18160
18160
  lhs.appendChild((0, _basic.fieldLabel)(dom, property, form));
18161
+ var uiFrom = kb.any(form, ui('from'));
18162
+
18163
+ if (!uiFrom) {
18164
+ return (0, _error.errorMessageBlock)(dom, "No 'from' for Choice: " + form);
18165
+ }
18166
+
18161
18167
  var subForm = kb.any(form, ui('use')); // Optional
18162
18168
 
18163
18169
  var follow = kb.anyJS(form, ui('follow'), null, formDoc); // data doc moves to new subject?
@@ -18172,12 +18178,6 @@ _fieldFunction.field[ns.ui('Choice').uri] = function (dom, container, already, s
18172
18178
  firstSelectOptionText: firstSelectOptionText,
18173
18179
  disambiguate: false
18174
18180
  };
18175
- var uiFrom = kb.any(form, ui('from'));
18176
-
18177
- if (!uiFrom) {
18178
- return (0, _error.errorMessageBlock)(dom, "No 'from' for Choice: " + form);
18179
- }
18180
-
18181
18181
  possible = kb.each(undefined, ns.rdf('type'), uiFrom, formDoc);
18182
18182
 
18183
18183
  for (var x in kb.findMembersNT(uiFrom)) {
@@ -18664,7 +18664,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
18664
18664
  var opt = select.options[_i];
18665
18665
 
18666
18666
  if (opt.selected && opt.AJAR_mint) {
18667
- // not sure if this if is used because I cannot find mintClass
18667
+ // not sure if this 'if' is used because I cannot find mintClass
18668
18668
  if (options.mintClass) {
18669
18669
  var thisForm = promptForNew(dom, kb, subject, predicate, options.mintClass, null, dataDoc, function (ok, body) {
18670
18670
  if (!ok) {
@@ -18680,7 +18680,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
18680
18680
  }
18681
18681
 
18682
18682
  is.push($rdf.st(subject, predicate, kb.sym(newObject), dataDoc));
18683
- 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
18683
+ 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
18684
18684
 
18685
18685
  if (options.mintStatementsFun) {
18686
18686
  is = is.concat(options.mintStatementsFun(newObject));
@@ -18723,7 +18723,11 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
18723
18723
  actual = getActual(); // refresh
18724
18724
 
18725
18725
  if (!success) select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating select: ' + errorBody));
18726
- }); // if (callbackFunction) callbackFunction(ok, { widget: 'select', event: 'new' })
18726
+ });
18727
+ if (callbackFunction) callbackFunction(ok, {
18728
+ widget: 'select',
18729
+ event: 'new'
18730
+ });
18727
18731
  } else {
18728
18732
  select.parentNode.appendChild((0, _error.errorMessageBlock)(dom, 'Error updating data in field of select: ' + body));
18729
18733
  }
@@ -18786,10 +18790,10 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, uiFrom, opt
18786
18790
  if (!select.currentURI && !options.multiple) {
18787
18791
  var prompt = dom.createElement('option');
18788
18792
  prompt.appendChild(dom.createTextNode(options.firstSelectOptionText));
18789
- prompt.selected = true;
18790
18793
  prompt.disabled = true;
18791
18794
  prompt.value = true;
18792
18795
  prompt.hidden = true;
18796
+ prompt.selected = true;
18793
18797
  select.insertBefore(prompt, select.firstChild);
18794
18798
  }
18795
18799