solid-ui 3.0.4-d05613e → 3.0.4-e2611ae

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.
@@ -4572,9 +4572,33 @@ _forms_fieldFunction__WEBPACK_IMPORTED_MODULE_4__/* .field */ .ZZ[_ns__WEBPACK_I
4572
4572
  if (!ok) return callbackFunction(ok, body);
4573
4573
  return callbackFunction(ok, body);
4574
4574
  };
4575
- var box = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
4576
- if (container) container.appendChild(box);
4577
- return box;
4575
+ // Create container for label and select
4576
+ var outerBox = dom.createElement('div');
4577
+ outerBox.setAttribute('class', 'classifierBox');
4578
+ // Render label
4579
+ var labelDiv = dom.createElement('div');
4580
+ labelDiv.setAttribute('class', 'formFieldName classifierBox-label');
4581
+ // Use fieldLabel to render ui:label if present
4582
+ labelDiv.appendChild((0,_forms_basic__WEBPACK_IMPORTED_MODULE_8__/* .fieldLabel */ .bk)(dom, category, form));
4583
+ outerBox.appendChild(labelDiv);
4584
+ // Render select
4585
+ var selectBox = dom.createElement('div');
4586
+ selectBox.setAttribute('class', 'formFieldValue classifierBox-selectBox');
4587
+ var selectElement = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
4588
+ // Set readonly if not editable
4589
+ if (selectElement && selectElement.querySelectorAll) {
4590
+ var selects = selectElement.querySelectorAll('select');
4591
+ if (selects.length && !kb.updater.editable(dataDoc.uri)) {
4592
+ selects.forEach(function (select) {
4593
+ select.readOnly = true;
4594
+ select.style = _style__WEBPACK_IMPORTED_MODULE_10__/* .style */ .i.textInputStyleUneditable;
4595
+ });
4596
+ }
4597
+ }
4598
+ selectBox.appendChild(selectElement);
4599
+ outerBox.appendChild(selectBox);
4600
+ if (container) container.appendChild(outerBox);
4601
+ return outerBox;
4578
4602
  };
4579
4603
 
4580
4604
  /** Choice field
@@ -10983,7 +11007,7 @@ function attachmentList(dom, subject, div) {
10983
11007
  var attachmentRight = attachmentOne.appendChild(dom.createElement('td'));
10984
11008
  var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
10985
11009
  attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
10986
- ;
11010
+ ;
10987
11011
  attachmentOuter.refresh = refresh; // Participate in downstream changes
10988
11012
  // ;(attachmentTable as any).refresh = refresh <- outer should be best?
10989
11013
 
@@ -18408,7 +18432,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18408
18432
  }
18409
18433
  if (!kb.updater.editable(doc.uri)) {
18410
18434
  field.readOnly = true // was: disabled. readOnly is better
18411
- ;
18435
+ ;
18412
18436
  field.style = _style__WEBPACK_IMPORTED_MODULE_3__/* .style */ .i.textInputStyleUneditable + paramStyle;
18413
18437
  if (suppressEmptyUneditable && field.value === '') {
18414
18438
  box.style.display = 'none'; // clutter
@@ -18722,7 +18746,7 @@ function tabWidget(options) {
18722
18746
  _getColors2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(_getColors, 2),
18723
18747
  selectedColor = _getColors2[0],
18724
18748
  color = _getColors2[1];
18725
- var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
18749
+ var bodyMainStyle = "display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
18726
18750
  var rootElement = dom.createElement('div'); // 20200117a
18727
18751
 
18728
18752
  rootElement.setAttribute('style', _style__WEBPACK_IMPORTED_MODULE_9__/* .style */ .i.tabsRootElement);
@@ -20221,7 +20245,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
20221
20245
  // if (!confirm('Save picture to ' + destination + ' ?')) return
20222
20246
  _debug__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm('Putting ' + blob.size + ' bytes of ' + contentType + ' to ' + destination)
20223
20247
  // @@ TODO Remove casting
20224
- ;
20248
+ ;
20225
20249
  store.fetcher.webOperation('PUT', destination.uri, {
20226
20250
  data: blob,
20227
20251
  contentType: contentType