solid-ui 3.0.4-c475240 → 3.0.4-c7330d3
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/login/login.d.ts.map +1 -1
- package/dist/login/login.js +35 -6
- package/dist/login/login.js.map +1 -1
- package/dist/solid-ui.esm.js +43 -37
- 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 +43 -37
- 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,31 +8264,9 @@ 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
|
-
|
|
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.disabled = 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;
|
|
8267
|
+
var box = makeSelectForNestedCategory(dom, kb, subject, category, dataDoc, checkOptions);
|
|
8268
|
+
if (container) container.appendChild(box);
|
|
8269
|
+
return box;
|
|
8292
8270
|
};
|
|
8293
8271
|
|
|
8294
8272
|
/** Choice field
|
|
@@ -9599,7 +9577,7 @@ function ensureLoadedPreferences(_x) {
|
|
|
9599
9577
|
// used to be logInLoadProfile
|
|
9600
9578
|
function _ensureLoadedPreferences() {
|
|
9601
9579
|
_ensureLoadedPreferences = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4(context) {
|
|
9602
|
-
var progressDisplay, preferencesFile, m2, _t4;
|
|
9580
|
+
var progressDisplay, preferencesFile, m2, errorMessage, _t4;
|
|
9603
9581
|
return regenerator_default().wrap(function (_context4) {
|
|
9604
9582
|
while (1) switch (_context4.prev = _context4.next) {
|
|
9605
9583
|
case 0:
|
|
@@ -9627,14 +9605,15 @@ function _ensureLoadedPreferences() {
|
|
|
9627
9605
|
case 4:
|
|
9628
9606
|
_context4.prev = 4;
|
|
9629
9607
|
_t4 = _context4["catch"](1);
|
|
9630
|
-
|
|
9608
|
+
errorMessage = _t4 instanceof Error ? _t4.message : "".concat(_t4);
|
|
9609
|
+
if (!(_t4 instanceof external_SolidLogic_.UnauthorizedError || /status:\s*401|unauthorized/i.test(errorMessage))) {
|
|
9631
9610
|
_context4.next = 5;
|
|
9632
9611
|
break;
|
|
9633
9612
|
}
|
|
9634
|
-
m2 = '
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9613
|
+
m2 = 'Not logged in, so preferences were not loaded.';
|
|
9614
|
+
context.preferencesFileError = m2;
|
|
9615
|
+
src_debug/* warn */.R8(m2);
|
|
9616
|
+
return _context4.abrupt("return", context);
|
|
9638
9617
|
case 5:
|
|
9639
9618
|
if (!(_t4 instanceof external_SolidLogic_.CrossOriginForbiddenError)) {
|
|
9640
9619
|
_context4.next = 6;
|
|
@@ -9700,7 +9679,7 @@ function ensureLoadedProfile(_x2) {
|
|
|
9700
9679
|
*/
|
|
9701
9680
|
function _ensureLoadedProfile() {
|
|
9702
9681
|
_ensureLoadedProfile = asyncToGenerator_asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5(context) {
|
|
9703
|
-
var logInContext, _t5;
|
|
9682
|
+
var logInContext, notLoggedInMessage, message, _notLoggedInMessage, loggedInUser, isNonFatalProfileSideLoadFailure, _t5;
|
|
9704
9683
|
return regenerator_default().wrap(function (_context5) {
|
|
9705
9684
|
while (1) switch (_context5.prev = _context5.next) {
|
|
9706
9685
|
case 0:
|
|
@@ -9719,24 +9698,51 @@ function _ensureLoadedProfile() {
|
|
|
9719
9698
|
_context5.next = 3;
|
|
9720
9699
|
break;
|
|
9721
9700
|
}
|
|
9722
|
-
|
|
9701
|
+
notLoggedInMessage = 'Not logged in, so profile was not loaded.';
|
|
9702
|
+
src_debug/* log */.Rm(notLoggedInMessage);
|
|
9703
|
+
if (context.div && context.dom) {
|
|
9704
|
+
context.div.appendChild(errorMessageBlock(context.dom, notLoggedInMessage));
|
|
9705
|
+
}
|
|
9706
|
+
return _context5.abrupt("return", context);
|
|
9723
9707
|
case 3:
|
|
9724
9708
|
_context5.next = 4;
|
|
9725
9709
|
return loadProfile(logInContext.me);
|
|
9726
9710
|
case 4:
|
|
9727
9711
|
context.publicProfile = _context5.sent;
|
|
9728
|
-
_context5.next =
|
|
9712
|
+
_context5.next = 8;
|
|
9729
9713
|
break;
|
|
9730
9714
|
case 5:
|
|
9731
9715
|
_context5.prev = 5;
|
|
9732
9716
|
_t5 = _context5["catch"](1);
|
|
9717
|
+
message = _t5 instanceof Error ? _t5.message : "".concat(_t5);
|
|
9718
|
+
if (!/status:\s*401|unauthorized/i.test(message)) {
|
|
9719
|
+
_context5.next = 6;
|
|
9720
|
+
break;
|
|
9721
|
+
}
|
|
9722
|
+
_notLoggedInMessage = 'Not logged in, so profile was not loaded.';
|
|
9723
|
+
src_debug/* warn */.R8(_notLoggedInMessage);
|
|
9733
9724
|
if (context.div && context.dom) {
|
|
9734
|
-
context.div.appendChild(errorMessageBlock(context.dom,
|
|
9725
|
+
context.div.appendChild(errorMessageBlock(context.dom, _notLoggedInMessage));
|
|
9735
9726
|
}
|
|
9736
|
-
|
|
9727
|
+
return _context5.abrupt("return", context);
|
|
9737
9728
|
case 6:
|
|
9729
|
+
loggedInUser = logInContext && logInContext.me;
|
|
9730
|
+
isNonFatalProfileSideLoadFailure = !!loggedInUser && (_t5 instanceof external_SolidLogic_.CrossOriginForbiddenError || _t5 instanceof external_SolidLogic_.SameOriginForbiddenError || /status:\s*403\b|forbidden/i.test(message) || /cancel/i.test(message));
|
|
9731
|
+
if (!isNonFatalProfileSideLoadFailure) {
|
|
9732
|
+
_context5.next = 7;
|
|
9733
|
+
break;
|
|
9734
|
+
}
|
|
9735
|
+
src_debug/* warn */.R8("Unable to load all profile-linked resources; continuing as logged in user: ".concat(message));
|
|
9736
|
+
context.publicProfile = loggedInUser.doc();
|
|
9738
9737
|
return _context5.abrupt("return", context);
|
|
9739
9738
|
case 7:
|
|
9739
|
+
if (context.div && context.dom) {
|
|
9740
|
+
context.div.appendChild(errorMessageBlock(context.dom, message));
|
|
9741
|
+
}
|
|
9742
|
+
throw new Error("Can't log in: ".concat(_t5));
|
|
9743
|
+
case 8:
|
|
9744
|
+
return _context5.abrupt("return", context);
|
|
9745
|
+
case 9:
|
|
9740
9746
|
case "end":
|
|
9741
9747
|
return _context5.stop();
|
|
9742
9748
|
}
|
|
@@ -24226,7 +24232,7 @@ function tabWidget(options) {
|
|
|
24226
24232
|
_getColors2 = _slicedToArray(_getColors, 2),
|
|
24227
24233
|
selectedColor = _getColors2[0],
|
|
24228
24234
|
color = _getColors2[1];
|
|
24229
|
-
var bodyMainStyle = "
|
|
24235
|
+
var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
|
|
24230
24236
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
24231
24237
|
|
|
24232
24238
|
rootElement.setAttribute('style', style.tabsRootElement);
|