@optionfactory/ful 1.0.9 → 1.0.11
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 +7 -6
- 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 +7 -6
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ful.iife.js
CHANGED
|
@@ -1247,7 +1247,7 @@ var ful = (function (exports, ftl) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
1249
1249
|
static mutateIn(form, values){
|
|
1250
|
-
const names = Array.from(form.
|
|
1250
|
+
const names = Array.from(form.elements)
|
|
1251
1251
|
.map(el => el.getAttribute("name"))
|
|
1252
1252
|
.filter(n => n);
|
|
1253
1253
|
for (const [flattenedKey, value] of Object.entries(Bindings.flatten(values, '', new Set(names)))) {
|
|
@@ -1430,6 +1430,7 @@ var ful = (function (exports, ftl) {
|
|
|
1430
1430
|
constructor() {
|
|
1431
1431
|
super();
|
|
1432
1432
|
this.internals = this.attachInternals();
|
|
1433
|
+
this.internals.role = 'textbox';
|
|
1433
1434
|
}
|
|
1434
1435
|
render({ slots }) {
|
|
1435
1436
|
const id = ftl.Attributes.uid('ful-input');
|
|
@@ -1714,6 +1715,7 @@ var ful = (function (exports, ftl) {
|
|
|
1714
1715
|
constructor() {
|
|
1715
1716
|
super();
|
|
1716
1717
|
this.internals = this.attachInternals();
|
|
1718
|
+
this.internals.role = 'combobox';
|
|
1717
1719
|
}
|
|
1718
1720
|
async render({ slots, observed }) {
|
|
1719
1721
|
const name = this.getAttribute("name");
|
|
@@ -1878,6 +1880,7 @@ var ful = (function (exports, ftl) {
|
|
|
1878
1880
|
constructor() {
|
|
1879
1881
|
super();
|
|
1880
1882
|
this.internals = this.attachInternals();
|
|
1883
|
+
this.internals.role = 'radiogroup';
|
|
1881
1884
|
}
|
|
1882
1885
|
render({ slots }) {
|
|
1883
1886
|
const name = this.getAttribute('name') ?? ftl.Attributes.uid('ful-radiogroup');
|
|
@@ -1961,11 +1964,13 @@ var ful = (function (exports, ftl) {
|
|
|
1961
1964
|
constructor() {
|
|
1962
1965
|
super();
|
|
1963
1966
|
this.internals = this.attachInternals();
|
|
1967
|
+
this.internals.role = 'checkbox';
|
|
1964
1968
|
}
|
|
1965
1969
|
render({ slots }) {
|
|
1966
1970
|
const id = ftl.Attributes.uid("ful-checkbox");
|
|
1967
1971
|
const fieldErrorId = id + "-error";
|
|
1968
1972
|
const klass = this.getAttribute('type') == 'switch' ? "form-check form-switch" : "form-check";
|
|
1973
|
+
this.internals.role = this.getAttribute('type') == 'switch' ? 'switch' : 'checkbox';
|
|
1969
1974
|
const fragment = this.template().withOverlay({ slots, klass, id, fieldErrorId }).render();
|
|
1970
1975
|
this.#input = fragment.querySelector("input");
|
|
1971
1976
|
ftl.Attributes.forward('input-', this, this.#input);
|
|
@@ -2005,7 +2010,7 @@ var ful = (function (exports, ftl) {
|
|
|
2005
2010
|
class Spinner extends ftl.ParsedElement {
|
|
2006
2011
|
static slots = true;
|
|
2007
2012
|
static template = `
|
|
2008
|
-
<div class="ful-spinner-wrapper">
|
|
2013
|
+
<div class="ful-spinner-wrapper" role="status">
|
|
2009
2014
|
<div class="ful-spinner-text">{{{{ slots.default }}}}</div>
|
|
2010
2015
|
<div class="ful-spinner-icon"></div>
|
|
2011
2016
|
</div>
|
|
@@ -2309,10 +2314,6 @@ var ful = (function (exports, ftl) {
|
|
|
2309
2314
|
size: this.#latestRequest.pageRequest.size
|
|
2310
2315
|
}, this.#latestRequest.sortRequest, evt.detail.request);
|
|
2311
2316
|
});
|
|
2312
|
-
if (maybeForm) {
|
|
2313
|
-
maybeForm.submitter = async (filterRequest, form) => {
|
|
2314
|
-
};
|
|
2315
|
-
}
|
|
2316
2317
|
this.addEventListener('page-requested', async (/** @type any */e) => {
|
|
2317
2318
|
await this.load({
|
|
2318
2319
|
page: e.detail.value,
|