@astryx-vue/core 0.2.6 → 0.3.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/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-RAVA_cT1.js} +9 -3
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mrflO0Uy.js → AppShell-0wTvOo3H.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- 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/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DIVwbGr3.js → BottomSheet-JYMB_Ofl.js} +1 -1
- package/dist/{BottomSheet-eJ3FzTBD.js → BottomSheet-pt7m4CvC.js} +2 -0
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-DPVaziH4.js → Breadcrumbs-DIm4figq.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DAkOa7KK.js → Carousel-CA8zpD9v.js} +46 -29
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DVoI6UOA.js → Chat-Bmna9EOA.js} +5 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-D0BFubut.js} +4 -0
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D6wYS30d.js → CommandPalette-YHsUNg3V.js} +4 -0
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-DWLdKPGI.js} +11 -4
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-Bq9b3Ti5.js} +3 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-u2XKccpK.js → DateInput-DT518j5E.js} +2 -2
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Bqi5tlIA.js} +15 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DHp683jZ.js → DateTimeInput-A7m2O3bg.js} +2 -2
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-SM_BEOgM.js → DropdownMenu-CoOQVlRp.js} +1 -1
- package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-DEb2dSSP.js} +3 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-9X6eCUoY.js → Layout-C6RHllr-.js} +1 -1
- package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-DXOsaeQb.js} +3 -0
- package/dist/Link/index.d.ts +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-2CVyZDuB.js → Markdown-CvtN7HnF.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C3dkrM98.js → MobileNavToggle-DxGz0xKA.js} +9 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-Dlb7MLlW.js} +17 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BeV98x7X.js → MultiSelector-BtAUfQ3t.js} +3 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cc4BrjQg.js → Pagination-DqwNQFRp.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CtoBfVlD.js → Popover-DJf8POzL.js} +9 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-DvjiPqMZ.js} +10 -8
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-CJiaALHm.js → ScrollableArea-D4dCJv9I.js} +13 -2
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DuVozKNq.js → Selector-DJ2BhUTV.js} +3 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dtv8eA2j.js → SideNav-BF8mYDxl.js} +14 -5
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CjQEavuq.js → Stack-CTsTFfar.js} +10 -3
- package/dist/{Stack-D_Bhs-3r.js → Stack-kQlYbbL4.js} +8 -2
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-hqZMmzfU.js → Table-fecqnm7P.js} +11 -6
- package/dist/Text/index.d.ts +2 -2
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/{TimeField-ByiJKBRM.js → TimeField-CoHDGmsP.js} +2 -0
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-S8n946tp.js → TimeInput-D2k3Ux3p.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-41p035dX.js → Tokenizer-B5C_qY7t.js} +2 -0
- 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-CeSeEMX3.js → TopNav-Ciq0l1w7.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-k3xhFxkr.js → Typeahead-JP9RT87x.js} +2 -0
- package/dist/{index-CQCTKjIO.d.ts → index-0QGtSf3r.d.ts} +2 -2
- package/dist/{index-CsTbMVDS.d.ts → index-B3Fomy15.d.ts} +1 -1
- package/dist/{index-DQmK3Lq_.d.ts → index-B42oE_F-.d.ts} +1 -1
- package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/{index-CY-KvZ9B.d.ts → index-B9e52paP.d.ts} +1 -1
- package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-BNy3SW4S.d.ts → index-BVKivP59.d.ts} +1 -1
- package/dist/{index-BJMJ09K-.d.ts → index-BkjSF265.d.ts} +2 -2
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-DamRHh1i.d.ts → index-C2nbK2AA.d.ts} +2 -2
- package/dist/{index-DdGck82Y.d.ts → index-CICeEoZV.d.ts} +1 -1
- package/dist/{index-DYp2RWkM.d.ts → index-CL1T2j4y.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-uKnRGtzi.d.ts → index-CqE4Bf3Q.d.ts} +2 -2
- package/dist/{index-BPYzIIYn.d.ts → index-Crp3NFLW.d.ts} +1 -1
- package/dist/{index-jW-mP58D.d.ts → index-D41_xqjs.d.ts} +4 -4
- package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
- package/dist/{index-CdtZjkmG.d.ts → index-DUaLJO7l.d.ts} +61 -53
- package/dist/{index-WnUY4Kxu.d.ts → index-DVmgNb78.d.ts} +2 -2
- package/dist/{index-BUEPz7BL.d.ts → index-GI9xIV9l.d.ts} +3 -3
- package/dist/{index-BJSxFVXH.d.ts → index-IBAInumL.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-csA1lH_0.d.ts → index-xrzJC4wm.d.ts} +1 -1
- package/dist/{index-N7OVZ38M.d.ts → index-yT1yiiww.d.ts} +5 -5
- package/dist/index.d.ts +46 -45
- package/dist/index.js +66 -64
- package/dist/{types-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
- package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/package.json +7 -2
- package/styles/scrollbars.css +28 -0
|
@@ -5,21 +5,22 @@ import { n as useDismiss } from "./usePositionedLayer-Cru9_00b.js";
|
|
|
5
5
|
import { a as useAstryxLocale, o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
6
6
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
7
7
|
import { t as _sfc_main$6 } from "./Tooltip-C4Vaqd3G.js";
|
|
8
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
8
9
|
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
9
10
|
import { t as _sfc_main$8 } from "./Field-D5gUEGw4.js";
|
|
10
|
-
import { t as _sfc_main$9 } from "./DateInput-
|
|
11
|
-
import { t as _sfc_main$10 } from "./DateRangeInput-
|
|
12
|
-
import { t as _sfc_main$11 } from "./DateTimeInput-
|
|
11
|
+
import { t as _sfc_main$9 } from "./DateInput-DT518j5E.js";
|
|
12
|
+
import { t as _sfc_main$10 } from "./DateRangeInput-Bqi5tlIA.js";
|
|
13
|
+
import { t as _sfc_main$11 } from "./DateTimeInput-A7m2O3bg.js";
|
|
13
14
|
import { t as _sfc_main$12 } from "./Token-DsntTYhQ.js";
|
|
14
15
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-DwztMNjP.js";
|
|
15
|
-
import { t as _sfc_main$13 } from "./MultiSelector-
|
|
16
|
+
import { t as _sfc_main$13 } from "./MultiSelector-BtAUfQ3t.js";
|
|
16
17
|
import { t as _sfc_main$14 } from "./NumberInput-AZ9x3oja.js";
|
|
17
|
-
import { t as _sfc_main$15 } from "./Selector-
|
|
18
|
+
import { t as _sfc_main$15 } from "./Selector-DJ2BhUTV.js";
|
|
18
19
|
import { r as useTypeaheadMenu } from "./TypeaheadMenu-DBW6rHeO.js";
|
|
19
20
|
import { t as _sfc_main$16 } from "./TextInput-zFT1_qgI.js";
|
|
20
|
-
import { t as _sfc_main$17 } from "./TimeInput-
|
|
21
|
-
import { t as _sfc_main$18 } from "./Tokenizer-
|
|
22
|
-
import { t as _sfc_main$19 } from "./Typeahead-
|
|
21
|
+
import { t as _sfc_main$17 } from "./TimeInput-D2k3Ux3p.js";
|
|
22
|
+
import { t as _sfc_main$18 } from "./Tokenizer-B5C_qY7t.js";
|
|
23
|
+
import { t as _sfc_main$19 } from "./Typeahead-JP9RT87x.js";
|
|
23
24
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
24
25
|
import "../styles/visually-hidden-utility.css";
|
|
25
26
|
import "../styles/typeahead.css";
|
|
@@ -1555,6 +1556,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1555
1556
|
const queryMirror = ref("");
|
|
1556
1557
|
const anchorRef = useTemplateRef("anchorRef");
|
|
1557
1558
|
const listboxRef = useTemplateRef("listboxRef");
|
|
1559
|
+
useScrollbars(listboxRef);
|
|
1558
1560
|
const inputRef = useTemplateRef("inputRef");
|
|
1559
1561
|
const editorRef = useTemplateRef("editorRef");
|
|
1560
1562
|
const tokenEls = /* @__PURE__ */ new Map();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-
|
|
1
|
+
import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-COgrQZIL.js";
|
|
2
2
|
export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
|
package/dist/Radio/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-
|
|
1
|
+
import { Ar as RadioChangeEvent, Br as RadioStatus, Fr as RadioOption, Hr as RadioValue, Ir as RadioOrientation, Lr as RadioProps, Mr as RadioGroupProps, Nr as RadioGroupSlots, Or as _default$1, Rr as RadioSize, Vr as RadioStatusType, jr as RadioGroupEmits, kr as _default, zr as RadioSlots } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-
|
|
1
|
+
import { Dr as _default, Er as RadioListItemProps, Pr as RadioListProps, Tr as _default$1 } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-
|
|
1
|
+
import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-Crp3NFLW.js";
|
|
2
2
|
export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-
|
|
1
|
+
import { Cr as ScrollableAreaProps, Sr as _default, wr as ScrollableAreaSlots } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../ScrollableArea-
|
|
1
|
+
import { t as _sfc_main } from "../ScrollableArea-D4dCJv9I.js";
|
|
2
2
|
export { _sfc_main as ScrollableArea };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as useScrollableArea } from "./useScrollableArea-DDk_CluT.js";
|
|
2
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
3
|
import { i as spacingVariable, n as resolvePadding, t as formatSize } from "./size-Cpn_wzXi.js";
|
|
3
|
-
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, useAttrs } from "vue";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, shallowRef, unref, useAttrs } from "vue";
|
|
4
5
|
import "../styles/scrollable-area.css";
|
|
5
6
|
//#region src/ScrollableArea/ScrollableArea.vue
|
|
6
7
|
const _hoisted_1 = ["data-axis", "data-full-bleed"];
|
|
@@ -22,6 +23,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
22
23
|
type: Boolean,
|
|
23
24
|
default: false
|
|
24
25
|
},
|
|
26
|
+
scrollbars: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
25
30
|
padding: { default: 0 },
|
|
26
31
|
paddingInline: {},
|
|
27
32
|
paddingInlineStart: {},
|
|
@@ -34,6 +39,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
34
39
|
const props = __props;
|
|
35
40
|
const attrs = useAttrs();
|
|
36
41
|
const scroll = useScrollableArea(props);
|
|
42
|
+
const viewportEl = shallowRef(null);
|
|
43
|
+
function bindViewport(el) {
|
|
44
|
+
scroll.viewport(el);
|
|
45
|
+
viewportEl.value = el instanceof HTMLElement ? el : null;
|
|
46
|
+
}
|
|
47
|
+
useScrollbars(viewportEl, { enabled: () => props.scrollbars });
|
|
37
48
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
38
49
|
const rootClass = computed(() => ["astryx-scrollable-area", attrs.class]);
|
|
39
50
|
const rootStyle = computed(() => [
|
|
@@ -57,7 +68,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
57
68
|
};
|
|
58
69
|
});
|
|
59
70
|
return (_ctx, _cache) => {
|
|
60
|
-
return openBlock(), createElementBlock("div", mergeProps({ ref:
|
|
71
|
+
return openBlock(), createElementBlock("div", mergeProps({ ref: bindViewport }, {
|
|
61
72
|
...forwardedAttrs.value,
|
|
62
73
|
...unref(scroll).viewportAttrs.value
|
|
63
74
|
}, {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ScrollbarsContext, c as ScrollbarsProviderProps, d as UseScrollbarsResult, i as ScrollbarsAutoHide, l as ScrollbarsProviderSlots, n as _default, o as ScrollbarsHandle, r as scrollbarsKey, s as ScrollbarsOptions, t as useScrollbars, u as UseScrollbarsOptions } from "../index-fAZaRruV.js";
|
|
2
|
+
export { type ScrollbarsAutoHide, type ScrollbarsContext, type ScrollbarsHandle, type ScrollbarsOptions, _default as ScrollbarsProvider, type ScrollbarsProviderProps, type ScrollbarsProviderSlots, type UseScrollbarsOptions, type UseScrollbarsResult, scrollbarsKey, useScrollbars };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { n as scrollbarsKey } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
|
+
import { computed, defineComponent, provide, renderSlot } from "vue";
|
|
3
|
+
import { OverlayScrollbars } from "overlayscrollbars";
|
|
4
|
+
import "../styles/scrollbars.css";
|
|
5
|
+
//#region src/Scrollbars/options.ts
|
|
6
|
+
function isPlainObject(value) {
|
|
7
|
+
if (value === null || typeof value !== "object") return false;
|
|
8
|
+
const proto = Object.getPrototypeOf(value);
|
|
9
|
+
return proto === Object.prototype || proto === null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 把 `override` 深合并到 `base` 上,返回新对象,两个入参都不会被改动。
|
|
13
|
+
* 只有纯对象会递归合并,数组和其他值直接用 `override` 的。
|
|
14
|
+
* `override` 里值为 `undefined` 的字段会被忽略。
|
|
15
|
+
*/
|
|
16
|
+
function mergeOptions(base, override) {
|
|
17
|
+
const result = { ...base };
|
|
18
|
+
if (!override) return result;
|
|
19
|
+
for (const [key, value] of Object.entries(override)) {
|
|
20
|
+
if (value === void 0) continue;
|
|
21
|
+
const current = result[key];
|
|
22
|
+
result[key] = isPlainObject(current) && isPlainObject(value) ? mergeOptions(current, value) : value;
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/Scrollbars/ScrollbarsProvider.vue
|
|
28
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
29
|
+
name: "AstryxScrollbarsProvider",
|
|
30
|
+
inheritAttrs: false,
|
|
31
|
+
__name: "ScrollbarsProvider",
|
|
32
|
+
props: {
|
|
33
|
+
enabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
},
|
|
37
|
+
autoHide: { default: "scroll" },
|
|
38
|
+
autoHideDelay: { default: 800 },
|
|
39
|
+
options: { default: void 0 }
|
|
40
|
+
},
|
|
41
|
+
setup(__props) {
|
|
42
|
+
const props = __props;
|
|
43
|
+
/** 什么都不做的句柄:元素已被别处接管时使用,避免一方销毁连带另一方。 */
|
|
44
|
+
const noopHandle = {
|
|
45
|
+
update: () => {},
|
|
46
|
+
destroy: () => {}
|
|
47
|
+
};
|
|
48
|
+
const options = computed(() => mergeOptions({ scrollbars: {
|
|
49
|
+
theme: "os-theme-astryx",
|
|
50
|
+
autoHide: props.autoHide,
|
|
51
|
+
autoHideDelay: props.autoHideDelay
|
|
52
|
+
} }, props.options));
|
|
53
|
+
function mount(element, initial) {
|
|
54
|
+
if (OverlayScrollbars(element)) return noopHandle;
|
|
55
|
+
const instance = OverlayScrollbars({
|
|
56
|
+
target: element,
|
|
57
|
+
elements: { viewport: element }
|
|
58
|
+
}, initial);
|
|
59
|
+
return {
|
|
60
|
+
update: (next) => instance.options(next, true),
|
|
61
|
+
destroy: () => instance.destroy()
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
provide(scrollbarsKey, {
|
|
65
|
+
enabled: computed(() => props.enabled),
|
|
66
|
+
options,
|
|
67
|
+
mount
|
|
68
|
+
});
|
|
69
|
+
return (_ctx, _cache) => {
|
|
70
|
+
return renderSlot(_ctx.$slots, "default");
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-
|
|
1
|
+
import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-gW0HW02U.js";
|
|
2
2
|
export { _default as SegmentedControl, type SegmentedControlContextValue, type SegmentedControlEmits, _default$1 as SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemSlots, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { br as SelectableCardProps, vr as _default, xr as SelectableCardSlots, yr as SelectableCardEmits } from "../index-
|
|
1
|
+
import { br as SelectableCardProps, vr as _default, xr as SelectableCardSlots, yr as SelectableCardEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as SelectableCard_default } from "../SelectableCard-
|
|
1
|
+
import { n as _sfc_main, t as SelectableCard_default } from "../SelectableCard-Cku4dRzc.js";
|
|
2
2
|
export { _sfc_main as SelectableCard, SelectableCard_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { n as useClickableContainer } from "./useClickableContainer-DyNpnSEa.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./Card-
|
|
3
|
+
import { t as _sfc_main$2 } from "./Card-B-I24X9S.js";
|
|
4
4
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, openBlock, renderSlot, useModel, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/clickable-card.css";
|
|
6
6
|
//#region src/SelectableCard/SelectableCard.vue
|
package/dist/Selector/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-
|
|
1
|
+
import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-yT1yiiww.js";
|
|
2
2
|
export { _default as Selector, type SelectorEmits, type SelectorEntry, type SelectorIndicatorPosition, type SelectorOption, type SelectorOptionInput, type SelectorPresentation, type SelectorProps, type SelectorSection, type SelectorSize, type SelectorSlots, type SelectorStatus, type SelectorStatusInput, type SelectorStatusVariant, type SelectorVariant };
|
package/dist/Selector/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Selector-
|
|
1
|
+
import { t as _sfc_main } from "../Selector-DJ2BhUTV.js";
|
|
2
2
|
export { _sfc_main as Selector };
|
|
@@ -6,7 +6,8 @@ import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
|
|
|
6
6
|
import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
|
|
7
7
|
import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
|
|
8
8
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
9
|
-
import { t as
|
|
9
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
10
|
+
import { t as _sfc_main$3 } from "./BottomSheet-pt7m4CvC.js";
|
|
10
11
|
import { t as _sfc_main$4 } from "./Icon-bteSId7T.js";
|
|
11
12
|
import { t as _sfc_main$5 } from "./Spinner-9cYUCnDy.js";
|
|
12
13
|
import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
|
|
@@ -196,6 +197,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
196
197
|
const listboxRef = useTemplateRef("listboxRef");
|
|
197
198
|
const searchInputRef = useTemplateRef("searchInputRef");
|
|
198
199
|
const sheetSlot = useTemplateRef("sheetSlot");
|
|
200
|
+
useScrollbars(listboxRef);
|
|
199
201
|
const isSheet = computed(() => props.presentation === "bottom-sheet");
|
|
200
202
|
const sheetLabel = computed(() => props.label || resolvedPlaceholder.value);
|
|
201
203
|
const isEnabled = control.canActivate;
|
package/dist/SideNav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $n as _default$3, Qn as _default$4, _r as useSideNavCollapse, ar as SideNavCollapseButtonSlots, cr as SideNavEmits, dr as SideNavItemEmits, er as _default$2, fr as SideNavItemProps, gr as SideNavCollapseContext, hr as SideNavSectionProps, ir as SideNavCollapseButtonSize, lr as SideNavHandle, mr as SideNavResizable, nr as _default, or as SideNavCollapsible, pr as SideNavProps, rr as SideNavCollapseButtonProps, sr as SideNavControlledCollapsible, tr as _default$1, ur as SideNavHeadingProps } from "../index-
|
|
1
|
+
import { $n as _default$3, Qn as _default$4, _r as useSideNavCollapse, ar as SideNavCollapseButtonSlots, cr as SideNavEmits, dr as SideNavItemEmits, er as _default$2, fr as SideNavItemProps, gr as SideNavCollapseContext, hr as SideNavSectionProps, ir as SideNavCollapseButtonSize, lr as SideNavHandle, mr as SideNavResizable, nr as _default, or as SideNavCollapsible, pr as SideNavProps, rr as SideNavCollapseButtonProps, sr as SideNavControlledCollapsible, tr as _default$1, ur as SideNavHeadingProps } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
|
package/dist/SideNav/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as useSideNavCollapse } from "../context-BjNya0v8.js";
|
|
2
|
-
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-
|
|
2
|
+
import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-BF8mYDxl.js";
|
|
3
3
|
export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
|
|
@@ -4,6 +4,7 @@ import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
|
|
|
4
4
|
import { n as useResizable, r as useHotkeys } from "./useResizable-B3ahKLoZ.js";
|
|
5
5
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
6
6
|
import { t as _sfc_main$6 } from "./Tooltip-C4Vaqd3G.js";
|
|
7
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
7
8
|
import { i as useSideNavRenderMode, r as useSideNavCollapse, t as sideNavCollapseKey } from "./context-BjNya0v8.js";
|
|
8
9
|
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
9
10
|
import { n as resolveNavRoot } from "./link-C4_WogdF.js";
|
|
@@ -11,7 +12,7 @@ import { t as _sfc_main$8 } from "./NavItem-BBIGSvDj.js";
|
|
|
11
12
|
import { t as _sfc_main$9 } from "./NavDisclosure-C_fugrQ3.js";
|
|
12
13
|
import { t as _sfc_main$10 } from "./ResizeHandle-q4nD_586.js";
|
|
13
14
|
import { t as _sfc_main$11 } from "./NavHeadingSurface-B3yJspSN.js";
|
|
14
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, inject, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
15
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, inject, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, useTemplateRef, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
15
16
|
import "../styles/visually-hidden.css";
|
|
16
17
|
import "../styles/side-nav.css";
|
|
17
18
|
//#region src/SideNav/SideNavCollapseButton.vue
|
|
@@ -202,7 +203,10 @@ const _hoisted_4$3 = {
|
|
|
202
203
|
key: 0,
|
|
203
204
|
class: "astryx-side-nav__top-content"
|
|
204
205
|
};
|
|
205
|
-
const _hoisted_5$2 = {
|
|
206
|
+
const _hoisted_5$2 = {
|
|
207
|
+
ref: "body",
|
|
208
|
+
class: "astryx-side-nav__body"
|
|
209
|
+
};
|
|
206
210
|
const _hoisted_6$2 = {
|
|
207
211
|
key: 1,
|
|
208
212
|
class: "astryx-side-nav__bottom"
|
|
@@ -224,7 +228,10 @@ const _hoisted_11 = {
|
|
|
224
228
|
key: 1,
|
|
225
229
|
class: "astryx-side-nav__top-content"
|
|
226
230
|
};
|
|
227
|
-
const _hoisted_12 = {
|
|
231
|
+
const _hoisted_12 = {
|
|
232
|
+
ref: "body",
|
|
233
|
+
class: "astryx-side-nav__body"
|
|
234
|
+
};
|
|
228
235
|
const _hoisted_13 = {
|
|
229
236
|
key: 1,
|
|
230
237
|
class: "astryx-side-nav__bottom"
|
|
@@ -264,6 +271,8 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
264
271
|
const messages = useAstryxMessages();
|
|
265
272
|
const navId = `astryx-side-nav-${useId()}`;
|
|
266
273
|
const localCollapsed = ref(false);
|
|
274
|
+
const bodyEl = useTemplateRef("body");
|
|
275
|
+
useScrollbars(bodyEl);
|
|
267
276
|
const config = computed(() => typeof props.collapsible === "object" ? props.collapsible : {});
|
|
268
277
|
function controlledCollapsed() {
|
|
269
278
|
if (props.isCollapsed !== void 0) return props.isCollapsed;
|
|
@@ -340,7 +349,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
340
349
|
return (_ctx, _cache) => {
|
|
341
350
|
return unref(renderMode) === "topbar" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "header"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_2$3, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : unref(renderMode) === "drawer" || unref(renderMode) === "drawer-content" ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
|
|
342
351
|
slots.top ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true),
|
|
343
|
-
createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")]),
|
|
352
|
+
createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")], 512),
|
|
344
353
|
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$1, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
345
354
|
])) : (openBlock(), createElementBlock("div", {
|
|
346
355
|
key: 2,
|
|
@@ -359,7 +368,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
359
368
|
key: 0,
|
|
360
369
|
label: config.value.buttonLabel
|
|
361
370
|
}, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
|
|
362
|
-
createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "default")]),
|
|
371
|
+
createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "default")], 512),
|
|
363
372
|
hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_14, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
|
|
364
373
|
], 14, _hoisted_8$1), showResizeHandle.value ? (openBlock(), createBlock(_sfc_main$10, {
|
|
365
374
|
key: 0,
|
package/dist/Stack/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../Stack-
|
|
2
|
-
import { n as _sfc_main$2, r as _sfc_main, t as _sfc_main$3 } from "../Stack-
|
|
1
|
+
import { t as _sfc_main$1 } from "../Stack-kQlYbbL4.js";
|
|
2
|
+
import { n as _sfc_main$2, r as _sfc_main, t as _sfc_main$3 } from "../Stack-CTsTFfar.js";
|
|
3
3
|
export { _sfc_main as HStack, _sfc_main$1 as Stack, _sfc_main$2 as StackItem, _sfc_main$3 as VStack };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./Stack-kQlYbbL4.js";
|
|
3
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
3
4
|
import "../styles/stack.css";
|
|
4
5
|
//#region src/Stack/HStack.vue
|
|
5
6
|
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
@@ -52,12 +53,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
52
53
|
size: { default: "static" }
|
|
53
54
|
},
|
|
54
55
|
setup(__props) {
|
|
56
|
+
const props = __props;
|
|
55
57
|
const attrs = useAttrs();
|
|
58
|
+
const root = useTemplateRef("root");
|
|
59
|
+
useScrollbars(root, { enabled: () => props.isScrollable });
|
|
56
60
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
57
61
|
const rootClass = computed(() => ["astryx-stack-item", attrs.class]);
|
|
58
62
|
const rootStyle = computed(() => attrs.style);
|
|
59
63
|
return (_ctx, _cache) => {
|
|
60
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps(
|
|
64
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
65
|
+
ref_key: "root",
|
|
66
|
+
ref: root
|
|
67
|
+
}, forwardedAttrs.value, {
|
|
61
68
|
class: rootClass.value,
|
|
62
69
|
"data-cross-align-self": __props.crossAlignSelf,
|
|
63
70
|
"data-scrollable": __props.isScrollable || void 0,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
2
3
|
import "../styles/stack.css";
|
|
3
4
|
//#region src/Stack/Stack.vue
|
|
4
5
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -33,6 +34,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
33
34
|
setup(__props) {
|
|
34
35
|
const props = __props;
|
|
35
36
|
const attrs = useAttrs();
|
|
37
|
+
const root = useTemplateRef("root");
|
|
38
|
+
useScrollbars(root, { enabled: () => props.isScrollable });
|
|
36
39
|
const spacingVariables = {
|
|
37
40
|
0: "var(--astryx-spacing-0, 0px)",
|
|
38
41
|
.5: "var(--astryx-spacing-0-5, 2px)",
|
|
@@ -76,7 +79,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
76
79
|
return [attrs.style, stackStyle];
|
|
77
80
|
});
|
|
78
81
|
return (_ctx, _cache) => {
|
|
79
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps(
|
|
82
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
83
|
+
ref_key: "root",
|
|
84
|
+
ref: root
|
|
85
|
+
}, forwardedAttrs.value, {
|
|
80
86
|
class: rootClass.value,
|
|
81
87
|
"data-cross-align": crossAlign.value,
|
|
82
88
|
"data-direction": __props.direction,
|
package/dist/Stepper/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-
|
|
1
|
+
import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-CVn0GBdB.js";
|
|
2
2
|
export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gn as SwitchChangeEvent, Jn as SwitchSize, Kn as SwitchEmits, Un as _default, Wn as SwitchChangeAction, Xn as SwitchStatus, Yn as SwitchSlots, Zn as SwitchStatusType, qn as SwitchProps } from "../index-
|
|
1
|
+
import { Gn as SwitchChangeEvent, Jn as SwitchSize, Kn as SwitchEmits, Un as _default, Wn as SwitchChangeAction, Xn as SwitchStatus, Yn as SwitchSlots, Zn as SwitchStatusType, qn as SwitchProps } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
|
package/dist/TabList/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TabListProps, c as TabMenuOption, d as TabSlots, i as TabListLayout, l as TabMenuProps, n as _default$1, o as TabListSize, r as _default, s as TabListTab, t as _default$2, u as TabProps } from "../index-
|
|
1
|
+
import { a as TabListProps, c as TabMenuOption, d as TabSlots, i as TabListLayout, l as TabMenuProps, n as _default$1, o as TabListSize, r as _default, s as TabListTab, t as _default$2, u as TabProps } from "../index-C2nbK2AA.js";
|
|
2
2
|
export { _default as Tab, _default$1 as TabList, type TabListLayout, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps, type TabSlots };
|
package/dist/Table/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as TableSemanticRowStatus, An as columnResizeStep, At as _default$4, Bn as resolveColumnFloorWidths, Bt as useTableTreeState, Cn as useTableColumnSettings, Dn as UseTableColumnResizeConfig, Dt as _default$7, En as ColumnResizeSnapshot, Fn as cellText, Ft as TableTreeRowMeta, Gt as useTableStickyColumns, Hn as sortRows, Ht as UseTableStickyColumnsConfig, In as generateColumns, It as UseTableTreeDataConfig, Jt as useTableSortableState, Kt as UseTableSortableConfig, Ln as paginateData, Lt as UseTableTreeStateConfig, Mn as resizeColumnWidths, Mt as _default$2, Nn as useTableColumnResize, Nt as _default$1, On as columnResizeDirectionSign, Ot as _default$6, Pn as capitalize, Pt as _default, Qt as TableRowStatusName, Rn as pixel, Rt as flattenTree, Sn as UseTableColumnSettingsConfig, Tn as ColumnResizePlan, Ut as resolveStickySide, Vn as resolveColumnWidths, Vt as StickySide, Wt as stickyOffsets, Xt as TableRowStatus, Yt as TableCustomRowStatus, Zt as TableRowStatusColor, _n as applyTableFilters, an as useTableRowExpansion, bn as ColumnSettingsOption, cn as useTablePagination, dn as buildGroupedRows, en as UseTableRowStatusConfig, fn as isTableGroupHeader, gn as UseTableFilteringConfig, hn as UseTableFilterStateOptions, in as UseTableRowExpansionConfig, jn as isProportionalColumnWidth, jt as _default$3, kn as columnResizeMinWidth, kt as _default$5, ln as isInteractiveRowClick, mn as TableFilterStateHandle, nn as UseTableRowIndexConfig, on as TablePaginationVariant, pn as useTableGroupedRows, qt as useTableSortable, rn as useTableRowIndex, sn as UseTablePaginationConfig, tn as useTableRowStatus, un as UseTableGroupedRowsConfig, vn as useTableFilterState, wn as useTableColumnSettingsState, xn as TableColumnSettingsState, yn as useTableFiltering, zn as proportional, zt as useTableTreeData } from "../index-
|
|
1
|
+
import { $t as TableSemanticRowStatus, An as columnResizeStep, At as _default$4, Bn as resolveColumnFloorWidths, Bt as useTableTreeState, Cn as useTableColumnSettings, Dn as UseTableColumnResizeConfig, Dt as _default$7, En as ColumnResizeSnapshot, Fn as cellText, Ft as TableTreeRowMeta, Gt as useTableStickyColumns, Hn as sortRows, Ht as UseTableStickyColumnsConfig, In as generateColumns, It as UseTableTreeDataConfig, Jt as useTableSortableState, Kt as UseTableSortableConfig, Ln as paginateData, Lt as UseTableTreeStateConfig, Mn as resizeColumnWidths, Mt as _default$2, Nn as useTableColumnResize, Nt as _default$1, On as columnResizeDirectionSign, Ot as _default$6, Pn as capitalize, Pt as _default, Qt as TableRowStatusName, Rn as pixel, Rt as flattenTree, Sn as UseTableColumnSettingsConfig, Tn as ColumnResizePlan, Ut as resolveStickySide, Vn as resolveColumnWidths, Vt as StickySide, Wt as stickyOffsets, Xt as TableRowStatus, Yt as TableCustomRowStatus, Zt as TableRowStatusColor, _n as applyTableFilters, an as useTableRowExpansion, bn as ColumnSettingsOption, cn as useTablePagination, dn as buildGroupedRows, en as UseTableRowStatusConfig, fn as isTableGroupHeader, gn as UseTableFilteringConfig, hn as UseTableFilterStateOptions, in as UseTableRowExpansionConfig, jn as isProportionalColumnWidth, jt as _default$3, kn as columnResizeMinWidth, kt as _default$5, ln as isInteractiveRowClick, mn as TableFilterStateHandle, nn as UseTableRowIndexConfig, on as TablePaginationVariant, pn as useTableGroupedRows, qt as useTableSortable, rn as useTableRowIndex, sn as UseTablePaginationConfig, tn as useTableRowStatus, un as UseTableGroupedRowsConfig, vn as useTableFilterState, wn as useTableColumnSettingsState, xn as TableColumnSettingsState, yn as useTableFiltering, zn as proportional, zt as useTableTreeData } from "../index-DUaLJO7l.js";
|
|
2
2
|
import { A as TablePanelPatch, B as TableSortEntry, C as TableFilterField, D as TableFilterVariant, E as TableFilterValue, F as TableRowProps, G as TableSelectionState, H as TableTextOverflow, I as TableSelectionToolbarProps, J as useTableSelection, K as UseTableSelectionConfig, L as TableSelectionToolbarSlots, M as TableProps, N as TableRowMenuItem, O as TableGroupPatch, P as TableRowPatch, S as TableDividers, T as TableFilterState, U as TableVerticalAlign, V as TableSortState, W as TableSelectedKeysSetter, Y as useTableSelectionState, _ as TableCellProps, b as TableColumnResizeContribution, g as TableCellPatch, h as ProportionalWidth, j as TablePlugin, k as TableHeaderPatch, m as PixelWidth, p as ColumnWidth, q as UseTableSelectionStateConfig, v as TableColumn, w as TableFilterFieldType, x as TableDensity, y as TableColumnAlign, z as TableSortDirection } from "../useResizable-DDwPpPe6.js";
|
|
3
3
|
export { type ColumnResizePlan, type ColumnResizeSnapshot, type ColumnSettingsOption, type ColumnWidth, type PixelWidth, type ProportionalWidth, type StickySide, _default as Table, _default$1 as TableBody, _default$2 as TableCell, type TableCellPatch, type TableCellProps, type TableColumn, type TableColumnAlign, type TableColumnResizeContribution, type TableColumnSettingsState, type TableCustomRowStatus, type TableDensity, type TableDividers, type TableFilterField, type TableFilterFieldType, type TableFilterState, type TableFilterStateHandle, type TableFilterValue, type TableFilterVariant, _default$3 as TableFooter, type TableGroupPatch, _default$4 as TableHeader, _default$5 as TableHeaderCell, type TableHeaderPatch, type TablePaginationVariant, type TablePanelPatch, type TablePlugin, type TableProps, _default$6 as TableRow, type TableRowMenuItem, type TableRowPatch, type TableRowProps, type TableRowStatus, type TableRowStatusColor, type TableRowStatusName, type TableSelectedKeysSetter, type TableSelectionState, _default$7 as TableSelectionToolbar, type TableSelectionToolbarProps, type TableSelectionToolbarSlots, type TableSemanticRowStatus, type TableSortDirection, type TableSortEntry, type TableSortState, type TableTextOverflow, type TableTreeRowMeta, type TableVerticalAlign, type UseTableColumnResizeConfig, type UseTableColumnSettingsConfig, type UseTableFilterStateOptions, type UseTableFilteringConfig, type UseTableGroupedRowsConfig, type UseTablePaginationConfig, type UseTableRowExpansionConfig, type UseTableRowIndexConfig, type UseTableRowStatusConfig, type UseTableSelectionConfig, type UseTableSelectionStateConfig, type UseTableSortableConfig, type UseTableStickyColumnsConfig, type UseTableTreeDataConfig, type UseTableTreeStateConfig, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTableGroupedRows, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
package/dist/Table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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$3, b as useTableRowIndex, c as _sfc_main, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$4, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$6, o as _sfc_main$2, p as stickyOffsets, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as cellText } from "../Table-
|
|
1
|
+
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$3, b as useTableRowIndex, c as _sfc_main, d as useTableTreeState, f as resolveStickySide, g as useTableSortableState, h as useTableSortable, i as _sfc_main$4, j as useTableColumnSettingsState, k as useTableFiltering, l as flattenTree, m as useTableStickyColumns, n as _sfc_main$6, o as _sfc_main$2, p as stickyOffsets, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main$7, u as useTableTreeData, v as useTableSelectionState, w as buildGroupedRows, x as useTableRowExpansion, y as useTableRowStatus, z as cellText } from "../Table-fecqnm7P.js";
|
|
2
2
|
export { _sfc_main as Table, _sfc_main$1 as TableBody, _sfc_main$2 as TableCell, _sfc_main$3 as TableFooter, _sfc_main$4 as TableHeader, _sfc_main$5 as TableHeaderCell, _sfc_main$6 as TableRow, _sfc_main$7 as TableSelectionToolbar, applyTableFilters, buildGroupedRows, capitalize, cellText, columnResizeDirectionSign, columnResizeMinWidth, columnResizeStep, flattenTree, generateColumns, isInteractiveRowClick, isProportionalColumnWidth, isTableGroupHeader, paginateData, paginateData as paginateTableData, pixel, proportional, resizeColumnWidths, resolveColumnFloorWidths, resolveColumnWidths, resolveStickySide, sortRows, stickyOffsets, useTableColumnResize, useTableColumnSettings, useTableColumnSettingsState, useTableFilterState, useTableFiltering, useTableGroupedRows, useTablePagination, useTableRowExpansion, useTableRowIndex, useTableRowStatus, useTableSelection, useTableSelectionState, useTableSortable, useTableSortableState, useTableStickyColumns, useTableTreeData, useTableTreeState };
|
|
@@ -3,17 +3,18 @@ import { t as _sfc_main$15 } from "./Button-B6Hj_O_s.js";
|
|
|
3
3
|
import { t as _sfc_main$16 } from "./IconButton-DDNgNl7B.js";
|
|
4
4
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
5
5
|
import { t as _sfc_main$17 } from "./Tooltip-C4Vaqd3G.js";
|
|
6
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
7
|
import { t as _sfc_main$18 } from "./Icon-bteSId7T.js";
|
|
7
8
|
import { t as _sfc_main$19 } from "./CheckboxInput-BS9J6edf.js";
|
|
8
|
-
import { t as _sfc_main$20 } from "./Popover-
|
|
9
|
-
import { t as _sfc_main$21 } from "./DateInput-
|
|
10
|
-
import { t as _sfc_main$22 } from "./MultiSelector-
|
|
9
|
+
import { t as _sfc_main$20 } from "./Popover-DJf8POzL.js";
|
|
10
|
+
import { t as _sfc_main$21 } from "./DateInput-DT518j5E.js";
|
|
11
|
+
import { t as _sfc_main$22 } from "./MultiSelector-BtAUfQ3t.js";
|
|
11
12
|
import { t as _sfc_main$23 } from "./NumberInput-AZ9x3oja.js";
|
|
12
|
-
import { t as _sfc_main$24 } from "./Pagination-
|
|
13
|
-
import { t as _sfc_main$25 } from "./Selector-
|
|
13
|
+
import { t as _sfc_main$24 } from "./Pagination-DqwNQFRp.js";
|
|
14
|
+
import { t as _sfc_main$25 } from "./Selector-DJ2BhUTV.js";
|
|
14
15
|
import { t as _sfc_main$26 } from "./TextInput-zFT1_qgI.js";
|
|
15
16
|
import { t as _sfc_main$27 } from "./Toolbar-BrgvvTCk.js";
|
|
16
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, watch, withCtx, withModifiers } from "vue";
|
|
17
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, h, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
17
18
|
import "../styles/table.css";
|
|
18
19
|
function proportional(value = 1, options) {
|
|
19
20
|
return {
|
|
@@ -1843,6 +1844,7 @@ const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
|
1843
1844
|
const props = __props;
|
|
1844
1845
|
const messages = useAstryxMessages();
|
|
1845
1846
|
const scrollRoot = ref(null);
|
|
1847
|
+
useScrollbars(scrollRoot);
|
|
1846
1848
|
const menu = ref(null);
|
|
1847
1849
|
const resolvedColumns = computed(() => props.plugins.reduce((columns, plugin) => plugin.transformColumns?.(columns) ?? columns, [...props.columns]));
|
|
1848
1850
|
const widths = computed(() => resolveColumnWidths(resolvedColumns.value));
|
|
@@ -2384,6 +2386,8 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
|
2384
2386
|
const plugins = computed(() => Object.values(props.plugins ?? {}).filter((plugin) => plugin != null));
|
|
2385
2387
|
const dataMode = computed(() => props.data != null);
|
|
2386
2388
|
const columns = computed(() => props.columns ?? []);
|
|
2389
|
+
const scrollEl = useTemplateRef("scroll");
|
|
2390
|
+
useScrollbars(scrollEl);
|
|
2387
2391
|
return (_ctx, _cache) => {
|
|
2388
2392
|
return dataMode.value ? (openBlock(), createBlock(_sfc_main$8, {
|
|
2389
2393
|
key: 0,
|
|
@@ -2424,6 +2428,7 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
|
2424
2428
|
"row-count"
|
|
2425
2429
|
])) : (openBlock(), createElementBlock("div", {
|
|
2426
2430
|
key: 1,
|
|
2431
|
+
ref: "scroll",
|
|
2427
2432
|
class: "astryx-table-scroll",
|
|
2428
2433
|
role: "group",
|
|
2429
2434
|
"aria-label": __props.label ?? unref(messages).table.label
|
package/dist/Text/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as TextProps, c as TextType, d as TextWrap, i as TextJustify, l as TextWeight, n as TextColor, o as TextSize, r as TextDisplay, s as TextTruncateTooltip, t as TextAs, u as TextWordBreak } from "../types-
|
|
2
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { a as TextProps, c as TextType, d as TextWrap, i as TextJustify, l as TextWeight, n as TextColor, o as TextSize, r as TextDisplay, s as TextTruncateTooltip, t as TextAs, u as TextWordBreak } from "../types-Ckih2YJi.js";
|
|
2
|
+
import { t as _default } from "../index-CICeEoZV.js";
|
|
3
3
|
export { _default as Text, type TextAs, type TextColor, type TextDisplay, type TextJustify, type TextProps, type TextSize, type TextTruncateTooltip, type TextType, type TextWeight, type TextWordBreak, type TextWrap };
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ct as TextAreaSlots, Et as TextAreaWrap, St as TextAreaSize, Tt as TextAreaStatusType, _t as TextAreaChangeAction, bt as TextAreaProps, gt as _default, vt as TextAreaChangeEvent, wt as TextAreaStatus, xt as TextAreaResize, yt as TextAreaEmits } from "../index-
|
|
1
|
+
import { Ct as TextAreaSlots, Et as TextAreaWrap, St as TextAreaSize, Tt as TextAreaStatusType, _t as TextAreaChangeAction, bt as TextAreaProps, gt as _default, vt as TextAreaChangeEvent, wt as TextAreaStatus, xt as TextAreaResize, yt as TextAreaEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as TextArea, type TextAreaChangeAction, type TextAreaChangeEvent, type TextAreaEmits, type TextAreaProps, type TextAreaResize, type TextAreaSize, type TextAreaSlots, type TextAreaStatus, type TextAreaStatusType, type TextAreaWrap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-
|
|
1
|
+
import { ct as TextInputChangeEvent, dt as TextInputSize, ft as TextInputSlots, ht as TextInputType, lt as TextInputEmits, mt as TextInputStatusType, ot as _default, pt as TextInputStatus, st as TextInputChangeAction, ut as TextInputProps } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as TextInput, type TextInputChangeAction, type TextInputChangeEvent, type TextInputEmits, type TextInputProps, type TextInputSize, type TextInputSlots, type TextInputStatus, type TextInputStatusType, type TextInputType };
|
|
@@ -6,6 +6,7 @@ import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-C
|
|
|
6
6
|
import { t as _sfc_main$3 } from "./FieldIcon--NTgW5IU.js";
|
|
7
7
|
import { t as _sfc_main$4 } from "./IconButton-DDNgNl7B.js";
|
|
8
8
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
9
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
9
10
|
import { t as _sfc_main$5 } from "./Icon-bteSId7T.js";
|
|
10
11
|
import { t as _sfc_main$6 } from "./Spinner-9cYUCnDy.js";
|
|
11
12
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
@@ -110,6 +111,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
110
111
|
const draft = shallowRef("");
|
|
111
112
|
const container = useTemplateRef("container");
|
|
112
113
|
const optionsRef = useTemplateRef("options");
|
|
114
|
+
useScrollbars(optionsRef);
|
|
113
115
|
const generatedId = `astryx-time-field-${useId()}`;
|
|
114
116
|
const listboxId = `${props.inputId ?? generatedId}-options`;
|
|
115
117
|
const disabledMessageId = `${props.inputId ?? generatedId}-disabled`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
|
package/dist/TimeInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../TimeInput-D2k3Ux3p.js";
|
|
2
2
|
export { _sfc_main as TimeInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Field-D5gUEGw4.js";
|
|
2
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
2
|
+
import { t as _sfc_main$2 } from "./TimeField-CoHDGmsP.js";
|
|
3
3
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, openBlock, useId, useModel, withCtx } from "vue";
|
|
4
4
|
//#region src/TimeInput/TimeInput.vue
|
|
5
5
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
package/dist/Timer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TimerFormat, i as TimerType, n as TimerColor, o as TimerPresentation, r as TimerProps, s as getPresentation, t as _default } from "../index-
|
|
1
|
+
import { a as TimerFormat, i as TimerType, n as TimerColor, o as TimerPresentation, r as TimerProps, s as getPresentation, t as _default } from "../index-xrzJC4wm.js";
|
|
2
2
|
export { _default as Timer, type TimerColor, type TimerFormat, type TimerPresentation, type TimerProps, type TimerType, getPresentation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-DUaLJO7l.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
package/dist/Tokenizer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Tokenizer-
|
|
1
|
+
import { t as _sfc_main } from "../Tokenizer-B5C_qY7t.js";
|
|
2
2
|
export { _sfc_main as Tokenizer };
|
|
@@ -3,6 +3,7 @@ import { t as _sfc_main$1 } from "./ButtonTooltip-nWWrth8j.js";
|
|
|
3
3
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
4
4
|
import { o as useAstryxMessages } from "./context-iABt_ueM.js";
|
|
5
5
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
6
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
6
7
|
import { t as _sfc_main$2 } from "./Field-D5gUEGw4.js";
|
|
7
8
|
import { t as _sfc_main$3 } from "./Token-DsntTYhQ.js";
|
|
8
9
|
import { n as useAnchoredListbox, t as scrollOptionIntoView } from "./useAnchoredListbox-DwztMNjP.js";
|
|
@@ -137,6 +138,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
137
138
|
const announce = useAnnounce();
|
|
138
139
|
const anchorRef = useTemplateRef("anchorRef");
|
|
139
140
|
const listboxRef = useTemplateRef("listboxRef");
|
|
141
|
+
useScrollbars(listboxRef);
|
|
140
142
|
const inputRef = useTemplateRef("inputRef");
|
|
141
143
|
const tokenEls = /* @__PURE__ */ new Map();
|
|
142
144
|
const placeholder = computed(() => props.placeholder ?? messages.value.tokenizer.placeholder);
|