solid-ui 2.4.30-28954ea4 → 2.4.30-5d95a9f0
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 +260 -228
- 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 +15 -39
- package/lib/pad.js.map +1 -1
- package/lib/participation.d.ts +7 -7
- package/lib/participation.d.ts.map +1 -1
- package/lib/participation.js +26 -24
- package/lib/participation.js.map +1 -1
- package/lib/style.js +93 -85
- package/lib/style.js.map +1 -1
- package/lib/styleConstants.js +35 -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 +11 -19
- 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
|
@@ -7156,6 +7156,15 @@ function renderScopeHeadingRow(context, store, scope) {
|
|
|
7156
7156
|
function registrationList(_x9, _x10) {
|
|
7157
7157
|
return _registrationList.apply(this, arguments);
|
|
7158
7158
|
} // registrationList
|
|
7159
|
+
/**
|
|
7160
|
+
* Bootstrapping identity
|
|
7161
|
+
* (Called by `loginStatusBox()`)
|
|
7162
|
+
*
|
|
7163
|
+
* @param dom
|
|
7164
|
+
* @param setUserCallback
|
|
7165
|
+
*
|
|
7166
|
+
* @returns
|
|
7167
|
+
*/
|
|
7159
7168
|
function _registrationList() {
|
|
7160
7169
|
_registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
|
|
7161
7170
|
var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
|
|
@@ -7287,23 +7296,10 @@ function _registrationList() {
|
|
|
7287
7296
|
}));
|
|
7288
7297
|
return _registrationList.apply(this, arguments);
|
|
7289
7298
|
}
|
|
7290
|
-
function getDefaultSignInButtonStyle() {
|
|
7291
|
-
return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
|
|
7292
|
-
}
|
|
7293
|
-
|
|
7294
|
-
/**
|
|
7295
|
-
* Bootstrapping identity
|
|
7296
|
-
* (Called by `loginStatusBox()`)
|
|
7297
|
-
*
|
|
7298
|
-
* @param dom
|
|
7299
|
-
* @param setUserCallback
|
|
7300
|
-
*
|
|
7301
|
-
* @returns
|
|
7302
|
-
*/
|
|
7303
7299
|
function signInOrSignUpBox(dom, setUserCallback) {
|
|
7304
7300
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
7305
7301
|
options = options || {};
|
|
7306
|
-
var signInButtonStyle = options.buttonStyle ||
|
|
7302
|
+
var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
|
|
7307
7303
|
var box = dom.createElement('div');
|
|
7308
7304
|
var magicClassName = 'SolidSignInOrSignUpBox';
|
|
7309
7305
|
debug.log('widgets.signInOrSignUpBox');
|
|
@@ -7316,7 +7312,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
7316
7312
|
box.appendChild(signInPopUpButton);
|
|
7317
7313
|
signInPopUpButton.setAttribute('type', 'button');
|
|
7318
7314
|
signInPopUpButton.setAttribute('value', 'Log in');
|
|
7319
|
-
signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle
|
|
7315
|
+
signInPopUpButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signUpBackground);
|
|
7320
7316
|
_solidLogic.authSession.onLogin(function () {
|
|
7321
7317
|
var me = _solidLogic.authn.currentUser();
|
|
7322
7318
|
// const sessionInfo = authSession.info
|
|
@@ -7357,7 +7353,7 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
7357
7353
|
box.appendChild(signupButton);
|
|
7358
7354
|
signupButton.setAttribute('type', 'button');
|
|
7359
7355
|
signupButton.setAttribute('value', 'Sign Up for Solid');
|
|
7360
|
-
signupButton.setAttribute('style', "".concat(signInButtonStyle
|
|
7356
|
+
signupButton.setAttribute('style', "".concat(signInButtonStyle).concat(style.headerBannerLoginInput) + style.signInBackground);
|
|
7361
7357
|
signupButton.addEventListener('click', function (_event) {
|
|
7362
7358
|
var signupMgr = new _signup.Signup();
|
|
7363
7359
|
signupMgr.signup().then(function (uri) {
|
|
@@ -7525,7 +7521,7 @@ function loginStatusBox(dom) {
|
|
|
7525
7521
|
});
|
|
7526
7522
|
}
|
|
7527
7523
|
function logoutButton(me, options) {
|
|
7528
|
-
var signInButtonStyle = options.buttonStyle ||
|
|
7524
|
+
var signInButtonStyle = options.buttonStyle || style.signInAndUpButtonStyle;
|
|
7529
7525
|
var logoutLabel = 'WebID logout';
|
|
7530
7526
|
if (me) {
|
|
7531
7527
|
var nick = _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('nick')) || _solidLogic.solidLogicSingleton.store.any(me, ns.foaf('name'));
|
|
@@ -7537,7 +7533,7 @@ function loginStatusBox(dom) {
|
|
|
7537
7533
|
// signOutButton.className = 'WebIDCancelButton'
|
|
7538
7534
|
signOutButton.setAttribute('type', 'button');
|
|
7539
7535
|
signOutButton.setAttribute('value', logoutLabel);
|
|
7540
|
-
signOutButton.setAttribute('style', "".concat(signInButtonStyle
|
|
7536
|
+
signOutButton.setAttribute('style', "".concat(signInButtonStyle));
|
|
7541
7537
|
signOutButton.addEventListener('click', logoutButtonHandler, false);
|
|
7542
7538
|
return signOutButton;
|
|
7543
7539
|
}
|
|
@@ -8272,21 +8268,21 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
8272
8268
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
8273
8269
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./lib/debug.js"));
|
|
8274
8270
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
|
|
8271
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
8275
8272
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../widgets */ "./lib/widgets/index.js"));
|
|
8276
8273
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
8277
8274
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
8278
|
-
/// /////////////////////////////////////////////
|
|
8279
8275
|
//
|
|
8280
8276
|
// Media input widget
|
|
8281
8277
|
//
|
|
8282
8278
|
//
|
|
8283
8279
|
// Workflow:
|
|
8284
|
-
// The HTML5 functionality (on
|
|
8285
|
-
// a realtime camera capture
|
|
8280
|
+
// The HTML5 functionality (on mobile) is to prompt for either
|
|
8281
|
+
// a realtime camera capture, OR a selection from images already on the device
|
|
8286
8282
|
// (eg camera roll).
|
|
8287
8283
|
//
|
|
8288
|
-
// The solid alternative is to either take a
|
|
8289
|
-
// or access
|
|
8284
|
+
// The solid alternative is to either take a photo
|
|
8285
|
+
// or access camera roll (etc) OR to access solid cloud storage of favorite photo albums.
|
|
8290
8286
|
// (Especially latest taken ones)
|
|
8291
8287
|
//
|
|
8292
8288
|
|
|
@@ -8295,10 +8291,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
8295
8291
|
var cameraIcon = _iconBase.icons.iconBase + 'noun_Camera_1618446_000000.svg'; // Get it from github
|
|
8296
8292
|
var retakeIcon = _iconBase.icons.iconBase + 'noun_479395.svg'; // Get it from github
|
|
8297
8293
|
|
|
8298
|
-
var canvasWidth = '640';
|
|
8299
|
-
var canvasHeight = '480';
|
|
8300
|
-
var controlStyle = "border-radius: 0.5em; margin: 0.8em; width: ".concat(canvasWidth, "; height:").concat(canvasHeight, ";");
|
|
8301
|
-
// const controlStyle = 'border-radius: 0.5em; margin: 0.8em; width: 320; height:240;'
|
|
8302
8294
|
var contentType = 'image/png';
|
|
8303
8295
|
|
|
8304
8296
|
/** A control to capture a picture using camera
|
|
@@ -8343,7 +8335,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8343
8335
|
player = main.appendChild(dom.createElement('video'));
|
|
8344
8336
|
player.setAttribute('controls', '1');
|
|
8345
8337
|
player.setAttribute('autoplay', '1');
|
|
8346
|
-
player.setAttribute('style', controlStyle);
|
|
8338
|
+
player.setAttribute('style', style.controlStyle);
|
|
8347
8339
|
if (!navigator.mediaDevices) {
|
|
8348
8340
|
throw new Error('navigator.mediaDevices not available');
|
|
8349
8341
|
}
|
|
@@ -8364,9 +8356,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8364
8356
|
function grabCanvas() {
|
|
8365
8357
|
// Draw the video frame to the canvas.
|
|
8366
8358
|
canvas = dom.createElement('canvas');
|
|
8367
|
-
canvas.setAttribute('width', canvasWidth);
|
|
8368
|
-
canvas.setAttribute('height', canvasHeight);
|
|
8369
|
-
canvas.setAttribute('style', controlStyle);
|
|
8359
|
+
canvas.setAttribute('width', style.canvasWidth);
|
|
8360
|
+
canvas.setAttribute('height', style.canvasHeight);
|
|
8361
|
+
canvas.setAttribute('style', style.controlStyle);
|
|
8370
8362
|
main.appendChild(canvas);
|
|
8371
8363
|
var context = canvas.getContext('2d');
|
|
8372
8364
|
context.drawImage(player, 0, 0, canvas.width, canvas.height);
|
|
@@ -8421,9 +8413,9 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
8421
8413
|
* @param {IndexedForumla} store - The quadstore to store data in
|
|
8422
8414
|
* @param {fuunction} getImageDoc - returns NN of the image file to be created
|
|
8423
8415
|
* @param {function<Node>} doneCallback - called with the image taken
|
|
8424
|
-
* @returns {DomElement} - A div element with the
|
|
8416
|
+
* @returns {DomElement} - A div element with the button in it
|
|
8425
8417
|
*
|
|
8426
|
-
* This
|
|
8418
|
+
* This expands the button to a large control when it is pressed
|
|
8427
8419
|
*/
|
|
8428
8420
|
|
|
8429
8421
|
function cameraButton(dom, store, getImageDoc, doneCallback) {
|
|
@@ -8857,10 +8849,10 @@ Object.defineProperty(exports, "recordParticipation", ({
|
|
|
8857
8849
|
return _participation.recordParticipation;
|
|
8858
8850
|
}
|
|
8859
8851
|
}));
|
|
8860
|
-
Object.defineProperty(exports, "
|
|
8852
|
+
Object.defineProperty(exports, "renderParticipants", ({
|
|
8861
8853
|
enumerable: true,
|
|
8862
8854
|
get: function get() {
|
|
8863
|
-
return _participation.
|
|
8855
|
+
return _participation.renderParticipants;
|
|
8864
8856
|
}
|
|
8865
8857
|
}));
|
|
8866
8858
|
exports.xmlEncode = xmlEncode;
|
|
@@ -8878,6 +8870,7 @@ var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
|
8878
8870
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
8879
8871
|
var _debug = __webpack_require__(/*! ./debug */ "./lib/debug.js");
|
|
8880
8872
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
8873
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
8881
8874
|
var _participation = __webpack_require__(/*! ./participation */ "./lib/participation.js");
|
|
8882
8875
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
8883
8876
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -8945,7 +8938,7 @@ function lightColorHash(author) {
|
|
|
8945
8938
|
/** notepad
|
|
8946
8939
|
*
|
|
8947
8940
|
* @param {HTMLDocument} dom - the web page of the browser
|
|
8948
|
-
* @param {NamedNode} padDoc - the document
|
|
8941
|
+
* @param {NamedNode} padDoc - the document in which the participation should be shown
|
|
8949
8942
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
8950
8943
|
* @param {NamedNode} me - person who is logged into the pod
|
|
8951
8944
|
* @param {notepadOptions} options - the options that can be passed in consist of statusArea, exists
|
|
@@ -8958,7 +8951,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8958
8951
|
if (me && !me.uri) throw new Error('UI.pad.notepad: Invalid userid');
|
|
8959
8952
|
var updater = store.updater;
|
|
8960
8953
|
var PAD = (0, _rdflib.Namespace)('http://www.w3.org/ns/pim/pad#');
|
|
8961
|
-
table.setAttribute('style',
|
|
8954
|
+
table.setAttribute('style', style.notepadStyle);
|
|
8962
8955
|
var upstreamStatus = null;
|
|
8963
8956
|
var downstreamStatus = null;
|
|
8964
8957
|
if (options.statusArea) {
|
|
@@ -8967,10 +8960,10 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8967
8960
|
upstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
8968
8961
|
downstreamStatus = tr.appendChild(dom.createElement('td'));
|
|
8969
8962
|
if (upstreamStatus) {
|
|
8970
|
-
upstreamStatus.setAttribute('style',
|
|
8963
|
+
upstreamStatus.setAttribute('style', style.upstreamStatus);
|
|
8971
8964
|
}
|
|
8972
8965
|
if (downstreamStatus) {
|
|
8973
|
-
downstreamStatus.setAttribute('style',
|
|
8966
|
+
downstreamStatus.setAttribute('style', style.downstreamStatus);
|
|
8974
8967
|
}
|
|
8975
8968
|
}
|
|
8976
8969
|
/* @@ TODO want to look into this, it seems upstream should be a boolean and default to false ?
|
|
@@ -8993,9 +8986,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
8993
8986
|
var setPartStyle = function setPartStyle(part, colors, pending) {
|
|
8994
8987
|
var chunk = part.subject;
|
|
8995
8988
|
colors = colors || '';
|
|
8996
|
-
var baseStyle =
|
|
8997
|
-
var headingCore =
|
|
8998
|
-
var headingStyle =
|
|
8989
|
+
var baseStyle = style.baseStyle;
|
|
8990
|
+
var headingCore = style.headingCore;
|
|
8991
|
+
var headingStyle = style.headingStyle;
|
|
8999
8992
|
var author = kb.any(chunk, ns.dc('author'));
|
|
9000
8993
|
if (!colors && author) {
|
|
9001
8994
|
// Hash the user webid for now -- later allow user selection!
|
|
@@ -9007,9 +9000,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9007
9000
|
// and when the indent is stored as a Number itself, not in an object.
|
|
9008
9001
|
var indent = kb.any(chunk, PAD('indent'));
|
|
9009
9002
|
indent = indent ? indent.value : 0;
|
|
9010
|
-
var
|
|
9003
|
+
var localStyle = indent >= 0 ? baseStyle + 'text-indent: ' + indent * 3 + 'em;' : headingCore + headingStyle[-1 - indent];
|
|
9011
9004
|
// ? baseStyle + 'padding-left: ' + (indent * 3) + 'em;'
|
|
9012
|
-
part.setAttribute('style',
|
|
9005
|
+
part.setAttribute('style', localStyle + colors);
|
|
9013
9006
|
};
|
|
9014
9007
|
var removePart = function removePart(part) {
|
|
9015
9008
|
var chunk = part.subject;
|
|
@@ -9088,29 +9081,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9088
9081
|
}
|
|
9089
9082
|
});
|
|
9090
9083
|
};
|
|
9091
|
-
|
|
9092
|
-
// Use this sort of code to split the line when return pressed in the middle @@
|
|
9093
|
-
/*
|
|
9094
|
-
function doGetCaretPosition doGetCaretPosition (oField) {
|
|
9095
|
-
var iCaretPos = 0
|
|
9096
|
-
// IE Support
|
|
9097
|
-
if (document.selection) {
|
|
9098
|
-
// Set focus on the element to avoid IE bug
|
|
9099
|
-
oField.focus()
|
|
9100
|
-
// To get cursor position, get empty selection range
|
|
9101
|
-
var oSel = document.selection.createRange()
|
|
9102
|
-
// Move selection start to 0 position
|
|
9103
|
-
oSel.moveStart('character', -oField.value.length)
|
|
9104
|
-
// The caret position is selection length
|
|
9105
|
-
iCaretPos = oSel.text.length
|
|
9106
|
-
// Firefox suppor
|
|
9107
|
-
} else if (oField.selectionStart || oField.selectionStart === '0') {
|
|
9108
|
-
iCaretPos = oField.selectionStart
|
|
9109
|
-
}
|
|
9110
|
-
// Return results
|
|
9111
|
-
return (iCaretPos)
|
|
9112
|
-
}
|
|
9113
|
-
*/
|
|
9114
9084
|
var addListeners = function addListeners(part, chunk) {
|
|
9115
9085
|
part.addEventListener('keydown', function (event) {
|
|
9116
9086
|
if (!updater) {
|
|
@@ -9151,9 +9121,9 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9151
9121
|
// contents need to be sent again
|
|
9152
9122
|
part.state = 4; // delete me
|
|
9153
9123
|
return;
|
|
9154
|
-
case 3: // being deleted
|
|
9124
|
+
case 3: // already being deleted
|
|
9155
9125
|
case 4:
|
|
9156
|
-
// already
|
|
9126
|
+
// already deleted state
|
|
9157
9127
|
return;
|
|
9158
9128
|
case undefined:
|
|
9159
9129
|
case 0:
|
|
@@ -9453,8 +9423,6 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9453
9423
|
}
|
|
9454
9424
|
return;
|
|
9455
9425
|
}
|
|
9456
|
-
// var last = kb.the(undefined, PAD('previous'), subject)
|
|
9457
|
-
// var chunk = first // = kb.the(subject, PAD('next'));
|
|
9458
9426
|
var row;
|
|
9459
9427
|
|
|
9460
9428
|
// First see which of the logical chunks have existing physical manifestations
|
|
@@ -9516,7 +9484,7 @@ function notepad(dom, padDoc, subject, me, options) {
|
|
|
9516
9484
|
(0, _debug.log)(' reloaded OK');
|
|
9517
9485
|
clearStatus();
|
|
9518
9486
|
if (!consistencyCheck()) {
|
|
9519
|
-
complain('
|
|
9487
|
+
complain('CONSISTENCY CHECK FAILED');
|
|
9520
9488
|
} else {
|
|
9521
9489
|
refreshTree(table);
|
|
9522
9490
|
}
|
|
@@ -9681,7 +9649,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
9681
9649
|
exports.manageParticipation = manageParticipation;
|
|
9682
9650
|
exports.participationObject = participationObject;
|
|
9683
9651
|
exports.recordParticipation = recordParticipation;
|
|
9684
|
-
exports.
|
|
9652
|
+
exports.renderParticipants = renderParticipants;
|
|
9685
9653
|
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/createClass.js"));
|
|
9686
9654
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/classCallCheck.js"));
|
|
9687
9655
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
|
|
@@ -9697,6 +9665,8 @@ var ns = _interopRequireWildcard(__webpack_require__(/*! ./ns */ "./lib/ns.js"))
|
|
|
9697
9665
|
var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
9698
9666
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
9699
9667
|
var _pad = __webpack_require__(/*! ./pad */ "./lib/pad.js");
|
|
9668
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
9669
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
|
|
9700
9670
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
9701
9671
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
9702
9672
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -9704,7 +9674,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
9704
9674
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9705
9675
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9706
9676
|
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); }; }
|
|
9707
|
-
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; } } /* Manage a UI for the
|
|
9677
|
+
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; } } /* Manage a UI for the participation of a person in any thing
|
|
9708
9678
|
*/ // import { currentUser } from './authn/authn'
|
|
9709
9679
|
var ParticipationTableElement = /*#__PURE__*/function (_HTMLTableElement) {
|
|
9710
9680
|
(0, _inherits2["default"])(ParticipationTableElement, _HTMLTableElement);
|
|
@@ -9730,11 +9700,11 @@ var store = _solidLogic.solidLogicSingleton.store;
|
|
|
9730
9700
|
* @param {NamedNode} unused1/document - the document to render (this argument is no longer used, but left in for backwards compatibility)
|
|
9731
9701
|
* @param {NamedNode} subject - the thing in which the participation is happening
|
|
9732
9702
|
* @param {NamedNode} unused2/me - user that is logged into the pod (this argument is no longer used, but left in for backwards compatibility)
|
|
9733
|
-
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
9703
|
+
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
|
|
9734
9704
|
*/
|
|
9735
|
-
function
|
|
9736
|
-
table.setAttribute('style',
|
|
9737
|
-
var
|
|
9705
|
+
function renderParticipants(dom, table, unused1, subject, unused2, options) {
|
|
9706
|
+
table.setAttribute('style', style.participantsStyle);
|
|
9707
|
+
var newRowForParticipation = function newRowForParticipation(parp) {
|
|
9738
9708
|
var person = store.any(parp, ns.wf('participant'));
|
|
9739
9709
|
var tr;
|
|
9740
9710
|
if (!person) {
|
|
@@ -9742,13 +9712,14 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
9742
9712
|
tr.textContent = '???'; // Don't crash - invalid part'n entry
|
|
9743
9713
|
return tr;
|
|
9744
9714
|
}
|
|
9745
|
-
var bg = store.anyValue(parp, ns.ui('backgroundColor')) ||
|
|
9715
|
+
var bg = store.anyValue(parp, ns.ui('backgroundColor')) || _styleConstants["default"].participationDefaultBackground;
|
|
9746
9716
|
var block = dom.createElement('div');
|
|
9747
|
-
block.setAttribute('style',
|
|
9717
|
+
block.setAttribute('style', style.participantsBlock);
|
|
9718
|
+
block.style.backgroundColor = bg;
|
|
9748
9719
|
tr = (0, _widgets.personTR)(dom, null, person, options);
|
|
9749
9720
|
table.appendChild(tr);
|
|
9750
9721
|
var td = dom.createElement('td');
|
|
9751
|
-
td.setAttribute('style',
|
|
9722
|
+
td.setAttribute('style', style.personTableTD);
|
|
9752
9723
|
td.appendChild(block);
|
|
9753
9724
|
tr.insertBefore(td, tr.firstChild);
|
|
9754
9725
|
return tr;
|
|
@@ -9762,16 +9733,16 @@ function renderPartipants(dom, table, unused1, subject, unused2, options) {
|
|
|
9762
9733
|
var participations = parps.map(function (p) {
|
|
9763
9734
|
return p[1];
|
|
9764
9735
|
});
|
|
9765
|
-
(0, _utils.syncTableToArray)(table, participations,
|
|
9736
|
+
(0, _utils.syncTableToArray)(table, participations, newRowForParticipation);
|
|
9766
9737
|
};
|
|
9767
9738
|
table.refresh = syncTable;
|
|
9768
9739
|
syncTable();
|
|
9769
9740
|
return table;
|
|
9770
9741
|
}
|
|
9771
9742
|
|
|
9772
|
-
/** Record, or find old,
|
|
9743
|
+
/** Record, or find old, Participation object
|
|
9773
9744
|
*
|
|
9774
|
-
* A
|
|
9745
|
+
* A participation object is a place to record things specifically about
|
|
9775
9746
|
* subject and the user, such as preferences, start of membership, etc
|
|
9776
9747
|
* @param {NamedNode} subject - the thing in which the participation is happening
|
|
9777
9748
|
* @param {NamedNode} document - where to record the data
|
|
@@ -9806,19 +9777,19 @@ function participationObject(subject, padDoc, me) {
|
|
|
9806
9777
|
}
|
|
9807
9778
|
candidates.sort(); // Pick the earliest
|
|
9808
9779
|
// @@ Possibly, for extra credit, delete the others, if we have write access
|
|
9809
|
-
debug.warn('Multiple
|
|
9780
|
+
debug.warn('Multiple participation objects, picking earliest, in ' + padDoc);
|
|
9810
9781
|
resolve(candidates[0][1]);
|
|
9811
9782
|
// throw new Error('Multiple records of your participation')
|
|
9812
9783
|
}
|
|
9813
9784
|
if (parps.length) {
|
|
9814
9785
|
// If I am not already recorded
|
|
9815
|
-
resolve(parps[0]); // returns the
|
|
9786
|
+
resolve(parps[0]); // returns the participation object
|
|
9816
9787
|
} else {
|
|
9817
9788
|
var _participation2 = (0, _widgets.newThing)(padDoc);
|
|
9818
9789
|
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)];
|
|
9819
9790
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
9820
9791
|
if (!ok) {
|
|
9821
|
-
reject(new Error('Error recording your
|
|
9792
|
+
reject(new Error('Error recording your participation: ' + errorMessage));
|
|
9822
9793
|
} else {
|
|
9823
9794
|
resolve(_participation2);
|
|
9824
9795
|
}
|
|
@@ -9831,7 +9802,7 @@ function participationObject(subject, padDoc, me) {
|
|
|
9831
9802
|
/** Record my participation and display participants
|
|
9832
9803
|
*
|
|
9833
9804
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
9834
|
-
* @param {NamedNode} padDoc - the document into which the
|
|
9805
|
+
* @param {NamedNode} padDoc - the document into which the participation should be recorded
|
|
9835
9806
|
* @param {DOMNode} refreshable - a DOM element whose refresh() is to be called if the change works
|
|
9836
9807
|
*
|
|
9837
9808
|
*/
|
|
@@ -9847,22 +9818,21 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
9847
9818
|
}
|
|
9848
9819
|
if (parps.length) {
|
|
9849
9820
|
// If I am not already recorded
|
|
9850
|
-
return parps[0]; // returns the
|
|
9821
|
+
return parps[0]; // returns the participation object
|
|
9851
9822
|
} else {
|
|
9852
9823
|
if (!store.updater.editable(padDoc)) {
|
|
9853
|
-
debug.log('Not recording participation, as no write
|
|
9824
|
+
debug.log('Not recording participation, as no write access as ' + me + ' to ' + padDoc);
|
|
9854
9825
|
return null;
|
|
9855
9826
|
}
|
|
9856
9827
|
var participation = (0, _widgets.newThing)(padDoc);
|
|
9857
9828
|
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)];
|
|
9858
9829
|
store.updater.update([], ins, function (uri, ok, errorMessage) {
|
|
9859
9830
|
if (!ok) {
|
|
9860
|
-
throw new Error('Error recording your
|
|
9831
|
+
throw new Error('Error recording your participation: ' + errorMessage);
|
|
9861
9832
|
}
|
|
9862
9833
|
if (refreshable && refreshable.refresh) {
|
|
9863
9834
|
refreshable.refresh();
|
|
9864
9835
|
}
|
|
9865
|
-
// UI.pad.renderPartipants(dom, table, padDoc, subject, me, options)
|
|
9866
9836
|
});
|
|
9867
9837
|
return participation;
|
|
9868
9838
|
}
|
|
@@ -9872,21 +9842,21 @@ function recordParticipation(subject, padDoc, refreshable) {
|
|
|
9872
9842
|
*
|
|
9873
9843
|
* @param {Document} dom - the web page loaded into the browser
|
|
9874
9844
|
* @param {HTMLDivElement} container - the container element where the participants should be displayed
|
|
9875
|
-
* @param {NamedNode} document - the document into which the
|
|
9845
|
+
* @param {NamedNode} document - the document into which the participation should be shown
|
|
9876
9846
|
* @param {NamedNode} subject - the thing in which participation is happening
|
|
9877
9847
|
* @param {NamedNode} me - the logged in user
|
|
9878
|
-
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable these are used by the personTR button
|
|
9848
|
+
* @param {ParticipationOptions} options - the options that can be passed in are deleteFunction, link, and draggable; these are used by the personTR button
|
|
9879
9849
|
*
|
|
9880
9850
|
*/
|
|
9881
9851
|
function manageParticipation(dom, container, padDoc, subject, me, options) {
|
|
9882
9852
|
var table = dom.createElement('table');
|
|
9883
9853
|
container.appendChild(table);
|
|
9884
|
-
|
|
9854
|
+
renderParticipants(dom, table, padDoc, subject, me, options);
|
|
9885
9855
|
var _participation;
|
|
9886
9856
|
try {
|
|
9887
9857
|
_participation = recordParticipation(subject, padDoc, table);
|
|
9888
9858
|
} catch (e) {
|
|
9889
|
-
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your
|
|
9859
|
+
container.appendChild((0, _widgets.errorMessageBlock)(dom, 'Error recording your participation: ' + e)); // Clean up?
|
|
9890
9860
|
}
|
|
9891
9861
|
return table;
|
|
9892
9862
|
}
|
|
@@ -10257,41 +10227,34 @@ Signup.prototype.signup = function signup(signupUrl) {
|
|
|
10257
10227
|
/*!**********************!*\
|
|
10258
10228
|
!*** ./lib/style.js ***!
|
|
10259
10229
|
\**********************/
|
|
10260
|
-
/***/ ((module, exports) => {
|
|
10230
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
10261
10231
|
|
|
10262
10232
|
"use strict";
|
|
10263
10233
|
|
|
10264
10234
|
|
|
10235
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
10265
10236
|
Object.defineProperty(exports, "__esModule", ({
|
|
10266
10237
|
value: true
|
|
10267
10238
|
}));
|
|
10268
10239
|
exports.style = void 0;
|
|
10240
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ./styleConstants */ "./lib/styleConstants.js"));
|
|
10269
10241
|
// Common readable consistent stylesheet
|
|
10270
10242
|
// to avoid using style sheets which are document-global
|
|
10271
10243
|
// and make programmable style toggling with selection, drag over, etc easier
|
|
10272
|
-
|
|
10273
10244
|
// These must all end with semicolon so they can be appended to.
|
|
10274
10245
|
|
|
10275
|
-
var formBorderColor = '#888888'; // Mid-grey
|
|
10276
|
-
var lowProfileLinkColor = '#3B5998'; // Grey-blue, e.g., for field labels linking to ontology
|
|
10277
|
-
var formFieldNameBoxWidth = '8em'; // The fixed amount to get form fields to line up
|
|
10278
|
-
// The latter we put in when switching awy from using tables. Getting allignment between
|
|
10279
|
-
// fields in different groups though is hard problem.
|
|
10280
|
-
|
|
10281
10246
|
var style = exports.style = {
|
|
10282
10247
|
// styleModule
|
|
10283
10248
|
|
|
10284
10249
|
checkboxStyle: 'color: black; font-size: 100%; padding-left: 0.5 em; padding-right: 0.5 em;',
|
|
10285
|
-
checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em',
|
|
10250
|
+
checkboxInputStyle: 'font-size: 150%; height: 1.2em; width: 1.2em; background-color: #eef; border-radius:0.2em; margin: 0.1em;',
|
|
10286
10251
|
fieldLabelStyle: 'color: #3B5998; text-decoration: none;',
|
|
10287
|
-
|
|
10288
|
-
textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c;
|
|
10252
|
+
formSelectStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
10253
|
+
textInputStyle: 'background-color: #eef; padding: 0.5em; border: .05em solid #88c; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
10289
10254
|
textInputStyleUneditable:
|
|
10290
10255
|
// Color difference only
|
|
10291
|
-
'background-color: white; padding: 0.5em; border: .05em solid white;
|
|
10292
|
-
|
|
10293
|
-
// Default text input size in characters roughly
|
|
10294
|
-
buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
|
|
10256
|
+
'background-color: white; padding: 0.5em; border: .05em solid white; border-radius:0.2em; font-size: 100%; margin:0.4em;',
|
|
10257
|
+
buttonStyle: 'background-color: #fff; padding: 0.7em; border: .01em solid white; border-radius:0.2em; font-size: 100%; margin: 0.3em;',
|
|
10295
10258
|
// 'background-color: #eef;
|
|
10296
10259
|
commentStyle: 'padding: 0.7em; border: none; font-size: 100%; white-space: pre-wrap;',
|
|
10297
10260
|
iconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 1em;',
|
|
@@ -10299,20 +10262,18 @@ var style = exports.style = {
|
|
|
10299
10262
|
classIconStyle: 'width: 3em; height: 3em; margin: 0.1em; border-radius: 0.2em; border: 0.1em solid green; padding: 0.2em; background-color: #efe;',
|
|
10300
10263
|
// combine with buttonStyle
|
|
10301
10264
|
confirmPopupStyle: 'padding: 0.7em; border-radius: 0.2em; border: 0.1em solid orange; background-color: white; box-shadow: 0.5em 0.9em #888;',
|
|
10302
|
-
tabBorderRadius: '0.2em',
|
|
10303
10265
|
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;',
|
|
10304
10266
|
pendingeditModifier: 'color: #bbb;',
|
|
10305
|
-
highlightColor: '#7C4DFF',
|
|
10306
|
-
// Solid lavendar https://design.inrupt.com/atomic-core/?cat=Core
|
|
10307
|
-
|
|
10308
10267
|
// Contacts
|
|
10309
10268
|
personaBarStyle: 'width: 100%; height: 4em; background-color: #eee; vertical-align: middle;',
|
|
10310
10269
|
searchInputStyle: 'border: 0.1em solid #444; border-radius: 0.2em; width: 100%; font-size: 100%; padding: 0.1em 0.6em; margin 0.2em;',
|
|
10311
10270
|
autocompleteRowStyle: 'border: 0.2em solid straw;',
|
|
10312
10271
|
// Login buttons
|
|
10313
|
-
|
|
10272
|
+
signInAndUpButtonStyle: 'padding: 1em; border-radius:0.2em; font-size: 100%;',
|
|
10314
10273
|
// was 0.5em radius
|
|
10315
|
-
|
|
10274
|
+
headerBannerLoginInput: 'margin: 0.75em 0 0.75em 0.5em !important; padding: 0.5em !important;',
|
|
10275
|
+
signUpBackground: 'background-color: #eef;',
|
|
10276
|
+
signInBackground: 'background-color: #efe;',
|
|
10316
10277
|
// Forms
|
|
10317
10278
|
heading1Style: 'font-size: 180%; font-weight: bold; color: #888888; padding: 0.5em; margin: 0.7em 0.0m;',
|
|
10318
10279
|
// originally was brown; now grey
|
|
@@ -10323,87 +10284,104 @@ var style = exports.style = {
|
|
|
10323
10284
|
heading4Style: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
10324
10285
|
// Lowest level used by default in small things
|
|
10325
10286
|
|
|
10326
|
-
formBorderColor: formBorderColor,
|
|
10327
|
-
// originally was brown; now grey
|
|
10328
|
-
formHeadingColor: '#888888',
|
|
10329
|
-
// originally was brown; now grey
|
|
10330
10287
|
formHeadingStyle: 'font-size: 110%; font-weight: bold; color: #888888; padding: 0.2em; margin: 0.7em 0.0em;',
|
|
10331
10288
|
// originally was brown; now grey
|
|
10332
10289
|
formTextInput: 'font-size: 100%; margin: 0.1em; padding: 0.1em;',
|
|
10333
10290
|
// originally used this
|
|
10334
|
-
formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(formBorderColor, "; border-radius: 0.2em;"), // weight 0
|
|
10335
|
-
"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
|
|
10291
|
+
formGroupStyle: ["padding-left: 0em; border: 0.0em solid ".concat(_styleConstants["default"].formBorderColor, "; border-radius: 0.2em;"), // weight 0
|
|
10292
|
+
"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
|
|
10336
10293
|
],
|
|
10337
|
-
formFieldLabelStyle: "
|
|
10338
|
-
|
|
10339
|
-
formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(formFieldNameBoxWidth, ";"),
|
|
10340
|
-
textInputBackgroundColor: '#eef',
|
|
10341
|
-
textInputBackgroundColorUneditable: '#fff',
|
|
10342
|
-
textInputColor: '#000',
|
|
10343
|
-
textInputColorPending: '#888',
|
|
10294
|
+
formFieldLabelStyle: "color: ".concat(_styleConstants["default"].lowProfileLinkColor, "; text-decoration: none;"),
|
|
10295
|
+
formFieldNameBoxStyle: "padding: 0.3em; vertical-align: middle; width:".concat(_styleConstants["default"].formFieldNameBoxWidth, ";"),
|
|
10344
10296
|
multilineTextInputStyle: 'font-size:100%; white-space: pre-wrap; background-color: #eef;' + ' border: 0.07em solid gray; padding: 1em 0.5em; margin: 1em 1em;',
|
|
10345
10297
|
// Buttons
|
|
10346
10298
|
renderAsDivStyle: 'display: flex; align-items: center; justify-content: space-between; height: 2.5em; padding: 1em;',
|
|
10347
10299
|
imageDivStyle: 'width:2.5em; padding:0.5em; height: 2.5em;',
|
|
10348
10300
|
linkDivStyle: 'width:2em; padding:0.5em; height: 4em;',
|
|
10349
10301
|
// ACL
|
|
10350
|
-
aclControlBoxContainer: 'margin: 1em',
|
|
10351
|
-
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem',
|
|
10352
|
-
aclControlBoxStatus: 'display: none; margin: 1rem 0',
|
|
10353
|
-
aclControlBoxStatusRevealed: 'display: block',
|
|
10354
|
-
aclGroupContent: 'maxWidth: 650',
|
|
10355
|
-
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100
|
|
10356
|
-
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30
|
|
10357
|
-
defaultsController: 'display: flex',
|
|
10358
|
-
defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80
|
|
10359
|
-
bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em',
|
|
10360
|
-
group: 'color: #888',
|
|
10361
|
-
group1: 'color: green',
|
|
10362
|
-
group2: 'color: #cc0',
|
|
10363
|
-
group3: 'color: orange',
|
|
10364
|
-
group5: 'color: red',
|
|
10365
|
-
group9: 'color: blue',
|
|
10366
|
-
group13: 'color: purple',
|
|
10367
|
-
trustedAppAddApplicationsTable: 'background-color: #eee',
|
|
10368
|
-
trustedAppCancelButton: 'float: right',
|
|
10369
|
-
trustedAppControllerI: 'border-color: orange;
|
|
10370
|
-
temporaryStatusInit: 'background: green',
|
|
10371
|
-
temporaryStatusEnd: 'background: transparent; transition: background 5s linear',
|
|
10302
|
+
aclControlBoxContainer: 'margin: 1em;',
|
|
10303
|
+
aclControlBoxHeader: 'font-size: 120%; margin: 0 0 1rem;',
|
|
10304
|
+
aclControlBoxStatus: 'display: none; margin: 1rem 0;',
|
|
10305
|
+
aclControlBoxStatusRevealed: 'display: block;',
|
|
10306
|
+
aclGroupContent: 'maxWidth: 650;',
|
|
10307
|
+
accessGroupList: 'display: grid; grid-template-columns: 1fr; margin: 1em; width: 100%;',
|
|
10308
|
+
accessGroupListItem: 'display: grid; grid-template-columns: 100px auto 30%;',
|
|
10309
|
+
defaultsController: 'display: flex;',
|
|
10310
|
+
defaultsControllerNotice: 'color: #888; flexGrow: 1; fontSize: 80%;',
|
|
10311
|
+
bigButton: 'background-color: white; border: 0.1em solid #888; border-radius: 0.3em; max-width: 50%; padding-bottom: 1em; padding-top: 1em;',
|
|
10312
|
+
group: 'color: #888;',
|
|
10313
|
+
group1: 'color: green;',
|
|
10314
|
+
group2: 'color: #cc0;',
|
|
10315
|
+
group3: 'color: orange;',
|
|
10316
|
+
group5: 'color: red;',
|
|
10317
|
+
group9: 'color: blue;',
|
|
10318
|
+
group13: 'color: purple;',
|
|
10319
|
+
trustedAppAddApplicationsTable: 'background-color: #eee;',
|
|
10320
|
+
trustedAppCancelButton: 'float: right;',
|
|
10321
|
+
trustedAppControllerI: 'border-color: orange; border-radius: 1em; border-width: 0.1em;',
|
|
10322
|
+
temporaryStatusInit: 'background: green;',
|
|
10323
|
+
temporaryStatusEnd: 'background: transparent; transition: background 5s linear;',
|
|
10372
10324
|
// header
|
|
10373
|
-
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',
|
|
10374
|
-
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%)',
|
|
10375
|
-
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px',
|
|
10376
|
-
headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important',
|
|
10377
|
-
headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100
|
|
10378
|
-
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%)',
|
|
10379
|
-
headerUserMenuList: 'list-style: none; margin: 0; padding: 0',
|
|
10380
|
-
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true',
|
|
10381
|
-
headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true',
|
|
10382
|
-
headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none',
|
|
10383
|
-
headerUserMenuListItem: 'border-bottom: solid 1px #000000',
|
|
10384
|
-
headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px',
|
|
10385
|
-
headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px',
|
|
10386
|
-
headerBannerLink: 'display: block',
|
|
10387
|
-
headerBannerRightMenu: 'display: flex',
|
|
10388
|
-
headerBannerLogin: 'margin-left: auto',
|
|
10389
|
-
allChildrenVisible: 'display:true',
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important',
|
|
10325
|
+
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;',
|
|
10326
|
+
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%);',
|
|
10327
|
+
headerUserMenuTrigger: 'background: none; border: 0; cursor: pointer; width: 60px; height: 60px;',
|
|
10328
|
+
headerUserMenuTriggerImg: 'border-radius: 50%; height: 56px; width: 28px !important;',
|
|
10329
|
+
headerUserMenuButton: 'background: none; border: 0; color: black; cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: 1em; width: 100%;',
|
|
10330
|
+
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%);',
|
|
10331
|
+
headerUserMenuList: 'list-style: none; margin: 0; padding: 0;',
|
|
10332
|
+
headerUserMenuListDisplay: 'list-style: none; margin: 0; padding: 0; display:true;',
|
|
10333
|
+
headerUserMenuNavigationMenu: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: true;',
|
|
10334
|
+
headerUserMenuNavigationMenuNotDisplayed: 'background: white; border: solid 1px #000000; border-right: 0; position: absolute; right: 0; top: 60px; width: 200px; z-index: 1; display: none;',
|
|
10335
|
+
headerUserMenuListItem: 'border-bottom: solid 1px #000000;',
|
|
10336
|
+
headerUserMenuPhoto: 'border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: cover; height: 50px; width: 50px;',
|
|
10337
|
+
headerBanner: 'box-shadow: 0px 1px 4px #000000; display: flex; justify-content: space-between; padding: 0 1.5em; margin-bottom: 4px;',
|
|
10338
|
+
headerBannerLink: 'display: block;',
|
|
10339
|
+
headerBannerRightMenu: 'display: flex;',
|
|
10340
|
+
headerBannerLogin: 'margin-left: auto;',
|
|
10341
|
+
allChildrenVisible: 'display:true;',
|
|
10342
|
+
headerBannerUserMenu: 'border-left: solid 1px #000000; margin-left: auto;',
|
|
10343
|
+
headerBannerHelpMenu: 'border-left: solid 1px #000000; margin-left: auto;',
|
|
10344
|
+
headerBannerIcon: 'background-size: 65px 60px !important; height: 60px !important; width: 65px !important;',
|
|
10394
10345
|
// may just be 65px round($icon-size * 352 / 322);
|
|
10395
10346
|
|
|
10396
10347
|
// footer
|
|
10397
|
-
footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em',
|
|
10348
|
+
footer: 'border-top: solid 1px $divider-color; font-size: 0.9em; padding: 0.5em 1.5em;',
|
|
10398
10349
|
// buttons
|
|
10399
|
-
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',
|
|
10400
|
-
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',
|
|
10401
|
-
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',
|
|
10402
|
-
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',
|
|
10403
|
-
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',
|
|
10404
|
-
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',
|
|
10405
|
-
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',
|
|
10406
|
-
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
|
+
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;',
|
|
10351
|
+
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;',
|
|
10352
|
+
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;',
|
|
10353
|
+
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;',
|
|
10354
|
+
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;',
|
|
10355
|
+
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;',
|
|
10356
|
+
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;',
|
|
10357
|
+
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;',
|
|
10358
|
+
// media
|
|
10359
|
+
controlStyle: "border-radius: 0.5em; margin: 0.8em; width:".concat(_styleConstants["default"].mediaModuleCanvasWidth, "; height:").concat(_styleConstants["default"].mediaModuleCanvasHeight, ";"),
|
|
10360
|
+
// dragAndDrop
|
|
10361
|
+
dragEvent: 'background-color: #ccc; border: 0.25em dashed black; border-radius: 0.3em;',
|
|
10362
|
+
dropEvent: 'background-color: white; border: 0em solid black;',
|
|
10363
|
+
restoreStyle: 'background-color: white;',
|
|
10364
|
+
// errors
|
|
10365
|
+
errorCancelButton: 'width: 2em; height: 2em; align: right;',
|
|
10366
|
+
errorMessageBlockStyle: 'margin: 0.1em; padding: 0.5em; border: 0.05em solid gray; color:black;',
|
|
10367
|
+
// pad
|
|
10368
|
+
notepadStyle: 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;',
|
|
10369
|
+
upstreamStatus: 'width: 50%;',
|
|
10370
|
+
downstreamStatus: 'width: 50%;',
|
|
10371
|
+
baseStyle: 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;',
|
|
10372
|
+
headingCore: 'font-family: sans-serif; font-weight: bold; border: none;',
|
|
10373
|
+
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%;'],
|
|
10374
|
+
// participation
|
|
10375
|
+
participantsStyle: 'margin: 0.8em;',
|
|
10376
|
+
participantsBlock: 'height: 1.5em; width: 1.5em; margin: 0.3em; border 0.01em solid #888;',
|
|
10377
|
+
personTableTD: 'vertical-align: middle;',
|
|
10378
|
+
// tabs
|
|
10379
|
+
tabsNavElement: 'margin: 0;',
|
|
10380
|
+
tabsRootElement: 'display: flex; height: 100%; width: 100%;',
|
|
10381
|
+
tabsMainElement: 'margin: 0; width:100%; height: 100%;',
|
|
10382
|
+
tabContainer: 'list-style-type: none; display: flex; height: 100%; width: 100%; margin: 0; padding: 0;',
|
|
10383
|
+
makeNewSlot: 'background: none; border: none; font: inherit; cursor: pointer;',
|
|
10384
|
+
ellipsis: 'position: absolute; right: 0; bottom: 0; width: 20%; background: none; color: inherit; border: none; padding: 0; font: inherit; cursor: pointer; outline: inherit;'
|
|
10407
10385
|
};
|
|
10408
10386
|
style.setStyle = function setStyle(ele, styleName) {
|
|
10409
10387
|
ele.style = style[styleName];
|
|
@@ -10413,6 +10391,51 @@ module.exports = style; // @@ No way to do this in ESM
|
|
|
10413
10391
|
|
|
10414
10392
|
/***/ }),
|
|
10415
10393
|
|
|
10394
|
+
/***/ "./lib/styleConstants.js":
|
|
10395
|
+
/*!*******************************!*\
|
|
10396
|
+
!*** ./lib/styleConstants.js ***!
|
|
10397
|
+
\*******************************/
|
|
10398
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
10399
|
+
|
|
10400
|
+
"use strict";
|
|
10401
|
+
|
|
10402
|
+
|
|
10403
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
10404
|
+
value: true
|
|
10405
|
+
}));
|
|
10406
|
+
exports["default"] = void 0;
|
|
10407
|
+
var _default = exports["default"] = {
|
|
10408
|
+
highlightColor: '#7C4DFF',
|
|
10409
|
+
// Solid lavender https://design.inrupt.com/atomic-core/?cat=Core
|
|
10410
|
+
|
|
10411
|
+
formBorderColor: '#888888',
|
|
10412
|
+
// Mid-grey
|
|
10413
|
+
formHeadingColor: '#888888',
|
|
10414
|
+
// originally was brown; now grey
|
|
10415
|
+
lowProfileLinkColor: '#3B5998',
|
|
10416
|
+
// Grey-blue, e.g., for field labels linking to ontology
|
|
10417
|
+
formFieldNameBoxWidth: '8em',
|
|
10418
|
+
// The fixed amount to get form fields to line up
|
|
10419
|
+
// We put in the latter when switching away from using tables. However, getting
|
|
10420
|
+
// alignment between fields in different groups is a hard problem.
|
|
10421
|
+
|
|
10422
|
+
mediaModuleCanvasWidth: '640',
|
|
10423
|
+
mediaModuleCanvasHeight: '480',
|
|
10424
|
+
textInputSize: 20,
|
|
10425
|
+
// Rough default text input size, in characters
|
|
10426
|
+
tabBorderRadius: '0.2em',
|
|
10427
|
+
textInputBackgroundColor: '#eef',
|
|
10428
|
+
textInputBackgroundColorUneditable: '#fff',
|
|
10429
|
+
textInputColor: '#000',
|
|
10430
|
+
textInputColorPending: '#888',
|
|
10431
|
+
defaultErrorBackgroundColor: '#fee',
|
|
10432
|
+
participationDefaultBackground: 'white',
|
|
10433
|
+
basicMaxLength: '4096'
|
|
10434
|
+
};
|
|
10435
|
+
//# sourceMappingURL=styleConstants.js.map
|
|
10436
|
+
|
|
10437
|
+
/***/ }),
|
|
10438
|
+
|
|
10416
10439
|
/***/ "./lib/style_multiSelect.js":
|
|
10417
10440
|
/*!**********************************!*\
|
|
10418
10441
|
!*** ./lib/style_multiSelect.js ***!
|
|
@@ -12079,6 +12102,7 @@ function renderTableViewPane(doc, options) {
|
|
|
12079
12102
|
|
|
12080
12103
|
|
|
12081
12104
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
12105
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
12082
12106
|
Object.defineProperty(exports, "__esModule", ({
|
|
12083
12107
|
value: true
|
|
12084
12108
|
}));
|
|
@@ -12095,7 +12119,10 @@ var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/ru
|
|
|
12095
12119
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js"));
|
|
12096
12120
|
var _widgets = __webpack_require__(/*! ./widgets */ "./lib/widgets/index.js");
|
|
12097
12121
|
var _utils = __webpack_require__(/*! ./utils */ "./lib/utils/index.js");
|
|
12122
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ./style */ "./lib/style.js"));
|
|
12098
12123
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
12124
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12125
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12099
12126
|
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); }; }
|
|
12100
12127
|
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; } }
|
|
12101
12128
|
/**
|
|
@@ -12277,11 +12304,12 @@ var TabElement = /*#__PURE__*/function (_HTMLElement3) {
|
|
|
12277
12304
|
*
|
|
12278
12305
|
* @param options
|
|
12279
12306
|
*/
|
|
12307
|
+
var tabsDefaultBackgroundColor = '#ddddcc';
|
|
12280
12308
|
function tabWidget(options) {
|
|
12281
12309
|
var subject = options.subject;
|
|
12282
12310
|
var dom = options.dom || document;
|
|
12283
12311
|
var orientation = parseInt(options.orientation || '0');
|
|
12284
|
-
var backgroundColor = options.backgroundColor ||
|
|
12312
|
+
var backgroundColor = options.backgroundColor || tabsDefaultBackgroundColor;
|
|
12285
12313
|
var flipped = orientation & 2;
|
|
12286
12314
|
var vertical = orientation & 1;
|
|
12287
12315
|
var onClose = options.onClose;
|
|
@@ -12292,13 +12320,15 @@ function tabWidget(options) {
|
|
|
12292
12320
|
var bodyMainStyle = "flex: 2; width: auto; height: 100%; border: 0.1em; border-style: solid; border-color: ".concat(selectedColor, "; padding: 1em;");
|
|
12293
12321
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
12294
12322
|
|
|
12295
|
-
rootElement.setAttribute('style',
|
|
12323
|
+
rootElement.setAttribute('style', style.tabsRootElement);
|
|
12324
|
+
rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse;' : ';');
|
|
12296
12325
|
var navElement = rootElement.appendChild(dom.createElement('nav'));
|
|
12297
|
-
navElement.setAttribute('style',
|
|
12326
|
+
navElement.setAttribute('style', style.tabsNavElement);
|
|
12298
12327
|
var mainElement = rootElement.appendChild(dom.createElement('main'));
|
|
12299
|
-
mainElement.setAttribute('style',
|
|
12328
|
+
mainElement.setAttribute('style', style.tabsMainElement); // override tabbedtab.css
|
|
12300
12329
|
var tabContainer = navElement.appendChild(dom.createElement('ul'));
|
|
12301
|
-
tabContainer.setAttribute('style',
|
|
12330
|
+
tabContainer.setAttribute('style', style.tabContainer);
|
|
12331
|
+
tabContainer.style.flexDirection = "".concat(vertical ? 'column' : 'row');
|
|
12302
12332
|
var tabElement = 'li';
|
|
12303
12333
|
var bodyContainer = mainElement;
|
|
12304
12334
|
rootElement.tabContainer = tabContainer;
|
|
@@ -12318,7 +12348,7 @@ function tabWidget(options) {
|
|
|
12318
12348
|
rootElement.refresh = orderedSync;
|
|
12319
12349
|
orderedSync();
|
|
12320
12350
|
if (!options.startEmpty && tabContainer.children.length && options.selectedTab) {
|
|
12321
|
-
var selectedTab0 = Array.from(tabContainer.children) // Version left for
|
|
12351
|
+
var selectedTab0 = Array.from(tabContainer.children) // Version left for compatibility with ??
|
|
12322
12352
|
.map(function (tab) {
|
|
12323
12353
|
return tab.firstChild;
|
|
12324
12354
|
}).find(function (tab) {
|
|
@@ -12371,7 +12401,7 @@ function tabWidget(options) {
|
|
|
12371
12401
|
ele.setAttribute('style', unselectedStyle);
|
|
12372
12402
|
ele.subject = item;
|
|
12373
12403
|
var div = ele.appendChild(dom.createElement('button'));
|
|
12374
|
-
div.setAttribute('style',
|
|
12404
|
+
div.setAttribute('style', style.makeNewSlot);
|
|
12375
12405
|
div.onclick = function () {
|
|
12376
12406
|
resetTabStyle();
|
|
12377
12407
|
resetBodyStyle();
|
|
@@ -12388,7 +12418,7 @@ function tabWidget(options) {
|
|
|
12388
12418
|
if (options.renderTabSettings && ele.subject) {
|
|
12389
12419
|
var ellipsis = dom.createElement('button');
|
|
12390
12420
|
ellipsis.textContent = '...';
|
|
12391
|
-
ellipsis.setAttribute('style',
|
|
12421
|
+
ellipsis.setAttribute('style', style.ellipsis);
|
|
12392
12422
|
ellipsis.onclick = function () {
|
|
12393
12423
|
resetTabStyle();
|
|
12394
12424
|
resetBodyStyle();
|
|
@@ -13665,8 +13695,8 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
13665
13695
|
}));
|
|
13666
13696
|
exports.versionInfo = void 0;
|
|
13667
13697
|
var versionInfo = exports.versionInfo = {
|
|
13668
|
-
buildTime: '2023-
|
|
13669
|
-
commit: '
|
|
13698
|
+
buildTime: '2023-12-01T18:53:36Z',
|
|
13699
|
+
commit: '5d95a9f010c56a0e0f596df6fb0933c0ee542d1e',
|
|
13670
13700
|
npmInfo: {
|
|
13671
13701
|
'solid-ui': '2.4.30',
|
|
13672
13702
|
npm: '8.19.4',
|
|
@@ -15092,39 +15122,34 @@ exports.makeDropTarget = makeDropTarget;
|
|
|
15092
15122
|
exports.uploadFiles = uploadFiles;
|
|
15093
15123
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../debug */ "./lib/debug.js"));
|
|
15094
15124
|
var mime = _interopRequireWildcard(__webpack_require__(/*! mime-types */ "./node_modules/mime-types/index.js"));
|
|
15125
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15095
15126
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15096
15127
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15097
15128
|
/* Drag and drop common functionality
|
|
15098
15129
|
*
|
|
15099
15130
|
* It is easy to make something draggable, or to make it a drag target!
|
|
15100
|
-
* Just call the functions below.
|
|
15101
|
-
*
|
|
15131
|
+
* Just call the functions below. In a Solid world, any part of the UI which
|
|
15132
|
+
* represents one thing which has a URI, should be made draggable using makeDraggable.
|
|
15102
15133
|
* Any list of things should typically allow you to drag new members of the list
|
|
15103
15134
|
* onto it.
|
|
15104
|
-
* The file upload function uploadFiles is provided as often
|
|
15105
|
-
* desktop
|
|
15135
|
+
* The file upload function, uploadFiles, is provided as often as someone drags a file from the computer
|
|
15136
|
+
* desktop. You may want to upload it into the pod.
|
|
15106
15137
|
*/
|
|
15107
15138
|
|
|
15108
15139
|
/* global FileReader alert */
|
|
15109
15140
|
|
|
15110
15141
|
function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
15111
15142
|
var dragoverListener = function dragoverListener(e) {
|
|
15112
|
-
e.preventDefault(); //
|
|
15143
|
+
e.preventDefault(); // Need this; otherwise, drop does not work.
|
|
15113
15144
|
e.dataTransfer.dropEffect = 'copy';
|
|
15114
15145
|
};
|
|
15115
15146
|
var dragenterListener = function dragenterListener(e) {
|
|
15116
15147
|
debug.log('dragenter event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
15117
|
-
if (this.
|
|
15148
|
+
if (this.localStyle) {
|
|
15118
15149
|
// necessary not sure when
|
|
15119
15150
|
if (!this.savedStyle) {
|
|
15120
|
-
this.savedStyle =
|
|
15121
|
-
this.savedStyle.border = this.style.border;
|
|
15122
|
-
this.savedStyle.backgroundColor = this.style.backgroundColor;
|
|
15123
|
-
this.savedStyle.borderRadius = this.style.borderRadius;
|
|
15151
|
+
this.savedStyle = style.dragEvent;
|
|
15124
15152
|
}
|
|
15125
|
-
this.style.backgroundColor = '#ccc';
|
|
15126
|
-
this.style.border = '0.25em dashed black';
|
|
15127
|
-
this.style.borderRadius = '0.3em';
|
|
15128
15153
|
}
|
|
15129
15154
|
e.dataTransfer.dropEffect = 'link';
|
|
15130
15155
|
debug.log('dragenter event dropEffect 2: ' + e.dataTransfer.dropEffect);
|
|
@@ -15132,12 +15157,9 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
15132
15157
|
var dragleaveListener = function dragleaveListener(e) {
|
|
15133
15158
|
debug.log('dragleave event dropEffect: ' + e.dataTransfer.dropEffect);
|
|
15134
15159
|
if (this.savedStyle) {
|
|
15135
|
-
this.
|
|
15136
|
-
this.style.backgroundColor = this.savedStyle.backgroundColor;
|
|
15137
|
-
this.style.borderRadius = this.savedStyle.borderRadius;
|
|
15160
|
+
this.localStyle = this.savedStyle;
|
|
15138
15161
|
} else {
|
|
15139
|
-
this.
|
|
15140
|
-
this.style.border = '0em solid black';
|
|
15162
|
+
this.localStyle = style.dropEvent;
|
|
15141
15163
|
}
|
|
15142
15164
|
};
|
|
15143
15165
|
var dropListener = function dropListener(e) {
|
|
@@ -15176,7 +15198,7 @@ function makeDropTarget(ele, droppedURIHandler, droppedFileHandler) {
|
|
|
15176
15198
|
if (uris) {
|
|
15177
15199
|
droppedURIHandler(uris);
|
|
15178
15200
|
}
|
|
15179
|
-
this.
|
|
15201
|
+
this.localStyle = style.restoreStyle; // restore style
|
|
15180
15202
|
return false;
|
|
15181
15203
|
}; // dropListener
|
|
15182
15204
|
|
|
@@ -15296,11 +15318,17 @@ function uploadFiles(fetcher, files, fileBase, imageBase, successHandler) {
|
|
|
15296
15318
|
"use strict";
|
|
15297
15319
|
|
|
15298
15320
|
|
|
15321
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
15322
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
15299
15323
|
Object.defineProperty(exports, "__esModule", ({
|
|
15300
15324
|
value: true
|
|
15301
15325
|
}));
|
|
15302
15326
|
exports.errorMessageBlock = errorMessageBlock;
|
|
15303
15327
|
var _widgets = __webpack_require__(/*! ../widgets */ "./lib/widgets/index.js");
|
|
15328
|
+
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15329
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
|
|
15330
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15331
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
15304
15332
|
/**
|
|
15305
15333
|
* Create an error message block
|
|
15306
15334
|
* @param dom The DOM on which dom.createElement will be called
|
|
@@ -15329,8 +15357,9 @@ function errorMessageBlock(dom, err, backgroundColor, err2) {
|
|
|
15329
15357
|
}
|
|
15330
15358
|
div.appendChild((0, _widgets.cancelButton)(dom, function () {
|
|
15331
15359
|
if (div.parentNode) div.parentNode.removeChild(div);
|
|
15332
|
-
})).style =
|
|
15333
|
-
div.setAttribute('style',
|
|
15360
|
+
})).style = style.errorCancelButton;
|
|
15361
|
+
div.setAttribute('style', style.errorMessageBlockStyle);
|
|
15362
|
+
div.style.backgroundColor = backgroundColor || _styleConstants["default"].defaultErrorBackgroundColor;
|
|
15334
15363
|
return div;
|
|
15335
15364
|
}
|
|
15336
15365
|
//# sourceMappingURL=error.js.map
|
|
@@ -15427,6 +15456,7 @@ var _error = __webpack_require__(/*! ./error */ "./lib/widgets/error.js");
|
|
|
15427
15456
|
var _basic = __webpack_require__(/*! ./forms/basic */ "./lib/widgets/forms/basic.js");
|
|
15428
15457
|
var _autocompleteField = __webpack_require__(/*! ./forms/autocomplete/autocompleteField */ "./lib/widgets/forms/autocomplete/autocompleteField.js");
|
|
15429
15458
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../style */ "./lib/style.js"));
|
|
15459
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../styleConstants */ "./lib/styleConstants.js"));
|
|
15430
15460
|
var _iconBase = __webpack_require__(/*! ../iconBase */ "./lib/iconBase.js");
|
|
15431
15461
|
var log = _interopRequireWildcard(__webpack_require__(/*! ../log */ "./lib/log.js"));
|
|
15432
15462
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../ns */ "./lib/ns.js"));
|
|
@@ -16113,7 +16143,7 @@ _fieldFunction.field[ns.ui('MultiLineTextField').uri] = function (dom, container
|
|
|
16113
16143
|
box.style.display = 'flex';
|
|
16114
16144
|
box.style.flexDirection = 'row';
|
|
16115
16145
|
var left = box.appendChild(dom.createElement('div'));
|
|
16116
|
-
left.style.width =
|
|
16146
|
+
left.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
16117
16147
|
var right = box.appendChild(dom.createElement('div'));
|
|
16118
16148
|
left.appendChild((0, _basic.fieldLabel)(dom, property, form));
|
|
16119
16149
|
dataDoc = (0, _basic.fieldStore)(subject, property, dataDoc);
|
|
@@ -16538,7 +16568,7 @@ function promptForNew(dom, kb, subject, predicate, theClass, form, dataDoc, call
|
|
|
16538
16568
|
form = lists[0]; // Pick any one
|
|
16539
16569
|
}
|
|
16540
16570
|
log.debug('form is ' + form);
|
|
16541
|
-
box.setAttribute('style', "border: 0.05em solid ".concat(
|
|
16571
|
+
box.setAttribute('style', "border: 0.05em solid ".concat(_styleConstants["default"].formBorderColor, "; color: ").concat(_styleConstants["default"].formBorderColor)); // @@color?
|
|
16542
16572
|
box.innerHTML = '<h3>New ' + utils.label(theClass) + '</h3>';
|
|
16543
16573
|
var formFunction = (0, _fieldFunction.fieldFunction)(dom, form);
|
|
16544
16574
|
var object = newThing(dataDoc);
|
|
@@ -16597,12 +16627,12 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
16597
16627
|
submit.disabled = true;
|
|
16598
16628
|
submit.setAttribute('style', 'visibility: hidden; float: right;'); // Keep UI clean
|
|
16599
16629
|
field.disabled = true;
|
|
16600
|
-
field.style.color =
|
|
16630
|
+
field.style.color = _styleConstants["default"].textInputColorPending;
|
|
16601
16631
|
var ds = kb.statementsMatching(subject, predicate, null, dataDoc);
|
|
16602
16632
|
var is = $rdf.st(subject, predicate, field.value, dataDoc);
|
|
16603
16633
|
kb.updater.update(ds, is, function (uri, ok, body) {
|
|
16604
16634
|
if (ok) {
|
|
16605
|
-
field.style.color =
|
|
16635
|
+
field.style.color = _styleConstants["default"].textInputColor;
|
|
16606
16636
|
field.disabled = false;
|
|
16607
16637
|
} else {
|
|
16608
16638
|
group.appendChild((0, _error.errorMessageBlock)(dom, 'Error (while saving change to ' + dataDoc.uri + '): ' + body));
|
|
@@ -16631,7 +16661,7 @@ function makeDescription(dom, kb, subject, predicate, dataDoc, callbackFunction)
|
|
|
16631
16661
|
field.addEventListener('change', saveChange, true);
|
|
16632
16662
|
} else {
|
|
16633
16663
|
field.disabled = true; // @@ change color too
|
|
16634
|
-
field.style.backgroundColor =
|
|
16664
|
+
field.style.backgroundColor = _styleConstants["default"].textInputBackgroundColorUneditable;
|
|
16635
16665
|
}
|
|
16636
16666
|
return group;
|
|
16637
16667
|
}
|
|
@@ -16755,7 +16785,7 @@ function makeSelectForClassifierOptions(dom, kb, subject, predicate, possible, o
|
|
|
16755
16785
|
});
|
|
16756
16786
|
};
|
|
16757
16787
|
var select = dom.createElement('select');
|
|
16758
|
-
select.setAttribute('style', style.
|
|
16788
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
16759
16789
|
if (options.multiple) select.setAttribute('multiple', 'true');
|
|
16760
16790
|
select.currentURI = null;
|
|
16761
16791
|
select.refresh = function () {
|
|
@@ -16895,7 +16925,7 @@ function makeSelectForOptions(dom, kb, subject, predicate, possible, options, da
|
|
|
16895
16925
|
});
|
|
16896
16926
|
};
|
|
16897
16927
|
var select = dom.createElement('select');
|
|
16898
|
-
select.setAttribute('style', style.
|
|
16928
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
16899
16929
|
select.currentURI = null;
|
|
16900
16930
|
select.refresh = function () {
|
|
16901
16931
|
actual = getActual(); // refresh
|
|
@@ -17175,7 +17205,7 @@ function makeSelectForChoice(dom, container, kb, subject, predicate, inputPossib
|
|
|
17175
17205
|
select.refresh();
|
|
17176
17206
|
};
|
|
17177
17207
|
var select = dom.createElement('select');
|
|
17178
|
-
select.setAttribute('style', style.
|
|
17208
|
+
select.setAttribute('style', style.formSelectStyle);
|
|
17179
17209
|
select.setAttribute('id', 'formSelect');
|
|
17180
17210
|
select.currentURI = null;
|
|
17181
17211
|
for (var uri in optionsFromClassUIfrom) {
|
|
@@ -17963,6 +17993,7 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
17963
17993
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
17964
17994
|
var debug = _interopRequireWildcard(__webpack_require__(/*! ../../../debug */ "./lib/debug.js"));
|
|
17965
17995
|
var style = _interopRequireWildcard(__webpack_require__(/*! ../../../style */ "./lib/style.js"));
|
|
17996
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../../styleConstants */ "./lib/styleConstants.js"));
|
|
17966
17997
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../../../widgets */ "./lib/widgets/index.js"));
|
|
17967
17998
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
17968
17999
|
var _publicData = __webpack_require__(/*! ./publicData */ "./lib/widgets/forms/autocomplete/publicData.js");
|
|
@@ -18362,7 +18393,7 @@ function _renderAutoComplete() {
|
|
|
18362
18393
|
searchInput = cell.appendChild(dom.createElement('input'));
|
|
18363
18394
|
searchInput.setAttribute('type', 'text');
|
|
18364
18395
|
initialize();
|
|
18365
|
-
size = acOptions.size ||
|
|
18396
|
+
size = acOptions.size || _styleConstants["default"].textInputSize || 20;
|
|
18366
18397
|
searchInput.setAttribute('size', size);
|
|
18367
18398
|
searchInput.setAttribute('data-testid', 'autocomplete-input');
|
|
18368
18399
|
searchInputStyle = style.textInputStyle ||
|
|
@@ -19246,6 +19277,7 @@ function _getDbpediaDetails() {
|
|
|
19246
19277
|
"use strict";
|
|
19247
19278
|
|
|
19248
19279
|
|
|
19280
|
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
|
19249
19281
|
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js");
|
|
19250
19282
|
Object.defineProperty(exports, "__esModule", ({
|
|
19251
19283
|
value: true
|
|
@@ -19258,6 +19290,7 @@ var _rdflib = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index
|
|
|
19258
19290
|
var _solidLogic = __webpack_require__(/*! solid-logic */ "./node_modules/solid-logic/lib/index.js");
|
|
19259
19291
|
var ns = _interopRequireWildcard(__webpack_require__(/*! ../../ns */ "./lib/ns.js"));
|
|
19260
19292
|
var _style = __webpack_require__(/*! ../../style */ "./lib/style.js");
|
|
19293
|
+
var _styleConstants = _interopRequireDefault(__webpack_require__(/*! ../../styleConstants */ "./lib/styleConstants.js"));
|
|
19261
19294
|
var _utils = __webpack_require__(/*! ../../utils */ "./lib/utils/index.js");
|
|
19262
19295
|
var _error = __webpack_require__(/*! ../error */ "./lib/widgets/error.js");
|
|
19263
19296
|
var _fieldFunction = __webpack_require__(/*! ./fieldFunction */ "./lib/widgets/forms/fieldFunction.js");
|
|
@@ -19273,7 +19306,7 @@ function renderNameValuePair(dom, kb, box, form, label) {
|
|
|
19273
19306
|
box.style.display = 'flex';
|
|
19274
19307
|
box.style.flexDirection = 'row';
|
|
19275
19308
|
var lhs = box.appendChild(dom.createElement('div'));
|
|
19276
|
-
lhs.style.width =
|
|
19309
|
+
lhs.style.width = _styleConstants["default"].formFieldNameBoxWidth;
|
|
19277
19310
|
var rhs = box.appendChild(dom.createElement('div'));
|
|
19278
19311
|
lhs.setAttribute('class', 'formFieldName');
|
|
19279
19312
|
lhs.setAttribute('style', _style.formFieldNameBoxStyle);
|
|
@@ -19378,10 +19411,10 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
19378
19411
|
field.style = style;
|
|
19379
19412
|
rhs.appendChild(field);
|
|
19380
19413
|
field.setAttribute('type', params.type ? params.type : 'text');
|
|
19381
|
-
var size = kb.anyJS(form, ns.ui('size')) ||
|
|
19414
|
+
var size = kb.anyJS(form, ns.ui('size')) || _styleConstants["default"].textInputSize || 20;
|
|
19382
19415
|
field.setAttribute('size', size);
|
|
19383
19416
|
var maxLength = kb.any(form, ns.ui('maxLength'));
|
|
19384
|
-
field.setAttribute('maxLength', maxLength ? '' + maxLength :
|
|
19417
|
+
field.setAttribute('maxLength', maxLength ? '' + maxLength : _styleConstants["default"].basicMaxLength);
|
|
19385
19418
|
doc = doc || fieldStore(subject, property, doc);
|
|
19386
19419
|
var obj = kb.any(subject, property, undefined, doc);
|
|
19387
19420
|
if (!obj) {
|
|
@@ -19403,7 +19436,6 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
19403
19436
|
field.readOnly = true // was: disabled. readOnly is better
|
|
19404
19437
|
;
|
|
19405
19438
|
field.style = _style.textInputStyleUneditable + paramStyle;
|
|
19406
|
-
// backgroundColor = textInputBackgroundColorUneditable
|
|
19407
19439
|
if (suppressEmptyUneditable && field.value === '') {
|
|
19408
19440
|
box.style.display = 'none'; // clutter
|
|
19409
19441
|
}
|
|
@@ -19642,10 +19674,10 @@ var fieldParams = exports.fieldParams = (_fieldParams = {}, (0, _defineProperty2
|
|
|
19642
19674
|
style: _style.formGroupStyle
|
|
19643
19675
|
}), ns.ui('Comment').uri, {
|
|
19644
19676
|
element: 'p',
|
|
19645
|
-
style: _style.commentStyle
|
|
19677
|
+
style: _style.commentStyle
|
|
19646
19678
|
}), ns.ui('Heading').uri, {
|
|
19647
19679
|
element: 'h3',
|
|
19648
|
-
style: _style.formHeadingStyle
|
|
19680
|
+
style: _style.formHeadingStyle
|
|
19649
19681
|
}));
|
|
19650
19682
|
//# sourceMappingURL=fieldParams.js.map
|
|
19651
19683
|
|