@optionfactory/ful 5.0.5 → 6.0.1
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/ful.iife.js +6 -3
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +6 -3
- package/dist/ful.mjs.map +1 -1
- package/package.json +5 -5
package/dist/ful.mjs
CHANGED
|
@@ -1400,8 +1400,11 @@ class Form extends ParsedElement {
|
|
|
1400
1400
|
const hel = /** @type HTMLElement */ (el);
|
|
1401
1401
|
hel.hidden = !spin;
|
|
1402
1402
|
});
|
|
1403
|
-
this.querySelectorAll('
|
|
1404
|
-
const hel = /** @type HTMLButtonElement */ (el);
|
|
1403
|
+
this.querySelectorAll('input,button').forEach(el => {
|
|
1404
|
+
const hel = /** @type HTMLButtonElement|HTMLInputElement */ (el);
|
|
1405
|
+
if(hel.type !== 'submit' && hel.type !== 'reset'){
|
|
1406
|
+
return;
|
|
1407
|
+
}
|
|
1405
1408
|
hel.disabled = spin;
|
|
1406
1409
|
});
|
|
1407
1410
|
}
|
|
@@ -3044,7 +3047,7 @@ class Table extends ParsedElement {
|
|
|
3044
3047
|
#latestRequest;
|
|
3045
3048
|
async render({ slots, observed }) {
|
|
3046
3049
|
const template = this.template();
|
|
3047
|
-
const schema = TableSchemaParser.parse(slots.
|
|
3050
|
+
const schema = TableSchemaParser.parse(slots.schema, template);
|
|
3048
3051
|
const fragment = template.withOverlay({ slots, schema }).render();
|
|
3049
3052
|
const tableWrapper = /** @type HTMLTableElement */ (Nodes.queryChildren(fragment, '.table-wrapper'));
|
|
3050
3053
|
const table = /** @type HTMLTableElement */ (tableWrapper.querySelector("table"));
|