@astryx-vue/core 0.1.0 → 0.1.3
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/README.md +1 -1
- package/dist/AppShell/index.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-b0PWt9Fz.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-CYhGDT6f.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-C1aWl5V3.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-EsIEXjK_.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-C1X0Rde8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-BS9ctCQV.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-u5h_E05P.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-BHmGWml0.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-D2ErjXYO.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-fmQlr_A7.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-Bs1JmcIp.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -4
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CmAfOpkA.js +238 -0
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-CwtLr3f_.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DlXQTLog.js +124 -0
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-DT8ZccMI.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-BqjdSCfJ.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-DI8ujXcT.js +122 -0
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BuGKvU9I.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-Cdrigq2A.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-DxmLfh8O.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-C411uNQU.js +380 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-7qRmlIQd.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-BWVzLLyI.js +163 -0
- package/dist/TimeField-l3QzU6vC.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-OkgX-xbQ.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DUoP9ari.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-BA8sTMPZ.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CjbMCbkC.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-CIbAGOMf.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +8 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{locale-56lkR7OK.js → context-D6ECRdc5.js} +267 -18
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-2u4l3wq8.d.ts} +2 -2
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-C6RecznD.d.ts} +3 -3
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/{index-Cz9ZHVf6.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-CxspvLBl.d.ts → index-CTolyeii.d.ts} +1 -1
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-JeZ0YTyd.d.ts → index-D-ZuubCK.d.ts} +4 -4
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-C8NW9xre.d.ts → index-DGNqi2za.d.ts} +7 -7
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/index-DXSs3rwa.d.ts +252 -0
- package/dist/{index-C0S2Xzoi.d.ts → index-DYChvBOM.d.ts} +135 -0
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-Df2YvC8o.d.ts} +717 -147
- package/dist/{index-DjOdQv5B.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-DBcbfStA.d.ts → index-SMh42NI8.d.ts} +182 -2
- package/dist/{index-Cdi82rTW.d.ts → index-ZJyk8RtQ.d.ts} +6 -2
- package/dist/{index-BeJqhW4l.d.ts → index-fa72tWIU.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +76 -59
- package/dist/index.js +119 -78
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Cp0NlzQv.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +97 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/card.css +5 -1
- package/styles/checkbox-list.css +15 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +14 -3
- package/styles/file-input.css +87 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/icon.css +32 -0
- package/styles/layout.css +280 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/selector.css +10 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +23 -0
- package/dist/Collapsible-ByXCGhT8.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-TnaIHsCS.d.ts +0 -87
package/dist/Divider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-
|
|
1
|
+
import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-Byar3h1e.js";
|
|
2
2
|
export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as DropdownMenuTriggerProps, _ as DropdownMenuOption, a as DropdownMenuContextValue, b as DropdownMenuSize, c as DropdownMenuDividerData, d as DropdownMenuGroupSlots, f as DropdownMenuItemData, g as DropdownMenuItemVariant, h as DropdownMenuItemSlots, i as _default, l as DropdownMenuEmits, m as DropdownMenuItemProps, n as _default$2, o as useDropdownMenuContext, p as DropdownMenuItemEmits, r as _default$1, s as DropdownMenuButtonProps, t as _default$3, u as DropdownMenuGroupProps, v as DropdownMenuProps, x as DropdownMenuSlots, y as DropdownMenuSection } from "../index-
|
|
1
|
+
import { S as DropdownMenuTriggerProps, _ as DropdownMenuOption, a as DropdownMenuContextValue, b as DropdownMenuSize, c as DropdownMenuDividerData, d as DropdownMenuGroupSlots, f as DropdownMenuItemData, g as DropdownMenuItemVariant, h as DropdownMenuItemSlots, i as _default, l as DropdownMenuEmits, m as DropdownMenuItemProps, n as _default$2, o as useDropdownMenuContext, p as DropdownMenuItemEmits, r as _default$1, s as DropdownMenuButtonProps, t as _default$3, u as DropdownMenuGroupProps, v as DropdownMenuProps, x as DropdownMenuSlots, y as DropdownMenuSection } from "../index-B8MbfMwV.js";
|
|
2
2
|
export { _default as DropdownMenu, type DropdownMenuButtonProps, type DropdownMenuContextValue, _default$1 as DropdownMenuDivider, type DropdownMenuDividerData, type DropdownMenuEmits, _default$2 as DropdownMenuGroup, type DropdownMenuGroupProps, type DropdownMenuGroupSlots, _default$3 as DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuItemEmits, type DropdownMenuItemProps, type DropdownMenuItemSlots, type DropdownMenuItemVariant, type DropdownMenuOption, type DropdownMenuProps, type DropdownMenuSection, type DropdownMenuSize, type DropdownMenuSlots, type DropdownMenuTriggerProps, useDropdownMenuContext };
|
|
@@ -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-
|
|
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";
|
|
2
2
|
export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuDivider, _sfc_main$2 as DropdownMenuGroup, _sfc_main$3 as DropdownMenuItem, useDropdownMenuContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
+
import { t as _sfc_main$6 } from "./Icon-5MdZQ18k.js";
|
|
5
5
|
import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
|
|
6
|
-
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
7
6
|
import { t as _sfc_main$8 } from "./Item-C1z6gXn8.js";
|
|
7
|
+
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
8
8
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, mergeModels, mergeProps, nextTick, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives } from "vue";
|
|
9
9
|
import "../styles/dropdown-menu.css";
|
|
10
10
|
//#region src/DropdownMenu/context.ts
|
package/dist/Field/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as FieldSlots, c as FieldStatusType, i as FieldSlotProps, l as FieldStatusVariant, n as FieldLabelSlots, o as FieldStatusInput, r as FieldProps, s as FieldStatusProps, t as FieldLabelProps } from "../types-3eXh_5os.js";
|
|
2
|
-
import { n as _default
|
|
3
|
-
export { _default as Field, _default$1 as FieldLabel, type FieldLabelProps, type FieldLabelSlots, type FieldProps, type FieldSlotProps, type FieldSlots,
|
|
2
|
+
import { n as _default, t as _default$1 } from "../index-iBLzInje.js";
|
|
3
|
+
export { _default as Field, _default$1 as FieldLabel, type FieldLabelProps, type FieldLabelSlots, type FieldProps, type FieldSlotProps, type FieldSlots, type FieldStatusInput, type FieldStatusProps, type FieldStatusType, type FieldStatusVariant };
|
package/dist/Field/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../FieldLabel-
|
|
2
|
-
import { t as _sfc_main
|
|
3
|
-
|
|
4
|
-
export { _sfc_main as Field, _sfc_main$1 as FieldLabel, _sfc_main$2 as FieldStatus };
|
|
1
|
+
import { t as _sfc_main$1 } from "../FieldLabel-DmmJyX7w.js";
|
|
2
|
+
import { t as _sfc_main } from "../Field-8zRxzDHE.js";
|
|
3
|
+
export { _sfc_main as Field, _sfc_main$1 as FieldLabel };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
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 = [
|
|
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
|
-
|
|
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
|
|
@@ -0,0 +1,2 @@
|
|
|
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-Df2YvC8o.js";
|
|
2
|
+
export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
+
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
3
|
+
import { n as selectFiles, t as formatFileSize } from "./useFileSelection-BPtaegqK.js";
|
|
4
|
+
import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
|
|
5
|
+
import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
|
|
6
|
+
import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
|
|
7
|
+
import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
|
|
8
|
+
import { t as _sfc_main$5 } from "./Spinner-9cYUCnDy.js";
|
|
9
|
+
import { t as _sfc_main$6 } from "./Field-8zRxzDHE.js";
|
|
10
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
11
|
+
import "../styles/bordered-control.css";
|
|
12
|
+
import "../styles/file-input.css";
|
|
13
|
+
//#region src/FileInput/FileInput.vue
|
|
14
|
+
const _hoisted_1 = [
|
|
15
|
+
"data-mode",
|
|
16
|
+
"data-size",
|
|
17
|
+
"data-status",
|
|
18
|
+
"data-disabled",
|
|
19
|
+
"data-drag"
|
|
20
|
+
];
|
|
21
|
+
const _hoisted_2 = [
|
|
22
|
+
"id",
|
|
23
|
+
"accept",
|
|
24
|
+
"multiple",
|
|
25
|
+
"disabled"
|
|
26
|
+
];
|
|
27
|
+
const _hoisted_3 = [
|
|
28
|
+
"id",
|
|
29
|
+
"disabled",
|
|
30
|
+
"aria-invalid",
|
|
31
|
+
"aria-describedby"
|
|
32
|
+
];
|
|
33
|
+
const _hoisted_4 = ["data-placeholder"];
|
|
34
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
35
|
+
name: "AstryxFileInput",
|
|
36
|
+
inheritAttrs: false,
|
|
37
|
+
__name: "FileInput",
|
|
38
|
+
props: /*@__PURE__*/ mergeModels({
|
|
39
|
+
label: {},
|
|
40
|
+
id: {},
|
|
41
|
+
accept: {},
|
|
42
|
+
description: {},
|
|
43
|
+
placeholder: {},
|
|
44
|
+
mode: { default: "input" },
|
|
45
|
+
size: { default: "md" },
|
|
46
|
+
isMultiple: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
maxSize: {},
|
|
51
|
+
maxFiles: {},
|
|
52
|
+
isDisabled: { type: Boolean },
|
|
53
|
+
isRequired: { type: Boolean },
|
|
54
|
+
isOptional: { type: Boolean },
|
|
55
|
+
isLabelHidden: { type: Boolean },
|
|
56
|
+
isLoading: { type: Boolean },
|
|
57
|
+
status: {},
|
|
58
|
+
statusVariant: { default: "attached" },
|
|
59
|
+
width: {},
|
|
60
|
+
clearLabel: {}
|
|
61
|
+
}, {
|
|
62
|
+
"modelValue": { default: null },
|
|
63
|
+
"modelModifiers": {}
|
|
64
|
+
}),
|
|
65
|
+
emits: /*@__PURE__*/ mergeModels(["update:modelValue", "change"], ["update:modelValue"]),
|
|
66
|
+
setup(__props, { emit: __emit }) {
|
|
67
|
+
const props = __props;
|
|
68
|
+
const emit = __emit;
|
|
69
|
+
const model = useModel(__props, "modelValue");
|
|
70
|
+
const messages = useAstryxMessages();
|
|
71
|
+
const announce = useAnnounce();
|
|
72
|
+
const generatedId = `astryx-file-input-${useId()}`;
|
|
73
|
+
const inputId = computed(() => props.id ?? generatedId);
|
|
74
|
+
const requiredId = `${generatedId}-required`;
|
|
75
|
+
const fileInput = useTemplateRef("file");
|
|
76
|
+
const validationError = shallowRef(null);
|
|
77
|
+
const dragOver = shallowRef(false);
|
|
78
|
+
const placeholder = computed(() => props.placeholder ?? (props.isMultiple ? messages.value.fileInput.placeholderMultiple : messages.value.fileInput.placeholder));
|
|
79
|
+
const clearLabel = computed(() => props.clearLabel ?? messages.value.fileInput.clear);
|
|
80
|
+
const status = computed(() => props.status ?? (validationError.value ? {
|
|
81
|
+
type: "error",
|
|
82
|
+
message: validationError.value
|
|
83
|
+
} : void 0));
|
|
84
|
+
const fileLabel = computed(() => {
|
|
85
|
+
const value = model.value;
|
|
86
|
+
if (value == null) return "";
|
|
87
|
+
const files = Array.isArray(value) ? value : [value];
|
|
88
|
+
if (files.length === 0) return "";
|
|
89
|
+
if (files.length === 1) return files[0]?.name ?? "";
|
|
90
|
+
return files.map((file) => file.name).join(", ");
|
|
91
|
+
});
|
|
92
|
+
const conveysRequired = computed(() => props.isRequired && !props.isOptional);
|
|
93
|
+
function commit(value) {
|
|
94
|
+
model.value = value;
|
|
95
|
+
emit("change", value);
|
|
96
|
+
}
|
|
97
|
+
function applyFiles(list) {
|
|
98
|
+
if (props.isDisabled) return;
|
|
99
|
+
const result = selectFiles(list, {
|
|
100
|
+
accept: props.accept,
|
|
101
|
+
maxSize: props.maxSize,
|
|
102
|
+
maxFiles: props.maxFiles,
|
|
103
|
+
isMultiple: props.isMultiple
|
|
104
|
+
});
|
|
105
|
+
const first = result.rejections[0];
|
|
106
|
+
if (first?.code === "type" && first.fileName) validationError.value = messages.value.fileInput.errorType(first.fileName);
|
|
107
|
+
else if (first?.code === "size" && first.fileName) validationError.value = messages.value.fileInput.errorSize(first.fileName, formatFileSize(first.maxSize ?? 0));
|
|
108
|
+
else if (first?.code === "count") validationError.value = messages.value.fileInput.errorCount(first.maxFiles ?? 0);
|
|
109
|
+
else validationError.value = null;
|
|
110
|
+
const files = result.files;
|
|
111
|
+
commit(files);
|
|
112
|
+
if (validationError.value == null && files != null) {
|
|
113
|
+
const selected = Array.isArray(files) ? files : [files];
|
|
114
|
+
if (selected.length === 1 && selected[0]) announce(messages.value.fileInput.fileSelected(selected[0].name));
|
|
115
|
+
else if (selected.length > 1) announce(messages.value.fileInput.filesSelected(selected.length));
|
|
116
|
+
}
|
|
117
|
+
if (fileInput.value) fileInput.value.value = "";
|
|
118
|
+
}
|
|
119
|
+
function openPicker() {
|
|
120
|
+
if (!props.isDisabled) fileInput.value?.click();
|
|
121
|
+
}
|
|
122
|
+
function onChange(event) {
|
|
123
|
+
applyFiles(event.target.files);
|
|
124
|
+
}
|
|
125
|
+
function clear() {
|
|
126
|
+
if (props.isDisabled) return;
|
|
127
|
+
validationError.value = null;
|
|
128
|
+
commit(null);
|
|
129
|
+
if (fileInput.value) fileInput.value.value = "";
|
|
130
|
+
}
|
|
131
|
+
function onDragOver(event) {
|
|
132
|
+
if (props.mode !== "dropzone" || props.isDisabled) return;
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
dragOver.value = true;
|
|
135
|
+
}
|
|
136
|
+
function onDragLeave() {
|
|
137
|
+
dragOver.value = false;
|
|
138
|
+
}
|
|
139
|
+
function onDrop(event) {
|
|
140
|
+
if (props.mode !== "dropzone" || props.isDisabled) return;
|
|
141
|
+
event.preventDefault();
|
|
142
|
+
dragOver.value = false;
|
|
143
|
+
applyFiles(event.dataTransfer?.files);
|
|
144
|
+
}
|
|
145
|
+
return (_ctx, _cache) => {
|
|
146
|
+
return openBlock(), createBlock(_sfc_main$6, {
|
|
147
|
+
label: __props.label,
|
|
148
|
+
"input-id": inputId.value,
|
|
149
|
+
description: __props.description,
|
|
150
|
+
width: __props.width,
|
|
151
|
+
"is-label-hidden": __props.isLabelHidden,
|
|
152
|
+
"is-disabled": __props.isDisabled,
|
|
153
|
+
"is-optional": __props.isOptional,
|
|
154
|
+
"is-required": __props.isRequired,
|
|
155
|
+
status: status.value,
|
|
156
|
+
"status-variant": __props.statusVariant
|
|
157
|
+
}, {
|
|
158
|
+
default: withCtx((field) => [createElementVNode("div", {
|
|
159
|
+
class: "astryx-file-input astryx-bordered-control",
|
|
160
|
+
"data-mode": __props.mode,
|
|
161
|
+
"data-size": __props.size,
|
|
162
|
+
"data-status": status.value?.type,
|
|
163
|
+
"data-disabled": __props.isDisabled || void 0,
|
|
164
|
+
"data-drag": dragOver.value || void 0
|
|
165
|
+
}, [
|
|
166
|
+
createElementVNode("input", {
|
|
167
|
+
id: `${inputId.value}-file`,
|
|
168
|
+
ref: "file",
|
|
169
|
+
class: "astryx-file-input-native",
|
|
170
|
+
type: "file",
|
|
171
|
+
accept: __props.accept,
|
|
172
|
+
multiple: __props.isMultiple || void 0,
|
|
173
|
+
disabled: __props.isDisabled,
|
|
174
|
+
tabindex: "-1",
|
|
175
|
+
onChange
|
|
176
|
+
}, null, 40, _hoisted_2),
|
|
177
|
+
createElementVNode("button", {
|
|
178
|
+
id: inputId.value,
|
|
179
|
+
type: "button",
|
|
180
|
+
class: "astryx-file-input-trigger",
|
|
181
|
+
disabled: __props.isDisabled,
|
|
182
|
+
"aria-invalid": status.value?.type === "error" || void 0,
|
|
183
|
+
"aria-describedby": [field.describedBy, conveysRequired.value ? requiredId : void 0].filter(Boolean).join(" ") || void 0,
|
|
184
|
+
onClick: openPicker,
|
|
185
|
+
onDragover: onDragOver,
|
|
186
|
+
onDragleave: onDragLeave,
|
|
187
|
+
onDrop
|
|
188
|
+
}, [createVNode(_sfc_main$4, {
|
|
189
|
+
class: "astryx-file-input-icon",
|
|
190
|
+
icon: "upload",
|
|
191
|
+
size: "sm"
|
|
192
|
+
}), createElementVNode("span", {
|
|
193
|
+
class: "astryx-file-input-text",
|
|
194
|
+
"data-placeholder": !fileLabel.value || void 0
|
|
195
|
+
}, toDisplayString(fileLabel.value || placeholder.value), 9, _hoisted_4)], 40, _hoisted_3),
|
|
196
|
+
fileLabel.value && !__props.isDisabled ? (openBlock(), createBlock(_sfc_main$3, {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "astryx-input-clear-button",
|
|
199
|
+
variant: "ghost",
|
|
200
|
+
size: "sm",
|
|
201
|
+
label: clearLabel.value,
|
|
202
|
+
onClick: clear
|
|
203
|
+
}, {
|
|
204
|
+
default: withCtx(() => [createVNode(_sfc_main$2, { type: "clear" })]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
207
|
+
__props.isLoading ? (openBlock(), createBlock(_sfc_main$5, {
|
|
208
|
+
key: 1,
|
|
209
|
+
size: "sm"
|
|
210
|
+
})) : status.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
211
|
+
key: 2,
|
|
212
|
+
type: status.value.type
|
|
213
|
+
}, null, 8, ["type"])) : createCommentVNode("v-if", true)
|
|
214
|
+
], 8, _hoisted_1), conveysRequired.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
215
|
+
key: 0,
|
|
216
|
+
id: requiredId
|
|
217
|
+
}, {
|
|
218
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(messages).fileInput.required), 1)]),
|
|
219
|
+
_: 1
|
|
220
|
+
})) : createCommentVNode("v-if", true)]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, [
|
|
223
|
+
"label",
|
|
224
|
+
"input-id",
|
|
225
|
+
"description",
|
|
226
|
+
"width",
|
|
227
|
+
"is-label-hidden",
|
|
228
|
+
"is-disabled",
|
|
229
|
+
"is-optional",
|
|
230
|
+
"is-required",
|
|
231
|
+
"status",
|
|
232
|
+
"status-variant"
|
|
233
|
+
]);
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
//#endregion
|
|
238
|
+
export { _sfc_main as t };
|
|
@@ -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-
|
|
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 };
|
|
@@ -27,7 +27,15 @@ const ICON_GLYPHS = [
|
|
|
27
27
|
"chevronRight",
|
|
28
28
|
"check",
|
|
29
29
|
"moreHorizontal",
|
|
30
|
-
"copy"
|
|
30
|
+
"copy",
|
|
31
|
+
"calendar",
|
|
32
|
+
"clock",
|
|
33
|
+
"upload",
|
|
34
|
+
"arrowUp",
|
|
35
|
+
"arrowDown",
|
|
36
|
+
"close",
|
|
37
|
+
"funnel",
|
|
38
|
+
"image"
|
|
31
39
|
];
|
|
32
40
|
function isIconGlyph(value) {
|
|
33
41
|
return ICON_GLYPHS.includes(value);
|
|
@@ -75,4 +83,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
75
83
|
}
|
|
76
84
|
});
|
|
77
85
|
//#endregion
|
|
78
|
-
export { _sfc_main as t };
|
|
86
|
+
export { isIconGlyph as n, _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 };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { t as formatSize } from "./size-xcIqExkS.js";
|
|
2
|
+
import { i as regionPaddingStyle, o as useLayoutDividers } from "./LayoutPanel-C34uOq3e.js";
|
|
3
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, useAttrs, useTemplateRef } from "vue";
|
|
4
|
+
import "../styles/layout.css";
|
|
5
|
+
//#region src/Layout/LayoutFooter.vue
|
|
6
|
+
const _hoisted_1 = [
|
|
7
|
+
"role",
|
|
8
|
+
"aria-label",
|
|
9
|
+
"data-divider"
|
|
10
|
+
];
|
|
11
|
+
const _hoisted_2 = ["data-bleed"];
|
|
12
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
13
|
+
name: "AstryxLayoutFooter",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "LayoutFooter",
|
|
16
|
+
props: {
|
|
17
|
+
hasDivider: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
height: {},
|
|
22
|
+
padding: {},
|
|
23
|
+
label: {},
|
|
24
|
+
role: {}
|
|
25
|
+
},
|
|
26
|
+
setup(__props, { expose: __expose }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const attrs = useAttrs();
|
|
29
|
+
const root = useTemplateRef("root");
|
|
30
|
+
const dividers = useLayoutDividers();
|
|
31
|
+
__expose({ element: root });
|
|
32
|
+
const hasDivider = computed(() => props.hasDivider ?? dividers.value ?? false);
|
|
33
|
+
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
34
|
+
const rootClass = computed(() => ["astryx-layout-footer", attrs.class]);
|
|
35
|
+
const rootStyle = computed(() => [{ height: formatSize(props.height) }, attrs.style]);
|
|
36
|
+
const innerStyle = computed(() => regionPaddingStyle("--_layout-footer", props.padding));
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
39
|
+
ref_key: "root",
|
|
40
|
+
ref: root
|
|
41
|
+
}, forwardedAttrs.value, {
|
|
42
|
+
class: rootClass.value,
|
|
43
|
+
style: rootStyle.value,
|
|
44
|
+
role: __props.role,
|
|
45
|
+
"aria-label": __props.label,
|
|
46
|
+
"data-divider": hasDivider.value || void 0
|
|
47
|
+
}), [createElementVNode("div", {
|
|
48
|
+
class: "astryx-layout-footer__inner",
|
|
49
|
+
"data-bleed": __props.padding === 0 || void 0,
|
|
50
|
+
style: normalizeStyle(innerStyle.value)
|
|
51
|
+
}, [renderSlot(_ctx.$slots, "default")], 12, _hoisted_2)], 16, _hoisted_1);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { _sfc_main as t };
|