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.
- package/dist/solid-ui.esm.js +26 -9
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +2 -2
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +26 -9
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +2 -2
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +13 -3
- package/dist/tabs.js.map +1 -1
- package/dist/versionInfo.js +14 -14
- package/dist/widgets/forms/basic.d.ts.map +1 -1
- package/dist/widgets/forms/basic.js +11 -2
- package/dist/widgets/forms/basic.js.map +1 -1
- package/package.json +9 -9
package/dist/solid-ui.js
CHANGED
|
@@ -4091,7 +4091,7 @@ function attachmentList(dom, subject, div) {
|
|
|
4091
4091
|
var attachmentRight = attachmentOne.appendChild(dom.createElement('td'));
|
|
4092
4092
|
var attachmentTable = attachmentRight.appendChild(dom.createElement('table'));
|
|
4093
4093
|
attachmentTable.appendChild(dom.createElement('tr')) // attachmentTableTop
|
|
4094
|
-
|
|
4094
|
+
;
|
|
4095
4095
|
attachmentOuter.refresh = refresh; // Participate in downstream changes
|
|
4096
4096
|
// ;(attachmentTable as any).refresh = refresh <- outer should be best?
|
|
4097
4097
|
|
|
@@ -4558,7 +4558,7 @@ function _defineProperty(e, r, t) {
|
|
|
4558
4558
|
/**
|
|
4559
4559
|
* Default signup endpoints (list of identity providers)
|
|
4560
4560
|
*/
|
|
4561
|
-
signupEndpoint: 'https://solidproject.org/
|
|
4561
|
+
signupEndpoint: 'https://solidproject.org/get_a_pod',
|
|
4562
4562
|
/**
|
|
4563
4563
|
* Default height of the Signup popup window, in pixels
|
|
4564
4564
|
*/
|
|
@@ -4913,6 +4913,8 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
4913
4913
|
field.style = inputStyle;
|
|
4914
4914
|
rhs.appendChild(field);
|
|
4915
4915
|
field.setAttribute('type', params.type ? params.type : 'text');
|
|
4916
|
+
var fieldType = (field.getAttribute('type') || '').toLowerCase();
|
|
4917
|
+
var deferWhileFocused = fieldType === 'date' || fieldType === 'datetime-local';
|
|
4916
4918
|
var size = kb.anyJS(form, src_ns.ui('size')) || styleConstants.textInputSize || 20;
|
|
4917
4919
|
field.setAttribute('size', size);
|
|
4918
4920
|
var maxLength = kb.any(form, src_ns.ui('maxLength'));
|
|
@@ -4936,7 +4938,7 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
4936
4938
|
}
|
|
4937
4939
|
if (!kb.updater.editable(doc.uri)) {
|
|
4938
4940
|
field.readOnly = true // was: disabled. readOnly is better
|
|
4939
|
-
|
|
4941
|
+
;
|
|
4940
4942
|
field.style = style.textInputStyleUneditable + paramStyle;
|
|
4941
4943
|
if (suppressEmptyUneditable && field.value === '') {
|
|
4942
4944
|
box.style.display = 'none'; // clutter
|
|
@@ -4951,9 +4953,13 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
4951
4953
|
}
|
|
4952
4954
|
}, true);
|
|
4953
4955
|
field.addEventListener('change', function (_e) {
|
|
4956
|
+
if (deferWhileFocused && dom.activeElement === field) return;
|
|
4954
4957
|
// i.e. lose focus with changed data
|
|
4955
4958
|
if (params.pattern && !field.value.match(params.pattern)) return;
|
|
4956
|
-
|
|
4959
|
+
var disabledForSave = !deferWhileFocused;
|
|
4960
|
+
if (disabledForSave) {
|
|
4961
|
+
field.disabled = true; // See if this stops getting two dates from fumbling e.g the chrome datepicker.
|
|
4962
|
+
}
|
|
4957
4963
|
field.setAttribute('style', inputStyle + 'color: gray;'); // pending
|
|
4958
4964
|
var ds = kb.statementsMatching(subject, property); // remove any multiple values
|
|
4959
4965
|
var result;
|
|
@@ -5021,7 +5027,9 @@ function basicField(dom, container, already, subject, form, doc, callbackFunctio
|
|
|
5021
5027
|
updateMany(ds, is, function (uri, ok, body) {
|
|
5022
5028
|
// kb.updater.update(ds, is, function (uri, ok, body) {
|
|
5023
5029
|
if (ok) {
|
|
5024
|
-
|
|
5030
|
+
if (disabledForSave) {
|
|
5031
|
+
field.disabled = false;
|
|
5032
|
+
}
|
|
5025
5033
|
field.setAttribute('style', inputStyle);
|
|
5026
5034
|
} else {
|
|
5027
5035
|
box.appendChild(errorMessageBlock(dom, body));
|
|
@@ -12826,7 +12834,7 @@ function cameraCaptureControl(dom, store, getImageDoc, doneCallback) {
|
|
|
12826
12834
|
// if (!confirm('Save picture to ' + destination + ' ?')) return
|
|
12827
12835
|
src_debug/* log */.Rm('Putting ' + blob.size + ' bytes of ' + contentType + ' to ' + destination)
|
|
12828
12836
|
// @@ TODO Remove casting
|
|
12829
|
-
|
|
12837
|
+
;
|
|
12830
12838
|
store.fetcher.webOperation('PUT', destination.uri, {
|
|
12831
12839
|
data: blob,
|
|
12832
12840
|
contentType: contentType
|
|
@@ -24253,10 +24261,19 @@ function tabWidget(options) {
|
|
|
24253
24261
|
});
|
|
24254
24262
|
var tab = selectedTab1 || selectedTab0 || tabContainer.children[0];
|
|
24255
24263
|
var clickMe = tab.firstChild;
|
|
24256
|
-
|
|
24257
|
-
|
|
24264
|
+
if (clickMe !== null && clickMe !== void 0 && clickMe.click) {
|
|
24265
|
+
clickMe.click();
|
|
24266
|
+
} else if (tab instanceof HTMLElement) {
|
|
24267
|
+
tab.click();
|
|
24268
|
+
}
|
|
24258
24269
|
} else if (!options.startEmpty) {
|
|
24259
|
-
tabContainer.children[0]
|
|
24270
|
+
var firstTab = tabContainer.children[0];
|
|
24271
|
+
var clickTarget = firstTab === null || firstTab === void 0 ? void 0 : firstTab.firstChild;
|
|
24272
|
+
if (clickTarget !== null && clickTarget !== void 0 && clickTarget.click) {
|
|
24273
|
+
clickTarget.click();
|
|
24274
|
+
} else if (firstTab instanceof HTMLElement) {
|
|
24275
|
+
firstTab.click(); // Open first tab
|
|
24276
|
+
}
|
|
24260
24277
|
}
|
|
24261
24278
|
return rootElement;
|
|
24262
24279
|
function addCancelButton(tabContainer) {
|