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.
- package/dist/solid-ui.esm.js +28 -4
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +2 -2
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +28 -4
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +2 -2
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/versionInfo.js +2 -2
- package/package.json +3 -3
package/dist/solid-ui.js
CHANGED
|
@@ -8264,9 +8264,33 @@ 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
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
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.querySelectorAll) {
|
|
8282
|
+
var selects = selectElement.querySelectorAll('select');
|
|
8283
|
+
if (selects.length && !kb.updater.editable(dataDoc.uri)) {
|
|
8284
|
+
selects.forEach(function (select) {
|
|
8285
|
+
select.readOnly = true;
|
|
8286
|
+
select.style = style.textInputStyleUneditable;
|
|
8287
|
+
});
|
|
8288
|
+
}
|
|
8289
|
+
}
|
|
8290
|
+
selectBox.appendChild(selectElement);
|
|
8291
|
+
outerBox.appendChild(selectBox);
|
|
8292
|
+
if (container) container.appendChild(outerBox);
|
|
8293
|
+
return outerBox;
|
|
8270
8294
|
};
|
|
8271
8295
|
|
|
8272
8296
|
/** Choice field
|
|
@@ -24204,7 +24228,7 @@ function tabWidget(options) {
|
|
|
24204
24228
|
_getColors2 = _slicedToArray(_getColors, 2),
|
|
24205
24229
|
selectedColor = _getColors2[0],
|
|
24206
24230
|
color = _getColors2[1];
|
|
24207
|
-
var bodyMainStyle = "
|
|
24231
|
+
var bodyMainStyle = "display: grid; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
|
|
24208
24232
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
24209
24233
|
|
|
24210
24234
|
rootElement.setAttribute('style', style.tabsRootElement);
|