Compare commits
No commits in common. "d67b7a1c67c6d6bf2dbd60f9d55395f446a3fd43" and "244ff0cfbb6a76fe538ec26a44cac5a31eaaf40b" have entirely different histories.
d67b7a1c67
...
244ff0cfbb
|
@ -44,7 +44,7 @@ const date = ref(new Date())
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information and live demo, refer to [Datenel’s documentation](https://datenel.js.org/guide/vue3/gettingstart.html).
|
For more information and live demo, refer to [Datenel’s documentation](https://datenel.js.org/guide/vue/gettingstart.html).
|
||||||
|
|
||||||
## Supported Components & Props
|
## Supported Components & Props
|
||||||
|
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "datenel-vue3",
|
"name": "datenel-vue3",
|
||||||
"version": "0.1.2",
|
"version": "0.1.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "datenel-vue3",
|
"name": "datenel-vue3",
|
||||||
"version": "0.1.2",
|
"version": "0.1.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.13.5",
|
"@types/node": "^22.13.5",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "datenel-vue3",
|
"name": "datenel-vue3",
|
||||||
"version": "0.1.2",
|
"version": "0.1.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @name SingleDatePicker
|
* @name SingleDatePicker
|
||||||
* @description A panel that allows users to select a date.
|
* @description A panel that allows users to select a date.
|
||||||
* @component
|
* @component
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html}
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleDatePicker',
|
name: 'SingleDatePicker',
|
||||||
|
@ -38,7 +38,7 @@ const props = defineProps({
|
||||||
* - `hoverColor`: The hover color of the panel, including the hover background color of the date.
|
* - `hoverColor`: The hover color of the panel, including the hover background color of the date.
|
||||||
* - `reversedColor`: The reversed color of the panel, including the text color of the selected date.
|
* - `reversedColor`: The reversed color of the panel, including the text color of the selected date.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html#colorscheme}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html#colorscheme}
|
||||||
*
|
*
|
||||||
* @default { mainColor: '#000000', accentColor: '#000000', borderColor: '#e0e0e0', hoverColor: '#00000017', reversedColor: '#ffffff' }
|
* @default { mainColor: '#000000', accentColor: '#000000', borderColor: '#e0e0e0', hoverColor: '#00000017', reversedColor: '#ffffff' }
|
||||||
*/
|
*/
|
||||||
|
@ -61,7 +61,7 @@ const props = defineProps({
|
||||||
* that it will not effect to the screen reader, but the screen reader will still read the
|
* that it will not effect to the screen reader, but the screen reader will still read the
|
||||||
* date in the user’s language.
|
* date in the user’s language.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html#localization}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html#localization}
|
||||||
* @default navigator.language
|
* @default navigator.language
|
||||||
*/
|
*/
|
||||||
localization: {
|
localization: {
|
||||||
|
@ -75,7 +75,7 @@ const props = defineProps({
|
||||||
* date programmatically, including situations like provide a default value or control the selected
|
* date programmatically, including situations like provide a default value or control the selected
|
||||||
* date by parent component.
|
* date by parent component.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html#modelvalue-a-k-a-v-model}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html#value}
|
||||||
*
|
*
|
||||||
* @example new Date(2025, 0, 1)
|
* @example new Date(2025, 0, 1)
|
||||||
* @default undefined (the panel will be in read-only mode)
|
* @default undefined (the panel will be in read-only mode)
|
||||||
|
@ -92,7 +92,7 @@ const props = defineProps({
|
||||||
*
|
*
|
||||||
* The parameter will be ignored if the array length is not 2.
|
* The parameter will be ignored if the array length is not 2.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html#availablerange}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html#availablerange}
|
||||||
*
|
*
|
||||||
* @example [new Date(2025, 0, 1), new Date(2025, 11, 31)]
|
* @example [new Date(2025, 0, 1), new Date(2025, 11, 31)]
|
||||||
* @example [new Date(2025, 0, 1), null]
|
* @example [new Date(2025, 0, 1), null]
|
||||||
|
@ -110,7 +110,7 @@ const props = defineProps({
|
||||||
* that the close button is not visible, but can be read by screen reader. The close
|
* that the close button is not visible, but can be read by screen reader. The close
|
||||||
* button for the screen reader is only available when this prop is not `undefined`.
|
* button for the screen reader is only available when this prop is not `undefined`.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleDatePicker.html#close-void}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html#onclose-void}
|
||||||
*
|
*
|
||||||
* @default undefined
|
* @default undefined
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* @name SingleWeekPicker
|
* @name SingleWeekPicker
|
||||||
* @description A panel that allows users to select a week.
|
* @description A panel that allows users to select a week.
|
||||||
* @component
|
* @component
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleWeekPicker.html}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleWeekPicker.html}
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleDatePicker',
|
name: 'SingleDatePicker',
|
||||||
|
@ -46,7 +46,7 @@ const props = defineProps({
|
||||||
* - `hoverColor`: The hover color of the panel, including the hover background color of the date.
|
* - `hoverColor`: The hover color of the panel, including the hover background color of the date.
|
||||||
* - `reversedColor`: The reversed color of the panel, including the text color of the selected date.
|
* - `reversedColor`: The reversed color of the panel, including the text color of the selected date.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleWeekPicker.html#colorscheme}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleWeekPicker.html#colorscheme}
|
||||||
*
|
*
|
||||||
* @default { mainColor: '#000000', accentColor: '#000000', borderColor: '#e0e0e0', hoverColor: '#00000017', reversedColor: '#ffffff' }
|
* @default { mainColor: '#000000', accentColor: '#000000', borderColor: '#e0e0e0', hoverColor: '#00000017', reversedColor: '#ffffff' }
|
||||||
*/
|
*/
|
||||||
|
@ -69,7 +69,7 @@ const props = defineProps({
|
||||||
* that it will not effect to the screen reader, but the screen reader will still read the
|
* that it will not effect to the screen reader, but the screen reader will still read the
|
||||||
* date in the user’s language.
|
* date in the user’s language.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleWeekPicker.html#localization}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleWeekPicker.html#localization}
|
||||||
* @default navigator.language
|
* @default navigator.language
|
||||||
*/
|
*/
|
||||||
localization: {
|
localization: {
|
||||||
|
@ -81,26 +81,12 @@ const props = defineProps({
|
||||||
*
|
*
|
||||||
* @description The model value of the component.
|
* @description The model value of the component.
|
||||||
*
|
*
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleWeekPicker.html#modelvalue-a-k-a-v-model}
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleWeekPicker.html#modelvalue}
|
||||||
*/
|
*/
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Object as () => SingleWeekPickerModelValue,
|
type: Object as () => SingleWeekPickerModelValue,
|
||||||
required: false,
|
required: false,
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Event handler when the panel is closed.
|
|
||||||
* @description User requires to close the panel without select a specific date. Note
|
|
||||||
* that the close button is not visible, but can be read by screen reader. The close
|
|
||||||
* button for the screen reader is only available when this prop is not `undefined`.
|
|
||||||
*
|
|
||||||
* @see {@link https://datenel.js.org/guide/vue3/components/SingleWeekPicker.html#close-void}
|
|
||||||
*
|
|
||||||
* @default undefined
|
|
||||||
*/
|
|
||||||
close: {
|
|
||||||
type: Function,
|
|
||||||
required: false,
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const { colorScheme, localization } = toRefs(props)
|
const { colorScheme, localization } = toRefs(props)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user