@astryx-vue/core 0.2.2 → 0.2.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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-Dd-D4bA2.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-CWGfgLNK.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-CnOsSjMY.js +656 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-JA7ilqI_.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-C7WrCOE4.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-CnCGnkZk.js} +77 -24
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-CtwrU33I.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-yb_KOFtJ.js → Code-BvefYRpx.js} +2 -1
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-BZGzYeoL.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-BNbM9T9y.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-LtbLlrcj.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-DVQl0xL5.js} +204 -56
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-zm8sNc0t.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-DlVFzrf7.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-C7Z-p6Yd.js} +54 -15
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu-BoZChdev.js} +308 -63
- package/dist/DropdownMenu-u1psFjis.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-uVM0FD2f.d.ts +564 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-QdlZn7qK.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-BSzfqZ-u.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BqKloI3w.js → Markdown-B6tSqenv.js} +8 -5
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-aN1tRn6W.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-fqcSafkc.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B3brqdK_.js} +1 -1
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-BD5PMgez.js} +303 -121
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-DbYLDXK0.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-DrwIMHKO.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-CBeU4lEl.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline--HVMSB6i.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-FMh7r-r_.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-DlIvESjx.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-CMG7Rb69.js} +14 -14
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → Resizable-CXpvj1TZ.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-BpPnuWH3.js +618 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-D4TupqgE.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-H-6-T5Ps.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-nqA_njNz.js} +6 -6
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -1
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-BuUiiJNr.js → Theme-CejS9MHm.js} +21 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-CXb3m_Hv.js} +2 -2
- package/dist/{TimeField-DpHFrNv0.js → TimeField-B3cndWb0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-BHQ_LKGm.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-Cfuxbb3i.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-CdVLH0_H.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-DlD-S_8-.js} +3 -3
- 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-CEyWddtA.js → TopNav-DzV874G7.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-DEwvlZRV.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-P7cCqtaQ.js → Typeahead-DQ3tmqYe.js} +3 -3
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +10 -5
- package/dist/{composables-CVfjp9h4.js → composables-DDI08XFF.js} +98 -1
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{context-CiKncNSH.js → context-DmOLCubj.js} +82 -8
- package/dist/{index-DimuSES0.d.ts → index-B1x05arQ.d.ts} +3 -1
- package/dist/index-B9f1rUEv.d.ts +77 -0
- package/dist/{index-D-ZuubCK.d.ts → index-BB5yVIN-.d.ts} +2 -2
- package/dist/{index-Bu0Zd1uw.d.ts → index-BMn9ghAX.d.ts} +3 -3
- package/dist/{index-CJlBAXwj.d.ts → index-BRfR0lhb.d.ts} +41 -4
- package/dist/{index-DNRBbwp_.d.ts → index-BTAgQRP0.d.ts} +758 -111
- package/dist/{index-DA52oIdw.d.ts → index-BcJBLWJ0.d.ts} +2 -2
- package/dist/{index-jdjcb3Js.d.ts → index-Bqb_Fyju.d.ts} +2 -2
- package/dist/{index-CNjbOgty.d.ts → index-C-QpeUlQ.d.ts} +2 -2
- package/dist/{index-DGXviOlp.d.ts → index-C2sfHfBw.d.ts} +31 -5
- package/dist/{index-By2mSzUA.d.ts → index-CA6RbRWx.d.ts} +1 -1
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-CRizexSC.d.ts → index-Ch6BbxCP.d.ts} +2 -67
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-kVhSuA9t.d.ts → index-Ctu32CLv.d.ts} +4 -4
- package/dist/{index-DOUEn7V0.d.ts → index-D1Twv_fL.d.ts} +65 -6
- package/dist/{index-D_nYxnNv.d.ts → index-D7-WTV6I.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-D8o50qOE.d.ts} +1 -1
- package/dist/{index-D4I_obqR.d.ts → index-DAiGhkNZ.d.ts} +1 -1
- package/dist/{index-Cs5pcwY3.d.ts → index-DMQG6kdM.d.ts} +3 -3
- package/dist/index-D_UEJIU5.d.ts +83 -0
- package/dist/{index-fa72tWIU.d.ts → index-DkVEBdWa.d.ts} +2 -2
- package/dist/{index-B1TG2GPS.d.ts → index-DxsKyAxq.d.ts} +116 -44
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/{index-qiZtHnGK.d.ts → index-LIyvJTW3.d.ts} +39 -0
- package/dist/{index-BKr7yvVv.d.ts → index-MPcg1Pm4.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-ViSV0RBx.d.ts} +1 -1
- package/dist/{index-C7mxUcDR.d.ts → index-f4NGT-e2.d.ts} +4 -4
- package/dist/{index-DsyKhauk.d.ts → index-foQMNKZO.d.ts} +1 -1
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-CZeoAr0a.d.ts → index-xfkEuGLY.d.ts} +2 -2
- package/dist/index.d.ts +76 -75
- package/dist/index.js +115 -107
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -2
- package/dist/{locale-Cpk_nrLA.js → locale-CCwVnyMZ.js} +25 -1
- package/dist/searchResultMessage-DN0HeRRB.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/types-jmqqnkKA.d.ts +163 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-OaEwjK44.js +520 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/package.json +5 -1
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/multi-selector.css +26 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles.css +2 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- /package/dist/{index-BUXNRekN.d.ts → index-BXkNZF3q.d.ts} +0 -0
|
@@ -150,11 +150,11 @@ type __VLS_ModelProps = {
|
|
|
150
150
|
};
|
|
151
151
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
152
152
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
153
|
-
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
154
153
|
change: (value: CollapsibleGroupValue) => any;
|
|
154
|
+
"update:value": (value: CollapsibleGroupValue | undefined) => any;
|
|
155
155
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
156
|
-
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
157
156
|
onChange?: ((value: CollapsibleGroupValue) => any) | undefined;
|
|
157
|
+
"onUpdate:value"?: ((value: CollapsibleGroupValue | undefined) => any) | undefined;
|
|
158
158
|
}>, {
|
|
159
159
|
type: CollapsibleGroupType;
|
|
160
160
|
hasDividers: boolean;
|
|
@@ -57,8 +57,8 @@ interface TypeaheadSlots<T extends SearchableItem = SearchableItem> {
|
|
|
57
57
|
//#region src/Typeahead/Typeahead.vue.d.ts
|
|
58
58
|
declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
59
59
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TypeaheadProps<T> & {
|
|
60
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
61
60
|
onChange?: ((value: T | null) => any) | undefined;
|
|
61
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
62
62
|
"onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
63
63
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
64
64
|
}> & (typeof globalThis extends {
|
|
@@ -70,7 +70,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
70
70
|
}>) => void;
|
|
71
71
|
attrs: any;
|
|
72
72
|
slots: TypeaheadSlots<T>;
|
|
73
|
-
emit: ((evt: "
|
|
73
|
+
emit: ((evt: "change", value: T | null) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
74
74
|
}>) => import("vue").VNode & {
|
|
75
75
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
76
76
|
};
|
|
@@ -100,11 +100,11 @@ type __VLS_Slots = {
|
|
|
100
100
|
default: () => unknown;
|
|
101
101
|
};
|
|
102
102
|
declare const __VLS_base: import("vue").DefineComponent<TabListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
103
|
-
"update:value": (value: string) => any;
|
|
104
103
|
change: (value: string) => any;
|
|
104
|
+
"update:value": (value: string) => any;
|
|
105
105
|
}, string, import("vue").PublicProps, Readonly<TabListProps> & Readonly<{
|
|
106
|
-
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
107
106
|
onChange?: ((value: string) => any) | undefined;
|
|
107
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
108
108
|
}>, {
|
|
109
109
|
size: TabListSize;
|
|
110
110
|
isFullBleed: boolean;
|
|
@@ -24,6 +24,8 @@ type SelectorStatusInput = SelectorStatus | FieldStatusInput;
|
|
|
24
24
|
type SelectorPresentation = 'popover' | 'bottom-sheet';
|
|
25
25
|
type SelectorVariant = 'default' | 'ghost';
|
|
26
26
|
type SelectorStatusVariant = 'attached' | 'detached' | 'tooltip';
|
|
27
|
+
/** 选中标记画在选项行的哪一侧。没有选中时标记不占位。 */
|
|
28
|
+
type SelectorIndicatorPosition = 'start' | 'end';
|
|
27
29
|
interface SelectorProps {
|
|
28
30
|
/** 选中的值 */
|
|
29
31
|
modelValue?: string | number | null;
|
|
@@ -64,8 +66,10 @@ interface SelectorProps {
|
|
|
64
66
|
clearable?: boolean;
|
|
65
67
|
/** 清除按钮标签 */
|
|
66
68
|
clearLabel?: string;
|
|
67
|
-
/**
|
|
69
|
+
/** 没有任何选项时的空状态。 */
|
|
68
70
|
emptyText?: string;
|
|
71
|
+
/** 搜索没有命中时的文案。和没有任何选项不是同一句话。 */
|
|
72
|
+
emptySearchText?: string;
|
|
69
73
|
/** 可见标签。不传时用占位文本作为隐藏的无障碍名称。 */
|
|
70
74
|
label?: string;
|
|
71
75
|
/** 隐藏可见标签,仍保留给读屏。 */
|
|
@@ -76,6 +80,23 @@ interface SelectorProps {
|
|
|
76
80
|
width?: number | string;
|
|
77
81
|
/** 名称(用于表单提交) */
|
|
78
82
|
name?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 只读。当前值还在,可以聚焦,也会随表单提交,但打不开列表,也没有清除和展开箭头。
|
|
85
|
+
* 不会变暗。和 disabled 同时设置时按禁用处理。
|
|
86
|
+
*/
|
|
87
|
+
isReadOnly?: boolean;
|
|
88
|
+
/** 触发器里显示加载指示,面板在加载完成前不声称「没有选项」。 */
|
|
89
|
+
isLoading?: boolean;
|
|
90
|
+
/** 在标签旁标成可选。 */
|
|
91
|
+
isOptional?: boolean;
|
|
92
|
+
/** 在标签旁标成必填,并设置 aria-required。 */
|
|
93
|
+
isRequired?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* 选中标记在选项行的起始侧或结束侧。
|
|
96
|
+
* 未选中时默认的勾不占位;主题把勾换成单选圆点后,未选中的行也会画出空心圆。
|
|
97
|
+
* @default 'end'
|
|
98
|
+
*/
|
|
99
|
+
indicatorPosition?: SelectorIndicatorPosition;
|
|
79
100
|
}
|
|
80
101
|
interface SelectorEmits {
|
|
81
102
|
'update:modelValue': [value: string | number | null];
|
|
@@ -100,22 +121,27 @@ interface SelectorSlots {
|
|
|
100
121
|
//#region src/Selector/Selector.vue.d.ts
|
|
101
122
|
type __VLS_Slots = SelectorSlots;
|
|
102
123
|
declare const __VLS_base: import("vue").DefineComponent<SelectorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
103
|
-
search: (query: string) => any;
|
|
104
124
|
change: (value: string | number | null) => any;
|
|
125
|
+
search: (query: string) => any;
|
|
105
126
|
"update:modelValue": (value: string | number | null) => any;
|
|
106
127
|
}, string, import("vue").PublicProps, Readonly<SelectorProps> & Readonly<{
|
|
107
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
108
128
|
onChange?: ((value: string | number | null) => any) | undefined;
|
|
129
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
109
130
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
110
131
|
}>, {
|
|
111
|
-
size: SelectorSize;
|
|
112
132
|
variant: SelectorVariant;
|
|
133
|
+
indicatorPosition: SelectorIndicatorPosition;
|
|
113
134
|
status: SelectorStatusInput;
|
|
135
|
+
isOptional: boolean;
|
|
136
|
+
isLoading: boolean;
|
|
137
|
+
size: SelectorSize;
|
|
114
138
|
modelValue: string | number | null;
|
|
115
139
|
isLabelHidden: boolean;
|
|
140
|
+
isRequired: boolean;
|
|
116
141
|
statusVariant: SelectorStatusVariant;
|
|
117
142
|
disabled: boolean;
|
|
118
143
|
clearable: boolean;
|
|
144
|
+
isReadOnly: boolean;
|
|
119
145
|
presentation: SelectorPresentation;
|
|
120
146
|
searchable: boolean;
|
|
121
147
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -127,4 +153,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
127
153
|
};
|
|
128
154
|
};
|
|
129
155
|
//#endregion
|
|
130
|
-
export {
|
|
156
|
+
export { SelectorOption as a, SelectorProps as c, SelectorSlots as d, SelectorStatus as f, SelectorVariant as h, SelectorIndicatorPosition as i, SelectorSection as l, SelectorStatusVariant as m, SelectorEmits as n, SelectorOptionInput as o, SelectorStatusInput as p, SelectorEntry as r, SelectorPresentation as s, _default as t, SelectorSize as u };
|
|
@@ -52,8 +52,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
52
52
|
"onUpdate:mobileNavOpen"?: ((value: boolean) => any) | undefined;
|
|
53
53
|
onMobileNavOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
-
variant: AppShellVariant;
|
|
56
55
|
height: AppShellHeight;
|
|
56
|
+
variant: AppShellVariant;
|
|
57
57
|
mobileNav: false | AppShellMobileNav;
|
|
58
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
59
59
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
125
125
|
onChange?: ((value: string) => any) | undefined;
|
|
126
126
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
127
127
|
}>, {
|
|
128
|
-
size: SegmentedControlSize;
|
|
129
128
|
isDisabled: boolean;
|
|
129
|
+
size: SegmentedControlSize;
|
|
130
130
|
layout: SegmentedControlLayout;
|
|
131
131
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
132
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -85,8 +85,8 @@ interface StepSlots {
|
|
|
85
85
|
type __VLS_Slots$1 = StepSlots;
|
|
86
86
|
declare const __VLS_base$1: import("vue").DefineComponent<StepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
87
87
|
isDisabled: boolean;
|
|
88
|
-
isOptional: boolean;
|
|
89
88
|
indicator: StepIndicator;
|
|
89
|
+
isOptional: boolean;
|
|
90
90
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
91
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
92
92
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1,70 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ThemeMode, i as ThemeDefinition, o as ThemeProps, r as MediaThemeProps, t as DefineThemeInput } from "./types-jmqqnkKA.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
|
-
//#region src/Theme/types.d.ts
|
|
4
|
-
/** Color mode for a theme subtree. `system` follows the page and the OS. */
|
|
5
|
-
type ThemeMode = 'light' | 'dark' | 'system';
|
|
6
|
-
/**
|
|
7
|
-
* A token value.
|
|
8
|
-
*
|
|
9
|
-
* A string is used as written. A two-item tuple is the light stop, then the
|
|
10
|
-
* dark stop, and becomes `light-dark()`.
|
|
11
|
-
*/
|
|
12
|
-
type ThemeTokenValue = string | readonly [string, string];
|
|
13
|
-
/** CSS custom properties for a theme. Keys may omit the `--astryx-` prefix. */
|
|
14
|
-
type ThemeTokens = Record<string, ThemeTokenValue>;
|
|
15
|
-
/** Token overrides for one inverted surface. */
|
|
16
|
-
interface ThemeSurfaceInput {
|
|
17
|
-
tokens?: ThemeTokens;
|
|
18
|
-
}
|
|
19
|
-
interface DefineThemeInput {
|
|
20
|
-
/** Theme name. Used as `data-astryx-theme`. */
|
|
21
|
-
name: string;
|
|
22
|
-
/** Semantic token overrides for this theme. */
|
|
23
|
-
tokens?: ThemeTokens;
|
|
24
|
-
/** Another theme to start from. This theme's own values win. */
|
|
25
|
-
extends?: ThemeDefinition;
|
|
26
|
-
/** Syntax colors for code in this subtree, unless a SyntaxTheme is closer. */
|
|
27
|
-
syntax?: SyntaxThemeDefinition;
|
|
28
|
-
/** Extra tokens for content on a dark surface. */
|
|
29
|
-
onDark?: ThemeSurfaceInput;
|
|
30
|
-
/** Extra tokens for content on a light surface. */
|
|
31
|
-
onLight?: ThemeSurfaceInput;
|
|
32
|
-
}
|
|
33
|
-
interface ThemeDefinition {
|
|
34
|
-
name: string;
|
|
35
|
-
/** Token values already written as CSS. */
|
|
36
|
-
tokens: Readonly<Record<string, string>>;
|
|
37
|
-
/** Extra tokens applied by MediaTheme when the surface is dark. */
|
|
38
|
-
onDark: Readonly<Record<string, string>>;
|
|
39
|
-
/** Extra tokens applied by MediaTheme when the surface is light. */
|
|
40
|
-
onLight: Readonly<Record<string, string>>;
|
|
41
|
-
syntax?: SyntaxThemeDefinition;
|
|
42
|
-
readonly __astryxTheme: true;
|
|
43
|
-
}
|
|
44
|
-
interface ThemeProps {
|
|
45
|
-
/** Theme from `defineTheme()`. */
|
|
46
|
-
theme: ThemeDefinition;
|
|
47
|
-
/**
|
|
48
|
-
* Color mode for this subtree.
|
|
49
|
-
* @default 'system'
|
|
50
|
-
*/
|
|
51
|
-
mode?: ThemeMode;
|
|
52
|
-
}
|
|
53
|
-
/** Surface luminance, `auto` to measure it, or `off` to leave the page theme. */
|
|
54
|
-
type MediaThemeMode = 'dark' | 'light' | 'auto' | 'off';
|
|
55
|
-
interface MediaThemeProps {
|
|
56
|
-
/**
|
|
57
|
-
* Which surface the children sit on.
|
|
58
|
-
* `auto` measures the parent. `off` keeps the surrounding theme.
|
|
59
|
-
*/
|
|
60
|
-
mode: MediaThemeMode;
|
|
61
|
-
/**
|
|
62
|
-
* Side used by `auto` before the surface can be measured, and when it cannot.
|
|
63
|
-
* @default 'dark'
|
|
64
|
-
*/
|
|
65
|
-
fallback?: 'dark' | 'light';
|
|
66
|
-
}
|
|
67
|
-
//#endregion
|
|
68
3
|
//#region src/Theme/defineTheme.d.ts
|
|
69
4
|
declare function isDefinedTheme(value: unknown): value is ThemeDefinition;
|
|
70
5
|
/** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
|
|
@@ -144,4 +79,4 @@ interface UseThemeReturn {
|
|
|
144
79
|
*/
|
|
145
80
|
declare function useTheme(): UseThemeReturn;
|
|
146
81
|
//#endregion
|
|
147
|
-
export {
|
|
82
|
+
export { _default as a, isDefinedTheme as c, useMediaTheme as i, neutralTheme as l, useTheme as n, _default$1 as o, UseMediaThemeReturn as r, defineTheme as s, UseThemeReturn as t, normalizeTokenName as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as ButtonSize } from "./types-WlmsNL1I.js";
|
|
2
2
|
import { l as FieldStatusVariant, o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
3
|
-
import { t as ExtendedIconName } from "./types-
|
|
3
|
+
import { t as ExtendedIconName } from "./types-CwyibrRB.js";
|
|
4
4
|
import { r as PopoverPlacement, t as PopoverAlignment } from "./types-Db3Owy8Q.js";
|
|
5
5
|
import { Component, Ref, VNode } from "vue";
|
|
6
6
|
//#region src/ComplexSelector/types.d.ts
|
|
@@ -493,13 +493,13 @@ type __VLS_Slots$10 = ChatComposerSlots;
|
|
|
493
493
|
declare const __VLS_base$10: import("vue").DefineComponent<ChatComposerProps, {
|
|
494
494
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
495
495
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
496
|
-
submit: (value: string) => any;
|
|
497
496
|
change: (value: string) => any;
|
|
497
|
+
submit: (value: string) => any;
|
|
498
498
|
"update:modelValue": (value: string) => any;
|
|
499
499
|
stop: () => any;
|
|
500
500
|
}, string, import("vue").PublicProps, Readonly<ChatComposerProps> & Readonly<{
|
|
501
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
502
501
|
onChange?: ((value: string) => any) | undefined;
|
|
502
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
503
503
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
504
504
|
onStop?: (() => any) | undefined;
|
|
505
505
|
}>, {
|
|
@@ -541,14 +541,14 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
541
541
|
//#endregion
|
|
542
542
|
//#region src/Chat/ChatComposerInput.vue.d.ts
|
|
543
543
|
declare const __VLS_export$15: import("vue").DefineComponent<ChatComposerInputProps, ChatComposerInputHandle, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
544
|
-
submit: (value: string) => any;
|
|
545
544
|
change: (value: string) => any;
|
|
545
|
+
submit: (value: string) => any;
|
|
546
546
|
"update:modelValue": (value: string) => any;
|
|
547
547
|
keydown: (event: KeyboardEvent) => any;
|
|
548
548
|
files: (files: File[]) => any;
|
|
549
549
|
}, string, import("vue").PublicProps, Readonly<ChatComposerInputProps> & Readonly<{
|
|
550
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
551
550
|
onChange?: ((value: string) => any) | undefined;
|
|
551
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
552
552
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
553
553
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
554
554
|
onFiles?: ((files: File[]) => any) | undefined;
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
import { Ref } from "vue";
|
|
1
2
|
//#region src/MultiSelector/types.d.ts
|
|
2
3
|
type MultiSelectorSize = 'sm' | 'md' | 'lg';
|
|
3
4
|
type MultiSelectorVariant = 'input' | 'ghost';
|
|
4
5
|
type MultiSelectorPresentation = 'popover' | 'bottom-sheet';
|
|
5
6
|
type MultiSelectorStatus = 'default' | 'success' | 'warning' | 'error';
|
|
7
|
+
type MultiSelectorStatusVariant = 'attached' | 'detached' | 'tooltip';
|
|
6
8
|
type MultiSelectorTriggerDisplay = 'count' | 'labels' | 'badges';
|
|
7
9
|
type MultiSelectorCheckboxPosition = 'start' | 'end';
|
|
10
|
+
interface MultiSelectorSelectedItem {
|
|
11
|
+
value: string | number;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
/** 只有创建会带这个描述。普通勾选仍然只传新的值数组。 */
|
|
15
|
+
interface MultiSelectorCreateChange {
|
|
16
|
+
type: 'create';
|
|
17
|
+
query: string;
|
|
18
|
+
}
|
|
19
|
+
interface MultiSelectorHandle {
|
|
20
|
+
open: () => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
toggle: () => void;
|
|
23
|
+
isOpen: () => boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 模板里的 ref 会被自动解包,`:handle-ref="someRef"` 会拿到 null。
|
|
27
|
+
* 模板里传回调,或者在脚本里把 ref 对象本身传进来。
|
|
28
|
+
*/
|
|
29
|
+
type MultiSelectorHandleRef = Ref<MultiSelectorHandle | null> | ((handle: MultiSelectorHandle | null) => void);
|
|
8
30
|
interface MultiSelectorOptionData {
|
|
9
31
|
value: string | number;
|
|
10
32
|
label: string;
|
|
@@ -31,6 +53,11 @@ interface MultiSelectorProps {
|
|
|
31
53
|
disabledReason?: string;
|
|
32
54
|
status?: MultiSelectorStatus;
|
|
33
55
|
statusMessage?: string;
|
|
56
|
+
/**
|
|
57
|
+
* 状态文案怎么放。工具栏里的 ghost 会把 attached 收成独立说明,避免把行高撑开。
|
|
58
|
+
* tooltip 把说明留在图标上。
|
|
59
|
+
*/
|
|
60
|
+
statusVariant?: MultiSelectorStatusVariant;
|
|
34
61
|
size?: MultiSelectorSize;
|
|
35
62
|
/** input 是带边框的表单控件,ghost 适合放在工具栏里。 */
|
|
36
63
|
variant?: MultiSelectorVariant;
|
|
@@ -53,10 +80,34 @@ interface MultiSelectorProps {
|
|
|
53
80
|
optional?: boolean;
|
|
54
81
|
name?: string;
|
|
55
82
|
width?: number | string;
|
|
83
|
+
/**
|
|
84
|
+
* 只读。已选值还在,可以聚焦,也会随表单提交,但打不开列表,也没有清除和展开箭头。
|
|
85
|
+
* 不会变暗。和 disabled 同时设置时按禁用处理。
|
|
86
|
+
*/
|
|
87
|
+
isReadOnly?: boolean;
|
|
88
|
+
/** 触发器里显示加载指示。加载时不提供创建行,面板也不声称没有选项。 */
|
|
89
|
+
isLoading?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* 自定义关闭后的文字。只在 count 和 labels 两种展示里使用,badges 忽略。
|
|
92
|
+
* 没有任何选中项时不调用,触发器继续显示占位符。
|
|
93
|
+
*/
|
|
94
|
+
formatValue?: (items: MultiSelectorSelectedItem[]) => string;
|
|
95
|
+
/**
|
|
96
|
+
* 和 searchable 一起用。输入的文字和任何选项标签都不相同(忽略大小写)时,
|
|
97
|
+
* 列表第一行是「创建」。选中后 change 会多带 `{ type: 'create', query }`,
|
|
98
|
+
* 调用方要在同一次更新里把这个选项加进 options。没有搜索时不会出现创建行。
|
|
99
|
+
*/
|
|
100
|
+
hasCreate?: boolean;
|
|
101
|
+
/** 从外面打开、关闭或查询面板。只读和禁用时 open 不会打开。 */
|
|
102
|
+
handleRef?: MultiSelectorHandleRef;
|
|
103
|
+
/** 面板里没有任何选项时的文案。 */
|
|
104
|
+
emptyText?: string;
|
|
105
|
+
/** 搜索没有命中时的文案。 */
|
|
106
|
+
emptySearchText?: string;
|
|
56
107
|
}
|
|
57
108
|
interface MultiSelectorEmits {
|
|
58
109
|
'update:modelValue': [value: (string | number)[]];
|
|
59
|
-
'change': [value: (string | number)[]];
|
|
110
|
+
'change': [value: (string | number)[], change?: MultiSelectorCreateChange];
|
|
60
111
|
'search': [query: string];
|
|
61
112
|
'openChange': [isOpen: boolean];
|
|
62
113
|
}
|
|
@@ -73,34 +124,42 @@ interface MultiSelectorSlots {
|
|
|
73
124
|
//#region src/MultiSelector/MultiSelector.vue.d.ts
|
|
74
125
|
type __VLS_Slots = MultiSelectorSlots;
|
|
75
126
|
declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
|
|
127
|
+
open: () => void;
|
|
128
|
+
close: () => void;
|
|
129
|
+
toggle: () => void;
|
|
130
|
+
isOpen: () => boolean;
|
|
76
131
|
focus: () => void | undefined;
|
|
77
132
|
blur: () => void | undefined;
|
|
78
133
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
134
|
+
change: (value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any;
|
|
79
135
|
search: (query: string) => any;
|
|
80
|
-
change: (value: (string | number)[]) => any;
|
|
81
136
|
"update:modelValue": (value: (string | number)[]) => any;
|
|
82
137
|
openChange: (isOpen: boolean) => any;
|
|
83
138
|
}, string, import("vue").PublicProps, Readonly<MultiSelectorProps> & Readonly<{
|
|
139
|
+
onChange?: ((value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any) | undefined;
|
|
84
140
|
onSearch?: ((query: string) => any) | undefined;
|
|
85
|
-
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
86
141
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
87
142
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
88
143
|
}>, {
|
|
89
|
-
size: MultiSelectorSize;
|
|
90
|
-
required: boolean;
|
|
91
144
|
variant: MultiSelectorVariant;
|
|
145
|
+
required: boolean;
|
|
92
146
|
status: MultiSelectorStatus;
|
|
147
|
+
isLoading: boolean;
|
|
148
|
+
size: MultiSelectorSize;
|
|
93
149
|
modelValue: readonly (string | number)[];
|
|
150
|
+
statusVariant: MultiSelectorStatusVariant;
|
|
94
151
|
disabled: boolean;
|
|
95
152
|
labelHidden: boolean;
|
|
96
153
|
clearable: boolean;
|
|
97
154
|
optional: boolean;
|
|
155
|
+
isReadOnly: boolean;
|
|
98
156
|
presentation: MultiSelectorPresentation;
|
|
99
157
|
searchable: boolean;
|
|
100
158
|
selectAll: boolean;
|
|
101
159
|
triggerDisplay: MultiSelectorTriggerDisplay;
|
|
102
160
|
maxBadges: number;
|
|
103
161
|
checkboxPosition: MultiSelectorCheckboxPosition;
|
|
162
|
+
hasCreate: boolean;
|
|
104
163
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
105
164
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
106
165
|
declare const _default: typeof __VLS_export;
|
|
@@ -123,4 +182,4 @@ interface MultiSelectorRow {
|
|
|
123
182
|
*/
|
|
124
183
|
declare function flattenOptions(options: readonly MultiSelectorOption[], query: string): MultiSelectorRow[];
|
|
125
184
|
//#endregion
|
|
126
|
-
export {
|
|
185
|
+
export { MultiSelectorSlots as _, MultiSelectorCreateChange as a, MultiSelectorTriggerDisplay as b, MultiSelectorHandle as c, MultiSelectorOptionData as d, MultiSelectorPresentation as f, MultiSelectorSize as g, MultiSelectorSelectedItem as h, MultiSelectorCheckboxPosition as i, MultiSelectorHandleRef as l, MultiSelectorSection as m, flattenOptions as n, MultiSelectorDivider as o, MultiSelectorProps as p, _default as r, MultiSelectorEmits as s, SELECT_ALL_VALUE as t, MultiSelectorOption as u, MultiSelectorStatus as v, MultiSelectorVariant as x, MultiSelectorStatusVariant as y };
|
|
@@ -82,8 +82,8 @@ type __VLS_Slots = CardSlots;
|
|
|
82
82
|
declare const __VLS_base: import("vue").DefineComponent<CardProps, {
|
|
83
83
|
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
84
84
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
85
|
-
elevation: CardElevation;
|
|
86
85
|
variant: CardVariant;
|
|
86
|
+
elevation: CardElevation;
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
88
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
89
89
|
declare const _default: typeof __VLS_export;
|
|
@@ -66,8 +66,8 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
|
|
|
66
66
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
67
67
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
|
-
size: PaginationSize;
|
|
70
69
|
variant: PaginationVariant;
|
|
70
|
+
size: PaginationSize;
|
|
71
71
|
disabled: boolean;
|
|
72
72
|
page: number;
|
|
73
73
|
pageSize: number;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
47
47
|
onChange?: ((value: number | null) => any) | undefined;
|
|
48
48
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
49
49
|
}>, {
|
|
50
|
-
size: "sm" | "md" | "lg";
|
|
51
50
|
step: number;
|
|
51
|
+
size: "sm" | "md" | "lg";
|
|
52
52
|
modelValue: number | null;
|
|
53
53
|
placeholder: string;
|
|
54
54
|
disabled: boolean;
|
|
@@ -363,18 +363,18 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
|
|
|
363
363
|
focusTypeahead: () => void | undefined;
|
|
364
364
|
blurTypeahead: () => void | undefined;
|
|
365
365
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
366
|
+
change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
|
|
366
367
|
blur: (event: FocusEvent) => any;
|
|
367
368
|
focus: (event: FocusEvent) => any;
|
|
368
|
-
change: (filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any;
|
|
369
369
|
"update:filters": (filters: PowerSearchFilter[]) => any;
|
|
370
370
|
}, string, import("vue").PublicProps, Readonly<PowerSearchProps> & Readonly<{
|
|
371
|
+
onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
|
|
371
372
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
372
373
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
373
|
-
onChange?: ((filters: PowerSearchFilter[], changeType: PowerSearchChangeType, index: number) => any) | undefined;
|
|
374
374
|
"onUpdate:filters"?: ((filters: PowerSearchFilter[]) => any) | undefined;
|
|
375
375
|
}>, {
|
|
376
|
-
size: PowerSearchSize;
|
|
377
376
|
status: PowerSearchStatus;
|
|
377
|
+
size: PowerSearchSize;
|
|
378
378
|
statusVariant: PowerSearchStatusVariant;
|
|
379
379
|
disabled: boolean;
|
|
380
380
|
labelHidden: boolean;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { o as FieldStatusInput } from "./types-3eXh_5os.js";
|
|
2
|
+
import { ComputedRef, InjectionKey } from "vue";
|
|
3
|
+
//#region src/InputGroup/context.d.ts
|
|
4
|
+
interface InputGroupContext {
|
|
5
|
+
size: ComputedRef<'sm' | 'md' | 'lg'>;
|
|
6
|
+
disabled: ComputedRef<boolean>;
|
|
7
|
+
/** 组标签的 id。没有标签时为空。 */
|
|
8
|
+
labelId: ComputedRef<string | undefined>;
|
|
9
|
+
/** 组的说明和状态文案 id,组内控件可以接进 aria-describedby。 */
|
|
10
|
+
describedBy: ComputedRef<string | undefined>;
|
|
11
|
+
}
|
|
12
|
+
declare const INPUT_GROUP_KEY: InjectionKey<InputGroupContext>;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/InputGroup/types.d.ts
|
|
15
|
+
type InputGroupSize = 'sm' | 'md' | 'lg';
|
|
16
|
+
interface InputGroupProps {
|
|
17
|
+
/**
|
|
18
|
+
* 整组的无障碍名称。写上之后,组会带上标签、说明、可选或必填,以及状态。
|
|
19
|
+
* 组内输入框自己的标签继续说明这一格填什么,通常隐藏起来。
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/** 视觉上隐藏标签,读屏仍能读到。 */
|
|
23
|
+
isLabelHidden?: boolean;
|
|
24
|
+
/** 标签和控件之间的说明。 */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** 是否禁用整组,并传给组内控件。 */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** 在标签旁标成可选。 */
|
|
29
|
+
isOptional?: boolean;
|
|
30
|
+
/** 在标签旁标成必填。 */
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
/** 尺寸,传给组内控件。 */
|
|
33
|
+
size?: InputGroupSize;
|
|
34
|
+
/** 整组边框和控件下方的状态。 */
|
|
35
|
+
status?: FieldStatusInput;
|
|
36
|
+
/** 标签末尾的提示。 */
|
|
37
|
+
labelTooltip?: string;
|
|
38
|
+
}
|
|
39
|
+
interface InputGroupSlots {
|
|
40
|
+
/** 前缀内容(图标或文本) */
|
|
41
|
+
before?: () => any;
|
|
42
|
+
/** 主输入框 */
|
|
43
|
+
default?: () => any;
|
|
44
|
+
/** 后缀内容(图标或按钮) */
|
|
45
|
+
after?: () => any;
|
|
46
|
+
}
|
|
47
|
+
interface InputGroupTextProps {
|
|
48
|
+
/** 供测试定位。 */
|
|
49
|
+
id?: string;
|
|
50
|
+
}
|
|
51
|
+
interface InputGroupTextSlots {
|
|
52
|
+
default?: () => any;
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/InputGroup/InputGroup.vue.d.ts
|
|
56
|
+
type __VLS_Slots$1 = InputGroupSlots;
|
|
57
|
+
declare const __VLS_base$1: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
|
|
58
|
+
isOptional: boolean;
|
|
59
|
+
size: InputGroupSize;
|
|
60
|
+
isLabelHidden: boolean;
|
|
61
|
+
isRequired: boolean;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
65
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
66
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/InputGroup/InputGroupText.vue.d.ts
|
|
73
|
+
type __VLS_Slots = InputGroupTextSlots;
|
|
74
|
+
declare const __VLS_base: import("vue").DefineComponent<InputGroupTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
75
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
77
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { InputGroupSlots as a, INPUT_GROUP_KEY as c, InputGroupSize as i, InputGroupContext as l, _default$1 as n, InputGroupTextProps as o, InputGroupProps as r, InputGroupTextSlots as s, _default as t };
|
|
@@ -24,10 +24,10 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
|
|
25
25
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
|
|
27
|
+
isSelected: boolean;
|
|
28
28
|
isDisabled: boolean;
|
|
29
29
|
isIconOnly: boolean;
|
|
30
|
-
|
|
30
|
+
size: NavItemSize;
|
|
31
31
|
block: boolean;
|
|
32
32
|
plain: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|