@astryx-vue/core 0.2.0 → 0.2.1

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 (220) hide show
  1. package/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-EiGyPFbA.js → AppShell-1wNIEtK_.js} +2 -2
  3. package/dist/Avatar/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/Avatar-jmHInHwj.js +244 -0
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/AvatarGroup/index.js +1 -1
  8. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  9. package/dist/Badge/index.d.ts +1 -1
  10. package/dist/Badge/index.js +1 -1
  11. package/dist/Badge-CjDQPF5g.js +30 -0
  12. package/dist/Banner/index.d.ts +1 -1
  13. package/dist/Breadcrumbs/index.d.ts +2 -2
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
  16. package/dist/Button/index.d.ts +1 -1
  17. package/dist/ButtonGroup/index.d.ts +1 -1
  18. package/dist/Calendar/index.d.ts +2 -2
  19. package/dist/Calendar/index.js +1 -1
  20. package/dist/Calendar-DqC3EDN1.js +352 -0
  21. package/dist/Card/index.d.ts +1 -1
  22. package/dist/Carousel/index.js +1 -1
  23. package/dist/{Carousel-BTtHkKea.js → Carousel-BGUnskjo.js} +2 -2
  24. package/dist/Chat/index.js +1 -1
  25. package/dist/{Chat-DjNxw5gv.js → Chat-DCjXRiOF.js} +8 -8
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.d.ts +1 -1
  28. package/dist/CheckboxList/index.js +1 -1
  29. package/dist/Citation/index.js +1 -1
  30. package/dist/{Citation-DijdbUUu.js → Citation-DunoAqVH.js} +2 -2
  31. package/dist/ClickableCard/index.d.ts +1 -1
  32. package/dist/Code/index.js +1 -1
  33. package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-CAF-VJnh.js} +1 -1
  34. package/dist/Collapsible/index.js +1 -1
  35. package/dist/{Collapsible-9MC08X39.js → Collapsible-DvMiYJp7.js} +1 -1
  36. package/dist/CommandPalette/index.js +1 -1
  37. package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-xfm9ldUI.js} +1 -1
  38. package/dist/ComplexSelector/index.d.ts +1 -1
  39. package/dist/ComplexSelector/index.js +1 -1
  40. package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-B6lBTRhP.js} +2 -2
  41. package/dist/ContextMenu/index.d.ts +2 -2
  42. package/dist/ContextMenu/index.js +1 -1
  43. package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-DUkED3Z3.js} +101 -63
  44. package/dist/DateInput/index.d.ts +2 -2
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/DateInput-Crcg-CCj.js +376 -0
  47. package/dist/DateRangeInput/index.d.ts +1 -1
  48. package/dist/DateRangeInput/index.js +1 -1
  49. package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-e9KSxBBK.js} +2 -2
  50. package/dist/DateTimeInput/index.d.ts +1 -1
  51. package/dist/DateTimeInput/index.js +1 -1
  52. package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-fSOfuLex.js} +5 -3
  53. package/dist/Divider/index.d.ts +1 -1
  54. package/dist/DropdownMenu/index.d.ts +3 -2
  55. package/dist/DropdownMenu/index.js +3 -2
  56. package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-8G0B1UND.js} +63 -16
  57. package/dist/DropdownMenu-XvW4BJob.js +164 -0
  58. package/dist/FileInput/index.d.ts +1 -1
  59. package/dist/FileInput/index.js +1 -1
  60. package/dist/{FileInput-BQiwE-GB.js → FileInput-D-fchyQH.js} +2 -2
  61. package/dist/Icon/index.d.ts +4 -3
  62. package/dist/Icon/index.js +3 -2
  63. package/dist/Icon/plugin.d.ts +45 -0
  64. package/dist/Icon/plugin.js +177 -0
  65. package/dist/Icon-Bku25g_K.js +193 -0
  66. package/dist/Lightbox/index.js +1 -1
  67. package/dist/{Lightbox-CshKoB0r.js → Lightbox-uuVGgHxW.js} +2 -2
  68. package/dist/Link/index.d.ts +1 -1
  69. package/dist/Link/index.js +1 -1
  70. package/dist/Link-DqdQZ37C.js +141 -0
  71. package/dist/List/index.d.ts +1 -1
  72. package/dist/Markdown/index.js +1 -1
  73. package/dist/{Markdown-D-Ua055V.js → Markdown-DLICa3db.js} +3 -3
  74. package/dist/MetadataList/index.d.ts +1 -1
  75. package/dist/MetadataList/index.js +1 -1
  76. package/dist/{MetadataList-sYph_d8Q.js → MetadataList-h492rqEN.js} +1 -1
  77. package/dist/MobileNav/index.js +1 -1
  78. package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
  79. package/dist/MoreMenu/index.d.ts +1 -1
  80. package/dist/MoreMenu/index.js +1 -1
  81. package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-DkYi5az5.js} +2 -2
  82. package/dist/MultiSelector/index.d.ts +1 -1
  83. package/dist/MultiSelector/index.js +1 -1
  84. package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C2IS-EaU.js} +2 -2
  85. package/dist/NavItem/index.d.ts +1 -1
  86. package/dist/NumberInput/index.d.ts +2 -2
  87. package/dist/NumberInput/index.js +1 -1
  88. package/dist/NumberInput-CjfAsFwj.js +210 -0
  89. package/dist/Outline/index.js +1 -1
  90. package/dist/{Outline-DQfEBxlc.js → Outline-BTmrtvXR.js} +1 -1
  91. package/dist/OverflowList/index.d.ts +1 -1
  92. package/dist/OverflowList/index.js +1 -1
  93. package/dist/{OverflowList-BU5VCntl.js → OverflowList-CRE8BE7V.js} +1 -1
  94. package/dist/Overlay/index.d.ts +1 -1
  95. package/dist/Pagination/index.d.ts +2 -2
  96. package/dist/Pagination/index.js +1 -1
  97. package/dist/{Pagination-HdhtykeF.js → Pagination-BpGXPmc7.js} +76 -22
  98. package/dist/ProgressBar/index.d.ts +1 -1
  99. package/dist/ProgressBar/index.js +1 -1
  100. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  101. package/dist/Radio/index.d.ts +1 -1
  102. package/dist/RadioList/index.d.ts +1 -1
  103. package/dist/Resizable/index.js +1 -1
  104. package/dist/{Resizable-BhSMfO5B.js → Resizable-CE8XQDL2.js} +1 -1
  105. package/dist/ScrollableArea/index.d.ts +1 -1
  106. package/dist/SegmentedControl/index.d.ts +1 -1
  107. package/dist/SelectableCard/index.d.ts +1 -1
  108. package/dist/Selector/index.d.ts +2 -2
  109. package/dist/Selector/index.js +1 -1
  110. package/dist/Selector-DkJOLZSR.js +468 -0
  111. package/dist/SideNav/index.d.ts +1 -1
  112. package/dist/SideNav/index.js +1 -1
  113. package/dist/{SideNav-B-Om6Bz3.js → SideNav-DcDWBnXJ.js} +17 -17
  114. package/dist/Stepper/index.d.ts +1 -1
  115. package/dist/Stepper/index.js +1 -1
  116. package/dist/{Stepper-BZ_8SEZt.js → Stepper-DZKaqEoz.js} +1 -1
  117. package/dist/Switch/index.d.ts +1 -1
  118. package/dist/TabList/index.d.ts +1 -1
  119. package/dist/TabList/index.js +1 -1
  120. package/dist/{TabList-Cnc2Hs1H.js → TabList-hm06QPiW.js} +10 -3
  121. package/dist/Table/index.js +1 -1
  122. package/dist/{Table-D-LhAy_J.js → Table-DwehtMap.js} +4 -4
  123. package/dist/TextArea/index.d.ts +1 -1
  124. package/dist/TextArea/index.js +1 -1
  125. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  126. package/dist/TextInput/index.d.ts +1 -1
  127. package/dist/Thumbnail/index.js +1 -1
  128. package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-CAOYds8t.js} +11 -11
  129. package/dist/{TimeField-C7t9Knq9.js → TimeField-BGbxCoKU.js} +2 -2
  130. package/dist/TimeInput/index.d.ts +1 -1
  131. package/dist/TimeInput/index.js +1 -1
  132. package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJP3l4ZS.js} +1 -1
  133. package/dist/Timestamp/index.d.ts +1 -1
  134. package/dist/Timestamp/index.js +2 -1
  135. package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-BzRp8uWc.js} +4 -121
  136. package/dist/Toast/index.d.ts +2 -2
  137. package/dist/Toast/index.js +1 -1
  138. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  139. package/dist/ToggleButton/index.d.ts +1 -1
  140. package/dist/Token/index.js +1 -1
  141. package/dist/{Token-wt4e80IM.js → Token-CjocuhzE.js} +1 -1
  142. package/dist/Tokenizer/index.js +1 -1
  143. package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-mYES5SPM.js} +2 -2
  144. package/dist/Toolbar/index.d.ts +1 -1
  145. package/dist/TopNav/index.d.ts +1 -1
  146. package/dist/TopNav/index.js +1 -1
  147. package/dist/{TopNav-notp-mJx.js → TopNav-C2t6JkZb.js} +3 -3
  148. package/dist/TreeList/index.d.ts +1 -1
  149. package/dist/TreeList/index.js +1 -1
  150. package/dist/{TreeList-s1xBQ0qq.js → TreeList-THJ0KamE.js} +3 -3
  151. package/dist/Typeahead/index.js +1 -1
  152. package/dist/{Typeahead-VAuiCurV.js → Typeahead-D7VnvRpK.js} +2 -2
  153. package/dist/{context-Dbo22sck.js → context-DzcK4T_C.js} +4 -2
  154. package/dist/formatInstant-BDWUIxS7.js +119 -0
  155. package/dist/{index-Bainr_3n.d.ts → index-3p2BDVHq.d.ts} +1 -1
  156. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  157. package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
  158. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  159. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  160. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  161. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  162. package/dist/{index-C59PdX9L.d.ts → index-CBym0hSq.d.ts} +1 -1
  163. package/dist/index-CJlBAXwj.d.ts +100 -0
  164. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  165. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  166. package/dist/{index-DoFCm2Q2.d.ts → index-Clmz00IK.d.ts} +2 -0
  167. package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
  168. package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
  169. package/dist/{index-NzLDrOkk.d.ts → index-DAiGhkNZ.d.ts} +15 -2
  170. package/dist/{index-DOUEn7V0.d.ts → index-DQAnGHu7.d.ts} +2 -2
  171. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  172. package/dist/{index-C6iJwTL0.d.ts → index-DeOftUMq.d.ts} +181 -72
  173. package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
  174. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  175. package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
  176. package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
  177. package/dist/{index-BtPZKO20.d.ts → index-I4J7gwa1.d.ts} +49 -7
  178. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  179. package/dist/{index-C7mxUcDR.d.ts → index-Z_onS2lR.d.ts} +2 -2
  180. package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
  181. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  182. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  183. package/dist/index.d.ts +68 -67
  184. package/dist/index.js +98 -95
  185. package/dist/locale/index.d.ts +1 -1
  186. package/dist/locale/index.js +1 -1
  187. package/dist/registry-B1ObuP--.d.ts +45 -0
  188. package/dist/registry-C7OZb0PJ.js +135 -0
  189. package/dist/{types-DZoEm_DG.d.ts → types-BKcxXW--.d.ts} +22 -5
  190. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  191. package/package.json +6 -1
  192. package/styles/avatar.css +14 -0
  193. package/styles/badge.css +8 -0
  194. package/styles/breadcrumbs.css +6 -1
  195. package/styles/button.css +13 -0
  196. package/styles/calendar.css +16 -0
  197. package/styles/card.css +2 -0
  198. package/styles/chat.css +5 -2
  199. package/styles/dropdown-menu.css +11 -0
  200. package/styles/icon.css +38 -8
  201. package/styles/link.css +5 -0
  202. package/styles/number-input.css +22 -0
  203. package/styles/pagination.css +45 -1
  204. package/styles/progress-bar.css +4 -0
  205. package/styles/selector.css +58 -0
  206. package/styles/tab-list.css +15 -0
  207. package/styles/text-area.css +17 -0
  208. package/styles/text-input.css +5 -0
  209. package/styles/toast.css +7 -0
  210. package/styles/toolbar.css +11 -0
  211. package/dist/Avatar-5s3HSrtN.js +0 -136
  212. package/dist/Badge-Ba0EwsTj.js +0 -19
  213. package/dist/Calendar-BG7wEsro.js +0 -277
  214. package/dist/DateInput-DE2TN1Rq.js +0 -250
  215. package/dist/Icon-Dfr4k6-S.js +0 -86
  216. package/dist/Link-CprjOuTI.js +0 -92
  217. package/dist/NumberInput-CTYiQxHq.js +0 -147
  218. package/dist/Selector-Da-2BO3q.js +0 -325
  219. package/dist/index-DtjAdYEc.d.ts +0 -68
  220. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
@@ -2,10 +2,11 @@ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
2
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
3
  import { t as useLongPress } from "./useLongPress-Cyxwa73s.js";
4
4
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
5
- import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
6
- import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
7
5
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
8
- import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
6
+ import { t as _sfc_main$6 } from "./BottomSheet-Dg95HB1s.js";
7
+ import { t as _sfc_main$7 } from "./Icon-Bku25g_K.js";
8
+ import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
9
+ import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
9
10
  import "../styles/context-menu.css";
10
11
  //#region src/ContextMenu/context.ts
11
12
  const contextMenuContextKey = Symbol("astryx-context-menu");
@@ -34,7 +35,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
34
35
  props: { variant: { default: "subtle" } },
35
36
  setup(__props) {
36
37
  return (_ctx, _cache) => {
37
- return openBlock(), createBlock(_sfc_main$7, {
38
+ return openBlock(), createBlock(_sfc_main$8, {
38
39
  class: "astryx-context-menu-divider",
39
40
  variant: __props.variant
40
41
  }, null, 8, ["variant"]);
@@ -371,7 +372,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
371
372
  onPointermove: handlePointerMove
372
373
  }, {
373
374
  default: withCtx(() => [
374
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
375
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
375
376
  color: iconColor.value,
376
377
  icon: __props.icon,
377
378
  size: "sm"
@@ -813,13 +814,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
813
814
  onPointerleave: _cache[0] || (_cache[0] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
814
815
  onPointermove: onRowPointerMove
815
816
  }), [
816
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
817
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
817
818
  icon: __props.icon,
818
819
  color: "secondary",
819
820
  size: "sm"
820
821
  }, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
821
822
  createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
822
- createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [createVNode(_sfc_main$6, {
823
+ createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [createVNode(_sfc_main$7, {
823
824
  class: "astryx-context-menu-item__chevron",
824
825
  icon: "chevronRight",
825
826
  color: "secondary",
@@ -1090,6 +1091,7 @@ const _hoisted_1 = [
1090
1091
  ];
1091
1092
  const GAP = 0;
1092
1093
  const DEFAULT_MIN_WIDTH = 160;
1094
+ const ADAPTIVE_QUERY = "(max-width: 768px) and (pointer: coarse)";
1093
1095
  const _sfc_main = /*@__PURE__*/ defineComponent({
1094
1096
  name: "AstryxContextMenu",
1095
1097
  inheritAttrs: false,
@@ -1104,6 +1106,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1104
1106
  default: false
1105
1107
  },
1106
1108
  triggerAs: { default: "div" },
1109
+ presentation: { default: "popover" },
1107
1110
  isOpen: { type: Boolean }
1108
1111
  }, {
1109
1112
  "isOpen": {
@@ -1127,6 +1130,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1127
1130
  */
1128
1131
  const triggerAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
1129
1132
  /** Where the menu's own corner sits relative to the cursor point. */
1133
+ const isCompactTouch = shallowRef(false);
1134
+ let mediaQuery;
1135
+ function syncCompactTouch() {
1136
+ isCompactTouch.value = mediaQuery?.matches === true;
1137
+ }
1138
+ const isSheet = computed(() => {
1139
+ if (props.presentation === "adaptive") return isCompactTouch.value;
1140
+ return props.presentation === "bottom-sheet";
1141
+ });
1130
1142
  const openModel = useModel(__props, "isOpen");
1131
1143
  const localIsOpen = ref(false);
1132
1144
  const isOpen = computed(() => openModel.value ?? localIsOpen.value);
@@ -1187,6 +1199,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1187
1199
  if (target != null && target.isConnected) target.focus();
1188
1200
  }
1189
1201
  function focusPanelOrFirstRow() {
1202
+ if (isSheet.value) return;
1190
1203
  if (!nav.focusFirst()) panel.value?.focus({ preventScroll: true });
1191
1204
  }
1192
1205
  function setOpen(next) {
@@ -1195,6 +1208,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1195
1208
  localIsOpen.value = next;
1196
1209
  emit("openChange", next);
1197
1210
  }
1211
+ function onSheetOpen(open) {
1212
+ if (open === false) closeMenu();
1213
+ }
1198
1214
  function closeMenu(options = {}) {
1199
1215
  if (!isOpen.value) return;
1200
1216
  const active = panel.value?.ownerDocument.activeElement;
@@ -1256,12 +1272,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1256
1272
  }
1257
1273
  watch(isOpen, applyOpenState);
1258
1274
  onMounted(() => {
1275
+ if (typeof window.matchMedia === "function") {
1276
+ mediaQuery = window.matchMedia(ADAPTIVE_QUERY);
1277
+ syncCompactTouch();
1278
+ mediaQuery.addEventListener?.("change", syncCompactTouch);
1279
+ }
1259
1280
  if (isOpen.value) applyOpenState(true);
1260
1281
  });
1261
1282
  watch(() => props.isDisabled, (isDisabled) => {
1262
1283
  if (isDisabled) closeMenu();
1263
1284
  });
1264
1285
  onBeforeUnmount(() => {
1286
+ mediaQuery?.removeEventListener?.("change", syncCompactTouch);
1265
1287
  resetMenuPress();
1266
1288
  });
1267
1289
  __expose({
@@ -1272,63 +1294,79 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1272
1294
  open: () => openAt(0, 0)
1273
1295
  });
1274
1296
  return (_ctx, _cache) => {
1275
- return openBlock(), createElementBlock(Fragment, null, [(openBlock(), createBlock(resolveDynamicComponent(__props.triggerAs === "span" ? "span" : "div"), mergeProps({
1276
- ref_key: "trigger",
1277
- ref: trigger
1278
- }, triggerAttrs.value, {
1279
- class: "astryx-context-menu-trigger",
1280
- "data-disabled": __props.isDisabled || void 0,
1281
- "data-open": isOpen.value ? "open" : void 0,
1282
- onContextmenu: onTriggerContextMenu,
1283
- onPointercancel: unref(longPress).cancel,
1284
- onPointerdown: onTriggerPointerDown,
1285
- onPointermove: onTriggerPointerMove,
1286
- onPointerup: unref(longPress).cancel
1287
- }), {
1288
- default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createElementVNode("span", {
1289
- ref_key: "cursorAnchor",
1290
- ref: cursorAnchor,
1291
- "aria-hidden": "true",
1292
- class: "astryx-context-menu-anchor",
1293
- style: normalizeStyle({
1294
- left: `${cursorPoint.value.x}px`,
1295
- top: `${cursorPoint.value.y}px`
1296
- })
1297
- }, null, 4)]),
1298
- _: 3
1299
- }, 16, [
1300
- "data-disabled",
1301
- "data-open",
1302
- "onPointercancel",
1303
- "onPointerup"
1304
- ])), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
1305
- name: "astryx-context-menu",
1306
- persisted: ""
1307
- }, {
1308
- default: withCtx(() => [withDirectives(createElementVNode("div", {
1309
- id: menuId,
1310
- ref_key: "panel",
1311
- ref: panel,
1312
- "aria-label": __props.label,
1313
- class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
1314
- "data-overflow": unref(hasOverflow) || void 0,
1315
- "data-placement": unref(position).placement,
1316
- "data-size": __props.size,
1317
- "data-width": __props.menuWidth != null ? "custom" : void 0,
1318
- "data-astryx-menu-press": "",
1319
- role: "menu",
1320
- style: normalizeStyle([panelStyle.value, unref(attrs).style]),
1321
- tabindex: "-1",
1322
- onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
1323
- onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
1324
- onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
1325
- }, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1297
+ return openBlock(), createElementBlock(Fragment, null, [
1298
+ (openBlock(), createBlock(resolveDynamicComponent(__props.triggerAs === "span" ? "span" : "div"), mergeProps({
1299
+ ref_key: "trigger",
1300
+ ref: trigger
1301
+ }, triggerAttrs.value, {
1302
+ class: "astryx-context-menu-trigger",
1303
+ "data-disabled": __props.isDisabled || void 0,
1304
+ "data-open": isOpen.value ? "open" : void 0,
1305
+ onContextmenu: onTriggerContextMenu,
1306
+ onPointercancel: unref(longPress).cancel,
1307
+ onPointerdown: onTriggerPointerDown,
1308
+ onPointermove: onTriggerPointerMove,
1309
+ onPointerup: unref(longPress).cancel
1310
+ }), {
1311
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createElementVNode("span", {
1312
+ ref_key: "cursorAnchor",
1313
+ ref: cursorAnchor,
1314
+ "aria-hidden": "true",
1315
+ class: "astryx-context-menu-anchor",
1316
+ style: normalizeStyle({
1317
+ left: `${cursorPoint.value.x}px`,
1318
+ top: `${cursorPoint.value.y}px`
1319
+ })
1320
+ }, null, 4)]),
1321
+ _: 3
1322
+ }, 16, [
1323
+ "data-disabled",
1324
+ "data-open",
1325
+ "onPointercancel",
1326
+ "onPointerup"
1327
+ ])),
1328
+ (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
1329
+ name: "astryx-context-menu",
1330
+ persisted: ""
1331
+ }, {
1332
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
1333
+ id: menuId,
1334
+ ref_key: "panel",
1335
+ ref: panel,
1336
+ "aria-label": __props.label,
1337
+ class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
1338
+ "data-overflow": unref(hasOverflow) || void 0,
1339
+ "data-placement": unref(position).placement,
1340
+ "data-size": __props.size,
1341
+ "data-width": __props.menuWidth != null ? "custom" : void 0,
1342
+ "data-astryx-menu-press": "",
1343
+ role: "menu",
1344
+ style: normalizeStyle([panelStyle.value, unref(attrs).style]),
1345
+ tabindex: "-1",
1346
+ onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
1347
+ onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
1348
+ onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
1349
+ }, [__props.items != null && !isSheet.value ? (openBlock(), createBlock(_sfc_main$1, {
1350
+ key: 0,
1351
+ items: __props.items,
1352
+ onSelect
1353
+ }, null, 8, ["items"])) : !isSheet.value ? renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : createCommentVNode("v-if", true)], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
1354
+ _: 3
1355
+ })])),
1356
+ isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
1326
1357
  key: 0,
1327
- items: __props.items,
1328
- onSelect
1329
- }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 46, _hoisted_1), [[vShow, isOpen.value]])]),
1330
- _: 3
1331
- })]))], 64);
1358
+ "is-open": isOpen.value,
1359
+ label: __props.label,
1360
+ "onUpdate:isOpen": onSheetOpen
1361
+ }, {
1362
+ default: withCtx(() => [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1363
+ key: 0,
1364
+ items: __props.items,
1365
+ onSelect
1366
+ }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)]),
1367
+ _: 3
1368
+ }, 8, ["is-open", "label"])) : createCommentVNode("v-if", true)
1369
+ ], 64);
1332
1370
  };
1333
1371
  }
1334
1372
  });
@@ -1,2 +1,2 @@
1
- import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-DtjAdYEc.js";
2
- export { _default as DateInput, type DateInputEmits, type DateInputProps, type DateInputSlots };
1
+ import { ar as DateInputFormatName, cr as DateInputSlots, ir as DateInputFormat, lr as DateInputStatus, nr as _default, or as DateInputPresentation, rr as DateInputEmits, sr as DateInputProps, ur as DateInputStatusType } from "../index-DeOftUMq.js";
2
+ export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-DE2TN1Rq.js";
1
+ import { t as _sfc_main } from "../DateInput-Crcg-CCj.js";
2
2
  export { _sfc_main as DateInput };
@@ -0,0 +1,376 @@
1
+ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
+ import { a as useAstryxMessages, i as useAstryxLocale } from "./context-DzcK4T_C.js";
3
+ import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
4
+ import { t as _sfc_main$2 } from "./BottomSheet-Dg95HB1s.js";
5
+ import { t as _sfc_main$3 } from "./Calendar-DqC3EDN1.js";
6
+ import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
7
+ import { t as _sfc_main$5 } from "./Popover-Crhk9PNP.js";
8
+ import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, renderSlot, resolveDynamicComponent, useId, useTemplateRef, watch, withCtx } from "vue";
10
+ import "../styles/date-input.css";
11
+ //#region src/DateInput/DateInput.vue
12
+ const _hoisted_1 = ["data-status", "data-presentation"];
13
+ const _hoisted_2 = [
14
+ "data-disabled",
15
+ "data-size",
16
+ "data-status"
17
+ ];
18
+ const _hoisted_3 = {
19
+ key: 0,
20
+ class: "astryx-date-input-prefix"
21
+ };
22
+ const _hoisted_4 = ["disabled", "aria-label"];
23
+ const _hoisted_5 = [
24
+ "id",
25
+ "value",
26
+ "placeholder",
27
+ "disabled",
28
+ "readonly",
29
+ "inputmode",
30
+ "aria-label",
31
+ "aria-labelledby",
32
+ "aria-describedby",
33
+ "aria-invalid",
34
+ "aria-controls",
35
+ "aria-expanded",
36
+ "title"
37
+ ];
38
+ const _hoisted_6 = ["aria-label"];
39
+ const _hoisted_7 = {
40
+ key: 2,
41
+ class: "astryx-date-input-suffix"
42
+ };
43
+ const _hoisted_8 = ["id"];
44
+ const _hoisted_9 = ["id"];
45
+ const _hoisted_10 = ["name", "value"];
46
+ const TOUCH_POINTER_QUERY = "(pointer: coarse)";
47
+ const _sfc_main = /*@__PURE__*/ defineComponent({
48
+ name: "AstryxDateInput",
49
+ __name: "DateInput",
50
+ props: {
51
+ id: {},
52
+ describedBy: {},
53
+ modelValue: { default: null },
54
+ placeholder: {},
55
+ min: {},
56
+ max: {},
57
+ isDateDisabled: {},
58
+ name: {},
59
+ label: {},
60
+ description: {},
61
+ isLabelHidden: { type: Boolean },
62
+ disabled: {
63
+ type: Boolean,
64
+ default: false
65
+ },
66
+ disabledReason: {},
67
+ clearable: {
68
+ type: Boolean,
69
+ default: false
70
+ },
71
+ clearLabel: {},
72
+ size: { default: "md" },
73
+ status: {},
74
+ statusVariant: { default: "attached" },
75
+ format: {
76
+ type: [String, Function],
77
+ default: "date_long"
78
+ },
79
+ presentation: { default: "popover" }
80
+ },
81
+ emits: ["update:modelValue", "change"],
82
+ setup(__props, { emit: __emit }) {
83
+ const props = __props;
84
+ const emit = __emit;
85
+ const PassThrough = defineComponent({
86
+ name: "DateInputPassThrough",
87
+ setup(_, { slots }) {
88
+ return () => slots.default?.({});
89
+ }
90
+ });
91
+ const generatedId = `astryx-date-input-${useId()}`;
92
+ const inputId = computed(() => props.id ?? generatedId);
93
+ const popupId = computed(() => `${inputId.value}-popup`);
94
+ const messages = useAstryxMessages();
95
+ const locale = useAstryxLocale();
96
+ const isCoarsePointer = useMediaQuery(TOUCH_POINTER_QUERY);
97
+ const resolvedPlaceholder = computed(() => props.placeholder ?? messages.value.dateInput.placeholder);
98
+ const resolvedClearLabel = computed(() => props.clearLabel ?? messages.value.dateInput.clear(props.label));
99
+ const dialogLabel = computed(() => props.label || messages.value.dateInput.dialogLabel);
100
+ const inputRef = useTemplateRef("inputRef");
101
+ const isOpen = ref(false);
102
+ const inputValue = ref("");
103
+ const modelValueRef = computed({
104
+ get: () => props.modelValue,
105
+ set: (value) => {
106
+ emit("update:modelValue", value);
107
+ emit("change", value);
108
+ }
109
+ });
110
+ function toIso(date) {
111
+ return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
112
+ }
113
+ function formatCommitted(date) {
114
+ if (!date) return "";
115
+ const iso = toIso(date);
116
+ const format = props.format;
117
+ if (typeof format === "function") return format(iso);
118
+ if (format === "system_date") return iso;
119
+ return formatInstant(date, format, locale.value);
120
+ }
121
+ function parseDate(str) {
122
+ if (!str.trim()) return null;
123
+ const match = str.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);
124
+ if (match) {
125
+ const [, year, month, day] = match;
126
+ const date = new Date(Number(year), Number(month) - 1, Number(day));
127
+ if (!Number.isNaN(date.getTime()) && date.getFullYear() === Number(year) && date.getMonth() === Number(month) - 1 && date.getDate() === Number(day)) return date;
128
+ }
129
+ return null;
130
+ }
131
+ function syncDisplayValue() {
132
+ inputValue.value = formatCommitted(props.modelValue);
133
+ }
134
+ watch(() => [
135
+ props.modelValue,
136
+ props.format,
137
+ locale.value
138
+ ], syncDisplayValue, { immediate: true });
139
+ function resolvedStatus(status) {
140
+ if (status == null || status === "default") return void 0;
141
+ if (typeof status === "string") return { type: status };
142
+ return status;
143
+ }
144
+ const statusValue = computed(() => resolvedStatus(props.status));
145
+ const statusType = computed(() => statusValue.value?.type);
146
+ const useSheet = computed(() => {
147
+ if (props.presentation === "bottom-sheet") return true;
148
+ if (props.presentation === "adaptive-bottom-sheet") return isCoarsePointer.value;
149
+ return false;
150
+ });
151
+ const showsField = computed(() => {
152
+ if (props.isLabelHidden && !props.description && !statusValue.value?.message) return false;
153
+ return Boolean(props.label || props.description || statusValue.value?.message);
154
+ });
155
+ const shell = computed(() => showsField.value ? _sfc_main$4 : PassThrough);
156
+ const fieldBindings = computed(() => showsField.value ? {
157
+ label: props.label ?? "",
158
+ inputId: inputId.value,
159
+ description: props.description,
160
+ isLabelHidden: props.isLabelHidden || !props.label,
161
+ isDisabled: props.disabled,
162
+ status: statusValue.value,
163
+ statusVariant: props.statusVariant
164
+ } : {});
165
+ const toggleLabel = computed(() => isOpen.value ? messages.value.dateInput.closeCalendar : messages.value.dateInput.openCalendar);
166
+ function describedBy(fieldIds) {
167
+ return [props.describedBy, fieldIds].filter(Boolean).join(" ") || void 0;
168
+ }
169
+ function onInput(event) {
170
+ if (useSheet.value) return;
171
+ const target = event.target;
172
+ const value = target.value.trim();
173
+ inputValue.value = target.value;
174
+ const parsed = parseDate(value);
175
+ if (parsed) modelValueRef.value = parsed;
176
+ }
177
+ function onBlur() {
178
+ if (!parseDate(inputValue.value.trim())) syncDisplayValue();
179
+ }
180
+ function onOpenChange(open) {
181
+ if (!useSheet.value) isOpen.value = open;
182
+ }
183
+ function openCalendar() {
184
+ if (!props.disabled) isOpen.value = true;
185
+ }
186
+ function onToggleClick() {
187
+ if (useSheet.value) openCalendar();
188
+ }
189
+ function onInputKeyDown(event) {
190
+ if (props.disabled || isOpen.value) return;
191
+ if (event.key === "ArrowDown" || event.altKey && event.key === "ArrowDown") {
192
+ event.preventDefault();
193
+ openCalendar();
194
+ }
195
+ }
196
+ function onCalendarChange(date) {
197
+ modelValueRef.value = date;
198
+ isOpen.value = false;
199
+ inputRef.value?.blur();
200
+ }
201
+ function onClear(event) {
202
+ event.stopPropagation();
203
+ modelValueRef.value = null;
204
+ inputValue.value = "";
205
+ isOpen.value = false;
206
+ }
207
+ syncDisplayValue();
208
+ return (_ctx, _cache) => {
209
+ return openBlock(), createBlock(resolveDynamicComponent(shell.value), normalizeProps(guardReactiveProps(fieldBindings.value)), {
210
+ default: withCtx((field) => [createElementVNode("div", {
211
+ class: normalizeClass(["astryx-date-input", [statusType.value ? `status-${statusType.value}` : void 0, `size-${props.size}`]]),
212
+ "data-status": statusType.value,
213
+ "data-presentation": useSheet.value ? "bottom-sheet" : "popover"
214
+ }, [
215
+ createVNode(_sfc_main$5, {
216
+ "is-open": useSheet.value ? false : isOpen.value,
217
+ "is-enabled": !useSheet.value && !props.disabled,
218
+ placement: "below",
219
+ alignment: "start",
220
+ padding: 0,
221
+ width: 248,
222
+ "has-close-button": false,
223
+ "is-modal": false,
224
+ "has-auto-focus": true,
225
+ role: "dialog",
226
+ label: dialogLabel.value,
227
+ onOpenChange
228
+ }, {
229
+ content: withCtx(() => [!useSheet.value ? (openBlock(), createElementBlock("div", {
230
+ key: 0,
231
+ id: popupId.value
232
+ }, [createVNode(_sfc_main$3, {
233
+ "model-value": props.modelValue,
234
+ min: props.min,
235
+ max: props.max,
236
+ "is-date-disabled": props.isDateDisabled,
237
+ "onUpdate:modelValue": onCalendarChange
238
+ }, null, 8, [
239
+ "model-value",
240
+ "min",
241
+ "max",
242
+ "is-date-disabled"
243
+ ])], 8, _hoisted_8)) : createCommentVNode("v-if", true)]),
244
+ default: withCtx(() => [createElementVNode("div", {
245
+ class: "astryx-date-input-wrapper",
246
+ "data-disabled": props.disabled ? "true" : void 0,
247
+ "data-size": props.size,
248
+ "data-status": statusType.value
249
+ }, [
250
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("v-if", true),
251
+ createElementVNode("button", {
252
+ type: "button",
253
+ class: "astryx-date-input-toggle",
254
+ disabled: props.disabled,
255
+ "aria-label": toggleLabel.value,
256
+ onClick: onToggleClick
257
+ }, [..._cache[1] || (_cache[1] = [createElementVNode("svg", {
258
+ width: "16",
259
+ height: "16",
260
+ viewBox: "0 0 16 16",
261
+ fill: "none",
262
+ "aria-hidden": "true"
263
+ }, [
264
+ createElementVNode("rect", {
265
+ x: "3",
266
+ y: "4",
267
+ width: "10",
268
+ height: "9",
269
+ rx: "1",
270
+ stroke: "currentColor",
271
+ "stroke-width": "1.5"
272
+ }),
273
+ createElementVNode("path", {
274
+ d: "M3 6H13",
275
+ stroke: "currentColor",
276
+ "stroke-width": "1.5"
277
+ }),
278
+ createElementVNode("path", {
279
+ d: "M5 3V5M11 3V5",
280
+ stroke: "currentColor",
281
+ "stroke-width": "1.5",
282
+ "stroke-linecap": "round"
283
+ })
284
+ ], -1)])], 8, _hoisted_4),
285
+ createElementVNode("input", {
286
+ id: inputId.value,
287
+ ref_key: "inputRef",
288
+ ref: inputRef,
289
+ type: "text",
290
+ class: "astryx-date-input-field",
291
+ role: "combobox",
292
+ value: inputValue.value,
293
+ placeholder: resolvedPlaceholder.value,
294
+ disabled: props.disabled,
295
+ readonly: useSheet.value,
296
+ inputmode: useSheet.value ? "none" : void 0,
297
+ "aria-label": showsField.value ? void 0 : props.label,
298
+ "aria-labelledby": showsField.value ? field?.labelId : void 0,
299
+ "aria-describedby": describedBy(field?.describedBy),
300
+ "aria-invalid": statusType.value === "error" ? "true" : void 0,
301
+ "aria-controls": popupId.value,
302
+ "aria-expanded": isOpen.value,
303
+ "aria-haspopup": "dialog",
304
+ title: props.disabledReason,
305
+ autocomplete: "off",
306
+ onInput,
307
+ onBlur,
308
+ onClick: openCalendar,
309
+ onKeydown: onInputKeyDown
310
+ }, null, 40, _hoisted_5),
311
+ props.clearable && props.modelValue ? (openBlock(), createElementBlock("button", {
312
+ key: 1,
313
+ type: "button",
314
+ class: "astryx-date-input-clear",
315
+ "aria-label": resolvedClearLabel.value,
316
+ tabindex: "-1",
317
+ onClick: onClear
318
+ }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
319
+ width: "16",
320
+ height: "16",
321
+ viewBox: "0 0 16 16",
322
+ fill: "none",
323
+ "aria-hidden": "true"
324
+ }, [createElementVNode("path", {
325
+ d: "M12 4L4 12M4 4L12 12",
326
+ stroke: "currentColor",
327
+ "stroke-width": "1.5",
328
+ "stroke-linecap": "round"
329
+ })], -1)])], 8, _hoisted_6)) : _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
330
+ statusType.value && props.statusVariant !== "tooltip" ? (openBlock(), createBlock(_sfc_main$1, {
331
+ key: 3,
332
+ type: statusType.value
333
+ }, null, 8, ["type"])) : createCommentVNode("v-if", true)
334
+ ], 8, _hoisted_2)]),
335
+ _: 2
336
+ }, 1032, [
337
+ "is-open",
338
+ "is-enabled",
339
+ "label"
340
+ ]),
341
+ useSheet.value ? (openBlock(), createBlock(_sfc_main$2, {
342
+ key: 0,
343
+ "is-open": isOpen.value,
344
+ "onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => isOpen.value = $event),
345
+ label: dialogLabel.value,
346
+ height: "hug",
347
+ padding: 0
348
+ }, {
349
+ default: withCtx(() => [createElementVNode("div", { id: popupId.value }, [createVNode(_sfc_main$3, {
350
+ "model-value": props.modelValue,
351
+ min: props.min,
352
+ max: props.max,
353
+ "is-date-disabled": props.isDateDisabled,
354
+ "onUpdate:modelValue": onCalendarChange
355
+ }, null, 8, [
356
+ "model-value",
357
+ "min",
358
+ "max",
359
+ "is-date-disabled"
360
+ ])], 8, _hoisted_9)]),
361
+ _: 1
362
+ }, 8, ["is-open", "label"])) : createCommentVNode("v-if", true),
363
+ props.name ? (openBlock(), createElementBlock("input", {
364
+ key: 1,
365
+ type: "hidden",
366
+ name: props.name,
367
+ value: props.modelValue ? toIso(props.modelValue) : ""
368
+ }, null, 8, _hoisted_10)) : createCommentVNode("v-if", true)
369
+ ], 10, _hoisted_1)]),
370
+ _: 3
371
+ }, 16);
372
+ };
373
+ }
374
+ });
375
+ //#endregion
376
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { $n as DateRangeInputEmits, Qn as DateRange, Zn as _default, er as DateRangeInputProps, tr as DateRangePreset } from "../index-C6iJwTL0.js";
1
+ import { $n as DateRangeInputEmits, Qn as DateRange, Zn as _default, er as DateRangeInputProps, tr as DateRangePreset } from "../index-DeOftUMq.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-1bhPGG2s.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-e9KSxBBK.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -1,9 +1,9 @@
1
1
  import { a as todayISODate, c as formatDateRange, f as orderRange, l as isDayOutsideSpan, n as buildMonthGrid, o as applyRangeClick, p as resolveWeekStart, t as addMonths, u as isRangeWithinSpan } from "./useMonthGrid-CmJsZTcB.js";
2
- import { a as useAstryxMessages, i as useAstryxLocale } from "./context-Dbo22sck.js";
2
+ import { a as useAstryxMessages, i as useAstryxLocale } from "./context-DzcK4T_C.js";
3
3
  import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
4
4
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
5
5
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
6
- import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
6
+ import { t as _sfc_main$4 } from "./Icon-Bku25g_K.js";
7
7
  import { t as _sfc_main$5 } from "./Field-8zRxzDHE.js";
8
8
  import { t as _sfc_main$6 } from "./Popover-Crhk9PNP.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, shallowRef, toDisplayString, unref, useId, useModel, withCtx } from "vue";