solid-ui 3.0.4-5b4b3d9 → 3.0.4-5b6f345

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,9 +8264,31 @@ 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
- var box = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
8268
- if (container) container.appendChild(box);
8269
- return box;
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.readOnly = 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;
8270
8292
  };
8271
8293
 
8272
8294
  /** Choice field
@@ -24204,7 +24226,7 @@ function tabWidget(options) {
24204
24226
  _getColors2 = _slicedToArray(_getColors, 2),
24205
24227
  selectedColor = _getColors2[0],
24206
24228
  color = _getColors2[1];
24207
- var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
24229
+ var bodyMainStyle = "display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
24208
24230
  var rootElement = dom.createElement('div'); // 20200117a
24209
24231
 
24210
24232
  rootElement.setAttribute('style', style.tabsRootElement);