@cocoar/vue-ui 0.1.0-beta.24 → 0.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/CoarAvatar.vue.d.ts +51 -0
- package/dist/components/avatar/CoarAvatar.vue.d.ts.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/badge/CoarBadge.vue.d.ts +32 -0
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/CoarBreadcrumb.vue.d.ts +27 -0
- package/dist/components/breadcrumb/CoarBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts +22 -0
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/button/CoarButton.vue.d.ts +54 -0
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/card/CoarCard.vue.d.ts +38 -0
- package/dist/components/card/CoarCard.vue.d.ts.map +1 -0
- package/dist/components/card/index.d.ts +3 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +50 -0
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts +45 -0
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -0
- package/dist/components/code-block/index.d.ts +3 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/date-time/_shared/date-helpers.d.ts +49 -0
- package/dist/components/date-time/_shared/date-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/index.d.ts +8 -0
- package/dist/components/date-time/_shared/index.d.ts.map +1 -0
- package/dist/components/date-time/_shared/maskito-config.d.ts +18 -0
- package/dist/components/date-time/_shared/maskito-config.d.ts.map +1 -0
- package/dist/components/date-time/_shared/time-helpers.d.ts +70 -0
- package/dist/components/date-time/_shared/time-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/timezone-helpers.d.ts +52 -0
- package/dist/components/date-time/_shared/timezone-helpers.d.ts.map +1 -0
- package/dist/components/date-time/_shared/types.d.ts +57 -0
- package/dist/components/date-time/_shared/types.d.ts.map +1 -0
- package/dist/components/date-time/_shared/use-date-picker-base.d.ts +39 -0
- package/dist/components/date-time/_shared/use-date-picker-base.d.ts.map +1 -0
- package/dist/components/date-time/month-list/CoarMonthList.vue.d.ts +29 -0
- package/dist/components/date-time/month-list/CoarMonthList.vue.d.ts.map +1 -0
- package/dist/components/date-time/month-list/index.d.ts +2 -0
- package/dist/components/date-time/month-list/index.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts +77 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue.d.ts +23 -0
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-picker/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts +68 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts +31 -0
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/plain-date-time-picker/index.d.ts +3 -0
- package/dist/components/date-time/plain-date-time-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts +64 -0
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -0
- package/dist/components/date-time/scrollable-calendar/index.d.ts +3 -0
- package/dist/components/date-time/scrollable-calendar/index.d.ts.map +1 -0
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts +42 -0
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/time-picker/index.d.ts +3 -0
- package/dist/components/date-time/time-picker/index.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts +74 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts +41 -0
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -0
- package/dist/components/date-time/zoned-date-time-picker/index.d.ts +3 -0
- package/dist/components/date-time/zoned-date-time-picker/index.d.ts.map +1 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts +44 -0
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -0
- package/dist/components/dialog/dialog-types.d.ts +27 -0
- package/dist/components/dialog/dialog-types.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +4 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/useDialog.d.ts +22 -0
- package/dist/components/dialog/useDialog.d.ts.map +1 -0
- package/dist/components/divider/CoarDivider.vue.d.ts +38 -0
- package/dist/components/divider/CoarDivider.vue.d.ts.map +1 -0
- package/dist/components/divider/index.d.ts +3 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/icon/CoarIcon.vue.d.ts +41 -0
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -0
- package/dist/components/icon/core-icons.d.ts +116 -0
- package/dist/components/icon/core-icons.d.ts.map +1 -0
- package/dist/components/icon/icon-plugin.d.ts +44 -0
- package/dist/components/icon/icon-plugin.d.ts.map +1 -0
- package/dist/components/icon/icon-service.d.ts +72 -0
- package/dist/components/icon/icon-service.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +9 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/label/CoarLabel.vue.d.ts +38 -0
- package/dist/components/label/CoarLabel.vue.d.ts.map +1 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/menu/CoarMenu.vue.d.ts +27 -0
- package/dist/components/menu/CoarMenu.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuDivider.vue.d.ts +3 -0
- package/dist/components/menu/CoarMenuDivider.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuHeading.vue.d.ts +22 -0
- package/dist/components/menu/CoarMenuHeading.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts +44 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarSubExpand.vue.d.ts +36 -0
- package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -0
- package/dist/components/menu/CoarSubmenuItem.vue.d.ts +35 -0
- package/dist/components/menu/CoarSubmenuItem.vue.d.ts.map +1 -0
- package/dist/components/menu/index.d.ts +12 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/menu-aim.d.ts +14 -0
- package/dist/components/menu/menu-aim.d.ts.map +1 -0
- package/dist/components/menu/menu-cascade.d.ts +69 -0
- package/dist/components/menu/menu-cascade.d.ts.map +1 -0
- package/dist/components/navbar/CoarNavbar.vue.d.ts +38 -0
- package/dist/components/navbar/CoarNavbar.vue.d.ts.map +1 -0
- package/dist/components/navbar/index.d.ts +2 -0
- package/dist/components/navbar/index.d.ts.map +1 -0
- package/dist/components/note/CoarNote.vue.d.ts +29 -0
- package/dist/components/note/CoarNote.vue.d.ts.map +1 -0
- package/dist/components/note/index.d.ts +3 -0
- package/dist/components/note/index.d.ts.map +1 -0
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +107 -0
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -0
- package/dist/components/number-input/index.d.ts +3 -0
- package/dist/components/number-input/index.d.ts.map +1 -0
- package/dist/components/overlay/CoarOverlayHost.vue.d.ts +3 -0
- package/dist/components/overlay/CoarOverlayHost.vue.d.ts.map +1 -0
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts +28 -0
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -0
- package/dist/components/overlay/index.d.ts +11 -0
- package/dist/components/overlay/index.d.ts.map +1 -0
- package/dist/components/overlay/overlay-position.d.ts +36 -0
- package/dist/components/overlay/overlay-position.d.ts.map +1 -0
- package/dist/components/overlay/overlay-presets.d.ts +43 -0
- package/dist/components/overlay/overlay-presets.d.ts.map +1 -0
- package/dist/components/overlay/overlay-service.d.ts +80 -0
- package/dist/components/overlay/overlay-service.d.ts.map +1 -0
- package/dist/components/overlay/overlay-types.d.ts +172 -0
- package/dist/components/overlay/overlay-types.d.ts.map +1 -0
- package/dist/components/overlay/useOverlay.d.ts +35 -0
- package/dist/components/overlay/useOverlay.d.ts.map +1 -0
- package/dist/components/pagination/CoarPagination.vue.d.ts +36 -0
- package/dist/components/pagination/CoarPagination.vue.d.ts.map +1 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +62 -0
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -0
- package/dist/components/password-input/index.d.ts +3 -0
- package/dist/components/password-input/index.d.ts.map +1 -0
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts +110 -0
- package/dist/components/popconfirm/CoarPopconfirm.vue.d.ts.map +1 -0
- package/dist/components/popconfirm/CoarPopconfirmPanel.vue.d.ts +12 -0
- package/dist/components/popconfirm/CoarPopconfirmPanel.vue.d.ts.map +1 -0
- package/dist/components/popconfirm/index.d.ts +4 -0
- package/dist/components/popconfirm/index.d.ts.map +1 -0
- package/dist/components/popover/CoarPopover.vue.d.ts +74 -0
- package/dist/components/popover/CoarPopover.vue.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts +29 -0
- package/dist/components/progress-bar/CoarProgressBar.vue.d.ts.map +1 -0
- package/dist/components/progress-bar/index.d.ts +3 -0
- package/dist/components/progress-bar/index.d.ts.map +1 -0
- package/dist/components/radio-group/CoarRadioButton.vue.d.ts +26 -0
- package/dist/components/radio-group/CoarRadioButton.vue.d.ts.map +1 -0
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts +62 -0
- package/dist/components/radio-group/CoarRadioGroup.vue.d.ts.map +1 -0
- package/dist/components/radio-group/constants.d.ts +12 -0
- package/dist/components/radio-group/constants.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +6 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/scrollbar/index.d.ts +3 -0
- package/dist/components/scrollbar/index.d.ts.map +1 -0
- package/dist/components/scrollbar/vScrollbar.d.ts +60 -0
- package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -0
- package/dist/components/select/CoarMultiSelect.vue.d.ts +60 -0
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -0
- package/dist/components/select/CoarSelect.vue.d.ts +56 -0
- package/dist/components/select/CoarSelect.vue.d.ts.map +1 -0
- package/dist/components/select/CoarTagSelect.vue.d.ts +54 -0
- package/dist/components/select/CoarTagSelect.vue.d.ts.map +1 -0
- package/dist/components/select/index.d.ts +6 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/types.d.ts +16 -0
- package/dist/components/select/types.d.ts.map +1 -0
- package/dist/components/select/useSelectBase.d.ts +34 -0
- package/dist/components/select/useSelectBase.d.ts.map +1 -0
- package/dist/components/select/useSelectDropdown.d.ts +19 -0
- package/dist/components/select/useSelectDropdown.d.ts.map +1 -0
- package/dist/components/sidebar/CoarSidebar.vue.d.ts +29 -0
- package/dist/components/sidebar/CoarSidebar.vue.d.ts.map +1 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/index.d.ts.map +1 -0
- package/dist/components/spinner/CoarSpinner.vue.d.ts +13 -0
- package/dist/components/spinner/CoarSpinner.vue.d.ts.map +1 -0
- package/dist/components/spinner/index.d.ts +3 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/switch/CoarSwitch.vue.d.ts +42 -0
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/table/CoarTable.vue.d.ts +31 -0
- package/dist/components/table/CoarTable.vue.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/tabs/CoarTab.vue.d.ts +35 -0
- package/dist/components/tabs/CoarTab.vue.d.ts.map +1 -0
- package/dist/components/tabs/CoarTabGroup.vue.d.ts +31 -0
- package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tag/CoarTag.vue.d.ts +42 -0
- package/dist/components/tag/CoarTag.vue.d.ts.map +1 -0
- package/dist/components/tag/index.d.ts +3 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/text-input/CoarTextInput.vue.d.ts +90 -0
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -0
- package/dist/components/text-input/index.d.ts +3 -0
- package/dist/components/text-input/index.d.ts.map +1 -0
- package/dist/components/toast/CoarToastContainer.vue.d.ts +7 -0
- package/dist/components/toast/CoarToastContainer.vue.d.ts.map +1 -0
- package/dist/components/toast/CoarToastItem.vue.d.ts +25 -0
- package/dist/components/toast/CoarToastItem.vue.d.ts.map +1 -0
- package/dist/components/toast/index.d.ts +7 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/toast-service.d.ts +23 -0
- package/dist/components/toast/toast-service.d.ts.map +1 -0
- package/dist/components/toast/toast-types.d.ts +38 -0
- package/dist/components/toast/toast-types.d.ts.map +1 -0
- package/dist/components/toast/useToast.d.ts +18 -0
- package/dist/components/toast/useToast.d.ts.map +1 -0
- package/dist/components/tooltip/vTooltip.d.ts +32 -0
- package/dist/components/tooltip/vTooltip.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +82 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7964 -7798
- package/package.json +4 -6
- package/styles/bundle.css +2 -0
- package/styles/tokens/code-block.css +3 -3
- package/styles/tokens/colors-usage.css +10 -0
- package/styles/tokens/menu.css +55 -31
- package/styles/tokens/new-components.css +58 -0
- package/styles/tokens/select-overlay.css +9 -0
- package/styles/tokens/shadows.css +2 -0
- package/styles/tokens/spacing.css +1 -0
- package/styles/tokens/tooltip.css +6 -1
- package/styles/tokens/typography.css +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
message: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
confirmText: string;
|
|
5
|
+
cancelText: string;
|
|
6
|
+
confirmVariant: 'primary' | 'danger';
|
|
7
|
+
onConfirm: () => void;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=CoarPopconfirmPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPopconfirmPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/components/popconfirm/CoarPopconfirmPanel.vue"],"names":[],"mappings":"AAsHA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,SAAS,GAAG,QAAQ,CAAC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;;AA4GF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popconfirm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export type PopoverMode = 'hover' | 'click' | 'both';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
content?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
triggerRef: HTMLSpanElement;
|
|
11
|
+
panelRef: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
/** Trigger mode: 'hover', 'click', or 'both'. Default: 'hover' */
|
|
18
|
+
mode: {
|
|
19
|
+
type: PropType<PopoverMode>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/** Whether the popover is disabled. */
|
|
23
|
+
disabled: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
/** Whether the panel receives pointer events. Default: true */
|
|
28
|
+
interactive: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
/** Offset from trigger in px. */
|
|
33
|
+
offset: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
/** Trigger mode: 'hover', 'click', or 'both'. Default: 'hover' */
|
|
39
|
+
mode: {
|
|
40
|
+
type: PropType<PopoverMode>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
/** Whether the popover is disabled. */
|
|
44
|
+
disabled: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** Whether the panel receives pointer events. Default: true */
|
|
49
|
+
interactive: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
/** Offset from trigger in px. */
|
|
54
|
+
offset: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{}>, {
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
mode: PopoverMode;
|
|
61
|
+
offset: number;
|
|
62
|
+
interactive: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
64
|
+
triggerRef: HTMLSpanElement;
|
|
65
|
+
panelRef: HTMLDivElement;
|
|
66
|
+
}, HTMLDivElement>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
68
|
+
export default _default;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=CoarPopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarPopover.vue.d.ts","sourceRoot":"","sources":["../../../src/components/popover/CoarPopover.vue"],"names":[],"mappings":"AA8VA,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,KAAK,CAAC;AAKb,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AA+PrD,iBAAS,cAAc;WAmFT,OAAO,IAA6B;;yBAbrB,GAAG;yBACH,GAAG;;;;;;;EAiB/B;AA+BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAMnB,kEAAkE;;cAC1C,QAAQ,CAAC,WAAW,CAAC;;;IAC7C,uCAAuC;;;;;IAEvC,+DAA+D;;;;;IAE/D,iCAAiC;;;;;;IANjC,kEAAkE;;cAC1C,QAAQ,CAAC,WAAW,CAAC;;;IAC7C,uCAAuC;;;;;IAEvC,+DAA+D;;;;;IAE/D,iCAAiC;;;;;;;;;;;;;kBAKjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type ProgressBarVariant = 'accent' | 'success' | 'warning' | 'error';
|
|
2
|
+
export type ProgressBarSize = 's' | 'm' | 'l';
|
|
3
|
+
export interface CoarProgressBarProps {
|
|
4
|
+
/** Current progress value (0 to max). */
|
|
5
|
+
value?: number;
|
|
6
|
+
/** Maximum progress value. */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Visual variant. */
|
|
9
|
+
variant?: ProgressBarVariant;
|
|
10
|
+
/** Bar height size. */
|
|
11
|
+
size?: ProgressBarSize;
|
|
12
|
+
/** Whether to show an indeterminate animation. */
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
/** Accessible label for the progress bar. */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** Whether to display the percentage text. */
|
|
17
|
+
showValue?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import('vue').DefineComponent<CoarProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarProgressBarProps> & Readonly<{}>, {
|
|
20
|
+
size: ProgressBarSize;
|
|
21
|
+
label: string;
|
|
22
|
+
variant: ProgressBarVariant;
|
|
23
|
+
max: number;
|
|
24
|
+
value: number;
|
|
25
|
+
indeterminate: boolean;
|
|
26
|
+
showValue: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
export default _default;
|
|
29
|
+
//# sourceMappingURL=CoarProgressBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarProgressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/progress-bar/CoarProgressBar.vue"],"names":[],"mappings":"AAgJA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAC5E,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE9C,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,uBAAuB;IACvB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,kDAAkD;IAClD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;UAPQ,eAAe;WAId,MAAM;aANJ,kBAAkB;SAFtB,MAAM;WAFJ,MAAM;mBAQE,OAAO;eAIX,OAAO;;AAiHrB,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/progress-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface CoarRadioButtonProps {
|
|
2
|
+
/** Value of this radio option */
|
|
3
|
+
value: unknown;
|
|
4
|
+
/** Disables this specific radio button */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<CoarRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CoarRadioButtonProps> & Readonly<{}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=CoarRadioButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/CoarRadioButton.vue"],"names":[],"mappings":"AAwMA,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAsDD,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA9IR,OAAO;wFAsJlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type RadioGroupOrientation = 'horizontal' | 'vertical';
|
|
2
|
+
export type RadioGroupSize = 's' | 'm' | 'l';
|
|
3
|
+
export interface CoarRadioGroupProps {
|
|
4
|
+
/** Group name for radio inputs */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Accessible label for the group */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Layout orientation */
|
|
9
|
+
orientation?: RadioGroupOrientation;
|
|
10
|
+
/** Size of radio buttons */
|
|
11
|
+
size?: RadioGroupSize;
|
|
12
|
+
/** Disables all radio buttons */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Marks the group as required */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Error message */
|
|
17
|
+
error?: string;
|
|
18
|
+
/** Hint text */
|
|
19
|
+
hint?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RadioGroupContext {
|
|
22
|
+
name: string;
|
|
23
|
+
size: RadioGroupSize;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
hasError: boolean;
|
|
26
|
+
modelValue: unknown;
|
|
27
|
+
selectValue: (value: unknown) => void;
|
|
28
|
+
}
|
|
29
|
+
type __VLS_Props = CoarRadioGroupProps;
|
|
30
|
+
type __VLS_PublicProps = {
|
|
31
|
+
modelValue?: unknown;
|
|
32
|
+
} & __VLS_Props;
|
|
33
|
+
declare function __VLS_template(): {
|
|
34
|
+
attrs: Partial<{}>;
|
|
35
|
+
slots: {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {};
|
|
39
|
+
rootEl: HTMLDivElement;
|
|
40
|
+
};
|
|
41
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
42
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
"update:modelValue": (value: unknown) => any;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
45
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
size: RadioGroupSize;
|
|
48
|
+
label: string;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
required: boolean;
|
|
51
|
+
error: string;
|
|
52
|
+
hint: string;
|
|
53
|
+
orientation: RadioGroupOrientation;
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=CoarRadioGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/CoarRadioGroup.vue"],"names":[],"mappings":"AA0IA,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA0DvC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA8CT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;UAvJZ,cAAc;WAJb,MAAM;cAMH,OAAO;cAEP,OAAO;WAEV,MAAM;UAEP,MAAM;iBAVC,qBAAqB;wFAkKnC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { RadioGroupContext } from './CoarRadioGroup.vue';
|
|
3
|
+
export interface RadioGroupProvided {
|
|
4
|
+
name: ComputedRef<string>;
|
|
5
|
+
size: ComputedRef<RadioGroupContext['size']>;
|
|
6
|
+
disabled: ComputedRef<boolean>;
|
|
7
|
+
hasError: ComputedRef<boolean>;
|
|
8
|
+
modelValue: ComputedRef<unknown>;
|
|
9
|
+
selectValue: (value: unknown) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const RADIO_GROUP_INJECTION_KEY: InjectionKey<RadioGroupProvided>;
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/B,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC;AAED,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,kBAAkB,CAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as CoarRadioGroup } from './CoarRadioGroup.vue';
|
|
2
|
+
export type { CoarRadioGroupProps, RadioGroupOrientation, RadioGroupSize, RadioGroupContext } from './CoarRadioGroup.vue';
|
|
3
|
+
export { RADIO_GROUP_INJECTION_KEY } from './constants';
|
|
4
|
+
export { default as CoarRadioButton } from './CoarRadioButton.vue';
|
|
5
|
+
export type { CoarRadioButtonProps } from './CoarRadioButton.vue';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC1H,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/scrollbar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Directive } from 'vue';
|
|
2
|
+
import { OverlayScrollbars } from 'overlayscrollbars';
|
|
3
|
+
/**
|
|
4
|
+
* Theme options for the scrollbar appearance.
|
|
5
|
+
*/
|
|
6
|
+
export type ScrollbarTheme = 'dark' | 'light';
|
|
7
|
+
/**
|
|
8
|
+
* Auto-hide behavior for the scrollbar.
|
|
9
|
+
* - 'never': Scrollbars are always visible
|
|
10
|
+
* - 'scroll': Scrollbars hide when not scrolling
|
|
11
|
+
* - 'leave': Scrollbars hide when pointer leaves the element
|
|
12
|
+
* - 'move': Scrollbars hide when pointer stops moving
|
|
13
|
+
*/
|
|
14
|
+
export type ScrollbarAutoHide = 'never' | 'scroll' | 'leave' | 'move';
|
|
15
|
+
/**
|
|
16
|
+
* Overflow behavior for each axis.
|
|
17
|
+
*/
|
|
18
|
+
export type ScrollbarOverflow = 'hidden' | 'scroll' | 'visible-hidden' | 'visible-scroll';
|
|
19
|
+
export interface ScrollbarOptions {
|
|
20
|
+
/** Scrollbar theme. Default: 'dark' */
|
|
21
|
+
theme?: ScrollbarTheme;
|
|
22
|
+
/** Auto-hide behavior. Default: 'leave' */
|
|
23
|
+
autoHide?: ScrollbarAutoHide;
|
|
24
|
+
/** Auto-hide delay in ms. Default: 400 */
|
|
25
|
+
autoHideDelay?: number;
|
|
26
|
+
/** Whether clicking the track scrolls to that position. Default: true */
|
|
27
|
+
clickScroll?: boolean;
|
|
28
|
+
/** Overflow behavior for x-axis. Default: 'scroll' */
|
|
29
|
+
overflowX?: ScrollbarOverflow;
|
|
30
|
+
/** Overflow behavior for y-axis. Default: 'scroll' */
|
|
31
|
+
overflowY?: ScrollbarOverflow;
|
|
32
|
+
/** Whether to defer initialization until browser is idle. Default: true */
|
|
33
|
+
defer?: boolean;
|
|
34
|
+
/** Overscroll behavior. Default: 'auto' */
|
|
35
|
+
overscrollBehavior?: 'auto' | 'contain' | 'none';
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Vue directive that applies custom overlay scrollbars to an element.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```html
|
|
42
|
+
* <!-- Basic usage -->
|
|
43
|
+
* <div v-scrollbar>Scrollable content</div>
|
|
44
|
+
*
|
|
45
|
+
* <!-- With options -->
|
|
46
|
+
* <div v-scrollbar="{ theme: 'light', autoHide: 'scroll' }">
|
|
47
|
+
* Scrollable content
|
|
48
|
+
* </div>
|
|
49
|
+
*
|
|
50
|
+
* <!-- Disabled -->
|
|
51
|
+
* <div v-scrollbar="false">No custom scrollbar</div>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare const vScrollbar: Directive<HTMLElement, ScrollbarOptions | boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Get the OverlayScrollbars instance for an element that has v-scrollbar applied.
|
|
57
|
+
* Useful for programmatic scrolling (scrollTo, scrollToTop, etc.)
|
|
58
|
+
*/
|
|
59
|
+
export declare function getScrollbarInstance(el: HTMLElement): OverlayScrollbars | null;
|
|
60
|
+
//# sourceMappingURL=vScrollbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vScrollbar.d.ts","sourceRoot":"","sources":["../../../src/components/scrollbar/vScrollbar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAA0C,MAAM,mBAAmB,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAE1F,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sDAAsD;IACtD,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,sDAAsD;IACtD,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,2EAA2E;IAC3E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;CAClD;AAyFD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,CAAC,WAAW,EAAE,gBAAgB,GAAG,OAAO,CA0CzE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,GAAG,iBAAiB,GAAG,IAAI,CAE9E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CoarSelectSize, CoarSelectAppearance } from './useSelectBase';
|
|
2
|
+
import { CoarSelectOption } from './types';
|
|
3
|
+
export interface CoarMultiSelectProps<T = unknown> {
|
|
4
|
+
/** Label text */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Placeholder text */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** Available options */
|
|
9
|
+
options?: CoarSelectOption<T>[];
|
|
10
|
+
/** Select size */
|
|
11
|
+
size?: CoarSelectSize;
|
|
12
|
+
/** Visual appearance */
|
|
13
|
+
appearance?: CoarSelectAppearance;
|
|
14
|
+
/** Disables the select */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Makes the select read-only */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** Marks as required */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** Error message */
|
|
21
|
+
error?: string;
|
|
22
|
+
/** Hint text */
|
|
23
|
+
hint?: string;
|
|
24
|
+
/** HTML id */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** HTML name */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** Enable search/filter */
|
|
29
|
+
searchable?: boolean;
|
|
30
|
+
/** Search placeholder */
|
|
31
|
+
searchPlaceholder?: string;
|
|
32
|
+
/** Show clear button */
|
|
33
|
+
clearable?: boolean;
|
|
34
|
+
/** Show "Select All" checkbox */
|
|
35
|
+
showSelectAll?: boolean;
|
|
36
|
+
/** Label for "Select All" */
|
|
37
|
+
selectAllLabel?: string;
|
|
38
|
+
/** Comparison function */
|
|
39
|
+
compareWith?: (a: T, b: T) => boolean;
|
|
40
|
+
/** Dropdown position */
|
|
41
|
+
dropdownPosition?: 'auto' | 'top' | 'bottom';
|
|
42
|
+
}
|
|
43
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
44
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
45
|
+
readonly "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
46
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
47
|
+
modelValue?: T[];
|
|
48
|
+
} & CoarMultiSelectProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
49
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
50
|
+
attrs: any;
|
|
51
|
+
slots: {};
|
|
52
|
+
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
53
|
+
}>) => import('vue').VNode & {
|
|
54
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
|
+
};
|
|
56
|
+
export default _default;
|
|
57
|
+
type __VLS_PrettifyLocal<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
60
|
+
//# sourceMappingURL=CoarMultiSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarMultiSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarMultiSelect.vue"],"names":[],"mappings":"AAutBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iCAAiC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,6BAA6B;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IACtC,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC9C;yBAEgB,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WA8lBO,mBAAmB,CAAC;;;qBAzYf,CAAC,EAAE;8CAyY8E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzmBzE,wBAymB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CoarSelectSize, CoarSelectAppearance } from './useSelectBase';
|
|
2
|
+
import { CoarSelectOption } from './types';
|
|
3
|
+
export interface CoarSelectProps<T = unknown> {
|
|
4
|
+
/** Label text displayed above the select */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Placeholder text */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** Available options */
|
|
9
|
+
options?: CoarSelectOption<T>[];
|
|
10
|
+
/** Select size */
|
|
11
|
+
size?: CoarSelectSize;
|
|
12
|
+
/** Visual appearance */
|
|
13
|
+
appearance?: CoarSelectAppearance;
|
|
14
|
+
/** Disables the select */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Makes the select read-only */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** Marks as required */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** Error message */
|
|
21
|
+
error?: string;
|
|
22
|
+
/** Hint text */
|
|
23
|
+
hint?: string;
|
|
24
|
+
/** HTML id */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** HTML name */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** Enable search/filter */
|
|
29
|
+
searchable?: boolean;
|
|
30
|
+
/** Search placeholder */
|
|
31
|
+
searchPlaceholder?: string;
|
|
32
|
+
/** Show clear button */
|
|
33
|
+
clearable?: boolean;
|
|
34
|
+
/** Comparison function for matching values */
|
|
35
|
+
compareWith?: (a: T, b: T) => boolean;
|
|
36
|
+
/** Dropdown position preference */
|
|
37
|
+
dropdownPosition?: 'auto' | 'top' | 'bottom';
|
|
38
|
+
}
|
|
39
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
40
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
41
|
+
readonly "onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
|
|
42
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
43
|
+
modelValue?: T | null;
|
|
44
|
+
} & CoarSelectProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
45
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
46
|
+
attrs: any;
|
|
47
|
+
slots: {};
|
|
48
|
+
emit: (evt: "update:modelValue", value: T | null) => void;
|
|
49
|
+
}>) => import('vue').VNode & {
|
|
50
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_PrettifyLocal<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
56
|
+
//# sourceMappingURL=CoarSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarSelect.vue"],"names":[],"mappings":"AAgnBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IACtC,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC9C;yBAEgB,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAqgBO,mBAAmB,CAAC;;;qBA/Vf,CAAC,GAAG,IAAI;yCA+VyE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAhhBzE,wBAghB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CoarSelectSize, CoarSelectAppearance } from './useSelectBase';
|
|
2
|
+
import { CoarSelectOption } from './types';
|
|
3
|
+
export interface CoarTagSelectProps<T = unknown> {
|
|
4
|
+
/** Label text */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Placeholder text */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
/** Available options */
|
|
9
|
+
options?: CoarSelectOption<T>[];
|
|
10
|
+
/** Select size */
|
|
11
|
+
size?: CoarSelectSize;
|
|
12
|
+
/** Visual appearance */
|
|
13
|
+
appearance?: CoarSelectAppearance;
|
|
14
|
+
/** Disables the select */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Makes the select read-only */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** Marks as required */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** Error message */
|
|
21
|
+
error?: string;
|
|
22
|
+
/** Hint text */
|
|
23
|
+
hint?: string;
|
|
24
|
+
/** HTML id */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** HTML name */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** Search placeholder */
|
|
29
|
+
searchPlaceholder?: string;
|
|
30
|
+
/** Allow creating new tags by typing */
|
|
31
|
+
allowCreate?: boolean;
|
|
32
|
+
/** Comparison function */
|
|
33
|
+
compareWith?: (a: T, b: T) => boolean;
|
|
34
|
+
/** Dropdown position */
|
|
35
|
+
dropdownPosition?: 'auto' | 'top' | 'bottom';
|
|
36
|
+
}
|
|
37
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
38
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
39
|
+
readonly "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
40
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
41
|
+
modelValue?: T[];
|
|
42
|
+
} & CoarTagSelectProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
43
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
44
|
+
attrs: any;
|
|
45
|
+
slots: {};
|
|
46
|
+
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
47
|
+
}>) => import('vue').VNode & {
|
|
48
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_PrettifyLocal<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
54
|
+
//# sourceMappingURL=CoarTagSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarTagSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/select/CoarTagSelect.vue"],"names":[],"mappings":"AAyjBA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGhG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO;IAC7C,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,kBAAkB;IAClB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC;IACtC,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC9C;yBAEgB,CAAC,EACjB,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAseO,mBAAmB,CAAC;;;qBA3Rf,CAAC,EAAE;4CA2R8E,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAjfzE,wBAif4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as CoarSelect } from './CoarSelect.vue';
|
|
2
|
+
export { default as CoarMultiSelect } from './CoarMultiSelect.vue';
|
|
3
|
+
export { default as CoarTagSelect } from './CoarTagSelect.vue';
|
|
4
|
+
export type { CoarSelectOption } from './types';
|
|
5
|
+
export type { CoarSelectSize, CoarSelectAppearance } from './useSelectBase';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a selectable option in select components.
|
|
3
|
+
*/
|
|
4
|
+
export interface CoarSelectOption<T = unknown> {
|
|
5
|
+
/** The value stored when this option is selected */
|
|
6
|
+
value: T;
|
|
7
|
+
/** The display label shown in the dropdown and selected state */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Whether this option is disabled and cannot be selected */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Optional group this option belongs to */
|
|
12
|
+
group?: string;
|
|
13
|
+
/** Optional icon to display next to the label */
|
|
14
|
+
icon?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,oDAAoD;IACpD,KAAK,EAAE,CAAC,CAAC;IACT,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CoarSelectOption } from './types';
|
|
3
|
+
export type CoarSelectSize = 'xs' | 's' | 'm' | 'l';
|
|
4
|
+
export type CoarSelectAppearance = 'outline' | 'inline';
|
|
5
|
+
export interface UseSelectBaseOptions<T = unknown> {
|
|
6
|
+
options: Ref<CoarSelectOption<T>[]>;
|
|
7
|
+
searchable: Ref<boolean>;
|
|
8
|
+
disabled: Ref<boolean>;
|
|
9
|
+
readonly: Ref<boolean>;
|
|
10
|
+
id: Ref<string>;
|
|
11
|
+
dropdownPositionPreference: Ref<'auto' | 'top' | 'bottom'>;
|
|
12
|
+
}
|
|
13
|
+
export declare function useSelectBase<T = unknown>(opts: UseSelectBaseOptions<T>): {
|
|
14
|
+
isOpen: Ref<boolean, boolean>;
|
|
15
|
+
isFocused: Ref<boolean, boolean>;
|
|
16
|
+
searchQuery: Ref<string, string>;
|
|
17
|
+
highlightedIndex: Ref<number, number>;
|
|
18
|
+
dropdownPosition: Ref<"top" | "bottom", "top" | "bottom">;
|
|
19
|
+
inputId: import('vue').ComputedRef<string>;
|
|
20
|
+
messageId: import('vue').ComputedRef<string>;
|
|
21
|
+
listboxId: import('vue').ComputedRef<string>;
|
|
22
|
+
filteredOptions: import('vue').ComputedRef<CoarSelectOption<T>[]>;
|
|
23
|
+
activeDescendantId: import('vue').ComputedRef<string | undefined>;
|
|
24
|
+
openDropdown: (triggerEl?: HTMLElement) => void;
|
|
25
|
+
closeDropdown: () => void;
|
|
26
|
+
toggleDropdown: (triggerEl?: HTMLElement) => void;
|
|
27
|
+
onSearchInput: (event: Event) => void;
|
|
28
|
+
onFocus: () => void;
|
|
29
|
+
onBlur: () => void;
|
|
30
|
+
onKeyDown: (event: KeyboardEvent, selectHighlighted: () => void, triggerEl?: HTMLElement) => void;
|
|
31
|
+
handleOutsideClick: (event: MouseEvent, hostEl: HTMLElement | null) => void;
|
|
32
|
+
highlightFirstOption: () => void;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=useSelectBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectBase.d.ts","sourceRoot":"","sources":["../../../src/components/select/useSelectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACpD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAExD,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C,OAAO,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACpC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACvB,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAChB,0BAA0B,EAAE,GAAG,CAAC,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC;CAC5D;AAED,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC;;;;;;;;;;;+BAoFpC,WAAW;;iCA0BT,WAAW;2BAKjB,KAAK;;;uBAiB1B,aAAa,qBACD,MAAM,IAAI,cACjB,WAAW;gCAVU,UAAU,UAAU,WAAW,GAAG,IAAI;;EAyF1E"}
|