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