Git Product home page Git Product logo

qalendar's People

Contributors

a-l-meyer avatar azuryudragon avatar bendarmultimedia avatar felix-berlin avatar janescience avatar jfet97 avatar kenedy1909 avatar loicgeek avatar maha-oueghlani avatar marcelr1998 avatar nielsnegotica avatar omaralalwi avatar rayanneblima avatar renovate[bot] avatar semantic-release-bot avatar tom-osterlund avatar tomosterlund avatar vicdotexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

qalendar's Issues

Only DAY display

Thank you for making your excellent Qalendar project!

Today I created a a new Vue 3.0 (Vite 3.0) Project with npm init vue@latest and then added 'qalendar' via npm i qalendar
and I could only see the 'DAY' Mode and in the top-selection only the day-picker.

I tried config = { defaultMode: "month" } without success

BROWSER:
latest FF or Chrome

CODE:

<template>
  <qalendar :events="events" :config="config" />
</template>

<script setup>
import { Qalendar } from "qalendar";
import { ref } from "vue";

const events = ref([
  {
    title: "Advanced algebra",
    with: "Chandler Bing",
    time: { start: "2022-07-22 12:05", end: "2022-07-22 13:35" },
    color: "yellow",
    isEditable: true,
    id: "753944708f0f",
    description: "Lorem ipsum dolor"
  }
]);

const config = ref({
  defaultMode: "month",
  isSilent: false,
});
</script>

<style>
/** Please observe, that your path to the node_modules directory might be different */
@import "../../node_modules/qalendar/dist/style.css";
</style>

SCREENSHOT:
grafik

Please maybe you can help me and explain why it does not work to show 'week' or 'month'.

with best regards in advance

woko

Scroll to 0 not working

Describe the bug
the scroll option can't work with hour 00:00
when I try to scroll to 0 it scrolls to 8H

To Reproduce

 config: {
      ...
        week: {
           startsOn: "monday",
         ...
          // Scroll to a certain hour on mounting a week. Takes any value from 0 to 23.
          scrollToHour: 0,
        },
     ...
}

Expected behavior
Scrolling to 00:00 onmounted

Context:

  • Browser : Chrome Version 107.0.5304.107
  • Browser : Firefox version 106

Custom Event for Month Mode not working

I'm not sure if this is a bug or just this feature is missing. Events that have 'isCustom' set to 'true' don't change their style when the calendar is in mode "Month". I want for example to not display any time before the event title (the example from Docs for Custom Events), but this only works for "day" and "week" calendar modes.

Can't start with qalendar !

Hellow, I appreciate this package and really I need it,
I run vue 3 project with [email protected],
I install this package and I try to test the package but I have one error and many warnings, I don't if there is incompatibility of versions
error
warning

Calendar UI not displaying correctly

Hello, first of all thank you for your time in creating Qalendar.

I am new to this and I have been unable to get the Calendar UI out correctly.
image

I have only been testing the Qalendar, following the scripts in the documentation. As such, I am a bit lost as to why the UI would not show up as expected. Here is my code:

  <Qalendar
    :selected-date="new Date(2022, 0, 8)"
    :events="events"
    :config="config"
  />
</template>

<script>
import { Qalendar } from "qalendar";
export default {
  components: {
    Qalendar,
  },
  data() {
    return {
      events: [
        {
          title: "Meeting with Dora",
          with: "Albert Einstein",
          time: { start: "2022-01-01 04:52", end: "2022-01-01 05:37" },
          color: "green",
          isEditable: true,
          id: "de471c78cb5c",
          description:
            "Think of me as Yoda. Only instead of being little and green, I wear suites and I'm awesome.",
        },
        {
          title: "Advanced algebra",
          with: "Pheobe Buffay",
          time: { start: "2022-01-02 20:05", end: "2022-01-02 21:35" },
          colorScheme: "sports",
          isEditable: true,
          id: "6d3c0980a5cf",
          description:
            "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores assumenda corporis doloremque et expedita molestias necessitatibus quam quas temporibus veritatis. Deserunt excepturi illum nobis perferendis praesentium repudiandae saepe sapiente voluptatem!",
        },
        {
          title: "Break",
          with: "Marshall Eriksen",
          time: { start: "2022-01-02 22:10", end: "2022-01-02 22:55" },
          colorScheme: "meetings",
          isEditable: true,
          id: "9f1b209982f1",
          location: "Zoom",
        },
      ],
      config: {
        defaultMode: "month",
        style: {
          colorSchemes: {
            meetings: {
              color: "#fff",
              backgroundColor: "#131313",
            },
            sports: {
              color: "#fff",
              backgroundColor: "#ff4081",
            },
          },
        },
        week: {
          // Takes the value 'sunday' or 'monday'
          // However, if startsOn is set to 'sunday' and nDays to 5, the week displayed will be Monday - Friday
          startsOn: "monday",
          // Takes the values 5 or 7.
          nDays: 7,
          // Scroll to a certain hour on mounting a week. Takes any value from 0 to 23.
          // This option is not compatible with the 'dayBoundaries'-option, and will simply be ignored if custom day boundaries are set.
          scrollToHour: 5,
        },
        month: {
          // Hide leading and trailing dates in the month view (defaults to true when not set)
          showTrailingAndLeadingDates: false,
        },
      },
    };
  },
};
</script>

<style scoped>
@import "@/../node_modules/qalendar/dist/style.css";
</style>```

Additional options for Event Flyout

I've been very happy with this lib so far, but I needed a little more flexibility on the event flyout, so I've implemented them on the flyout-options branch of my fork:
https://github.com/hugoaboud/qalendar/tree/flyout-options

I've added 2 options and 1 feature:

  • eventDialog.absolutePosition: If true, the dialog is positioned within the calendar week, so it's always next to the event that opened it and not "floating".
  • eventDialog.disableCloseOnClickOutside: If true, clicking outside the dialog won't close it.
  • qalendar.closeFlyout(): Exposed a method on the ref to close the flyout externally.

The first one is a UX preference of the current project I'm working on.
The second and third allows the application to take full control of the event dialog, when using isCustom (I haven't found an easy way to close the dialog from a custom close button, please let me know).

Please let me know if it's interesting for the main project, and what changes might be necessary.

Resetting the display mode when the window changes

Hi! It's me again, sorry for the intrusion :)

There is such a situation: if calendar is opened in a mode, which is not set in config as "defaultMode", then at the slightest change of window size - the mode is reset to the value in config (although it is not necessary to), and we see such a jump, as on the video.

Besides, it seems to me, that we should add "emit" (the same as @updated-mode) for just such a situation, which will inform us, that the mode of display has changed at increase/decrease of window size (not only by clicking on modes menu).

Thanks!

qalendar.mp4

Clicking on the calendar view (day, week views) only references date, not time

Right now according to the documentation, there is no way to find out the time user clicked in the calendar view - only date is getting referenced. Are there plans to enable time to be returned in the click event? Any workaround possible to achieve this result? That would be useful if the app wants to implement the functionality to create an event right from the calendar view.

Thank you!!

Prevent week navigation arrows from moving

Is your feature request related to a problem? Please describe.
When browsing through weeks in the calendar, the arrows can move from week to week, probably due to the difference in total number of digits of some dates displayed in the window next to the arrows.

For example, 23-1-2023 - 29-1-2023 is longer than 30-1-2023 - 5-2-2023, making the navigational arrows to the left of the box displaying the dates move a bit to the right.

Describe the solution you'd like
I'd like the arrows to stay in 1 position, making it easier to click them at the same position consistently.

Additional context
Personally I'd recommend using leading zeros, but I could understand if this would be a change not everyone would like.
Perhaps changing it into a optional prop could give users the choice?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update devdependencies (non-major) (@commitlint/cli, @commitlint/config-conventional, @vitest/coverage-c8, @vue/test-utils, @vue/tsconfig, eslint, eslint-plugin-vue, sass, semantic-release, stylelint, typescript, vitepress, vitest, vue-tsc)

Detected dependencies

dockerfile
test-runner.dockerfile
github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/deploy-docs.yml
  • actions/checkout v3
  • actions/setup-node v3
  • actions/configure-pages v3
  • actions/upload-pages-artifact v1
  • actions/deploy-pages v2
.github/workflows/end-to-end-tests.yml
  • actions/checkout v3
  • cypress-io/github-action v4
  • cypress-io/github-action v4
  • actions/upload-artifact v3
.github/workflows/record-snapshots.yml
  • actions/checkout v3
  • cypress-io/github-action v4
  • actions/upload-artifact v3
.github/workflows/release.yml
  • actions/checkout v3
  • actions/setup-node v3
.github/workflows/unit-tests.yml
  • actions/checkout v3
  • szenius/set-timezone v1.2
  • actions/setup-node v3
  • actions/checkout v3
  • szenius/set-timezone v1.2
  • actions/setup-node v3
  • actions/checkout v3
  • szenius/set-timezone v1.2
  • actions/setup-node v3
npm
package.json
  • perfect-scrollbar ^1.5.5
  • @babel/types 7.22.5
  • @commitlint/cli 17.6.5
  • @commitlint/config-conventional 17.6.5
  • @rushstack/eslint-patch 1.3.2
  • @semantic-release/changelog 6.0.3
  • @semantic-release/git 10.0.1
  • @types/jsdom 21.1.1
  • @types/node 18.16.18
  • @types/unidecode ^0.1.1
  • @vitejs/plugin-vue 4.2.3
  • @vitest/coverage-c8 ^0.32.0
  • @vue/eslint-config-prettier 7.1.0
  • @vue/eslint-config-typescript 11.0.3
  • @vue/test-utils 2.3.2
  • @vue/tsconfig 0.1.0
  • cypress-visual-regression ^3.0.0
  • eslint 8.42.0
  • eslint-config-prettier 8.8.0
  • eslint-plugin-vue 9.14.1
  • husky 8.0.3
  • jsdom 22.1.0
  • postcss-html 1.5.0
  • postcss-scss 4.0.6
  • prettier 2.8.8
  • sass 1.63.4
  • semantic-release 21.0.5
  • start-server-and-test 2.0.0
  • stylelint 15.7.0
  • stylelint-config-recommended-vue 1.4.0
  • stylelint-config-standard 33.0.0
  • stylelint-config-standard-scss 9.0.0
  • typescript 5.1.3
  • unidecode ^0.1.8
  • vite 4.3.9
  • vitepress 1.0.0-beta.2
  • vitest 0.32.1
  • vue-router 4.2.2
  • vue-tsc 1.6.5
  • node >=16.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Cards on top of the others

Describe the bug
I have an app that has many events and the time of the event can be long one.
So if I click on week mode the cards are one on top of the other.
here is one screen shot

Screenshot_2

Is there any way to make it look better?

Thank you in advance.

Optional config property - highlightCurrentDay

Is your feature request related to a problem? Please describe.
I would like to highlight the current day (particularly in month mode, but good to have for week as well) with a different background color as a quick way to find where the current day lives on the calendar. I can currently do this with some vanilla JS work, but it doesn't feel super nice to use vanilla JS in vue.

Describe the solution you'd like
An optional configuration property would be the easiest as a user, but even just a class we could style for the current day would be great.

Additional context
An example of what I've manually created in my project with the 26th being the current date:
image

pt-BR language

Hey! Thanks for this project.

I'm using this one and I need to configure it for Brazilian Portuguese (pt-BR).

So I made some changes but I don't have permission on the project:

keys.ts
`
export const languageKeys = {
/** The following three keys, describe the calendar modes */
week: {
"it-IT": "Settimana",
"en-US": "Week",
"de-DE": "Woche",
"sv-SE": "Vecka",
"zh-CN": "周",
"pt-BR": "Semana",
},
month: {
"it-IT": "Mese",
"en-US": "Month",
"de-DE": "Monat",
"sv-SE": "Månad",
"zh-CN": "月",
"pt-BR": "Mês",
},
day: {
"it-IT": "Giorno",
"en-US": "Day",
"de-DE": "Tag",
"sv-SE": "Dag",
"zh-CN": "日",
"pt-BR": "Dia",
},

/** Other keys */
moreEvents: {
"it-IT": "+ altri eventi",
"en-US": "+ more events",
"de-DE": "+ weitere Ereignisse",
"sv-SE": "+ fler händelser",
"zh-CN": "列出其他结果",
"pt-BR": "+ mais eventos",
},
};
`

index.ts
`
import { languageKeys } from "./keys";

export default {
data() {
return {
languageKeys,
};
},

methods: {
getLanguage(languageKeys: any, locale: string) {
if (locale.startsWith("de")) locale = "de-DE";
if (locale.startsWith("en")) locale = "en-US";
if (locale.startsWith("it")) locale = "it-IT";
if (locale.startsWith("sv")) locale = "sv-SE";
if (locale.startsWith("zh")) locale = "zh-CN";
if (locale.includes("BR")) locale = "pt-BR";

  return languageKeys[locale]
    ? languageKeys[locale]
    : languageKeys["en-US"] || "";
},

},
};
`

Devtools.vue
<select id="locale" v-model="locale" name="locale"> <option value="en-US">en-US</option> <option value="de-DE">de-DE</option> <option value="sv-SE">sv-SE</option> <option value="ja-JP">ja-JP</option> <option value="ru-RU">ru-RU</option> <option value="zh-CN">zh-CN</option> <option value="pt-BR">pt-BR</option> </select>

Could I send the changes in a Pull Request or could you apply the codes above, please?

Slots for custom header

Is your feature request related to a problem? Please describe.
Hi, i need to hide the datepicker (red line) and change the dropdown for modes (blue line) for a inline toggle.

Describe the solution you'd like
It's need to create props to hide this elements and scoped slots (exposing the function to change modes) for user can customize the layout more

Additional context
I'll appreciate if can expose the function to change modes in the component accesing by ref the component.

image

<qalendar ref="calendar" />

...
const qalendar = ref(null);
qalendar.value.changeMode('month');

Events are not appearing after state change

Describe the bug
I created a very simple test component to test this library and it seems like that the events are not updated when I push a new one. I can see that my stateful array is updating because I was printing it on top of the calendar. Only Qalendar is not reacting to any changes.

To Reproduce
Steps to reproduce the behavior:

  1. Follow the Documentation setup
  2. Use the composition API and create a stateful variable const events = ref<any>([])
  3. pass it to the :events attribute in
  4. Push a new event to events variable
  5. Nothing happens

Expected behavior
New event should appear in calendar

Screenshots

Screenshot 2023-05-16 at 11 34 52

Context:

  • Browser Chrome
  • Nuxt3 (3.0.0)
  • Qalendar (2.5.0)

Additional context

<template>
  <div>
    <ClientOnly>
      {{ events }}
      <Qalendar
        :events="events"
        @day-was-clicked="onDayClicked"
      />
    </ClientOnly>
  </div>
</template>

<script setup lang="ts">
import { Qalendar } from 'qalendar'

const events = ref<any>([])

function onDayClicked(e: any) {
  console.log('DAY', e)

  events.value.push({
    title: 'Advanced algebra',
    with: 'Chandler Bing',
    time: { start: '2023-05-16 08:00', end: '2023-05-16 09:00' },
    color: 'red',
    isEditable: true,

    id: '12',
    description: 'test'
  })
}
</script>

<style>
@import 'qalendar/dist/style.css';
</style>

Remove mode button when there is only one mode available.

When there is only one mode available (i.e disableModes as been used for two modes), the UI will be cleaner if we automatically hide the mode select dropdown. Example below -

image

I see we have this behaviour when only day mode is available:

But I'd propose to modify this code:

onlyDayModeIsEnabled() {
const weekIsDisabled = this.config.disableModes?.includes('week');
const monthIsDisabled = this.config.disableModes?.includes('month');

  return this.config.disableModes && weekIsDisabled && monthIsDisabled;
},

To implement "onlyOneModelIsAvailable" to handle cases where dayIsDisabled and weekIsDisabled but month is not disabled. I.e:

onlyOneModeIsAvailable() {
return this.config.disableModes?.length === 2
},

Add russian translate

When you select the calendar mode, the modes in english are displayed if no other setting is set.

Expose methods to go to previous month and next month to developer

Is your feature request related to a problem? Please describe.
I'm building a custom header to control the calendar and would like to access the built-in methods to switch to the previous/next period from custom elements.

Describe the solution you'd like
Adding a ref on date picker element and a method to that in turn exposes the goToPeriod method to the top level

Cannot. customise event dialog

Describe the bug
I want to show custom content in the event dialog

To Reproduce
Steps to reproduce the behavior:

        <template #eventDialog="props">
          <div v-if="props.eventDialogData && props.eventDialogData.title">
            <div :style="{marginBottom: '8px'}">
              Edit event
            </div>

            <input class="flyout-input" type="text" :style="{ width: '90%', padding: '8px', marginBottom: '8px' }">

            <button class="close-flyout" @click="props.closeEventDialog">
              Finished!
            </button>
          </div>
        </template>

Expected behavior
show. the. custom template in dialog

Screenshots
If applicable, add screenshots to help explain your problem.

Context:

"qalendar": "^2.0.0-beta.1",

add new event

i would like to add new events 'on-click' on the dates

i dont know if the feature is available. If there, please guide me , on how to add new events by selecting a date by clicking the date in calender.(in month view)
ps: I'm using vue 3.

Composition API

Hello, I saw in documentation that you use optionAPI and I want to know if this package support composition API or not ?

regards.

Support for mobile drag/drop

Sorry if this is not the right place to submit this. I was wondering if there is a roadmap for supporting actions (drag/drop) for mobile devices. I found a reference that it's not currently supported, and since majority of users these days are relying on the mobile device support - decided to ask. Thank you for a great tool!!

An event that lasts more than 24 hours

Hello! I encountered a problem, is it a bug or not?
If the event is longer than a day and has a time, it is displayed only in the day of the event start.
This applies to all three display modes.

If there is no time in the date, it is displayed correctly.
Thank you!

Agenda View - Event Customization/Slot

Is your feature request related to a problem? Please describe.
Hello, I'm back again 😅

I've been loving the new additions and the dark mode looks wonderful!

For this new idea I'm bringing forward it's very possible that I've missed a way to do this in the documentation somewhere (or that this is a bug), but the problem I've noticed is that when going down to the mobile agenda view in month mode and clicking on a day, my events don't use the custom month event view that I've created using the monthEvent slot. They're back to the default configuration as seen in Additional Context below.

Describe the solution you'd like
What would be most convenient in my use-case would just be having the agenda view respect the monthEvent slot I'm already using. However, there could be an argument for having an agenda view slot specifically, though I would imagine that's considerably more work, especially if no one is explicitly requesting it at this time.

If this is something attainable for a new contributor to Qalendar then I'd be happy to try my hand at it!

Additional context

Desktop month events
image

Mobile month events
image

Resizable weekday event slot

Is your feature request related to a problem? Please describe.
When using the slot for weekday events, I am unable to resize the events, only drag.

Describe the solution you'd like
I would like to be able to resize my events regardless of using a slot or the default template.

Set in config the number of events before showing "+ more events"

Is your feature request related to a problem? Please describe.
My calendar has room for more than 3 events to be displayed.

Describe the solution you'd like
I would like to be able to set the number of events that can be displayed before showing the "+ more events" link. Something like minShowMore in the config.

Additional context
Current:
image

In this case I would set the "minShowMore" to 5 (or 4 depending on the logic)
image

Print full page

HI.
If I wanted to print the weekly calendar full page there is no way to do it.
Printing full pages with time from 7am to 10pm in order to slightly increase the viewing portion of the events

Time range for week view/mode

First of all, I really love this package! Super light and easy to use.

So I was looking for a calendar that shows a weekly events and thankfully I found this package. I got it working with some few mods using CSS etc. Read the docs to explore more features but after several minutes of circling around your docs, I can't find a setting/option where I can select what time the calendar (week view/mode) should start and end.

Below is the screenshot of the app I'm working on. As you can see, it's a school schedule - classes starts as early as 6am and the last period ends at 8/9pm. Space consumed by 12mn to 6am is a bit long that a user needs to scroll down to start seeing their schedule.

image

So yea, maybe a feature/options/settings that's something like this :) I'd like to have my calendar to start at 5am then ends at 10pm - that way it still have a space/allowance after the header and before the bottom of the calendar.

image

Thank and more power!

[Bug] Range selector options on mobile devices

Context:

  • Chrome in mobile dev mode (120) / Safari on iOS (17.2)
  • Qalendar (3.5.1)

Describe the bug
On mobile device, the select range (Day, Week, Month), only shows (Month and Week) options.

To Reproduce
Reproductible on the documentation: Qalendar guide

  1. Setup a standard Qalendar with no specific options (no disableModes).
  2. Open your browser on mobile dev mode/ Or go on Android/iOS and open Chrome/Safari
  3. Click on the range selector

Expected behavior
I want the same number of options in desktop and mobile: Day, Week, Month.

Screenshots

iPhone/Safari - Chrome mobile mode

image
image

Interval States

I want to use the Week/Day view as a scheduling tool, so I need the intervals to have states.

I've implemented a sample at the interval-states branch of my fork:
https://github.com/hugoaboud/qalendar/tree/interval-states

It adds a intervalStates prop to <Qalendar>, which is a list defining which intervals should be customized:

intervalStates: [
    {
      date: '2023-05-05',
      interval: 1,
      hidden: true
    },
    {
      date: '2023-05-04',
      interval: 3,
      color: '#900',
      disabled: true
    }
] as dayIntervalsStateType[],

So it appears like that:
image

I haven't implemented any tests yet, so I can evaluate your interest before.

It also implements a highlight on hover and click for intervals.

Better calendar Month view. design for mobile

Is your feature request related to a problem? Please describe.
The current month view of calendar is not very professional

Describe the solution you'd like
We may consider show a calendar and. the depending on the day select show events

Additional context
image

Freely definable intervals in the week/day view

Thanks again for your great project!

I have a running project with Vuetify 2.6.7 and working with their Calendar element. Unfortunately Vuetify 2.6.7 is not VUE 3 compatible and the next version 3.0 is not only delayed but will no longer support the Calendar element in this form. While looking for a calendar, your project appealed to me and I liked it very much.

Our project needs quarter hourly intervals in the week/day overview starting from e.g. 8:00, 8:15 ... to 16h00 ending. We have to to enter events, with a click-event fired when the interval is clicked e.g. 9:15. The ability to click into an interval and define an event here via the @click:interval would be a feature that might be of interest to others. I think there are a lot of people who have worked with the Vuetify Calendar component and are now facing the problem like me, that this Calendar is no longer supported in the upcoming VUE3 compatible Vuetify version.

The interval props of Vuetify 2.6.7 are shown here and the calendar here

Perhaps you could accept this suggestion as a Feature request.

with best thanks in advance

wotamann

Strict naming of events fields?

Is your feature request related to a problem? Please describe.
Perhaps I am missing some configuration, but does the Qalendar requires, for example, events to have 'title' and I could not change the title to 'subject'? (if I do it now, it disappears from the display with

Describe the solution you'd like
When working with for example Microsoft Graph which brings events in quite a different format, it would take some coding to change Events.title to event.subject

Additional context
Great Plugin, good job. Thank you!

color-scheme: light not working

Context :

  • Browser : Edge
  • Qalendar Version v.3.5.0

**Describe the bug **
I have set my computer to dark mode and I want Qalendar to apply light mode, so I wrote the following code.

<template>
  <v-card min-height="">
    <v-card-title>
      {{ t("eip.uploadedWorkHour") }}
    </v-card-title>
    <v-card-text style="color-scheme: light" >
      <Qalendar  :events="events" :config="config" style="min-height: 600px;" />
    </v-card-text>
  </v-card>
</template>

but my Qalendar still dark, Is there an error in my configuration method? Thank you.

Any indicator for weekend?

Is your feature request related to a problem? Please describe.
We sometime need to change bg color for weekend, but currently I see no class for it.

disableDnD config doesn't work

Context (REQUIRED):

  • Browser : chrome
  • Browserversion : 116.0.5845.190
  • Qalendar Version 3.5.0

Describe the bug (REQUIRED)

I put a "disableDnD : ['day', 'week', 'month']" in config but it doesn't work. Events are still dragable.

Package path ./dist/style.css is not exported from package

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Context:

  • Browser [e.g. chrome, safari]
  • Version [e.g. v1.0.0]

Additional context
Add any other context about the problem here.

Add "first day of week" to Qalendar options

Is your feature request related to a problem? Please describe.
Some cultures or contexts work best with a calendar that starts on Sunday, others work better with Monday. Currently, Qalendar only allows Monday as the start date of the week.

Describe the solution you'd like
I would like an option added to props that sets a firstDayOfWeek property. For example:

...
props: {
        events: Array,
        config: {
          defaultMode: 'month',
          firstDayOfWeek: 'sunday'
        }
...

Thanks for your consideration

dayBoundaries not provide to set start time greater than end time

Hello,
firstly thank you for this helpful component.

The issue that is made is in configuration of dayBoundaries : I want to set times begin from 08:00 to 07:00 of the next day or from any start time that can be > than end time , and it is not possible with this version of dayBoundaries

Reproduction URL

you can see here a reproduction of this issue

Fix css exports

Css exports missing on package.json
Please change exports from

  "exports": {
    ".": {
      "import": "./dist/qalendar.es.js",
      "require": "./dist/qalendar.umd.js"
    },
  },

to

  "exports": {
    ".": {
      "import": "./dist/qalendar.es.js",
      "require": "./dist/qalendar.umd.js"
    },
    "./dist/style.css": {
      "import": "./dist/style.css",
      "require": "./dist/style.css"
    }
  },

this will allow normal imports to be used

@import "qalendar/dist/style.css";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.