@astryx-vue/core 0.33.3 → 0.34.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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BwH9WU-t.js → AlertDialog-CdrF01J0.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BwzRYOky.js → AppShell-4hWTPKSD.js} +5 -5
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-C0V--ipx.js → AvatarGroup-CACtdvXz.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Ds5KIeES.js → Banner-CAyN5-NO.js} +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DWAYp-JJ.js → Breadcrumbs-BQnrbWXt.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-X-Q_ghg8.js → Button-CrZtv_4j.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-DsYdUmF1.js → ButtonGroup-Jgx-IWPz.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-D8uVV1J_.js → Carousel-BdhtUtf-.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Dy-icS2C.js → Chat-DT712Yft.js} +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CiUtutIS.js → CheckboxInput-D8N6yvK5.js} +79 -74
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-B6sV7-Og.js → CheckboxListItem--iUp9-KO.js} +4 -4
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DDk_RtHd.js → ClickableCard-B_upAn7L.js} +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +3 -2
- package/dist/Code/languages/dockerfile/index.d.ts +5 -0
- package/dist/Code/languages/dockerfile/index.js +47 -0
- package/dist/Code/languages/graphql/index.d.ts +5 -0
- package/dist/Code/languages/graphql/index.js +24 -0
- package/dist/Code/languages/java/index.d.ts +5 -0
- package/dist/Code/languages/java/index.js +17 -0
- package/dist/Code/languages/lua/index.d.ts +5 -0
- package/dist/Code/languages/lua/index.js +14 -0
- package/dist/Code/languages/objective-c/index.d.ts +5 -0
- package/dist/Code/languages/objective-c/index.js +29 -0
- package/dist/Code/languages/powershell/index.d.ts +5 -0
- package/dist/Code/languages/powershell/index.js +36 -0
- package/dist/Code/languages/ruby/index.d.ts +5 -0
- package/dist/Code/languages/ruby/index.js +21 -0
- package/dist/Code/languages/thrift/index.d.ts +5 -0
- package/dist/Code/languages/thrift/index.js +15 -0
- package/dist/Code/languages/toml/index.d.ts +5 -0
- package/dist/Code/languages/toml/index.js +55 -0
- package/dist/{CodeBlock-r2-MlpBB.js → CodeBlock-BkqcfoZ1.js} +309 -96
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-0XI3tKgj.js → Collapsible-BKt7UCeF.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BYR0Lxxd.js → CommandPalette-CvOeE6i-.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CIXrqCoX.js → ComplexSelector-CVEfoN0k.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CfVyaP5v.js → ContextMenu-ZqWtb5Si.js} +3 -3
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DRzZ8dY7.js → DateInput-7FFzOvcu.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DL2aOQXJ.js → DateRangeInput-C0ICAvm7.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-KWkpamG4.js → DateTimeInput-CaX09wfm.js} +4 -4
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BM5VEE8z.js → Dialog-B1xC9xMC.js} +1 -1
- package/dist/{Dialog-CJzq1gms.js → Dialog-BmdNX3NC.js} +1 -1
- package/dist/{DialogHeader-Do4EOX2f.js → DialogHeader-DLaiYrvF.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DuQ620WO.js → Drawer-BpuER-VT.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CbENfJOq.js → DropdownMenu-K8JPIcSk.js} +6 -6
- package/dist/Field/index.js +3 -3
- package/dist/{Field-B1fsgAqp.js → Field-CjC4qc2q.js} +1 -1
- package/dist/{FieldInfoTip-CntJCcnM.js → FieldInfoTip-Cu4LNidQ.js} +1 -1
- package/dist/{FieldLabel-D56uJrRE.js → FieldLabel-BFBAGrFY.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-EjlruVVX.js → FileInput-DFsbOoe-.js} +3 -3
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CXg9qTRM.js → IconButton-BPjZPGRy.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-jFet-iAx.js → InfoTip-DqDgJRtp.js} +1 -1
- package/dist/{InputClearButton-DBTrsrSH.js → InputClearButton-BZzOtoH7.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-D7UBxktR.js → InputGroup-BN6v-b9L.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
- package/dist/{Item-DbalBZXc.js → Item-BzjepDWA.js} +2 -2
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-BEJwZon4.js → Layout-SJoCw8NC.js} +1 -1
- package/dist/{LayoutPanel-BgJdL0KV.js → LayoutPanel-DZN4RxX6.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DJXB22k0.js → Lightbox-K2cAUZRG.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-eXwB0Hjg.js → Link-v-K2lhCh.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-C5B8uYyn.js → ListItem-BTcwwpFb.js} +3 -3
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/Markdown/parser/index.js +1 -1
- package/dist/{Markdown-COub2yng.js → Markdown-B4WsMYzN.js} +80 -5
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DI5yDKfp.js → MobileNavToggle-AgT6hzTg.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-C7gie2PE.js → MoreMenu-BF9qhsxq.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CnGUU8P3.js → MultiSelector-CDMoxGKV.js} +4 -4
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-Cciu9aok.js → NavItem-DUnSwKRl.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu--iyy_m84.js → NavMenu-DAnQr1S5.js} +1 -1
- package/dist/{NavMenuItem-BmAm-Cv8.js → NavMenuItem-CrTUxgBP.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CD9sHbON.js → NumberInput-DQ7FMUTd.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-vieAJS2J.js → Outline-CSHJqtg4.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-YLVHypB3.js → OverflowList-CK6sgmY3.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bnkp4oAA.js → Pagination-B-337WLy.js} +2 -2
- package/dist/{PanGestureRecognizer-CzIWpazn.js → PanGestureRecognizer-yYMpXB93.js} +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CYJ1z_7L.js → Popover-DVrWAYg2.js} +4 -4
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DEpXEmgs.js → PowerSearch-sWyeh9Az.js} +19 -19
- package/dist/{PressTracker-L5-Ark_9.js → PressTracker-CjfG1d8n.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BdO-xZv0.js → RadioGroup-BloTgj7H.js} +8 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-DzGPuWTt.js → RadioListItem-BERujpW8.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Dcel1HkU.js → ResizeHandle-J9-dAMuo.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/SegmentedControl-BzvLJL8T.js +1465 -0
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BZTF6qw-.js → SelectableCard-IAv2X4dq.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-SkwSbf4j.js → Selector-CsEWOfWV.js} +2 -2
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-BxJfJU95.js → SideNav-CVAi462m.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-ORmi7QJ7.js → Slider-D0omHlRI.js} +6 -5
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C4-wtxn4.js → Stepper-CetoMTog.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-Cw1UKVjQ.js → Switch-DTwurKmh.js} +11 -82
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DNDe2ipJ.js → TabList-BJTT4nm6.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqppyRk8.js → Table-CUqi9BXT.js} +13 -13
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-I3ghDb9r.js → TextArea-BKwmXPGQ.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Xz_ibpOl.js → TextInput-CRXs8cDs.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-bS62Tr_f.js → Thumbnail-GUwgnwZb.js} +2 -2
- package/dist/{TimeField-Bsb8n22d.js → TimeField-Bn_ziTCi.js} +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D40_6GrX.js → TimeInput-BKkwmN1V.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-Bt9ZR975.js → Timestamp-Dlz2SvSe.js} +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BQxfIeVU.js → Toast-BSnsRCyB.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-IFhFMpQh.js → ToggleButton-DE79lIQq.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CpmqfG4i.js → Token-BdClMOG9.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Dvr7ICpS.js → Tokenizer-BitI30VU.js} +7 -7
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Cw_dcKpf.js → TopNav-BUjEldSq.js} +3 -3
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CBfKKbUQ.js → TreeList-BVJ3V-xI.js} +4 -4
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-D9-WjsCU.js → Typeahead-C54ao2ye.js} +3 -3
- package/dist/{accessibleName-Cw9s1690.js → accessibleName-19W3jhkD.js} +2 -2
- package/dist/{assertOptions-V_jJxpn9.js → assertOptions-Byu4Yqfg.js} +1 -1
- package/dist/boxHold-0ChMpiin.js +170 -0
- package/dist/browserClickWait-DIj9tkLa.js +77 -0
- package/dist/{coarsePointer-DGnAPIcU.js → coarsePointer-BWNSUIY8.js} +2 -32
- package/dist/code-block-DCVrTLMZ.js +19 -0
- package/dist/composables/index.js +6 -6
- package/dist/{composables-BJoAw6XA.js → composables-CF2weN-L.js} +3 -2
- package/dist/{context-WDet15_N.js → context-C1MPE6J5.js} +1 -1
- package/dist/{geometry-CoQRz-F1.js → geometry-BnZ6uDX_.js} +6 -131
- package/dist/grammar-4Pn2745Q.d.ts +58 -0
- package/dist/grammar-Dz71GleT.js +144 -0
- package/dist/{holdEntranceInput-BsusS3bM.js → holdEntranceInput-C8B_DYYs.js} +1 -1
- package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
- package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
- package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-CY0KtUSC.d.ts → index-CArlEl1O.d.ts} +515 -119
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-DuxRUPMc.d.ts → index-D1C2Nt3F.d.ts} +3 -3
- package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
- package/dist/{index-D1JOMiI5.d.ts → index-DHsYyqMP.d.ts} +4 -4
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-BqQlY3fL.d.ts → index-QC9FDUDA.d.ts} +2 -2
- package/dist/{index-BI1QLuYB.d.ts → index-ZXrvTM3A.d.ts} +3 -3
- package/dist/{index-Pad9p8CU.d.ts → index-a6o69uPN.d.ts} +1 -1
- package/dist/{index-GyRgg1-v.d.ts → index-uLDBzCDo.d.ts} +5 -5
- package/dist/index.d.ts +19 -19
- package/dist/index.js +90 -88
- package/dist/{landing-Qk_FHR-s.js → landing-BW6qLvC8.js} +1 -1
- package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
- package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -2
- package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
- package/dist/{presentationHold-CZsVmjlY.js → presentationHold-ZKixVLcz.js} +1 -1
- package/dist/pressClaim-DvdlIn4w.js +24 -0
- package/dist/{pressFeedback-9ogipvI4.js → pressFeedback-B3cqaMGl.js} +45 -5
- package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
- package/dist/{reportChange-BUTgduu-.js → reportChange-DwOfucSf.js} +1 -1
- package/dist/{resizableChannel-_j_AW2B6.js → resizableChannel-BnwrR5tr.js} +2 -2
- package/dist/selectionLock-BrUpRS0E.js +130 -0
- package/dist/{themeTiming-ClYaZxGf.js → themeTiming-BJziEh4O.js} +1 -1
- package/dist/touchQueries-xy5IeZfe.js +32 -0
- package/dist/{useActionGroupTracking-ByLJoM-8.js → useActionGroupTracking-D0IwimcQ.js} +2 -2
- package/dist/{useAnimatedLayout-IcX0UfS4.js → useAnimatedLayout-CRAuCwTZ.js} +1 -1
- package/dist/{useHeldPresentation-DJEthuMT.js → useHeldPresentation-CaIKTwUh.js} +1 -1
- package/dist/{useInputStatusIcon-D0q4S1Ye.js → useInputStatusIcon-C2AkJiAT.js} +1 -1
- package/dist/{useMenuEntranceHold-B7f9ShX2.js → useMenuEntranceHold-C-kHicUN.js} +1 -1
- package/dist/{useMenuPress-cBIQyTsN.js → useMenuPress-B5h9PBx_.js} +3 -1
- package/dist/{usePressFeedback-Dx-a3i82.js → usePressFeedback-iyoKakPX.js} +1 -1
- package/dist/{useResizable-JvgYydox.js → useResizable-I0APFcMz.js} +1 -1
- package/dist/{useTouchHitArea-BGkvMAyp.js → useTouchHitArea-MvzPCmJg.js} +1 -1
- package/package.json +37 -1
- package/reset.css +14 -0
- package/styles/code.css +85 -8
- package/styles/markdown.css +6 -5
- package/styles/progress-bar.css +25 -26
- package/styles/segmented-control.css +20 -11
- package/dist/SegmentedControl-BURyE9XU.js +0 -416
- package/dist/index-C9ZssPUV.d.ts +0 -380
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey,
|
|
2
|
-
import { d as
|
|
1
|
+
import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { d as isInsideScrollView, f as parseTouchAction, m as clockOf, p as rootOverflow, u as SCROLLABLE_OVERFLOW } from "./pressFeedback-B3cqaMGl.js";
|
|
3
3
|
import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
|
|
4
4
|
import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
|
|
5
5
|
import { i as UIKIT_LONG_PRESS, o as UIKIT_PRESS, s as UIKIT_TAP } from "./gestures-yKyyMqeQ.js";
|
|
6
6
|
import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-twEOzzJq.js";
|
|
7
7
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
8
|
-
import {
|
|
8
|
+
import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
|
|
9
|
+
import { i as locksSelectionFor, r as lockStyles, t as isTextEntry } from "./selectionLock-BrUpRS0E.js";
|
|
10
|
+
import { r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BWNSUIY8.js";
|
|
9
11
|
import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
|
|
10
12
|
import { t as holdsTouch } from "./touchHold-CjNjGH7O.js";
|
|
11
13
|
//#region src/gestures/arenaTypes.ts
|
|
@@ -949,133 +951,6 @@ function isPrimaryClick(event) {
|
|
|
949
951
|
return event.button === 0 && !(event.ctrlKey && isApplePlatform());
|
|
950
952
|
}
|
|
951
953
|
//#endregion
|
|
952
|
-
//#region src/utils/selectionLock.ts
|
|
953
|
-
/**
|
|
954
|
-
* @file selectionLock.ts
|
|
955
|
-
* @input The elements a held touch contact presses, and the touch's target
|
|
956
|
-
* @output lockSelection and locksSelectionFor give a held finger's lock;
|
|
957
|
-
* lockStyles and isTextEntry are shared with a claimed drag's hold
|
|
958
|
-
* (dragSelection.ts)
|
|
959
|
-
* @position Recognizers whose hold does something bring lockSelection; the
|
|
960
|
-
* gesture host reads locksSelectionFor, and its drag hold is
|
|
961
|
-
* dragSelection.ts
|
|
962
|
-
*/
|
|
963
|
-
/** What a held finger must not start on a control or a cell. */
|
|
964
|
-
const SELECTION_LOCK = [
|
|
965
|
-
"-webkit-touch-callout",
|
|
966
|
-
"-webkit-user-select",
|
|
967
|
-
"user-select"
|
|
968
|
-
];
|
|
969
|
-
/** Inputs whose text a held finger edits: it places the caret there. */
|
|
970
|
-
const TEXT_ENTRY_TYPES = /* @__PURE__ */ new Set([
|
|
971
|
-
"text",
|
|
972
|
-
"search",
|
|
973
|
-
"email",
|
|
974
|
-
"url",
|
|
975
|
-
"tel",
|
|
976
|
-
"password",
|
|
977
|
-
"number"
|
|
978
|
-
]);
|
|
979
|
-
/**
|
|
980
|
-
* Whether a contact of this pointer kind takes the lock: a finger or a pen,
|
|
981
|
-
* under any primary pointer, a laptop's touchscreen and a desktop pen tablet
|
|
982
|
-
* included, since a pen's hold acts as a finger's.
|
|
983
|
-
*/
|
|
984
|
-
function locksSelectionFor(pointerType) {
|
|
985
|
-
return pointerType !== "mouse";
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* Locked elements, how many contacts hold each, and what to restore. Every
|
|
989
|
-
* copy of Core counts here, so the first lock's saved styles come back only
|
|
990
|
-
* after the last release in any copy.
|
|
991
|
-
*/
|
|
992
|
-
const locks = sharedWeakMap("utils/selection-lock/locks", 1);
|
|
993
|
-
/**
|
|
994
|
-
* Refuse a selection and the touch callout on `elements` (and on a non-text
|
|
995
|
-
* input target inside one of them) until the returned function runs, while
|
|
996
|
-
* any holder holds. Idempotent release.
|
|
997
|
-
*/
|
|
998
|
-
function lockSelection(elements, target) {
|
|
999
|
-
const set = new Set(elements);
|
|
1000
|
-
if (isSelectableControl(target) && [...set].some((element) => containsAlongFlatTree(element, target))) set.add(target);
|
|
1001
|
-
if (!isIosWebKit()) {
|
|
1002
|
-
const refuse = (event) => {
|
|
1003
|
-
if (!isTextEntry(event.target)) event.preventDefault();
|
|
1004
|
-
};
|
|
1005
|
-
for (const element of set) element.addEventListener("selectstart", refuse);
|
|
1006
|
-
let isRefusing = true;
|
|
1007
|
-
return () => {
|
|
1008
|
-
if (isRefusing) {
|
|
1009
|
-
isRefusing = false;
|
|
1010
|
-
for (const element of set) element.removeEventListener("selectstart", refuse);
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
return lockStyles(set);
|
|
1015
|
-
}
|
|
1016
|
-
/**
|
|
1017
|
-
* The selection-lock styles on `set`, refcounted per element; idempotent
|
|
1018
|
-
* release.
|
|
1019
|
-
*/
|
|
1020
|
-
function lockStyles(set) {
|
|
1021
|
-
const locked = [];
|
|
1022
|
-
for (const element of set) {
|
|
1023
|
-
const style = styleOf(element);
|
|
1024
|
-
if (style == null) continue;
|
|
1025
|
-
locked.push(element);
|
|
1026
|
-
const lock = locks.get(element);
|
|
1027
|
-
if (lock != null) {
|
|
1028
|
-
lock.count += 1;
|
|
1029
|
-
continue;
|
|
1030
|
-
}
|
|
1031
|
-
locks.set(element, {
|
|
1032
|
-
count: 1,
|
|
1033
|
-
saved: SELECTION_LOCK.map((name) => ({
|
|
1034
|
-
name,
|
|
1035
|
-
value: style.getPropertyValue(name),
|
|
1036
|
-
priority: style.getPropertyPriority(name)
|
|
1037
|
-
}))
|
|
1038
|
-
});
|
|
1039
|
-
for (const name of SELECTION_LOCK) style.setProperty(name, "none");
|
|
1040
|
-
}
|
|
1041
|
-
let isReleased = false;
|
|
1042
|
-
return () => {
|
|
1043
|
-
if (isReleased) return;
|
|
1044
|
-
isReleased = true;
|
|
1045
|
-
for (const element of locked) {
|
|
1046
|
-
const lock = locks.get(element);
|
|
1047
|
-
if (lock == null || --lock.count > 0) continue;
|
|
1048
|
-
locks.delete(element);
|
|
1049
|
-
const style = styleOf(element);
|
|
1050
|
-
for (const { name, value, priority } of lock.saved) if (value === "") style?.removeProperty(name);
|
|
1051
|
-
else style?.setProperty(name, value, priority);
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
}
|
|
1055
|
-
/**
|
|
1056
|
-
* A form control WebKit's own stylesheet makes selectable, which no
|
|
1057
|
-
* ancestor's lock reaches: every input that is not a text field.
|
|
1058
|
-
*/
|
|
1059
|
-
function isSelectableControl(node) {
|
|
1060
|
-
return isElement(node) && node.localName === "input" && !TEXT_ENTRY_TYPES.has(node.type);
|
|
1061
|
-
}
|
|
1062
|
-
/** Text a held finger edits: it places the caret there. */
|
|
1063
|
-
function isTextEntry(node) {
|
|
1064
|
-
const element = isElement(node) ? node : isNode(node) ? node.parentElement : null;
|
|
1065
|
-
if (element == null) return false;
|
|
1066
|
-
if (element.localName === "textarea") return true;
|
|
1067
|
-
if (element.localName === "input") return TEXT_ENTRY_TYPES.has(element.type);
|
|
1068
|
-
return element.isContentEditable;
|
|
1069
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* An element's inline style, when it has one (HTML and SVG elements). It is
|
|
1072
|
-
* checked as an object, so another window's style passes too.
|
|
1073
|
-
*/
|
|
1074
|
-
function styleOf(element) {
|
|
1075
|
-
const style = element.style;
|
|
1076
|
-
return typeof style === "object" && style !== null ? style : null;
|
|
1077
|
-
}
|
|
1078
|
-
//#endregion
|
|
1079
954
|
//#region src/utils/selectionRanges.ts
|
|
1080
955
|
/**
|
|
1081
956
|
* @file selectionRanges.ts
|
|
@@ -4498,4 +4373,4 @@ function travel(touch) {
|
|
|
4498
4373
|
return Math.hypot(touch.x - touch.startX, touch.y - touch.startY);
|
|
4499
4374
|
}
|
|
4500
4375
|
//#endregion
|
|
4501
|
-
export {
|
|
4376
|
+
export { ACTION_STATES as a, isActive as c, internals as d, DEFAULT_ENVIRONMENT as f, getGestureHost as i, isTerminal as l, distance as n, ALL_NATIVE_TOUCH as o, travel as r, MANIPULATION as s, centroid as t, isTransitionAllowed as u };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//#region src/Code/grammar.d.ts
|
|
2
|
+
declare const LANGUAGE: unique symbol;
|
|
3
|
+
/** A flat token from a custom tokenize function: absolute offsets in `code`. */
|
|
4
|
+
interface CodeLanguageToken {
|
|
5
|
+
type: string;
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
}
|
|
9
|
+
/** A custom language's tokenize function, the shape `tokenizer` takes. */
|
|
10
|
+
type CodeLanguageTokenize = (code: string, language: string) => CodeLanguageToken[];
|
|
11
|
+
/**
|
|
12
|
+
* A language value: an Astryx module from
|
|
13
|
+
* `@astryx-vue/core/Code/languages/<name>`, or a custom language from
|
|
14
|
+
* `createCodeLanguage`. Pass it as `language`, or list it in `codeLanguages`
|
|
15
|
+
* on Markdown and RichTextEditor.
|
|
16
|
+
*/
|
|
17
|
+
interface CodeLanguage {
|
|
18
|
+
/** The identifier the label shows, such as `graphql`; shown verbatim. */
|
|
19
|
+
readonly name: string;
|
|
20
|
+
/** The words that name this language in `language` strings and fences. */
|
|
21
|
+
readonly identifiers: ReadonlyArray<string>;
|
|
22
|
+
/** File extensions (no dot) that infer this language, such as `graphql`. */
|
|
23
|
+
readonly fileExtensions: ReadonlyArray<string>;
|
|
24
|
+
/** Whole file names that infer this language, such as `Dockerfile`. */
|
|
25
|
+
readonly fileNames: ReadonlyArray<string>;
|
|
26
|
+
readonly [LANGUAGE]: true;
|
|
27
|
+
}
|
|
28
|
+
interface CodeLanguageMeta {
|
|
29
|
+
name: string;
|
|
30
|
+
identifiers: ReadonlyArray<string>;
|
|
31
|
+
fileExtensions?: ReadonlyArray<string>;
|
|
32
|
+
fileNames?: ReadonlyArray<string>;
|
|
33
|
+
}
|
|
34
|
+
type CreateCodeLanguageOptions = CodeLanguageMeta & {
|
|
35
|
+
/** Returns the tokens of `code`; runs synchronously. */
|
|
36
|
+
tokenize: CodeLanguageTokenize;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Make a custom language value from your own tokenize function. It works
|
|
40
|
+
* everywhere an Astryx language module does: as `language`, and in
|
|
41
|
+
* `codeLanguages` on Markdown and RichTextEditor.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```
|
|
45
|
+
* const zig = createCodeLanguage({
|
|
46
|
+
* name: 'zig',
|
|
47
|
+
* identifiers: ['zig'],
|
|
48
|
+
* fileExtensions: ['zig'],
|
|
49
|
+
* tokenize: zigTokens,
|
|
50
|
+
* });
|
|
51
|
+
* <CodeBlock :language="zig" :code="source" />
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare function createCodeLanguage({ tokenize, ...meta }: CreateCodeLanguageOptions): CodeLanguage;
|
|
55
|
+
/** Whether `value` is a language value. */
|
|
56
|
+
declare function isCodeLanguage(value: unknown): value is CodeLanguage;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { createCodeLanguage as a, CreateCodeLanguageOptions as i, CodeLanguageToken as n, isCodeLanguage as o, CodeLanguageTokenize as r, CodeLanguage as t };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
//#region src/Code/grammar.ts
|
|
2
|
+
const LANGUAGE = Symbol.for("astryx.codeLanguage");
|
|
3
|
+
function makeLanguage(meta, painter) {
|
|
4
|
+
return {
|
|
5
|
+
name: meta.name,
|
|
6
|
+
identifiers: meta.identifiers,
|
|
7
|
+
fileExtensions: meta.fileExtensions ?? [],
|
|
8
|
+
fileNames: meta.fileNames ?? [],
|
|
9
|
+
[LANGUAGE]: true,
|
|
10
|
+
painter
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Make an Astryx language module from grammar data. Internal. */
|
|
14
|
+
function defineCodeLanguage(meta, grammar) {
|
|
15
|
+
return makeLanguage(meta, () => ({
|
|
16
|
+
kind: "grammar",
|
|
17
|
+
grammar: grammar()
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Make a custom language value from your own tokenize function. It works
|
|
22
|
+
* everywhere an Astryx language module does: as `language`, and in
|
|
23
|
+
* `codeLanguages` on Markdown and RichTextEditor.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```
|
|
27
|
+
* const zig = createCodeLanguage({
|
|
28
|
+
* name: 'zig',
|
|
29
|
+
* identifiers: ['zig'],
|
|
30
|
+
* fileExtensions: ['zig'],
|
|
31
|
+
* tokenize: zigTokens,
|
|
32
|
+
* });
|
|
33
|
+
* <CodeBlock :language="zig" :code="source" />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
function createCodeLanguage({ tokenize, ...meta }) {
|
|
37
|
+
return makeLanguage(meta, () => ({
|
|
38
|
+
kind: "tokenize",
|
|
39
|
+
tokenize
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
/** Whether `value` is a language value. */
|
|
43
|
+
function isCodeLanguage(value) {
|
|
44
|
+
return typeof value === "object" && value !== null && value[LANGUAGE] === true;
|
|
45
|
+
}
|
|
46
|
+
/** How a language value paints, or null for any other value. */
|
|
47
|
+
function codeLanguagePainter(language) {
|
|
48
|
+
const internal = language;
|
|
49
|
+
return isCodeLanguage(language) && typeof internal.painter === "function" ? internal.painter() : null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Whether `language` is a custom language (made with `createCodeLanguage`),
|
|
53
|
+
* whose function runs synchronously at any length, as `tokenizer` does.
|
|
54
|
+
*/
|
|
55
|
+
function isCustomCodeLanguage(language) {
|
|
56
|
+
return typeof language !== "string" && codeLanguagePainter(language)?.kind === "tokenize";
|
|
57
|
+
}
|
|
58
|
+
/** The word a language reflects and labels: a string itself, or a value's name. */
|
|
59
|
+
function languageLabel(language) {
|
|
60
|
+
return typeof language === "string" ? language : language.name;
|
|
61
|
+
}
|
|
62
|
+
/** The word a language reflects as `data-language`: its first identifier. */
|
|
63
|
+
function languageKey(language) {
|
|
64
|
+
return typeof language === "string" ? language : language.identifiers[0] ?? language.name;
|
|
65
|
+
}
|
|
66
|
+
/** The listed value that claims `word`; a later entry wins. */
|
|
67
|
+
function listedLanguage(languages, word) {
|
|
68
|
+
if (languages == null) return;
|
|
69
|
+
for (let i = languages.length - 1; i >= 0; i--) if (languages[i].identifiers.includes(word)) return languages[i];
|
|
70
|
+
}
|
|
71
|
+
/** Whether two lists name the same values in the same order. */
|
|
72
|
+
function sameCodeLanguageList(a, b) {
|
|
73
|
+
if (a === b) return true;
|
|
74
|
+
if (a == null || b == null || a.length !== b.length) return false;
|
|
75
|
+
return a.every((language, i) => language === b[i]);
|
|
76
|
+
}
|
|
77
|
+
/** A keyword alternation from a space-separated word list. */
|
|
78
|
+
function keywords(words) {
|
|
79
|
+
return new RegExp(`\\b(?:${words.trim().split(/\s+/).join("|")})\\b`);
|
|
80
|
+
}
|
|
81
|
+
const NUMBER = /\b(?:0x[\da-f_]+|0b[01_]+|0o[0-7_]+|\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d+)?)[a-z]*\b/i;
|
|
82
|
+
const DOUBLE_QUOTED = /"(?:[^"\\\n]|\\.)*"/;
|
|
83
|
+
const SINGLE_QUOTED = /'(?:[^'\\\n]|\\.)*'/;
|
|
84
|
+
const BLOCK_COMMENT = /\/\*[\s\S]*?\*\//;
|
|
85
|
+
const LINE_COMMENT = /\/\/[^\n]*/;
|
|
86
|
+
const HASH_COMMENT = /#[^\n]*/;
|
|
87
|
+
const CALL = /\b[a-z_$][\w$]*(?=\s*\()/i;
|
|
88
|
+
const TYPE_NAME = /\b[A-Z]\w*\b/;
|
|
89
|
+
const OPERATOR = /[+\-*/%=!<>&|^~?:]+/;
|
|
90
|
+
const PUNCTUATION = /[{}()[\];,.@]/;
|
|
91
|
+
/**
|
|
92
|
+
* A C-like grammar: comments, any extra rules, strings, numbers, keywords,
|
|
93
|
+
* calls, type names, operators, and punctuation, in that order.
|
|
94
|
+
*/
|
|
95
|
+
function cLike(words, extra = [], comments = [BLOCK_COMMENT, LINE_COMMENT]) {
|
|
96
|
+
return {
|
|
97
|
+
defaultType: "variable",
|
|
98
|
+
patterns: [
|
|
99
|
+
...comments.map((regex) => ({
|
|
100
|
+
type: "comment",
|
|
101
|
+
regex
|
|
102
|
+
})),
|
|
103
|
+
...extra,
|
|
104
|
+
{
|
|
105
|
+
type: "string",
|
|
106
|
+
regex: DOUBLE_QUOTED
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
type: "string",
|
|
110
|
+
regex: SINGLE_QUOTED
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "number",
|
|
114
|
+
regex: NUMBER
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: "keyword",
|
|
118
|
+
regex: keywords(words)
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
type: "function",
|
|
122
|
+
regex: CALL
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "type",
|
|
126
|
+
regex: TYPE_NAME
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "operator",
|
|
130
|
+
regex: OPERATOR
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
type: "punctuation",
|
|
134
|
+
regex: PUNCTUATION
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/** A preprocessor directive at the start of a line (`#include`). */
|
|
140
|
+
const DIRECTIVE = /^[ \t]*#\s*\w+/m;
|
|
141
|
+
const C_WORDS = "auto break case char const continue default do double else enum extern float for goto if inline int long register restrict return short signed sizeof static struct switch typedef union unsigned void volatile while bool true false NULL nullptr";
|
|
142
|
+
const CPP_WORDS = `${C_WORDS} alignas alignof catch class concept constexpr consteval co_await co_return co_yield decltype delete explicit export friend mutable namespace new noexcept operator override private protected public requires static_assert template this throw try typename using virtual final`;
|
|
143
|
+
//#endregion
|
|
144
|
+
export { isCustomCodeLanguage as _, DIRECTIVE as a, listedLanguage as b, LINE_COMMENT as c, SINGLE_QUOTED as d, cLike as f, isCodeLanguage as g, defineCodeLanguage as h, C_WORDS as i, NUMBER as l, createCodeLanguage as m, CALL as n, DOUBLE_QUOTED as o, codeLanguagePainter as p, CPP_WORDS as r, HASH_COMMENT as s, BLOCK_COMMENT as t, PUNCTUATION as u, languageKey as v, sameCodeLanguageList as x, languageLabel as y };
|
|
@@ -161,8 +161,8 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
161
161
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComplexSelectorProps<Value> & {
|
|
162
162
|
modelValue: Value;
|
|
163
163
|
}) & {
|
|
164
|
-
onChange?: ((value: Value) => any) | undefined;
|
|
165
164
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
165
|
+
onChange?: ((value: Value) => any) | undefined;
|
|
166
166
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
167
167
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
168
168
|
"onUpdate:modelValue"?: ((value: Value) => any) | undefined;
|
|
@@ -172,7 +172,7 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
|
|
|
172
172
|
expose: (exposed: import("vue").ShallowUnwrapRef<ComplexSelectorHandle>) => void;
|
|
173
173
|
attrs: any;
|
|
174
174
|
slots: ComplexSelectorSlots<Value>;
|
|
175
|
-
emit: (((evt: "
|
|
175
|
+
emit: (((evt: "click", event: MouseEvent) => void) & ((evt: "change", value: Value) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
|
|
176
176
|
}>) => import("vue").VNode & {
|
|
177
177
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
178
178
|
};
|
|
@@ -175,8 +175,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
175
175
|
}>, {
|
|
176
176
|
position: OverlayPosition;
|
|
177
177
|
align: OverlayAlign;
|
|
178
|
-
scrim: OverlayScrimMode;
|
|
179
178
|
showOn: OverlayShowOn;
|
|
179
|
+
scrim: OverlayScrimMode;
|
|
180
180
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
181
181
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
182
182
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -192,8 +192,8 @@ declare const __VLS_base: import("vue").DefineComponent<OverlayScrimProps, {}, {
|
|
|
192
192
|
isOpen: boolean;
|
|
193
193
|
position: OverlayPosition;
|
|
194
194
|
align: OverlayAlign;
|
|
195
|
-
scrim: OverlayScrimMode;
|
|
196
195
|
showOn: OverlayShowOn;
|
|
196
|
+
scrim: OverlayScrimMode;
|
|
197
197
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
198
198
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
199
199
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as AstryxMessages, t as AstryxUpstreamCatalog, wn as CalendarSystem } from "./loadCatalog-
|
|
1
|
+
import { s as AstryxMessages, t as AstryxUpstreamCatalog, wn as CalendarSystem } from "./loadCatalog-C_Cy_8WN.js";
|
|
2
2
|
import { ComputedRef, InjectionKey } from "vue";
|
|
3
3
|
//#region src/InternationalizationProvider/catalog.d.ts
|
|
4
4
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as CodeLanguage } from "./grammar-4Pn2745Q.js";
|
|
1
2
|
import { i as SyntaxThemeDefinition, o as SyntaxThemeTokens, s as SyntaxTokenKey } from "./syntaxTheme-CwVEcVDk.js";
|
|
2
3
|
import "./useClipboard-DeO8fCW_.js";
|
|
3
4
|
import { ComputedRef, VNodeChild } from "vue";
|
|
@@ -32,6 +33,24 @@ interface CodeSlots {
|
|
|
32
33
|
/** The inline code content. */
|
|
33
34
|
default?: () => VNodeChild;
|
|
34
35
|
}
|
|
36
|
+
interface CodeBlockSlots {
|
|
37
|
+
/**
|
|
38
|
+
* Your own controls, shown just before Copy: in the header when the block
|
|
39
|
+
* has one, otherwise beside the code in the top inline-end corner, never over
|
|
40
|
+
* it. The slot never creates a header, and it sits outside the collapse
|
|
41
|
+
* control, so using it never collapses the block.
|
|
42
|
+
*/
|
|
43
|
+
endContent?: () => VNodeChild;
|
|
44
|
+
}
|
|
45
|
+
interface CodeBlockSlots {
|
|
46
|
+
/**
|
|
47
|
+
* Your own controls, shown just before Copy: in the header when the block
|
|
48
|
+
* has one, otherwise beside the code in the top inline-end corner, never over
|
|
49
|
+
* it. The slot never creates a header, and it sits outside the collapse
|
|
50
|
+
* control, so using it never collapses the block.
|
|
51
|
+
*/
|
|
52
|
+
endContent?: () => VNodeChild;
|
|
53
|
+
}
|
|
35
54
|
/** The text size of a CodeBlock, which also selects its line height. */
|
|
36
55
|
type CodeBlockSize = 'sm' | 'md';
|
|
37
56
|
/**
|
|
@@ -67,11 +86,15 @@ interface CodeBlockProps {
|
|
|
67
86
|
/** The read-only code to display. */
|
|
68
87
|
code: string;
|
|
69
88
|
/**
|
|
70
|
-
* The language used for syntax highlighting
|
|
71
|
-
*
|
|
89
|
+
* The language used for syntax highlighting: a built-in identifier such as
|
|
90
|
+
* `'ts'`, or a language value, either one imported from
|
|
91
|
+
* `@astryx-vue/core/Code/languages/<name>` (such as `graphql`) or made with
|
|
92
|
+
* `createCodeLanguage`. An unknown identifier renders as plaintext, and
|
|
93
|
+
* `plaintext` also hides the language label in the header. A value is
|
|
94
|
+
* labelled with its `name`, and `data-language` carries its first identifier.
|
|
72
95
|
* @default 'plaintext'
|
|
73
96
|
*/
|
|
74
|
-
language?: string;
|
|
97
|
+
language?: string | CodeLanguage;
|
|
75
98
|
/**
|
|
76
99
|
* Syntax colors for this block.
|
|
77
100
|
*
|
|
@@ -94,7 +117,19 @@ interface CodeBlockProps {
|
|
|
94
117
|
* @default false
|
|
95
118
|
*/
|
|
96
119
|
hasLineNumbers?: boolean;
|
|
97
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* The number of the first line, so a code excerpt reads with its real file
|
|
122
|
+
* line numbers. The gutter shows `startLineNumber + index`, and
|
|
123
|
+
* `highlightLines` uses the same file line numbers. A value below 1, or one
|
|
124
|
+
* that is not a finite number, counts as 1.
|
|
125
|
+
* @default 1
|
|
126
|
+
*/
|
|
127
|
+
startLineNumber?: number;
|
|
128
|
+
/**
|
|
129
|
+
* File line numbers to emphasize with an accent background, in the same
|
|
130
|
+
* numbering as the gutter (see `startLineNumber`). A number outside the code
|
|
131
|
+
* highlights nothing.
|
|
132
|
+
*/
|
|
98
133
|
highlightLines?: number[];
|
|
99
134
|
/**
|
|
100
135
|
* Paint the code as a unified diff over `language`.
|
|
@@ -157,6 +192,9 @@ interface CodeBlockProps {
|
|
|
157
192
|
* A custom tokenizer, for a language the built-in tokenizer does not know.
|
|
158
193
|
* Its return value paints tokens but never replaces the displayed or copied
|
|
159
194
|
* code text.
|
|
195
|
+
* @deprecated Pass `language={createCodeLanguage({ name, identifiers, tokenize })}`
|
|
196
|
+
* instead; it keeps the label and `data-language` and paints at any length.
|
|
197
|
+
* `tokenizer` still works as it did.
|
|
160
198
|
*/
|
|
161
199
|
tokenizer?: CodeBlockTokenizer;
|
|
162
200
|
/**
|
|
@@ -195,22 +233,23 @@ interface CodeBlockEmits {
|
|
|
195
233
|
}
|
|
196
234
|
//#endregion
|
|
197
235
|
//#region src/Code/Code.vue.d.ts
|
|
198
|
-
type __VLS_Slots$
|
|
199
|
-
declare const __VLS_base$
|
|
236
|
+
type __VLS_Slots$2 = CodeSlots;
|
|
237
|
+
declare const __VLS_base$2: import("vue").DefineComponent<CodeProps, {
|
|
200
238
|
element: import("vue").ComputedRef<HTMLElement | null>;
|
|
201
239
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeProps> & Readonly<{}>, {
|
|
202
240
|
color: CodeColor;
|
|
203
241
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
204
|
-
declare const __VLS_export$2: __VLS_WithSlots$
|
|
242
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
205
243
|
declare const _default$2: typeof __VLS_export$2;
|
|
206
|
-
type __VLS_WithSlots$
|
|
244
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
207
245
|
new (): {
|
|
208
246
|
$slots: S;
|
|
209
247
|
};
|
|
210
248
|
};
|
|
211
249
|
//#endregion
|
|
212
250
|
//#region src/Code/CodeBlock.vue.d.ts
|
|
213
|
-
|
|
251
|
+
type __VLS_Slots$1 = CodeBlockSlots;
|
|
252
|
+
declare const __VLS_base$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
214
253
|
element: import("vue").ComputedRef<HTMLPreElement | null>;
|
|
215
254
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
216
255
|
copy: () => any;
|
|
@@ -222,9 +261,10 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
|
222
261
|
size: CodeBlockSize;
|
|
223
262
|
width: string;
|
|
224
263
|
container: CodeBlockContainer;
|
|
225
|
-
language: string;
|
|
264
|
+
language: string | CodeLanguage;
|
|
226
265
|
hasLanguageLabel: boolean;
|
|
227
266
|
hasLineNumbers: boolean;
|
|
267
|
+
startLineNumber: number;
|
|
228
268
|
isDiff: boolean;
|
|
229
269
|
hasCopyButton: boolean;
|
|
230
270
|
isWrapped: boolean;
|
|
@@ -236,7 +276,13 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
|
|
|
236
276
|
copyFailedLabel: string;
|
|
237
277
|
codeLabel: string;
|
|
238
278
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
279
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
239
280
|
declare const _default$1: typeof __VLS_export$1;
|
|
281
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
282
|
+
new (): {
|
|
283
|
+
$slots: S;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
240
286
|
//#endregion
|
|
241
287
|
//#region src/Code/diff.d.ts
|
|
242
288
|
/** How a unified-diff line reads: what it adds, removes, frames, or keeps. */
|
|
@@ -329,19 +375,21 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
329
375
|
};
|
|
330
376
|
//#endregion
|
|
331
377
|
//#region src/Code/tokenizer.d.ts
|
|
378
|
+
/** A language identifier string or a language value. */
|
|
379
|
+
type CodeLanguageInput = string | CodeLanguage;
|
|
332
380
|
/** Code shorter than this is tokenized synchronously instead of in chunks. */
|
|
333
381
|
declare const SYNC_TOKENIZE_THRESHOLD = 2000;
|
|
334
382
|
/**
|
|
335
383
|
* Tokenize a code string into one token array per line, with offsets relative
|
|
336
384
|
* to the start of the line.
|
|
337
385
|
*/
|
|
338
|
-
declare function tokenize(code: string, language:
|
|
386
|
+
declare function tokenize(code: string, language: CodeLanguageInput): TokenLine[];
|
|
339
387
|
/**
|
|
340
388
|
* The same result as {@link tokenize}, but yielding to the main thread between
|
|
341
389
|
* chunks so a long file does not block rendering. An aborted signal stops the
|
|
342
390
|
* work and returns the lines tokenized so far.
|
|
343
391
|
*/
|
|
344
|
-
declare function tokenizeAsync(code: string, language:
|
|
392
|
+
declare function tokenizeAsync(code: string, language: CodeLanguageInput, signal?: AbortSignal): Promise<TokenLine[]>;
|
|
345
393
|
/**
|
|
346
394
|
* Convert flat tokens with absolute offsets, as a custom tokenizer returns
|
|
347
395
|
* them, into one line-relative token array per line.
|
|
@@ -365,4 +413,4 @@ interface UseSyntaxThemeReturn {
|
|
|
365
413
|
*/
|
|
366
414
|
declare function useSyntaxTheme(): UseSyntaxThemeReturn | null;
|
|
367
415
|
//#endregion
|
|
368
|
-
export { _default$1 as A,
|
|
416
|
+
export { _default$1 as A, CodeProps as B, applyHighlightRanges as C, diffLineKind as D, DiffLines as E, CodeBlockSize as F, CodeSlots as H, CodeBlockSlots as I, CodeBlockTokenizer as L, CodeBlockContainer as M, CodeBlockEmits as N, parseFenceLanguage as O, CodeBlockProps as P, CodeColor as R, HIGHLIGHTED_TOKEN_TYPES as S, DiffLineKind as T, SyntaxToken as U, CodeSize as V, TokenLine as W, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, _default$2 as j, splitDiffLines as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, applyHighlightRangesFlat as w, tokyoNightLight as x, solarizedLight as y, CodeHighlightMode as z };
|
|
@@ -28,8 +28,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
28
28
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
block: boolean;
|
|
31
|
-
size: NavItemSize;
|
|
32
31
|
isDisabled: boolean;
|
|
32
|
+
size: NavItemSize;
|
|
33
33
|
isIconOnly: boolean;
|
|
34
34
|
isSelected: boolean;
|
|
35
35
|
isFocusableWhenDisabled: boolean;
|
|
@@ -63,8 +63,8 @@ interface TreeListSlots {
|
|
|
63
63
|
//#region src/TreeList/TreeList.vue.d.ts
|
|
64
64
|
type __VLS_Slots = TreeListSlots;
|
|
65
65
|
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
66
|
-
variant: TreeListVariant;
|
|
67
66
|
density: TreeListDensity;
|
|
67
|
+
variant: TreeListVariant;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
70
|
declare const _default: typeof __VLS_export;
|