@danielgindi/selectbox 1.0.58 → 1.0.59

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/lib.es6.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 1.0.58
2
+ * @danielgindi/selectbox 1.0.59
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  import { createElement, closestUntil, setElementAttrs, next, prev } from '@danielgindi/dom-utils/lib/Dom';
@@ -127,7 +127,7 @@ class DropList {
127
127
  * @param {DropList.Options} options
128
128
  */
129
129
  constructor(options) {
130
- const o = {...defaultOptions$1};
130
+ const o = { ...defaultOptions$1 };
131
131
 
132
132
  for (let [key, value] of Object.entries(/**@type Object*/options))
133
133
  if (value !== undefined)
@@ -278,8 +278,8 @@ class DropList {
278
278
  try {
279
279
  fn(el[ItemSymbol$1][ItemSymbol$1], el);
280
280
  } catch (err) {
281
- console.error(err);
282
- } // eslint-disable-line no-console
281
+ console.error(err); // eslint-disable-line no-console
282
+ }
283
283
  delete el[ItemSymbol$1];
284
284
 
285
285
  if (p.focusItemEl === el)
@@ -399,8 +399,8 @@ class DropList {
399
399
  try {
400
400
  fn(el[ItemSymbol$1][ItemSymbol$1], el);
401
401
  } catch (err) {
402
- console.error(err);
403
- } // eslint-disable-line no-console
402
+ console.error(err); // eslint-disable-line no-console
403
+ }
404
404
  delete el[ItemSymbol$1];
405
405
 
406
406
  if (p.focusItemEl === el)
@@ -464,7 +464,7 @@ class DropList {
464
464
  if (!item)
465
465
  return;
466
466
 
467
- this._trigger('itemblur', {value: item.value, item: item[ItemSymbol$1] ?? item});
467
+ this._trigger('itemblur', { value: item.value, item: item[ItemSymbol$1] ?? item });
468
468
  }
469
469
 
470
470
  nextPage(event) {
@@ -1779,7 +1779,7 @@ class DropList {
1779
1779
  p.focusItemIndex = itemIndex;
1780
1780
 
1781
1781
  const item = p.items[itemIndex];
1782
- this._trigger('itemfocus', {value: item.value, item: item[ItemSymbol$1] ?? item, event: event, el: focusItemEl});
1782
+ this._trigger('itemfocus', { value: item.value, item: item[ItemSymbol$1] ?? item, event: event, el: focusItemEl });
1783
1783
  }
1784
1784
 
1785
1785
  _delayBlurItemOnBlur() {
@@ -1985,7 +1985,7 @@ class DropList {
1985
1985
  this._trigger('groupcheck', {
1986
1986
  value: item.value,
1987
1987
  item: item[ItemSymbol$1] ?? item,
1988
- affectedItems: affectedItems
1988
+ affectedItems: affectedItems,
1989
1989
  });
1990
1990
  } else if (p.groupCount > 0) {
1991
1991
  items = p.items;
@@ -2143,7 +2143,7 @@ class DropList {
2143
2143
  if (p.multi) {
2144
2144
  if (!item._nocheck) {
2145
2145
  itemEl.insertBefore(
2146
- createElement('span', {class: 'checkbox'}),
2146
+ createElement('span', { class: 'checkbox' }),
2147
2147
  itemEl.firstChild,
2148
2148
  );
2149
2149
  }
@@ -4616,7 +4616,9 @@ class SelectBox {
4616
4616
  if (p.unrenderSingleItem && p.singleWrapper.childNodes.length > 0) {
4617
4617
  try {
4618
4618
  p.unrenderSingleItem(p.singleWrapper[ItemSymbol], p.singleWrapper);
4619
- } catch (err) { console.error(err); } // eslint-disable-line no-console
4619
+ } catch (err) {
4620
+ console.error(err); // eslint-disable-line no-console
4621
+ }
4620
4622
  }
4621
4623
 
4622
4624
  delete p.singleWrapper[ItemSymbol];
@@ -4641,7 +4643,9 @@ class SelectBox {
4641
4643
  if (unrender && itemEl.childNodes.length > 0) {
4642
4644
  try {
4643
4645
  unrender(item, itemEl);
4644
- } catch (err) { console.error(err); } // eslint-disable-line no-console
4646
+ } catch (err) {
4647
+ console.error(err); // eslint-disable-line no-console
4648
+ }
4645
4649
  }
4646
4650
  remove(itemEl);
4647
4651