solid-ui 2.5.1 → 2.6.0
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/README.md +4 -0
- package/dist/841.solid-ui.min.js +1 -1
- package/dist/841.solid-ui.min.js.map +1 -1
- package/dist/_2b19.solid-ui.js.map +1 -1
- package/dist/solid-ui.js +42754 -45728
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.LICENSE.txt +1 -5
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/acl/access-controller.js +48 -49
- package/lib/acl/access-controller.js.map +1 -1
- package/lib/acl/access-groups.js +40 -40
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl-control.js +18 -19
- package/lib/acl/acl-control.js.map +1 -1
- package/lib/acl/acl.js +4 -5
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.js +51 -52
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/chat/bookmarks.js +76 -77
- package/lib/chat/bookmarks.js.map +1 -1
- package/lib/chat/chatLogic.js +74 -75
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/chat/dateFolder.js +66 -67
- package/lib/chat/dateFolder.js.map +1 -1
- package/lib/chat/infinite.js +218 -220
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/keys.js +62 -63
- package/lib/chat/keys.js.map +1 -1
- package/lib/chat/message.js +98 -100
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/messageTools.js +99 -100
- package/lib/chat/messageTools.js.map +1 -1
- package/lib/chat/signature.d.ts.map +1 -1
- package/lib/chat/signature.js +0 -1
- package/lib/chat/signature.js.map +1 -1
- package/lib/chat/thread.js +57 -61
- package/lib/chat/thread.js.map +1 -1
- package/lib/create/create.js +1 -2
- package/lib/create/create.js.map +1 -1
- package/lib/folders.js +1 -4
- package/lib/folders.js.map +1 -1
- package/lib/footer/index.d.ts.map +1 -1
- package/lib/footer/index.js +14 -16
- package/lib/footer/index.js.map +1 -1
- package/lib/header/index.js +34 -36
- package/lib/header/index.js.map +1 -1
- package/lib/iconBase.d.ts.map +1 -1
- package/lib/iconBase.js +0 -1
- package/lib/iconBase.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/log.d.ts +7 -7
- package/lib/log.d.ts.map +1 -1
- package/lib/log.js +2 -2
- package/lib/log.js.map +1 -1
- package/lib/login/login.js +217 -222
- package/lib/login/login.js.map +1 -1
- package/lib/matrix/matrix.js +1 -2
- package/lib/matrix/matrix.js.map +1 -1
- package/lib/matrix/types.js.map +1 -1
- package/lib/media/media-capture.js +3 -4
- package/lib/media/media-capture.js.map +1 -1
- package/lib/messageArea.js +1 -4
- package/lib/messageArea.js.map +1 -1
- package/lib/ns.js +1 -2
- package/lib/ns.js.map +1 -1
- package/lib/pad.js +1 -2
- package/lib/pad.js.map +1 -1
- package/lib/participation.js +1 -2
- package/lib/participation.js.map +1 -1
- package/lib/preferences.js +1 -2
- package/lib/preferences.js.map +1 -1
- package/lib/table.js +1 -2
- package/lib/table.js.map +1 -1
- package/lib/tabs.d.ts.map +1 -1
- package/lib/tabs.js +1 -2
- package/lib/tabs.js.map +1 -1
- package/lib/utils/headerFooterHelpers.d.ts.map +1 -1
- package/lib/utils/headerFooterHelpers.js +36 -36
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/utils/index.js +1 -2
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/keyHelpers/accessData.d.ts.map +1 -1
- package/lib/utils/keyHelpers/accessData.js +33 -34
- package/lib/utils/keyHelpers/accessData.js.map +1 -1
- package/lib/utils/keyHelpers/acl.d.ts.map +1 -1
- package/lib/utils/keyHelpers/acl.js +21 -22
- package/lib/utils/keyHelpers/acl.js.map +1 -1
- package/lib/utils/keyHelpers/otherHelpers.d.ts.map +1 -1
- package/lib/utils/keyHelpers/otherHelpers.js +1 -2
- package/lib/utils/keyHelpers/otherHelpers.js.map +1 -1
- package/lib/utils/label.js +1 -2
- package/lib/utils/label.js.map +1 -1
- package/lib/versionInfo.d.ts +4 -3
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +30 -30
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons/iconLinks.d.ts.map +1 -1
- package/lib/widgets/buttons/iconLinks.js +2 -2
- package/lib/widgets/buttons/iconLinks.js.map +1 -1
- package/lib/widgets/buttons.d.ts +1 -1
- package/lib/widgets/buttons.d.ts.map +1 -1
- package/lib/widgets/buttons.js +1 -3
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/dragAndDrop.js +1 -2
- package/lib/widgets/dragAndDrop.js.map +1 -1
- package/lib/widgets/error.js +1 -2
- package/lib/widgets/error.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteBar.js +47 -48
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js +38 -39
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js +44 -45
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js +23 -24
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +91 -93
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.js +2 -3
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms/comment.js +1 -2
- package/lib/widgets/forms/comment.js.map +1 -1
- package/lib/widgets/forms/fieldParams.js +1 -2
- package/lib/widgets/forms/fieldParams.js.map +1 -1
- package/lib/widgets/forms/formStyle.js +1 -2
- package/lib/widgets/forms/formStyle.js.map +1 -1
- package/lib/widgets/forms.js +79 -80
- package/lib/widgets/forms.js.map +1 -1
- package/lib/widgets/index.js +1 -2
- package/lib/widgets/index.js.map +1 -1
- package/lib/widgets/multiSelect.js +1 -2
- package/lib/widgets/multiSelect.js.map +1 -1
- package/lib/widgets/peoplePicker.js +1 -2
- package/lib/widgets/peoplePicker.js.map +1 -1
- package/lib/widgets/widgetHelpers.d.ts.map +1 -1
- package/lib/widgets/widgetHelpers.js +3 -3
- package/lib/widgets/widgetHelpers.js.map +1 -1
- package/package.json +57 -57
package/lib/widgets/forms.js
CHANGED
|
@@ -90,14 +90,13 @@ var _solidLogic = require("solid-logic");
|
|
|
90
90
|
var utils = _interopRequireWildcard(require("../utils"));
|
|
91
91
|
var _multiSelect = require("./multiSelect");
|
|
92
92
|
var widgets = _interopRequireWildcard(require("../widgets"));
|
|
93
|
-
function
|
|
94
|
-
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 && {}.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; }
|
|
93
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
|
|
95
94
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
96
95
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
97
96
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /* F O R M S
|
|
98
97
|
*
|
|
99
98
|
* A Vanilla Dom implementation of the form language
|
|
100
|
-
*/ /*
|
|
99
|
+
*/ /* global alert */ // Note default export
|
|
101
100
|
var checkMarkCharacter = "\u2713";
|
|
102
101
|
var cancelCharacter = "\u2715";
|
|
103
102
|
var dashCharacter = '-';
|
|
@@ -307,44 +306,43 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
307
306
|
*/
|
|
308
307
|
function _addItem() {
|
|
309
308
|
_addItem = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
310
|
-
var object, toBeInserted, msg;
|
|
311
|
-
return _regenerator["default"].wrap(function
|
|
309
|
+
var object, toBeInserted, msg, _t;
|
|
310
|
+
return _regenerator["default"].wrap(function (_context6) {
|
|
312
311
|
while (1) switch (_context6.prev = _context6.next) {
|
|
313
312
|
case 0:
|
|
314
313
|
object = newThing(dataDoc); // by default just add new nodes
|
|
315
314
|
if (!ordered) {
|
|
316
|
-
_context6.next =
|
|
315
|
+
_context6.next = 2;
|
|
317
316
|
break;
|
|
318
317
|
}
|
|
319
318
|
createListIfNecessary(); // Sets list and unsavedList
|
|
320
319
|
list.elements.push(object);
|
|
321
|
-
_context6.next =
|
|
320
|
+
_context6.next = 1;
|
|
322
321
|
return saveListThenRefresh();
|
|
323
|
-
case
|
|
324
|
-
_context6.next =
|
|
322
|
+
case 1:
|
|
323
|
+
_context6.next = 7;
|
|
325
324
|
break;
|
|
326
|
-
case
|
|
327
|
-
// eslint-disable-next-line multiline-ternary
|
|
325
|
+
case 2:
|
|
328
326
|
toBeInserted = reverse ? [$rdf.st(object, property, subject, dataDoc)] : [$rdf.st(subject, property, object, dataDoc)];
|
|
329
|
-
_context6.prev =
|
|
330
|
-
_context6.next =
|
|
327
|
+
_context6.prev = 3;
|
|
328
|
+
_context6.next = 4;
|
|
331
329
|
return kb.updater.update([], toBeInserted);
|
|
332
|
-
case
|
|
333
|
-
_context6.next =
|
|
330
|
+
case 4:
|
|
331
|
+
_context6.next = 6;
|
|
334
332
|
break;
|
|
335
|
-
case
|
|
336
|
-
_context6.prev =
|
|
337
|
-
|
|
338
|
-
msg = 'Error adding to unordered multiple: ' +
|
|
333
|
+
case 5:
|
|
334
|
+
_context6.prev = 5;
|
|
335
|
+
_t = _context6["catch"](3);
|
|
336
|
+
msg = 'Error adding to unordered multiple: ' + _t;
|
|
339
337
|
box.appendChild((0, _error.errorMessageBlock)(dom, msg));
|
|
340
338
|
debug.error(msg);
|
|
341
|
-
case
|
|
339
|
+
case 6:
|
|
342
340
|
refresh();
|
|
343
|
-
case
|
|
341
|
+
case 7:
|
|
344
342
|
case "end":
|
|
345
343
|
return _context6.stop();
|
|
346
344
|
}
|
|
347
|
-
}, _callee6, null, [[
|
|
345
|
+
}, _callee6, null, [[3, 5]]);
|
|
348
346
|
}));
|
|
349
347
|
return _addItem.apply(this, arguments);
|
|
350
348
|
}
|
|
@@ -359,37 +357,37 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
359
357
|
function _deleteThisItem() {
|
|
360
358
|
_deleteThisItem = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
361
359
|
var i, del;
|
|
362
|
-
return _regenerator["default"].wrap(function
|
|
360
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
363
361
|
while (1) switch (_context3.prev = _context3.next) {
|
|
364
362
|
case 0:
|
|
365
363
|
if (!ordered) {
|
|
366
|
-
_context3.next =
|
|
364
|
+
_context3.next = 5;
|
|
367
365
|
break;
|
|
368
366
|
}
|
|
369
367
|
debug.log('pre delete: ' + debugString(list.elements));
|
|
370
368
|
i = 0;
|
|
371
|
-
case
|
|
369
|
+
case 1:
|
|
372
370
|
if (!(i < list.elements.length)) {
|
|
373
|
-
_context3.next =
|
|
371
|
+
_context3.next = 4;
|
|
374
372
|
break;
|
|
375
373
|
}
|
|
376
374
|
if (!list.elements[i].sameTerm(object)) {
|
|
377
|
-
_context3.next =
|
|
375
|
+
_context3.next = 3;
|
|
378
376
|
break;
|
|
379
377
|
}
|
|
380
378
|
list.elements.splice(i, 1);
|
|
381
|
-
_context3.next =
|
|
379
|
+
_context3.next = 2;
|
|
382
380
|
return saveListThenRefresh();
|
|
383
|
-
case
|
|
381
|
+
case 2:
|
|
384
382
|
return _context3.abrupt("return");
|
|
385
|
-
case
|
|
383
|
+
case 3:
|
|
386
384
|
i++;
|
|
387
|
-
_context3.next =
|
|
385
|
+
_context3.next = 1;
|
|
388
386
|
break;
|
|
389
|
-
case
|
|
390
|
-
_context3.next =
|
|
387
|
+
case 4:
|
|
388
|
+
_context3.next = 6;
|
|
391
389
|
break;
|
|
392
|
-
case
|
|
390
|
+
case 5:
|
|
393
391
|
// unordered
|
|
394
392
|
if (kb.holds(subject, property, object, dataDoc)) {
|
|
395
393
|
del = [$rdf.st(subject, property, object, dataDoc)];
|
|
@@ -401,7 +399,7 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
401
399
|
}
|
|
402
400
|
});
|
|
403
401
|
}
|
|
404
|
-
case
|
|
402
|
+
case 6:
|
|
405
403
|
case "end":
|
|
406
404
|
return _context3.stop();
|
|
407
405
|
}
|
|
@@ -420,57 +418,57 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
420
418
|
function _moveThisItem() {
|
|
421
419
|
_moveThisItem = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4(event, upwards) {
|
|
422
420
|
var i;
|
|
423
|
-
return _regenerator["default"].wrap(function
|
|
421
|
+
return _regenerator["default"].wrap(function (_context4) {
|
|
424
422
|
while (1) switch (_context4.prev = _context4.next) {
|
|
425
423
|
case 0:
|
|
426
424
|
// @@ possibly, allow shift+click to do move to top or bottom?
|
|
427
425
|
debug.log('pre move: ' + debugString(list.elements));
|
|
428
426
|
i = 0;
|
|
429
|
-
case
|
|
427
|
+
case 1:
|
|
430
428
|
if (!(i < list.elements.length)) {
|
|
431
|
-
_context4.next =
|
|
429
|
+
_context4.next = 3;
|
|
432
430
|
break;
|
|
433
431
|
}
|
|
434
432
|
if (!list.elements[i].sameTerm(object)) {
|
|
435
|
-
_context4.next =
|
|
433
|
+
_context4.next = 2;
|
|
436
434
|
break;
|
|
437
435
|
}
|
|
438
|
-
return _context4.abrupt("
|
|
439
|
-
case
|
|
436
|
+
return _context4.abrupt("continue", 3);
|
|
437
|
+
case 2:
|
|
440
438
|
i++;
|
|
441
|
-
_context4.next =
|
|
439
|
+
_context4.next = 1;
|
|
442
440
|
break;
|
|
443
|
-
case
|
|
441
|
+
case 3:
|
|
444
442
|
if (i === list.elements.length) {
|
|
445
443
|
alert('list move: not found element for ' + object);
|
|
446
444
|
}
|
|
447
445
|
if (!upwards) {
|
|
448
|
-
_context4.next =
|
|
446
|
+
_context4.next = 5;
|
|
449
447
|
break;
|
|
450
448
|
}
|
|
451
449
|
if (!(i === 0)) {
|
|
452
|
-
_context4.next =
|
|
450
|
+
_context4.next = 4;
|
|
453
451
|
break;
|
|
454
452
|
}
|
|
455
453
|
alert('@@ boop - already at top -temp message'); // @@ make boop sound
|
|
456
454
|
return _context4.abrupt("return");
|
|
457
|
-
case
|
|
455
|
+
case 4:
|
|
458
456
|
list.elements.splice(i - 1, 2, list.elements[i], list.elements[i - 1]);
|
|
459
|
-
_context4.next =
|
|
457
|
+
_context4.next = 7;
|
|
460
458
|
break;
|
|
461
|
-
case
|
|
459
|
+
case 5:
|
|
462
460
|
if (!(i === list.elements.length - 1)) {
|
|
463
|
-
_context4.next =
|
|
461
|
+
_context4.next = 6;
|
|
464
462
|
break;
|
|
465
463
|
}
|
|
466
464
|
alert('@@ boop - already at bottom -temp message'); // @@ make boop sound
|
|
467
465
|
return _context4.abrupt("return");
|
|
468
|
-
case
|
|
466
|
+
case 6:
|
|
469
467
|
list.elements.splice(i, 2, list.elements[i + 1], list.elements[i]);
|
|
470
|
-
case
|
|
471
|
-
_context4.next =
|
|
468
|
+
case 7:
|
|
469
|
+
_context4.next = 8;
|
|
472
470
|
return saveListThenRefresh();
|
|
473
|
-
case
|
|
471
|
+
case 8:
|
|
474
472
|
case "end":
|
|
475
473
|
return _context4.stop();
|
|
476
474
|
}
|
|
@@ -502,7 +500,7 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
502
500
|
frame.style.gridTemplateRows = '50% 50%';
|
|
503
501
|
var moveUpButton = buttons.button(dom, _iconBase.icons.iconBase + 'noun_1369237.svg', 'Move Up', /*#__PURE__*/function () {
|
|
504
502
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(event) {
|
|
505
|
-
return _regenerator["default"].wrap(function
|
|
503
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
506
504
|
while (1) switch (_context.prev = _context.next) {
|
|
507
505
|
case 0:
|
|
508
506
|
return _context.abrupt("return", moveThisItem(event, true));
|
|
@@ -518,7 +516,7 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
518
516
|
}());
|
|
519
517
|
var moveDownButton = buttons.button(dom, _iconBase.icons.iconBase + 'noun_1369241.svg', 'Move Down', /*#__PURE__*/function () {
|
|
520
518
|
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(event) {
|
|
521
|
-
return _regenerator["default"].wrap(function
|
|
519
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
522
520
|
while (1) switch (_context2.prev = _context2.next) {
|
|
523
521
|
case 0:
|
|
524
522
|
return _context2.abrupt("return", moveThisItem(event, false));
|
|
@@ -611,12 +609,12 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
611
609
|
prompt.textContent = (values.length === 0 ? 'Add another ' : 'Add ') + multipleUIlabel;
|
|
612
610
|
tail.addEventListener('click', /*#__PURE__*/function () {
|
|
613
611
|
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5(_eventNotUsed) {
|
|
614
|
-
return _regenerator["default"].wrap(function
|
|
612
|
+
return _regenerator["default"].wrap(function (_context5) {
|
|
615
613
|
while (1) switch (_context5.prev = _context5.next) {
|
|
616
614
|
case 0:
|
|
617
|
-
_context5.next =
|
|
615
|
+
_context5.next = 1;
|
|
618
616
|
return addItem();
|
|
619
|
-
case
|
|
617
|
+
case 1:
|
|
620
618
|
case "end":
|
|
621
619
|
return _context5.stop();
|
|
622
620
|
}
|
|
@@ -643,30 +641,31 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
643
641
|
}
|
|
644
642
|
function _saveListThenRefresh() {
|
|
645
643
|
_saveListThenRefresh = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
646
|
-
|
|
644
|
+
var _t2;
|
|
645
|
+
return _regenerator["default"].wrap(function (_context7) {
|
|
647
646
|
while (1) switch (_context7.prev = _context7.next) {
|
|
648
647
|
case 0:
|
|
649
648
|
debug.log('save list: ' + debugString(list.elements)); // 20191214
|
|
650
649
|
|
|
651
650
|
createListIfNecessary();
|
|
652
|
-
_context7.prev =
|
|
653
|
-
_context7.next =
|
|
651
|
+
_context7.prev = 1;
|
|
652
|
+
_context7.next = 2;
|
|
654
653
|
return kb.fetcher.putBack(dataDoc);
|
|
655
|
-
case
|
|
656
|
-
_context7.next =
|
|
654
|
+
case 2:
|
|
655
|
+
_context7.next = 4;
|
|
657
656
|
break;
|
|
658
|
-
case
|
|
659
|
-
_context7.prev =
|
|
660
|
-
|
|
661
|
-
box.appendChild((0, _error.errorMessageBlock)(dom, 'Error trying to put back a list: ' +
|
|
657
|
+
case 3:
|
|
658
|
+
_context7.prev = 3;
|
|
659
|
+
_t2 = _context7["catch"](1);
|
|
660
|
+
box.appendChild((0, _error.errorMessageBlock)(dom, 'Error trying to put back a list: ' + _t2));
|
|
662
661
|
return _context7.abrupt("return");
|
|
663
|
-
case
|
|
662
|
+
case 4:
|
|
664
663
|
refresh();
|
|
665
|
-
case
|
|
664
|
+
case 5:
|
|
666
665
|
case "end":
|
|
667
666
|
return _context7.stop();
|
|
668
667
|
}
|
|
669
|
-
}, _callee7, null, [[
|
|
668
|
+
}, _callee7, null, [[1, 3]]);
|
|
670
669
|
}));
|
|
671
670
|
return _saveListThenRefresh.apply(this, arguments);
|
|
672
671
|
}
|
|
@@ -689,31 +688,31 @@ _fieldFunction.field[ns.ui('Multiple').uri] = function (dom, container, already,
|
|
|
689
688
|
function _asyncStuff() {
|
|
690
689
|
_asyncStuff = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
691
690
|
var extra, j;
|
|
692
|
-
return _regenerator["default"].wrap(function
|
|
691
|
+
return _regenerator["default"].wrap(function (_context8) {
|
|
693
692
|
while (1) switch (_context8.prev = _context8.next) {
|
|
694
693
|
case 0:
|
|
695
694
|
extra = min - values.length;
|
|
696
695
|
if (!(extra > 0)) {
|
|
697
|
-
_context8.next =
|
|
696
|
+
_context8.next = 4;
|
|
698
697
|
break;
|
|
699
698
|
}
|
|
700
699
|
j = 0;
|
|
701
|
-
case
|
|
700
|
+
case 1:
|
|
702
701
|
if (!(j < extra)) {
|
|
703
|
-
_context8.next =
|
|
702
|
+
_context8.next = 3;
|
|
704
703
|
break;
|
|
705
704
|
}
|
|
706
705
|
debug.log('Adding extra: min ' + min);
|
|
707
|
-
_context8.next =
|
|
706
|
+
_context8.next = 2;
|
|
708
707
|
return addItem();
|
|
709
|
-
case
|
|
708
|
+
case 2:
|
|
710
709
|
j++;
|
|
711
|
-
_context8.next =
|
|
710
|
+
_context8.next = 1;
|
|
712
711
|
break;
|
|
713
|
-
case
|
|
714
|
-
_context8.next =
|
|
712
|
+
case 3:
|
|
713
|
+
_context8.next = 4;
|
|
715
714
|
return saveListThenRefresh();
|
|
716
|
-
case
|
|
715
|
+
case 4:
|
|
717
716
|
case "end":
|
|
718
717
|
return _context8.stop();
|
|
719
718
|
}
|