solid-ui 3.0.4-9a90250 → 3.0.4-c998d77

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
@@ -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);