solid-ui 3.0.4-e7336b6 → 3.0.5-test.0

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
@@ -4091,7 +4091,7 @@ function attachmentList(dom, subject, div) {
4091
4091
  var attachmentRight = attachmentOne.appendChild(dom.createElement('td'));
4092
4092
  var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
4093
4093
  attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
4094
- ;
4094
+ ;
4095
4095
  attachmentOuter.refresh = refresh; // Participate in downstream changes
4096
4096
  // ;(attachmentTable as any).refresh = refresh <- outer should be best?
4097
4097
 
@@ -4936,7 +4936,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
4936
4936
  }
4937
4937
  if (!kb.updater.editable(doc.uri)) {
4938
4938
  field.readOnly = true // was: disabled. readOnly is better
4939
- ;
4939
+ ;
4940
4940
  field.style = style.textInputStyleUneditable + paramStyle;
4941
4941
  if (suppressEmptyUneditable && field.value === '') {
4942
4942
  box.style.display = 'none'; // clutter
@@ -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
@@ -12826,7 +12848,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
12826
12848
  // if (!confirm('Save picture to ' + destination + ' ?')) return
12827
12849
  src_debug/* log */.Rm('Putting ' + blob.size + ' bytes of ' + contentType + ' to ' + destination)
12828
12850
  // @@ TODO Remove casting
12829
- ;
12851
+ ;
12830
12852
  store.fetcher.webOperation('PUT', destination.uri, {
12831
12853
  data: blob,
12832
12854
  contentType: contentType
@@ -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);