@optionfactory/ful 1.0.9 → 1.0.10

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.mjs CHANGED
@@ -1429,6 +1429,7 @@ class Input extends ParsedElement {
1429
1429
  constructor() {
1430
1430
  super();
1431
1431
  this.internals = this.attachInternals();
1432
+ this.internals.role = 'textbox';
1432
1433
  }
1433
1434
  render({ slots }) {
1434
1435
  const id = Attributes.uid('ful-input');
@@ -1713,6 +1714,7 @@ class Select extends ParsedElement {
1713
1714
  constructor() {
1714
1715
  super();
1715
1716
  this.internals = this.attachInternals();
1717
+ this.internals.role = 'combobox';
1716
1718
  }
1717
1719
  async render({ slots, observed }) {
1718
1720
  const name = this.getAttribute("name");
@@ -1877,6 +1879,7 @@ class RadioGroup extends ParsedElement {
1877
1879
  constructor() {
1878
1880
  super();
1879
1881
  this.internals = this.attachInternals();
1882
+ this.internals.role = 'radiogroup';
1880
1883
  }
1881
1884
  render({ slots }) {
1882
1885
  const name = this.getAttribute('name') ?? Attributes.uid('ful-radiogroup');
@@ -1960,11 +1963,13 @@ class Checkbox extends ParsedElement {
1960
1963
  constructor() {
1961
1964
  super();
1962
1965
  this.internals = this.attachInternals();
1966
+ this.internals.role = 'checkbox';
1963
1967
  }
1964
1968
  render({ slots }) {
1965
1969
  const id = Attributes.uid("ful-checkbox");
1966
1970
  const fieldErrorId = id + "-error";
1967
1971
  const klass = this.getAttribute('type') == 'switch' ? "form-check form-switch" : "form-check";
1972
+ this.internals.role = this.getAttribute('type') == 'switch' ? 'switch' : 'checkbox';
1968
1973
  const fragment = this.template().withOverlay({ slots, klass, id, fieldErrorId }).render();
1969
1974
  this.#input = fragment.querySelector("input");
1970
1975
  Attributes.forward('input-', this, this.#input);
@@ -2004,7 +2009,7 @@ class Checkbox extends ParsedElement {
2004
2009
  class Spinner extends ParsedElement {
2005
2010
  static slots = true;
2006
2011
  static template = `
2007
- <div class="ful-spinner-wrapper">
2012
+ <div class="ful-spinner-wrapper" role="status">
2008
2013
  <div class="ful-spinner-text">{{{{ slots.default }}}}</div>
2009
2014
  <div class="ful-spinner-icon"></div>
2010
2015
  </div>
@@ -2308,10 +2313,6 @@ class Table extends ParsedElement {
2308
2313
  size: this.#latestRequest.pageRequest.size
2309
2314
  }, this.#latestRequest.sortRequest, evt.detail.request);
2310
2315
  });
2311
- if (maybeForm) {
2312
- maybeForm.submitter = async (filterRequest, form) => {
2313
- };
2314
- }
2315
2316
  this.addEventListener('page-requested', async (/** @type any */e) => {
2316
2317
  await this.load({
2317
2318
  page: e.detail.value,