solid-ui 2.4.28-46a60cc6 → 2.4.28-47ef2693

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.
Files changed (43) hide show
  1. package/dist/solid-ui.js +174 -148
  2. package/dist/solid-ui.js.map +1 -1
  3. package/dist/solid-ui.min.js +1 -1
  4. package/dist/solid-ui.min.js.map +1 -1
  5. package/lib/login/login.d.ts.map +1 -1
  6. package/lib/login/login.js +14 -18
  7. package/lib/login/login.js.map +1 -1
  8. package/lib/media/media-capture.d.ts +1 -1
  9. package/lib/media/media-capture.js +2 -2
  10. package/lib/media/media-capture.js.map +1 -1
  11. package/lib/pad.d.ts +1 -1
  12. package/lib/pad.js +2 -2
  13. package/lib/pad.js.map +1 -1
  14. package/lib/participation.d.ts +2 -2
  15. package/lib/participation.d.ts.map +1 -1
  16. package/lib/participation.js +4 -3
  17. package/lib/participation.js.map +1 -1
  18. package/lib/style.js +72 -95
  19. package/lib/style.js.map +1 -1
  20. package/lib/styleConstants.js +36 -0
  21. package/lib/styleConstants.js.map +1 -0
  22. package/lib/tabs.d.ts +0 -125
  23. package/lib/tabs.d.ts.map +1 -1
  24. package/lib/tabs.js +2 -1
  25. package/lib/tabs.js.map +1 -1
  26. package/lib/versionInfo.js +4 -4
  27. package/lib/versionInfo.js.map +1 -1
  28. package/lib/widgets/dragAndDrop.js +5 -5
  29. package/lib/widgets/dragAndDrop.js.map +1 -1
  30. package/lib/widgets/error.d.ts.map +1 -1
  31. package/lib/widgets/error.js +4 -2
  32. package/lib/widgets/error.js.map +1 -1
  33. package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +1 -1
  34. package/lib/widgets/forms/autocomplete/autocompletePicker.js +2 -1
  35. package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
  36. package/lib/widgets/forms/basic.d.ts.map +1 -1
  37. package/lib/widgets/forms/basic.js +5 -4
  38. package/lib/widgets/forms/basic.js.map +1 -1
  39. package/lib/widgets/forms/fieldParams.js +2 -2
  40. package/lib/widgets/forms/fieldParams.js.map +1 -1
  41. package/lib/widgets/forms.js +9 -8
  42. package/lib/widgets/forms.js.map +1 -1
  43. package/package.json +1 -1
package/dist/solid-ui.js CHANGED
@@ -7134,6 +7134,15 @@ 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
+ */
7137
7146
  function _registrationList() {
7138
7147
  _registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
7139
7148
  var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
@@ -7265,23 +7274,10 @@ function _registrationList() {
7265
7274
  }));
7266
7275
  return _registrationList.apply(this, arguments);
7267
7276
  }
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
- */
7281
7277
  function signInOrSignUpBox(dom, setUserCallback) {
7282
7278
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
7283
7279
  options = options || {};
7284
- var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
7280
+ var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
7285
7281
  var box = dom.createElement('div');
7286
7282
  var magicClassName = 'SolidSignInOrSignUpBox';
7287
7283
  debug.log('widgets.signInOrSignUpBox');
@@ -7294,7 +7290,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
7294
7290
  box.appendChild(signInPopUpButton);
7295
7291
  signInPopUpButton.setAttribute('type', 'button');
7296
7292
  signInPopUpButton.setAttribute('value', 'Log in');
7297
- signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eef;").concat(style.headerBannerLoginInput));
7293
+ signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signUpBackground);
7298
7294
  _solidLogic.authSession.onLogin(function () {
7299
7295
  var me = _solidLogic.authn.currentUser();
7300
7296
  // const sessionInfo = authSession.info
@@ -7335,7 +7331,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
7335
7331
  box.appendChild(signupButton);
7336
7332
  signupButton.setAttribute('type', 'button');
7337
7333
  signupButton.setAttribute('value', 'Sign Up for Solid');
7338
- signupButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #efe;").concat(style.headerBannerLoginInput));
7334
+ signupButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signInBackground);
7339
7335
  signupButton.addEventListener('click', function (_event) {
7340
7336
  var signupMgr = new _signup.Signup();
7341
7337
  signupMgr.signup().then(function (uri) {
@@ -7503,7 +7499,7 @@ function loginStatusBox(dom) {
7503
7499
  });
7504
7500
  }
7505
7501
  function logoutButton(me, options) {
7506
- var signInButtonStyle = options.buttonStyle || getDefaultSignInButtonStyle();
7502
+ var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
7507
7503
  var logoutLabel = 'WebID logout';
7508
7504
  if (me) {
7509
7505
  var nick = _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('nick')) || _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('name'));
@@ -7515,7 +7511,7 @@ function loginStatusBox(dom) {
7515
7511
  // signOutButton.className = 'WebIDCancelButton'
7516
7512
  signOutButton.setAttribute('type', 'button');
7517
7513
  signOutButton.setAttribute('value', logoutLabel);
7518
- signOutButton.setAttribute('style', "".concat(signInButtonStyle, "background-color: #eee;"));
7514
+ signOutButton.setAttribute('style', "".concat(signInButtonStyle));
7519
7515
  signOutButton.addEventListener('click', logoutButtonHandler, false);
7520
7516
  return signOutButton;
7521
7517
  }
@@ -8264,7 +8260,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
8264
8260
  //
8265
8261
  // Workflow:
8266
8262
  // The HTML5 functionality (on mobile) is to prompt for either
8267
- // a realtime camera capture, OR a selection from images already not the device
8263
+ // a realtime camera capture, OR a selection from images already on the device
8268
8264
  // (eg camera roll).
8269
8265
  //
8270
8266
  // The solid alternative is to either take a photo
@@ -8404,7 +8400,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
8404
8400
  * @param {function<Node>} doneCallback - called with the image taken
8405
8401
  * @returns {DomElement} - A div element with the button in it
8406
8402
  *
8407
- * This expects the button to a large control when it is pressed
8403
+ * This expands the button to a large control when it is pressed
8408
8404
  */
8409
8405
 
8410
8406
  function cameraButton(dom, store, getImageDoc, doneCallback) {
@@ -8928,7 +8924,7 @@ function lightColorHash(author) {
8928
8924
  /** notepad
8929
8925
  *
8930
8926
  * @param {HTMLDocument} dom - the web page of the browser
8931
- * @param {NamedNode} padDoc - the document into which the participation should be shown
8927
+ * @param {NamedNode} padDoc - the document in which the participation should be shown
8932
8928
  * @param {NamedNode} subject - the thing in which participation is happening
8933
8929
  * @param {NamedNode} me - person who is logged into the pod
8934
8930
  * @param {notepadOptions} options - the options that can be passed in consist of statusArea, exists
@@ -9112,7 +9108,7 @@ function notepad(dom, padDoc, subject, me, options) {
9112
9108
  // contents need to be sent again
9113
9109
  part.state = 4; // delete me
9114
9110
  return;
9115
- case 3: // being deleted already
9111
+ case 3: // already being deleted
9116
9112
  case 4:
9117
9113
  // already deleted state
9118
9114
  return;
@@ -9659,6 +9655,7 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
9659
9655
  var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
9660
9656
  var _pad = __webpack_require__(/*! ./pad */ "./lib/pad.js");
9661
9657
  var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
9658
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
9662
9659
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
9663
9660
  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); }
9664
9661
  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; }
@@ -9691,7 +9688,7 @@ var store = _solidLogic.solidLogicSingleton.store;
9691
9688
  * @param {NamedNode} unused1/document - the document to render (this argument is no longer used, but left in for backwards compatibility)
9692
9689
  * @param {NamedNode} subject - the thing in which the participation is happening
9693
9690
  * @param {NamedNode} unused2/me - user that is logged into the pod (this argument is no longer used, but left in for backwards compatibility)
9694
- * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
9691
+ * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
9695
9692
  */
9696
9693
  function renderParticipants(dom, table, unused1, subject, unused2, options) {
9697
9694
  table.setAttribute('style', style.participantsStyle);
@@ -9703,7 +9700,7 @@ function renderParticipants(dom, table, unused1, subject, unused2, options) {
9703
9700
  tr.textContent = '???'; // Don't crash - invalid part'n entry
9704
9701
  return tr;
9705
9702
  }
9706
- var bg = store.anyValue(parp, ns.ui('backgroundColor')) || 'white';
9703
+ var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
9707
9704
  var block = dom.createElement('div');
9708
9705
  block.setAttribute('style', style.participantsBlock);
9709
9706
  block.style.backgroundColor = bg;
@@ -9837,7 +9834,7 @@ function recordParticipation(subject, padDoc, refreshable) {
9837
9834
  * @param {NamedNode} document - the document into which the participation should be shown
9838
9835
  * @param {NamedNode} subject - the thing in which participation is happening
9839
9836
  * @param {NamedNode} me - the logged in user
9840
- * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
9837
+ * @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
9841
9838
  *
9842
9839
  */
9843
9840
  function manageParticipation(dom, container, padDoc, subject, me, options) {
@@ -10222,43 +10219,34 @@ Signup.prototype.signup = function signup(signupUrl) {
10222
10219
  /*!**********************!*\
10223
10220
  !*** ./lib/style.js ***!
10224
10221
  \**********************/
10225
- /***/ ((module, exports) => {
10222
+ /***/ ((module, exports, __webpack_require__) => {
10226
10223
 
10227
10224
  "use strict";
10228
10225
 
10229
10226
 
10227
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
10230
10228
  Object.defineProperty(exports, "__esModule", ({
10231
10229
  value: true
10232
10230
  }));
10233
10231
  exports.style = void 0;
10232
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
10234
10233
  // Common readable consistent stylesheet
10235
10234
  // to avoid using style sheets which are document-global
10236
10235
  // and make programmable style toggling with selection, drag over, etc easier
10237
-
10238
10236
  // These must all end with semicolon so they can be appended to.
10239
10237
 
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';
10248
10238
  var style = {
10249
10239
  // styleModule
10250
10240
 
10251
10241
  checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
10252
- checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
10242
+ checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;',
10253
10243
  fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
10254
- formSelectSTyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10255
- textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10244
+ formSelectStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10245
+ textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10256
10246
  textInputStyleUneditable:
10257
10247
  // Color difference only
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
10261
- buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
10248
+ 'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
10249
+ buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
10262
10250
  // 'background-color: #eef;
10263
10251
  commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
10264
10252
  iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
@@ -10266,20 +10254,18 @@ var style = {
10266
10254
  classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
10267
10255
  // combine with buttonStyle
10268
10256
  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',
10270
10257
  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;',
10271
10258
  pendingeditModifier: 'color: #bbb;',
10272
- highlightColor: '#7C4DFF',
10273
- // Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
10274
-
10275
10259
  // Contacts
10276
10260
  personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
10277
10261
  searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
10278
10262
  autocompleteRowStyle: 'border: 0.2em solid straw;',
10279
10263
  // Login buttons
10280
- signInButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
10264
+ signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
10281
10265
  // was 0.5em radius
10282
-
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;',
10283
10269
  // Forms
10284
10270
  heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
10285
10271
  // originally was brown; now grey
@@ -10290,115 +10276,103 @@ var style = {
10290
10276
  heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
10291
10277
  // Lowest level used by default in small things
10292
10278
 
10293
- formBorderColor: formBorderColor,
10294
- // originally was brown; now grey
10295
- formHeadingColor: '#888888',
10296
- // originally was brown; now grey
10297
10279
  formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
10298
10280
  // originally was brown; now grey
10299
10281
  formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
10300
10282
  // originally used this
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
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
10303
10285
  ],
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',
10286
+ formFieldLabelStyle: "color: ".concat(_styleConstants["default"].lowProfileLinkColor, "; text-decoration: none;"),
10287
+ formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(_styleConstants["default"].formFieldNameBoxWidth, ";"),
10311
10288
  multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
10312
10289
  // Buttons
10313
10290
  renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
10314
10291
  imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',
10315
10292
  linkDivStyle: 'width:2em; padding:0.5em; height: 4em;',
10316
10293
  // ACL
10317
- aclControlBoxContainer: 'margin: 1em',
10318
- aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem',
10319
- aclControlBoxStatus: 'display: none; margin: 1rem 0',
10320
- aclControlBoxStatusRevealed: 'display: block',
10321
- aclGroupContent: 'maxWidth: 650',
10322
- accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%',
10323
- accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%',
10324
- defaultsController: 'display: flex',
10325
- defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%',
10326
- bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em',
10327
- group: 'color: #888',
10328
- group1: 'color: green',
10329
- group2: 'color: #cc0',
10330
- group3: 'color: orange',
10331
- group5: 'color: red',
10332
- group9: 'color: blue',
10333
- group13: 'color: purple',
10334
- trustedAppAddApplicationsTable: 'background-color: #eee',
10335
- trustedAppCancelButton: 'float: right',
10336
- trustedAppControllerI: 'border-color: orange; borderRadius: 1em; borderWidth: 0.1em',
10337
- temporaryStatusInit: 'background: green',
10338
- temporaryStatusEnd: 'background: transparent; transition: background 5s linear',
10294
+ aclControlBoxContainer: 'margin: 1em;',
10295
+ aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem;',
10296
+ aclControlBoxStatus: 'display: none; margin: 1rem 0;',
10297
+ aclControlBoxStatusRevealed: 'display: block;',
10298
+ aclGroupContent: 'maxWidth: 650;',
10299
+ accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;',
10300
+ accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%;',
10301
+ defaultsController: 'display: flex;',
10302
+ defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%;',
10303
+ bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;',
10304
+ group: 'color: #888;',
10305
+ group1: 'color: green;',
10306
+ group2: 'color: #cc0;',
10307
+ group3: 'color: orange;',
10308
+ group5: 'color: red;',
10309
+ group9: 'color: blue;',
10310
+ group13: 'color: purple;',
10311
+ trustedAppAddApplicationsTable: 'background-color: #eee;',
10312
+ trustedAppCancelButton: 'float: right;',
10313
+ trustedAppControllerI: 'border-color: orange; border-radius: 1em; border-width: 0.1em;',
10314
+ temporaryStatusInit: 'background: green;',
10315
+ temporaryStatusEnd: 'background: transparent; transition: background 5s linear;',
10339
10316
  // header
10340
- headerUserMenuLink: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none',
10341
- headerUserMenuLinkHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)',
10342
- headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px',
10343
- headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important',
10344
- headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%',
10345
- headerUserMenuButtonHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)',
10346
- headerUserMenuList: 'list-style: none; margin: 0; padding: 0',
10347
- headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true',
10348
- headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true',
10349
- headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none',
10350
- headerUserMenuListItem: 'border-bottom: solid 1px #000000',
10351
- headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px',
10352
- headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px',
10353
- headerBannerLink: 'display: block',
10354
- headerBannerRightMenu: 'display: flex',
10355
- headerBannerLogin: 'margin-left: auto',
10356
- allChildrenVisible: 'display:true',
10357
- headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important',
10358
- headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto',
10359
- headerBannerHelpMenu: 'border-left: solid 1px #000000; margin.left: auto',
10360
- headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important',
10317
+ headerUserMenuLink: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none;',
10318
+ headerUserMenuLinkHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; text-decoration: none; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);',
10319
+ headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px;',
10320
+ headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important;',
10321
+ headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;',
10322
+ headerUserMenuButtonHover: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%; background-image: linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%);',
10323
+ headerUserMenuList: 'list-style: none; margin: 0; padding: 0;',
10324
+ headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true;',
10325
+ headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;',
10326
+ headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;',
10327
+ headerUserMenuListItem: 'border-bottom: solid 1px #000000;',
10328
+ headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;',
10329
+ headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;',
10330
+ headerBannerLink: 'display: block;',
10331
+ headerBannerRightMenu: 'display: flex;',
10332
+ headerBannerLogin: 'margin-left: auto;',
10333
+ allChildrenVisible: 'display:true;',
10334
+ headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto;',
10335
+ headerBannerHelpMenu: 'border-left: solid 1px #000000; margin-left: auto;',
10336
+ headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important;',
10361
10337
  // may just be 65px round($icon-size * 352 / 322);
10362
10338
 
10363
10339
  // footer
10364
- footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em',
10340
+ footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;',
10365
10341
  // buttons
10366
- primaryButton: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
10367
- primaryButtonHover: 'background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; 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',
10368
- primaryButtonNoBorder: 'background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em;text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none',
10369
- primaryButtonNoBorderHover: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; 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',
10370
- secondaryButton: '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',
10371
- secondaryButtonHover: 'background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; 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',
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',
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',
10342
+ primaryButton: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
10343
+ primaryButtonHover: 'background-color: #9f7dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; 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;',
10344
+ primaryButtonNoBorder: 'background-color: #ffffff; color: #7c4dff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; border: 1px solid; cursor: pointer; font-size: .8em; text-decoration: none; padding: 0.5em 4em; transition: 0.25s all ease-in-out; outline: none;',
10345
+ primaryButtonNoBorderHover: 'background-color: #7c4dff; color: #ffffff; font-family: Raleway, Roboto, sans-serif; border-radius: 0.25em; border-color: #7c4dff; 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;',
10346
+ secondaryButton: '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;',
10347
+ secondaryButtonHover: 'background-color: #37cde6; color: #ffffff; font-family: Raleway, Roboto, sans-serif;border-radius: 0.25em; border-color: #7c4dff; 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;',
10348
+ 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
+ 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;',
10374
10350
  // media
10375
- controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(mediaModuleCanvasWidth, "; height:").concat(mediaModuleCanvasHeight, ";"),
10351
+ controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
10376
10352
  // dragAndDrop
10377
10353
  dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
10378
10354
  dropEvent: 'background-color: white; border: 0em solid black;',
10379
10355
  restoreStyle: 'background-color: white;',
10380
10356
  // errors
10381
10357
  errorCancelButton: 'width: 2em; height: 2em; align: right;',
10382
- errorMessageBlock: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
10383
- defaultErrorBackgroundColor: '#fee',
10358
+ errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
10384
10359
  // pad
10385
10360
  notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
10386
- upstreamStatus: 'width:50%',
10387
- downstreamStatus: 'width:50%',
10361
+ upstreamStatus: 'width: 50%;',
10362
+ downstreamStatus: 'width: 50%;',
10388
10363
  baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
10389
10364
  headingCore: 'font-family: sans-serif; font-weight: bold; border: none;',
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%;'],
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%;'],
10391
10366
  // participation
10392
10367
  participantsStyle: 'margin: 0.8em;',
10393
10368
  participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
10394
10369
  personTableTD: 'vertical-align: middle;',
10395
10370
  // tabs
10396
- tabsDefaultBackgroundColor: '#ddddcc',
10397
10371
  tabsNavElement: 'margin: 0;',
10398
10372
  tabsRootElement: 'display: flex; height: 100%; width: 100%;',
10399
10373
  tabsMainElement: 'margin: 0; width:100%; height: 100%;',
10400
10374
  tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
10401
- makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer',
10375
+ makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
10402
10376
  ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
10403
10377
  };
10404
10378
  exports.style = style;
@@ -10410,6 +10384,52 @@ module.exports = style; // @@ No way to do this in ESM
10410
10384
 
10411
10385
  /***/ }),
10412
10386
 
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
+ // We put in the latter when switching away from using tables. However, getting
10413
+ // alignment between fields in different groups is a hard problem.
10414
+
10415
+ mediaModuleCanvasWidth: '640',
10416
+ mediaModuleCanvasHeight: '480',
10417
+ textInputSize: 20,
10418
+ // Rough default text input size, in characters
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
+
10413
10433
  /***/ "./lib/style_multiSelect.js":
10414
10434
  /*!**********************************!*\
10415
10435
  !*** ./lib/style_multiSelect.js ***!
@@ -12284,11 +12304,12 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
12284
12304
  *
12285
12305
  * @param options
12286
12306
  */
12307
+ var tabsDefaultBackgroundColor = '#ddddcc';
12287
12308
  function tabWidget(options) {
12288
12309
  var subject = options.subject;
12289
12310
  var dom = options.dom || document;
12290
12311
  var orientation = parseInt(options.orientation || '0');
12291
- var backgroundColor = options.backgroundColor || style.tabsDefaultBackgroundColor;
12312
+ var backgroundColor = options.backgroundColor || tabsDefaultBackgroundColor;
12292
12313
  var flipped = orientation & 2;
12293
12314
  var vertical = orientation & 1;
12294
12315
  var onClose = options.onClose;
@@ -13685,12 +13706,12 @@ Object.defineProperty(exports, "__esModule", ({
13685
13706
  }));
13686
13707
  exports.versionInfo = void 0;
13687
13708
  var versionInfo = {
13688
- buildTime: '2023-07-01T18:03:12Z',
13689
- commit: '46a60cc6e2179cef6a40501e1bf6cb1f33bf9367',
13709
+ buildTime: '2023-08-16T08:08:58Z',
13710
+ commit: '47ef269339cf9672c1fd6828e8cf6bf1b2426ccd',
13690
13711
  npmInfo: {
13691
13712
  'solid-ui': '2.4.28',
13692
13713
  npm: '8.19.4',
13693
- node: '16.20.1',
13714
+ node: '16.20.2',
13694
13715
  v8: '9.4.146.26-node.26',
13695
13716
  uv: '1.43.0',
13696
13717
  zlib: '1.2.11',
@@ -13700,7 +13721,7 @@ var versionInfo = {
13700
13721
  nghttp2: '1.47.0',
13701
13722
  napi: '8',
13702
13723
  llhttp: '6.0.11',
13703
- openssl: '1.1.1u+quic',
13724
+ openssl: '1.1.1v+quic',
13704
13725
  cldr: '41.0',
13705
13726
  icu: '71.1',
13706
13727
  tz: '2022f',
@@ -15131,19 +15152,19 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
15131
15152
  /* Drag and drop common functionality
15132
15153
  *
15133
15154
  * It is easy to make something draggable, or to make it a drag target!
15134
- * Just call the functions below. In a solid world, any part of the UI which
15135
- * represent one thing which has a URI, should be made draggable using makeDraggable
15155
+ * Just call the functions below. In a Solid world, any part of the UI which
15156
+ * represents one thing which has a URI, should be made draggable using makeDraggable.
15136
15157
  * Any list of things should typically allow you to drag new members of the list
15137
15158
  * onto it.
15138
- * The file upload function uploadFiles is provided as often as someone drags a file from the computer
15139
- * desktop, you may want to upload it into the pod.
15159
+ * The file upload function, uploadFiles, is provided as often as someone drags a file from the computer
15160
+ * desktop. You may want to upload it into the pod.
15140
15161
  */
15141
15162
 
15142
15163
  /* global FileReader alert */
15143
15164
 
15144
15165
  function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
15145
15166
  var dragoverListener = function dragoverListener(e) {
15146
- e.preventDefault(); // Need else drop does not work [sic]
15167
+ e.preventDefault(); // Need this; otherwise, drop does not work.
15147
15168
  e.dataTransfer.dropEffect = 'copy';
15148
15169
  };
15149
15170
  var dragenterListener = function dragenterListener(e) {
@@ -15322,6 +15343,7 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
15322
15343
  "use strict";
15323
15344
 
15324
15345
 
15346
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
15325
15347
  var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
15326
15348
  Object.defineProperty(exports, "__esModule", ({
15327
15349
  value: true
@@ -15329,6 +15351,7 @@ Object.defineProperty(exports, "__esModule", ({
15329
15351
  exports.errorMessageBlock = errorMessageBlock;
15330
15352
  var _widgets = __webpack_require__(/*! ../widgets */ "./lib/widgets/index.js");
15331
15353
  var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
15354
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
15332
15355
  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); }
15333
15356
  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; }
15334
15357
  /**
@@ -15360,8 +15383,8 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
15360
15383
  div.appendChild((0, _widgets.cancelButton)(dom, function () {
15361
15384
  if (div.parentNode) div.parentNode.removeChild(div);
15362
15385
  })).style = style.errorCancelButton;
15363
- div.setAttribute('style', style.errorMessageBlock);
15364
- div.style.backgroundColor = backgroundColor || style.defaultErrorBackgroundColor;
15386
+ div.setAttribute('style', style.errorMessageBlockStyle);
15387
+ div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
15365
15388
  return div;
15366
15389
  }
15367
15390
  //# sourceMappingURL=error.js.map
@@ -15458,6 +15481,7 @@ var _error = __webpack_require__(/*! ./error */ "./lib/widgets/error.js");
15458
15481
  var _basic = __webpack_require__(/*! ./forms/basic */ "./lib/widgets/forms/basic.js");
15459
15482
  var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./lib/widgets/forms/autocomplete/autocompleteField.js");
15460
15483
  var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
15484
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
15461
15485
  var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
15462
15486
  var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./lib/log.js"));
15463
15487
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./lib/ns.js"));
@@ -16143,7 +16167,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
16143
16167
  box.style.display = 'flex';
16144
16168
  box.style.flexDirection = 'row';
16145
16169
  var left = box.appendChild(dom.createElement('div'));
16146
- left.style.width = style.formFieldNameBoxWidth;
16170
+ left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
16147
16171
  var right = box.appendChild(dom.createElement('div'));
16148
16172
  left.appendChild((0, _basic.fieldLabel)(dom, property, form));
16149
16173
  dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
@@ -16570,7 +16594,7 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
16570
16594
  }
16571
16595
 
16572
16596
  log.debug('form is ' + form);
16573
- box.setAttribute('style', "border: 0.05em solid ".concat(style.formBorderColor, "; color: ").concat(style.formBorderColor)); // @@color?
16597
+ box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
16574
16598
  box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
16575
16599
  var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
16576
16600
  var object = newThing(dataDoc);
@@ -16631,12 +16655,12 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
16631
16655
  submit.disabled = true;
16632
16656
  submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
16633
16657
  field.disabled = true;
16634
- field.style.color = style.textInputColorPending; // setAttribute('style', style + 'color: gray;') // pending
16658
+ field.style.color = _styleConstants["default"].textInputColorPending;
16635
16659
  var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
16636
16660
  var is = $rdf.st(subject, predicate, field.value, dataDoc);
16637
16661
  kb.updater.update(ds, is, function (uri, ok, body) {
16638
16662
  if (ok) {
16639
- field.style.color = style.textInputColor;
16663
+ field.style.color = _styleConstants["default"].textInputColor;
16640
16664
  field.disabled = false;
16641
16665
  } else {
16642
16666
  group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
@@ -16665,7 +16689,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
16665
16689
  field.addEventListener('change', saveChange, true);
16666
16690
  } else {
16667
16691
  field.disabled = true; // @@ change color too
16668
- field.style.backgroundColor = style.textInputBackgroundColorUneditable;
16692
+ field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
16669
16693
  }
16670
16694
  return group;
16671
16695
  }
@@ -16790,7 +16814,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
16790
16814
  });
16791
16815
  };
16792
16816
  var select = dom.createElement('select');
16793
- select.setAttribute('style', style.formSelectSTyle);
16817
+ select.setAttribute('style', style.formSelectStyle);
16794
16818
  if (options.multiple) select.setAttribute('multiple', 'true');
16795
16819
  select.currentURI = null;
16796
16820
  select.refresh = function () {
@@ -16933,7 +16957,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
16933
16957
  });
16934
16958
  };
16935
16959
  var select = dom.createElement('select');
16936
- select.setAttribute('style', style.formSelectSTyle);
16960
+ select.setAttribute('style', style.formSelectStyle);
16937
16961
  select.currentURI = null;
16938
16962
  select.refresh = function () {
16939
16963
  actual = getActual(); // refresh
@@ -17219,7 +17243,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
17219
17243
  select.refresh();
17220
17244
  };
17221
17245
  var select = dom.createElement('select');
17222
- select.setAttribute('style', style.formSelectSTyle);
17246
+ select.setAttribute('style', style.formSelectStyle);
17223
17247
  select.setAttribute('id', 'formSelect');
17224
17248
  select.currentURI = null;
17225
17249
  for (var uri in optionsFromClassUIfrom) {
@@ -18004,6 +18028,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
18004
18028
  var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
18005
18029
  var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./lib/debug.js"));
18006
18030
  var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./lib/style.js"));
18031
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./lib/styleConstants.js"));
18007
18032
  var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./lib/widgets/index.js"));
18008
18033
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
18009
18034
  var _publicData = __webpack_require__(/*! ./publicData */ "./lib/widgets/forms/autocomplete/publicData.js");
@@ -18401,7 +18426,7 @@ function _renderAutoComplete() {
18401
18426
  searchInput = cell.appendChild(dom.createElement('input'));
18402
18427
  searchInput.setAttribute('type', 'text');
18403
18428
  initialize();
18404
- size = acOptions.size || style.textInputSize || 20;
18429
+ size = acOptions.size || _styleConstants["default"].textInputSize || 20;
18405
18430
  searchInput.setAttribute('size', size);
18406
18431
  searchInput.setAttribute('data-testid', 'autocomplete-input');
18407
18432
  searchInputStyle = style.textInputStyle ||
@@ -19292,6 +19317,7 @@ function _getDbpediaDetails() {
19292
19317
  "use strict";
19293
19318
 
19294
19319
 
19320
+ var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
19295
19321
  var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
19296
19322
  Object.defineProperty(exports, "__esModule", ({
19297
19323
  value: true
@@ -19304,6 +19330,7 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
19304
19330
  var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
19305
19331
  var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./lib/ns.js"));
19306
19332
  var _style = __webpack_require__(/*! ../../style */ "./lib/style.js");
19333
+ var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./lib/styleConstants.js"));
19307
19334
  var _utils = __webpack_require__(/*! ../../utils */ "./lib/utils/index.js");
19308
19335
  var _error = __webpack_require__(/*! ../error */ "./lib/widgets/error.js");
19309
19336
  var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./lib/widgets/forms/fieldFunction.js");
@@ -19319,7 +19346,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
19319
19346
  box.style.display = 'flex';
19320
19347
  box.style.flexDirection = 'row';
19321
19348
  var lhs = box.appendChild(dom.createElement('div'));
19322
- lhs.style.width = _style.formFieldNameBoxWidth;
19349
+ lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
19323
19350
  var rhs = box.appendChild(dom.createElement('div'));
19324
19351
  lhs.setAttribute('class', 'formFieldName');
19325
19352
  lhs.setAttribute('style', _style.formFieldNameBoxStyle);
@@ -19424,10 +19451,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
19424
19451
  field.style = style;
19425
19452
  rhs.appendChild(field);
19426
19453
  field.setAttribute('type', params.type ? params.type : 'text');
19427
- var size = kb.anyJS(form, ns.ui('size')) || _style.textInputSize || 20;
19454
+ var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
19428
19455
  field.setAttribute('size', size);
19429
19456
  var maxLength = kb.any(form, ns.ui('maxLength'));
19430
- field.setAttribute('maxLength', maxLength ? '' + maxLength : '4096');
19457
+ field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
19431
19458
  doc = doc || fieldStore(subject, property, doc);
19432
19459
  var obj = kb.any(subject, property, undefined, doc);
19433
19460
  if (!obj) {
@@ -19449,7 +19476,6 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
19449
19476
  field.readOnly = true // was: disabled. readOnly is better
19450
19477
  ;
19451
19478
  field.style = _style.textInputStyleUneditable + paramStyle;
19452
- // backgroundColor = textInputBackgroundColorUneditable
19453
19479
  if (suppressEmptyUneditable && field.value === '') {
19454
19480
  box.style.display = 'none'; // clutter
19455
19481
  }
@@ -19690,10 +19716,10 @@ var fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldPar
19690
19716
  style: _style.formGroupStyle
19691
19717
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Comment').uri, {
19692
19718
  element: 'p',
19693
- style: _style.commentStyle // was `padding: 0.1em 1.5em; color: ${formHeadingColor}; white-space: pre-wrap;`
19719
+ style: _style.commentStyle
19694
19720
  }), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Heading').uri, {
19695
19721
  element: 'h3',
19696
- style: _style.formHeadingStyle // was: `font-size: 110%; font-weight: bold; color: ${formHeadingColor}; padding: 0.2em;`
19722
+ style: _style.formHeadingStyle
19697
19723
  }), _fieldParams);
19698
19724
  exports.fieldParams = fieldParams;
19699
19725
  //# sourceMappingURL=fieldParams.js.map