@astryx-vue/core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-BEyrkUtr.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-CO3mCs9A.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-BL2sDOWK.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-BqwJvw7o.js} +2 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-ByXCGhT8.js → Collapsible-BYg9soTk.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-BOIb0zAp.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-DLcbgUBi.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-RitYX_Yx.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +1 -2
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CYvEV503.js +238 -0
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-Dnlp8cVx.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DIsqS1Qb.js +124 -0
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-aUZiDwHm.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-Bh8or2S6.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-C3S-4dIu.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-Kr4iJrNV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-BRStpeSB.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-DS6oTV_j.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-pwr93I-z.js +122 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DvEUIVEC.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-B7LX4RcP.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-D5zWaITo.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-DMOgWncm.js +163 -0
- package/dist/TimeField-DeQ1ukHl.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-jb1nLqZk.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DrWwVQBL.js +465 -0
- 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-Ctf9jekS.js → Token-CV2J94bn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-DF9r4hTW.js} +2 -2
- 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-CjbMCbkC.js → TopNav-BH_s3uap.js} +3 -3
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-D9cR-w7r.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-s4DC1Qem.js} +2 -2
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -1
- package/dist/{locale-56lkR7OK.js → context-BshXcNYX.js} +183 -18
- package/dist/{index-DjOdQv5B.d.ts → index--dh0s8Li.d.ts} +1 -1
- package/dist/{index-Cdi82rTW.d.ts → index-12ObcW99.d.ts} +6 -2
- package/dist/{index-JeZ0YTyd.d.ts → index-5R_pi3eT.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-AkMWQ97a.d.ts} +3 -3
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/{index-CxspvLBl.d.ts → index-Bc0dgVM5.d.ts} +5 -5
- package/dist/{index-4FM5lQdV.d.ts → index-BlWLperN.d.ts} +1 -1
- package/dist/{index-DBcbfStA.d.ts → index-BnNh5Iml.d.ts} +84 -1
- package/dist/{index-Cp0NlzQv.d.ts → index-Bovw9_8d.d.ts} +1 -1
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-C0S2Xzoi.d.ts → index-CNcQmDrK.d.ts} +93 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-CQ9F1f_F.d.ts} +535 -137
- package/dist/index-CR6sUmRT.d.ts +356 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-CsJpQElv.d.ts} +1 -1
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-C8NW9xre.d.ts → index-D3V7yRUP.d.ts} +7 -7
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-BeJqhW4l.d.ts → index-Q4gqBSIZ.d.ts} +2 -2
- package/dist/{index-Cz9ZHVf6.d.ts → index-g03bmR4K.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +54 -49
- package/dist/index.js +86 -64
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +49 -1
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/checkbox-list.css +15 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +2 -3
- package/styles/file-input.css +87 -0
- package/styles/icon.css +32 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/selector.css +10 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +11 -0
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ const email = shallowRef('')
|
|
|
43
43
|
</template>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
Use `Field
|
|
46
|
+
Use `Field` and `FieldLabel` from `@astryx-vue/core/Field`, and `FieldStatus` from `@astryx-vue/core/FieldStatus`, for custom controls. `Field` supplies association IDs through its default slot; forward them to the control's `id`, `aria-labelledby` and `aria-describedby`.
|
|
47
47
|
|
|
48
48
|
`TextInput` supports clear buttons, disabled reasons, read-only values, three sizes, status messages and asynchronous `changeAction`. Use `@action-error` to handle failed actions. Inputs remain editable while actions are pending; request cancellation and stale-result handling belong to the application.
|
|
49
49
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-
|
|
1
|
+
import { i as AvatarGroupProps, n as _default, r as AvatarGroupOverflowProps, t as _default$1 } from "../index-CQ9F1f_F.js";
|
|
2
2
|
export { _default as AvatarGroup, _default$1 as AvatarGroupOverflow, type AvatarGroupOverflowProps, type AvatarGroupProps };
|
package/dist/Banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _r as BannerStatus, fr as _default, gr as BannerSlots, hr as BannerProps, mr as BannerEmits, pr as BannerContainer } from "../index-CQ9F1f_F.js";
|
|
2
2
|
export { _default as Banner, type BannerContainer, type BannerEmits, type BannerProps, type BannerSlots, type BannerStatus };
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as ButtonProps, c as ButtonSizeValue, d as ButtonVariantMap, i as ButtonLinkElement, l as ButtonSlots, n as ButtonElevation, o as ButtonRootElement, r as ButtonEmits, s as ButtonSize, t as ButtonClickAction, u as ButtonVariant } from "../types-WlmsNL1I.js";
|
|
2
|
-
import { t as _default } from "../index-
|
|
2
|
+
import { t as _default } from "../index-B4OOtNP8.js";
|
|
3
3
|
export { _default as Button, _default as default, type ButtonClickAction, type ButtonElevation, type ButtonEmits, type ButtonLinkElement, type ButtonProps, type ButtonRootElement, type ButtonSize, type ButtonSizeValue, type ButtonSlots, type ButtonVariant, type ButtonVariantMap };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cr as _default, dr as ButtonGroupOrientation, lr as ButtonGroupProps, ur as ButtonGroupSlots } from "../index-CQ9F1f_F.js";
|
|
2
2
|
export { _default as ButtonGroup, _default as default, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonGroupSlots };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Calendar-
|
|
1
|
+
import { t as _sfc_main } from "../Calendar-BEyrkUtr.js";
|
|
2
2
|
export { _sfc_main as Calendar };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as useGridRovingFocus } from "./useGridRovingFocus-DQQAOYH5.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
|
|
3
|
+
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-BshXcNYX.js";
|
|
3
4
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, withKeys } from "vue";
|
|
4
5
|
import { CalendarDate, getLocalTimeZone, today } from "@internationalized/date";
|
|
5
6
|
import "../styles/calendar.css";
|
package/dist/Chat/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$6, c as _sfc_main$3, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$7, l as _sfc_main$2, m as _sfc_main$1, n as _sfc_main$9, o as _sfc_main$5, p as useChatMessageContext, r as _sfc_main$8, s as _sfc_main$4, t as _sfc_main$10, u as _sfc_main } from "../Chat-
|
|
1
|
+
import { a as _sfc_main$6, c as _sfc_main$3, d as useChatLayoutContext, f as useChatListContext, i as _sfc_main$7, l as _sfc_main$2, m as _sfc_main$1, n as _sfc_main$9, o as _sfc_main$5, p as useChatMessageContext, r as _sfc_main$8, s as _sfc_main$4, t as _sfc_main$10, u as _sfc_main } from "../Chat-CO3mCs9A.js";
|
|
2
2
|
export { _sfc_main as ChatLayout, _sfc_main$1 as ChatLayoutScrollButton, _sfc_main$2 as ChatMessage, _sfc_main$3 as ChatMessageBubble, _sfc_main$4 as ChatMessageList, _sfc_main$5 as ChatMessageMetadata, _sfc_main$6 as ChatReasoning, _sfc_main$7 as ChatSystemMessage, _sfc_main$8 as ChatToolCalls, _sfc_main$9 as ChatTypingIndicator, _sfc_main$10 as ChatUnreadDivider, useChatLayoutContext, useChatListContext, useChatMessageContext };
|
|
@@ -3,8 +3,8 @@ import { t as _sfc_main$15 } from "./Button-DrqeomlE.js";
|
|
|
3
3
|
import { t as useAnnounce } from "./announce-Cnio10Wk.js";
|
|
4
4
|
import { r as useChatNewMessages, t as useChatStreamScroll } from "./useChatStreamScroll-oDfybEos.js";
|
|
5
5
|
import { t as _sfc_main$16 } from "./Badge-Ba0EwsTj.js";
|
|
6
|
-
import { a as useAstryxMessages, i as useAstryxLocale } from "./
|
|
7
|
-
import { t as _sfc_main$17 } from "./Icon-
|
|
6
|
+
import { a as useAstryxMessages, i as useAstryxLocale } from "./context-BshXcNYX.js";
|
|
7
|
+
import { t as _sfc_main$17 } from "./Icon-5MdZQ18k.js";
|
|
8
8
|
import { t as _sfc_main$18 } from "./Spinner-9cYUCnDy.js";
|
|
9
9
|
import { t as _sfc_main$19 } from "./Divider-BtwnL18I.js";
|
|
10
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as CheckboxInputProps, ir as CheckboxInputEmits, nr as CheckboxInputChangeAction, or as CheckboxInputSlots, rr as CheckboxInputChangeEvent, sr as CheckboxValue, tr as _default } from "../index-CQ9F1f_F.js";
|
|
2
2
|
export { _default as CheckboxInput, type CheckboxInputChangeAction, type CheckboxInputChangeEvent, type CheckboxInputEmits, type CheckboxInputProps, type CheckboxInputSlots, type CheckboxValue };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $n as CheckboxListItemProps, Qn as CheckboxListItemEmits, Xn as _default, Yn as _default$1, Zn as CheckboxListEmits, er as CheckboxListProps } from "../index-CQ9F1f_F.js";
|
|
2
|
+
export { _default as CheckboxList, type CheckboxListEmits, _default$1 as CheckboxListItem, type CheckboxListItemEmits, type CheckboxListItemProps, type CheckboxListProps };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { t as _sfc_main$2 } from "./CheckboxInput-C86o3XoG.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./Field-VlTBsIEo.js";
|
|
3
|
+
import { r as useItemDescriptionId } from "./Item-C1z6gXn8.js";
|
|
4
|
+
import { n as _sfc_main$4, t as _sfc_main$5 } from "./ListItem-pGxvn6QJ.js";
|
|
5
|
+
import { computed, createBlock, createElementVNode, createSlots, createVNode, defineComponent, inject, mergeModels, openBlock, provide, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
6
|
+
import "../styles/checkbox-list.css";
|
|
7
|
+
//#region src/CheckboxList/context.ts
|
|
8
|
+
const checkboxListKey = Symbol("astryx-checkbox-list");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/CheckboxList/CheckboxList.vue
|
|
11
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
12
|
+
name: "AstryxCheckboxList",
|
|
13
|
+
__name: "CheckboxList",
|
|
14
|
+
props: /*@__PURE__*/ mergeModels({
|
|
15
|
+
label: {},
|
|
16
|
+
id: {},
|
|
17
|
+
description: {},
|
|
18
|
+
density: { default: "balanced" },
|
|
19
|
+
hasDividers: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
isDisabled: { type: Boolean },
|
|
24
|
+
isRequired: { type: Boolean },
|
|
25
|
+
isOptional: { type: Boolean },
|
|
26
|
+
isLabelHidden: { type: Boolean },
|
|
27
|
+
status: {},
|
|
28
|
+
statusVariant: { default: "detached" },
|
|
29
|
+
width: {}
|
|
30
|
+
}, {
|
|
31
|
+
"modelValue": {},
|
|
32
|
+
"modelModifiers": {}
|
|
33
|
+
}),
|
|
34
|
+
emits: /*@__PURE__*/ mergeModels(["update:modelValue", "change"], ["update:modelValue"]),
|
|
35
|
+
setup(__props, { emit: __emit }) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const emit = __emit;
|
|
38
|
+
const model = useModel(__props, "modelValue");
|
|
39
|
+
const generatedId = `astryx-checkbox-list-${useId()}`;
|
|
40
|
+
const inputId = computed(() => props.id ?? generatedId);
|
|
41
|
+
function toggle(value, checked) {
|
|
42
|
+
const current = model.value ?? [];
|
|
43
|
+
const next = checked ? current.includes(value) ? current : [...current, value] : current.filter((item) => item !== value);
|
|
44
|
+
model.value = next;
|
|
45
|
+
emit("change", next);
|
|
46
|
+
}
|
|
47
|
+
provide(checkboxListKey, {
|
|
48
|
+
values: model,
|
|
49
|
+
toggle,
|
|
50
|
+
isDisabled: computed(() => props.isDisabled ?? false),
|
|
51
|
+
size: computed(() => props.density === "compact" ? "sm" : "md")
|
|
52
|
+
});
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
|
55
|
+
class: "astryx-checkbox-list",
|
|
56
|
+
label: __props.label,
|
|
57
|
+
"input-id": inputId.value,
|
|
58
|
+
"is-group-label": "",
|
|
59
|
+
description: __props.description,
|
|
60
|
+
width: __props.width,
|
|
61
|
+
"is-label-hidden": __props.isLabelHidden,
|
|
62
|
+
"is-disabled": __props.isDisabled,
|
|
63
|
+
"is-optional": __props.isOptional,
|
|
64
|
+
"is-required": __props.isRequired,
|
|
65
|
+
status: __props.status,
|
|
66
|
+
"status-variant": __props.statusVariant
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx((field) => [createVNode(_sfc_main$4, {
|
|
69
|
+
density: __props.density,
|
|
70
|
+
"has-dividers": __props.hasDividers,
|
|
71
|
+
"aria-labelledby": field.labelId,
|
|
72
|
+
"aria-describedby": field.describedBy
|
|
73
|
+
}, {
|
|
74
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, [
|
|
77
|
+
"density",
|
|
78
|
+
"has-dividers",
|
|
79
|
+
"aria-labelledby",
|
|
80
|
+
"aria-describedby"
|
|
81
|
+
])]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 8, [
|
|
84
|
+
"label",
|
|
85
|
+
"input-id",
|
|
86
|
+
"description",
|
|
87
|
+
"width",
|
|
88
|
+
"is-label-hidden",
|
|
89
|
+
"is-disabled",
|
|
90
|
+
"is-optional",
|
|
91
|
+
"is-required",
|
|
92
|
+
"status",
|
|
93
|
+
"status-variant"
|
|
94
|
+
]);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/CheckboxList/CheckboxListItem.vue
|
|
100
|
+
const _hoisted_1 = { "aria-hidden": "true" };
|
|
101
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
102
|
+
name: "AstryxCheckboxListItem",
|
|
103
|
+
__name: "CheckboxListItem",
|
|
104
|
+
props: {
|
|
105
|
+
label: {},
|
|
106
|
+
value: {},
|
|
107
|
+
description: {},
|
|
108
|
+
isDisabled: { type: Boolean },
|
|
109
|
+
isChecked: { type: [Boolean, String] }
|
|
110
|
+
},
|
|
111
|
+
emits: ["check"],
|
|
112
|
+
setup(__props, { emit: __emit }) {
|
|
113
|
+
const props = __props;
|
|
114
|
+
const emit = __emit;
|
|
115
|
+
const context = inject(checkboxListKey, void 0);
|
|
116
|
+
const descriptionId = useItemDescriptionId();
|
|
117
|
+
const checkbox = useTemplateRef("checkbox");
|
|
118
|
+
const interactiveRef = computed(() => checkbox.value?.element ?? null);
|
|
119
|
+
const collection = computed(() => context != null && context.values.value != null);
|
|
120
|
+
const checked = computed(() => {
|
|
121
|
+
if (collection.value && props.value != null) return context?.values.value?.includes(props.value) ?? false;
|
|
122
|
+
return props.isChecked ?? false;
|
|
123
|
+
});
|
|
124
|
+
const disabled = computed(() => props.isDisabled || context?.isDisabled.value);
|
|
125
|
+
const selected = computed(() => checked.value === true);
|
|
126
|
+
if (collection.value && props.value == null) throw new Error("CheckboxListItem 在集合模式下必须提供 value。");
|
|
127
|
+
function onChecked(value) {
|
|
128
|
+
const next = value === true;
|
|
129
|
+
if (collection.value && props.value != null) context?.toggle(props.value, next);
|
|
130
|
+
else emit("check", next);
|
|
131
|
+
}
|
|
132
|
+
return (_ctx, _cache) => {
|
|
133
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
134
|
+
label: __props.label,
|
|
135
|
+
description: __props.description,
|
|
136
|
+
"is-selected": selected.value,
|
|
137
|
+
"is-disabled": disabled.value,
|
|
138
|
+
"interactive-ref": interactiveRef.value
|
|
139
|
+
}, createSlots({
|
|
140
|
+
label: withCtx(() => [createElementVNode("span", _hoisted_1, toDisplayString(__props.label), 1)]),
|
|
141
|
+
startContent: withCtx(() => [createVNode(_sfc_main$2, {
|
|
142
|
+
ref_key: "checkbox",
|
|
143
|
+
ref: checkbox,
|
|
144
|
+
"model-value": checked.value,
|
|
145
|
+
label: __props.label,
|
|
146
|
+
"is-label-hidden": "",
|
|
147
|
+
size: unref(context)?.size.value ?? "md",
|
|
148
|
+
"is-disabled": disabled.value,
|
|
149
|
+
"aria-describedby": unref(descriptionId) ?? void 0,
|
|
150
|
+
"onUpdate:modelValue": onChecked
|
|
151
|
+
}, null, 8, [
|
|
152
|
+
"model-value",
|
|
153
|
+
"label",
|
|
154
|
+
"size",
|
|
155
|
+
"is-disabled",
|
|
156
|
+
"aria-describedby"
|
|
157
|
+
])]),
|
|
158
|
+
_: 2
|
|
159
|
+
}, [_ctx.$slots.end ? {
|
|
160
|
+
name: "endContent",
|
|
161
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "end")]),
|
|
162
|
+
key: "0"
|
|
163
|
+
} : void 0]), 1032, [
|
|
164
|
+
"label",
|
|
165
|
+
"description",
|
|
166
|
+
"is-selected",
|
|
167
|
+
"is-disabled",
|
|
168
|
+
"interactive-ref"
|
|
169
|
+
]);
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
//#endregion
|
|
174
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|
package/dist/Citation/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Citation-
|
|
1
|
+
import { t as _sfc_main } from "../Citation-BqwJvw7o.js";
|
|
2
2
|
export { _sfc_main as Citation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useAstryxMessages } from "./
|
|
2
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { a as useAstryxMessages } from "./context-BshXcNYX.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Icon-5MdZQ18k.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, openBlock, toDisplayString, useTemplateRef } from "vue";
|
|
4
4
|
import "../styles/citation.css";
|
|
5
5
|
//#region src/Citation/Citation.vue
|
package/dist/Code/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as useClipboard } from "../useClipboard-BDfbEsWd.js";
|
|
2
|
-
import { a as tokenizeAsync, c as _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$1 } from "../CodeBlock-
|
|
2
|
+
import { a as tokenizeAsync, c as _sfc_main, i as tokenize, n as SYNC_TOKENIZE_THRESHOLD, o as HIGHLIGHTED_TOKEN_TYPES, r as flatTokensToLines, s as applyHighlightRanges, t as _sfc_main$1 } from "../CodeBlock-BQdooQy2.js";
|
|
3
3
|
export { _sfc_main as Code, _sfc_main$1 as CodeBlock, HIGHLIGHTED_TOKEN_TYPES, SYNC_TOKENIZE_THRESHOLD, applyHighlightRanges, flatTokensToLines, tokenize, tokenizeAsync, useClipboard as useCopyToClipboard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
2
|
import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
|
|
3
3
|
import { t as _sfc_main$4 } from "./IconButton-BNQuz9W_.js";
|
|
4
|
-
import { t as _sfc_main$5 } from "./Icon-
|
|
4
|
+
import { t as _sfc_main$5 } from "./Icon-5MdZQ18k.js";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
|
|
6
6
|
import "../styles/code.css";
|
|
7
7
|
//#region src/Code/Code.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Collapsible-
|
|
1
|
+
import { t as _sfc_main } from "../Collapsible-BYg9soTk.js";
|
|
2
2
|
export { _sfc_main as Collapsible };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Icon-5MdZQ18k.js";
|
|
2
2
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, renderSlot, shallowRef, toDisplayString, useId, useModel, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
|
|
3
3
|
import "../styles/collapsible.css";
|
|
4
4
|
//#region src/Collapsible/Collapsible.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as ContextMenuSlots, D as ContextMenuTriggerElement, E as ContextMenuSubMenuSlots, O as ContextMenuVariant, S as ContextMenuSize, T as ContextMenuSubMenuProps, _ as ContextMenuItemSlots, a as _default, b as ContextMenuProps, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuWidth, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSubMenuEmits, x as ContextMenuSection, y as ContextMenuOption } from "../index-
|
|
1
|
+
import { C as ContextMenuSlots, D as ContextMenuTriggerElement, E as ContextMenuSubMenuSlots, O as ContextMenuVariant, S as ContextMenuSize, T as ContextMenuSubMenuProps, _ as ContextMenuItemSlots, a as _default, b as ContextMenuProps, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuWidth, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSubMenuEmits, x as ContextMenuSection, y as ContextMenuOption } from "../index-Bc0dgVM5.js";
|
|
2
2
|
export { _default as ContextMenu, _default$1 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, _default$2 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$3 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuProps, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$4 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-
|
|
1
|
+
import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-dA-ppaRQ.js";
|
|
2
2
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuDivider, _sfc_main$2 as ContextMenuGroup, _sfc_main$3 as ContextMenuItem, _sfc_main$4 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|