solid-ui 2.4.28-58251370 → 2.4.28-595a35d2
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 +256 -223
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +14 -18
- package/lib/login/login.js.map +1 -1
- package/lib/media/media-capture.d.ts +2 -2
- package/lib/media/media-capture.d.ts.map +1 -1
- package/lib/media/media-capture.js +11 -15
- package/lib/media/media-capture.js.map +1 -1
- package/lib/pad.d.ts +2 -2
- package/lib/pad.d.ts.map +1 -1
- package/lib/pad.js +14 -37
- package/lib/pad.js.map +1 -1
- package/lib/participation.d.ts +5 -5
- package/lib/participation.d.ts.map +1 -1
- package/lib/participation.js +23 -22
- package/lib/participation.js.map +1 -1
- package/lib/style.js +93 -85
- package/lib/style.js.map +1 -1
- package/lib/styleConstants.js +36 -0
- package/lib/styleConstants.js.map +1 -0
- package/lib/tabs.d.ts +0 -125
- package/lib/tabs.d.ts.map +1 -1
- package/lib/tabs.js +15 -8
- package/lib/tabs.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/dragAndDrop.js +10 -18
- package/lib/widgets/dragAndDrop.js.map +1 -1
- package/lib/widgets/error.d.ts.map +1 -1
- package/lib/widgets/error.js +9 -2
- package/lib/widgets/error.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js +2 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/basic.d.ts.map +1 -1
- package/lib/widgets/forms/basic.js +5 -4
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms/fieldParams.js +2 -2
- package/lib/widgets/forms/fieldParams.js.map +1 -1
- package/lib/widgets/forms.js +9 -8
- package/lib/widgets/forms.js.map +1 -1
- 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 ||
|
|
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
|
|
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
|
|
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 ||
|
|
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
|
|
7514
|
+
signOutButton.setAttribute('style', "".concat(signInButtonStyle));
|
|
7519
7515
|
signOutButton.addEventListener('click', logoutButtonHandler, false);
|
|
7520
7516
|
return signOutButton;
|
|
7521
7517
|
}
|
|
@@ -8254,21 +8250,21 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
8254
8250
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
8255
8251
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./lib/debug.js"));
|
|
8256
8252
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
|
|
8253
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
8257
8254
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../widgets */ "./lib/widgets/index.js"));
|
|
8258
8255
|
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); }
|
|
8259
8256
|
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; }
|
|
8260
|
-
/// /////////////////////////////////////////////
|
|
8261
8257
|
//
|
|
8262
8258
|
// Media input widget
|
|
8263
8259
|
//
|
|
8264
8260
|
//
|
|
8265
8261
|
// Workflow:
|
|
8266
|
-
// The HTML5 functionality (on
|
|
8267
|
-
// a realtime camera capture
|
|
8262
|
+
// The HTML5 functionality (on mobile) is to prompt for either
|
|
8263
|
+
// a realtime camera capture, OR a selection from images already on the device
|
|
8268
8264
|
// (eg camera roll).
|
|
8269
8265
|
//
|
|
8270
|
-
// The solid alternative is to either take a
|
|
8271
|
-
// or access
|
|
8266
|
+
// The solid alternative is to either take a photo
|
|
8267
|
+
// or access camera roll (etc) OR to access solid cloud storage of favorite photo albums.
|
|
8272
8268
|
// (Especially latest taken ones)
|
|
8273
8269
|
//
|
|
8274
8270
|
|
|
@@ -8277,10 +8273,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
8277
8273
|
var cameraIcon = _iconBase.icons.iconBase + 'noun_Camera_1618446_000000.svg'; // Get it from github
|
|
8278
8274
|
var retakeIcon = _iconBase.icons.iconBase + 'noun_479395.svg'; // Get it from github
|
|
8279
8275
|
|
|
8280
|
-
var canvasWidth = '640';
|
|
8281
|
-
var canvasHeight = '480';
|
|
8282
|
-
var controlStyle = "border-radius: 0.5em; margin: 0.8em; width: ".concat(canvasWidth, "; height:").concat(canvasHeight, ";");
|
|
8283
|
-
// const controlStyle = 'border-radius: 0.5em; margin: 0.8em; width: 320; height:240;'
|
|
8284
8276
|
var contentType = 'image/png';
|
|
8285
8277
|
|
|
8286
8278
|
/** A control to capture a picture using camera
|
|
@@ -8325,7 +8317,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8325
8317
|
player = main.appendChild(dom.createElement('video'));
|
|
8326
8318
|
player.setAttribute('controls', '1');
|
|
8327
8319
|
player.setAttribute('autoplay', '1');
|
|
8328
|
-
player.setAttribute('style', controlStyle);
|
|
8320
|
+
player.setAttribute('style', style.controlStyle);
|
|
8329
8321
|
if (!navigator.mediaDevices) {
|
|
8330
8322
|
throw new Error('navigator.mediaDevices not available');
|
|
8331
8323
|
}
|
|
@@ -8347,9 +8339,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8347
8339
|
function grabCanvas() {
|
|
8348
8340
|
// Draw the video frame to the canvas.
|
|
8349
8341
|
canvas = dom.createElement('canvas');
|
|
8350
|
-
canvas.setAttribute('width', canvasWidth);
|
|
8351
|
-
canvas.setAttribute('height', canvasHeight);
|
|
8352
|
-
canvas.setAttribute('style', controlStyle);
|
|
8342
|
+
canvas.setAttribute('width', style.canvasWidth);
|
|
8343
|
+
canvas.setAttribute('height', style.canvasHeight);
|
|
8344
|
+
canvas.setAttribute('style', style.controlStyle);
|
|
8353
8345
|
main.appendChild(canvas);
|
|
8354
8346
|
var context = canvas.getContext('2d');
|
|
8355
8347
|
context.drawImage(player, 0, 0, canvas.width, canvas.height);
|
|
@@ -8406,9 +8398,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8406
8398
|
* @param {IndexedForumla} store - The quadstore to store data in
|
|
8407
8399
|
* @param {fuunction} getImageDoc - returns NN of the image file to be created
|
|
8408
8400
|
* @param {function<Node>} doneCallback - called with the image taken
|
|
8409
|
-
* @returns {DomElement} - A div element with the
|
|
8401
|
+
* @returns {DomElement} - A div element with the button in it
|
|
8410
8402
|
*
|
|
8411
|
-
* This
|
|
8403
|
+
* This expands the button to a large control when it is pressed
|
|
8412
8404
|
*/
|
|
8413
8405
|
|
|
8414
8406
|
function cameraButton(dom, store, getImageDoc, doneCallback) {
|
|
@@ -8846,10 +8838,10 @@ Object.defineProperty(exports, "recordParticipation", ({
|
|
|
8846
8838
|
return _participation.recordParticipation;
|
|
8847
8839
|
}
|
|
8848
8840
|
}));
|
|
8849
|
-
Object.defineProperty(exports, "
|
|
8841
|
+
Object.defineProperty(exports, "renderParticipants", ({
|
|
8850
8842
|
enumerable: true,
|
|
8851
8843
|
get: function get() {
|
|
8852
|
-
return _participation.
|
|
8844
|
+
return _participation.renderParticipants;
|
|
8853
8845
|
}
|
|
8854
8846
|
}));
|
|
8855
8847
|
exports.xmlEncode = xmlEncode;
|
|
@@ -8867,6 +8859,7 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
|
8867
8859
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
8868
8860
|
var _debug = __webpack_require__(/*! ./debug */ "./lib/debug.js");
|
|
8869
8861
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
8862
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
8870
8863
|
var _participation = __webpack_require__(/*! ./participation */ "./lib/participation.js");
|
|
8871
8864
|
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); }
|
|
8872
8865
|
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; }
|
|
@@ -8931,7 +8924,7 @@ function lightColorHash(author) {
|
|
|
8931
8924
|
/** notepad
|
|
8932
8925
|
*
|
|
8933
8926
|
* @param {HTMLDocument} dom - the web page of the browser
|
|
8934
|
-
* @param {NamedNode} padDoc - the document
|
|
8927
|
+
* @param {NamedNode} padDoc - the document in which the participation should be shown
|
|
8935
8928
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
8936
8929
|
* @param {NamedNode} me - person who is logged into the pod
|
|
8937
8930
|
* @param {notepadOptions} options - the options that can be passed in consist of statusArea, exists
|
|
@@ -8944,7 +8937,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8944
8937
|
if (me && !me.uri) throw new Error('UI.pad.notepad: Invalid userid');
|
|
8945
8938
|
var updater = store.updater;
|
|
8946
8939
|
var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
|
|
8947
|
-
table.setAttribute('style',
|
|
8940
|
+
table.setAttribute('style', style.notepadStyle);
|
|
8948
8941
|
var upstreamStatus = null;
|
|
8949
8942
|
var downstreamStatus = null;
|
|
8950
8943
|
if (options.statusArea) {
|
|
@@ -8953,10 +8946,10 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8953
8946
|
upstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
8954
8947
|
downstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
8955
8948
|
if (upstreamStatus) {
|
|
8956
|
-
upstreamStatus.setAttribute('style',
|
|
8949
|
+
upstreamStatus.setAttribute('style', style.upstreamStatus);
|
|
8957
8950
|
}
|
|
8958
8951
|
if (downstreamStatus) {
|
|
8959
|
-
downstreamStatus.setAttribute('style',
|
|
8952
|
+
downstreamStatus.setAttribute('style', style.downstreamStatus);
|
|
8960
8953
|
}
|
|
8961
8954
|
}
|
|
8962
8955
|
/* @@ TODO want to look into this, it seems upstream should be a boolean and default to false ?
|
|
@@ -8979,9 +8972,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8979
8972
|
var setPartStyle = function setPartStyle(part, colors, pending) {
|
|
8980
8973
|
var chunk = part.subject;
|
|
8981
8974
|
colors = colors || '';
|
|
8982
|
-
var baseStyle =
|
|
8983
|
-
var headingCore =
|
|
8984
|
-
var headingStyle =
|
|
8975
|
+
var baseStyle = style.baseStyle;
|
|
8976
|
+
var headingCore = style.headingCore;
|
|
8977
|
+
var headingStyle = style.headingStyle;
|
|
8985
8978
|
var author = kb.any(chunk, ns.dc('author'));
|
|
8986
8979
|
if (!colors && author) {
|
|
8987
8980
|
// Hash the user webid for now -- later allow user selection!
|
|
@@ -8993,9 +8986,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8993
8986
|
// and when the indent is stored as a Number itself, not in an object.
|
|
8994
8987
|
var indent = kb.any(chunk, PAD('indent'));
|
|
8995
8988
|
indent = indent ? indent.value : 0;
|
|
8996
|
-
var
|
|
8989
|
+
var localStyle = indent >= 0 ? baseStyle + 'text-indent: ' + indent * 3 + 'em;' : headingCore + headingStyle[-1 - indent];
|
|
8997
8990
|
// ? baseStyle + 'padding-left: ' + (indent * 3) + 'em;'
|
|
8998
|
-
part.setAttribute('style',
|
|
8991
|
+
part.setAttribute('style', localStyle + colors);
|
|
8999
8992
|
};
|
|
9000
8993
|
var removePart = function removePart(part) {
|
|
9001
8994
|
var chunk = part.subject;
|
|
@@ -9075,28 +9068,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9075
9068
|
});
|
|
9076
9069
|
};
|
|
9077
9070
|
|
|
9078
|
-
// Use this sort of code to split the line when return pressed in the middle @@
|
|
9079
|
-
/*
|
|
9080
|
-
function doGetCaretPosition doGetCaretPosition (oField) {
|
|
9081
|
-
var iCaretPos = 0
|
|
9082
|
-
// IE Support
|
|
9083
|
-
if (document.selection) {
|
|
9084
|
-
// Set focus on the element to avoid IE bug
|
|
9085
|
-
oField.focus()
|
|
9086
|
-
// To get cursor position, get empty selection range
|
|
9087
|
-
var oSel = document.selection.createRange()
|
|
9088
|
-
// Move selection start to 0 position
|
|
9089
|
-
oSel.moveStart('character', -oField.value.length)
|
|
9090
|
-
// The caret position is selection length
|
|
9091
|
-
iCaretPos = oSel.text.length
|
|
9092
|
-
// Firefox suppor
|
|
9093
|
-
} else if (oField.selectionStart || oField.selectionStart === '0') {
|
|
9094
|
-
iCaretPos = oField.selectionStart
|
|
9095
|
-
}
|
|
9096
|
-
// Return results
|
|
9097
|
-
return (iCaretPos)
|
|
9098
|
-
}
|
|
9099
|
-
*/
|
|
9100
9071
|
var addListeners = function addListeners(part, chunk) {
|
|
9101
9072
|
part.addEventListener('keydown', function (event) {
|
|
9102
9073
|
if (!updater) {
|
|
@@ -9139,7 +9110,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9139
9110
|
return;
|
|
9140
9111
|
case 3: // being deleted already
|
|
9141
9112
|
case 4:
|
|
9142
|
-
// already
|
|
9113
|
+
// already deleted state
|
|
9143
9114
|
return;
|
|
9144
9115
|
case undefined:
|
|
9145
9116
|
case 0:
|
|
@@ -9440,8 +9411,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9440
9411
|
}
|
|
9441
9412
|
return;
|
|
9442
9413
|
}
|
|
9443
|
-
// var last = kb.the(undefined, PAD('previous'), subject)
|
|
9444
|
-
// var chunk = first // = kb.the(subject, PAD('next'));
|
|
9445
9414
|
var row;
|
|
9446
9415
|
|
|
9447
9416
|
// First see which of the logical chunks have existing physical manifestations
|
|
@@ -9503,7 +9472,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9503
9472
|
(0, _debug.log)(' reloaded OK');
|
|
9504
9473
|
clearStatus();
|
|
9505
9474
|
if (!consistencyCheck()) {
|
|
9506
|
-
complain('
|
|
9475
|
+
complain('CONSISTENCY CHECK FAILED');
|
|
9507
9476
|
} else {
|
|
9508
9477
|
refreshTree(table);
|
|
9509
9478
|
}
|
|
@@ -9670,7 +9639,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
9670
9639
|
exports.manageParticipation = manageParticipation;
|
|
9671
9640
|
exports.participationObject = participationObject;
|
|
9672
9641
|
exports.recordParticipation = recordParticipation;
|
|
9673
|
-
exports.
|
|
9642
|
+
exports.renderParticipants = renderParticipants;
|
|
9674
9643
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
9675
9644
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
9676
9645
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
|
|
@@ -9685,6 +9654,8 @@ var ns = _interopRequireWildcard(__webpack_require__(/*! ./ns */ "./lib/ns.js"))
|
|
|
9685
9654
|
var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
9686
9655
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
9687
9656
|
var _pad = __webpack_require__(/*! ./pad */ "./lib/pad.js");
|
|
9657
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
9658
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
|
|
9688
9659
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
9689
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); }
|
|
9690
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; }
|
|
@@ -9719,9 +9690,9 @@ var store = _solidLogic.solidLogicSingleton.store;
|
|
|
9719
9690
|
* @param {NamedNode} unused2/me - user that is logged into the pod (this argument is no longer used, but left in for backwards compatibility)
|
|
9720
9691
|
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
9721
9692
|
*/
|
|
9722
|
-
function
|
|
9723
|
-
table.setAttribute('style',
|
|
9724
|
-
var
|
|
9693
|
+
function renderParticipants(dom, table, unused1, subject, unused2, options) {
|
|
9694
|
+
table.setAttribute('style', style.participantsStyle);
|
|
9695
|
+
var newRowForParticipation = function newRowForParticipation(parp) {
|
|
9725
9696
|
var person = store.any(parp, ns.wf('participant'));
|
|
9726
9697
|
var tr;
|
|
9727
9698
|
if (!person) {
|
|
@@ -9729,13 +9700,14 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
9729
9700
|
tr.textContent = '???'; // Don't crash - invalid part'n entry
|
|
9730
9701
|
return tr;
|
|
9731
9702
|
}
|
|
9732
|
-
var bg = store.anyValue(parp, ns.ui('backgroundColor')) ||
|
|
9703
|
+
var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
|
|
9733
9704
|
var block = dom.createElement('div');
|
|
9734
|
-
block.setAttribute('style',
|
|
9705
|
+
block.setAttribute('style', style.participantsBlock);
|
|
9706
|
+
block.style.backgroundColor = bg;
|
|
9735
9707
|
tr = (0, _widgets.personTR)(dom, null, person, options);
|
|
9736
9708
|
table.appendChild(tr);
|
|
9737
9709
|
var td = dom.createElement('td');
|
|
9738
|
-
td.setAttribute('style',
|
|
9710
|
+
td.setAttribute('style', style.personTableTD);
|
|
9739
9711
|
td.appendChild(block);
|
|
9740
9712
|
tr.insertBefore(td, tr.firstChild);
|
|
9741
9713
|
return tr;
|
|
@@ -9749,16 +9721,16 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
9749
9721
|
var participations = parps.map(function (p) {
|
|
9750
9722
|
return p[1];
|
|
9751
9723
|
});
|
|
9752
|
-
(0, _utils.syncTableToArray)(table, participations,
|
|
9724
|
+
(0, _utils.syncTableToArray)(table, participations, newRowForParticipation);
|
|
9753
9725
|
};
|
|
9754
9726
|
table.refresh = syncTable;
|
|
9755
9727
|
syncTable();
|
|
9756
9728
|
return table;
|
|
9757
9729
|
}
|
|
9758
9730
|
|
|
9759
|
-
/** Record, or find old,
|
|
9731
|
+
/** Record, or find old, Participation object
|
|
9760
9732
|
*
|
|
9761
|
-
* A
|
|
9733
|
+
* A participation object is a place to record things specifically about
|
|
9762
9734
|
* subject and the user, such as preferences, start of membership, etc
|
|
9763
9735
|
* @param {NamedNode} subject - the thing in which the participation is happening
|
|
9764
9736
|
* @param {NamedNode} document - where to record the data
|
|
@@ -9793,20 +9765,20 @@ function participationObject(subject, padDoc, me) {
|
|
|
9793
9765
|
}
|
|
9794
9766
|
candidates.sort(); // Pick the earliest
|
|
9795
9767
|
// @@ Possibly, for extra credit, delete the others, if we have write access
|
|
9796
|
-
debug.warn('Multiple
|
|
9768
|
+
debug.warn('Multiple participation objects, picking earliest, in ' + padDoc);
|
|
9797
9769
|
resolve(candidates[0][1]);
|
|
9798
9770
|
// throw new Error('Multiple records of your participation')
|
|
9799
9771
|
}
|
|
9800
9772
|
|
|
9801
9773
|
if (parps.length) {
|
|
9802
9774
|
// If I am not already recorded
|
|
9803
|
-
resolve(parps[0]); // returns the
|
|
9775
|
+
resolve(parps[0]); // returns the participation object
|
|
9804
9776
|
} else {
|
|
9805
9777
|
var _participation2 = (0, _widgets.newThing)(padDoc);
|
|
9806
9778
|
var ins = [(0, _rdflib.st)(subject, ns.wf('participation'), _participation2, padDoc), (0, _rdflib.st)(_participation2, ns.wf('participant'), me, padDoc), (0, _rdflib.st)(_participation2, ns.cal('dtstart'), new Date(), padDoc), (0, _rdflib.st)(_participation2, ns.ui('backgroundColor'), (0, _pad.lightColorHash)(me), padDoc)];
|
|
9807
9779
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
9808
9780
|
if (!ok) {
|
|
9809
|
-
reject(new Error('Error recording your
|
|
9781
|
+
reject(new Error('Error recording your participation: ' + errorMessage));
|
|
9810
9782
|
} else {
|
|
9811
9783
|
resolve(_participation2);
|
|
9812
9784
|
}
|
|
@@ -9819,7 +9791,7 @@ function participationObject(subject, padDoc, me) {
|
|
|
9819
9791
|
/** Record my participation and display participants
|
|
9820
9792
|
*
|
|
9821
9793
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
9822
|
-
* @param {NamedNode} padDoc - the document into which the
|
|
9794
|
+
* @param {NamedNode} padDoc - the document into which the participation should be recorded
|
|
9823
9795
|
* @param {DOMNode} refreshable - a DOM element whose refresh() is to be called if the change works
|
|
9824
9796
|
*
|
|
9825
9797
|
*/
|
|
@@ -9835,24 +9807,22 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
9835
9807
|
}
|
|
9836
9808
|
if (parps.length) {
|
|
9837
9809
|
// If I am not already recorded
|
|
9838
|
-
return parps[0]; // returns the
|
|
9810
|
+
return parps[0]; // returns the participation object
|
|
9839
9811
|
} else {
|
|
9840
9812
|
if (!store.updater.editable(padDoc)) {
|
|
9841
|
-
debug.log('Not recording participation, as no write
|
|
9813
|
+
debug.log('Not recording participation, as no write access as ' + me + ' to ' + padDoc);
|
|
9842
9814
|
return null;
|
|
9843
9815
|
}
|
|
9844
9816
|
var participation = (0, _widgets.newThing)(padDoc);
|
|
9845
9817
|
var ins = [(0, _rdflib.st)(subject, ns.wf('participation'), participation, padDoc), (0, _rdflib.st)(participation, ns.wf('participant'), me, padDoc), (0, _rdflib.st)(participation, ns.cal('dtstart'), new Date(), padDoc), (0, _rdflib.st)(participation, ns.ui('backgroundColor'), (0, _pad.lightColorHash)(me), padDoc)];
|
|
9846
9818
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
9847
9819
|
if (!ok) {
|
|
9848
|
-
throw new Error('Error recording your
|
|
9820
|
+
throw new Error('Error recording your participation: ' + errorMessage);
|
|
9849
9821
|
}
|
|
9850
9822
|
if (refreshable && refreshable.refresh) {
|
|
9851
9823
|
refreshable.refresh();
|
|
9852
9824
|
}
|
|
9853
|
-
// UI.pad.renderPartipants(dom, table, padDoc, subject, me, options)
|
|
9854
9825
|
});
|
|
9855
|
-
|
|
9856
9826
|
return participation;
|
|
9857
9827
|
}
|
|
9858
9828
|
}
|
|
@@ -9861,7 +9831,7 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
9861
9831
|
*
|
|
9862
9832
|
* @param {Document} dom - the web page loaded into the browser
|
|
9863
9833
|
* @param {HTMLDivElement} container - the container element where the participants should be displayed
|
|
9864
|
-
* @param {NamedNode} document - the document into which the
|
|
9834
|
+
* @param {NamedNode} document - the document into which the participation should be shown
|
|
9865
9835
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
9866
9836
|
* @param {NamedNode} me - the logged in user
|
|
9867
9837
|
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
@@ -9870,12 +9840,12 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
9870
9840
|
function manageParticipation(dom, container, padDoc, subject, me, options) {
|
|
9871
9841
|
var table = dom.createElement('table');
|
|
9872
9842
|
container.appendChild(table);
|
|
9873
|
-
|
|
9843
|
+
renderParticipants(dom, table, padDoc, subject, me, options);
|
|
9874
9844
|
var _participation;
|
|
9875
9845
|
try {
|
|
9876
9846
|
_participation = recordParticipation(subject, padDoc, table);
|
|
9877
9847
|
} catch (e) {
|
|
9878
|
-
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your
|
|
9848
|
+
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your participation: ' + e)); // Clean up?
|
|
9879
9849
|
}
|
|
9880
9850
|
|
|
9881
9851
|
return table;
|
|
@@ -10249,41 +10219,34 @@ Signup.prototype.signup = function signup(signupUrl) {
|
|
|
10249
10219
|
/*!**********************!*\
|
|
10250
10220
|
!*** ./lib/style.js ***!
|
|
10251
10221
|
\**********************/
|
|
10252
|
-
/***/ ((module, exports) => {
|
|
10222
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
10253
10223
|
|
|
10254
10224
|
"use strict";
|
|
10255
10225
|
|
|
10256
10226
|
|
|
10227
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
10257
10228
|
Object.defineProperty(exports, "__esModule", ({
|
|
10258
10229
|
value: true
|
|
10259
10230
|
}));
|
|
10260
10231
|
exports.style = void 0;
|
|
10232
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
|
|
10261
10233
|
// Common readable consistent stylesheet
|
|
10262
10234
|
// to avoid using style sheets which are document-global
|
|
10263
10235
|
// and make programmable style toggling with selection, drag over, etc easier
|
|
10264
|
-
|
|
10265
10236
|
// These must all end with semicolon so they can be appended to.
|
|
10266
10237
|
|
|
10267
|
-
var formBorderColor = '#888888'; // Mid-grey
|
|
10268
|
-
var lowProfileLinkColor = '#3B5998'; // Grey-blue, e.g., for field labels linking to ontology
|
|
10269
|
-
var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to line up
|
|
10270
|
-
// The latter we put in when switching awy from using tables. Getting allignment between
|
|
10271
|
-
// fields in different groups though is hard problem.
|
|
10272
|
-
|
|
10273
10238
|
var style = {
|
|
10274
10239
|
// styleModule
|
|
10275
10240
|
|
|
10276
10241
|
checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
|
|
10277
|
-
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;',
|
|
10278
10243
|
fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
|
|
10279
|
-
|
|
10280
|
-
textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c;
|
|
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;',
|
|
10281
10246
|
textInputStyleUneditable:
|
|
10282
10247
|
// Color difference only
|
|
10283
|
-
'background-color: white; padding: 0.5em; border: .05em solid white;
|
|
10284
|
-
|
|
10285
|
-
// Default text input size in characters roughly
|
|
10286
|
-
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;',
|
|
10287
10250
|
// 'background-color: #eef;
|
|
10288
10251
|
commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
|
|
10289
10252
|
iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
|
|
@@ -10291,20 +10254,18 @@ var style = {
|
|
|
10291
10254
|
classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
|
|
10292
10255
|
// combine with buttonStyle
|
|
10293
10256
|
confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
|
|
10294
|
-
tabBorderRadius: '0.2em',
|
|
10295
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;',
|
|
10296
10258
|
pendingeditModifier: 'color: #bbb;',
|
|
10297
|
-
highlightColor: '#7C4DFF',
|
|
10298
|
-
// Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
|
|
10299
|
-
|
|
10300
10259
|
// Contacts
|
|
10301
10260
|
personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
|
|
10302
10261
|
searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
|
|
10303
10262
|
autocompleteRowStyle: 'border: 0.2em solid straw;',
|
|
10304
10263
|
// Login buttons
|
|
10305
|
-
|
|
10264
|
+
signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
|
|
10306
10265
|
// was 0.5em radius
|
|
10307
|
-
|
|
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;',
|
|
10308
10269
|
// Forms
|
|
10309
10270
|
heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
|
|
10310
10271
|
// originally was brown; now grey
|
|
@@ -10315,87 +10276,104 @@ var style = {
|
|
|
10315
10276
|
heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
10316
10277
|
// Lowest level used by default in small things
|
|
10317
10278
|
|
|
10318
|
-
formBorderColor: formBorderColor,
|
|
10319
|
-
// originally was brown; now grey
|
|
10320
|
-
formHeadingColor: '#888888',
|
|
10321
|
-
// originally was brown; now grey
|
|
10322
10279
|
formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
10323
10280
|
// originally was brown; now grey
|
|
10324
10281
|
formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
|
|
10325
10282
|
// originally used this
|
|
10326
|
-
formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), // weight 0
|
|
10327
|
-
"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
|
|
10328
10285
|
],
|
|
10329
|
-
formFieldLabelStyle: "
|
|
10330
|
-
|
|
10331
|
-
formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(formFieldNameBoxWidth, ";"),
|
|
10332
|
-
textInputBackgroundColor: '#eef',
|
|
10333
|
-
textInputBackgroundColorUneditable: '#fff',
|
|
10334
|
-
textInputColor: '#000',
|
|
10335
|
-
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, ";"),
|
|
10336
10288
|
multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
|
|
10337
10289
|
// Buttons
|
|
10338
10290
|
renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
|
|
10339
10291
|
imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',
|
|
10340
10292
|
linkDivStyle: 'width:2em; padding:0.5em; height: 4em;',
|
|
10341
10293
|
// ACL
|
|
10342
|
-
aclControlBoxContainer: 'margin: 1em',
|
|
10343
|
-
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem',
|
|
10344
|
-
aclControlBoxStatus: 'display: none; margin: 1rem 0',
|
|
10345
|
-
aclControlBoxStatusRevealed: 'display: block',
|
|
10346
|
-
aclGroupContent: 'maxWidth: 650',
|
|
10347
|
-
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100
|
|
10348
|
-
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30
|
|
10349
|
-
defaultsController: 'display: flex',
|
|
10350
|
-
defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80
|
|
10351
|
-
bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em',
|
|
10352
|
-
group: 'color: #888',
|
|
10353
|
-
group1: 'color: green',
|
|
10354
|
-
group2: 'color: #cc0',
|
|
10355
|
-
group3: 'color: orange',
|
|
10356
|
-
group5: 'color: red',
|
|
10357
|
-
group9: 'color: blue',
|
|
10358
|
-
group13: 'color: purple',
|
|
10359
|
-
trustedAppAddApplicationsTable: 'background-color: #eee',
|
|
10360
|
-
trustedAppCancelButton: 'float: right',
|
|
10361
|
-
trustedAppControllerI: 'border-color: orange;
|
|
10362
|
-
temporaryStatusInit: 'background: green',
|
|
10363
|
-
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;',
|
|
10364
10316
|
// header
|
|
10365
|
-
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',
|
|
10366
|
-
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%)',
|
|
10367
|
-
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px',
|
|
10368
|
-
headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important',
|
|
10369
|
-
headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100
|
|
10370
|
-
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%)',
|
|
10371
|
-
headerUserMenuList: 'list-style: none; margin: 0; padding: 0',
|
|
10372
|
-
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true',
|
|
10373
|
-
headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true',
|
|
10374
|
-
headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none',
|
|
10375
|
-
headerUserMenuListItem: 'border-bottom: solid 1px #000000',
|
|
10376
|
-
headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px',
|
|
10377
|
-
headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px',
|
|
10378
|
-
headerBannerLink: 'display: block',
|
|
10379
|
-
headerBannerRightMenu: 'display: flex',
|
|
10380
|
-
headerBannerLogin: 'margin-left: auto',
|
|
10381
|
-
allChildrenVisible: 'display:true',
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
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;',
|
|
10386
10337
|
// may just be 65px round($icon-size * 352 / 322);
|
|
10387
10338
|
|
|
10388
10339
|
// footer
|
|
10389
|
-
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;',
|
|
10390
10341
|
// buttons
|
|
10391
|
-
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',
|
|
10392
|
-
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',
|
|
10393
|
-
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',
|
|
10394
|
-
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',
|
|
10395
|
-
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',
|
|
10396
|
-
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',
|
|
10397
|
-
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',
|
|
10398
|
-
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;',
|
|
10350
|
+
// media
|
|
10351
|
+
controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
|
|
10352
|
+
// dragAndDrop
|
|
10353
|
+
dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
|
|
10354
|
+
dropEvent: 'background-color: white; border: 0em solid black;',
|
|
10355
|
+
restoreStyle: 'background-color: white;',
|
|
10356
|
+
// errors
|
|
10357
|
+
errorCancelButton: 'width: 2em; height: 2em; align: right;',
|
|
10358
|
+
errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
|
|
10359
|
+
// pad
|
|
10360
|
+
notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
|
|
10361
|
+
upstreamStatus: 'width: 50%;',
|
|
10362
|
+
downstreamStatus: 'width: 50%;',
|
|
10363
|
+
baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
|
|
10364
|
+
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%;'],
|
|
10366
|
+
// participation
|
|
10367
|
+
participantsStyle: 'margin: 0.8em;',
|
|
10368
|
+
participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
|
|
10369
|
+
personTableTD: 'vertical-align: middle;',
|
|
10370
|
+
// tabs
|
|
10371
|
+
tabsNavElement: 'margin: 0;',
|
|
10372
|
+
tabsRootElement: 'display: flex; height: 100%; width: 100%;',
|
|
10373
|
+
tabsMainElement: 'margin: 0; width:100%; height: 100%;',
|
|
10374
|
+
tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
|
|
10375
|
+
makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
|
|
10376
|
+
ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
|
|
10399
10377
|
};
|
|
10400
10378
|
exports.style = style;
|
|
10401
10379
|
style.setStyle = function setStyle(ele, styleName) {
|
|
@@ -10406,6 +10384,52 @@ module.exports = style; // @@ No way to do this in ESM
|
|
|
10406
10384
|
|
|
10407
10385
|
/***/ }),
|
|
10408
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
|
+
// 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
|
+
|
|
10409
10433
|
/***/ "./lib/style_multiSelect.js":
|
|
10410
10434
|
/*!**********************************!*\
|
|
10411
10435
|
!*** ./lib/style_multiSelect.js ***!
|
|
@@ -12077,6 +12101,7 @@ function renderTableViewPane(doc, options) {
|
|
|
12077
12101
|
|
|
12078
12102
|
|
|
12079
12103
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
12104
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
12080
12105
|
Object.defineProperty(exports, "__esModule", ({
|
|
12081
12106
|
value: true
|
|
12082
12107
|
}));
|
|
@@ -12093,7 +12118,10 @@ var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/ru
|
|
|
12093
12118
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
12094
12119
|
var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
12095
12120
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
12121
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
12096
12122
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
12123
|
+
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); }
|
|
12124
|
+
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; }
|
|
12097
12125
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
12098
12126
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12099
12127
|
/**
|
|
@@ -12276,11 +12304,12 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
|
12276
12304
|
*
|
|
12277
12305
|
* @param options
|
|
12278
12306
|
*/
|
|
12307
|
+
var tabsDefaultBackgroundColor = '#ddddcc';
|
|
12279
12308
|
function tabWidget(options) {
|
|
12280
12309
|
var subject = options.subject;
|
|
12281
12310
|
var dom = options.dom || document;
|
|
12282
12311
|
var orientation = parseInt(options.orientation || '0');
|
|
12283
|
-
var backgroundColor = options.backgroundColor ||
|
|
12312
|
+
var backgroundColor = options.backgroundColor || tabsDefaultBackgroundColor;
|
|
12284
12313
|
var flipped = orientation & 2;
|
|
12285
12314
|
var vertical = orientation & 1;
|
|
12286
12315
|
var onClose = options.onClose;
|
|
@@ -12291,13 +12320,15 @@ function tabWidget(options) {
|
|
|
12291
12320
|
var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
|
|
12292
12321
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
12293
12322
|
|
|
12294
|
-
rootElement.setAttribute('style',
|
|
12323
|
+
rootElement.setAttribute('style', style.tabsRootElement);
|
|
12324
|
+
rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse;' : ';');
|
|
12295
12325
|
var navElement = rootElement.appendChild(dom.createElement('nav'));
|
|
12296
|
-
navElement.setAttribute('style',
|
|
12326
|
+
navElement.setAttribute('style', style.tabsNavElement);
|
|
12297
12327
|
var mainElement = rootElement.appendChild(dom.createElement('main'));
|
|
12298
|
-
mainElement.setAttribute('style',
|
|
12328
|
+
mainElement.setAttribute('style', style.tabsMainElement); // override tabbedtab.css
|
|
12299
12329
|
var tabContainer = navElement.appendChild(dom.createElement('ul'));
|
|
12300
|
-
tabContainer.setAttribute('style',
|
|
12330
|
+
tabContainer.setAttribute('style', style.tabContainer);
|
|
12331
|
+
tabContainer.style.flexDirection = "".concat(vertical ? 'column' : 'row');
|
|
12301
12332
|
var tabElement = 'li';
|
|
12302
12333
|
var bodyContainer = mainElement;
|
|
12303
12334
|
rootElement.tabContainer = tabContainer;
|
|
@@ -12317,7 +12348,7 @@ function tabWidget(options) {
|
|
|
12317
12348
|
rootElement.refresh = orderedSync;
|
|
12318
12349
|
orderedSync();
|
|
12319
12350
|
if (!options.startEmpty && tabContainer.children.length && options.selectedTab) {
|
|
12320
|
-
var selectedTab0 = Array.from(tabContainer.children) // Version left for
|
|
12351
|
+
var selectedTab0 = Array.from(tabContainer.children) // Version left for compatibility with ??
|
|
12321
12352
|
.map(function (tab) {
|
|
12322
12353
|
return tab.firstChild;
|
|
12323
12354
|
}).find(function (tab) {
|
|
@@ -12371,7 +12402,7 @@ function tabWidget(options) {
|
|
|
12371
12402
|
ele.setAttribute('style', unselectedStyle);
|
|
12372
12403
|
ele.subject = item;
|
|
12373
12404
|
var div = ele.appendChild(dom.createElement('button'));
|
|
12374
|
-
div.setAttribute('style',
|
|
12405
|
+
div.setAttribute('style', style.makeNewSlot);
|
|
12375
12406
|
div.onclick = function () {
|
|
12376
12407
|
resetTabStyle();
|
|
12377
12408
|
resetBodyStyle();
|
|
@@ -12388,7 +12419,7 @@ function tabWidget(options) {
|
|
|
12388
12419
|
if (options.renderTabSettings && ele.subject) {
|
|
12389
12420
|
var ellipsis = dom.createElement('button');
|
|
12390
12421
|
ellipsis.textContent = '...';
|
|
12391
|
-
ellipsis.setAttribute('style',
|
|
12422
|
+
ellipsis.setAttribute('style', style.ellipsis);
|
|
12392
12423
|
ellipsis.onclick = function () {
|
|
12393
12424
|
resetTabStyle();
|
|
12394
12425
|
resetBodyStyle();
|
|
@@ -13675,8 +13706,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
13675
13706
|
}));
|
|
13676
13707
|
exports.versionInfo = void 0;
|
|
13677
13708
|
var versionInfo = {
|
|
13678
|
-
buildTime: '2023-
|
|
13679
|
-
commit: '
|
|
13709
|
+
buildTime: '2023-08-16T07:59:36Z',
|
|
13710
|
+
commit: '595a35d230665e2de1540ad856472d832c299e9c',
|
|
13680
13711
|
npmInfo: {
|
|
13681
13712
|
'solid-ui': '2.4.28',
|
|
13682
13713
|
npm: '8.19.4',
|
|
@@ -15115,16 +15146,17 @@ exports.makeDropTarget = makeDropTarget;
|
|
|
15115
15146
|
exports.uploadFiles = uploadFiles;
|
|
15116
15147
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./lib/debug.js"));
|
|
15117
15148
|
var mime = _interopRequireWildcard(__webpack_require__(/*! mime-types */ "./node_modules/mime-types/index.js"));
|
|
15149
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15118
15150
|
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); }
|
|
15119
15151
|
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; }
|
|
15120
15152
|
/* Drag and drop common functionality
|
|
15121
15153
|
*
|
|
15122
15154
|
* It is easy to make something draggable, or to make it a drag target!
|
|
15123
|
-
* Just call the functions below.
|
|
15124
|
-
* represent one thing which has a
|
|
15155
|
+
* Just call the functions below. In a solid world, any part of the UI which
|
|
15156
|
+
* represent one thing which has a URI, should be made draggable using makeDraggable
|
|
15125
15157
|
* Any list of things should typically allow you to drag new members of the list
|
|
15126
15158
|
* onto it.
|
|
15127
|
-
* The file upload function uploadFiles is provided as often
|
|
15159
|
+
* The file upload function uploadFiles is provided as often as someone drags a file from the computer
|
|
15128
15160
|
* desktop, you may want to upload it into the pod.
|
|
15129
15161
|
*/
|
|
15130
15162
|
|
|
@@ -15132,22 +15164,16 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
15132
15164
|
|
|
15133
15165
|
function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
15134
15166
|
var dragoverListener = function dragoverListener(e) {
|
|
15135
|
-
e.preventDefault(); //
|
|
15167
|
+
e.preventDefault(); // Need else drop does not work [sic]
|
|
15136
15168
|
e.dataTransfer.dropEffect = 'copy';
|
|
15137
15169
|
};
|
|
15138
15170
|
var dragenterListener = function dragenterListener(e) {
|
|
15139
15171
|
debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
15140
|
-
if (this.
|
|
15172
|
+
if (this.localStyle) {
|
|
15141
15173
|
// necessary not sure when
|
|
15142
15174
|
if (!this.savedStyle) {
|
|
15143
|
-
this.savedStyle =
|
|
15144
|
-
this.savedStyle.border = this.style.border;
|
|
15145
|
-
this.savedStyle.backgroundColor = this.style.backgroundColor;
|
|
15146
|
-
this.savedStyle.borderRadius = this.style.borderRadius;
|
|
15175
|
+
this.savedStyle = style.dragEvent;
|
|
15147
15176
|
}
|
|
15148
|
-
this.style.backgroundColor = '#ccc';
|
|
15149
|
-
this.style.border = '0.25em dashed black';
|
|
15150
|
-
this.style.borderRadius = '0.3em';
|
|
15151
15177
|
}
|
|
15152
15178
|
e.dataTransfer.dropEffect = 'link';
|
|
15153
15179
|
debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);
|
|
@@ -15155,12 +15181,9 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
15155
15181
|
var dragleaveListener = function dragleaveListener(e) {
|
|
15156
15182
|
debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
15157
15183
|
if (this.savedStyle) {
|
|
15158
|
-
this.
|
|
15159
|
-
this.style.backgroundColor = this.savedStyle.backgroundColor;
|
|
15160
|
-
this.style.borderRadius = this.savedStyle.borderRadius;
|
|
15184
|
+
this.localStyle = this.savedStyle;
|
|
15161
15185
|
} else {
|
|
15162
|
-
this.
|
|
15163
|
-
this.style.border = '0em solid black';
|
|
15186
|
+
this.localStyle = style.dropEvent;
|
|
15164
15187
|
}
|
|
15165
15188
|
};
|
|
15166
15189
|
var dropListener = function dropListener(e) {
|
|
@@ -15199,7 +15222,7 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
15199
15222
|
if (uris) {
|
|
15200
15223
|
droppedURIHandler(uris);
|
|
15201
15224
|
}
|
|
15202
|
-
this.
|
|
15225
|
+
this.localStyle = style.restoreStyle; // restore style
|
|
15203
15226
|
return false;
|
|
15204
15227
|
}; // dropListener
|
|
15205
15228
|
|
|
@@ -15320,11 +15343,17 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
|
|
|
15320
15343
|
"use strict";
|
|
15321
15344
|
|
|
15322
15345
|
|
|
15346
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
15347
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
15323
15348
|
Object.defineProperty(exports, "__esModule", ({
|
|
15324
15349
|
value: true
|
|
15325
15350
|
}));
|
|
15326
15351
|
exports.errorMessageBlock = errorMessageBlock;
|
|
15327
15352
|
var _widgets = __webpack_require__(/*! ../widgets */ "./lib/widgets/index.js");
|
|
15353
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15354
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
|
|
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); }
|
|
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; }
|
|
15328
15357
|
/**
|
|
15329
15358
|
* Create an error message block
|
|
15330
15359
|
* @param dom The DOM on which dom.createElement will be called
|
|
@@ -15353,8 +15382,9 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
|
|
|
15353
15382
|
}
|
|
15354
15383
|
div.appendChild((0, _widgets.cancelButton)(dom, function () {
|
|
15355
15384
|
if (div.parentNode) div.parentNode.removeChild(div);
|
|
15356
|
-
})).style =
|
|
15357
|
-
div.setAttribute('style',
|
|
15385
|
+
})).style = style.errorCancelButton;
|
|
15386
|
+
div.setAttribute('style', style.errorMessageBlockStyle);
|
|
15387
|
+
div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
|
|
15358
15388
|
return div;
|
|
15359
15389
|
}
|
|
15360
15390
|
//# sourceMappingURL=error.js.map
|
|
@@ -15451,6 +15481,7 @@ var _error = __webpack_require__(/*! ./error */ "./lib/widgets/error.js");
|
|
|
15451
15481
|
var _basic = __webpack_require__(/*! ./forms/basic */ "./lib/widgets/forms/basic.js");
|
|
15452
15482
|
var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./lib/widgets/forms/autocomplete/autocompleteField.js");
|
|
15453
15483
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15484
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
|
|
15454
15485
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
|
|
15455
15486
|
var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./lib/log.js"));
|
|
15456
15487
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./lib/ns.js"));
|
|
@@ -16136,7 +16167,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
|
|
|
16136
16167
|
box.style.display = 'flex';
|
|
16137
16168
|
box.style.flexDirection = 'row';
|
|
16138
16169
|
var left = box.appendChild(dom.createElement('div'));
|
|
16139
|
-
left.style.width =
|
|
16170
|
+
left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
16140
16171
|
var right = box.appendChild(dom.createElement('div'));
|
|
16141
16172
|
left.appendChild((0, _basic.fieldLabel)(dom, property, form));
|
|
16142
16173
|
dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
|
|
@@ -16563,7 +16594,7 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
|
|
|
16563
16594
|
}
|
|
16564
16595
|
|
|
16565
16596
|
log.debug('form is ' + form);
|
|
16566
|
-
box.setAttribute('style', "border: 0.05em solid ".concat(
|
|
16597
|
+
box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
|
|
16567
16598
|
box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
|
|
16568
16599
|
var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
|
|
16569
16600
|
var object = newThing(dataDoc);
|
|
@@ -16624,12 +16655,12 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
16624
16655
|
submit.disabled = true;
|
|
16625
16656
|
submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
|
|
16626
16657
|
field.disabled = true;
|
|
16627
|
-
field.style.color =
|
|
16658
|
+
field.style.color = _styleConstants["default"].textInputColorPending;
|
|
16628
16659
|
var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
|
|
16629
16660
|
var is = $rdf.st(subject, predicate, field.value, dataDoc);
|
|
16630
16661
|
kb.updater.update(ds, is, function (uri, ok, body) {
|
|
16631
16662
|
if (ok) {
|
|
16632
|
-
field.style.color =
|
|
16663
|
+
field.style.color = _styleConstants["default"].textInputColor;
|
|
16633
16664
|
field.disabled = false;
|
|
16634
16665
|
} else {
|
|
16635
16666
|
group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
|
|
@@ -16658,7 +16689,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
16658
16689
|
field.addEventListener('change', saveChange, true);
|
|
16659
16690
|
} else {
|
|
16660
16691
|
field.disabled = true; // @@ change color too
|
|
16661
|
-
field.style.backgroundColor =
|
|
16692
|
+
field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
|
|
16662
16693
|
}
|
|
16663
16694
|
return group;
|
|
16664
16695
|
}
|
|
@@ -16783,7 +16814,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
16783
16814
|
});
|
|
16784
16815
|
};
|
|
16785
16816
|
var select = dom.createElement('select');
|
|
16786
|
-
select.setAttribute('style', style.
|
|
16817
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
16787
16818
|
if (options.multiple) select.setAttribute('multiple', 'true');
|
|
16788
16819
|
select.currentURI = null;
|
|
16789
16820
|
select.refresh = function () {
|
|
@@ -16926,7 +16957,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
16926
16957
|
});
|
|
16927
16958
|
};
|
|
16928
16959
|
var select = dom.createElement('select');
|
|
16929
|
-
select.setAttribute('style', style.
|
|
16960
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
16930
16961
|
select.currentURI = null;
|
|
16931
16962
|
select.refresh = function () {
|
|
16932
16963
|
actual = getActual(); // refresh
|
|
@@ -17212,7 +17243,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
|
|
|
17212
17243
|
select.refresh();
|
|
17213
17244
|
};
|
|
17214
17245
|
var select = dom.createElement('select');
|
|
17215
|
-
select.setAttribute('style', style.
|
|
17246
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
17216
17247
|
select.setAttribute('id', 'formSelect');
|
|
17217
17248
|
select.currentURI = null;
|
|
17218
17249
|
for (var uri in optionsFromClassUIfrom) {
|
|
@@ -17997,6 +18028,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
17997
18028
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
17998
18029
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./lib/debug.js"));
|
|
17999
18030
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./lib/style.js"));
|
|
18031
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./lib/styleConstants.js"));
|
|
18000
18032
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./lib/widgets/index.js"));
|
|
18001
18033
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
18002
18034
|
var _publicData = __webpack_require__(/*! ./publicData */ "./lib/widgets/forms/autocomplete/publicData.js");
|
|
@@ -18394,7 +18426,7 @@ function _renderAutoComplete() {
|
|
|
18394
18426
|
searchInput = cell.appendChild(dom.createElement('input'));
|
|
18395
18427
|
searchInput.setAttribute('type', 'text');
|
|
18396
18428
|
initialize();
|
|
18397
|
-
size = acOptions.size ||
|
|
18429
|
+
size = acOptions.size || _styleConstants["default"].textInputSize || 20;
|
|
18398
18430
|
searchInput.setAttribute('size', size);
|
|
18399
18431
|
searchInput.setAttribute('data-testid', 'autocomplete-input');
|
|
18400
18432
|
searchInputStyle = style.textInputStyle ||
|
|
@@ -19285,6 +19317,7 @@ function _getDbpediaDetails() {
|
|
|
19285
19317
|
"use strict";
|
|
19286
19318
|
|
|
19287
19319
|
|
|
19320
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
19288
19321
|
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
19289
19322
|
Object.defineProperty(exports, "__esModule", ({
|
|
19290
19323
|
value: true
|
|
@@ -19297,6 +19330,7 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
|
|
|
19297
19330
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
19298
19331
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./lib/ns.js"));
|
|
19299
19332
|
var _style = __webpack_require__(/*! ../../style */ "./lib/style.js");
|
|
19333
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./lib/styleConstants.js"));
|
|
19300
19334
|
var _utils = __webpack_require__(/*! ../../utils */ "./lib/utils/index.js");
|
|
19301
19335
|
var _error = __webpack_require__(/*! ../error */ "./lib/widgets/error.js");
|
|
19302
19336
|
var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./lib/widgets/forms/fieldFunction.js");
|
|
@@ -19312,7 +19346,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
|
|
|
19312
19346
|
box.style.display = 'flex';
|
|
19313
19347
|
box.style.flexDirection = 'row';
|
|
19314
19348
|
var lhs = box.appendChild(dom.createElement('div'));
|
|
19315
|
-
lhs.style.width =
|
|
19349
|
+
lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
19316
19350
|
var rhs = box.appendChild(dom.createElement('div'));
|
|
19317
19351
|
lhs.setAttribute('class', 'formFieldName');
|
|
19318
19352
|
lhs.setAttribute('style', _style.formFieldNameBoxStyle);
|
|
@@ -19417,10 +19451,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
19417
19451
|
field.style = style;
|
|
19418
19452
|
rhs.appendChild(field);
|
|
19419
19453
|
field.setAttribute('type', params.type ? params.type : 'text');
|
|
19420
|
-
var size = kb.anyJS(form, ns.ui('size')) ||
|
|
19454
|
+
var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
|
|
19421
19455
|
field.setAttribute('size', size);
|
|
19422
19456
|
var maxLength = kb.any(form, ns.ui('maxLength'));
|
|
19423
|
-
field.setAttribute('maxLength', maxLength ? '' + maxLength :
|
|
19457
|
+
field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
|
|
19424
19458
|
doc = doc || fieldStore(subject, property, doc);
|
|
19425
19459
|
var obj = kb.any(subject, property, undefined, doc);
|
|
19426
19460
|
if (!obj) {
|
|
@@ -19442,7 +19476,6 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
19442
19476
|
field.readOnly = true // was: disabled. readOnly is better
|
|
19443
19477
|
;
|
|
19444
19478
|
field.style = _style.textInputStyleUneditable + paramStyle;
|
|
19445
|
-
// backgroundColor = textInputBackgroundColorUneditable
|
|
19446
19479
|
if (suppressEmptyUneditable && field.value === '') {
|
|
19447
19480
|
box.style.display = 'none'; // clutter
|
|
19448
19481
|
}
|
|
@@ -19683,10 +19716,10 @@ var fieldParams = (_fieldParams = {}, (0, _defineProperty2["default"])(_fieldPar
|
|
|
19683
19716
|
style: _style.formGroupStyle
|
|
19684
19717
|
}), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Comment').uri, {
|
|
19685
19718
|
element: 'p',
|
|
19686
|
-
style: _style.commentStyle
|
|
19719
|
+
style: _style.commentStyle
|
|
19687
19720
|
}), (0, _defineProperty2["default"])(_fieldParams, ns.ui('Heading').uri, {
|
|
19688
19721
|
element: 'h3',
|
|
19689
|
-
style: _style.formHeadingStyle
|
|
19722
|
+
style: _style.formHeadingStyle
|
|
19690
19723
|
}), _fieldParams);
|
|
19691
19724
|
exports.fieldParams = fieldParams;
|
|
19692
19725
|
//# sourceMappingURL=fieldParams.js.map
|