@coreui/vue-pro 4.3.0-beta.0 → 4.3.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 +113 -5
- package/dist/components/accordion/index.d.ts +1 -2
- package/dist/components/calendar/CCalendar.d.ts +15 -2
- package/dist/components/carousel/CCarousel.d.ts +1 -1
- package/dist/components/date-picker/CDatePicker.d.ts +24 -2
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +102 -3
- package/dist/components/form/CFormCheck.d.ts +88 -39
- package/dist/components/form/CFormControlValidation.d.ts +98 -0
- package/dist/components/form/CFormControlWrapper.d.ts +6 -0
- package/dist/components/form/CFormFeedback.d.ts +2 -2
- package/dist/components/form/CFormInput.d.ts +133 -27
- package/dist/components/form/CFormRange.d.ts +18 -16
- package/dist/components/form/CFormSelect.d.ts +125 -16
- package/dist/components/form/CFormSwitch.d.ts +0 -23
- package/dist/components/form/CFormTextarea.d.ts +125 -24
- package/dist/components/modal/CModal.d.ts +1 -1
- package/dist/components/offcanvas/COffcanvas.d.ts +1 -1
- package/dist/components/smart-table/CSmartTable.d.ts +34 -98
- package/dist/components/smart-table/CSmartTableInterface.d.ts +3 -3
- package/dist/components/time-picker/CTimePicker.d.ts +1 -1
- package/dist/components/toast/CToast.d.ts +7 -1
- package/dist/components/widgets/CWidgetStatsB.d.ts +3 -8
- package/dist/components/widgets/CWidgetStatsC.d.ts +3 -8
- package/dist/directives/v-c-popover.d.ts +1 -1
- package/dist/directives/v-c-tooltip.d.ts +1 -1
- package/dist/index.es.js +5523 -644
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5522 -644
- package/dist/index.js.map +1 -1
- package/dist/utils/calendar.d.ts +4 -2
- package/dist/utils/time.d.ts +6 -2
- package/dist/utils/transition.d.ts +3 -0
- package/package.json +12 -11
- package/src/components/accordion/index.ts +0 -3
- package/src/components/backdrop/CBackdrop.ts +8 -6
- package/src/components/button/CButton.ts +2 -2
- package/src/components/calendar/CCalendar.ts +132 -62
- package/src/components/close-button/CCloseButton.ts +1 -0
- package/src/components/close-button/__tests__/__snapshots__/CCloseButton.spec.ts.snap +2 -2
- package/src/components/collapse/CCollapse.ts +5 -6
- package/src/components/date-picker/CDatePicker.ts +14 -10
- package/src/components/date-range-picker/CDateRangePicker.ts +209 -100
- package/src/components/form/CFormCheck.ts +118 -95
- package/src/components/form/CFormControlValidation.ts +97 -0
- package/src/components/form/CFormControlWrapper.ts +106 -0
- package/src/components/form/CFormInput.ts +115 -30
- package/src/components/form/CFormRange.ts +25 -11
- package/src/components/form/CFormSelect.ts +127 -41
- package/src/components/form/CFormSwitch.ts +2 -21
- package/src/components/form/CFormTextarea.ts +113 -25
- package/src/components/form/__tests__/CFormInput.spec.ts +11 -11
- package/src/components/form/__tests__/CFormRange.spec.ts +9 -9
- package/src/components/form/__tests__/CFormSelect.spec.ts +4 -4
- package/src/components/form/__tests__/CFormTextarea.spec.ts +4 -4
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +8 -2
- package/src/components/form/__tests__/__snapshots__/CFormRange.spec.ts.snap +1 -1
- package/src/components/modal/CModal.ts +14 -6
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +1 -2
- package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.ts.snap +2 -2
- package/src/components/nav/CNavGroup.ts +4 -6
- package/src/components/offcanvas/COffcanvas.ts +5 -7
- package/src/components/pagination/CSmartPagination.ts +4 -4
- package/src/components/picker/CPicker.ts +1 -0
- package/src/components/popover/CPopover.ts +5 -5
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -8
- package/src/components/smart-table/CSmartTable.ts +17 -49
- package/src/components/smart-table/CSmartTableInterface.ts +5 -3
- package/src/components/tabs/CTabPane.ts +4 -6
- package/src/components/time-picker/CTimePicker.ts +12 -17
- package/src/components/toast/CToast.ts +17 -12
- package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +1 -1
- package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.ts.snap +1 -1
- package/src/components/tooltip/CTooltip.ts +5 -5
- package/src/directives/v-c-popover.ts +1 -1
- package/src/directives/v-c-tooltip.ts +1 -1
- package/src/utils/calendar.ts +86 -9
- package/src/utils/time.ts +29 -3
- package/src/utils/transition.ts +65 -0
package/README.md
CHANGED
|
@@ -20,21 +20,24 @@
|
|
|
20
20
|
·
|
|
21
21
|
<a href="https://github.com/coreui/coreui-vue-pro/issues/new?template=feature_request.md">Request feature</a>
|
|
22
22
|
·
|
|
23
|
-
<a href="https://
|
|
23
|
+
<a href="https://coreui.io/blog/">Blog</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
## Table of contents
|
|
28
28
|
|
|
29
29
|
- [Quick start](#quick-start)
|
|
30
|
+
- [Components](#components)
|
|
30
31
|
- [Status](#status)
|
|
31
|
-
- [What's included](#whats-included)
|
|
32
32
|
- [Bugs and feature requests](#bugs-and-feature-requests)
|
|
33
33
|
- [Documentation](#documentation)
|
|
34
|
+
- [Frameworks](#frameworks)
|
|
35
|
+
- [Templates](#templates)
|
|
34
36
|
- [Contributing](#contributing)
|
|
35
37
|
- [Community](#community)
|
|
36
38
|
- [Versioning](#versioning)
|
|
37
39
|
- [Creators](#creators)
|
|
40
|
+
- [Support CoreUI Development](#support-coreui-development)
|
|
38
41
|
- [Copyright and license](#copyright-and-license)
|
|
39
42
|
|
|
40
43
|
## Quick start
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
|
|
44
47
|
Several quick start options are available:
|
|
45
48
|
|
|
46
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.3.
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.3.1.zip)
|
|
47
50
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
48
51
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
49
52
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -72,6 +75,55 @@ npm install @coreui/coreui-pro --save
|
|
|
72
75
|
import '@coreui/coreui-pro/dist/css/coreui.min.css'
|
|
73
76
|
```
|
|
74
77
|
|
|
78
|
+
## Components
|
|
79
|
+
|
|
80
|
+
- [Vue Accordion](https://coreui.io/vue/docs/components/accordion.html)
|
|
81
|
+
- [Vue Alert](https://coreui.io/vue/docs/components/alert.html)
|
|
82
|
+
- [Vue Avatar](https://coreui.io/vue/docs/components/avatar.html)
|
|
83
|
+
- [Vue Badge](https://coreui.io/vue/docs/components/badge.html)
|
|
84
|
+
- [Vue Breadcrumb](https://coreui.io/vue/docs/components/breadcrumb.html)
|
|
85
|
+
- [Vue Button](https://coreui.io/vue/docs/components/button.html)
|
|
86
|
+
- [Vue Button Group](https://coreui.io/vue/docs/components/button-group.html)
|
|
87
|
+
- [Vue Callout](https://coreui.io/vue/docs/components/callout.html)
|
|
88
|
+
- [Vue Card](https://coreui.io/vue/docs/components/card.html)
|
|
89
|
+
- [Vue Carousel](https://coreui.io/vue/docs/components/carousel.html)
|
|
90
|
+
- [Vue Checkbox](https://coreui.io/vue/docs/forms/checkbox.html)
|
|
91
|
+
- [Vue Close Button](https://coreui.io/vue/docs/components/close-button.html)
|
|
92
|
+
- [Vue Collapse](https://coreui.io/vue/docs/components/collapse.html)
|
|
93
|
+
- [Vue Date Picker](https://coreui.io/vue/docs/forms/date-picker.html) **PRO**
|
|
94
|
+
- [Vue Date Range Picker](https://coreui.io/vue/docs/forms/date-range-picker.html) **PRO**
|
|
95
|
+
- [Vue Dropdown](https://coreui.io/vue/docs/components/dropdown.html)
|
|
96
|
+
- [Vue Floating Labels](https://coreui.io/vue/docs/forms/floating-labels.html)
|
|
97
|
+
- [Vue Footer](https://coreui.io/vue/docs/components/footer.html)
|
|
98
|
+
- [Vue Header](https://coreui.io/vue/docs/components/header.html)
|
|
99
|
+
- [Vue Image](https://coreui.io/vue/docs/components/image.html)
|
|
100
|
+
- [Vue Input](https://coreui.io/vue/docs/forms/input.html)
|
|
101
|
+
- [Vue Input Group](https://coreui.io/vue/docs/forms/input-group.html)
|
|
102
|
+
- [Vue List Group](https://coreui.io/vue/docs/components/list-group.html)
|
|
103
|
+
- [Vue Loading Button](https://coreui.io/vue/docs/components/loading-button.html) **PRO**
|
|
104
|
+
- [Vue Modal](https://coreui.io/vue/docs/components/modal.html)
|
|
105
|
+
- [Vue Multi Select](https://coreui.io/vue/docs/forms/multi-select.html) **PRO**
|
|
106
|
+
- [Vue Navs & Tabs](https://coreui.io/vue/docs/components/navs-tabs.html)
|
|
107
|
+
- [Vue Navbar](https://coreui.io/vue/docs/components/navbar.html)
|
|
108
|
+
- [Vue Offcanvas](https://coreui.io/vue/docs/components/offcanvas.html)
|
|
109
|
+
- [Vue Pagination](https://coreui.io/vue/docs/components/pagination.html)
|
|
110
|
+
- [Vue Placeholder](https://coreui.io/vue/docs/components/placeholder.html)
|
|
111
|
+
- [Vue Popover](https://coreui.io/vue/docs/components/popover.html)
|
|
112
|
+
- [Vue Progress](https://coreui.io/vue/docs/components/progress.html)
|
|
113
|
+
- [Vue Radio](https://coreui.io/vue/docs/forms/radio.html)
|
|
114
|
+
- [Vue Range](https://coreui.io/vue/docs/forms/range.html)
|
|
115
|
+
- [Vue Select](https://coreui.io/vue/docs/forms/select.html)
|
|
116
|
+
- [Vue Sidebar](https://coreui.io/vue/docs/components/sidebar.html)
|
|
117
|
+
- [Vue Smart Pagination](https://coreui.io/vue/docs/components/smart-pagination.html) **PRO**
|
|
118
|
+
- [Vue Smart Table](https://coreui.io/vue/docs/components/smart-table.html) **PRO**
|
|
119
|
+
- [Vue Spinner](https://coreui.io/vue/docs/components/spinner.html)
|
|
120
|
+
- [Vue Switch](https://coreui.io/vue/docs/forms/switch.html)
|
|
121
|
+
- [Vue Table](https://coreui.io/vue/docs/components/table.html)
|
|
122
|
+
- [Vue Textarea](https://coreui.io/vue/docs/forms/textarea.html)
|
|
123
|
+
- [Vue Time Picker](https://coreui.io/vue/docs/forms/time-picker.html) **PRO**
|
|
124
|
+
- [Vue Toast](https://coreui.io/vue/docs/components/toast.html)
|
|
125
|
+
- [Vue Tooltip](https://coreui.io/vue/docs/components/tooltip.html)
|
|
126
|
+
|
|
75
127
|
## Status
|
|
76
128
|
|
|
77
129
|
[](https://github.com/coreui/coreui-vue-pro/actions?query=workflow%3AJS+Tests+branch%3Amain)
|
|
@@ -95,6 +147,24 @@ The documentation for the CoreUI & CoreUI PRO is hosted at our website [CoreUI f
|
|
|
95
147
|
3. From the root directory, run `yarn docs:dev` or `npm run docs:dev` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
|
96
148
|
4. Open `http://localhost:8000/` in your browser, and voilà.
|
|
97
149
|
|
|
150
|
+
## Frameworks
|
|
151
|
+
|
|
152
|
+
CoreUI supports most popular frameworks.
|
|
153
|
+
|
|
154
|
+
- [CoreUI for Angular](https://github.com/coreui/coreui-angular)
|
|
155
|
+
- [CoreUI for Bootstrap (Vanilla JS)](https://github.com/coreui/coreui)
|
|
156
|
+
- [CoreUI for React](https://github.com/coreui/coreui-react)
|
|
157
|
+
- [CoreUI for Vue](https://github.com/coreui/coreui-vue)
|
|
158
|
+
|
|
159
|
+
## Templates
|
|
160
|
+
|
|
161
|
+
Fully featured, out-of-the-box, templates for your application based on CoreUI.
|
|
162
|
+
|
|
163
|
+
- [Angular Admin Template](https://coreui.io/angular)
|
|
164
|
+
- [Bootstrap Admin Template](https://coreui.io/)
|
|
165
|
+
- [React Admin Template](https://coreui.io/react)
|
|
166
|
+
- [Vue Admin Template](https://coreui.io/vue)
|
|
167
|
+
|
|
98
168
|
## Contributing
|
|
99
169
|
|
|
100
170
|
Please read through our [contributing guidelines](https://github.com/coreui/coreui-vue-pro/blob/main/.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
|
|
@@ -105,7 +175,7 @@ Editor preferences are available in the [editor config](https://github.com/coreu
|
|
|
105
175
|
|
|
106
176
|
Stay up to date on the development of CoreUI and reach out to the community with these helpful resources.
|
|
107
177
|
|
|
108
|
-
- Read and subscribe to [The Official CoreUI Blog](https://
|
|
178
|
+
- Read and subscribe to [The Official CoreUI Blog](https://coreui.io/blog/).
|
|
109
179
|
|
|
110
180
|
You can also follow [@core_ui on Twitter](https://twitter.com/core_ui).
|
|
111
181
|
|
|
@@ -130,8 +200,46 @@ See [the Releases section of our project](https://github.com/coreui/coreui-vue-p
|
|
|
130
200
|
|
|
131
201
|
- <https://github.com/orgs/coreui/people>
|
|
132
202
|
|
|
203
|
+
## Support CoreUI Development
|
|
204
|
+
|
|
205
|
+
CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by buying the [CoreUI PRO](https://coreui.io/pricing/) or by becoming a sponsor via [Open Collective](https://opencollective.com/coreui/).
|
|
206
|
+
|
|
207
|
+
<!--- StartOpenCollectiveBackers -->
|
|
208
|
+
|
|
209
|
+
### Platinum Sponsors
|
|
210
|
+
|
|
211
|
+
Support this project by [becoming a Platinum Sponsor](https://opencollective.com/coreui/contribute/platinum-sponsor-40959/). A large company logo will be added here with a link to your website.
|
|
212
|
+
|
|
213
|
+
<a href="https://opencollective.com/coreui/contribute/platinum-sponsor-40959/checkout"><img src="https://opencollective.com/coreui/tiers/platinum-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
214
|
+
|
|
215
|
+
### Gold Sponsors
|
|
216
|
+
|
|
217
|
+
Support this project by [becoming a Gold Sponsor](https://opencollective.com/coreui/contribute/gold-sponsor-40960/). A big company logo will be added here with a link to your website.
|
|
218
|
+
|
|
219
|
+
<a href="https://opencollective.com/coreui/contribute/gold-sponsor-40960/checkout"><img src="https://opencollective.com/coreui/tiers/gold-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
220
|
+
|
|
221
|
+
### Silver Sponsors
|
|
222
|
+
|
|
223
|
+
Support this project by [becoming a Silver Sponsor](https://opencollective.com/coreui/contribute/silver-sponsor-40967/). A medium company logo will be added here with a link to your website.
|
|
224
|
+
|
|
225
|
+
<a href="https://opencollective.com/coreui/contribute/silver-sponsor-40967/checkout"><img src="https://opencollective.com/coreui/tiers/gold-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
226
|
+
|
|
227
|
+
### Bronze Sponsors
|
|
228
|
+
|
|
229
|
+
Support this project by [becoming a Bronze Sponsor](https://opencollective.com/coreui/contribute/bronze-sponsor-40966/). The company avatar will show up here with a link to your OpenCollective Profile.
|
|
230
|
+
|
|
231
|
+
<a href="https://opencollective.com/coreui/contribute/bronze-sponsor-40966/checkout"><img src="https://opencollective.com/coreui/tiers/bronze-sponsor/0/avatar.svg?avatarHeight=100"></a>
|
|
232
|
+
|
|
233
|
+
### Backers
|
|
234
|
+
|
|
235
|
+
Thanks to all the backers and sponsors! Support this project by [becoming a backer](https://opencollective.com/coreui/contribute/backer-40965/).
|
|
236
|
+
|
|
237
|
+
<a href="https://opencollective.com/coreui/contribute/backer-40965/checkout" target="_blank" rel="noopener"><img src="https://opencollective.com/coreui/backers.svg?width=890"></a>
|
|
238
|
+
|
|
239
|
+
<!--- EndOpenCollectiveBackers -->
|
|
240
|
+
|
|
133
241
|
## Copyright and license
|
|
134
242
|
|
|
135
|
-
Copyright (c)
|
|
243
|
+
Copyright (c) 2022 creativeLabs Łukasz Holeczek
|
|
136
244
|
|
|
137
245
|
This is commercial software. To use it, you have to own a commercial license.
|
|
@@ -2,10 +2,9 @@ import { App } from 'vue';
|
|
|
2
2
|
import { CAccordion } from './CAccordion';
|
|
3
3
|
import { CAccordionBody } from './CAccordionBody';
|
|
4
4
|
import { CAccordionButton } from './CAccordionButton';
|
|
5
|
-
import { CAccordionCollapse } from './CAccordionCollapse';
|
|
6
5
|
import { CAccordionHeader } from './CAccordionHeader';
|
|
7
6
|
import { CAccordionItem } from './CAccordionItem';
|
|
8
7
|
declare const CAccordionPlugin: {
|
|
9
8
|
install: (app: App) => void;
|
|
10
9
|
};
|
|
11
|
-
export { CAccordionPlugin, CAccordion, CAccordionBody, CAccordionButton,
|
|
10
|
+
export { CAccordionPlugin, CAccordion, CAccordionBody, CAccordionButton, CAccordionHeader, CAccordionItem, };
|
|
@@ -6,6 +6,13 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
6
6
|
calendarDate: {
|
|
7
7
|
type: (StringConstructor | DateConstructor)[];
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* The number of calendars that render on desktop devices.
|
|
11
|
+
*/
|
|
12
|
+
calendars: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
9
16
|
/**
|
|
10
17
|
* Specify the list of dates that cannot be selected.
|
|
11
18
|
*/
|
|
@@ -27,7 +34,6 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
27
34
|
* - 4 - Thursday,
|
|
28
35
|
* - 5 - Friday,
|
|
29
36
|
* - 6 - Saturday,
|
|
30
|
-
* - 7 - Sunday
|
|
31
37
|
*/
|
|
32
38
|
firstDayOfWeek: {
|
|
33
39
|
type: NumberConstructor;
|
|
@@ -92,6 +98,13 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
92
98
|
calendarDate: {
|
|
93
99
|
type: (StringConstructor | DateConstructor)[];
|
|
94
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* The number of calendars that render on desktop devices.
|
|
103
|
+
*/
|
|
104
|
+
calendars: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
95
108
|
/**
|
|
96
109
|
* Specify the list of dates that cannot be selected.
|
|
97
110
|
*/
|
|
@@ -113,7 +126,6 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
113
126
|
* - 4 - Thursday,
|
|
114
127
|
* - 5 - Friday,
|
|
115
128
|
* - 6 - Saturday,
|
|
116
|
-
* - 7 - Sunday
|
|
117
129
|
*/
|
|
118
130
|
firstDayOfWeek: {
|
|
119
131
|
type: NumberConstructor;
|
|
@@ -175,6 +187,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
175
187
|
"onStart-date-change"?: ((...args: any[]) => any) | undefined;
|
|
176
188
|
"onEnd-date-change"?: ((...args: any[]) => any) | undefined;
|
|
177
189
|
}, {
|
|
190
|
+
calendars: number;
|
|
178
191
|
firstDayOfWeek: number;
|
|
179
192
|
locale: string;
|
|
180
193
|
navigation: boolean;
|
|
@@ -117,12 +117,12 @@ declare const CCarousel: import("vue").DefineComponent<{
|
|
|
117
117
|
};
|
|
118
118
|
}>>, {
|
|
119
119
|
transition: string;
|
|
120
|
+
pause: string | boolean;
|
|
120
121
|
dark: boolean;
|
|
121
122
|
controls: boolean;
|
|
122
123
|
index: number;
|
|
123
124
|
indicators: boolean;
|
|
124
125
|
interval: number | boolean;
|
|
125
|
-
pause: string | boolean;
|
|
126
126
|
wrap: boolean;
|
|
127
127
|
}>;
|
|
128
128
|
export { CCarousel };
|
|
@@ -112,16 +112,27 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
112
112
|
* - 4 - Thursday,
|
|
113
113
|
* - 5 - Friday,
|
|
114
114
|
* - 6 - Saturday,
|
|
115
|
-
* - 7 - Sunday
|
|
116
115
|
*/
|
|
117
116
|
firstDayOfWeek: {
|
|
118
117
|
type: NumberConstructor;
|
|
119
118
|
default: number;
|
|
120
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* Set date format.
|
|
122
|
+
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
123
|
+
*/
|
|
124
|
+
format: StringConstructor;
|
|
121
125
|
/**
|
|
122
126
|
* Toggle visibility of footer element or set the content of footer.
|
|
123
127
|
*/
|
|
124
128
|
footer: BooleanConstructor;
|
|
129
|
+
/**
|
|
130
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
131
|
+
*
|
|
132
|
+
* The name attribute for the input element is generated based on the `id` property:
|
|
133
|
+
* - {id}-date
|
|
134
|
+
*/
|
|
135
|
+
id: StringConstructor;
|
|
125
136
|
/**
|
|
126
137
|
* Toggle visibility or set the content of the input indicator.
|
|
127
138
|
*/
|
|
@@ -305,16 +316,27 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
305
316
|
* - 4 - Thursday,
|
|
306
317
|
* - 5 - Friday,
|
|
307
318
|
* - 6 - Saturday,
|
|
308
|
-
* - 7 - Sunday
|
|
309
319
|
*/
|
|
310
320
|
firstDayOfWeek: {
|
|
311
321
|
type: NumberConstructor;
|
|
312
322
|
default: number;
|
|
313
323
|
};
|
|
324
|
+
/**
|
|
325
|
+
* Set date format.
|
|
326
|
+
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
327
|
+
*/
|
|
328
|
+
format: StringConstructor;
|
|
314
329
|
/**
|
|
315
330
|
* Toggle visibility of footer element or set the content of footer.
|
|
316
331
|
*/
|
|
317
332
|
footer: BooleanConstructor;
|
|
333
|
+
/**
|
|
334
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
335
|
+
*
|
|
336
|
+
* The name attribute for the input element is generated based on the `id` property:
|
|
337
|
+
* - {id}-date
|
|
338
|
+
*/
|
|
339
|
+
id: StringConstructor;
|
|
318
340
|
/**
|
|
319
341
|
* Toggle visibility or set the content of the input indicator.
|
|
320
342
|
*/
|
|
@@ -119,16 +119,28 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
119
119
|
* - 4 - Thursday,
|
|
120
120
|
* - 5 - Friday,
|
|
121
121
|
* - 6 - Saturday,
|
|
122
|
-
* - 7 - Sunday
|
|
123
122
|
*/
|
|
124
123
|
firstDayOfWeek: {
|
|
125
124
|
type: NumberConstructor;
|
|
126
125
|
default: number;
|
|
127
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Set date format.
|
|
129
|
+
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
130
|
+
*/
|
|
131
|
+
format: StringConstructor;
|
|
128
132
|
/**
|
|
129
133
|
* Toggle visibility of footer element or set the content of footer.
|
|
130
134
|
*/
|
|
131
135
|
footer: BooleanConstructor;
|
|
136
|
+
/**
|
|
137
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
138
|
+
*
|
|
139
|
+
* The name attributes for input elements are generated based on the `id` property:
|
|
140
|
+
* - {id}-start-date
|
|
141
|
+
* - {id}-end-date
|
|
142
|
+
*/
|
|
143
|
+
id: StringConstructor;
|
|
132
144
|
/**
|
|
133
145
|
* Toggle visibility or set the content of the input indicator.
|
|
134
146
|
*/
|
|
@@ -215,6 +227,42 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
215
227
|
* Provide an additional time selection by adding select boxes to choose times.
|
|
216
228
|
*/
|
|
217
229
|
timepicker: BooleanConstructor;
|
|
230
|
+
/**
|
|
231
|
+
* Toggle visibility or set the content of today button.
|
|
232
|
+
*/
|
|
233
|
+
todayButton: {
|
|
234
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
235
|
+
default: string;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Sets the color context of the today button to one of CoreUI’s themed colors.
|
|
239
|
+
*
|
|
240
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
241
|
+
*/
|
|
242
|
+
todayButtonColor: {
|
|
243
|
+
default: string;
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
validator: (value: string) => boolean;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Size the today button small or large.
|
|
249
|
+
*
|
|
250
|
+
* @values 'sm', 'lg'
|
|
251
|
+
*/
|
|
252
|
+
todayButtonSize: {
|
|
253
|
+
type: StringConstructor;
|
|
254
|
+
default: string;
|
|
255
|
+
validator: (value: string) => boolean;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Set the today button variant to an outlined button or a ghost button.
|
|
259
|
+
*
|
|
260
|
+
* @values 'ghost', 'outline'
|
|
261
|
+
*/
|
|
262
|
+
todayButtonVariant: {
|
|
263
|
+
type: StringConstructor;
|
|
264
|
+
validator: (value: string) => boolean;
|
|
265
|
+
};
|
|
218
266
|
/**
|
|
219
267
|
* Set length or format of day name.
|
|
220
268
|
*
|
|
@@ -347,16 +395,28 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
347
395
|
* - 4 - Thursday,
|
|
348
396
|
* - 5 - Friday,
|
|
349
397
|
* - 6 - Saturday,
|
|
350
|
-
* - 7 - Sunday
|
|
351
398
|
*/
|
|
352
399
|
firstDayOfWeek: {
|
|
353
400
|
type: NumberConstructor;
|
|
354
401
|
default: number;
|
|
355
402
|
};
|
|
403
|
+
/**
|
|
404
|
+
* Set date format.
|
|
405
|
+
* We use date-fns to format dates. Visit https://date-fns.org/v2.28.0/docs/format to check accepted patterns.
|
|
406
|
+
*/
|
|
407
|
+
format: StringConstructor;
|
|
356
408
|
/**
|
|
357
409
|
* Toggle visibility of footer element or set the content of footer.
|
|
358
410
|
*/
|
|
359
411
|
footer: BooleanConstructor;
|
|
412
|
+
/**
|
|
413
|
+
* The id global attribute defines an identifier (ID) that must be unique in the whole document.
|
|
414
|
+
*
|
|
415
|
+
* The name attributes for input elements are generated based on the `id` property:
|
|
416
|
+
* - {id}-start-date
|
|
417
|
+
* - {id}-end-date
|
|
418
|
+
*/
|
|
419
|
+
id: StringConstructor;
|
|
360
420
|
/**
|
|
361
421
|
* Toggle visibility or set the content of the input indicator.
|
|
362
422
|
*/
|
|
@@ -443,6 +503,42 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
443
503
|
* Provide an additional time selection by adding select boxes to choose times.
|
|
444
504
|
*/
|
|
445
505
|
timepicker: BooleanConstructor;
|
|
506
|
+
/**
|
|
507
|
+
* Toggle visibility or set the content of today button.
|
|
508
|
+
*/
|
|
509
|
+
todayButton: {
|
|
510
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
511
|
+
default: string;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Sets the color context of the today button to one of CoreUI’s themed colors.
|
|
515
|
+
*
|
|
516
|
+
* @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
|
|
517
|
+
*/
|
|
518
|
+
todayButtonColor: {
|
|
519
|
+
default: string;
|
|
520
|
+
type: StringConstructor;
|
|
521
|
+
validator: (value: string) => boolean;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* Size the today button small or large.
|
|
525
|
+
*
|
|
526
|
+
* @values 'sm', 'lg'
|
|
527
|
+
*/
|
|
528
|
+
todayButtonSize: {
|
|
529
|
+
type: StringConstructor;
|
|
530
|
+
default: string;
|
|
531
|
+
validator: (value: string) => boolean;
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Set the today button variant to an outlined button or a ghost button.
|
|
535
|
+
*
|
|
536
|
+
* @values 'ghost', 'outline'
|
|
537
|
+
*/
|
|
538
|
+
todayButtonVariant: {
|
|
539
|
+
type: StringConstructor;
|
|
540
|
+
validator: (value: string) => boolean;
|
|
541
|
+
};
|
|
446
542
|
/**
|
|
447
543
|
* Set length or format of day name.
|
|
448
544
|
*
|
|
@@ -455,6 +551,7 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
455
551
|
};
|
|
456
552
|
}>>, {
|
|
457
553
|
disabled: boolean;
|
|
554
|
+
calendars: number;
|
|
458
555
|
firstDayOfWeek: number;
|
|
459
556
|
locale: string;
|
|
460
557
|
navigation: boolean;
|
|
@@ -473,8 +570,10 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
473
570
|
indicator: boolean;
|
|
474
571
|
inputReadOnly: boolean;
|
|
475
572
|
placeholder: String | String[];
|
|
476
|
-
calendars: number;
|
|
477
573
|
separator: boolean;
|
|
478
574
|
timepicker: boolean;
|
|
575
|
+
todayButton: string | boolean;
|
|
576
|
+
todayButtonColor: string;
|
|
577
|
+
todayButtonSize: string;
|
|
479
578
|
}>;
|
|
480
579
|
export { CDateRangePicker };
|