solid-ui 3.0.3 → 3.0.4-1038f4a

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.
@@ -10983,7 +10983,7 @@ function attachmentList(dom, subject, div) {
10983
10983
  var attachmentRight = attachmentOne.appendChild(dom.createElement('td'));
10984
10984
  var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
10985
10985
  attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
10986
- ;
10986
+ ;
10987
10987
  attachmentOuter.refresh = refresh; // Participate in downstream changes
10988
10988
  // ;(attachmentTable as any).refresh = refresh <- outer should be best?
10989
10989
 
@@ -18385,6 +18385,8 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18385
18385
  field.style = inputStyle;
18386
18386
  rhs.appendChild(field);
18387
18387
  field.setAttribute('type', params.type ? params.type : 'text');
18388
+ var fieldType = (field.getAttribute('type') || '').toLowerCase();
18389
+ var deferWhileFocused = fieldType === 'date' || fieldType === 'datetime-local';
18388
18390
  var size = kb.anyJS(form, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.ui('size')) || _styleConstants__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.textInputSize || 20;
18389
18391
  field.setAttribute('size', size);
18390
18392
  var maxLength = kb.any(form, _ns__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.ui('maxLength'));
@@ -18408,7 +18410,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18408
18410
  }
18409
18411
  if (!kb.updater.editable(doc.uri)) {
18410
18412
  field.readOnly = true // was: disabled. readOnly is better
18411
- ;
18413
+ ;
18412
18414
  field.style = _style__WEBPACK_IMPORTED_MODULE_3__/* .style */ .i.textInputStyleUneditable + paramStyle;
18413
18415
  if (suppressEmptyUneditable && field.value === '') {
18414
18416
  box.style.display = 'none'; // clutter
@@ -18423,9 +18425,13 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18423
18425
  }
18424
18426
  }, true);
18425
18427
  field.addEventListener('change', function (_e) {
18428
+ if (deferWhileFocused && dom.activeElement === field) return;
18426
18429
  // i.e. lose focus with changed data
18427
18430
  if (params.pattern && !field.value.match(params.pattern)) return;
18428
- field.disabled = true; // See if this stops getting two dates from fumbling e.g the chrome datepicker.
18431
+ var disabledForSave = !deferWhileFocused;
18432
+ if (disabledForSave) {
18433
+ field.disabled = true; // See if this stops getting two dates from fumbling e.g the chrome datepicker.
18434
+ }
18429
18435
  field.setAttribute('style', inputStyle + 'color: gray;'); // pending
18430
18436
  var ds = kb.statementsMatching(subject, property); // remove any multiple values
18431
18437
  var result;
@@ -18493,7 +18499,9 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
18493
18499
  updateMany(ds, is, function (uri, ok, body) {
18494
18500
  // kb.updater.update(ds, is, function (uri, ok, body) {
18495
18501
  if (ok) {
18496
- field.disabled = false;
18502
+ if (disabledForSave) {
18503
+ field.disabled = false;
18504
+ }
18497
18505
  field.setAttribute('style', inputStyle);
18498
18506
  } else {
18499
18507
  box.appendChild((0,_error__WEBPACK_IMPORTED_MODULE_6__/* .errorMessageBlock */ .F)(dom, body));
@@ -18771,10 +18779,19 @@ function tabWidget(options) {
18771
18779
  });
18772
18780
  var tab = selectedTab1 || selectedTab0 || tabContainer.children[0];
18773
18781
  var clickMe = tab.firstChild;
18774
- // @ts-ignore
18775
- if (clickMe) clickMe.click();
18782
+ if (clickMe !== null && clickMe !== void 0 && clickMe.click) {
18783
+ clickMe.click();
18784
+ } else if (tab instanceof HTMLElement) {
18785
+ tab.click();
18786
+ }
18776
18787
  } else if (!options.startEmpty) {
18777
- tabContainer.children[0].firstChild.click(); // Open first tab
18788
+ var firstTab = tabContainer.children[0];
18789
+ var clickTarget = firstTab === null || firstTab === void 0 ? void 0 : firstTab.firstChild;
18790
+ if (clickTarget !== null && clickTarget !== void 0 && clickTarget.click) {
18791
+ clickTarget.click();
18792
+ } else if (firstTab instanceof HTMLElement) {
18793
+ firstTab.click(); // Open first tab
18794
+ }
18778
18795
  }
18779
18796
  return rootElement;
18780
18797
  function addCancelButton(tabContainer) {
@@ -20212,7 +20229,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
20212
20229
  // if (!confirm('Save picture to ' + destination + ' ?')) return
20213
20230
  _debug__WEBPACK_IMPORTED_MODULE_2__/* .log */ .Rm('Putting ' + blob.size + ' bytes of ' + contentType + ' to ' + destination)
20214
20231
  // @@ TODO Remove casting
20215
- ;
20232
+ ;
20216
20233
  store.fetcher.webOperation('PUT', destination.uri, {
20217
20234
  data: blob,
20218
20235
  contentType: contentType
@@ -25177,7 +25194,7 @@ function _toConsumableArray(r) {
25177
25194
  /**
25178
25195
  * Default signup endpoints (list of identity providers)
25179
25196
  */
25180
- signupEndpoint: 'https://solidproject.org/use-solid/',
25197
+ signupEndpoint: 'https://solidproject.org/get_a_pod',
25181
25198
  /**
25182
25199
  * Default height of the Signup popup window, in pixels
25183
25200
  */