solid-ui 3.0.4-f2d852f → 3.0.4-f7318ec

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/solid-ui.js CHANGED
@@ -4913,8 +4913,6 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
4913
4913
  field.style = inputStyle;
4914
4914
  rhs.appendChild(field);
4915
4915
  field.setAttribute('type', params.type ? params.type : 'text');
4916
- var fieldType = (field.getAttribute('type') || '').toLowerCase();
4917
- var deferWhileFocused = fieldType === 'date' || fieldType === 'datetime-local';
4918
4916
  var size = kb.anyJS(form, src_ns.ui('size')) || styleConstants.textInputSize || 20;
4919
4917
  field.setAttribute('size', size);
4920
4918
  var maxLength = kb.any(form, src_ns.ui('maxLength'));
@@ -4953,18 +4951,9 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
4953
4951
  }
4954
4952
  }, true);
4955
4953
  field.addEventListener('change', function (_e) {
4956
- if (deferWhileFocused && dom.activeElement === field) {
4957
- if (field.dataset) {
4958
- field.dataset.deferredChange = 'true';
4959
- }
4960
- return;
4961
- }
4962
4954
  // i.e. lose focus with changed data
4963
4955
  if (params.pattern && !field.value.match(params.pattern)) return;
4964
- var disabledForSave = !deferWhileFocused;
4965
- if (disabledForSave) {
4966
- field.disabled = true; // See if this stops getting two dates from fumbling e.g the chrome datepicker.
4967
- }
4956
+ field.disabled = true; // See if this stops getting two dates from fumbling e.g the chrome datepicker.
4968
4957
  field.setAttribute('style', inputStyle + 'color: gray;'); // pending
4969
4958
  var ds = kb.statementsMatching(subject, property); // remove any multiple values
4970
4959
  var result;
@@ -5032,9 +5021,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
5032
5021
  updateMany(ds, is, function (uri, ok, body) {
5033
5022
  // kb.updater.update(ds, is, function (uri, ok, body) {
5034
5023
  if (ok) {
5035
- if (disabledForSave) {
5036
- field.disabled = false;
5037
- }
5024
+ field.disabled = false;
5038
5025
  field.setAttribute('style', inputStyle);
5039
5026
  } else {
5040
5027
  box.appendChild(errorMessageBlock(dom, body));
@@ -5042,15 +5029,6 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
5042
5029
  callbackFunction(ok, body);
5043
5030
  });
5044
5031
  }, true);
5045
- field.addEventListener('blur', function (_e) {
5046
- if (deferWhileFocused && field.dataset && field.dataset.deferredChange === 'true') {
5047
- delete field.dataset.deferredChange;
5048
- var event = new Event('change', {
5049
- bubbles: true
5050
- });
5051
- field.dispatchEvent(event);
5052
- }
5053
- }, true);
5054
5032
  return box;
5055
5033
  }
5056
5034
  ;// ./src/widgets/forms/autocomplete/language.ts
@@ -11476,6 +11454,8 @@ var AccessGroups = /*#__PURE__*/function () {
11476
11454
  thing,
11477
11455
  _this$_store,
11478
11456
  message,
11457
+ detectedTypes,
11458
+ typeDetails,
11479
11459
  error,
11480
11460
  _args4 = arguments,
11481
11461
  _t2;
@@ -11509,7 +11489,9 @@ var AccessGroups = /*#__PURE__*/function () {
11509
11489
  _context4.next = 6;
11510
11490
  break;
11511
11491
  }
11512
- error = " Error: Drop fails to drop appropriate thing! ".concat(uri);
11492
+ detectedTypes = Object.keys(this.store.findTypeURIs((0,external_$rdf_.sym)(uri)));
11493
+ typeDetails = detectedTypes.length > 0 ? " Detected RDF types: ".concat(detectedTypes.join(', ')) : ' No RDF type was detected for this URI.';
11494
+ error = "Error: Failed to add access target: ".concat(uri, " is not a recognized ACL target type.") + " Expected one of: vcard:WebID, vcard:Group, foaf:Person/foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes." + ' Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin. ' + typeDetails;
11513
11495
  src_debug/* error */.z3(error);
11514
11496
  return _context4.abrupt("return", Promise.reject(new Error(error)));
11515
11497
  case 6: