@astryx-vue/core 0.7.16 → 0.7.18

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 (164) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-h8ea5bGW.js → AlertDialog-pPXTwJ2L.js} +2 -2
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/{Avatar-BLPUC07s.js → Avatar-CP5bJN1n.js} +1 -1
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/Banner/index.d.ts +1 -1
  8. package/dist/Breadcrumbs/index.js +2 -2
  9. package/dist/{Breadcrumbs-CbHpqPFH.js → Breadcrumbs-CXRXlVmX.js} +1 -1
  10. package/dist/Button/index.d.ts +1 -1
  11. package/dist/ButtonGroup/index.d.ts +1 -1
  12. package/dist/Calendar/index.d.ts +1 -1
  13. package/dist/Card/index.d.ts +1 -1
  14. package/dist/Chat/index.d.ts +1 -1
  15. package/dist/CheckboxInput/index.d.ts +1 -1
  16. package/dist/CheckboxList/index.d.ts +1 -1
  17. package/dist/CheckboxList/index.js +1 -1
  18. package/dist/{CheckboxList-CIbjO5sX.js → CheckboxList-Dd6Vn_0N.js} +2 -2
  19. package/dist/ClickableCard/index.d.ts +1 -1
  20. package/dist/Code/index.d.ts +1 -1
  21. package/dist/Collapsible/index.d.ts +1 -1
  22. package/dist/ComplexSelector/index.d.ts +1 -1
  23. package/dist/ComplexSelector/index.js +1 -1
  24. package/dist/{ComplexSelector-ClPFa7tt.js → ComplexSelector-BiKaDteS.js} +1 -1
  25. package/dist/ContextMenu/index.d.ts +1 -1
  26. package/dist/ContextMenu/index.js +2 -2
  27. package/dist/{ContextMenu-C1dNw-kL.js → ContextMenu-DPY3WDdI.js} +1 -1
  28. package/dist/DateInput/index.d.ts +1 -1
  29. package/dist/DateInput/index.js +1 -1
  30. package/dist/{DateInput-CJ5LZkb3.js → DateInput-CDesWR4P.js} +1 -1
  31. package/dist/DateRangeInput/index.d.ts +1 -1
  32. package/dist/DateRangeInput/index.js +1 -1
  33. package/dist/{DateRangeInput-CODHgf6A.js → DateRangeInput-xT3wXhbh.js} +1 -1
  34. package/dist/DateTimeInput/index.d.ts +1 -1
  35. package/dist/DateTimeInput/index.js +1 -1
  36. package/dist/{DateTimeInput-BNqYdBps.js → DateTimeInput-oZKJG12g.js} +2 -2
  37. package/dist/Dialog/index.d.ts +1 -1
  38. package/dist/Drawer/index.d.ts +1 -1
  39. package/dist/DropdownMenu/index.js +3 -3
  40. package/dist/{DropdownMenu-CisXQME2.js → DropdownMenu-C1-Fx_uu.js} +2 -2
  41. package/dist/{DropdownMenu-JqLXEqmI.js → DropdownMenu-CjM_IQIU.js} +1 -1
  42. package/dist/EmptyState/index.js +1 -1
  43. package/dist/{EmptyState-CiX7Vuv7.js → EmptyState-CVbtVcRb.js} +21 -6
  44. package/dist/Field/index.js +1 -1
  45. package/dist/{Field-DRQuVVlH.js → Field-Dw53vhfK.js} +10 -7
  46. package/dist/FileInput/index.d.ts +1 -1
  47. package/dist/FileInput/index.js +1 -1
  48. package/dist/{FileInput-D5aCk6kL.js → FileInput-jPcAv4-1.js} +1 -1
  49. package/dist/Heading/index.js +1 -1
  50. package/dist/{Heading-CMNl-rie.js → Heading-CwMG-5tj.js} +2 -2
  51. package/dist/InputGroup/index.js +1 -1
  52. package/dist/{InputGroup-DN69Nt4T.js → InputGroup-C1z9qkGA.js} +1 -1
  53. package/dist/Link/index.js +1 -1
  54. package/dist/{Link-M-Slj9ez.js → Link-DdLdry4N.js} +1 -1
  55. package/dist/List/index.d.ts +1 -1
  56. package/dist/Markdown/index.js +1 -1
  57. package/dist/{Markdown-DDpbD0Sq.js → Markdown-u-bXd7Z_.js} +2 -2
  58. package/dist/MoreMenu/index.d.ts +1 -1
  59. package/dist/MoreMenu/index.js +1 -1
  60. package/dist/{MoreMenu-QWReDavJ.js → MoreMenu-CUWP3WTs.js} +1 -1
  61. package/dist/MultiSelector/index.d.ts +1 -1
  62. package/dist/MultiSelector/index.js +1 -1
  63. package/dist/{MultiSelector-CFzCvmwp.js → MultiSelector-DXFen6nf.js} +1 -1
  64. package/dist/NavItem/index.d.ts +1 -1
  65. package/dist/NumberInput/index.d.ts +1 -1
  66. package/dist/NumberInput/index.js +1 -1
  67. package/dist/{NumberInput-D3GJDfEd.js → NumberInput-47pYh8M8.js} +1 -1
  68. package/dist/OverflowList/index.d.ts +1 -1
  69. package/dist/Overlay/index.d.ts +1 -1
  70. package/dist/Pagination/index.d.ts +1 -1
  71. package/dist/Pagination/index.js +1 -1
  72. package/dist/{Pagination-CQj_wYfI.js → Pagination-CBjcLsLG.js} +1 -1
  73. package/dist/Popover/index.d.ts +1 -1
  74. package/dist/PowerSearch/index.d.ts +1 -1
  75. package/dist/PowerSearch/index.js +1 -1
  76. package/dist/{PowerSearch-CtS6Lb32.js → PowerSearch-BnsPW_Xe.js} +12 -12
  77. package/dist/ProgressBar/index.d.ts +1 -1
  78. package/dist/ProgressBar/index.js +1 -1
  79. package/dist/{ProgressBar-Bfzg2V4l.js → ProgressBar-Cmbhdfla.js} +1 -1
  80. package/dist/Radio/index.d.ts +1 -1
  81. package/dist/Radio/index.js +1 -1
  82. package/dist/{RadioGroup-CQ_0E3EQ.js → RadioGroup-Dcmqx9p_.js} +2 -2
  83. package/dist/RadioList/index.d.ts +1 -1
  84. package/dist/RadioList/index.js +1 -1
  85. package/dist/{RadioList-BngWBEJ9.js → RadioList-BnM8hmMZ.js} +1 -1
  86. package/dist/ScrollableArea/index.d.ts +1 -1
  87. package/dist/SegmentedControl/index.d.ts +1 -1
  88. package/dist/SelectableCard/index.d.ts +1 -1
  89. package/dist/Selector/index.d.ts +1 -1
  90. package/dist/Selector/index.js +1 -1
  91. package/dist/{Selector-B6BEBXzZ.js → Selector-DJqfjwFd.js} +1 -1
  92. package/dist/SideNav/index.d.ts +1 -1
  93. package/dist/SideNav/index.js +1 -1
  94. package/dist/{SideNav-51VcU4uB.js → SideNav-XSwiuJVo.js} +1 -1
  95. package/dist/Slider/index.js +1 -1
  96. package/dist/{Slider-gMrMfGWl.js → Slider-CDssBPWC.js} +1 -1
  97. package/dist/StatusDot/index.js +1 -1
  98. package/dist/{StatusDot-BydlQrpY.js → StatusDot-DhNtAVEN.js} +1 -1
  99. package/dist/Stepper/index.d.ts +1 -1
  100. package/dist/Switch/index.d.ts +1 -1
  101. package/dist/TabList/index.d.ts +1 -1
  102. package/dist/Table/index.d.ts +1 -1
  103. package/dist/Table/index.js +1 -1
  104. package/dist/{Table-ChVsEuB0.js → Table-B9F3DkX-.js} +7 -7
  105. package/dist/Text/index.js +1 -1
  106. package/dist/{Text-BA_BxREl.js → Text-D8ZIQxgB.js} +2 -2
  107. package/dist/TextArea/index.d.ts +1 -1
  108. package/dist/TextArea/index.js +1 -1
  109. package/dist/{TextArea-jled6DMh.js → TextArea-zVh5qj-c.js} +1 -1
  110. package/dist/TextInput/index.d.ts +1 -1
  111. package/dist/TextInput/index.js +1 -1
  112. package/dist/{TextInput-rdwpMErv.js → TextInput-Bfr1Igjs.js} +1 -1
  113. package/dist/Thumbnail/index.js +1 -1
  114. package/dist/{Thumbnail-BC4-JVWr.js → Thumbnail-BvXGkihb.js} +1 -1
  115. package/dist/TimeInput/index.d.ts +1 -1
  116. package/dist/TimeInput/index.js +1 -1
  117. package/dist/{TimeInput-DKY6qhOK.js → TimeInput-CwCYQa51.js} +1 -1
  118. package/dist/Timer/index.js +1 -1
  119. package/dist/{Timer-DnzK3Ba0.js → Timer-cp10vcti.js} +1 -1
  120. package/dist/Timestamp/index.d.ts +1 -1
  121. package/dist/Timestamp/index.js +1 -1
  122. package/dist/{Timestamp-BPFUaR4k.js → Timestamp-DAfry9GA.js} +1 -1
  123. package/dist/ToggleButton/index.d.ts +1 -1
  124. package/dist/Token/index.d.ts +1 -1
  125. package/dist/Tokenizer/index.d.ts +1 -1
  126. package/dist/Tokenizer/index.js +1 -1
  127. package/dist/{Tokenizer-QsHKjPcl.js → Tokenizer-CIviljVO.js} +1 -1
  128. package/dist/Toolbar/index.d.ts +1 -1
  129. package/dist/Tooltip/index.js +1 -1
  130. package/dist/{Tooltip-mehHUt_U.js → Tooltip-sESBLZwR.js} +12 -4
  131. package/dist/TopNav/index.d.ts +1 -1
  132. package/dist/Typeahead/index.d.ts +1 -1
  133. package/dist/Typeahead/index.js +1 -1
  134. package/dist/{Typeahead-B215VyXn.js → Typeahead-DrziC_-X.js} +1 -1
  135. package/dist/{index-Dacg7XTH.d.ts → index-8px-LKw_.d.ts} +2 -2
  136. package/dist/{index-s1EuWAst.d.ts → index-BKtv1cQj.d.ts} +6 -6
  137. package/dist/{index-D_K1wfRa.d.ts → index-BhLLG-Gi.d.ts} +2 -2
  138. package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
  139. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  140. package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
  141. package/dist/{index-CBHiVJm8.d.ts → index-CKP1AkZu.d.ts} +59 -59
  142. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  143. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  144. package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
  145. package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
  146. package/dist/{index-BMBpr9xB.d.ts → index-DQGjIpoD.d.ts} +7 -7
  147. package/dist/{index-oYGkhGRq.d.ts → index-DXJ3U3ve.d.ts} +3 -3
  148. package/dist/{index-Do0iakTm.d.ts → index-EvhMa33P.d.ts} +7 -7
  149. package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
  150. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  151. package/dist/{index-Cp2OoE3-.d.ts → index-UFlyBbRd.d.ts} +1 -1
  152. package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
  153. package/dist/{index-IfsSCj8J.d.ts → index-fHZNanjH.d.ts} +3 -3
  154. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  155. package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
  156. package/dist/{index-IfiA8CSr.d.ts → index-qayqGnJT.d.ts} +2 -2
  157. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  158. package/dist/index.d.ts +24 -24
  159. package/dist/index.js +42 -42
  160. package/dist/{useMenuDrillIn-CjU_ZMhh.js → useMenuDrillIn-B6jh8tv8.js} +4 -3
  161. package/dist/useTruncation-C02rA1-c.js +102 -0
  162. package/package.json +1 -1
  163. package/dist/useTruncation-B5qXQzAP.js +0 -53
  164. package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/dist/index.js CHANGED
@@ -51,18 +51,18 @@ import { t as useScrollOverflow } from "./useScrollOverflow-DuMoGXmm.js";
51
51
  import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
52
52
  import { t as useTypeahead } from "./useTypeahead-BvtflkRk.js";
53
53
  import { t as _sfc_main$69 } from "./Dialog-D4V2ZnuS.js";
54
- import { n as useTooltip, t as _sfc_main$187 } from "./Tooltip-mehHUt_U.js";
55
- import { t as _sfc_main$88 } from "./Heading-CMNl-rie.js";
54
+ import { n as useTooltip, t as _sfc_main$187 } from "./Tooltip-sESBLZwR.js";
55
+ import { t as _sfc_main$88 } from "./Heading-CwMG-5tj.js";
56
56
  import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
57
57
  import { t as _sfc_main$154 } from "./Stack-Bp-XN9J4.js";
58
- import { t as _sfc_main$172 } from "./Text-BA_BxREl.js";
59
- import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-h8ea5bGW.js";
58
+ import { t as _sfc_main$172 } from "./Text-D8ZIQxgB.js";
59
+ import { n as _sfc_main, t as useImperativeAlertDialog } from "./AlertDialog-pPXTwJ2L.js";
60
60
  import { a as _sfc_main$99, n as _sfc_main$102, r as _sfc_main$100, t as _sfc_main$103 } from "./LayoutPanel-zM5vjrKS.js";
61
61
  import { n as _sfc_main$113, t as _sfc_main$114 } from "./MobileNavToggle-DgEwchpj.js";
62
62
  import { r as useSideNavCollapse } from "./context-BjNya0v8.js";
63
63
  import { t as _sfc_main$1 } from "./AppShell-Cb-d6N6G.js";
64
64
  import { t as _sfc_main$2 } from "./AspectRatio-Bij7e-tq.js";
65
- import { n as _sfc_main$3, t as _sfc_main$6 } from "./Avatar-BLPUC07s.js";
65
+ import { n as _sfc_main$3, t as _sfc_main$6 } from "./Avatar-CP5bJN1n.js";
66
66
  import { n as _sfc_main$4, t as _sfc_main$5 } from "./AvatarGroup-DkdSw1yf.js";
67
67
  import { t as _sfc_main$7 } from "./Badge-CjDQPF5g.js";
68
68
  import "./Badge/index.js";
@@ -73,11 +73,11 @@ import "./Blockquote/index.js";
73
73
  import { t as _sfc_main$12 } from "./BottomSheet-ChaxnQlr.js";
74
74
  import { i as useListContext, r as useItemDescriptionId, t as _sfc_main$96 } from "./Item-DWMIjN8n.js";
75
75
  import { t as _sfc_main$43 } from "./CheckboxIndicator-fH4d-JE1.js";
76
- import { d as useContextMenuSize, i as _sfc_main$14, n as _sfc_main$16, o as useDropdownMenuContext, r as _sfc_main$15, s as useDropdownMenuRadioGroup, u as useContextMenu } from "./useMenuDrillIn-CjU_ZMhh.js";
77
- import { c as _sfc_main$75, i as _sfc_main$77, s as _sfc_main$76, t as _sfc_main$74 } from "./DropdownMenu-JqLXEqmI.js";
76
+ import { d as useContextMenuSize, i as _sfc_main$14, n as _sfc_main$16, o as useDropdownMenuContext, r as _sfc_main$15, s as useDropdownMenuRadioGroup, u as useContextMenu } from "./useMenuDrillIn-B6jh8tv8.js";
77
+ import { c as _sfc_main$75, i as _sfc_main$77, s as _sfc_main$76, t as _sfc_main$74 } from "./DropdownMenu-CjM_IQIU.js";
78
78
  import { t as _sfc_main$71 } from "./Divider-mOZ6vIQw.js";
79
79
  import { r as resolveNavRoot } from "./link-DuuA2eCL.js";
80
- import { n as _sfc_main$13, t as _sfc_main$17 } from "./Breadcrumbs-CbHpqPFH.js";
80
+ import { n as _sfc_main$13, t as _sfc_main$17 } from "./Breadcrumbs-CXRXlVmX.js";
81
81
  import { n as _sfc_main$19 } from "./ButtonGroup-DnkSZ9a5.js";
82
82
  import { t as _sfc_main$20 } from "./Calendar-CJQCND7M.js";
83
83
  import "./Calendar/index.js";
@@ -94,9 +94,9 @@ import { t as _sfc_main$82 } from "./FieldStatus-BGM4IlHy.js";
94
94
  import { a as _sfc_main$135, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main$42, r as getIndicator, t as useIndicator } from "./useIndicator-fTOZfYVI.js";
95
95
  import { t as _sfc_main$44 } from "./CheckboxInput-D0SSjziv.js";
96
96
  import "./CheckboxInput/index.js";
97
- import { t as _sfc_main$80 } from "./Field-DRQuVVlH.js";
97
+ import { t as _sfc_main$80 } from "./Field-Dw53vhfK.js";
98
98
  import { n as _sfc_main$107, t as _sfc_main$108 } from "./ListItem-Cq_nU1YV.js";
99
- import { n as _sfc_main$45, t as _sfc_main$46 } from "./CheckboxList-CIbjO5sX.js";
99
+ import { n as _sfc_main$45, t as _sfc_main$46 } from "./CheckboxList-Dd6Vn_0N.js";
100
100
  import { t as _sfc_main$47 } from "./Citation-BDHIuvX3.js";
101
101
  import { n as _sfc_main$48 } from "./ClickableCard-CGjr4c7g.js";
102
102
  import { a as tokenizeAsync, c as splitDiffLines, d as applyHighlightRangesFlat, f as _sfc_main$49, i as tokenize, l as HIGHLIGHTED_TOKEN_TYPES, n as SYNC_TOKENIZE_THRESHOLD, o as diffLineKind, r as flatTokensToLines, s as parseFenceLanguage, t as _sfc_main$50, u as applyHighlightRanges } from "./CodeBlock-Dnv5SexJ.js";
@@ -105,26 +105,26 @@ import { a as catppuccinMocha, c as githubLight, d as nord, f as oneDarkPro, g a
105
105
  import { n as _sfc_main$51, r as useCollapsible, t as _sfc_main$52 } from "./Collapsible-DPC_G0Me.js";
106
106
  import { a as _sfc_main$56, i as _sfc_main$57, n as _sfc_main$59, o as _sfc_main$55, r as _sfc_main$58, s as _sfc_main$54, t as _sfc_main$53 } from "./CommandPalette-CM5VyZTp.js";
107
107
  import { n as usePopover, t as _sfc_main$130 } from "./Popover-DOqAuY-b.js";
108
- import { n as _sfc_main$60 } from "./ComplexSelector-ClPFa7tt.js";
109
- import { a as _sfc_main$62, i as _sfc_main$63, n as _sfc_main$65, r as _sfc_main$64, t as _sfc_main$61 } from "./ContextMenu-C1dNw-kL.js";
108
+ import { n as _sfc_main$60 } from "./ComplexSelector-BiKaDteS.js";
109
+ import { a as _sfc_main$62, i as _sfc_main$63, n as _sfc_main$65, r as _sfc_main$64, t as _sfc_main$61 } from "./ContextMenu-DPY3WDdI.js";
110
110
  import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
111
- import { t as _sfc_main$66 } from "./DateInput-CJ5LZkb3.js";
111
+ import { t as _sfc_main$66 } from "./DateInput-CDesWR4P.js";
112
112
  import "./DateInput/index.js";
113
- import { t as _sfc_main$67 } from "./DateRangeInput-CODHgf6A.js";
113
+ import { t as _sfc_main$67 } from "./DateRangeInput-xT3wXhbh.js";
114
114
  import "./DateRangeInput/index.js";
115
115
  import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "./inputPresentation-BOyHkCDr.js";
116
- import { t as _sfc_main$68 } from "./DateTimeInput-BNqYdBps.js";
116
+ import { t as _sfc_main$68 } from "./DateTimeInput-oZKJG12g.js";
117
117
  import "./DateTimeInput/index.js";
118
118
  import { t as _sfc_main$70 } from "./DialogHeader-CAvunUP_.js";
119
119
  import { t as useImperativeDialog } from "./Dialog-vPGLWE3o.js";
120
120
  import "./Divider/index.js";
121
121
  import { n as _sfc_main$72, t as _sfc_main$73 } from "./Drawer-AYHh8GOH.js";
122
- import { t as _sfc_main$78 } from "./DropdownMenu-CisXQME2.js";
123
- import { t as _sfc_main$79 } from "./EmptyState-CiX7Vuv7.js";
122
+ import { t as _sfc_main$78 } from "./DropdownMenu-C1-Fx_uu.js";
123
+ import { t as _sfc_main$79 } from "./EmptyState-CVbtVcRb.js";
124
124
  import { t as _sfc_main$92 } from "./InputClearButton-Dd1GgItq.js";
125
125
  import "./Field/index.js";
126
126
  import "./FieldStatus/index.js";
127
- import { t as _sfc_main$83 } from "./FileInput-D5aCk6kL.js";
127
+ import { t as _sfc_main$83 } from "./FileInput-jPcAv4-1.js";
128
128
  import { t as _sfc_main$84 } from "./FormLayout-B9dUB6Ps.js";
129
129
  import { n as _sfc_main$85, t as _sfc_main$86 } from "./Grid-D1onTzyC.js";
130
130
  import "./Heading/index.js";
@@ -132,49 +132,49 @@ import "./HoverCard/index.js";
132
132
  import "./Icon/index.js";
133
133
  import "./IconButton/index.js";
134
134
  import "./Indicator/index.js";
135
- import { n as _sfc_main$93, t as _sfc_main$94 } from "./InputGroup-DN69Nt4T.js";
135
+ import { n as _sfc_main$93, t as _sfc_main$94 } from "./InputGroup-C1z9qkGA.js";
136
136
  import { a as resolveProviderMessages, i as getLocaleDirection, r as useLocaleDirection, t as _sfc_main$95 } from "./InternationalizationProvider-DKNYYBp5.js";
137
137
  import "./Kbd/index.js";
138
138
  import { n as mergeInset, r as resolveInset, t as _sfc_main$98 } from "./LayerProvider-B6zpMBWC.js";
139
139
  import { t as _sfc_main$101 } from "./Layout-JJRCG7Mf.js";
140
140
  import { n as _sfc_main$104, t as useLightbox } from "./Lightbox-Bx1uvH61.js";
141
- import { t as _sfc_main$105 } from "./Link-M-Slj9ez.js";
141
+ import { t as _sfc_main$105 } from "./Link-DdLdry4N.js";
142
142
  import "./Link/index.js";
143
143
  import { t as _sfc_main$106 } from "./LinkProvider-Qsps9_mL.js";
144
144
  import "./List/index.js";
145
145
  import { a as parseMarkdownAst, c as decodeMarkdownCharacterReferences, d as parseMarkdown, g as isMarkdownExtensionNode, n as parseInline, o as parseMarkdownIncremental, r as parseInlineAst, t as createIncrementalState } from "./publicParser-C8RBKNLA.js";
146
- import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main$109 } from "./Markdown-DDpbD0Sq.js";
146
+ import { a as visitMarkdownNodes, i as defineMarkdownPlugin, n as applyInlinePlugins, r as applyMarkdownPlugins, t as _sfc_main$109 } from "./Markdown-u-bXd7Z_.js";
147
147
  import { n as uniqueSlug, t as slugify } from "./slug-DAK6hdbr.js";
148
148
  import { n as _sfc_main$111, t as _sfc_main$112 } from "./MetadataList-sNNwmmXa.js";
149
149
  import "./MobileNav/index.js";
150
- import { t as _sfc_main$115 } from "./MoreMenu-QWReDavJ.js";
150
+ import { t as _sfc_main$115 } from "./MoreMenu-CUWP3WTs.js";
151
151
  import { t as _sfc_main$184 } from "./Token-rBcE4hYh.js";
152
- import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$116 } from "./MultiSelector-CFzCvmwp.js";
152
+ import { n as SELECT_ALL_VALUE, r as flattenOptions, t as _sfc_main$116 } from "./MultiSelector-DXFen6nf.js";
153
153
  import "./MultiSelector/index.js";
154
154
  import { t as _sfc_main$120 } from "./NavItem-thEKXyJA.js";
155
155
  import { t as _sfc_main$121 } from "./NavItem-BPb3yfgz.js";
156
156
  import { t as _sfc_main$117 } from "./NavDisclosure-snipr7Cd.js";
157
157
  import { n as _sfc_main$118, t as _sfc_main$119 } from "./NavMenu-BA5lW02j.js";
158
158
  import { n as _sfc_main$122, t as _sfc_main$123 } from "./NavMenuItem-BuIgWJq8.js";
159
- import { t as _sfc_main$124 } from "./NumberInput-D3GJDfEd.js";
159
+ import { t as _sfc_main$124 } from "./NumberInput-47pYh8M8.js";
160
160
  import "./NumberInput/index.js";
161
161
  import { i as _sfc_main$125, n as useOutlineFromDOM, r as parseOutlineFromMarkdown, t as useOutlineFromMarkdown } from "./Outline-C6xBCP2y.js";
162
162
  import { t as _sfc_main$126 } from "./OverflowList-BHnarnHA.js";
163
163
  import { n as useOverlay, r as _sfc_main$128, t as _sfc_main$127 } from "./Overlay-DKILTHxI.js";
164
- import { t as _sfc_main$129 } from "./Pagination-CQj_wYfI.js";
165
- import { t as _sfc_main$145 } from "./Selector-B6BEBXzZ.js";
164
+ import { t as _sfc_main$129 } from "./Pagination-CBjcLsLG.js";
165
+ import { t as _sfc_main$145 } from "./Selector-DJqfjwFd.js";
166
166
  import "./Pagination/index.js";
167
167
  import "./Popover/index.js";
168
- import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main$131, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "./PowerSearch-CtS6Lb32.js";
168
+ import { a as searchPowerSearchFields, c as formatDateAbsolute, d as createPowerSearchLookup, f as completePowerSearchFilter, i as _sfc_main$131, l as formatDateAbsoluteCompact, n as createPowerSearchConfig, o as resolveEditorPlacement, r as usePowerSearchConfig, s as resolveOperatorLabel, t as applyPowerSearchFilters, u as formatFilterValue } from "./PowerSearch-BnsPW_Xe.js";
169
169
  import { n as _sfc_main$197 } from "./TypeaheadMenu-CafYGgVa.js";
170
- import { t as _sfc_main$174 } from "./TextInput-rdwpMErv.js";
171
- import { t as _sfc_main$177 } from "./TimeInput-DKY6qhOK.js";
172
- import { t as _sfc_main$185 } from "./Tokenizer-QsHKjPcl.js";
173
- import { n as _sfc_main$9, t as _sfc_main$196 } from "./Typeahead-B215VyXn.js";
174
- import { t as _sfc_main$132 } from "./ProgressBar-Bfzg2V4l.js";
175
- import { n as _sfc_main$133, t as _sfc_main$134 } from "./RadioGroup-CQ_0E3EQ.js";
170
+ import { t as _sfc_main$174 } from "./TextInput-Bfr1Igjs.js";
171
+ import { t as _sfc_main$177 } from "./TimeInput-CwCYQa51.js";
172
+ import { t as _sfc_main$185 } from "./Tokenizer-CIviljVO.js";
173
+ import { n as _sfc_main$9, t as _sfc_main$196 } from "./Typeahead-DrziC_-X.js";
174
+ import { t as _sfc_main$132 } from "./ProgressBar-Cmbhdfla.js";
175
+ import { n as _sfc_main$133, t as _sfc_main$134 } from "./RadioGroup-Dcmqx9p_.js";
176
176
  import "./Radio/index.js";
177
- import { n as _sfc_main$136, t as _sfc_main$137 } from "./RadioList-BngWBEJ9.js";
177
+ import { n as _sfc_main$136, t as _sfc_main$137 } from "./RadioList-BnM8hmMZ.js";
178
178
  import { t as _sfc_main$138 } from "./ResizeHandle-Bxt3HOsd.js";
179
179
  import "./Resizable/index.js";
180
180
  import { t as _sfc_main$139 } from "./ScrollableArea-0u6RWtGG.js";
@@ -184,27 +184,27 @@ import "./Section/index.js";
184
184
  import { n as _sfc_main$142, t as _sfc_main$143 } from "./SegmentedControl-D1wWGBZo.js";
185
185
  import { n as _sfc_main$144 } from "./SelectableCard-BEqnhPaX.js";
186
186
  import "./Selector/index.js";
187
- import { a as _sfc_main$147, i as _sfc_main$146, n as _sfc_main$149, r as _sfc_main$148, t as _sfc_main$150 } from "./SideNav-51VcU4uB.js";
187
+ import { a as _sfc_main$147, i as _sfc_main$146, n as _sfc_main$149, r as _sfc_main$148, t as _sfc_main$150 } from "./SideNav-XSwiuJVo.js";
188
188
  import { t as _sfc_main$151 } from "./Skeleton-CrgWxJgr.js";
189
189
  import "./Skeleton/index.js";
190
- import { t as _sfc_main$152 } from "./Slider-gMrMfGWl.js";
190
+ import { t as _sfc_main$152 } from "./Slider-CDssBPWC.js";
191
191
  import "./Spinner/index.js";
192
192
  import { n as _sfc_main$155, r as _sfc_main$87, t as _sfc_main$198 } from "./Stack-Bb_h60t3.js";
193
- import { t as _sfc_main$156 } from "./StatusDot-BydlQrpY.js";
193
+ import { t as _sfc_main$156 } from "./StatusDot-DhNtAVEN.js";
194
194
  import { n as _sfc_main$157, t as _sfc_main$158 } from "./Stepper-D_tzl2pr.js";
195
195
  import { t as _sfc_main$159 } from "./Switch-GIld457S.js";
196
- import { A as useTableColumnSettings, B as generateColumns, C as isInteractiveRowClick, D as applyTableFilters, E as useTableGroupedRows, F as isProportionalColumnWidth, G as resolveColumnWidths, H as pixel, I as resizeColumnWidths, K as sortRows, L as useTableColumnResize, M as columnResizeDirectionSign, N as columnResizeMinWidth, O as useTableFilterState, P as columnResizeStep, R as capitalize, S as useTablePagination, T as isTableGroupHeader, U as proportional, V as paginateData, W as resolveColumnFloorWidths, _ as useTableSelection, a as _sfc_main$167, b as useTableRowIndex, c as _sfc_main$164, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$168, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$170, o as _sfc_main$166, p as stickyOffsets, r as _sfc_main$169, s as _sfc_main$165, t as _sfc_main$171, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as cellText } from "./Table-ChVsEuB0.js";
196
+ import { A as useTableColumnSettings, B as generateColumns, C as isInteractiveRowClick, D as applyTableFilters, E as useTableGroupedRows, F as isProportionalColumnWidth, G as resolveColumnWidths, H as pixel, I as resizeColumnWidths, K as sortRows, L as useTableColumnResize, M as columnResizeDirectionSign, N as columnResizeMinWidth, O as useTableFilterState, P as columnResizeStep, R as capitalize, S as useTablePagination, T as isTableGroupHeader, U as proportional, V as paginateData, W as resolveColumnFloorWidths, _ as useTableSelection, a as _sfc_main$167, b as useTableRowIndex, c as _sfc_main$164, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$168, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$170, o as _sfc_main$166, p as stickyOffsets, r as _sfc_main$169, s as _sfc_main$165, t as _sfc_main$171, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as cellText } from "./Table-B9F3DkX-.js";
197
197
  import { t as _sfc_main$186 } from "./Toolbar-DKld_COt.js";
198
198
  import { n as _sfc_main$162, r as _sfc_main$161, t as _sfc_main$163 } from "./TabList-B9RRmiqV.js";
199
199
  import "./Text/index.js";
200
- import { t as _sfc_main$173 } from "./TextArea-jled6DMh.js";
200
+ import { t as _sfc_main$173 } from "./TextArea-zVh5qj-c.js";
201
201
  import "./TextInput/index.js";
202
202
  import { a as neutralTheme, c as expandMotionScale, d as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandColorScale, n as _sfc_main$175, o as expandTypeScale, r as defineTheme, s as expandRadiusScale, t as useMediaTheme, u as DEFAULT_WIDTH_BREAKPOINTS } from "./Theme-BpgmIGCo.js";
203
203
  import { a as normalizeTokenName, l as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main$110 } from "./MediaTheme-p2hOnZaR.js";
204
- import { t as _sfc_main$176 } from "./Thumbnail-BC4-JVWr.js";
204
+ import { t as _sfc_main$176 } from "./Thumbnail-BvXGkihb.js";
205
205
  import "./TimeInput/index.js";
206
- import { n as getPresentation, t as _sfc_main$178 } from "./Timer-DnzK3Ba0.js";
207
- import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$179 } from "./Timestamp-BPFUaR4k.js";
206
+ import { n as getPresentation, t as _sfc_main$178 } from "./Timer-cp10vcti.js";
207
+ import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main$179 } from "./Timestamp-DAfry9GA.js";
208
208
  import { n as _sfc_main$181, r as _sfc_main$180, t as useToast } from "./Toast-CN6C5mZ4.js";
209
209
  import { n as _sfc_main$183, r as _sfc_main$182 } from "./ToggleButton-Cq82SwPx.js";
210
210
  import { t as TOKEN_COLORS } from "./Token-BdRzlXzm.js";
@@ -2,7 +2,7 @@ import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide
2
2
  import { t as _sfc_main$4 } from "./Icon-Dosui-zD.js";
3
3
  import { t as _sfc_main$5 } from "./Item-DWMIjN8n.js";
4
4
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
5
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, openBlock, provide, ref, renderSlot, toDisplayString, unref, useModel, useSlots, watch, withCtx } from "vue";
5
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
6
6
  import "../styles/dropdown-menu.css";
7
7
  //#region src/DropdownMenu/MenuSelectionMark.vue
8
8
  const _hoisted_1$3 = { class: "astryx-dropdown-menu-mark" };
@@ -305,6 +305,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
305
305
  setup(__props, { emit: __emit }) {
306
306
  const props = __props;
307
307
  const emit = __emit;
308
+ const attrs = useAttrs();
308
309
  const selected = useModel(__props, "modelValue");
309
310
  provide(dropdownMenuRadioGroupKey, {
310
311
  hasCloseOnSelect: computed(() => props.hasCloseOnSelect),
@@ -315,11 +316,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
315
316
  value: computed(() => selected.value)
316
317
  });
317
318
  return (_ctx, _cache) => {
318
- return openBlock(), createElementBlock("div", {
319
+ return openBlock(), createElementBlock("div", mergeProps(unref(attrs), {
319
320
  class: "astryx-dropdown-menu-radio-group",
320
321
  role: "group",
321
322
  "aria-label": __props.label
322
- }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$1);
323
+ }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1);
323
324
  };
324
325
  }
325
326
  });
@@ -0,0 +1,102 @@
1
+ import { onBeforeUnmount, ref, watch } from "vue";
2
+ //#region src/utils/sharedMutationObserver.ts
3
+ const OPTIONS = {
4
+ characterData: true,
5
+ childList: true,
6
+ subtree: true
7
+ };
8
+ let observer = null;
9
+ const callbacks = /* @__PURE__ */ new Map();
10
+ function dispatch(records) {
11
+ const pending = /* @__PURE__ */ new Set();
12
+ for (const record of records) for (let node = record.target; node; node = node.parentNode) callbacks.get(node)?.forEach((callback) => pending.add(callback));
13
+ pending.forEach((callback) => callback());
14
+ }
15
+ /**
16
+ * Observe text and child changes anywhere inside an element. All registrations
17
+ * share one MutationObserver; the returned function removes only its own callback.
18
+ */
19
+ function observeContent(element, callback) {
20
+ if (typeof MutationObserver === "undefined") return () => {};
21
+ observer ??= new MutationObserver(dispatch);
22
+ const existing = callbacks.get(element);
23
+ if (existing) existing.add(callback);
24
+ else {
25
+ callbacks.set(element, /* @__PURE__ */ new Set([callback]));
26
+ observer.observe(element, OPTIONS);
27
+ }
28
+ let subscribed = true;
29
+ return () => {
30
+ if (!subscribed) return;
31
+ subscribed = false;
32
+ const registered = callbacks.get(element);
33
+ registered?.delete(callback);
34
+ if (registered?.size === 0) callbacks.delete(element);
35
+ if (callbacks.size === 0 && observer) {
36
+ observer.disconnect();
37
+ observer = null;
38
+ }
39
+ };
40
+ }
41
+ //#endregion
42
+ //#region src/Text/useTruncation.ts
43
+ /** `false` 关掉提示。`true` 和缺省都出现在上方。 */
44
+ function truncatePlacement(value) {
45
+ if (value === false) return null;
46
+ if (value == null || value === true) return "above";
47
+ return value;
48
+ }
49
+ function useTruncation(maxLines) {
50
+ const isTruncated = ref(false);
51
+ const fullText = ref("");
52
+ let observer;
53
+ let unobserveContent;
54
+ let node = null;
55
+ function measure() {
56
+ if (!node || maxLines.value <= 0) {
57
+ isTruncated.value = false;
58
+ fullText.value = "";
59
+ return;
60
+ }
61
+ fullText.value = node.textContent ?? "";
62
+ if (maxLines.value === 1) {
63
+ isTruncated.value = node.scrollWidth > node.clientWidth + 1;
64
+ return;
65
+ }
66
+ let contentHeight = node.scrollHeight;
67
+ try {
68
+ const range = node.ownerDocument.createRange();
69
+ range.selectNodeContents(node);
70
+ contentHeight = range.getBoundingClientRect().height;
71
+ range.detach();
72
+ } catch {}
73
+ isTruncated.value = contentHeight > node.clientHeight + 1;
74
+ }
75
+ function bind(value) {
76
+ observer?.disconnect();
77
+ observer = void 0;
78
+ unobserveContent?.();
79
+ unobserveContent = void 0;
80
+ node = value instanceof HTMLElement ? value : null;
81
+ if (node && maxLines.value > 0) {
82
+ if (typeof ResizeObserver !== "undefined") {
83
+ observer = new ResizeObserver(() => measure());
84
+ observer.observe(node);
85
+ }
86
+ unobserveContent = observeContent(node, measure);
87
+ }
88
+ measure();
89
+ }
90
+ watch(maxLines, () => bind(node));
91
+ onBeforeUnmount(() => {
92
+ observer?.disconnect();
93
+ unobserveContent?.();
94
+ });
95
+ return {
96
+ bind,
97
+ isTruncated,
98
+ fullText
99
+ };
100
+ }
101
+ //#endregion
102
+ export { useTruncation as n, truncatePlacement as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.7.16",
4
+ "version": "0.7.18",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
@@ -1,53 +0,0 @@
1
- import { onBeforeUnmount, ref, watch } from "vue";
2
- //#region src/Text/useTruncation.ts
3
- /** `false` 关掉提示。`true` 和缺省都出现在上方。 */
4
- function truncatePlacement(value) {
5
- if (value === false) return null;
6
- if (value == null || value === true) return "above";
7
- return value;
8
- }
9
- function useTruncation(maxLines) {
10
- const isTruncated = ref(false);
11
- const fullText = ref("");
12
- let observer;
13
- let node = null;
14
- function measure() {
15
- if (!node || maxLines.value <= 0) {
16
- isTruncated.value = false;
17
- fullText.value = "";
18
- return;
19
- }
20
- fullText.value = node.textContent ?? "";
21
- if (maxLines.value === 1) {
22
- isTruncated.value = node.scrollWidth > node.clientWidth + 1;
23
- return;
24
- }
25
- let contentHeight = node.scrollHeight;
26
- try {
27
- const range = node.ownerDocument.createRange();
28
- range.selectNodeContents(node);
29
- contentHeight = range.getBoundingClientRect().height;
30
- range.detach();
31
- } catch {}
32
- isTruncated.value = contentHeight > node.clientHeight + 1;
33
- }
34
- function bind(value) {
35
- observer?.disconnect();
36
- observer = void 0;
37
- node = value instanceof HTMLElement ? value : null;
38
- if (node && typeof ResizeObserver !== "undefined") {
39
- observer = new ResizeObserver(() => measure());
40
- observer.observe(node);
41
- }
42
- measure();
43
- }
44
- watch(maxLines, () => measure());
45
- onBeforeUnmount(() => observer?.disconnect());
46
- return {
47
- bind,
48
- isTruncated,
49
- fullText
50
- };
51
- }
52
- //#endregion
53
- export { useTruncation as n, truncatePlacement as t };
@@ -44,8 +44,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
44
44
  }>, {
45
45
  size: TokenSize;
46
46
  labelHidden: boolean;
47
- color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
48
47
  disabled: boolean;
48
+ color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
49
49
  removable: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;