solid-ui 2.4.28-a4f5fbef → 2.4.28-cdaefc01

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.js CHANGED
@@ -7134,15 +7134,6 @@ function renderScopeHeadingRow(context, store, scope) {
7134
7134
  function registrationList(_x9, _x10) {
7135
7135
  return _registrationList.apply(this, arguments);
7136
7136
  } // registrationList
7137
- /**
7138
- * Bootstrapping identity
7139
- * (Called by `loginStatusBox()`)
7140
- *
7141
- * @param dom
7142
- * @param setUserCallback
7143
- *
7144
- * @returns
7145
- */
7146
7137
  function _registrationList() {
7147
7138
  _registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
7148
7139
  var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
@@ -7274,10 +7265,23 @@ function _registrationList() {
7274
7265
  }));
7275
7266
  return _registrationList.apply(this, arguments);
7276
7267
  }
7268
+ function getDefaultSignInButtonStyle() {
7269
+ return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
7270
+ }
7271
+
7272
+ /**
7273
+ * Bootstrapping identity
7274
+ * (Called by `loginStatusBox()`)
7275
+ *
7276
+ * @param dom
7277
+ * @param setUserCallback
7278
+ *
7279
+ * @returns
7280
+ */
7277
7281
  function signInOrSignUpBox(dom, setUserCallback) {
7278
7282
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
7279
7283
  options = options || {};
7280
- var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
7284
+ var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
7281
7285
  var box = dom.createElement('div');
7282
7286
  var magicClassName = 'SolidSignInOrSignUpBox';
7283
7287
  debug.log('widgets.signInOrSignUpBox');
@@ -7290,7 +7294,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
7290
7294
  box.appendChild(signInPopUpButton);
7291
7295
  signInPopUpButton.setAttribute('type', 'button');
7292
7296
  signInPopUpButton.setAttribute('value', 'Log in');
7293
- signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signUpBackground);
7297
+ signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eef;").concat(style.headerBannerLoginInput));
7294
7298
  _solidLogic.authSession.onLogin(function () {
7295
7299
  var me = _solidLogic.authn.currentUser();
7296
7300
  // const sessionInfo = authSession.info
@@ -7331,7 +7335,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
7331
7335
  box.appendChild(signupButton);
7332
7336
  signupButton.setAttribute('type', 'button');
7333
7337
  signupButton.setAttribute('value', 'Sign Up for Solid');
7334
- signupButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signInBackground);
7338
+ signupButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #efe;").concat(style.headerBannerLoginInput));
7335
7339
  signupButton.addEventListener('click', function (_event) {
7336
7340
  var signupMgr = new _signup.Signup();
7337
7341
  signupMgr.signup().then(function (uri) {
@@ -7499,7 +7503,7 @@ function loginStatusBox(dom) {
7499
7503
  });
7500
7504
  }
7501
7505
  function logoutButton(me, options) {
7502
- var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
7506
+ var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
7503
7507
  var logoutLabel = 'WebID logout';
7504
7508
  if (me) {
7505
7509
  var nick = _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('nick')) || _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('name'));
@@ -7511,7 +7515,7 @@ function loginStatusBox(dom) {
7511
7515
  // signOutButton.className = 'WebIDCancelButton'
7512
7516
  signOutButton.setAttribute('type', 'button');
7513
7517
  signOutButton.setAttribute('value', logoutLabel);
7514
- signOutButton.setAttribute('style', "".concat(signInButtonStyle));
7518
+ signOutButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eee;"));
7515
7519
  signOutButton.addEventListener('click', logoutButtonHandler, false);
7516
7520
  return signOutButton;
7517
7521
  }
@@ -9655,7 +9659,6 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
9655
9659
  var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
9656
9660
  var _pad = __webpack_require__(/*! ./pad */ "./lib/pad.js");
9657
9661
  var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
9658
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
9659
9662
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
9660
9663
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9661
9664
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -9700,7 +9703,7 @@ function renderParticipants(dom, table, unused1, subject, unused2, options) {
9700
9703
  tr.textContent = '???'; // Don't crash - invalid part'n entry
9701
9704
  return tr;
9702
9705
  }
9703
- var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
9706
+ var bg = store.anyValue(parp, ns.ui('backgroundColor')) || 'white';
9704
9707
  var block = dom.createElement('div');
9705
9708
  block.setAttribute('style', style.participantsBlock);
9706
9709
  block.style.backgroundColor = bg;
@@ -10219,33 +10222,42 @@ Signup.prototype.signup = function signup(signupUrl) {
10219
10222
  /*!**********************!*\
10220
10223
  !*** ./lib/style.js ***!
10221
10224
  \**********************/
10222
- /***/ ((module, exports, __webpack_require__) => {
10225
+ /***/ ((module, exports) => {
10223
10226
 
10224
10227
  "use strict";
10225
10228
 
10226
10229
 
10227
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
10228
10230
  Object.defineProperty(exports, "__esModule", ({
10229
10231
  value: true
10230
10232
  }));
10231
10233
  exports.style = void 0;
10232
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
10233
10234
  // Common readable consistent stylesheet
10234
10235
  // to avoid using style sheets which are document-global
10235
10236
  // and make programmable style toggling with selection, drag over, etc easier
10237
+
10236
10238
  // These must all end with semicolon so they can be appended to.
10237
10239
 
10240
+ var formBorderColor = '#888888'; // Mid-grey
10241
+ var lowProfileLinkColor = '#3B5998'; // Grey-blue, e.g., for field labels linking to ontology
10242
+ var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to line up
10243
+ // The latter we put in when switching awy from using tables. Getting allignment between
10244
+ // fields in different groups though is hard problem.
10245
+
10246
+ var mediaModuleCanvasWidth = '640';
10247
+ var mediaModuleCanvasHeight = '480';
10238
10248
  var style = {
10239
10249
  // styleModule
10240
10250
 
10241
10251
  checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
10242
10252
  checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
10243
10253
  fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
10244
- formSelectStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10254
+ formSelectSTyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10245
10255
  textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10246
10256
  textInputStyleUneditable:
10247
10257
  // Color difference only
10248
10258
  'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10259
+ textInputSize: 20,
10260
+ // Default text input size in characters roughly
10249
10261
  buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
10250
10262
  // 'background-color: #eef;
10251
10263
  commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
@@ -10254,18 +10266,20 @@ var style = {
10254
10266
  classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
10255
10267
  // combine with buttonStyle
10256
10268
  confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
10269
+ tabBorderRadius: '0.2em',
10257
10270
  messageBodyStyle: 'white-space: pre-wrap; width: 99%; font-size:100%; border: 0.07em solid #eee; border-radius:0.2em; padding: .3em 0.5em; margin: 0.1em;',
10258
10271
  pendingeditModifier: 'color: #bbb;',
10272
+ highlightColor: '#7C4DFF',
10273
+ // Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
10274
+
10259
10275
  // Contacts
10260
10276
  personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
10261
10277
  searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
10262
10278
  autocompleteRowStyle: 'border: 0.2em solid straw;',
10263
10279
  // Login buttons
10264
- signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
10280
+ signInButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
10265
10281
  // was 0.5em radius
10266
- headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;',
10267
- signUpBackground: 'background-color: #eef;',
10268
- signInBackground: 'background-color: #efe;',
10282
+
10269
10283
  // Forms
10270
10284
  heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
10271
10285
  // originally was brown; now grey
@@ -10276,15 +10290,24 @@ var style = {
10276
10290
  heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
10277
10291
  // Lowest level used by default in small things
10278
10292
 
10293
+ formBorderColor: formBorderColor,
10294
+ // originally was brown; now grey
10295
+ formHeadingColor: '#888888',
10296
+ // originally was brown; now grey
10279
10297
  formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
10280
10298
  // originally was brown; now grey
10281
10299
  formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
10282
10300
  // originally used this
10283
- formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), // weight 0
10284
- "padding-left: 2em; border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.1em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.2em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;") // @@ pink
10301
+ formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), // weight 0
10302
+ "padding-left: 2em; border: 0.05em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.1em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), "padding-left: 2em; border: 0.2em solid ".concat(formBorderColor, "; border-radius: 0.2em;") // @@ pink
10285
10303
  ],
10286
- formFieldLabelStyle: "'color: ".concat(_styleConstants["default"].lowProfileLinkColor, "; text-decoration: none;'"),
10287
- formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(_styleConstants["default"].formFieldNameBoxWidth, ";"),
10304
+ formFieldLabelStyle: "'color: ".concat(lowProfileLinkColor, "; text-decoration: none;'"),
10305
+ formFieldNameBoxWidth: formFieldNameBoxWidth,
10306
+ formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(formFieldNameBoxWidth, ";"),
10307
+ textInputBackgroundColor: '#eef',
10308
+ textInputBackgroundColorUneditable: '#fff',
10309
+ textInputColor: '#000',
10310
+ textInputColorPending: '#888',
10288
10311
  multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
10289
10312
  // Buttons
10290
10313
  renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
@@ -10331,6 +10354,7 @@ var style = {
10331
10354
  headerBannerRightMenu: 'display: flex',
10332
10355
  headerBannerLogin: 'margin-left: auto',
10333
10356
  allChildrenVisible: 'display:true',
10357
+ headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important',
10334
10358
  headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto',
10335
10359
  headerBannerHelpMenu: 'border-left: solid 1px #000000; margin.left: auto',
10336
10360
  headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important',
@@ -10348,21 +10372,22 @@ var style = {
10348
10372
  secondaryButtonNoBorder: 'background-color: #ffffff; color: #01c9ea; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
10349
10373
  secondaryButtonNoBorderHover: 'background-color: #01c9ea; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #01c9ea; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none; transition: 0.25s all ease-in-out',
10350
10374
  // media
10351
- controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
10375
+ controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(mediaModuleCanvasWidth, "; height:").concat(mediaModuleCanvasHeight, ";"),
10352
10376
  // dragAndDrop
10353
10377
  dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
10354
10378
  dropEvent: 'background-color: white; border: 0em solid black;',
10355
10379
  restoreStyle: 'background-color: white;',
10356
10380
  // errors
10357
10381
  errorCancelButton: 'width: 2em; height: 2em; align: right;',
10358
- errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
10382
+ errorMessageBlock: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
10383
+ defaultErrorBackgroundColor: '#fee',
10359
10384
  // pad
10360
10385
  notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
10361
10386
  upstreamStatus: 'width:50%',
10362
10387
  downstreamStatus: 'width:50%',
10363
10388
  baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
10364
10389
  headingCore: 'font-family: sans-serif; font-weight: bold; border: none;',
10365
- headingStyle: ['font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;', 'font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;', 'font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;'],
10390
+ headingStyle: ['font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;', 'font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;', 'font-size: 150%; padding-top: 1em; padding-bottom: 1em; width: 100%;'],
10366
10391
  // participation
10367
10392
  participantsStyle: 'margin: 0.8em;',
10368
10393
  participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
@@ -10384,52 +10409,6 @@ module.exports = style; // @@ No way to do this in ESM
10384
10409
 
10385
10410
  /***/ }),
10386
10411
 
10387
- /***/ "./lib/styleConstants.js":
10388
- /*!*******************************!*\
10389
- !*** ./lib/styleConstants.js ***!
10390
- \*******************************/
10391
- /***/ ((__unused_webpack_module, exports) => {
10392
-
10393
- "use strict";
10394
-
10395
-
10396
- Object.defineProperty(exports, "__esModule", ({
10397
- value: true
10398
- }));
10399
- exports["default"] = void 0;
10400
- var _default = {
10401
- highlightColor: '#7C4DFF',
10402
- // Solid lavender https://design.inrupt.com/atomic-core/?cat=Core
10403
-
10404
- formBorderColor: '#888888',
10405
- // Mid-grey
10406
- formHeadingColor: '#888888',
10407
- // originally was brown; now grey
10408
- lowProfileLinkColor: '#3B5998',
10409
- // Grey-blue, e.g., for field labels linking to ontology
10410
- formFieldNameBoxWidth: '8em',
10411
- // The fixed amount to get form fields to line up
10412
- // The latter we put in when switching awy from using tables. Getting alignment between
10413
- // fields in different groups though is hard problem.
10414
-
10415
- mediaModuleCanvasWidth: '640',
10416
- mediaModuleCanvasHeight: '480',
10417
- textInputSize: 20,
10418
- // Default text input size in characters roughly
10419
- tabBorderRadius: '0.2em',
10420
- textInputBackgroundColor: '#eef',
10421
- textInputBackgroundColorUneditable: '#fff',
10422
- textInputColor: '#000',
10423
- textInputColorPending: '#888',
10424
- defaultErrorBackgroundColor: '#fee',
10425
- participationDefaultBackground: 'white',
10426
- basicMaxLength: '4096'
10427
- };
10428
- exports["default"] = _default;
10429
- //# sourceMappingURL=styleConstants.js.map
10430
-
10431
- /***/ }),
10432
-
10433
10412
  /***/ "./lib/style_multiSelect.js":
10434
10413
  /*!**********************************!*\
10435
10414
  !*** ./lib/style_multiSelect.js ***!
@@ -13706,8 +13685,8 @@ Object.defineProperty(exports, "__esModule", ({
13706
13685
  }));
13707
13686
  exports.versionInfo = void 0;
13708
13687
  var versionInfo = {
13709
- buildTime: '2023-07-01T19:30:56Z',
13710
- commit: 'a4f5fbef4052d6f8d92d313e57d0d59a03281ece',
13688
+ buildTime: '2023-07-01T18:17:29Z',
13689
+ commit: 'cdaefc011d313e905fbee9c4d8f1c8cfea739122',
13711
13690
  npmInfo: {
13712
13691
  'solid-ui': '2.4.28',
13713
13692
  npm: '8.19.4',
@@ -15343,7 +15322,6 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
15343
15322
  "use strict";
15344
15323
 
15345
15324
 
15346
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
15347
15325
  var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
15348
15326
  Object.defineProperty(exports, "__esModule", ({
15349
15327
  value: true
@@ -15351,7 +15329,6 @@ Object.defineProperty(exports, "__esModule", ({
15351
15329
  exports.errorMessageBlock = errorMessageBlock;
15352
15330
  var _widgets = __webpack_require__(/*! ../widgets */ "./lib/widgets/index.js");
15353
15331
  var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
15354
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
15355
15332
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15356
15333
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15357
15334
  /**
@@ -15383,8 +15360,8 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
15383
15360
  div.appendChild((0, _widgets.cancelButton)(dom, function () {
15384
15361
  if (div.parentNode) div.parentNode.removeChild(div);
15385
15362
  })).style = style.errorCancelButton;
15386
- div.setAttribute('style', style.errorMessageBlockStyle);
15387
- div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
15363
+ div.setAttribute('style', style.errorMessageBlock);
15364
+ div.style.backgroundColor = backgroundColor || style.defaultErrorBackgroundColor;
15388
15365
  return div;
15389
15366
  }
15390
15367
  //# sourceMappingURL=error.js.map
@@ -15481,7 +15458,6 @@ var _error = __webpack_require__(/*! ./error */ "./lib/widgets/error.js");
15481
15458
  var _basic = __webpack_require__(/*! ./forms/basic */ "./lib/widgets/forms/basic.js");
15482
15459
  var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./lib/widgets/forms/autocomplete/autocompleteField.js");
15483
15460
  var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
15484
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
15485
15461
  var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
15486
15462
  var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./lib/log.js"));
15487
15463
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./lib/ns.js"));
@@ -16167,7 +16143,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
16167
16143
  box.style.display = 'flex';
16168
16144
  box.style.flexDirection = 'row';
16169
16145
  var left = box.appendChild(dom.createElement('div'));
16170
- left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
16146
+ left.style.width = style.formFieldNameBoxWidth;
16171
16147
  var right = box.appendChild(dom.createElement('div'));
16172
16148
  left.appendChild((0, _basic.fieldLabel)(dom, property, form));
16173
16149
  dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
@@ -16594,7 +16570,7 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
16594
16570
  }
16595
16571
 
16596
16572
  log.debug('form is ' + form);
16597
- box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
16573
+ box.setAttribute('style', "border: 0.05em solid ".concat(style.formBorderColor, "; color: ").concat(style.formBorderColor)); // @@color?
16598
16574
  box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
16599
16575
  var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
16600
16576
  var object = newThing(dataDoc);
@@ -16655,12 +16631,12 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
16655
16631
  submit.disabled = true;
16656
16632
  submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
16657
16633
  field.disabled = true;
16658
- field.style.color = _styleConstants["default"].textInputColorPending;
16634
+ field.style.color = style.textInputColorPending; // setAttribute('style', style + 'color: gray;') // pending
16659
16635
  var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
16660
16636
  var is = $rdf.st(subject, predicate, field.value, dataDoc);
16661
16637
  kb.updater.update(ds, is, function (uri, ok, body) {
16662
16638
  if (ok) {
16663
- field.style.color = _styleConstants["default"].textInputColor;
16639
+ field.style.color = style.textInputColor;
16664
16640
  field.disabled = false;
16665
16641
  } else {
16666
16642
  group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
@@ -16689,7 +16665,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
16689
16665
  field.addEventListener('change', saveChange, true);
16690
16666
  } else {
16691
16667
  field.disabled = true; // @@ change color too
16692
- field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
16668
+ field.style.backgroundColor = style.textInputBackgroundColorUneditable;
16693
16669
  }
16694
16670
  return group;
16695
16671
  }
@@ -16814,7 +16790,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
16814
16790
  });
16815
16791
  };
16816
16792
  var select = dom.createElement('select');
16817
- select.setAttribute('style', style.formSelectStyle);
16793
+ select.setAttribute('style', style.formSelectSTyle);
16818
16794
  if (options.multiple) select.setAttribute('multiple', 'true');
16819
16795
  select.currentURI = null;
16820
16796
  select.refresh = function () {
@@ -16957,7 +16933,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
16957
16933
  });
16958
16934
  };
16959
16935
  var select = dom.createElement('select');
16960
- select.setAttribute('style', style.formSelectStyle);
16936
+ select.setAttribute('style', style.formSelectSTyle);
16961
16937
  select.currentURI = null;
16962
16938
  select.refresh = function () {
16963
16939
  actual = getActual(); // refresh
@@ -17243,7 +17219,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
17243
17219
  select.refresh();
17244
17220
  };
17245
17221
  var select = dom.createElement('select');
17246
- select.setAttribute('style', style.formSelectStyle);
17222
+ select.setAttribute('style', style.formSelectSTyle);
17247
17223
  select.setAttribute('id', 'formSelect');
17248
17224
  select.currentURI = null;
17249
17225
  for (var uri in optionsFromClassUIfrom) {
@@ -18028,7 +18004,6 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
18028
18004
  var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
18029
18005
  var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./lib/debug.js"));
18030
18006
  var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./lib/style.js"));
18031
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./lib/styleConstants.js"));
18032
18007
  var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./lib/widgets/index.js"));
18033
18008
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
18034
18009
  var _publicData = __webpack_require__(/*! ./publicData */ "./lib/widgets/forms/autocomplete/publicData.js");
@@ -18426,7 +18401,7 @@ function _renderAutoComplete() {
18426
18401
  searchInput = cell.appendChild(dom.createElement('input'));
18427
18402
  searchInput.setAttribute('type', 'text');
18428
18403
  initialize();
18429
- size = acOptions.size || _styleConstants["default"].textInputSize || 20;
18404
+ size = acOptions.size || style.textInputSize || 20;
18430
18405
  searchInput.setAttribute('size', size);
18431
18406
  searchInput.setAttribute('data-testid', 'autocomplete-input');
18432
18407
  searchInputStyle = style.textInputStyle ||
@@ -19317,7 +19292,6 @@ function _getDbpediaDetails() {
19317
19292
  "use strict";
19318
19293
 
19319
19294
 
19320
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
19321
19295
  var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
19322
19296
  Object.defineProperty(exports, "__esModule", ({
19323
19297
  value: true
@@ -19330,7 +19304,6 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
19330
19304
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
19331
19305
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./lib/ns.js"));
19332
19306
  var _style = __webpack_require__(/*! ../../style */ "./lib/style.js");
19333
- var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./lib/styleConstants.js"));
19334
19307
  var _utils = __webpack_require__(/*! ../../utils */ "./lib/utils/index.js");
19335
19308
  var _error = __webpack_require__(/*! ../error */ "./lib/widgets/error.js");
19336
19309
  var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./lib/widgets/forms/fieldFunction.js");
@@ -19346,7 +19319,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
19346
19319
  box.style.display = 'flex';
19347
19320
  box.style.flexDirection = 'row';
19348
19321
  var lhs = box.appendChild(dom.createElement('div'));
19349
- lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
19322
+ lhs.style.width = _style.formFieldNameBoxWidth;
19350
19323
  var rhs = box.appendChild(dom.createElement('div'));
19351
19324
  lhs.setAttribute('class', 'formFieldName');
19352
19325
  lhs.setAttribute('style', _style.formFieldNameBoxStyle);
@@ -19451,10 +19424,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
19451
19424
  field.style = style;
19452
19425
  rhs.appendChild(field);
19453
19426
  field.setAttribute('type', params.type ? params.type : 'text');
19454
- var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
19427
+ var size = kb.anyJS(form, ns.ui('size')) || _style.textInputSize || 20;
19455
19428
  field.setAttribute('size', size);
19456
19429
  var maxLength = kb.any(form, ns.ui('maxLength'));
19457
- field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
19430
+ field.setAttribute('maxLength', maxLength ? '' + maxLength : '4096');
19458
19431
  doc = doc || fieldStore(subject, property, doc);
19459
19432
  var obj = kb.any(subject, property, undefined, doc);
19460
19433
  if (!obj) {
@@ -19476,6 +19449,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
19476
19449
  field.readOnly = true // was: disabled. readOnly is better
19477
19450
  ;
19478
19451
  field.style = _style.textInputStyleUneditable + paramStyle;
19452
+ // backgroundColor = textInputBackgroundColorUneditable
19479
19453
  if (suppressEmptyUneditable && field.value === '') {
19480
19454
  box.style.display = 'none'; // clutter
19481
19455
  }
@@ -19716,10 +19690,10 @@ var fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldPar
19716
19690
  style: _style.formGroupStyle
19717
19691
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Comment').uri, {
19718
19692
  element: 'p',
19719
- style: _style.commentStyle
19693
+ style: _style.commentStyle // was `padding: 0.1em 1.5em; color: ${formHeadingColor}; white-space: pre-wrap;`
19720
19694
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Heading').uri, {
19721
19695
  element: 'h3',
19722
- style: _style.formHeadingStyle
19696
+ style: _style.formHeadingStyle // was: `font-size: 110%; font-weight: bold; color: ${formHeadingColor}; padding: 0.2em;`
19723
19697
  }), _fieldParams);
19724
19698
  exports.fieldParams = fieldParams;
19725
19699
  //# sourceMappingURL=fieldParams.js.map