@sprawlify/primitives 0.0.97 → 0.0.99

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.
Files changed (231) hide show
  1. package/dist/{aria-hidden-UJAPt1aA.cjs → aria-hidden-BAGrxNHt.cjs} +1 -1
  2. package/dist/{aria-hidden-P3kaF8gG.mjs → aria-hidden-BX4SWNE_.mjs} +1 -1
  3. package/dist/aria-hidden.cjs +2 -2
  4. package/dist/aria-hidden.mjs +2 -2
  5. package/dist/{auto-resize-DzPXdyR-.cjs → auto-resize-B1BDDnp1.cjs} +1 -1
  6. package/dist/{auto-resize-Bjzuo5Lh.mjs → auto-resize-CN2vAzdj.mjs} +1 -1
  7. package/dist/auto-resize.cjs +2 -2
  8. package/dist/auto-resize.mjs +2 -2
  9. package/dist/{collection-DZeodezM.cjs → collection-BBgC8xCb.cjs} +22 -7
  10. package/dist/{collection-CcsrqDFY.mjs → collection-DgzidRvr.mjs} +22 -7
  11. package/dist/collection.cjs +1 -1
  12. package/dist/collection.d.cts +3 -3
  13. package/dist/collection.d.mts +3 -3
  14. package/dist/collection.mjs +1 -1
  15. package/dist/{core-DfVajPnu.mjs → core-BmIEKqtP.mjs} +1 -1
  16. package/dist/{core-BiGlJ-4W.cjs → core-nBg9RC_y.cjs} +1 -1
  17. package/dist/core.cjs +2 -2
  18. package/dist/core.mjs +2 -2
  19. package/dist/{dismissable-DPXx0m0m.cjs → dismissable-ChwcJMHk.cjs} +2 -2
  20. package/dist/{dismissable-BAYaXwxZ.mjs → dismissable-DWfZGIA7.mjs} +2 -2
  21. package/dist/dismissable.cjs +3 -3
  22. package/dist/dismissable.mjs +3 -3
  23. package/dist/{dom-query-6Wt-Tikf.cjs → dom-query-Bd63cRVF.cjs} +26 -6
  24. package/dist/{dom-query-dX8Dakb4.mjs → dom-query-s2ESLR2U.mjs} +15 -7
  25. package/dist/dom-query.cjs +3 -1
  26. package/dist/dom-query.d.cts +7 -1
  27. package/dist/dom-query.d.mts +7 -1
  28. package/dist/dom-query.mjs +2 -2
  29. package/dist/{focus-trap-Cd09JaUn.mjs → focus-trap-DzBvBlTH.mjs} +1 -1
  30. package/dist/{focus-trap-ClCNF7kY.cjs → focus-trap-fucc6OU_.cjs} +1 -1
  31. package/dist/focus-trap.cjs +2 -2
  32. package/dist/focus-trap.mjs +2 -2
  33. package/dist/{focus-visible-CqHoOOjw.cjs → focus-visible-75XTctXf.cjs} +1 -1
  34. package/dist/{focus-visible-CSuBQ5QZ.mjs → focus-visible-D5qBaAOn.mjs} +1 -1
  35. package/dist/focus-visible.cjs +2 -2
  36. package/dist/focus-visible.mjs +2 -2
  37. package/dist/{i18n-utils-Dm8cGCol.cjs → i18n-utils-DB-lUfrr.cjs} +58 -1
  38. package/dist/{i18n-utils-DHGN_KCY.mjs → i18n-utils-oWZyUib_.mjs} +53 -2
  39. package/dist/i18n-utils.cjs +3 -2
  40. package/dist/i18n-utils.d.cts +14 -1
  41. package/dist/i18n-utils.d.mts +14 -1
  42. package/dist/i18n-utils.mjs +3 -3
  43. package/dist/{interact-outside-C-8lOhpV.mjs → interact-outside-2qkUnl4N.mjs} +1 -1
  44. package/dist/{interact-outside-DRaFGdMg.cjs → interact-outside-Cx4J0EBf.cjs} +1 -1
  45. package/dist/interact-outside.cjs +2 -2
  46. package/dist/interact-outside.mjs +2 -2
  47. package/dist/{list-collection-B_8BN0XB.d.cts → list-collection-Cjgbx_9l.d.cts} +1 -1
  48. package/dist/{list-collection-DkRA5LOq.d.mts → list-collection-IF510iNl.d.mts} +1 -1
  49. package/dist/machines/accordion/index.cjs +2 -2
  50. package/dist/machines/accordion/index.mjs +2 -2
  51. package/dist/machines/angle-slider/index.cjs +2 -2
  52. package/dist/machines/angle-slider/index.d.cts +1 -1
  53. package/dist/machines/angle-slider/index.d.mts +1 -1
  54. package/dist/machines/angle-slider/index.mjs +2 -2
  55. package/dist/machines/aspect-ratio/index.cjs +2 -2
  56. package/dist/machines/aspect-ratio/index.mjs +2 -2
  57. package/dist/machines/async-list/index.cjs +2 -2
  58. package/dist/machines/async-list/index.mjs +2 -2
  59. package/dist/machines/avatar/index.cjs +2 -2
  60. package/dist/machines/avatar/index.mjs +2 -2
  61. package/dist/machines/bottom-sheet/index.cjs +7 -7
  62. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  63. package/dist/machines/bottom-sheet/index.d.mts +1 -1
  64. package/dist/machines/bottom-sheet/index.mjs +7 -7
  65. package/dist/machines/carousel/index.cjs +3 -3
  66. package/dist/machines/carousel/index.d.cts +1 -1
  67. package/dist/machines/carousel/index.d.mts +1 -1
  68. package/dist/machines/carousel/index.mjs +3 -3
  69. package/dist/machines/cascade-select/index.cjs +1367 -0
  70. package/dist/machines/cascade-select/index.d.cts +164 -0
  71. package/dist/machines/cascade-select/index.d.mts +164 -0
  72. package/dist/machines/cascade-select/index.mjs +1360 -0
  73. package/dist/machines/checkbox/index.cjs +3 -3
  74. package/dist/machines/checkbox/index.mjs +3 -3
  75. package/dist/machines/clipboard/index.cjs +2 -2
  76. package/dist/machines/clipboard/index.d.cts +1 -1
  77. package/dist/machines/clipboard/index.d.mts +1 -1
  78. package/dist/machines/clipboard/index.mjs +2 -2
  79. package/dist/machines/collapsible/index.cjs +2 -2
  80. package/dist/machines/collapsible/index.d.cts +1 -1
  81. package/dist/machines/collapsible/index.d.mts +1 -1
  82. package/dist/machines/collapsible/index.mjs +2 -2
  83. package/dist/machines/color-picker/index.cjs +5 -5
  84. package/dist/machines/color-picker/index.d.cts +1 -1
  85. package/dist/machines/color-picker/index.d.mts +1 -1
  86. package/dist/machines/color-picker/index.mjs +5 -5
  87. package/dist/machines/combobox/index.cjs +7 -7
  88. package/dist/machines/combobox/index.d.cts +2 -2
  89. package/dist/machines/combobox/index.d.mts +2 -2
  90. package/dist/machines/combobox/index.mjs +7 -7
  91. package/dist/machines/date-picker/index.cjs +52 -16
  92. package/dist/machines/date-picker/index.d.cts +1 -1
  93. package/dist/machines/date-picker/index.d.mts +1 -1
  94. package/dist/machines/date-picker/index.mjs +53 -17
  95. package/dist/machines/dialog/index.cjs +7 -7
  96. package/dist/machines/dialog/index.d.cts +1 -1
  97. package/dist/machines/dialog/index.d.mts +1 -1
  98. package/dist/machines/dialog/index.mjs +7 -7
  99. package/dist/machines/dropdown-menu/index.cjs +5 -5
  100. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  101. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  102. package/dist/machines/dropdown-menu/index.mjs +5 -5
  103. package/dist/machines/editable/index.cjs +3 -3
  104. package/dist/machines/editable/index.d.cts +1 -1
  105. package/dist/machines/editable/index.d.mts +1 -1
  106. package/dist/machines/editable/index.mjs +3 -3
  107. package/dist/machines/file-upload/index.cjs +3 -3
  108. package/dist/machines/file-upload/index.d.cts +1 -1
  109. package/dist/machines/file-upload/index.d.mts +1 -1
  110. package/dist/machines/file-upload/index.mjs +3 -3
  111. package/dist/machines/floating-panel/index.cjs +2 -2
  112. package/dist/machines/floating-panel/index.d.cts +1 -1
  113. package/dist/machines/floating-panel/index.d.mts +1 -1
  114. package/dist/machines/floating-panel/index.mjs +2 -2
  115. package/dist/machines/hover-card/index.cjs +5 -5
  116. package/dist/machines/hover-card/index.d.cts +1 -1
  117. package/dist/machines/hover-card/index.d.mts +1 -1
  118. package/dist/machines/hover-card/index.mjs +5 -5
  119. package/dist/machines/image-cropper/index.cjs +2 -2
  120. package/dist/machines/image-cropper/index.mjs +2 -2
  121. package/dist/machines/listbox/index.cjs +4 -4
  122. package/dist/machines/listbox/index.d.cts +3 -3
  123. package/dist/machines/listbox/index.d.mts +3 -3
  124. package/dist/machines/listbox/index.mjs +4 -4
  125. package/dist/machines/marquee/index.cjs +2 -2
  126. package/dist/machines/marquee/index.d.cts +2 -2
  127. package/dist/machines/marquee/index.d.mts +2 -2
  128. package/dist/machines/marquee/index.mjs +2 -2
  129. package/dist/machines/navigation-menu/index.cjs +4 -4
  130. package/dist/machines/navigation-menu/index.d.cts +1 -1
  131. package/dist/machines/navigation-menu/index.d.mts +1 -1
  132. package/dist/machines/navigation-menu/index.mjs +4 -4
  133. package/dist/machines/number-input/index.cjs +2 -2
  134. package/dist/machines/number-input/index.d.cts +1 -1
  135. package/dist/machines/number-input/index.d.mts +1 -1
  136. package/dist/machines/number-input/index.mjs +2 -2
  137. package/dist/machines/pagination/index.cjs +2 -2
  138. package/dist/machines/pagination/index.mjs +2 -2
  139. package/dist/machines/password-input/index.cjs +2 -2
  140. package/dist/machines/password-input/index.d.cts +1 -1
  141. package/dist/machines/password-input/index.d.mts +1 -1
  142. package/dist/machines/password-input/index.mjs +2 -2
  143. package/dist/machines/pin-input/index.cjs +2 -2
  144. package/dist/machines/pin-input/index.d.cts +1 -1
  145. package/dist/machines/pin-input/index.d.mts +1 -1
  146. package/dist/machines/pin-input/index.mjs +2 -2
  147. package/dist/machines/popover/index.cjs +8 -8
  148. package/dist/machines/popover/index.d.cts +1 -1
  149. package/dist/machines/popover/index.d.mts +1 -1
  150. package/dist/machines/popover/index.mjs +8 -8
  151. package/dist/machines/presence/index.cjs +2 -2
  152. package/dist/machines/presence/index.mjs +2 -2
  153. package/dist/machines/progress/index.cjs +2 -2
  154. package/dist/machines/progress/index.d.cts +1 -1
  155. package/dist/machines/progress/index.d.mts +1 -1
  156. package/dist/machines/progress/index.mjs +2 -2
  157. package/dist/machines/qr-code/index.cjs +2 -2
  158. package/dist/machines/qr-code/index.mjs +2 -2
  159. package/dist/machines/radio-group/index.cjs +3 -3
  160. package/dist/machines/radio-group/index.mjs +3 -3
  161. package/dist/machines/rating-group/index.cjs +2 -2
  162. package/dist/machines/rating-group/index.mjs +2 -2
  163. package/dist/machines/scroll-area/index.cjs +2 -2
  164. package/dist/machines/scroll-area/index.mjs +2 -2
  165. package/dist/machines/select/index.cjs +23 -9
  166. package/dist/machines/select/index.d.cts +3 -2
  167. package/dist/machines/select/index.d.mts +3 -2
  168. package/dist/machines/select/index.mjs +23 -9
  169. package/dist/machines/separator/index.cjs +2 -2
  170. package/dist/machines/separator/index.mjs +2 -2
  171. package/dist/machines/signature-pad/index.cjs +2 -2
  172. package/dist/machines/signature-pad/index.mjs +2 -2
  173. package/dist/machines/slider/index.cjs +2 -2
  174. package/dist/machines/slider/index.d.cts +1 -1
  175. package/dist/machines/slider/index.d.mts +1 -1
  176. package/dist/machines/slider/index.mjs +2 -2
  177. package/dist/machines/splitter/index.cjs +2 -2
  178. package/dist/machines/splitter/index.mjs +2 -2
  179. package/dist/machines/steps/index.cjs +2 -2
  180. package/dist/machines/steps/index.d.cts +1 -1
  181. package/dist/machines/steps/index.d.mts +1 -1
  182. package/dist/machines/steps/index.mjs +2 -2
  183. package/dist/machines/switch/index.cjs +3 -3
  184. package/dist/machines/switch/index.mjs +3 -3
  185. package/dist/machines/tabs/index.cjs +2 -2
  186. package/dist/machines/tabs/index.d.cts +1 -1
  187. package/dist/machines/tabs/index.d.mts +1 -1
  188. package/dist/machines/tabs/index.mjs +2 -2
  189. package/dist/machines/tags-input/index.cjs +4 -4
  190. package/dist/machines/tags-input/index.d.cts +1 -1
  191. package/dist/machines/tags-input/index.d.mts +1 -1
  192. package/dist/machines/tags-input/index.mjs +4 -4
  193. package/dist/machines/timer/index.cjs +2 -2
  194. package/dist/machines/timer/index.d.cts +1 -1
  195. package/dist/machines/timer/index.d.mts +1 -1
  196. package/dist/machines/timer/index.mjs +2 -2
  197. package/dist/machines/toast/index.cjs +4 -4
  198. package/dist/machines/toast/index.d.cts +1 -1
  199. package/dist/machines/toast/index.d.mts +1 -1
  200. package/dist/machines/toast/index.mjs +4 -4
  201. package/dist/machines/toggle/index.cjs +2 -2
  202. package/dist/machines/toggle/index.mjs +2 -2
  203. package/dist/machines/toggle-group/index.cjs +2 -2
  204. package/dist/machines/toggle-group/index.mjs +2 -2
  205. package/dist/machines/tooltip/index.cjs +4 -4
  206. package/dist/machines/tooltip/index.d.cts +1 -1
  207. package/dist/machines/tooltip/index.d.mts +1 -1
  208. package/dist/machines/tooltip/index.mjs +4 -4
  209. package/dist/machines/tour/index.cjs +6 -6
  210. package/dist/machines/tour/index.d.cts +1 -1
  211. package/dist/machines/tour/index.d.mts +1 -1
  212. package/dist/machines/tour/index.mjs +6 -6
  213. package/dist/machines/tree-view/index.cjs +3 -3
  214. package/dist/machines/tree-view/index.d.cts +2 -2
  215. package/dist/machines/tree-view/index.d.mts +2 -2
  216. package/dist/machines/tree-view/index.mjs +3 -3
  217. package/dist/{popper-CfOHZlHP.mjs → popper-3Bdh0pfy.mjs} +1 -1
  218. package/dist/{popper-zq1F_iY8.cjs → popper-Bca_O70s.cjs} +1 -1
  219. package/dist/popper.cjs +2 -2
  220. package/dist/popper.mjs +2 -2
  221. package/dist/{remove-scroll-B8AJyezV.cjs → remove-scroll-D9FAOapi.cjs} +1 -1
  222. package/dist/{remove-scroll-DCUb1JPX.mjs → remove-scroll-HcSiTbd5.mjs} +1 -1
  223. package/dist/{scroll-snap-De0H9CWU.mjs → scroll-snap-DfSwN3As.mjs} +1 -1
  224. package/dist/{scroll-snap-voc0pMJd.cjs → scroll-snap-Dp_2adEa.cjs} +1 -1
  225. package/dist/scroll-snap.cjs +2 -2
  226. package/dist/scroll-snap.mjs +2 -2
  227. package/dist/{selection-DdNvrKbj.d.mts → selection-6urf-c8j.d.mts} +1 -1
  228. package/dist/{selection-Bb_ZSVxe.d.cts → selection-BmS2RDMq.d.cts} +1 -1
  229. package/dist/{tree-collection-DlBCued7.d.mts → tree-collection-Dlf9EUrT.d.mts} +2 -1
  230. package/dist/{tree-collection-DjtppzYh.d.cts → tree-collection-DlqV5kYO.d.cts} +2 -1
  231. package/package.json +11 -1
@@ -1,4 +1,4 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  //#region src/shared/aria-hidden/walk-tree-outside.ts
3
3
  let counterMap = /* @__PURE__ */ new WeakMap();
4
4
  let uncontrolledNodes = /* @__PURE__ */ new WeakMap();
@@ -1,4 +1,4 @@
1
- import { Ut as findControlledElements, un as isHTMLElement } from "./dom-query-dX8Dakb4.mjs";
1
+ import { Gt as findControlledElements, fn as isHTMLElement } from "./dom-query-s2ESLR2U.mjs";
2
2
  //#region src/shared/aria-hidden/walk-tree-outside.ts
3
3
  let counterMap = /* @__PURE__ */ new WeakMap();
4
4
  let uncontrolledNodes = /* @__PURE__ */ new WeakMap();
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
3
- const require_aria_hidden = require("./aria-hidden-UJAPt1aA.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
+ const require_aria_hidden = require("./aria-hidden-BAGrxNHt.cjs");
4
4
  exports.ariaHidden = require_aria_hidden.ariaHidden;
@@ -1,3 +1,3 @@
1
- import "./dom-query-dX8Dakb4.mjs";
2
- import { t as ariaHidden } from "./aria-hidden-P3kaF8gG.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
+ import { t as ariaHidden } from "./aria-hidden-BX4SWNE_.mjs";
3
3
  export { ariaHidden };
@@ -1,4 +1,4 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  //#region src/shared/auto-resize/visual-style.ts
3
3
  /**
4
4
  * Gets the visual styles of an element as a CSS string for text measurement.
@@ -1,4 +1,4 @@
1
- import { $t as getDocument, Xt as getComputedStyle, in as getWindow } from "./dom-query-dX8Dakb4.mjs";
1
+ import { Qt as getComputedStyle, on as getWindow, tn as getDocument } from "./dom-query-s2ESLR2U.mjs";
2
2
  //#region src/shared/auto-resize/visual-style.ts
3
3
  /**
4
4
  * Gets the visual styles of an element as a CSS string for text measurement.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
3
- const require_auto_resize = require("./auto-resize-DzPXdyR-.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
+ const require_auto_resize = require("./auto-resize-B1BDDnp1.cjs");
4
4
  exports.autoResizeInput = require_auto_resize.autoResizeInput;
5
5
  exports.autoresizeTextarea = require_auto_resize.autoresizeTextarea;
@@ -1,3 +1,3 @@
1
- import "./dom-query-dX8Dakb4.mjs";
2
- import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-Bjzuo5Lh.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
+ import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-CN2vAzdj.mjs";
3
3
  export { autoResizeInput, autoresizeTextarea };
@@ -933,12 +933,6 @@ var TreeCollection = class TreeCollection {
933
933
  return acc;
934
934
  }, []).sort((a, b) => compareIndexPaths(a.indexPath, b.indexPath)).map(({ value }) => value);
935
935
  });
936
- require_defineProperty._defineProperty(this, "getIndexPath", (value) => {
937
- return findIndexPath(this.rootNode, {
938
- getChildren: this.getNodeChildren,
939
- predicate: (node) => this.getNodeValue(node) === value
940
- });
941
- });
942
936
  require_defineProperty._defineProperty(this, "getValue", (indexPath) => {
943
937
  const node = this.at(indexPath);
944
938
  return node ? this.getNodeValue(node) : void 0;
@@ -1200,6 +1194,27 @@ var TreeCollection = class TreeCollection {
1200
1194
  });
1201
1195
  this.rootNode = options.rootNode;
1202
1196
  }
1197
+ getIndexPath(valueOrValuePath) {
1198
+ if (Array.isArray(valueOrValuePath)) {
1199
+ if (valueOrValuePath.length === 0) return [];
1200
+ const indexPath = [];
1201
+ let currentChildren = this.getNodeChildren(this.rootNode);
1202
+ for (let i = 0; i < valueOrValuePath.length; i++) {
1203
+ const currentValue = valueOrValuePath[i];
1204
+ const matchingChildIndex = currentChildren.findIndex((child) => this.getNodeValue(child) === currentValue);
1205
+ if (matchingChildIndex === -1) break;
1206
+ indexPath.push(matchingChildIndex);
1207
+ if (i < valueOrValuePath.length - 1) {
1208
+ const currentNode = currentChildren[matchingChildIndex];
1209
+ currentChildren = this.getNodeChildren(currentNode);
1210
+ }
1211
+ }
1212
+ return indexPath;
1213
+ } else return findIndexPath(this.rootNode, {
1214
+ getChildren: this.getNodeChildren,
1215
+ predicate: (node) => this.getNodeValue(node) === valueOrValuePath
1216
+ });
1217
+ }
1203
1218
  };
1204
1219
  function flattenedToTree(nodes, options = fallbackMethods) {
1205
1220
  if (nodes.length === 0) throw new Error("[sprawlify-js/tree] Cannot create tree from empty flattened array");
@@ -1212,7 +1227,7 @@ function flattenedToTree(nodes, options = fallbackMethods) {
1212
1227
  const buildNode = (idx) => {
1213
1228
  const flatNode = nodeMap.get(idx);
1214
1229
  if (!flatNode) return {};
1215
- const { _children, ...cleanNode } = flatNode;
1230
+ const { _children, _parent, _index, ...cleanNode } = flatNode;
1216
1231
  const children = [];
1217
1232
  _children?.forEach((childIndex) => {
1218
1233
  children.push(buildNode(childIndex));
@@ -933,12 +933,6 @@ var TreeCollection = class TreeCollection {
933
933
  return acc;
934
934
  }, []).sort((a, b) => compareIndexPaths(a.indexPath, b.indexPath)).map(({ value }) => value);
935
935
  });
936
- _defineProperty(this, "getIndexPath", (value) => {
937
- return findIndexPath(this.rootNode, {
938
- getChildren: this.getNodeChildren,
939
- predicate: (node) => this.getNodeValue(node) === value
940
- });
941
- });
942
936
  _defineProperty(this, "getValue", (indexPath) => {
943
937
  const node = this.at(indexPath);
944
938
  return node ? this.getNodeValue(node) : void 0;
@@ -1200,6 +1194,27 @@ var TreeCollection = class TreeCollection {
1200
1194
  });
1201
1195
  this.rootNode = options.rootNode;
1202
1196
  }
1197
+ getIndexPath(valueOrValuePath) {
1198
+ if (Array.isArray(valueOrValuePath)) {
1199
+ if (valueOrValuePath.length === 0) return [];
1200
+ const indexPath = [];
1201
+ let currentChildren = this.getNodeChildren(this.rootNode);
1202
+ for (let i = 0; i < valueOrValuePath.length; i++) {
1203
+ const currentValue = valueOrValuePath[i];
1204
+ const matchingChildIndex = currentChildren.findIndex((child) => this.getNodeValue(child) === currentValue);
1205
+ if (matchingChildIndex === -1) break;
1206
+ indexPath.push(matchingChildIndex);
1207
+ if (i < valueOrValuePath.length - 1) {
1208
+ const currentNode = currentChildren[matchingChildIndex];
1209
+ currentChildren = this.getNodeChildren(currentNode);
1210
+ }
1211
+ }
1212
+ return indexPath;
1213
+ } else return findIndexPath(this.rootNode, {
1214
+ getChildren: this.getNodeChildren,
1215
+ predicate: (node) => this.getNodeValue(node) === valueOrValuePath
1216
+ });
1217
+ }
1203
1218
  };
1204
1219
  function flattenedToTree(nodes, options = fallbackMethods) {
1205
1220
  if (nodes.length === 0) throw new Error("[sprawlify-js/tree] Cannot create tree from empty flattened array");
@@ -1212,7 +1227,7 @@ function flattenedToTree(nodes, options = fallbackMethods) {
1212
1227
  const buildNode = (idx) => {
1213
1228
  const flatNode = nodeMap.get(idx);
1214
1229
  if (!flatNode) return {};
1215
- const { _children, ...cleanNode } = flatNode;
1230
+ const { _children, _parent, _index, ...cleanNode } = flatNode;
1216
1231
  const children = [];
1217
1232
  _children?.forEach((childIndex) => {
1218
1233
  children.push(buildNode(childIndex));
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./utils-ByNiZU8f.cjs");
3
- const require_collection = require("./collection-DZeodezM.cjs");
3
+ const require_collection = require("./collection-BBgC8xCb.cjs");
4
4
  exports.GridCollection = require_collection.GridCollection;
5
5
  exports.ListCollection = require_collection.ListCollection;
6
6
  exports.Selection = require_collection.Selection;
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-D-7AMgSE.cjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-B_8BN0XB.cjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-Bb_ZSVxe.cjs";
4
- import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-DjtppzYh.cjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-Cjgbx_9l.cjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-BmS2RDMq.cjs";
4
+ import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-DlqV5kYO.cjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-9uw8LHpE.mjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-DkRA5LOq.mjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-DdNvrKbj.mjs";
4
- import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-DlBCued7.mjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-IF510iNl.mjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-6urf-c8j.mjs";
4
+ import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-Dlf9EUrT.mjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,3 +1,3 @@
1
1
  import "./utils-VVoZ_v29.mjs";
2
- import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-CcsrqDFY.mjs";
2
+ import { a as GridCollection, c as isListCollection, i as Selection, n as filePathToTree, o as isGridCollection, r as flattenedToTree, s as ListCollection, t as TreeCollection } from "./collection-DgzidRvr.mjs";
3
3
  export { GridCollection, ListCollection, Selection, TreeCollection, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,4 +1,4 @@
1
- import { $t as getDocument, Qt as getActiveElement, an as isActiveElement } from "./dom-query-dX8Dakb4.mjs";
1
+ import { en as getActiveElement, sn as isActiveElement, tn as getDocument } from "./dom-query-s2ESLR2U.mjs";
2
2
  import { W as callAll, dt as isString, ft as isEqual } from "./utils-VVoZ_v29.mjs";
3
3
  //#region src/shared/core/merge-props.ts
4
4
  const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
@@ -1,4 +1,4 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  const require_utils = require("./utils-ByNiZU8f.cjs");
3
3
  //#region src/shared/core/merge-props.ts
4
4
  const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
package/dist/core.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
3
  require("./utils-ByNiZU8f.cjs");
4
- const require_core = require("./core-BiGlJ-4W.cjs");
4
+ const require_core = require("./core-nBg9RC_y.cjs");
5
5
  exports.INIT_STATE = require_core.INIT_STATE;
6
6
  exports.MachineStatus = require_core.MachineStatus;
7
7
  exports.createGuards = require_core.createGuards;
package/dist/core.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./dom-query-dX8Dakb4.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
2
  import "./utils-VVoZ_v29.mjs";
3
- import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-DfVajPnu.mjs";
3
+ import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-BmIEKqtP.mjs";
4
4
  export { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };
@@ -1,6 +1,6 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  const require_utils = require("./utils-ByNiZU8f.cjs");
3
- const require_interact_outside = require("./interact-outside-DRaFGdMg.cjs");
3
+ const require_interact_outside = require("./interact-outside-Cx4J0EBf.cjs");
4
4
  //#region src/shared/dismissable/escape-keydown.ts
5
5
  function trackEscapeKeydown(node, fn) {
6
6
  const handleKeyDown = (event) => {
@@ -1,6 +1,6 @@
1
- import { $t as getDocument, H as nextTick, W as raf, Zt as contains, ct as addDomEvent, pt as getEventTarget, t as waitForElement, u as setStyle, un as isHTMLElement } from "./dom-query-dX8Dakb4.mjs";
1
+ import { $t as contains, H as nextTick, W as raf, fn as isHTMLElement, ht as getEventTarget, t as waitForElement, tn as getDocument, u as setStyle, ut as addDomEvent } from "./dom-query-s2ESLR2U.mjs";
2
2
  import { at as isFunction, i as warn } from "./utils-VVoZ_v29.mjs";
3
- import { t as trackInteractOutside } from "./interact-outside-C-8lOhpV.mjs";
3
+ import { t as trackInteractOutside } from "./interact-outside-2qkUnl4N.mjs";
4
4
  //#region src/shared/dismissable/escape-keydown.ts
5
5
  function trackEscapeKeydown(node, fn) {
6
6
  const handleKeyDown = (event) => {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
3
  require("./utils-ByNiZU8f.cjs");
4
- require("./interact-outside-DRaFGdMg.cjs");
5
- const require_dismissable = require("./dismissable-DPXx0m0m.cjs");
4
+ require("./interact-outside-Cx4J0EBf.cjs");
5
+ const require_dismissable = require("./dismissable-ChwcJMHk.cjs");
6
6
  exports.trackDismissableBranch = require_dismissable.trackDismissableBranch;
7
7
  exports.trackDismissableElement = require_dismissable.trackDismissableElement;
@@ -1,5 +1,5 @@
1
- import "./dom-query-dX8Dakb4.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
2
  import "./utils-VVoZ_v29.mjs";
3
- import "./interact-outside-C-8lOhpV.mjs";
4
- import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-BAYaXwxZ.mjs";
3
+ import "./interact-outside-2qkUnl4N.mjs";
4
+ import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-DWfZGIA7.mjs";
5
5
  export { trackDismissableBranch, trackDismissableElement };
@@ -422,7 +422,8 @@ function dispatchInputValueEvent(el, options) {
422
422
  const win = getWindow(el);
423
423
  if (!(el instanceof win.HTMLInputElement)) return;
424
424
  setElementValue(el, `${value}`);
425
- el.dispatchEvent(new win.Event("input", { bubbles }));
425
+ const event = new win.Event("input", { bubbles });
426
+ el.dispatchEvent(markAsInternalChangeEvent(event));
426
427
  }
427
428
  function dispatchInputCheckedEvent(el, options) {
428
429
  const { checked, bubbles = true } = options;
@@ -430,17 +431,15 @@ function dispatchInputCheckedEvent(el, options) {
430
431
  const win = getWindow(el);
431
432
  if (!(el instanceof win.HTMLInputElement)) return;
432
433
  setElementChecked(el, checked);
433
- el.dispatchEvent(new win.Event("click", { bubbles }));
434
- }
435
- function getClosestForm(el) {
436
- return isFormElement(el) ? el.form : el.closest("form");
434
+ const event = new win.Event("click", { bubbles });
435
+ el.dispatchEvent(markAsInternalChangeEvent(event));
437
436
  }
438
437
  function isFormElement(el) {
439
438
  return el.matches("textarea, input, select, button");
440
439
  }
441
440
  function trackFormReset(el, callback) {
442
441
  if (!el) return;
443
- const form = getClosestForm(el);
442
+ const form = isFormElement(el) ? el.form : el.closest("form");
444
443
  const onReset = (e) => {
445
444
  if (e.defaultPrevented) return;
446
445
  callback();
@@ -465,6 +464,15 @@ function trackFormControl(el, options) {
465
464
  const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];
466
465
  return () => cleanups.forEach((cleanup) => cleanup?.());
467
466
  }
467
+ const INTERNAL_CHANGE_EVENT = Symbol.for("zag.changeEvent");
468
+ function isInternalChangeEvent(e) {
469
+ return Object.prototype.hasOwnProperty.call(e, INTERNAL_CHANGE_EVENT);
470
+ }
471
+ function markAsInternalChangeEvent(event) {
472
+ if (isInternalChangeEvent(event)) return event;
473
+ Object.defineProperty(event, INTERNAL_CHANGE_EVENT, { value: true });
474
+ return event;
475
+ }
468
476
  //#endregion
469
477
  //#region src/shared/dom-query/tabbable.ts
470
478
  const isFrame = (el) => isHTMLElement(el) && el.tagName === "IFRAME";
@@ -1801,6 +1809,12 @@ Object.defineProperty(exports, "isInteractiveContainerElement", {
1801
1809
  return isInteractiveContainerElement;
1802
1810
  }
1803
1811
  });
1812
+ Object.defineProperty(exports, "isInternalChangeEvent", {
1813
+ enumerable: true,
1814
+ get: function() {
1815
+ return isInternalChangeEvent;
1816
+ }
1817
+ });
1804
1818
  Object.defineProperty(exports, "isIos", {
1805
1819
  enumerable: true,
1806
1820
  get: function() {
@@ -1939,6 +1953,12 @@ Object.defineProperty(exports, "itemById", {
1939
1953
  return itemById;
1940
1954
  }
1941
1955
  });
1956
+ Object.defineProperty(exports, "markAsInternalChangeEvent", {
1957
+ enumerable: true,
1958
+ get: function() {
1959
+ return markAsInternalChangeEvent;
1960
+ }
1961
+ });
1942
1962
  Object.defineProperty(exports, "navigate", {
1943
1963
  enumerable: true,
1944
1964
  get: function() {
@@ -422,7 +422,8 @@ function dispatchInputValueEvent(el, options) {
422
422
  const win = getWindow(el);
423
423
  if (!(el instanceof win.HTMLInputElement)) return;
424
424
  setElementValue(el, `${value}`);
425
- el.dispatchEvent(new win.Event("input", { bubbles }));
425
+ const event = new win.Event("input", { bubbles });
426
+ el.dispatchEvent(markAsInternalChangeEvent(event));
426
427
  }
427
428
  function dispatchInputCheckedEvent(el, options) {
428
429
  const { checked, bubbles = true } = options;
@@ -430,17 +431,15 @@ function dispatchInputCheckedEvent(el, options) {
430
431
  const win = getWindow(el);
431
432
  if (!(el instanceof win.HTMLInputElement)) return;
432
433
  setElementChecked(el, checked);
433
- el.dispatchEvent(new win.Event("click", { bubbles }));
434
- }
435
- function getClosestForm(el) {
436
- return isFormElement(el) ? el.form : el.closest("form");
434
+ const event = new win.Event("click", { bubbles });
435
+ el.dispatchEvent(markAsInternalChangeEvent(event));
437
436
  }
438
437
  function isFormElement(el) {
439
438
  return el.matches("textarea, input, select, button");
440
439
  }
441
440
  function trackFormReset(el, callback) {
442
441
  if (!el) return;
443
- const form = getClosestForm(el);
442
+ const form = isFormElement(el) ? el.form : el.closest("form");
444
443
  const onReset = (e) => {
445
444
  if (e.defaultPrevented) return;
446
445
  callback();
@@ -465,6 +464,15 @@ function trackFormControl(el, options) {
465
464
  const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];
466
465
  return () => cleanups.forEach((cleanup) => cleanup?.());
467
466
  }
467
+ const INTERNAL_CHANGE_EVENT = Symbol.for("zag.changeEvent");
468
+ function isInternalChangeEvent(e) {
469
+ return Object.prototype.hasOwnProperty.call(e, INTERNAL_CHANGE_EVENT);
470
+ }
471
+ function markAsInternalChangeEvent(event) {
472
+ if (isInternalChangeEvent(event)) return event;
473
+ Object.defineProperty(event, INTERNAL_CHANGE_EVENT, { value: true });
474
+ return event;
475
+ }
468
476
  //#endregion
469
477
  //#region src/shared/dom-query/tabbable.ts
470
478
  const isFrame = (el) => isHTMLElement(el) && el.tagName === "IFRAME";
@@ -1363,4 +1371,4 @@ function waitForEvent(target, event, options) {
1363
1371
  }), () => cleanup?.()];
1364
1372
  }
1365
1373
  //#endregion
1366
- export { getTabbableEdges as $, getDocument as $t, getRelativePoint as A, isAndroid as At, observeChildren as B, isTouchDevice as Bt, queryAll as C, isPrintableKey as Ct, disableTextSelection as D, isVirtualPointerEvent as Dt, trackPointerMove as E, isVirtualClick as Et, isOverflowElement as F, isIPad as Ft, getInitialFocus as G, hasControllerElements as Gt, nextTick as H, getDataUrl as Ht, scrollIntoView as I, isIPhone as It, getFirstTabbable as J, isControllerElement as Jt, isValidTabEvent as K, isControlledByExpandedController as Kt, clickIfLink as L, isIos as Lt, getOverflowAncestors as M, isChrome as Mt, getScrollPosition as N, isDom as Nt, restoreTextSelection as O, getPlatform as Ot, isInView as P, isFirefox as Pt, getTabIndex as Q, getActiveElement as Qt, navigate as R, isMac as Rt, query as S, isOpeningInNewTab as St, trackPress as T, isTouchEvent as Tt, queueBeforeEvent as U, findControlledElements as Ut, AnimationFrame as V, isWebKit as Vt, raf as W, getControlledElements as Wt, getLastTabbable as X, getComputedStyle as Xt, getFocusables as Y, isInteractiveContainerElement as Yt, getNextTabbable as Z, contains as Zt, defaultItemToId as _, MAX_Z_INDEX as _n, isCtrlOrMetaKey as _t, visuallyHiddenStyle as a, isActiveElement as an, setElementChecked as at, nextById as b, isCaretAtStart as bn, isLeftClick as bt, setAttribute as c, isEditableElement as cn, addDomEvent as ct, setStyleProperty as d, isInputElement as dn, getEventPoint as dt, getDocumentElement as en, getTabbables as et, getByText as f, isNode as fn, getEventStep as ft, resizeObserverDevicePixelContentBox as g, isWindow as gn, isContextMenuEvent as gt, resizeObserverContentBox as h, isVisualViewport as hn, isComposingEvent as ht, setVisuallyHidden as i, getWindow as in, dispatchInputValueEvent as it, getNearestOverflowAncestor as j, isApple as jt, requestPointerLock as k, getUserAgent as kt, setProperty as l, isElementVisible as ln, getBeforeInputValue as lt, resizeObserverBorderBox as m, isShadowRoot as mn, getNativeEvent as mt, waitForEvent as n, getParentNode as nn, isTabbable as nt, trackVisualViewport as o, isAnchorElement as on, setElementValue as ot, createScope as p, isRootElement as pn, getEventTarget as pt, getFirstFocusable as q, isControlledElement as qt, waitForPromise as r, getRootNode as rn, dispatchInputCheckedEvent as rt, getByTypeahead as s, isDocument as sn, trackFormControl as st, waitForElement as t, getNodeName as tn, isFocusable as tt, setStyle as u, isHTMLElement as un, getEventKey as ut, indexOfId as v, ariaAttr as vn, isDownloadingEvent as vt, proxyTabFocus as w, isSelfTarget as wt, prevById as x, setCaretToEnd as xn, isModifierKey as xt, itemById as y, dataAttr as yn, isKeyboardClick as yt, observeAttributes as z, isSafari as zt };
1374
+ export { getTabbableEdges as $, contains as $t, getRelativePoint as A, getPlatform as At, observeChildren as B, isMac as Bt, queryAll as C, setCaretToEnd as Cn, isModifierKey as Ct, disableTextSelection as D, isTouchEvent as Dt, trackPointerMove as E, isSelfTarget as Et, isOverflowElement as F, isDom as Ft, getInitialFocus as G, findControlledElements as Gt, nextTick as H, isTouchDevice as Ht, scrollIntoView as I, isFirefox as It, getFirstTabbable as J, isControlledByExpandedController as Jt, isValidTabEvent as K, getControlledElements as Kt, clickIfLink as L, isIPad as Lt, getOverflowAncestors as M, isAndroid as Mt, getScrollPosition as N, isApple as Nt, restoreTextSelection as O, isVirtualClick as Ot, isInView as P, isChrome as Pt, getTabIndex as Q, getComputedStyle as Qt, navigate as R, isIPhone as Rt, query as S, isCaretAtStart as Sn, isLeftClick as St, trackPress as T, isPrintableKey as Tt, queueBeforeEvent as U, isWebKit as Ut, AnimationFrame as V, isSafari as Vt, raf as W, getDataUrl as Wt, getLastTabbable as X, isControllerElement as Xt, getFocusables as Y, isControlledElement as Yt, getNextTabbable as Z, isInteractiveContainerElement as Zt, defaultItemToId as _, isVisualViewport as _n, isComposingEvent as _t, visuallyHiddenStyle as a, getRootNode as an, isInternalChangeEvent as at, nextById as b, ariaAttr as bn, isDownloadingEvent as bt, setAttribute as c, isAnchorElement as cn, setElementValue as ct, setStyleProperty as d, isElementVisible as dn, getBeforeInputValue as dt, getActiveElement as en, getTabbables as et, getByText as f, isHTMLElement as fn, getEventKey as ft, resizeObserverDevicePixelContentBox as g, isShadowRoot as gn, getNativeEvent as gt, resizeObserverContentBox as h, isRootElement as hn, getEventTarget as ht, setVisuallyHidden as i, getParentNode as in, dispatchInputValueEvent as it, getNearestOverflowAncestor as j, getUserAgent as jt, requestPointerLock as k, isVirtualPointerEvent as kt, setProperty as l, isDocument as ln, trackFormControl as lt, resizeObserverBorderBox as m, isNode as mn, getEventStep as mt, waitForEvent as n, getDocumentElement as nn, isTabbable as nt, trackVisualViewport as o, getWindow as on, markAsInternalChangeEvent as ot, createScope as p, isInputElement as pn, getEventPoint as pt, getFirstFocusable as q, hasControllerElements as qt, waitForPromise as r, getNodeName as rn, dispatchInputCheckedEvent as rt, getByTypeahead as s, isActiveElement as sn, setElementChecked as st, waitForElement as t, getDocument as tn, isFocusable as tt, setStyle as u, isEditableElement as un, addDomEvent as ut, indexOfId as v, isWindow as vn, isContextMenuEvent as vt, proxyTabFocus as w, isOpeningInNewTab as wt, prevById as x, dataAttr as xn, isKeyboardClick as xt, itemById as y, MAX_Z_INDEX as yn, isCtrlOrMetaKey as yt, observeAttributes as z, isIos as zt };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
2
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
3
3
  exports.AnimationFrame = require_dom_query.AnimationFrame;
4
4
  exports.MAX_Z_INDEX = require_dom_query.MAX_Z_INDEX;
5
5
  exports.addDomEvent = require_dom_query.addDomEvent;
@@ -73,6 +73,7 @@ exports.isIPhone = require_dom_query.isIPhone;
73
73
  exports.isInView = require_dom_query.isInView;
74
74
  exports.isInputElement = require_dom_query.isInputElement;
75
75
  exports.isInteractiveContainerElement = require_dom_query.isInteractiveContainerElement;
76
+ exports.isInternalChangeEvent = require_dom_query.isInternalChangeEvent;
76
77
  exports.isIos = require_dom_query.isIos;
77
78
  exports.isKeyboardClick = require_dom_query.isKeyboardClick;
78
79
  exports.isLeftClick = require_dom_query.isLeftClick;
@@ -96,6 +97,7 @@ exports.isVisualViewport = require_dom_query.isVisualViewport;
96
97
  exports.isWebKit = require_dom_query.isWebKit;
97
98
  exports.isWindow = require_dom_query.isWindow;
98
99
  exports.itemById = require_dom_query.itemById;
100
+ exports.markAsInternalChangeEvent = require_dom_query.markAsInternalChangeEvent;
99
101
  exports.navigate = require_dom_query.navigate;
100
102
  exports.nextById = require_dom_query.nextById;
101
103
  exports.nextTick = require_dom_query.nextTick;
@@ -84,6 +84,12 @@ interface TrackFormControlOptions {
84
84
  onFormReset: VoidFunction;
85
85
  }
86
86
  declare function trackFormControl(el: HTMLElement | null, options: TrackFormControlOptions): (() => void) | undefined;
87
+ declare const INTERNAL_CHANGE_EVENT: unique symbol;
88
+ type InternalChangeEventProps = {
89
+ [INTERNAL_CHANGE_EVENT]?: boolean;
90
+ };
91
+ declare function isInternalChangeEvent<T extends Event>(e: T): e is T & InternalChangeEventProps;
92
+ declare function markAsInternalChangeEvent<T extends Event>(event: T): T & InternalChangeEventProps;
87
93
  //#endregion
88
94
  //#region src/shared/dom-query/initial-focus.d.ts
89
95
  interface InitialFocusOptions {
@@ -304,4 +310,4 @@ declare const visuallyHiddenStyle: {
304
310
  };
305
311
  declare function setVisuallyHidden(el: HTMLElement): void;
306
312
  //#endregion
307
- export { AnimationFrame, CheckedEventOptions, ControlledElementOptions, DataUrlOptions, DataUrlType, DisableTextSelectionOptions, GetShadowRootOption, InitialFocusOptions, InputValueEventOptions, ItemToId, MAX_Z_INDEX, NavigateOptions, NextTabbableOptions, ObserveAttributeOptions, ObserveChildrenOptions, OverflowAncestor, PercentValueOptions, PointerMoveDetails, PointerMoveHandlers, PointerUpDetails, PressDetails, ProxyTabFocusOptions, ScopeContext, ScrollOptions, ScrollPosition, SearchableItem, TabbableOptions, TrackFormControlOptions, TrackPressOptions, TypeaheadOptions, TypeaheadState, ViewportSize, WaitForEventOptions, WaitForOptions, WaitForPromiseReturn, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
313
+ export { AnimationFrame, CheckedEventOptions, ControlledElementOptions, DataUrlOptions, DataUrlType, DisableTextSelectionOptions, GetShadowRootOption, InitialFocusOptions, InputValueEventOptions, ItemToId, MAX_Z_INDEX, NavigateOptions, NextTabbableOptions, ObserveAttributeOptions, ObserveChildrenOptions, OverflowAncestor, PercentValueOptions, PointerMoveDetails, PointerMoveHandlers, PointerUpDetails, PressDetails, ProxyTabFocusOptions, ScopeContext, ScrollOptions, ScrollPosition, SearchableItem, TabbableOptions, TrackFormControlOptions, TrackPressOptions, TypeaheadOptions, TypeaheadState, ViewportSize, WaitForEventOptions, WaitForOptions, WaitForPromiseReturn, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isInternalChangeEvent, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, markAsInternalChangeEvent, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
@@ -84,6 +84,12 @@ interface TrackFormControlOptions {
84
84
  onFormReset: VoidFunction;
85
85
  }
86
86
  declare function trackFormControl(el: HTMLElement | null, options: TrackFormControlOptions): (() => void) | undefined;
87
+ declare const INTERNAL_CHANGE_EVENT: unique symbol;
88
+ type InternalChangeEventProps = {
89
+ [INTERNAL_CHANGE_EVENT]?: boolean;
90
+ };
91
+ declare function isInternalChangeEvent<T extends Event>(e: T): e is T & InternalChangeEventProps;
92
+ declare function markAsInternalChangeEvent<T extends Event>(event: T): T & InternalChangeEventProps;
87
93
  //#endregion
88
94
  //#region src/shared/dom-query/initial-focus.d.ts
89
95
  interface InitialFocusOptions {
@@ -304,4 +310,4 @@ declare const visuallyHiddenStyle: {
304
310
  };
305
311
  declare function setVisuallyHidden(el: HTMLElement): void;
306
312
  //#endregion
307
- export { AnimationFrame, CheckedEventOptions, ControlledElementOptions, DataUrlOptions, DataUrlType, DisableTextSelectionOptions, GetShadowRootOption, InitialFocusOptions, InputValueEventOptions, ItemToId, MAX_Z_INDEX, NavigateOptions, NextTabbableOptions, ObserveAttributeOptions, ObserveChildrenOptions, OverflowAncestor, PercentValueOptions, PointerMoveDetails, PointerMoveHandlers, PointerUpDetails, PressDetails, ProxyTabFocusOptions, ScopeContext, ScrollOptions, ScrollPosition, SearchableItem, TabbableOptions, TrackFormControlOptions, TrackPressOptions, TypeaheadOptions, TypeaheadState, ViewportSize, WaitForEventOptions, WaitForOptions, WaitForPromiseReturn, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
313
+ export { AnimationFrame, CheckedEventOptions, ControlledElementOptions, DataUrlOptions, DataUrlType, DisableTextSelectionOptions, GetShadowRootOption, InitialFocusOptions, InputValueEventOptions, ItemToId, MAX_Z_INDEX, NavigateOptions, NextTabbableOptions, ObserveAttributeOptions, ObserveChildrenOptions, OverflowAncestor, PercentValueOptions, PointerMoveDetails, PointerMoveHandlers, PointerUpDetails, PressDetails, ProxyTabFocusOptions, ScopeContext, ScrollOptions, ScrollPosition, SearchableItem, TabbableOptions, TrackFormControlOptions, TrackPressOptions, TypeaheadOptions, TypeaheadState, ViewportSize, WaitForEventOptions, WaitForOptions, WaitForPromiseReturn, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isInternalChangeEvent, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, markAsInternalChangeEvent, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
@@ -1,2 +1,2 @@
1
- import { $ as getTabbableEdges, $t as getDocument, A as getRelativePoint, At as isAndroid, B as observeChildren, Bt as isTouchDevice, C as queryAll, Ct as isPrintableKey, D as disableTextSelection, Dt as isVirtualPointerEvent, E as trackPointerMove, Et as isVirtualClick, F as isOverflowElement, Ft as isIPad, G as getInitialFocus, Gt as hasControllerElements, H as nextTick, Ht as getDataUrl, I as scrollIntoView, It as isIPhone, J as getFirstTabbable, Jt as isControllerElement, K as isValidTabEvent, Kt as isControlledByExpandedController, L as clickIfLink, Lt as isIos, M as getOverflowAncestors, Mt as isChrome, N as getScrollPosition, Nt as isDom, O as restoreTextSelection, Ot as getPlatform, P as isInView, Pt as isFirefox, Q as getTabIndex, Qt as getActiveElement, R as navigate, Rt as isMac, S as query, St as isOpeningInNewTab, T as trackPress, Tt as isTouchEvent, U as queueBeforeEvent, Ut as findControlledElements, V as AnimationFrame, Vt as isWebKit, W as raf, Wt as getControlledElements, X as getLastTabbable, Xt as getComputedStyle, Y as getFocusables, Yt as isInteractiveContainerElement, Z as getNextTabbable, Zt as contains, _ as defaultItemToId, _n as MAX_Z_INDEX, _t as isCtrlOrMetaKey, a as visuallyHiddenStyle, an as isActiveElement, at as setElementChecked, b as nextById, bn as isCaretAtStart, bt as isLeftClick, c as setAttribute, cn as isEditableElement, ct as addDomEvent, d as setStyleProperty, dn as isInputElement, dt as getEventPoint, en as getDocumentElement, et as getTabbables, f as getByText, fn as isNode, ft as getEventStep, g as resizeObserverDevicePixelContentBox, gn as isWindow, gt as isContextMenuEvent, h as resizeObserverContentBox, hn as isVisualViewport, ht as isComposingEvent, i as setVisuallyHidden, in as getWindow, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as isApple, k as requestPointerLock, kt as getUserAgent, l as setProperty, ln as isElementVisible, lt as getBeforeInputValue, m as resizeObserverBorderBox, mn as isShadowRoot, mt as getNativeEvent, n as waitForEvent, nn as getParentNode, nt as isTabbable, o as trackVisualViewport, on as isAnchorElement, ot as setElementValue, p as createScope, pn as isRootElement, pt as getEventTarget, q as getFirstFocusable, qt as isControlledElement, r as waitForPromise, rn as getRootNode, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isDocument, st as trackFormControl, t as waitForElement, tn as getNodeName, tt as isFocusable, u as setStyle, un as isHTMLElement, ut as getEventKey, v as indexOfId, vn as ariaAttr, vt as isDownloadingEvent, w as proxyTabFocus, wt as isSelfTarget, x as prevById, xn as setCaretToEnd, xt as isModifierKey, y as itemById, yn as dataAttr, yt as isKeyboardClick, z as observeAttributes, zt as isSafari } from "./dom-query-dX8Dakb4.mjs";
2
- export { AnimationFrame, MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
1
+ import { $ as getTabbableEdges, $t as contains, A as getRelativePoint, At as getPlatform, B as observeChildren, Bt as isMac, C as queryAll, Cn as setCaretToEnd, Ct as isModifierKey, D as disableTextSelection, Dt as isTouchEvent, E as trackPointerMove, Et as isSelfTarget, F as isOverflowElement, Ft as isDom, G as getInitialFocus, Gt as findControlledElements, H as nextTick, Ht as isTouchDevice, I as scrollIntoView, It as isFirefox, J as getFirstTabbable, Jt as isControlledByExpandedController, K as isValidTabEvent, Kt as getControlledElements, L as clickIfLink, Lt as isIPad, M as getOverflowAncestors, Mt as isAndroid, N as getScrollPosition, Nt as isApple, O as restoreTextSelection, Ot as isVirtualClick, P as isInView, Pt as isChrome, Q as getTabIndex, Qt as getComputedStyle, R as navigate, Rt as isIPhone, S as query, Sn as isCaretAtStart, St as isLeftClick, T as trackPress, Tt as isPrintableKey, U as queueBeforeEvent, Ut as isWebKit, V as AnimationFrame, Vt as isSafari, W as raf, Wt as getDataUrl, X as getLastTabbable, Xt as isControllerElement, Y as getFocusables, Yt as isControlledElement, Z as getNextTabbable, Zt as isInteractiveContainerElement, _ as defaultItemToId, _n as isVisualViewport, _t as isComposingEvent, a as visuallyHiddenStyle, an as getRootNode, at as isInternalChangeEvent, b as nextById, bn as ariaAttr, bt as isDownloadingEvent, c as setAttribute, cn as isAnchorElement, ct as setElementValue, d as setStyleProperty, dn as isElementVisible, dt as getBeforeInputValue, en as getActiveElement, et as getTabbables, f as getByText, fn as isHTMLElement, ft as getEventKey, g as resizeObserverDevicePixelContentBox, gn as isShadowRoot, gt as getNativeEvent, h as resizeObserverContentBox, hn as isRootElement, ht as getEventTarget, i as setVisuallyHidden, in as getParentNode, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as getUserAgent, k as requestPointerLock, kt as isVirtualPointerEvent, l as setProperty, ln as isDocument, lt as trackFormControl, m as resizeObserverBorderBox, mn as isNode, mt as getEventStep, n as waitForEvent, nn as getDocumentElement, nt as isTabbable, o as trackVisualViewport, on as getWindow, ot as markAsInternalChangeEvent, p as createScope, pn as isInputElement, pt as getEventPoint, q as getFirstFocusable, qt as hasControllerElements, r as waitForPromise, rn as getNodeName, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isActiveElement, st as setElementChecked, t as waitForElement, tn as getDocument, tt as isFocusable, u as setStyle, un as isEditableElement, ut as addDomEvent, v as indexOfId, vn as isWindow, vt as isContextMenuEvent, w as proxyTabFocus, wt as isOpeningInNewTab, x as prevById, xn as dataAttr, xt as isKeyboardClick, y as itemById, yn as MAX_Z_INDEX, yt as isCtrlOrMetaKey, z as observeAttributes, zt as isIos } from "./dom-query-s2ESLR2U.mjs";
2
+ export { AnimationFrame, MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isInternalChangeEvent, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, markAsInternalChangeEvent, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
@@ -1,4 +1,4 @@
1
- import { $t as getDocument, Gt as hasControllerElements, Kt as isControlledByExpandedController, Q as getTabIndex, Qt as getActiveElement, W as raf, Wt as getControlledElements, Y as getFocusables, ct as addDomEvent, et as getTabbables, nt as isTabbable, pt as getEventTarget, qt as isControlledElement, sn as isDocument, tt as isFocusable } from "./dom-query-dX8Dakb4.mjs";
1
+ import { Jt as isControlledByExpandedController, Kt as getControlledElements, Q as getTabIndex, W as raf, Y as getFocusables, Yt as isControlledElement, en as getActiveElement, et as getTabbables, ht as getEventTarget, ln as isDocument, nt as isTabbable, qt as hasControllerElements, tn as getDocument, tt as isFocusable, ut as addDomEvent } from "./dom-query-s2ESLR2U.mjs";
2
2
  import { t as _defineProperty } from "./defineProperty-D5oW_HU_.mjs";
3
3
  //#region src/shared/focus-trap/focus-trap.ts
4
4
  const activeFocusTraps = {
@@ -1,4 +1,4 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  const require_defineProperty = require("./defineProperty-8IOBQ1i_.cjs");
3
3
  //#region src/shared/focus-trap/focus-trap.ts
4
4
  const activeFocusTraps = {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
3
- const require_focus_trap = require("./focus-trap-ClCNF7kY.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
+ const require_focus_trap = require("./focus-trap-fucc6OU_.cjs");
4
4
  exports.FocusTrap = require_focus_trap.FocusTrap;
5
5
  exports.trapFocus = require_focus_trap.trapFocus;
@@ -1,3 +1,3 @@
1
- import "./dom-query-dX8Dakb4.mjs";
2
- import { n as FocusTrap, t as trapFocus } from "./focus-trap-Cd09JaUn.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
+ import { n as FocusTrap, t as trapFocus } from "./focus-trap-DzBvBlTH.mjs";
3
3
  export { FocusTrap, trapFocus };
@@ -1,4 +1,4 @@
1
- const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
1
+ const require_dom_query = require("./dom-query-Bd63cRVF.cjs");
2
2
  //#region src/shared/focus-visible/index.ts
3
3
  function isValidKey(e) {
4
4
  return !(e.metaKey || !require_dom_query.isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
@@ -1,4 +1,4 @@
1
- import { $t as getDocument, Et as isVirtualClick, Rt as isMac, in as getWindow, pt as getEventTarget } from "./dom-query-dX8Dakb4.mjs";
1
+ import { Bt as isMac, Ot as isVirtualClick, ht as getEventTarget, on as getWindow, tn as getDocument } from "./dom-query-s2ESLR2U.mjs";
2
2
  //#region src/shared/focus-visible/index.ts
3
3
  function isValidKey(e) {
4
4
  return !(e.metaKey || !isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- require("./dom-query-6Wt-Tikf.cjs");
3
- const require_focus_visible = require("./focus-visible-CqHoOOjw.cjs");
2
+ require("./dom-query-Bd63cRVF.cjs");
3
+ const require_focus_visible = require("./focus-visible-75XTctXf.cjs");
4
4
  exports.getInteractionModality = require_focus_visible.getInteractionModality;
5
5
  exports.isFocusVisible = require_focus_visible.isFocusVisible;
6
6
  exports.listenerMap = require_focus_visible.listenerMap;
@@ -1,3 +1,3 @@
1
- import "./dom-query-dX8Dakb4.mjs";
2
- import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-CSuBQ5QZ.mjs";
1
+ import "./dom-query-s2ESLR2U.mjs";
2
+ import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-D5qBaAOn.mjs";
3
3
  export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };