solid-ui 3.0.4-c475240 → 3.0.4-c5f2ac1

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
@@ -8264,31 +8264,9 @@ field[src_ns.ui('Classifier').uri] = function (dom, container, already, subject,
8264
8264
  if (!ok) return callbackFunction(ok, body);
8265
8265
  return callbackFunction(ok, body);
8266
8266
  };
8267
- // Create container for label and select
8268
- var outerBox = dom.createElement('div');
8269
- outerBox.setAttribute('class', 'classifierBox');
8270
- // Render label
8271
- var labelDiv = dom.createElement('div');
8272
- labelDiv.setAttribute('class', 'formFieldName classifierBox-label');
8273
- // Use fieldLabel to render ui:label if present
8274
- labelDiv.appendChild(fieldLabel(dom, category, form));
8275
- outerBox.appendChild(labelDiv);
8276
- // Render select
8277
- var selectBox = dom.createElement('div');
8278
- selectBox.setAttribute('class', 'formFieldValue classifierBox-selectBox');
8279
- var selectElement = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
8280
- // Set readonly if not editable
8281
- if (selectElement && selectElement.querySelector && selectElement.querySelector('select')) {
8282
- var select = selectElement.querySelector('select');
8283
- if (select && !kb.updater.editable(dataDoc.uri)) {
8284
- select.disabled = true;
8285
- select.style = style.textInputStyleUneditable;
8286
- }
8287
- }
8288
- selectBox.appendChild(selectElement);
8289
- outerBox.appendChild(selectBox);
8290
- if (container) container.appendChild(outerBox);
8291
- return outerBox;
8267
+ var box = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
8268
+ if (container) container.appendChild(box);
8269
+ return box;
8292
8270
  };
8293
8271
 
8294
8272
  /** Choice field
@@ -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(thing));
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:
@@ -24226,7 +24208,7 @@ function tabWidget(options) {
24226
24208
  _getColors2 = _slicedToArray(_getColors, 2),
24227
24209
  selectedColor = _getColors2[0],
24228
24210
  color = _getColors2[1];
24229
- var bodyMainStyle = "display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
24211
+ var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
24230
24212
  var rootElement = dom.createElement('div'); // 20200117a
24231
24213
 
24232
24214
  rootElement.setAttribute('style', style.tabsRootElement);