@getflip/swirl-components 0.161.0 → 0.162.0

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/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-02-23T14:23:36",
2
+ "timestamp": "2024-02-26T09:24:15",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "3.3.1",
@@ -387,7 +387,7 @@ const SwirlResourceList = class {
387
387
  this.setupDragDrop();
388
388
  }
389
389
  collectItems() {
390
- this.items = Array.from(this.el.querySelectorAll("swirl-resource-list-item, swirl-resource-list-file-item")).filter((el) => el.isConnected);
390
+ this.items = Array.from(this.el.querySelectorAll("swirl-resource-list-item, swirl-resource-list-file-item, [data-resource-list-item]")).filter((el) => el.isConnected);
391
391
  this.removeItemsFromTabOrder();
392
392
  this.enableItemFocus(this.items[this.focusedIndex]);
393
393
  if (Boolean(this.controllingElement)) {
@@ -408,7 +408,7 @@ const SwirlResourceList = class {
408
408
  }
409
409
  removeItemsFromTabOrder() {
410
410
  this.items.forEach((item) => {
411
- const focusableEl = item?.querySelector(".resource-list-item__content, .resource-list-file-item");
411
+ const focusableEl = item?.querySelector(".resource-list-item__content, .resource-list-file-item, [data-resource-list-item-button]");
412
412
  const dragHandle = item?.querySelector(".resource-list-item__drag-handle");
413
413
  if (Boolean(this.controllingElement)) {
414
414
  item.setAttribute("aria-selected", "false");
@@ -455,7 +455,7 @@ const SwirlResourceList = class {
455
455
  if (!Boolean(item) || Boolean(this.controllingElement)) {
456
456
  return;
457
457
  }
458
- const interactiveElement = item.querySelector(".resource-list-item__content, .resource-list-file-item");
458
+ const interactiveElement = item.querySelector(".resource-list-item__content, .resource-list-file-item, [data-resource-list-item-button]");
459
459
  const dragHandle = item.querySelector(".resource-list-item__drag-handle");
460
460
  if (Boolean(dragHandle)) {
461
461
  dragHandle.setAttribute("tabIndex", "0");