@astryx-vue/core 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
  3. package/dist/AppShell/index.d.ts +2 -0
  4. package/dist/AppShell/index.js +2 -0
  5. package/dist/AppShell-EiGyPFbA.js +249 -0
  6. package/dist/AspectRatio/index.d.ts +2 -0
  7. package/dist/AspectRatio/index.js +2 -0
  8. package/dist/AspectRatio-Bij7e-tq.js +40 -0
  9. package/dist/AvatarGroup/index.d.ts +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.d.ts +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.js +1 -1
  15. package/dist/{Calendar-BEyrkUtr.js → Calendar-BG7wEsro.js} +1 -1
  16. package/dist/Carousel/index.d.ts +2 -0
  17. package/dist/Carousel/index.js +2 -0
  18. package/dist/Carousel-BTtHkKea.js +363 -0
  19. package/dist/Chat/index.js +1 -1
  20. package/dist/{Chat-CO3mCs9A.js → Chat-DjNxw5gv.js} +2 -2
  21. package/dist/CheckboxInput/index.d.ts +1 -1
  22. package/dist/CheckboxInput/index.js +1 -1
  23. package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
  24. package/dist/CheckboxList/index.d.ts +1 -1
  25. package/dist/CheckboxList/index.js +1 -1
  26. package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
  27. package/dist/Citation/index.js +1 -1
  28. package/dist/{Citation-BqwJvw7o.js → Citation-DijdbUUu.js} +2 -2
  29. package/dist/ClickableCard/index.d.ts +2 -0
  30. package/dist/ClickableCard/index.js +2 -0
  31. package/dist/ClickableCard-Bhds4RRe.js +112 -0
  32. package/dist/Code/index.d.ts +3 -2
  33. package/dist/Code/index.js +4 -2
  34. package/dist/Code-yb_KOFtJ.js +299 -0
  35. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
  36. package/dist/Collapsible/index.d.ts +2 -2
  37. package/dist/Collapsible/index.js +2 -2
  38. package/dist/Collapsible-9MC08X39.js +192 -0
  39. package/dist/CommandPalette/index.d.ts +2 -0
  40. package/dist/CommandPalette/index.js +2 -0
  41. package/dist/CommandPalette-BD2iODF5.js +489 -0
  42. package/dist/ComplexSelector/index.d.ts +2 -0
  43. package/dist/ComplexSelector/index.js +2 -0
  44. package/dist/ComplexSelector-D9iXd5cH.js +293 -0
  45. package/dist/ContextMenu/index.d.ts +1 -1
  46. package/dist/ContextMenu/index.js +1 -1
  47. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
  48. package/dist/DateInput/index.d.ts +1 -1
  49. package/dist/DateInput/index.js +1 -1
  50. package/dist/{DateInput-BOIb0zAp.js → DateInput-DE2TN1Rq.js} +2 -2
  51. package/dist/DateRangeInput/index.d.ts +1 -1
  52. package/dist/DateRangeInput/index.js +1 -1
  53. package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-1bhPGG2s.js} +4 -4
  54. package/dist/DateTimeInput/index.d.ts +1 -1
  55. package/dist/DateTimeInput/index.js +1 -1
  56. package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-SnPdgk6P.js} +4 -4
  57. package/dist/Divider/index.d.ts +1 -1
  58. package/dist/DropdownMenu/index.js +1 -1
  59. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  62. package/dist/Field/index.js +2 -2
  63. package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
  64. package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
  65. package/dist/FileInput/index.d.ts +1 -1
  66. package/dist/FileInput/index.js +1 -1
  67. package/dist/{FileInput-CYvEV503.js → FileInput-BQiwE-GB.js} +3 -3
  68. package/dist/FormLayout/index.d.ts +2 -0
  69. package/dist/FormLayout/index.js +2 -0
  70. package/dist/FormLayout-D47FjiOq.js +40 -0
  71. package/dist/HoverCard/index.d.ts +1 -1
  72. package/dist/Icon/index.d.ts +3 -0
  73. package/dist/Icon/index.js +2 -0
  74. package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
  75. package/dist/Layout/index.d.ts +2 -0
  76. package/dist/Layout/index.js +3 -0
  77. package/dist/Layout-Bed3kP0M.js +56 -0
  78. package/dist/LayoutPanel-C34uOq3e.js +358 -0
  79. package/dist/Lightbox/index.d.ts +2 -0
  80. package/dist/Lightbox/index.js +2 -0
  81. package/dist/Lightbox-CshKoB0r.js +384 -0
  82. package/dist/Link/index.d.ts +1 -1
  83. package/dist/List/index.d.ts +1 -1
  84. package/dist/Markdown/index.d.ts +1 -1
  85. package/dist/Markdown/index.js +1 -1
  86. package/dist/{Markdown-Dnlp8cVx.js → Markdown-D-Ua055V.js} +2 -2
  87. package/dist/MetadataList/index.js +1 -1
  88. package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-sYph_d8Q.js} +1 -1
  89. package/dist/MobileNav/index.d.ts +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-DD9D01aj.js} +19 -12
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-Bh8or2S6.js → MultiSelector-DiYov9sF.js} +3 -3
  98. package/dist/NavItem/index.d.ts +1 -1
  99. package/dist/NavMenu/index.d.ts +1 -1
  100. package/dist/NavMenu/index.js +1 -1
  101. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  102. package/dist/NumberInput/index.d.ts +1 -1
  103. package/dist/NumberInput/index.js +1 -1
  104. package/dist/{NumberInput-C3S-4dIu.js → NumberInput-CTYiQxHq.js} +1 -1
  105. package/dist/Outline/index.d.ts +2 -0
  106. package/dist/Outline/index.js +2 -0
  107. package/dist/Outline-DQfEBxlc.js +325 -0
  108. package/dist/OverflowList/index.d.ts +1 -1
  109. package/dist/OverflowList/index.js +1 -1
  110. package/dist/{OverflowList-Kr4iJrNV.js → OverflowList-BU5VCntl.js} +2 -2
  111. package/dist/Overlay/index.d.ts +1 -1
  112. package/dist/Pagination/index.js +1 -1
  113. package/dist/{Pagination-BRStpeSB.js → Pagination-HdhtykeF.js} +2 -2
  114. package/dist/Popover/index.d.ts +2 -1
  115. package/dist/Radio/index.d.ts +1 -1
  116. package/dist/Radio/index.js +1 -1
  117. package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
  118. package/dist/RadioList/index.d.ts +1 -1
  119. package/dist/RadioList/index.js +1 -1
  120. package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
  121. package/dist/Resizable/index.d.ts +2 -0
  122. package/dist/Resizable/index.js +2 -0
  123. package/dist/Resizable-BhSMfO5B.js +261 -0
  124. package/dist/ScrollableArea/index.d.ts +2 -0
  125. package/dist/ScrollableArea/index.js +2 -0
  126. package/dist/ScrollableArea-DQDYjnxO.js +78 -0
  127. package/dist/Section/index.d.ts +2 -0
  128. package/dist/Section/index.js +2 -0
  129. package/dist/Section-C48Wqfc7.js +68 -0
  130. package/dist/SelectableCard/index.d.ts +2 -0
  131. package/dist/SelectableCard/index.js +2 -0
  132. package/dist/SelectableCard-Bj5s_tIN.js +108 -0
  133. package/dist/Selector/index.d.ts +1 -1
  134. package/dist/Selector/index.js +1 -1
  135. package/dist/{Selector-DvEUIVEC.js → Selector-Da-2BO3q.js} +1 -1
  136. package/dist/SideNav/index.d.ts +1 -1
  137. package/dist/SideNav/index.js +2 -1
  138. package/dist/{SideNav-B7LX4RcP.js → SideNav-B-Om6Bz3.js} +49 -27
  139. package/dist/Slider/index.js +1 -1
  140. package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
  141. package/dist/Stepper/index.d.ts +2 -0
  142. package/dist/Stepper/index.js +2 -0
  143. package/dist/Stepper-BZ_8SEZt.js +423 -0
  144. package/dist/Switch/index.d.ts +1 -1
  145. package/dist/Switch/index.js +1 -1
  146. package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
  147. package/dist/TabList/index.d.ts +2 -2
  148. package/dist/TabList/index.js +2 -2
  149. package/dist/TabList-Cnc2Hs1H.js +380 -0
  150. package/dist/Table/index.d.ts +2 -1
  151. package/dist/Table/index.js +1 -1
  152. package/dist/{Table-D5zWaITo.js → Table-D-LhAy_J.js} +6 -6
  153. package/dist/Text/index.d.ts +3 -2
  154. package/dist/Text/index.js +1 -1
  155. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  156. package/dist/TextArea/index.d.ts +1 -1
  157. package/dist/TextArea/index.js +1 -1
  158. package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/TextInput/index.js +1 -1
  161. package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
  162. package/dist/Theme/index.d.ts +2 -0
  163. package/dist/Theme/index.js +2 -0
  164. package/dist/Theme-BuUiiJNr.js +429 -0
  165. package/dist/Thumbnail/index.js +1 -1
  166. package/dist/{Thumbnail-DMOgWncm.js → Thumbnail-Dc1UpykG.js} +2 -2
  167. package/dist/{TimeField-DeQ1ukHl.js → TimeField-C7t9Knq9.js} +2 -2
  168. package/dist/TimeInput/index.d.ts +1 -1
  169. package/dist/TimeInput/index.js +1 -1
  170. package/dist/{TimeInput-jb1nLqZk.js → TimeInput-BXxCOY98.js} +2 -2
  171. package/dist/Timer/index.d.ts +2 -0
  172. package/dist/Timer/index.js +2 -0
  173. package/dist/Timer-B7GV6hqd.js +134 -0
  174. package/dist/Timestamp/index.d.ts +1 -1
  175. package/dist/Timestamp/index.js +1 -1
  176. package/dist/{Timestamp-DrWwVQBL.js → Timestamp-DlZSmgCJ.js} +3 -3
  177. package/dist/ToggleButton/index.d.ts +1 -1
  178. package/dist/Token/index.d.ts +1 -1
  179. package/dist/Token/index.js +1 -1
  180. package/dist/{Token-CV2J94bn.js → Token-wt4e80IM.js} +1 -1
  181. package/dist/Tokenizer/index.d.ts +1 -1
  182. package/dist/Tokenizer/index.js +1 -1
  183. package/dist/{Tokenizer-DF9r4hTW.js → Tokenizer-nmTqdS9n.js} +3 -3
  184. package/dist/Toolbar/index.d.ts +1 -1
  185. package/dist/Tooltip/index.d.ts +1 -1
  186. package/dist/TopNav/index.d.ts +1 -1
  187. package/dist/TopNav/index.js +1 -1
  188. package/dist/{TopNav-BH_s3uap.js → TopNav-notp-mJx.js} +58 -32
  189. package/dist/TreeList/index.js +1 -1
  190. package/dist/{TreeList-D9cR-w7r.js → TreeList-s1xBQ0qq.js} +2 -2
  191. package/dist/Typeahead/index.d.ts +1 -1
  192. package/dist/Typeahead/index.js +1 -1
  193. package/dist/{Typeahead-s4DC1Qem.js → Typeahead-VAuiCurV.js} +3 -3
  194. package/dist/composables/index.d.ts +3 -2
  195. package/dist/composables/index.js +5 -2
  196. package/dist/composables-CVfjp9h4.js +502 -0
  197. package/dist/context-BjNya0v8.js +19 -0
  198. package/dist/context-Cfjh8te1.js +29 -0
  199. package/dist/{context-BshXcNYX.js → context-Dbo22sck.js} +138 -0
  200. package/dist/context-O2Vb8cJl.js +57 -0
  201. package/dist/index-1AZ4KZhg.d.ts +96 -0
  202. package/dist/index-1uRMrk63.d.ts +54 -0
  203. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  204. package/dist/index-BMrggCw-.d.ts +52 -0
  205. package/dist/{index-BlWLperN.d.ts → index-BUXNRekN.d.ts} +2 -2
  206. package/dist/index-Bainr_3n.d.ts +31 -0
  207. package/dist/index-Be1czg3M.d.ts +167 -0
  208. package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
  209. package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
  210. package/dist/index-BrJzFA5X.d.ts +38 -0
  211. package/dist/{index-AkMWQ97a.d.ts → index-BtPZKO20.d.ts} +3 -3
  212. package/dist/index-Bu0Zd1uw.d.ts +38 -0
  213. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  214. package/dist/index-By2mSzUA.d.ts +67 -0
  215. package/dist/index-C59PdX9L.d.ts +141 -0
  216. package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
  217. package/dist/{index-CQ9F1f_F.d.ts → index-C6iJwTL0.d.ts} +324 -145
  218. package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
  219. package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
  220. package/dist/index-CDdRQQF3.d.ts +170 -0
  221. package/dist/index-COqjznX0.d.ts +47 -0
  222. package/dist/index-CRizexSC.d.ts +147 -0
  223. package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
  224. package/dist/index-CVn0GBdB.d.ts +115 -0
  225. package/dist/index-Cm_TiLXU.d.ts +22 -0
  226. package/dist/index-Cn-sSds-.d.ts +68 -0
  227. package/dist/index-CsVS37na.d.ts +81 -0
  228. package/dist/{index-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
  229. package/dist/{index-g03bmR4K.d.ts → index-D0TlUOtG.d.ts} +2 -2
  230. package/dist/index-DA52oIdw.d.ts +171 -0
  231. package/dist/{index-D3V7yRUP.d.ts → index-DOUEn7V0.d.ts} +4 -4
  232. package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
  233. package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
  234. package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
  235. package/dist/{index-CNcQmDrK.d.ts → index-DoFCm2Q2.d.ts} +71 -0
  236. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  237. package/dist/{index-12ObcW99.d.ts → index-DtjAdYEc.d.ts} +2 -2
  238. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  239. package/dist/{index-CsJpQElv.d.ts → index-NzLDrOkk.d.ts} +2 -2
  240. package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
  241. package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
  242. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  243. package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
  244. package/dist/index-nKlTsNfV.d.ts +42 -0
  245. package/dist/index.d.ts +84 -63
  246. package/dist/index.js +118 -91
  247. package/dist/locale/index.d.ts +1 -1
  248. package/dist/locale/index.js +1 -1
  249. package/dist/size-BuTzpgnR.d.ts +14 -0
  250. package/dist/size-xcIqExkS.js +79 -0
  251. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  252. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  253. package/dist/types-Bt-lSgYX.d.ts +65 -0
  254. package/dist/types-DZoEm_DG.d.ts +97 -0
  255. package/dist/{index-Bovw9_8d.d.ts → types-Db3Owy8Q.d.ts} +1 -36
  256. package/dist/types-JktRxujg.d.ts +107 -0
  257. package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
  258. package/dist/useClickableContainer-DyNpnSEa.js +112 -0
  259. package/dist/useResizable-CeESZS1v.d.ts +72 -0
  260. package/dist/useScrollableArea-DDk_CluT.js +172 -0
  261. package/package.json +73 -1
  262. package/styles/app-shell.css +151 -0
  263. package/styles/aspect-ratio.css +49 -0
  264. package/styles/card.css +5 -1
  265. package/styles/carousel.css +120 -0
  266. package/styles/clickable-card.css +101 -0
  267. package/styles/collapsible.css +37 -0
  268. package/styles/command-palette.css +183 -0
  269. package/styles/complex-selector.css +114 -0
  270. package/styles/field.css +12 -0
  271. package/styles/form-layout.css +31 -0
  272. package/styles/heading.css +25 -19
  273. package/styles/layout.css +280 -0
  274. package/styles/lightbox.css +144 -0
  275. package/styles/media-theme.css +51 -0
  276. package/styles/outline.css +124 -0
  277. package/styles/resize-handle.css +128 -0
  278. package/styles/scrollable-area.css +50 -0
  279. package/styles/section.css +60 -0
  280. package/styles/side-nav.css +26 -0
  281. package/styles/stepper.css +357 -0
  282. package/styles/tab-menu.css +91 -0
  283. package/styles/text.css +63 -14
  284. package/styles/theme.css +29 -0
  285. package/styles/timer.css +34 -0
  286. package/styles.css +18 -0
  287. package/dist/Collapsible-BYg9soTk.js +0 -102
  288. package/dist/TabList-LV1U4ZD6.js +0 -184
  289. package/dist/composables-Dq9RS33w.js +0 -111
  290. package/dist/index-BzqRns96.d.ts +0 -64
  291. package/dist/index-TnaIHsCS.d.ts +0 -87
@@ -0,0 +1,293 @@
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { t as _sfc_main$1 } from "./Icon-Dfr4k6-S.js";
3
+ import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
4
+ import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
5
+ import { t as _sfc_main$4 } from "./Popover-Crhk9PNP.js";
6
+ import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, normalizeProps, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, useId, useModel, useSlots, watch, withCtx } from "vue";
7
+ import "../styles/complex-selector.css";
8
+ //#region src/ComplexSelector/ComplexSelector.vue
9
+ const _hoisted_1 = [
10
+ "data-placeholder",
11
+ "data-size",
12
+ "data-status",
13
+ "data-variant",
14
+ "aria-busy",
15
+ "aria-expanded",
16
+ "aria-invalid",
17
+ "aria-required",
18
+ "disabled"
19
+ ];
20
+ const _hoisted_2 = { class: "astryx-complex-selector-value" };
21
+ const _sfc_main = /*@__PURE__*/ defineComponent({
22
+ name: "AstryxComplexSelector",
23
+ __name: "ComplexSelector",
24
+ props: /*@__PURE__*/ mergeModels({
25
+ label: {},
26
+ modelValue: {},
27
+ triggerLabel: {},
28
+ placeholder: {},
29
+ isLabelHidden: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ description: {},
34
+ isOptional: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ isRequired: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ isDisabled: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ isLoading: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ status: {},
51
+ statusVariant: { default: "attached" },
52
+ labelTooltip: {},
53
+ size: { default: "md" },
54
+ width: {},
55
+ placement: { default: "below" },
56
+ alignment: { default: "start" },
57
+ startIcon: {},
58
+ variant: { default: "input" },
59
+ renderTrigger: {},
60
+ handleRef: {},
61
+ changeAction: {}
62
+ }, {
63
+ "modelValue": { required: true },
64
+ "modelModifiers": {}
65
+ }),
66
+ emits: /*@__PURE__*/ mergeModels(["change"], ["update:modelValue"]),
67
+ setup(__props, { expose: __expose, emit: __emit }) {
68
+ const props = __props;
69
+ const emit = __emit;
70
+ const slots = useSlots();
71
+ const model = useModel(__props, "modelValue");
72
+ const messages = useAstryxMessages();
73
+ const isOpen = ref(false);
74
+ const isPending = ref(false);
75
+ const optimistic = ref(void 0);
76
+ const triggerId = `astryx-complex-selector-${useId()}`;
77
+ const labelId = `${triggerId}-label`;
78
+ const contentId = `${triggerId}-content`;
79
+ const placeholder = computed(() => props.placeholder ?? messages.value.selector.placeholder);
80
+ const isBusy = computed(() => props.isLoading || isPending.value);
81
+ const displayValue = computed(() => isPending.value && optimistic.value !== void 0 ? optimistic.value : model.value);
82
+ const hasTriggerLabel = computed(() => props.triggerLabel != null && props.triggerLabel !== "");
83
+ const state = computed(() => ({
84
+ isOpen: isOpen.value,
85
+ isBusy: isBusy.value,
86
+ triggerId,
87
+ contentId
88
+ }));
89
+ function setOpen(next) {
90
+ if (props.isDisabled) return;
91
+ isOpen.value = next;
92
+ }
93
+ async function commit(next) {
94
+ model.value = next;
95
+ emit("change", next);
96
+ if (props.changeAction == null) return;
97
+ optimistic.value = next;
98
+ isPending.value = true;
99
+ try {
100
+ await props.changeAction(next);
101
+ } finally {
102
+ isPending.value = false;
103
+ }
104
+ }
105
+ function close() {
106
+ isOpen.value = false;
107
+ }
108
+ function open() {
109
+ if (props.isDisabled) return;
110
+ isOpen.value = true;
111
+ }
112
+ function toggle() {
113
+ if (isOpen.value) close();
114
+ else open();
115
+ }
116
+ function onTriggerKeyDown(event) {
117
+ if (event.key === "ArrowDown" && !isOpen.value && !props.isDisabled) {
118
+ event.preventDefault();
119
+ isOpen.value = true;
120
+ }
121
+ }
122
+ function onCustomClick(event) {
123
+ event.stopImmediatePropagation();
124
+ toggle();
125
+ }
126
+ const hasCustomTrigger = computed(() => props.renderTrigger != null || slots.trigger != null);
127
+ const triggerProps = computed(() => ({
128
+ "id": triggerId,
129
+ "onClick": onCustomClick,
130
+ "onKeydown": onTriggerKeyDown,
131
+ "aria-haspopup": "dialog",
132
+ "aria-expanded": isOpen.value,
133
+ "aria-controls": isOpen.value ? contentId : void 0,
134
+ "aria-busy": isBusy.value ? true : void 0,
135
+ "aria-label": props.label
136
+ }));
137
+ const triggerView = () => props.renderTrigger?.(triggerProps.value) ?? null;
138
+ const handle = {
139
+ open,
140
+ close,
141
+ toggle,
142
+ isOpen: () => isOpen.value
143
+ };
144
+ function publishHandle(value) {
145
+ const target = props.handleRef;
146
+ if (target == null) return;
147
+ if (typeof target === "function") target(value);
148
+ else target.value = value;
149
+ }
150
+ watch(() => props.handleRef, (_next, previous) => {
151
+ if (previous != null && previous !== props.handleRef) {
152
+ if (typeof previous === "function") previous(null);
153
+ else previous.value = null;
154
+ }
155
+ publishHandle(handle);
156
+ }, { immediate: true });
157
+ onBeforeUnmount(() => publishHandle(null));
158
+ __expose(handle);
159
+ return (_ctx, _cache) => {
160
+ return hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$4, {
161
+ key: 0,
162
+ alignment: __props.alignment,
163
+ "has-auto-focus": true,
164
+ "has-close-button": false,
165
+ "is-enabled": !__props.isDisabled,
166
+ "is-open": isOpen.value,
167
+ label: __props.label,
168
+ padding: 3,
169
+ placement: __props.placement,
170
+ role: "dialog",
171
+ onOpenChange: setOpen
172
+ }, {
173
+ content: withCtx(() => [createElementVNode("div", {
174
+ id: contentId,
175
+ class: "astryx-complex-selector-content"
176
+ }, [renderSlot(_ctx.$slots, "default", {
177
+ close,
178
+ commit,
179
+ state: state.value,
180
+ value: displayValue.value
181
+ })])]),
182
+ default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))])]),
183
+ _: 3
184
+ }, 8, [
185
+ "alignment",
186
+ "is-enabled",
187
+ "is-open",
188
+ "label",
189
+ "placement"
190
+ ])) : (openBlock(), createBlock(_sfc_main$3, {
191
+ key: 1,
192
+ class: "astryx-complex-selector-field",
193
+ "data-variant": __props.variant,
194
+ description: __props.description,
195
+ "input-id": triggerId,
196
+ "is-disabled": __props.isDisabled,
197
+ "is-label-hidden": __props.isLabelHidden,
198
+ "is-optional": __props.isOptional,
199
+ "is-required": __props.isRequired,
200
+ label: __props.label,
201
+ "label-id": labelId,
202
+ "label-tooltip": __props.labelTooltip,
203
+ status: __props.status,
204
+ "status-variant": __props.statusVariant,
205
+ width: __props.width
206
+ }, {
207
+ default: withCtx(() => [createVNode(_sfc_main$4, {
208
+ alignment: __props.alignment,
209
+ "has-auto-focus": true,
210
+ "has-close-button": false,
211
+ "is-enabled": !__props.isDisabled,
212
+ "is-open": isOpen.value,
213
+ label: __props.label,
214
+ padding: 3,
215
+ placement: __props.placement,
216
+ role: "dialog",
217
+ onOpenChange: setOpen
218
+ }, {
219
+ content: withCtx(() => [createElementVNode("div", {
220
+ id: contentId,
221
+ class: "astryx-complex-selector-content"
222
+ }, [renderSlot(_ctx.$slots, "default", {
223
+ close,
224
+ commit,
225
+ state: state.value,
226
+ value: displayValue.value
227
+ })])]),
228
+ default: withCtx(() => [createElementVNode("button", {
229
+ id: triggerId,
230
+ class: "astryx-complex-selector",
231
+ "data-placeholder": hasTriggerLabel.value ? void 0 : "",
232
+ "data-size": __props.size,
233
+ "data-status": __props.status?.type,
234
+ "data-variant": __props.variant,
235
+ "aria-busy": isBusy.value || void 0,
236
+ "aria-expanded": isOpen.value,
237
+ "aria-invalid": __props.status?.type === "error" || void 0,
238
+ "aria-labelledby": labelId,
239
+ "aria-required": __props.isRequired || void 0,
240
+ disabled: __props.isDisabled,
241
+ type: "button",
242
+ onKeydown: onTriggerKeyDown
243
+ }, [
244
+ __props.startIcon ? (openBlock(), createBlock(_sfc_main$1, {
245
+ key: 0,
246
+ class: "astryx-complex-selector-start",
247
+ color: "secondary",
248
+ icon: __props.startIcon,
249
+ size: "sm"
250
+ }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
251
+ createElementVNode("span", _hoisted_2, toDisplayString(hasTriggerLabel.value ? __props.triggerLabel : placeholder.value), 1),
252
+ isBusy.value ? (openBlock(), createBlock(_sfc_main$2, {
253
+ key: 1,
254
+ size: "sm"
255
+ })) : createCommentVNode("v-if", true),
256
+ createVNode(_sfc_main$1, {
257
+ class: "astryx-complex-selector-chevron",
258
+ "data-state": isOpen.value ? "expanded" : "collapsed",
259
+ color: "secondary",
260
+ icon: "chevronDown",
261
+ size: "sm"
262
+ }, null, 8, ["data-state"])
263
+ ], 40, _hoisted_1)]),
264
+ _: 3
265
+ }, 8, [
266
+ "alignment",
267
+ "is-enabled",
268
+ "is-open",
269
+ "label",
270
+ "placement"
271
+ ])]),
272
+ _: 3
273
+ }, 8, [
274
+ "data-variant",
275
+ "description",
276
+ "is-disabled",
277
+ "is-label-hidden",
278
+ "is-optional",
279
+ "is-required",
280
+ "label",
281
+ "label-tooltip",
282
+ "status",
283
+ "status-variant",
284
+ "width"
285
+ ]));
286
+ };
287
+ }
288
+ });
289
+ //#endregion
290
+ //#region src/ComplexSelector/index.ts
291
+ var ComplexSelector_default = _sfc_main;
292
+ //#endregion
293
+ export { _sfc_main as n, ComplexSelector_default as t };
@@ -1,2 +1,2 @@
1
- import { C as ContextMenuSlots, D as ContextMenuTriggerElement, E as ContextMenuSubMenuSlots, O as ContextMenuVariant, S as ContextMenuSize, T as ContextMenuSubMenuProps, _ as ContextMenuItemSlots, a as _default, b as ContextMenuProps, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuWidth, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSubMenuEmits, x as ContextMenuSection, y as ContextMenuOption } from "../index-Bc0dgVM5.js";
1
+ import { C as ContextMenuSlots, D as ContextMenuTriggerElement, E as ContextMenuSubMenuSlots, O as ContextMenuVariant, S as ContextMenuSize, T as ContextMenuSubMenuProps, _ as ContextMenuItemSlots, a as _default, b as ContextMenuProps, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuWidth, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSubMenuEmits, x as ContextMenuSection, y as ContextMenuOption } from "../index-CTolyeii.js";
2
2
  export { _default as ContextMenu, _default$1 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, _default$2 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$3 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuProps, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$4 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,2 +1,2 @@
1
- import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-dA-ppaRQ.js";
1
+ import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-HS_WqYIg.js";
2
2
  export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuDivider, _sfc_main$2 as ContextMenuGroup, _sfc_main$3 as ContextMenuItem, _sfc_main$4 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
@@ -2,7 +2,7 @@ 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-5MdZQ18k.js";
5
+ import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
6
6
  import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
7
7
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
8
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";
@@ -1,2 +1,2 @@
1
- import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-12ObcW99.js";
1
+ import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-DtjAdYEc.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputProps, type DateInputSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-BOIb0zAp.js";
1
+ import { t as _sfc_main } from "../DateInput-DE2TN1Rq.js";
2
2
  export { _sfc_main as DateInput };
@@ -1,5 +1,5 @@
1
- import { t as _sfc_main$1 } from "./Calendar-BEyrkUtr.js";
2
- import { a as useAstryxMessages } from "./context-BshXcNYX.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { t as _sfc_main$1 } from "./Calendar-BG7wEsro.js";
3
3
  import { t as _sfc_main$2 } from "./Popover-Crhk9PNP.js";
4
4
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, useId, useTemplateRef, watch, withCtx } from "vue";
5
5
  import "../styles/date-input.css";
@@ -1,2 +1,2 @@
1
- import { Gn as DateRange, Jn as DateRangePreset, Kn as DateRangeInputEmits, Wn as _default, qn as DateRangeInputProps } from "../index-CQ9F1f_F.js";
1
+ import { $n as DateRangeInputEmits, Qn as DateRange, Zn as _default, er as DateRangeInputProps, tr as DateRangePreset } from "../index-C6iJwTL0.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-DLcbgUBi.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-1bhPGG2s.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -1,10 +1,10 @@
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";
3
+ import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
2
4
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
3
5
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
4
- import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
5
- import { a as useAstryxMessages, i as useAstryxLocale } from "./context-BshXcNYX.js";
6
- import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
7
- import { t as _sfc_main$5 } from "./Field-VlTBsIEo.js";
6
+ import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
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";
10
10
  import "../styles/calendar.css";
@@ -1,2 +1,2 @@
1
- import { Bn as _default, Hn as DateTimeInputProps, Un as DateTimeInputSize, Vn as DateTimeInputEmits } from "../index-CQ9F1f_F.js";
1
+ import { Jn as DateTimeInputEmits, Xn as DateTimeInputSize, Yn as DateTimeInputProps, qn as _default } from "../index-C6iJwTL0.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-RitYX_Yx.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-SnPdgk6P.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -1,9 +1,9 @@
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
1
2
  import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
2
3
  import { t as _sfc_main$2 } from "./IconButton-BNQuz9W_.js";
3
- import { a as useAstryxMessages } from "./context-BshXcNYX.js";
4
- import { t as _sfc_main$3 } from "./Field-VlTBsIEo.js";
5
- import { t as _sfc_main$4 } from "./DateInput-BOIb0zAp.js";
6
- import { t as _sfc_main$5 } from "./TimeField-DeQ1ukHl.js";
4
+ import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
5
+ import { t as _sfc_main$4 } from "./DateInput-DE2TN1Rq.js";
6
+ import { t as _sfc_main$5 } from "./TimeField-C7t9Knq9.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeModels, openBlock, ref, unref, useId, useModel, watch, withCtx } from "vue";
8
8
  import "../styles/date-time-input.css";
9
9
  //#region src/DateTimeInput/DateTimeInput.vue
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-Byar3h1e.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-HV6W3xCx.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,2 @@
1
- import { a as useDropdownMenuContext, i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-B0gogrvG.js";
1
+ import { a as useDropdownMenuContext, i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-UJGych6v.js";
2
2
  export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuDivider, _sfc_main$2 as DropdownMenuGroup, _sfc_main$3 as DropdownMenuItem, useDropdownMenuContext };
@@ -1,7 +1,7 @@
1
1
  import { t as _sfc_main$5 } from "./Button-DrqeomlE.js";
2
2
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
3
  import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
4
- import { t as _sfc_main$6 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
5
5
  import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
6
6
  import { t as _sfc_main$8 } from "./Item-C1z6gXn8.js";
7
7
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../EmptyState-Bhlqgsg4.js";
1
+ import { t as _sfc_main } from "../EmptyState-CUJdTYKV.js";
2
2
  export { _sfc_main as EmptyState };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$1 } from "./Heading-Dugosn6j.js";
2
- import { t as _sfc_main$2 } from "./Text-CKd7e3gK.js";
2
+ import { t as _sfc_main$2 } from "./Text-BHVghsWo.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, useTemplateRef, withCtx } from "vue";
4
4
  import "../styles/empty-state.css";
5
5
  //#region src/EmptyState/EmptyState.vue
@@ -1,3 +1,3 @@
1
- import { t as _sfc_main$1 } from "../FieldLabel-B1NRyQlS.js";
2
- import { t as _sfc_main } from "../Field-VlTBsIEo.js";
1
+ import { t as _sfc_main$1 } from "../FieldLabel-DmmJyX7w.js";
2
+ import { t as _sfc_main } from "../Field-8zRxzDHE.js";
3
3
  export { _sfc_main as Field, _sfc_main$1 as FieldLabel };
@@ -1,9 +1,14 @@
1
- import { t as _sfc_main$1 } from "./FieldLabel-B1NRyQlS.js";
1
+ import { a as useFormLayout } from "./context-Cfjh8te1.js";
2
+ import { t as _sfc_main$1 } from "./FieldLabel-DmmJyX7w.js";
2
3
  import { t as _sfc_main$2 } from "./FieldStatus-MjY19ERl.js";
3
4
  import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, normalizeStyle, openBlock, renderSlot, useTemplateRef, withCtx } from "vue";
4
5
  import "../styles/field.css";
5
6
  //#region src/Field/Field.vue
6
- const _hoisted_1 = ["data-status-variant", "data-group-label"];
7
+ const _hoisted_1 = [
8
+ "data-status-variant",
9
+ "data-group-label",
10
+ "data-layout"
11
+ ];
7
12
  const _hoisted_2 = { class: "astryx-field-control" };
8
13
  const _sfc_main = /*@__PURE__*/ defineComponent({
9
14
  name: "AstryxField",
@@ -42,13 +47,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
42
47
  };
43
48
  });
44
49
  const style = computed(() => ({ "--astryx-field-width": typeof props.width === "number" ? `${props.width}px` : props.width }));
50
+ const formLayout = useFormLayout();
51
+ const horizontalLabels = computed(() => formLayout.value?.direction === "horizontal-labels");
45
52
  return (_ctx, _cache) => {
46
53
  return openBlock(), createElementBlock("div", {
47
54
  ref: "field",
48
55
  class: "astryx-field",
49
56
  style: normalizeStyle(style.value),
50
57
  "data-status-variant": __props.statusVariant,
51
- "data-group-label": __props.isGroupLabel || void 0
58
+ "data-group-label": __props.isGroupLabel || void 0,
59
+ "data-layout": horizontalLabels.value ? "horizontal-labels" : void 0
52
60
  }, [createVNode(_sfc_main$1, {
53
61
  label: __props.label,
54
62
  "input-id": __props.inputId,
@@ -2,6 +2,7 @@ import { n as useButtonTooltip } from "./Button-DrqeomlE.js";
2
2
  import { t as _sfc_main$2 } from "./ButtonTooltip-nWWrth8j.js";
3
3
  import { t as _sfc_main$3 } from "./FieldIcon--NTgW5IU.js";
4
4
  import { t as _sfc_main$4 } from "./IconButton-BNQuz9W_.js";
5
+ import { a as useFormLayout, n as showsOptionalIndicator, r as showsRequiredIndicator } from "./context-Cfjh8te1.js";
5
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, onScopeDispose, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useId, useTemplateRef, watch, withCtx } from "vue";
6
7
  import "../styles/field.css";
7
8
  //#region src/Field/FieldInfoTip.vue
@@ -136,6 +137,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
136
137
  const labelId = computed(() => props.labelId ?? `${props.inputId}-label`);
137
138
  const descriptionId = computed(() => props.descriptionId ?? `${props.inputId}-description`);
138
139
  const icon = computed(() => props.labelIcon ? toRaw(props.labelIcon) : void 0);
140
+ const formLayout = useFormLayout();
141
+ const optionality = computed(() => formLayout.value?.defaultOptionality);
142
+ const showOptional = computed(() => showsOptionalIndicator(props.isOptional, props.isRequired, optionality.value));
143
+ const showRequired = computed(() => showsRequiredIndicator(props.isRequired, props.isOptional, optionality.value));
139
144
  function focusFromDescription(event) {
140
145
  if (props.isGroupLabel || props.isDisabled) return;
141
146
  const target = event.target;
@@ -160,7 +165,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
160
165
  default: withCtx(() => [_ctx.$slots.labelIcon || icon.value ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "labelIcon", {}, () => [icon.value ? (openBlock(), createBlock(resolveDynamicComponent(icon.value), { key: 0 })) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true), createTextVNode(" " + toDisplayString(__props.label), 1)]),
161
166
  _: 3
162
167
  }, 8, ["id", "for"])),
163
- __props.isOptional || __props.isRequired ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.isOptional ? __props.optionalLabel : __props.requiredLabel), 1)) : createCommentVNode("v-if", true),
168
+ showOptional.value || showRequired.value ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(showOptional.value ? __props.optionalLabel : __props.requiredLabel), 1)) : createCommentVNode("v-if", true),
164
169
  __props.labelTooltip ? (openBlock(), createBlock(_sfc_main$1, {
165
170
  key: 1,
166
171
  text: __props.labelTooltip
@@ -1,2 +1,2 @@
1
- import { Fn as FileInputMode, In as FileInputProps, Ln as FileInputSize, Nn as _default, Pn as FileInputEmits, Rn as FileInputStatus, zn as FileInputValue } from "../index-CQ9F1f_F.js";
1
+ import { Bn as _default, Gn as FileInputStatus, Hn as FileInputMode, Kn as FileInputValue, Un as FileInputProps, Vn as FileInputEmits, Wn as FileInputSize } from "../index-C6iJwTL0.js";
2
2
  export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../FileInput-CYvEV503.js";
1
+ import { t as _sfc_main } from "../FileInput-BQiwE-GB.js";
2
2
  export { _sfc_main as FileInput };
@@ -1,12 +1,12 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
3
3
  import { n as selectFiles, t as formatFileSize } from "./useFileSelection-BPtaegqK.js";
4
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
4
5
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
5
6
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
6
- import { a as useAstryxMessages } from "./context-BshXcNYX.js";
7
- import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
7
+ import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
8
8
  import { t as _sfc_main$5 } from "./Spinner-9cYUCnDy.js";
9
- import { t as _sfc_main$6 } from "./Field-VlTBsIEo.js";
9
+ import { t as _sfc_main$6 } from "./Field-8zRxzDHE.js";
10
10
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
11
11
  import "../styles/bordered-control.css";
12
12
  import "../styles/file-input.css";
@@ -0,0 +1,2 @@
1
+ import { a as FormOptionality, i as FormLayoutDirection, n as FormLayoutProps, r as FormLayoutSlots, t as _default } from "../index-BrJzFA5X.js";
2
+ export { _default as FormLayout, type FormLayoutDirection, type FormLayoutProps, type FormLayoutSlots, type FormOptionality };
@@ -0,0 +1,2 @@
1
+ import { t as _sfc_main } from "../FormLayout-D47FjiOq.js";
2
+ export { _sfc_main as FormLayout };
@@ -0,0 +1,40 @@
1
+ import { t as formLayoutKey } from "./context-Cfjh8te1.js";
2
+ import { computed, createElementBlock, defineComponent, mergeProps, openBlock, provide, renderSlot, useAttrs, useTemplateRef } from "vue";
3
+ import "../styles/form-layout.css";
4
+ //#region src/FormLayout/FormLayout.vue
5
+ const _hoisted_1 = ["data-direction"];
6
+ const _sfc_main = /*@__PURE__*/ defineComponent({
7
+ name: "AstryxFormLayout",
8
+ inheritAttrs: false,
9
+ __name: "FormLayout",
10
+ props: {
11
+ direction: { default: "vertical" },
12
+ defaultOptionality: {}
13
+ },
14
+ setup(__props, { expose: __expose }) {
15
+ const props = __props;
16
+ const attrs = useAttrs();
17
+ const root = useTemplateRef("root");
18
+ __expose({ element: root });
19
+ const context = computed(() => ({
20
+ direction: props.direction,
21
+ defaultOptionality: props.defaultOptionality
22
+ }));
23
+ provide(formLayoutKey, context);
24
+ const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
25
+ const rootClass = computed(() => ["astryx-form-layout", attrs.class]);
26
+ const rootStyle = computed(() => attrs.style);
27
+ return (_ctx, _cache) => {
28
+ return openBlock(), createElementBlock("div", mergeProps({
29
+ ref_key: "root",
30
+ ref: root
31
+ }, forwardedAttrs.value, {
32
+ class: rootClass.value,
33
+ "data-direction": __props.direction,
34
+ style: rootStyle.value
35
+ }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1);
36
+ };
37
+ }
38
+ });
39
+ //#endregion
40
+ export { _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { a as HoverCardHoverIndication, c as HoverCardSlots, i as HoverCardFocusTrigger, l as HoverCardTouchTrigger, n as HoverCardAlignment, o as HoverCardPlacement, r as HoverCardEmits, s as HoverCardProps, t as _default } from "../index-BhYFxnjV.js";
1
+ import { a as HoverCardHoverIndication, c as HoverCardSlots, i as HoverCardFocusTrigger, l as HoverCardTouchTrigger, n as HoverCardAlignment, o as HoverCardPlacement, r as HoverCardEmits, s as HoverCardProps, t as _default } from "../index-kaKBOZSU.js";
2
2
  export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger };
@@ -0,0 +1,3 @@
1
+ import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-DZoEm_DG.js";
2
+ import { a as isIconGlyph, i as iconGlyphSlug, n as ICON_GLYPHS, r as IconGlyphName, t as _default } from "../index-Bainr_3n.js";
3
+ export { ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconSize, type IconSlots, iconGlyphSlug, isIconGlyph };
@@ -0,0 +1,2 @@
1
+ import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-Dfr4k6-S.js";
2
+ export { ICON_GLYPHS, _sfc_main as Icon, iconGlyphSlug, isIconGlyph };
@@ -83,4 +83,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
83
83
  }
84
84
  });
85
85
  //#endregion
86
- export { isIconGlyph as n, _sfc_main as t };
86
+ export { isIconGlyph as i, ICON_GLYPHS as n, iconGlyphSlug as r, _sfc_main as t };
@@ -0,0 +1,2 @@
1
+ import { _ as LayoutHeight, a as _default, c as LayoutFooterProps, d as LayoutHeaderSlots, f as LayoutPanelProps, g as LayoutArea, h as LayoutSlots, i as _default$1, l as LayoutFooterSlots, m as LayoutProps, n as _default$3, o as LayoutContentProps, p as LayoutPanelSlots, r as _default$2, s as LayoutContentSlots, t as _default$4, u as LayoutHeaderProps } from "../index-CDdRQQF3.js";
2
+ export { _default as Layout, type LayoutArea, _default$1 as LayoutContent, type LayoutContentProps, type LayoutContentSlots, _default$2 as LayoutFooter, type LayoutFooterProps, type LayoutFooterSlots, _default$3 as LayoutHeader, type LayoutHeaderProps, type LayoutHeaderSlots, type LayoutHeight, _default$4 as LayoutPanel, type LayoutPanelProps, type LayoutPanelSlots, type LayoutProps, type LayoutSlots };
@@ -0,0 +1,3 @@
1
+ import { a as _sfc_main, n as _sfc_main$3, r as _sfc_main$1, t as _sfc_main$4 } from "../LayoutPanel-C34uOq3e.js";
2
+ import { t as _sfc_main$2 } from "../Layout-Bed3kP0M.js";
3
+ export { _sfc_main as Layout, _sfc_main$1 as LayoutContent, _sfc_main$2 as LayoutFooter, _sfc_main$3 as LayoutHeader, _sfc_main$4 as LayoutPanel };