@coreui/vue-pro 4.8.2 → 4.9.0-beta.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/components/accordion/CAccordion.d.ts +1 -1
- package/dist/components/accordion/CAccordionBody.d.ts +1 -1
- package/dist/components/accordion/CAccordionButton.d.ts +1 -1
- package/dist/components/accordion/CAccordionHeader.d.ts +1 -1
- package/dist/components/accordion/CAccordionItem.d.ts +1 -1
- package/dist/components/alert/CAlert.d.ts +1 -1
- package/dist/components/alert/CAlertHeading.d.ts +1 -1
- package/dist/components/alert/CAlertLink.d.ts +1 -1
- package/dist/components/avatar/CAvatar.d.ts +1 -1
- package/dist/components/backdrop/CBackdrop.d.ts +1 -1
- package/dist/components/badge/CBadge.d.ts +1 -1
- package/dist/components/breadcrumb/CBreadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +1 -1
- package/dist/components/button/CButton.d.ts +1 -1
- package/dist/components/button-group/CButtonGroup.d.ts +1 -1
- package/dist/components/button-group/CButtonToolbar.d.ts +1 -1
- package/dist/components/calendar/CCalendar.d.ts +33 -1
- package/dist/components/callout/CCallout.d.ts +1 -1
- package/dist/components/card/CCard.d.ts +1 -1
- package/dist/components/card/CCardBody.d.ts +1 -1
- package/dist/components/card/CCardFooter.d.ts +1 -1
- package/dist/components/card/CCardGroup.d.ts +1 -1
- package/dist/components/card/CCardHeader.d.ts +1 -1
- package/dist/components/card/CCardImage.d.ts +1 -1
- package/dist/components/card/CCardImageOverlay.d.ts +1 -1
- package/dist/components/card/CCardLink.d.ts +1 -1
- package/dist/components/card/CCardSubtitle.d.ts +1 -1
- package/dist/components/card/CCardText.d.ts +1 -1
- package/dist/components/card/CCardTitle.d.ts +1 -1
- package/dist/components/carousel/CCarousel.d.ts +1 -1
- package/dist/components/carousel/CCarouselCaption.d.ts +1 -1
- package/dist/components/carousel/CCarouselItem.d.ts +1 -1
- package/dist/components/close-button/CCloseButton.d.ts +1 -1
- package/dist/components/collapse/CCollapse.d.ts +1 -1
- package/dist/components/date-picker/CDatePicker.d.ts +35 -3
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +89 -78
- package/dist/components/date-range-picker/utils.d.ts +1 -0
- package/dist/components/dropdown/CDropdown.d.ts +2 -2
- package/dist/components/dropdown/CDropdownDivider.d.ts +1 -1
- package/dist/components/dropdown/CDropdownHeader.d.ts +1 -1
- package/dist/components/dropdown/CDropdownItem.d.ts +1 -1
- package/dist/components/dropdown/CDropdownMenu.d.ts +1 -1
- package/dist/components/dropdown/CDropdownToggle.d.ts +1 -1
- package/dist/components/element-cover/CElementCover.d.ts +1 -1
- package/dist/components/footer/CFooter.d.ts +1 -1
- package/dist/components/form/CForm.d.ts +1 -1
- package/dist/components/form/CFormCheck.d.ts +10 -2
- package/dist/components/form/CFormControl.d.ts +2 -2
- package/dist/components/form/CFormControlValidation.d.ts +1 -1
- package/dist/components/form/CFormControlWrapper.d.ts +1 -1
- package/dist/components/form/CFormFeedback.d.ts +1 -1
- package/dist/components/form/CFormFloating.d.ts +1 -1
- package/dist/components/form/CFormInput.d.ts +12 -12
- package/dist/components/form/CFormLabel.d.ts +1 -1
- package/dist/components/form/CFormRange.d.ts +1 -1
- package/dist/components/form/CFormSelect.d.ts +1 -1
- package/dist/components/form/CFormSwitch.d.ts +1 -1
- package/dist/components/form/CFormText.d.ts +1 -1
- package/dist/components/form/CFormTextarea.d.ts +3 -3
- package/dist/components/form/CInputGroup.d.ts +1 -1
- package/dist/components/form/CInputGroupText.d.ts +1 -1
- package/dist/components/grid/CCol.d.ts +1 -1
- package/dist/components/grid/CContainer.d.ts +1 -1
- package/dist/components/grid/CRow.d.ts +1 -1
- package/dist/components/header/CHeader.d.ts +1 -1
- package/dist/components/header/CHeaderBrand.d.ts +1 -1
- package/dist/components/header/CHeaderDivider.d.ts +1 -1
- package/dist/components/header/CHeaderNav.d.ts +1 -1
- package/dist/components/header/CHeaderText.d.ts +1 -1
- package/dist/components/header/CHeaderToggler.d.ts +1 -1
- package/dist/components/image/CImage.d.ts +1 -1
- package/dist/components/link/CLink.d.ts +1 -1
- package/dist/components/list-group/CListGroup.d.ts +1 -1
- package/dist/components/list-group/CListGroupItem.d.ts +1 -1
- package/dist/components/loading-button/CLoadingButton.d.ts +1 -1
- package/dist/components/modal/CModal.d.ts +1 -1
- package/dist/components/modal/CModalBody.d.ts +1 -1
- package/dist/components/modal/CModalFooter.d.ts +1 -1
- package/dist/components/modal/CModalHeader.d.ts +1 -1
- package/dist/components/modal/CModalTitle.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelect.d.ts +73 -59
- package/dist/components/multi-select/CMultiSelectNativeSelect.d.ts +9 -33
- package/dist/components/multi-select/CMultiSelectOptions.d.ts +12 -41
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +6 -59
- package/dist/components/multi-select/types.d.ts +8 -3
- package/dist/components/multi-select/utils.d.ts +9 -4
- package/dist/components/nav/CNav.d.ts +1 -1
- package/dist/components/nav/CNavGroup.d.ts +1 -1
- package/dist/components/nav/CNavGroupItems.d.ts +1 -1
- package/dist/components/nav/CNavItem.d.ts +1 -1
- package/dist/components/nav/CNavLink.d.ts +1 -1
- package/dist/components/nav/CNavTitle.d.ts +1 -1
- package/dist/components/navbar/CNavbar.d.ts +1 -1
- package/dist/components/navbar/CNavbarBrand.d.ts +1 -1
- package/dist/components/navbar/CNavbarNav.d.ts +1 -1
- package/dist/components/navbar/CNavbarText.d.ts +1 -1
- package/dist/components/navbar/CNavbarToggler.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvas.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvasBody.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvasHeader.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvasTitle.d.ts +1 -1
- package/dist/components/pagination/CPagination.d.ts +1 -1
- package/dist/components/pagination/CPaginationItem.d.ts +1 -1
- package/dist/components/picker/CPicker.d.ts +57 -7
- package/dist/components/placeholder/CPlaceholder.d.ts +1 -1
- package/dist/components/popover/CPopover.d.ts +2 -2
- package/dist/components/progress/CProgress.d.ts +1 -1
- package/dist/components/progress/CProgressBar.d.ts +1 -1
- package/dist/components/sidebar/CSidebar.d.ts +1 -1
- package/dist/components/sidebar/CSidebarBrand.d.ts +1 -1
- package/dist/components/sidebar/CSidebarFooter.d.ts +1 -1
- package/dist/components/sidebar/CSidebarHeader.d.ts +1 -1
- package/dist/components/sidebar/CSidebarNav.d.ts +1 -1
- package/dist/components/sidebar/CSidebarToggler.d.ts +1 -1
- package/dist/components/smart-pagination/CSmartPagination.d.ts +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +20 -56
- package/dist/components/smart-table/CSmartTableBody.d.ts +1 -1
- package/dist/components/smart-table/CSmartTableCleaner.d.ts +1 -1
- package/dist/components/smart-table/CSmartTableFilter.d.ts +1 -1
- package/dist/components/smart-table/CSmartTableHead.d.ts +10 -1
- package/dist/components/smart-table/CSmartTableItemsPerPageSelector.d.ts +1 -1
- package/dist/components/smart-table/types.d.ts +12 -0
- package/dist/components/smart-table/utils.d.ts +12 -2
- package/dist/components/spinner/CSpinner.d.ts +1 -1
- package/dist/components/table/CTable.d.ts +1 -1
- package/dist/components/table/CTableBody.d.ts +1 -1
- package/dist/components/table/CTableCaption.d.ts +1 -1
- package/dist/components/table/CTableDataCell.d.ts +1 -1
- package/dist/components/table/CTableFoot.d.ts +1 -1
- package/dist/components/table/CTableHead.d.ts +1 -1
- package/dist/components/table/CTableHeaderCell.d.ts +1 -1
- package/dist/components/table/CTableRow.d.ts +1 -1
- package/dist/components/tabs/CTabContent.d.ts +1 -1
- package/dist/components/tabs/CTabPane.d.ts +1 -1
- package/dist/components/time-picker/CTimePicker.d.ts +1 -1
- package/dist/components/time-picker/CTimePickerRollCol.d.ts +1 -1
- package/dist/components/toast/CToast.d.ts +1 -1
- package/dist/components/toast/CToastBody.d.ts +1 -1
- package/dist/components/toast/CToastClose.d.ts +1 -1
- package/dist/components/toast/CToastHeader.d.ts +1 -1
- package/dist/components/toast/CToaster.d.ts +1 -1
- package/dist/components/tooltip/CTooltip.d.ts +2 -2
- package/dist/components/virtual-scroller/CVirtualScroller.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsA.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsB.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsC.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsD.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsE.d.ts +1 -1
- package/dist/components/widgets/CWidgetStatsF.d.ts +1 -1
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/useColorModes.d.ts +5 -0
- package/dist/directives/index.d.ts +1 -1
- package/dist/directives/v-c-visible.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +4224 -4159
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4226 -4160
- package/dist/index.js.map +1 -1
- package/dist/utils/getUID.d.ts +2 -0
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/isObjectInArray.d.ts +2 -0
- package/dist/utils/isRTL.d.ts +2 -0
- package/package.json +11 -11
- package/src/components/accordion/CAccordionItem.ts +2 -2
- package/src/components/backdrop/CBackdrop.ts +1 -1
- package/src/components/calendar/CCalendar.ts +111 -49
- package/src/components/carousel/CCarousel.ts +7 -7
- package/src/components/date-picker/CDatePicker.ts +16 -1
- package/src/components/date-range-picker/CDateRangePicker.ts +179 -128
- package/src/components/date-range-picker/utils.ts +49 -0
- package/src/components/dropdown/CDropdown.ts +34 -31
- package/src/components/dropdown/CDropdownMenu.ts +1 -1
- package/src/components/dropdown/CDropdownToggle.ts +1 -1
- package/src/components/element-cover/CElementCover.ts +1 -0
- package/src/components/form/CFormCheck.ts +10 -4
- package/src/components/form/CFormInput.ts +2 -2
- package/src/components/form/CFormLabel.ts +1 -1
- package/src/components/form/CFormSelect.ts +1 -1
- package/src/components/grid/CCol.ts +1 -1
- package/src/components/grid/CContainer.ts +1 -1
- package/src/components/header/CHeader.ts +1 -1
- package/src/components/modal/CModal.ts +1 -0
- package/src/components/multi-select/CMultiSelect.ts +337 -144
- package/src/components/multi-select/CMultiSelectNativeSelect.ts +8 -15
- package/src/components/multi-select/CMultiSelectOptions.ts +32 -39
- package/src/components/multi-select/CMultiSelectSelection.ts +24 -40
- package/src/components/multi-select/types.ts +10 -4
- package/src/components/multi-select/utils.ts +71 -37
- package/src/components/nav/CNavGroup.ts +4 -0
- package/src/components/navbar/CNavbar.ts +1 -1
- package/src/components/navbar/CNavbarBrand.ts +1 -1
- package/src/components/offcanvas/COffcanvas.ts +3 -2
- package/src/components/pagination/CPaginationItem.ts +1 -1
- package/src/components/picker/CPicker.ts +106 -157
- package/src/components/popover/CPopover.ts +18 -2
- package/src/components/props.ts +2 -6
- package/src/components/sidebar/CSidebar.ts +3 -2
- package/src/components/smart-table/CSmartTable.ts +45 -52
- package/src/components/smart-table/CSmartTableBody.ts +5 -3
- package/src/components/smart-table/CSmartTableHead.ts +41 -14
- package/src/components/smart-table/types.ts +13 -0
- package/src/components/smart-table/utils.ts +119 -21
- package/src/components/spinner/CSpinner.ts +4 -2
- package/src/components/table/CTable.ts +19 -18
- package/src/components/table/types.ts +19 -19
- package/src/components/time-picker/CTimePicker.ts +216 -125
- package/src/components/toast/CToast.ts +1 -1
- package/src/components/tooltip/CTooltip.ts +19 -3
- package/src/components/virtual-scroller/CVirtualScroller.ts +10 -8
- package/src/components/widgets/CWidgetStatsA.ts +1 -1
- package/src/components/widgets/CWidgetStatsB.ts +1 -1
- package/src/components/widgets/CWidgetStatsC.ts +1 -1
- package/src/components/widgets/CWidgetStatsE.ts +1 -1
- package/src/components/widgets/CWidgetStatsF.ts +1 -1
- package/src/composables/index.ts +3 -0
- package/src/composables/useColorModes.ts +57 -0
- package/src/directives/index.ts +1 -1
- package/src/directives/v-c-popover.ts +9 -13
- package/src/directives/v-c-tooltip.ts +8 -12
- package/src/directives/v-c-visible.ts +1 -1
- package/src/index.ts +8 -29
- package/src/utils/getUID.ts +9 -0
- package/src/utils/index.ts +4 -1
- package/src/utils/isObjectInArray.ts +14 -0
- package/src/utils/isRTL.ts +13 -0
|
@@ -80,5 +80,5 @@ declare const CRow: import("vue").DefineComponent<{
|
|
|
80
80
|
* @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
|
|
81
81
|
*/
|
|
82
82
|
xxl: () => BPObject;
|
|
83
|
-
}>>, {}>;
|
|
83
|
+
}>>, {}, {}>;
|
|
84
84
|
export { CRow };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CHeaderDivider: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export { CHeaderDivider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CHeaderText: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export { CHeaderText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CHeaderToggler: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export { CHeaderToggler };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CModalBody: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export { CModalBody };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CModalFooter: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
2
|
[key: string]: any;
|
|
3
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
4
4
|
export { CModalFooter };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import type { Option } from './types';
|
|
2
|
+
import type { Option, OptionsGroup } from './types';
|
|
3
3
|
declare const CMultiSelect: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* Allow users to create options if they are not in the list of options.
|
|
6
|
+
*
|
|
7
|
+
* @since 4.9.0-next.0
|
|
8
|
+
*/
|
|
9
|
+
allowCreateOptions: BooleanConstructor;
|
|
4
10
|
/**
|
|
5
11
|
* Enables selection cleaner element.
|
|
6
12
|
*
|
|
@@ -10,43 +16,38 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
10
16
|
type: BooleanConstructor;
|
|
11
17
|
default: boolean;
|
|
12
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Clear current search on selecting an item.
|
|
21
|
+
*
|
|
22
|
+
* @since 4.9.0-next.0
|
|
23
|
+
*/
|
|
24
|
+
clearSearchOnSelect: BooleanConstructor;
|
|
13
25
|
/**
|
|
14
26
|
* Toggle the disabled state for the component.
|
|
15
27
|
*/
|
|
16
|
-
disabled:
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
28
|
+
disabled: BooleanConstructor;
|
|
20
29
|
/**
|
|
21
30
|
* Provide valuable, actionable feedback.
|
|
22
31
|
*
|
|
23
32
|
* @since 4.6.0
|
|
24
33
|
*/
|
|
25
|
-
feedback:
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
};
|
|
34
|
+
feedback: StringConstructor;
|
|
28
35
|
/**
|
|
29
36
|
* Provide valuable, actionable feedback.
|
|
30
37
|
*
|
|
31
38
|
* @since 4.6.0
|
|
32
39
|
*/
|
|
33
|
-
feedbackInvalid:
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
};
|
|
40
|
+
feedbackInvalid: StringConstructor;
|
|
36
41
|
/**
|
|
37
42
|
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
38
43
|
*
|
|
39
44
|
* @since 4.6.0
|
|
40
45
|
*/
|
|
41
|
-
feedbackValid:
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
};
|
|
46
|
+
feedbackValid: StringConstructor;
|
|
44
47
|
/**
|
|
45
48
|
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
46
49
|
*/
|
|
47
|
-
id:
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
};
|
|
50
|
+
id: StringConstructor;
|
|
50
51
|
/**
|
|
51
52
|
* Set component validation state to invalid.
|
|
52
53
|
*
|
|
@@ -58,9 +59,13 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
58
59
|
*
|
|
59
60
|
* @since 4.6.0
|
|
60
61
|
*/
|
|
61
|
-
label:
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
label: StringConstructor;
|
|
63
|
+
/**
|
|
64
|
+
* When set, the options list will have a loading style: loading spinner and reduced opacity.
|
|
65
|
+
*
|
|
66
|
+
* @since 4.9.0-next.0
|
|
67
|
+
*/
|
|
68
|
+
loading: BooleanConstructor;
|
|
64
69
|
/**
|
|
65
70
|
* It specifies that multiple options can be selected at once.
|
|
66
71
|
*
|
|
@@ -74,7 +79,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
74
79
|
* List of option elements.
|
|
75
80
|
*/
|
|
76
81
|
options: {
|
|
77
|
-
type: PropType<Option[]>;
|
|
82
|
+
type: PropType<(Option | OptionsGroup)[]>;
|
|
78
83
|
default: () => never[];
|
|
79
84
|
};
|
|
80
85
|
/**
|
|
@@ -106,6 +111,10 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
106
111
|
type: StringConstructor;
|
|
107
112
|
default: string;
|
|
108
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* When it is present, it indicates that the user must choose a value before submitting the form.
|
|
116
|
+
*/
|
|
117
|
+
required: BooleanConstructor;
|
|
109
118
|
/**
|
|
110
119
|
* Enables search input element.
|
|
111
120
|
*/
|
|
@@ -173,9 +182,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
173
182
|
*
|
|
174
183
|
* @since 4.6.0
|
|
175
184
|
*/
|
|
176
|
-
text:
|
|
177
|
-
type: StringConstructor;
|
|
178
|
-
};
|
|
185
|
+
text: StringConstructor;
|
|
179
186
|
/**
|
|
180
187
|
* Display validation feedback in a styled tooltip.
|
|
181
188
|
*
|
|
@@ -199,10 +206,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
199
206
|
*
|
|
200
207
|
* @default false
|
|
201
208
|
*/
|
|
202
|
-
visible:
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: boolean;
|
|
205
|
-
};
|
|
209
|
+
visible: BooleanConstructor;
|
|
206
210
|
/**
|
|
207
211
|
*
|
|
208
212
|
* Amount of visible items when virtualScroller is set to `true`.
|
|
@@ -215,7 +219,13 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
215
219
|
};
|
|
216
220
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
217
221
|
[key: string]: any;
|
|
218
|
-
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "filterChange")[], "change" | "filterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "hide" | "show" | "filterChange")[], "change" | "hide" | "show" | "filterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
223
|
+
/**
|
|
224
|
+
* Allow users to create options if they are not in the list of options.
|
|
225
|
+
*
|
|
226
|
+
* @since 4.9.0-next.0
|
|
227
|
+
*/
|
|
228
|
+
allowCreateOptions: BooleanConstructor;
|
|
219
229
|
/**
|
|
220
230
|
* Enables selection cleaner element.
|
|
221
231
|
*
|
|
@@ -225,43 +235,38 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
225
235
|
type: BooleanConstructor;
|
|
226
236
|
default: boolean;
|
|
227
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* Clear current search on selecting an item.
|
|
240
|
+
*
|
|
241
|
+
* @since 4.9.0-next.0
|
|
242
|
+
*/
|
|
243
|
+
clearSearchOnSelect: BooleanConstructor;
|
|
228
244
|
/**
|
|
229
245
|
* Toggle the disabled state for the component.
|
|
230
246
|
*/
|
|
231
|
-
disabled:
|
|
232
|
-
type: BooleanConstructor;
|
|
233
|
-
default: boolean;
|
|
234
|
-
};
|
|
247
|
+
disabled: BooleanConstructor;
|
|
235
248
|
/**
|
|
236
249
|
* Provide valuable, actionable feedback.
|
|
237
250
|
*
|
|
238
251
|
* @since 4.6.0
|
|
239
252
|
*/
|
|
240
|
-
feedback:
|
|
241
|
-
type: StringConstructor;
|
|
242
|
-
};
|
|
253
|
+
feedback: StringConstructor;
|
|
243
254
|
/**
|
|
244
255
|
* Provide valuable, actionable feedback.
|
|
245
256
|
*
|
|
246
257
|
* @since 4.6.0
|
|
247
258
|
*/
|
|
248
|
-
feedbackInvalid:
|
|
249
|
-
type: StringConstructor;
|
|
250
|
-
};
|
|
259
|
+
feedbackInvalid: StringConstructor;
|
|
251
260
|
/**
|
|
252
261
|
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
253
262
|
*
|
|
254
263
|
* @since 4.6.0
|
|
255
264
|
*/
|
|
256
|
-
feedbackValid:
|
|
257
|
-
type: StringConstructor;
|
|
258
|
-
};
|
|
265
|
+
feedbackValid: StringConstructor;
|
|
259
266
|
/**
|
|
260
267
|
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
261
268
|
*/
|
|
262
|
-
id:
|
|
263
|
-
type: StringConstructor;
|
|
264
|
-
};
|
|
269
|
+
id: StringConstructor;
|
|
265
270
|
/**
|
|
266
271
|
* Set component validation state to invalid.
|
|
267
272
|
*
|
|
@@ -273,9 +278,13 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
273
278
|
*
|
|
274
279
|
* @since 4.6.0
|
|
275
280
|
*/
|
|
276
|
-
label:
|
|
277
|
-
|
|
278
|
-
|
|
281
|
+
label: StringConstructor;
|
|
282
|
+
/**
|
|
283
|
+
* When set, the options list will have a loading style: loading spinner and reduced opacity.
|
|
284
|
+
*
|
|
285
|
+
* @since 4.9.0-next.0
|
|
286
|
+
*/
|
|
287
|
+
loading: BooleanConstructor;
|
|
279
288
|
/**
|
|
280
289
|
* It specifies that multiple options can be selected at once.
|
|
281
290
|
*
|
|
@@ -289,7 +298,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
289
298
|
* List of option elements.
|
|
290
299
|
*/
|
|
291
300
|
options: {
|
|
292
|
-
type: PropType<Option[]>;
|
|
301
|
+
type: PropType<(Option | OptionsGroup)[]>;
|
|
293
302
|
default: () => never[];
|
|
294
303
|
};
|
|
295
304
|
/**
|
|
@@ -321,6 +330,10 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
321
330
|
type: StringConstructor;
|
|
322
331
|
default: string;
|
|
323
332
|
};
|
|
333
|
+
/**
|
|
334
|
+
* When it is present, it indicates that the user must choose a value before submitting the form.
|
|
335
|
+
*/
|
|
336
|
+
required: BooleanConstructor;
|
|
324
337
|
/**
|
|
325
338
|
* Enables search input element.
|
|
326
339
|
*/
|
|
@@ -388,9 +401,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
388
401
|
*
|
|
389
402
|
* @since 4.6.0
|
|
390
403
|
*/
|
|
391
|
-
text:
|
|
392
|
-
type: StringConstructor;
|
|
393
|
-
};
|
|
404
|
+
text: StringConstructor;
|
|
394
405
|
/**
|
|
395
406
|
* Display validation feedback in a styled tooltip.
|
|
396
407
|
*
|
|
@@ -414,10 +425,7 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
414
425
|
*
|
|
415
426
|
* @default false
|
|
416
427
|
*/
|
|
417
|
-
visible:
|
|
418
|
-
type: BooleanConstructor;
|
|
419
|
-
default: boolean;
|
|
420
|
-
};
|
|
428
|
+
visible: BooleanConstructor;
|
|
421
429
|
/**
|
|
422
430
|
*
|
|
423
431
|
* Amount of visible items when virtualScroller is set to `true`.
|
|
@@ -429,6 +437,8 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
429
437
|
default: number;
|
|
430
438
|
};
|
|
431
439
|
}>> & {
|
|
440
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
441
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
432
442
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
433
443
|
onFilterChange?: ((...args: any[]) => any) | undefined;
|
|
434
444
|
}, {
|
|
@@ -436,12 +446,14 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
436
446
|
visible: boolean;
|
|
437
447
|
search: string | boolean;
|
|
438
448
|
disabled: boolean;
|
|
449
|
+
required: boolean;
|
|
439
450
|
valid: boolean;
|
|
440
451
|
tooltipFeedback: boolean;
|
|
441
|
-
|
|
442
|
-
options: Option[];
|
|
452
|
+
options: (Option | OptionsGroup)[];
|
|
443
453
|
cleaner: boolean;
|
|
444
454
|
placeholder: string;
|
|
455
|
+
multiple: boolean;
|
|
456
|
+
loading: boolean;
|
|
445
457
|
visibleItems: number;
|
|
446
458
|
optionsMaxHeight: string | number;
|
|
447
459
|
optionsStyle: string;
|
|
@@ -449,7 +461,9 @@ declare const CMultiSelect: import("vue").DefineComponent<{
|
|
|
449
461
|
virtualScroller: boolean;
|
|
450
462
|
selectionType: string;
|
|
451
463
|
selectionTypeCounterText: string;
|
|
464
|
+
allowCreateOptions: boolean;
|
|
465
|
+
clearSearchOnSelect: boolean;
|
|
452
466
|
selectAll: boolean;
|
|
453
467
|
selectAllLabel: string;
|
|
454
|
-
}>;
|
|
468
|
+
}, {}>;
|
|
455
469
|
export { CMultiSelect };
|
|
@@ -1,60 +1,36 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
2
|
import type { Option } from './types';
|
|
3
3
|
declare const CMultiSelectNativeSelect: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
* It specifies that multiple options can be selected at once.
|
|
6
|
-
*
|
|
7
|
-
* @default true
|
|
8
|
-
*/
|
|
4
|
+
id: StringConstructor;
|
|
9
5
|
multiple: {
|
|
10
6
|
type: BooleanConstructor;
|
|
11
7
|
default: boolean;
|
|
12
|
-
required: false;
|
|
13
8
|
};
|
|
14
|
-
/**
|
|
15
|
-
* List of option elements.
|
|
16
|
-
*/
|
|
17
9
|
options: {
|
|
18
10
|
type: PropType<Option[]>;
|
|
19
11
|
default: () => never[];
|
|
20
|
-
required: false;
|
|
21
|
-
};
|
|
22
|
-
value: {
|
|
23
|
-
type: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
24
|
-
default: undefined;
|
|
25
|
-
require: boolean;
|
|
26
12
|
};
|
|
13
|
+
required: BooleanConstructor;
|
|
14
|
+
value: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
27
15
|
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
16
|
[key: string]: any;
|
|
29
17
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
-
|
|
31
|
-
* It specifies that multiple options can be selected at once.
|
|
32
|
-
*
|
|
33
|
-
* @default true
|
|
34
|
-
*/
|
|
18
|
+
id: StringConstructor;
|
|
35
19
|
multiple: {
|
|
36
20
|
type: BooleanConstructor;
|
|
37
21
|
default: boolean;
|
|
38
|
-
required: false;
|
|
39
22
|
};
|
|
40
|
-
/**
|
|
41
|
-
* List of option elements.
|
|
42
|
-
*/
|
|
43
23
|
options: {
|
|
44
24
|
type: PropType<Option[]>;
|
|
45
25
|
default: () => never[];
|
|
46
|
-
required: false;
|
|
47
|
-
};
|
|
48
|
-
value: {
|
|
49
|
-
type: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
50
|
-
default: undefined;
|
|
51
|
-
require: boolean;
|
|
52
26
|
};
|
|
27
|
+
required: BooleanConstructor;
|
|
28
|
+
value: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
53
29
|
}>> & {
|
|
54
30
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
31
|
}, {
|
|
56
|
-
|
|
57
|
-
multiple: boolean;
|
|
32
|
+
required: boolean;
|
|
58
33
|
options: Option[];
|
|
59
|
-
|
|
34
|
+
multiple: boolean;
|
|
35
|
+
}, {}>;
|
|
60
36
|
export { CMultiSelectNativeSelect };
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
|
2
|
-
import type { Option } from './types';
|
|
2
|
+
import type { Option, OptionsGroup } from './types';
|
|
3
3
|
declare const CMultiSelectOptions: import("vue").DefineComponent<{
|
|
4
|
-
|
|
5
|
-
* List of option elements.
|
|
6
|
-
*/
|
|
4
|
+
loading: BooleanConstructor;
|
|
7
5
|
options: {
|
|
8
|
-
type: PropType<Option[]>;
|
|
6
|
+
type: PropType<(Option | OptionsGroup)[]>;
|
|
9
7
|
default: () => never[];
|
|
10
8
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Sets maxHeight of options list.
|
|
13
|
-
*
|
|
14
|
-
* @default 'auto'
|
|
15
|
-
*/
|
|
16
9
|
optionsMaxHeight: {
|
|
17
10
|
type: (NumberConstructor | StringConstructor)[];
|
|
18
11
|
default: string;
|
|
19
12
|
};
|
|
20
|
-
/**
|
|
21
|
-
* Sets option style.
|
|
22
|
-
*
|
|
23
|
-
* @values 'checkbox', 'text'
|
|
24
|
-
* @default 'checkbox'
|
|
25
|
-
*/
|
|
26
13
|
optionsStyle: {
|
|
27
14
|
type: StringConstructor;
|
|
28
15
|
default: string;
|
|
29
16
|
validator: (value: string) => boolean;
|
|
30
17
|
};
|
|
31
|
-
|
|
32
|
-
* Sets the label for no results when filtering.
|
|
33
|
-
*/
|
|
18
|
+
scopedSlots: ObjectConstructor;
|
|
34
19
|
searchNoResultsLabel: {
|
|
35
20
|
type: StringConstructor;
|
|
36
21
|
default: string;
|
|
@@ -44,39 +29,24 @@ declare const CMultiSelectOptions: import("vue").DefineComponent<{
|
|
|
44
29
|
type: NumberConstructor;
|
|
45
30
|
default: number;
|
|
46
31
|
};
|
|
47
|
-
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
+
}, () => (false | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
33
|
[key: string]: any;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
* List of option elements.
|
|
52
|
-
*/
|
|
34
|
+
}>)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "optionClick"[], "optionClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
loading: BooleanConstructor;
|
|
53
36
|
options: {
|
|
54
|
-
type: PropType<Option[]>;
|
|
37
|
+
type: PropType<(Option | OptionsGroup)[]>;
|
|
55
38
|
default: () => never[];
|
|
56
39
|
};
|
|
57
|
-
/**
|
|
58
|
-
* Sets maxHeight of options list.
|
|
59
|
-
*
|
|
60
|
-
* @default 'auto'
|
|
61
|
-
*/
|
|
62
40
|
optionsMaxHeight: {
|
|
63
41
|
type: (NumberConstructor | StringConstructor)[];
|
|
64
42
|
default: string;
|
|
65
43
|
};
|
|
66
|
-
/**
|
|
67
|
-
* Sets option style.
|
|
68
|
-
*
|
|
69
|
-
* @values 'checkbox', 'text'
|
|
70
|
-
* @default 'checkbox'
|
|
71
|
-
*/
|
|
72
44
|
optionsStyle: {
|
|
73
45
|
type: StringConstructor;
|
|
74
46
|
default: string;
|
|
75
47
|
validator: (value: string) => boolean;
|
|
76
48
|
};
|
|
77
|
-
|
|
78
|
-
* Sets the label for no results when filtering.
|
|
79
|
-
*/
|
|
49
|
+
scopedSlots: ObjectConstructor;
|
|
80
50
|
searchNoResultsLabel: {
|
|
81
51
|
type: StringConstructor;
|
|
82
52
|
default: string;
|
|
@@ -93,12 +63,13 @@ declare const CMultiSelectOptions: import("vue").DefineComponent<{
|
|
|
93
63
|
}>> & {
|
|
94
64
|
onOptionClick?: ((...args: any[]) => any) | undefined;
|
|
95
65
|
}, {
|
|
96
|
-
options: Option[];
|
|
66
|
+
options: (Option | OptionsGroup)[];
|
|
97
67
|
selected: Option[];
|
|
68
|
+
loading: boolean;
|
|
98
69
|
visibleItems: number;
|
|
99
70
|
optionsMaxHeight: string | number;
|
|
100
71
|
optionsStyle: string;
|
|
101
72
|
searchNoResultsLabel: string;
|
|
102
73
|
virtualScroller: boolean;
|
|
103
|
-
}>;
|
|
74
|
+
}, {}>;
|
|
104
75
|
export { CMultiSelectOptions };
|