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.
@@ -4572,9 +4572,31 @@ _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.querySelector && selectElement.querySelector('select')) {
4590
+ var select = selectElement.querySelector('select');
4591
+ if (select && !kb.updater.editable(dataDoc.uri)) {
4592
+ select.readOnly = true;
4593
+ select.style = _style__WEBPACK_IMPORTED_MODULE_10__/* .style */ .i.textInputStyleUneditable;
4594
+ }
4595
+ }
4596
+ selectBox.appendChild(selectElement);
4597
+ outerBox.appendChild(selectBox);
4598
+ if (container) container.appendChild(outerBox);
4599
+ return outerBox;
4578
4600
  };
4579
4601
 
4580
4602
  /** Choice field
@@ -10983,7 +11005,7 @@ function attachmentList(dom, subject, div) {
10983
11005
  var attachmentRight = attachmentOne.appendChild(dom.createElement('td'));
10984
11006
  var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
10985
11007
  attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
10986
- ;
11008
+ ;
10987
11009
  attachmentOuter.refresh = refresh; // Participate in downstream changes
10988
11010
  // ;(attachmentTable as any).refresh = refresh <- outer should be best?
10989
11011
 
@@ -18408,7 +18430,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18408
18430
  }
18409
18431
  if (!kb.updater.editable(doc.uri)) {
18410
18432
  field.readOnly = true // was: disabled. readOnly is better
18411
- ;
18433
+ ;
18412
18434
  field.style = _style__WEBPACK_IMPORTED_MODULE_3__/* .style */ .i.textInputStyleUneditable + paramStyle;
18413
18435
  if (suppressEmptyUneditable && field.value === '') {
18414
18436
  box.style.display = 'none'; // clutter
@@ -18722,7 +18744,7 @@ function tabWidget(options) {
18722
18744
  _getColors2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(_getColors, 2),
18723
18745
  selectedColor = _getColors2[0],
18724
18746
  color = _getColors2[1];
18725
- var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
18747
+ var bodyMainStyle = "display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
18726
18748
  var rootElement = dom.createElement('div'); // 20200117a
18727
18749
 
18728
18750
  rootElement.setAttribute('style', _style__WEBPACK_IMPORTED_MODULE_9__/* .style */ .i.tabsRootElement);
@@ -20221,7 +20243,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
20221
20243
  // if (!confirm('Save picture to ' + destination + ' ?')) return
20222
20244
  _debug__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm('Putting ' + blob.size + ' bytes of ' + contentType + ' to ' + destination)
20223
20245
  // @@ TODO Remove casting
20224
- ;
20246
+ ;
20225
20247
  store.fetcher.webOperation('PUT', destination.uri, {
20226
20248
  data: blob,
20227
20249
  contentType: contentType