akar 2.0.10 → 2.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.
Files changed (156) hide show
  1. package/dist/Collection/Collection.cjs +2 -1
  2. package/dist/Collection/Collection.cjs.map +1 -1
  3. package/dist/Collection/Collection.js +2 -1
  4. package/dist/Collection/Collection.js.map +1 -1
  5. package/dist/Drawer/DrawerClose.cjs +48 -0
  6. package/dist/Drawer/DrawerClose.cjs.map +1 -0
  7. package/dist/Drawer/DrawerClose.js +42 -0
  8. package/dist/Drawer/DrawerClose.js.map +1 -0
  9. package/dist/Drawer/DrawerContent.cjs +139 -0
  10. package/dist/Drawer/DrawerContent.cjs.map +1 -0
  11. package/dist/Drawer/DrawerContent.js +133 -0
  12. package/dist/Drawer/DrawerContent.js.map +1 -0
  13. package/dist/Drawer/DrawerContentImpl.cjs +298 -0
  14. package/dist/Drawer/DrawerContentImpl.cjs.map +1 -0
  15. package/dist/Drawer/DrawerContentImpl.js +292 -0
  16. package/dist/Drawer/DrawerContentImpl.js.map +1 -0
  17. package/dist/Drawer/DrawerDescription.cjs +45 -0
  18. package/dist/Drawer/DrawerDescription.cjs.map +1 -0
  19. package/dist/Drawer/DrawerDescription.js +39 -0
  20. package/dist/Drawer/DrawerDescription.js.map +1 -0
  21. package/dist/Drawer/DrawerHandle.cjs +48 -0
  22. package/dist/Drawer/DrawerHandle.cjs.map +1 -0
  23. package/dist/Drawer/DrawerHandle.js +42 -0
  24. package/dist/Drawer/DrawerHandle.js.map +1 -0
  25. package/dist/Drawer/DrawerIndent.cjs +78 -0
  26. package/dist/Drawer/DrawerIndent.cjs.map +1 -0
  27. package/dist/Drawer/DrawerIndent.js +72 -0
  28. package/dist/Drawer/DrawerIndent.js.map +1 -0
  29. package/dist/Drawer/DrawerIndentBackground.cjs +49 -0
  30. package/dist/Drawer/DrawerIndentBackground.cjs.map +1 -0
  31. package/dist/Drawer/DrawerIndentBackground.js +43 -0
  32. package/dist/Drawer/DrawerIndentBackground.js.map +1 -0
  33. package/dist/Drawer/DrawerOverlay.cjs +66 -0
  34. package/dist/Drawer/DrawerOverlay.cjs.map +1 -0
  35. package/dist/Drawer/DrawerOverlay.js +60 -0
  36. package/dist/Drawer/DrawerOverlay.js.map +1 -0
  37. package/dist/Drawer/DrawerOverlayImpl.cjs +69 -0
  38. package/dist/Drawer/DrawerOverlayImpl.cjs.map +1 -0
  39. package/dist/Drawer/DrawerOverlayImpl.js +63 -0
  40. package/dist/Drawer/DrawerOverlayImpl.js.map +1 -0
  41. package/dist/Drawer/DrawerPortal.cjs +47 -0
  42. package/dist/Drawer/DrawerPortal.cjs.map +1 -0
  43. package/dist/Drawer/DrawerPortal.js +41 -0
  44. package/dist/Drawer/DrawerPortal.js.map +1 -0
  45. package/dist/Drawer/DrawerProvider.cjs +82 -0
  46. package/dist/Drawer/DrawerProvider.cjs.map +1 -0
  47. package/dist/Drawer/DrawerProvider.js +70 -0
  48. package/dist/Drawer/DrawerProvider.js.map +1 -0
  49. package/dist/Drawer/DrawerRoot.cjs +197 -0
  50. package/dist/Drawer/DrawerRoot.cjs.map +1 -0
  51. package/dist/Drawer/DrawerRoot.js +185 -0
  52. package/dist/Drawer/DrawerRoot.js.map +1 -0
  53. package/dist/Drawer/DrawerSwipeArea.cjs +87 -0
  54. package/dist/Drawer/DrawerSwipeArea.cjs.map +1 -0
  55. package/dist/Drawer/DrawerSwipeArea.js +81 -0
  56. package/dist/Drawer/DrawerSwipeArea.js.map +1 -0
  57. package/dist/Drawer/DrawerTitle.cjs +45 -0
  58. package/dist/Drawer/DrawerTitle.cjs.map +1 -0
  59. package/dist/Drawer/DrawerTitle.js +39 -0
  60. package/dist/Drawer/DrawerTitle.js.map +1 -0
  61. package/dist/Drawer/DrawerTrigger.cjs +64 -0
  62. package/dist/Drawer/DrawerTrigger.cjs.map +1 -0
  63. package/dist/Drawer/DrawerTrigger.js +58 -0
  64. package/dist/Drawer/DrawerTrigger.js.map +1 -0
  65. package/dist/Drawer/DrawerViewport.cjs +49 -0
  66. package/dist/Drawer/DrawerViewport.cjs.map +1 -0
  67. package/dist/Drawer/DrawerViewport.js +43 -0
  68. package/dist/Drawer/DrawerViewport.js.map +1 -0
  69. package/dist/Drawer/utils.cjs +185 -0
  70. package/dist/Drawer/utils.cjs.map +1 -0
  71. package/dist/Drawer/utils.js +149 -0
  72. package/dist/Drawer/utils.js.map +1 -0
  73. package/dist/Rating/RatingItem.cjs +66 -0
  74. package/dist/Rating/RatingItem.cjs.map +1 -0
  75. package/dist/Rating/RatingItem.js +54 -0
  76. package/dist/Rating/RatingItem.js.map +1 -0
  77. package/dist/Rating/RatingItemIndicator.cjs +89 -0
  78. package/dist/Rating/RatingItemIndicator.cjs.map +1 -0
  79. package/dist/Rating/RatingItemIndicator.js +83 -0
  80. package/dist/Rating/RatingItemIndicator.js.map +1 -0
  81. package/dist/Rating/RatingRoot.cjs +136 -0
  82. package/dist/Rating/RatingRoot.cjs.map +1 -0
  83. package/dist/Rating/RatingRoot.js +124 -0
  84. package/dist/Rating/RatingRoot.js.map +1 -0
  85. package/dist/composables/useDrawerSnapPoints.cjs +130 -0
  86. package/dist/composables/useDrawerSnapPoints.cjs.map +1 -0
  87. package/dist/composables/useDrawerSnapPoints.js +124 -0
  88. package/dist/composables/useDrawerSnapPoints.js.map +1 -0
  89. package/dist/composables/useSwipeDismiss.cjs +401 -0
  90. package/dist/composables/useSwipeDismiss.cjs.map +1 -0
  91. package/dist/composables/useSwipeDismiss.js +395 -0
  92. package/dist/composables/useSwipeDismiss.js.map +1 -0
  93. package/dist/constant/components.cjs +5 -0
  94. package/dist/constant/components.cjs.map +1 -1
  95. package/dist/constant/components.js +5 -0
  96. package/dist/constant/components.js.map +1 -1
  97. package/dist/constant.d.cts +1 -0
  98. package/dist/constant.d.cts.map +1 -1
  99. package/dist/constant.d.ts +1 -0
  100. package/dist/constant.d.ts.map +1 -1
  101. package/dist/index.cjs +44 -0
  102. package/dist/index.d.cts +2 -2
  103. package/dist/index.d.ts +2 -2
  104. package/dist/index.js +23 -1
  105. package/dist/index2.d.ts.map +1 -1
  106. package/dist/index3.d.cts +4 -4
  107. package/dist/index3.d.ts +15 -15
  108. package/dist/index4.d.cts +1612 -1201
  109. package/dist/index4.d.cts.map +1 -1
  110. package/dist/index4.d.ts +1618 -1207
  111. package/dist/index4.d.ts.map +1 -1
  112. package/dist/internal.d.cts +3 -3
  113. package/dist/internal.d.ts +3 -3
  114. package/dist/internal.d.ts.map +1 -1
  115. package/dist/namespaced/index.cjs +6 -0
  116. package/dist/namespaced/index.d.cts +7 -2
  117. package/dist/namespaced/index.d.mts +7 -2
  118. package/dist/namespaced/index.mjs +7 -2
  119. package/dist/shared/useSize.cjs +6 -2
  120. package/dist/shared/useSize.cjs.map +1 -1
  121. package/dist/shared/useSize.js +7 -3
  122. package/dist/shared/useSize.js.map +1 -1
  123. package/dist/utils/style.cjs +1 -1
  124. package/dist/utils/style.cjs.map +1 -1
  125. package/dist/utils/style.js +1 -1
  126. package/dist/utils/style.js.map +1 -1
  127. package/package.json +1 -1
  128. package/src/Collection/Collection.ts +2 -1
  129. package/src/Drawer/DrawerClose.vue +25 -0
  130. package/src/Drawer/DrawerContent.vue +102 -0
  131. package/src/Drawer/DrawerContentImpl.vue +395 -0
  132. package/src/Drawer/DrawerDescription.vue +24 -0
  133. package/src/Drawer/DrawerHandle.vue +25 -0
  134. package/src/Drawer/DrawerIndent.vue +64 -0
  135. package/src/Drawer/DrawerIndentBackground.vue +26 -0
  136. package/src/Drawer/DrawerOverlay.vue +42 -0
  137. package/src/Drawer/DrawerOverlayImpl.vue +55 -0
  138. package/src/Drawer/DrawerPortal.vue +17 -0
  139. package/src/Drawer/DrawerProvider.vue +95 -0
  140. package/src/Drawer/DrawerRoot.vue +252 -0
  141. package/src/Drawer/DrawerSwipeArea.vue +74 -0
  142. package/src/Drawer/DrawerTitle.vue +24 -0
  143. package/src/Drawer/DrawerTrigger.vue +45 -0
  144. package/src/Drawer/DrawerViewport.vue +34 -0
  145. package/src/Drawer/composables/useDrawerSnapPoints.ts +207 -0
  146. package/src/Drawer/composables/useSwipeDismiss.ts +586 -0
  147. package/src/Drawer/index.ts +74 -0
  148. package/src/Drawer/utils.ts +205 -0
  149. package/src/Rating/RatingItem.vue +1 -0
  150. package/src/Rating/RatingItemIndicator.vue +3 -2
  151. package/src/Rating/RatingRoot.vue +6 -2
  152. package/src/Rating/index.ts +3 -3
  153. package/src/Splitter/utils/style.ts +1 -1
  154. package/src/index.ts +2 -0
  155. package/src/shared/useEmitAsProps.test-d.ts +0 -1
  156. package/src/shared/useSize.ts +9 -4
@@ -22,8 +22,9 @@ function useCollection(options = {}) {
22
22
  const collectionNode = context.collectionRef.value;
23
23
  if (!collectionNode) return [];
24
24
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
25
+ const orderMap = new Map(orderedNodes.map((node, index) => [node, index]));
25
26
  const items = Array.from(context.itemMap.value.values());
26
- const orderedItems = items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));
27
+ const orderedItems = items.sort((a, b) => (orderMap.get(a.ref) ?? -1) - (orderMap.get(b.ref) ?? -1));
27
28
  if (includeDisabledItem) return orderedItems;
28
29
  else return orderedItems.filter((i) => i.ref.dataset.disabled !== "");
29
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.cjs","names":["options: { key?: string; isProvider?: boolean }","context: CollectionContext<ItemData>","Slot","key"],"sources":["../../src/Collection/Collection.ts"],"sourcesContent":[],"mappings":";;;;;;AASA,MAAM,iBAAiB;AAEvB,SAAgB,cAA6BA,UAAkD,CAAE,GAAE;CACjG,MAAM,EAAE,MAAM,IAAI,aAAa,OAAO,GAAG;CACzC,MAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC;CAC/C,IAAIC;AAEJ,KAAI,YAAY;EACd,MAAM,UAAU,6BAAuD,IAAI,MAAM;EACjF,MAAM,gBAAgB,cAAkB;AAExC,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,eAAU,MAAM,QAAQ,QAAQ,MAAM,OAAOA,MAAI,CAAC;IACnD;GACF,EAAC;AAEF,UAAO,MAAM,WAAED,6BAAM;IAAE,GAAG;KAAQ,iBAAiB;IAAI,KAAK;GAAkB,GAAE,MAAM;EACvF;CACF,EAAC;CAEF,MAAM,gBAAgB,kBAAS,MAAM,MAAM,KAAK,QAAQ,QAAQ,MAAM,QAAQ,CAAC,CAAC;CAChF,MAAM,cAAc,kBAAS,MAAM,QAAQ,QAAQ,MAAM,KAAK;AAE9D,QAAO;EAAE;EAAU;EAAe;EAAa;EAAgB;CAAgB;AAChF"}
1
+ {"version":3,"file":"Collection.cjs","names":["options: { key?: string; isProvider?: boolean }","context: CollectionContext<ItemData>","Slot","key"],"sources":["../../src/Collection/Collection.ts"],"sourcesContent":[],"mappings":";;;;;;AASA,MAAM,iBAAiB;AAEvB,SAAgB,cAA6BA,UAAkD,CAAE,GAAE;CACjG,MAAM,EAAE,MAAM,IAAI,aAAa,OAAO,GAAG;CACzC,MAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC;CAC/C,IAAIC;AAEJ,KAAI,YAAY;EACd,MAAM,UAAU,6BAAuD,IAAI,MAAM;EACjF,MAAM,gBAAgB,cAAkB;AAExC,YAAU;GACR;GACA;EACD;AACD,mBAAQ,cAAc,QAAQ;CAC/B,MACC,WAAU,gBAAO,aAAa;CAGhC,MAAM,WAAW,CAAC,sBAAsB,UAAU;EAChD,MAAM,iBAAiB,QAAQ,cAAc;AAC7C,OAAK,eACH,QAAO,CAAE;EAEX,MAAM,eAAe,MAAM,KAAK,eAAe,iBAAiB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;EACvF,MAAM,WAAW,IAAI,IAAI,aAAa,IAAI,CAAC,MAAM,UAAU,CAAC,MAAM,KAAM,EAAC;EACzE,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,MAAM,QAAQ,CAAC;EACxD,MAAM,eAAe,MAAM,KACzB,CAAC,GAA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B;AAChF"}
@@ -21,8 +21,9 @@ function useCollection(options = {}) {
21
21
  const collectionNode = context.collectionRef.value;
22
22
  if (!collectionNode) return [];
23
23
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
24
+ const orderMap = new Map(orderedNodes.map((node, index) => [node, index]));
24
25
  const items = Array.from(context.itemMap.value.values());
25
- const orderedItems = items.sort((a, b) => orderedNodes.indexOf(a.ref) - orderedNodes.indexOf(b.ref));
26
+ const orderedItems = items.sort((a, b) => (orderMap.get(a.ref) ?? -1) - (orderMap.get(b.ref) ?? -1));
26
27
  if (includeDisabledItem) return orderedItems;
27
28
  else return orderedItems.filter((i) => i.ref.dataset.disabled !== "");
28
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Collection.js","names":["options: { key?: string; isProvider?: boolean }","context: CollectionContext<ItemData>","key"],"sources":["../../src/Collection/Collection.ts"],"sourcesContent":[],"mappings":";;;;;AASA,MAAM,iBAAiB;AAEvB,SAAgB,cAA6BA,UAAkD,CAAE,GAAE;CACjG,MAAM,EAAE,MAAM,IAAI,aAAa,OAAO,GAAG;CACzC,MAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC;CAC/C,IAAIC;AAEJ,KAAI,YAAY;EACd,MAAM,UAAU,oBAAuD,IAAI,MAAM;EACjF,MAAM,gBAAgB,KAAkB;AAExC,YAAU;GACR;GACA;EACD;AACD,UAAQ,cAAc,QAAQ;CAC/B,MACC,WAAU,OAAO,aAAa;CAGhC,MAAM,WAAW,CAAC,sBAAsB,UAAU;EAChD,MAAM,iBAAiB,QAAQ,cAAc;AAC7C,OAAK,eACH,QAAO,CAAE;EAEX,MAAM,eAAe,MAAM,KAAK,eAAe,iBAAiB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;EACvF,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,MAAM,QAAQ,CAAC;EACxD,MAAM,eAAe,MAAM,KACzB,CAAC,GAAG,MAAM,a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collection.js","names":["options: { key?: string; isProvider?: boolean }","context: CollectionContext<ItemData>","key"],"sources":["../../src/Collection/Collection.ts"],"sourcesContent":[],"mappings":";;;;;AASA,MAAM,iBAAiB;AAEvB,SAAgB,cAA6BA,UAAkD,CAAE,GAAE;CACjG,MAAM,EAAE,MAAM,IAAI,aAAa,OAAO,GAAG;CACzC,MAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC;CAC/C,IAAIC;AAEJ,KAAI,YAAY;EACd,MAAM,UAAU,oBAAuD,IAAI,MAAM;EACjF,MAAM,gBAAgB,KAAkB;AAExC,YAAU;GACR;GACA;EACD;AACD,UAAQ,cAAc,QAAQ;CAC/B,MACC,WAAU,OAAO,aAAa;CAGhC,MAAM,WAAW,CAAC,sBAAsB,UAAU;EAChD,MAAM,iBAAiB,QAAQ,cAAc;AAC7C,OAAK,eACH,QAAO,CAAE;EAEX,MAAM,eAAe,MAAM,KAAK,eAAe,iBAAiB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;EACvF,MAAM,WAAW,IAAI,IAAI,aAAa,IAAI,CAAC,MAAM,UAAU,CAAC,MAAM,KAAM,EAAC;EACzE,MAAM,QAAQ,MAAM,KAAK,QAAQ,QAAQ,MAAM,QAAQ,CAAC;EACxD,MAAM,eAAe,MAAM,KACzB,CAAC,GAAG,OAAO,SAAS,IAAI,EAAE,IAAI,IAAI,OAAO,SAAS,IAAI,EAAE,IAAI,IAAI,IACjE;AAED,MAAI,oBACF,QAAO;MAEP,QAAO,aAAa,OAAO,CAAC,MAAM,EAAE,IAAI,QAAQ,aAAa,GAAG;CAEnE;CAED,MAAM,iBAAiB,gBAAgB;EACrC,MAAM;EACN,cAAc;EACd,MAAM,GAAG,EAAE,OAAO,OAAO,EAAE;GACzB,MAAM,EAAE,kBAAkB,gBAAgB,GAAG,qBAAqB;AAClE,SAAM,gBAAgB,MAAM;AAC1B,YAAQ,cAAc,QAAQ,eAAe;GAC9C,EAAC;AACF,UAAO,MAAM,EAAE,MAAM;IAAE,KAAK;IAAkB,GAAG;GAAO,GAAE,MAAM;EACjE;CACF,EAAC;CAEF,MAAM,iBAAiB,gBAAgB;EACrC,MAAM;EACN,cAAc;EACd,OAAO,EACL,OAAO,EAEL,WAAW,MAAM,KAClB,EACF;EACD,MAAM,OAAO,EAAE,OAAO,OAAO,EAAE;GAC7B,MAAM,EAAE,kBAAkB,gBAAgB,GAAG,qBAAqB;AAElE,eAAY,CAAC,cAAc;AACzB,QAAI,eAAe,OAAO;KACxB,MAAMC,QAAM,QAAQ,eAAe,MAAM;AAEzC,aAAQ,QAAQ,MAAM,IAAIA,OAAK;MAAE,KAAK,eAAe;MAAQ,OAAO,MAAM;KAAO,EAAC;AAClF,eAAU,MAAM,QAAQ,QAAQ,MAAM,OAAOA,MAAI,CAAC;IACnD;GACF,EAAC;AAEF,UAAO,MAAM,EAAE,MAAM;IAAE,GAAG;KAAQ,iBAAiB;IAAI,KAAK;GAAkB,GAAE,MAAM;EACvF;CACF,EAAC;CAEF,MAAM,gBAAgB,SAAS,MAAM,MAAM,KAAK,QAAQ,QAAQ,MAAM,QAAQ,CAAC,CAAC;CAChF,MAAM,cAAc,SAAS,MAAM,QAAQ,QAAQ,MAAM,KAAK;AAE9D,QAAO;EAAE;EAAU;EAAe;EAAa;EAAgB;CAAgB;AAChF"}
@@ -0,0 +1,48 @@
1
+ const require_rolldown_runtime = require('../rolldown-runtime.cjs');
2
+ const require_shared_useForwardExpose = require('../shared/useForwardExpose.cjs');
3
+ const require_Primitive_Primitive = require('../Primitive/Primitive.cjs');
4
+ const require_Drawer_DrawerRoot = require('./DrawerRoot.cjs');
5
+ const vue = require_rolldown_runtime.__toESM(require("vue"));
6
+
7
+ //#region src/Drawer/DrawerClose.vue?vue&type=script&setup=true&lang.ts
8
+ var DrawerClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
9
+ __name: "DrawerClose",
10
+ props: {
11
+ asChild: {
12
+ type: Boolean,
13
+ required: false
14
+ },
15
+ as: {
16
+ type: null,
17
+ required: false,
18
+ default: "button"
19
+ }
20
+ },
21
+ setup(__props) {
22
+ const props = __props;
23
+ require_shared_useForwardExpose.useForwardExpose();
24
+ const rootContext = require_Drawer_DrawerRoot.injectDrawerRootContext();
25
+ return (_ctx, _cache) => {
26
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive_Primitive.Primitive), (0, vue.mergeProps)(props, {
27
+ type: _ctx.as === "button" ? "button" : void 0,
28
+ onClick: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(rootContext).onOpenChange(false, "close-press"))
29
+ }), {
30
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
31
+ _: 3
32
+ }, 16, ["type"]);
33
+ };
34
+ }
35
+ });
36
+
37
+ //#endregion
38
+ //#region src/Drawer/DrawerClose.vue
39
+ var DrawerClose_default = DrawerClose_vue_vue_type_script_setup_true_lang_default;
40
+
41
+ //#endregion
42
+ Object.defineProperty(exports, 'DrawerClose_default', {
43
+ enumerable: true,
44
+ get: function () {
45
+ return DrawerClose_default;
46
+ }
47
+ });
48
+ //# sourceMappingURL=DrawerClose.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerClose.cjs","names":["as"],"sources":["../../src/Drawer/DrawerClose.vue","../../src/Drawer/DrawerClose.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;AACd,oDAAkB;EAClB,MAAM,cAAc,mDAAyB;;gCAI3C,qBAMY,eAAA,sCAAA,EANZ,oBACU,OAAK;IACZ,MAAMA,KAAAA,OAAE,WAAA;IACR,SAAK,OAAA,OAAA,OAAA,KAAA,CAAA,WAAE,eAAA,YAAW,CAAC,aAAY,OAAA,cAAA;;8BAEhC,MAAQ,CAAR,oBAAQ,KAAA,QAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { useForwardExpose } from "../shared/useForwardExpose.js";
2
+ import { Primitive } from "../Primitive/Primitive.js";
3
+ import { injectDrawerRootContext } from "./DrawerRoot.js";
4
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
5
+
6
+ //#region src/Drawer/DrawerClose.vue?vue&type=script&setup=true&lang.ts
7
+ var DrawerClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "DrawerClose",
9
+ props: {
10
+ asChild: {
11
+ type: Boolean,
12
+ required: false
13
+ },
14
+ as: {
15
+ type: null,
16
+ required: false,
17
+ default: "button"
18
+ }
19
+ },
20
+ setup(__props) {
21
+ const props = __props;
22
+ useForwardExpose();
23
+ const rootContext = injectDrawerRootContext();
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
26
+ type: _ctx.as === "button" ? "button" : void 0,
27
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false, "close-press"))
28
+ }), {
29
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
30
+ _: 3
31
+ }, 16, ["type"]);
32
+ };
33
+ }
34
+ });
35
+
36
+ //#endregion
37
+ //#region src/Drawer/DrawerClose.vue
38
+ var DrawerClose_default = DrawerClose_vue_vue_type_script_setup_true_lang_default;
39
+
40
+ //#endregion
41
+ export { DrawerClose_default };
42
+ //# sourceMappingURL=DrawerClose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerClose.js","names":["as"],"sources":["../../src/Drawer/DrawerClose.vue","../../src/Drawer/DrawerClose.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;AACd,oBAAkB;EAClB,MAAM,cAAc,yBAAyB;;uBAI3C,YAMY,MAAA,UAAA,EANZ,WACU,OAAK;IACZ,MAAMA,KAAAA,OAAE,WAAA;IACR,SAAK,OAAA,OAAA,OAAA,KAAA,CAAA,WAAE,MAAA,YAAW,CAAC,aAAY,OAAA,cAAA;;qBAEhC,MAAQ,CAAR,WAAQ,KAAA,QAAA,UAAA"}
@@ -0,0 +1,139 @@
1
+ const require_rolldown_runtime = require('../rolldown-runtime.cjs');
2
+ const require_shared_useEmitAsProps = require('../shared/useEmitAsProps.cjs');
3
+ const require_shared_useForwardExpose = require('../shared/useForwardExpose.cjs');
4
+ const require_shared_useHideOthers = require('../shared/useHideOthers.cjs');
5
+ const require_Presence_Presence = require('../Presence/Presence.cjs');
6
+ const require_Drawer_DrawerRoot = require('./DrawerRoot.cjs');
7
+ const require_Drawer_DrawerContentImpl = require('./DrawerContentImpl.cjs');
8
+ const vue = require_rolldown_runtime.__toESM(require("vue"));
9
+
10
+ //#region src/Drawer/DrawerContent.vue?vue&type=script&setup=true&lang.ts
11
+ var DrawerContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
12
+ __name: "DrawerContent",
13
+ props: {
14
+ forceMount: {
15
+ type: Boolean,
16
+ required: false
17
+ },
18
+ initialFocus: {
19
+ type: [Boolean, null],
20
+ required: false,
21
+ skipCheck: true
22
+ },
23
+ finalFocus: {
24
+ type: [Boolean, null],
25
+ required: false,
26
+ skipCheck: true
27
+ },
28
+ disableOutsidePointerEvents: {
29
+ type: Boolean,
30
+ required: false
31
+ },
32
+ asChild: {
33
+ type: Boolean,
34
+ required: false
35
+ },
36
+ as: {
37
+ type: null,
38
+ required: false
39
+ }
40
+ },
41
+ emits: [
42
+ "escapeKeyDown",
43
+ "pointerDownOutside",
44
+ "focusOutside",
45
+ "interactOutside",
46
+ "openAutoFocus",
47
+ "closeAutoFocus"
48
+ ],
49
+ setup(__props, { emit: __emit }) {
50
+ const props = __props;
51
+ const emits = __emit;
52
+ const rootContext = require_Drawer_DrawerRoot.injectDrawerRootContext();
53
+ const emitsAsProps = require_shared_useEmitAsProps.useEmitAsProps(emits);
54
+ const { forwardRef, currentElement } = require_shared_useForwardExpose.useForwardExpose();
55
+ const hasInteractedOutside = (0, vue.ref)(false);
56
+ const hasPointerDownOutside = (0, vue.ref)(false);
57
+ const isFullModal = (0, vue.computed)(() => rootContext.modal.value === true);
58
+ const isTrapFocusOnly = (0, vue.computed)(() => rootContext.modal.value === "trap-focus");
59
+ const shouldTrapFocus = (0, vue.computed)(() => (isFullModal.value || isTrapFocusOnly.value) && rootContext.open.value);
60
+ const shouldHideOthers = (0, vue.computed)(() => isFullModal.value ? currentElement.value : void 0);
61
+ require_shared_useHideOthers.useHideOthers(shouldHideOthers);
62
+ function onCloseAutoFocusNonModal(e) {
63
+ if (!e.defaultPrevented) {
64
+ if (!hasInteractedOutside.value) rootContext.triggerElement.value?.focus();
65
+ e.preventDefault();
66
+ }
67
+ hasInteractedOutside.value = false;
68
+ hasPointerDownOutside.value = false;
69
+ }
70
+ function onInteractOutsideNonModal(e) {
71
+ if (!e.defaultPrevented) {
72
+ hasInteractedOutside.value = true;
73
+ if (e.detail.originalEvent.type === "pointerdown") hasPointerDownOutside.value = true;
74
+ }
75
+ const target = e.target;
76
+ if (rootContext.triggerElement.value?.contains(target)) e.preventDefault();
77
+ if (e.detail.originalEvent.type === "focusin" && hasPointerDownOutside.value) e.preventDefault();
78
+ }
79
+ return (_ctx, _cache) => {
80
+ return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Presence_Presence.Presence_default), { present: _ctx.forceMount || (0, vue.unref)(rootContext).open.value }, {
81
+ default: (0, vue.withCtx)(() => [isFullModal.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_Drawer_DrawerContentImpl.DrawerContentImpl_default, (0, vue.mergeProps)({
82
+ key: 0,
83
+ ref: (0, vue.unref)(forwardRef)
84
+ }, {
85
+ ...props,
86
+ ...(0, vue.unref)(emitsAsProps),
87
+ ..._ctx.$attrs
88
+ }, {
89
+ "trap-focus": shouldTrapFocus.value,
90
+ "disable-outside-pointer-events": true,
91
+ onCloseAutoFocus: _cache[0] || (_cache[0] = (e) => {
92
+ if (!e.defaultPrevented) {
93
+ e.preventDefault();
94
+ (0, vue.unref)(rootContext).triggerElement.value?.focus();
95
+ }
96
+ }),
97
+ onPointerDownOutside: _cache[1] || (_cache[1] = (e) => {
98
+ const orig = e.detail.originalEvent;
99
+ const isRightClick = orig.button === 2 || orig.button === 0 && orig.ctrlKey;
100
+ if (isRightClick) e.preventDefault();
101
+ }),
102
+ onFocusOutside: _cache[2] || (_cache[2] = (e) => e.preventDefault())
103
+ }), {
104
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
105
+ _: 3
106
+ }, 16, ["trap-focus"])) : ((0, vue.openBlock)(), (0, vue.createBlock)(require_Drawer_DrawerContentImpl.DrawerContentImpl_default, (0, vue.mergeProps)({
107
+ key: 1,
108
+ ref: (0, vue.unref)(forwardRef)
109
+ }, {
110
+ ...props,
111
+ ...(0, vue.unref)(emitsAsProps),
112
+ ..._ctx.$attrs
113
+ }, {
114
+ "trap-focus": shouldTrapFocus.value,
115
+ "disable-outside-pointer-events": false,
116
+ onCloseAutoFocus: onCloseAutoFocusNonModal,
117
+ onInteractOutside: onInteractOutsideNonModal
118
+ }), {
119
+ default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
120
+ _: 3
121
+ }, 16, ["trap-focus"]))]),
122
+ _: 3
123
+ }, 8, ["present"]);
124
+ };
125
+ }
126
+ });
127
+
128
+ //#endregion
129
+ //#region src/Drawer/DrawerContent.vue
130
+ var DrawerContent_default = DrawerContent_vue_vue_type_script_setup_true_lang_default;
131
+
132
+ //#endregion
133
+ Object.defineProperty(exports, 'DrawerContent_default', {
134
+ enumerable: true,
135
+ get: function () {
136
+ return DrawerContent_default;
137
+ }
138
+ });
139
+ //# sourceMappingURL=DrawerContent.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.cjs","names":["forceMount","$attrs"],"sources":["../../src/Drawer/DrawerContent.vue","../../src/Drawer/DrawerContent.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;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;IAAM,GAAA;KAC7C,cAAY,gBAAA;KACZ,kCAAgC;KAChC,kBAAgB,OAAA,OAAA,OAAA,KAAA,CAAG,MAAQ;WAAoB,EAAE,kBAAgB;AAAc,SAAE,gBAAc;AAAa,sBAAA,YAAW,CAAC,eAAe,OAAO,OAAK;;;KAMnJ,sBAAoB,OAAA,OAAA,OAAA,KAAA,CAAG,MAAM;YAAqB,OAAO,EAAE,OAAO;YAA4B,eAAe,KAAK,WAAM,KAAW,KAAK,WAAM,KAAU,KAAK;UAAqB,aAAc,GAAE,gBAAc;;KAKhN,gBAAa,OAAA,OAAA,OAAA,KAAA,CAAG,MAAa,EAAE,gBAAc;;+BAE9C,MAAQ,CAAR,oBAAQ,KAAA,QAAA,UAAA;;qDAGV,qBAUoB,4DAVpB,oBAUoB;;KARjB,KAAK,eAAA,WAAU;;QACH;KAAK,GAAK,eAAA,aAAY;KAAA,GAAKA,KAAAA;IAAM,GAAA;KAC7C,cAAY,gBAAA;KACZ,kCAAgC;KAChC,kBAAkB;KAClB,mBAAkB;;+BAEnB,MAAQ,CAAR,oBAAQ,KAAA,QAAA,UAAA"}
@@ -0,0 +1,133 @@
1
+ import { useEmitAsProps } from "../shared/useEmitAsProps.js";
2
+ import { useForwardExpose } from "../shared/useForwardExpose.js";
3
+ import { useHideOthers } from "../shared/useHideOthers.js";
4
+ import { Presence_default } from "../Presence/Presence.js";
5
+ import { injectDrawerRootContext } from "./DrawerRoot.js";
6
+ import { DrawerContentImpl_default } from "./DrawerContentImpl.js";
7
+ import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from "vue";
8
+
9
+ //#region src/Drawer/DrawerContent.vue?vue&type=script&setup=true&lang.ts
10
+ var DrawerContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
11
+ __name: "DrawerContent",
12
+ props: {
13
+ forceMount: {
14
+ type: Boolean,
15
+ required: false
16
+ },
17
+ initialFocus: {
18
+ type: [Boolean, null],
19
+ required: false,
20
+ skipCheck: true
21
+ },
22
+ finalFocus: {
23
+ type: [Boolean, null],
24
+ required: false,
25
+ skipCheck: true
26
+ },
27
+ disableOutsidePointerEvents: {
28
+ type: Boolean,
29
+ required: false
30
+ },
31
+ asChild: {
32
+ type: Boolean,
33
+ required: false
34
+ },
35
+ as: {
36
+ type: null,
37
+ required: false
38
+ }
39
+ },
40
+ emits: [
41
+ "escapeKeyDown",
42
+ "pointerDownOutside",
43
+ "focusOutside",
44
+ "interactOutside",
45
+ "openAutoFocus",
46
+ "closeAutoFocus"
47
+ ],
48
+ setup(__props, { emit: __emit }) {
49
+ const props = __props;
50
+ const emits = __emit;
51
+ const rootContext = injectDrawerRootContext();
52
+ const emitsAsProps = useEmitAsProps(emits);
53
+ const { forwardRef, currentElement } = useForwardExpose();
54
+ const hasInteractedOutside = ref(false);
55
+ const hasPointerDownOutside = ref(false);
56
+ const isFullModal = computed(() => rootContext.modal.value === true);
57
+ const isTrapFocusOnly = computed(() => rootContext.modal.value === "trap-focus");
58
+ const shouldTrapFocus = computed(() => (isFullModal.value || isTrapFocusOnly.value) && rootContext.open.value);
59
+ const shouldHideOthers = computed(() => isFullModal.value ? currentElement.value : void 0);
60
+ useHideOthers(shouldHideOthers);
61
+ function onCloseAutoFocusNonModal(e) {
62
+ if (!e.defaultPrevented) {
63
+ if (!hasInteractedOutside.value) rootContext.triggerElement.value?.focus();
64
+ e.preventDefault();
65
+ }
66
+ hasInteractedOutside.value = false;
67
+ hasPointerDownOutside.value = false;
68
+ }
69
+ function onInteractOutsideNonModal(e) {
70
+ if (!e.defaultPrevented) {
71
+ hasInteractedOutside.value = true;
72
+ if (e.detail.originalEvent.type === "pointerdown") hasPointerDownOutside.value = true;
73
+ }
74
+ const target = e.target;
75
+ if (rootContext.triggerElement.value?.contains(target)) e.preventDefault();
76
+ if (e.detail.originalEvent.type === "focusin" && hasPointerDownOutside.value) e.preventDefault();
77
+ }
78
+ return (_ctx, _cache) => {
79
+ return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(rootContext).open.value }, {
80
+ default: withCtx(() => [isFullModal.value ? (openBlock(), createBlock(DrawerContentImpl_default, mergeProps({
81
+ key: 0,
82
+ ref: unref(forwardRef)
83
+ }, {
84
+ ...props,
85
+ ...unref(emitsAsProps),
86
+ ..._ctx.$attrs
87
+ }, {
88
+ "trap-focus": shouldTrapFocus.value,
89
+ "disable-outside-pointer-events": true,
90
+ onCloseAutoFocus: _cache[0] || (_cache[0] = (e) => {
91
+ if (!e.defaultPrevented) {
92
+ e.preventDefault();
93
+ unref(rootContext).triggerElement.value?.focus();
94
+ }
95
+ }),
96
+ onPointerDownOutside: _cache[1] || (_cache[1] = (e) => {
97
+ const orig = e.detail.originalEvent;
98
+ const isRightClick = orig.button === 2 || orig.button === 0 && orig.ctrlKey;
99
+ if (isRightClick) e.preventDefault();
100
+ }),
101
+ onFocusOutside: _cache[2] || (_cache[2] = (e) => e.preventDefault())
102
+ }), {
103
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
104
+ _: 3
105
+ }, 16, ["trap-focus"])) : (openBlock(), createBlock(DrawerContentImpl_default, mergeProps({
106
+ key: 1,
107
+ ref: unref(forwardRef)
108
+ }, {
109
+ ...props,
110
+ ...unref(emitsAsProps),
111
+ ..._ctx.$attrs
112
+ }, {
113
+ "trap-focus": shouldTrapFocus.value,
114
+ "disable-outside-pointer-events": false,
115
+ onCloseAutoFocus: onCloseAutoFocusNonModal,
116
+ onInteractOutside: onInteractOutsideNonModal
117
+ }), {
118
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
119
+ _: 3
120
+ }, 16, ["trap-focus"]))]),
121
+ _: 3
122
+ }, 8, ["present"]);
123
+ };
124
+ }
125
+ });
126
+
127
+ //#endregion
128
+ //#region src/Drawer/DrawerContent.vue
129
+ var DrawerContent_default = DrawerContent_vue_vue_type_script_setup_true_lang_default;
130
+
131
+ //#endregion
132
+ export { DrawerContent_default };
133
+ //# sourceMappingURL=DrawerContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.js","names":["forceMount","$attrs"],"sources":["../../src/Drawer/DrawerContent.vue","../../src/Drawer/DrawerContent.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,MAAM,QAAQ;EACd,MAAM,QAAQ;EAEd,MAAM,cAAc,yBAAyB;EAC7C,MAAM,eAAe,eAAe,MAAM;EAC1C,MAAM,EAAE,YAAY,gBAAgB,GAAG,kBAAkB;EACzD,MAAM,uBAAuB,IAAI,MAAM;EACvC,MAAM,wBAAwB,IAAI,MAAM;EAMxC,MAAM,cAAc,SAAS,MAAM,YAAY,MAAM,UAAU,KAAK;EACpE,MAAM,kBAAkB,SAAS,MAAM,YAAY,MAAM,UAAU,aAAa;EAChF,MAAM,kBAAkB,SAAS,OAAO,YAAY,SAAS,gBAAgB,UAAU,YAAY,KAAK,MAAM;EAC9G,MAAM,mBAAmB,SAAS,MAAM,YAAY,QAAQ,eAAe,eAAkB;AAC7F,gBAAc,iBAAiB;EAI/B,SAAS,yBAAyB,GAAU;AAC1C,QAAK,EAAE,kBAAkB;AACvB,SAAK,qBAAqB,MACxB,aAAY,eAAe,OAAO,OAAO;AAE3C,MAAE,gBAAgB;GACpB;AACA,wBAAqB,QAAQ;AAC7B,yBAAsB,QAAQ;EAChC;EAEA,SAAS,0BAA0B,GAAQ;AACzC,QAAK,EAAE,kBAAkB;AACvB,yBAAqB,QAAQ;AAC7B,QAAI,EAAE,OAAO,cAAc,SAAS,cAClC,uBAAsB,QAAQ;GAElC;GACA,MAAM,SAAS,EAAE;AACjB,OAAI,YAAY,eAAe,OAAO,SAAS,OAAO,CACpD,GAAE,gBAAgB;AAEpB,OAAI,EAAE,OAAO,cAAc,SAAS,aAAa,sBAAsB,MACrE,GAAE,gBAAgB;EAEtB;;uBAIE,YAkCW,MAAA,iBAAA,EAAA,EAlCA,SAASA,KAAAA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