pvv_calendar - Forum

Forum Navigation
You need to log in to create posts and topics.

pvv_calendar

Я решил научиться создавать свои собственные плагины и моим первым проектом я решил создать плагин для работы с датами и управлением календарем. Плагин еще не завершён, но им уже можно пользоваться.
В плагин будет добавлено
- Отслеживание кликов по календарю и вызов подпрограмм
- PopUp
и еще разные мелочи.
Так же я хочу научиться создавать и коммерческие версии, есть ли у кого такой опыт?

I decided to learn how to create my own plugins and my first project was to create a plugin for working with dates and calendar management. The plugin is not yet complete, but you can already use it.
Will be added to the plugin
- Tracking clicks on the calendar and calling subroutines
- PopUp
and other little things.
I also want to learn how to create commercial versions, does anyone have such experience?

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and CDY@44 have reacted to this post.
luishpVadimCDY@44

@lolo

Your plugin looks very good, many interesting functions, 
perhaps it would be good in future versions if the description 
of each action is in English or Spanish, which is optional

Плагин уж готов к работе.
Календарь немного переработан:
- теперь в его можно не только выводить в контейнере, но и использовать как всплывающий календарь к любому компоненту
- добавлены функции вызова подпрограммы клик на (дату, месяц, год, неделю, стрелки переключения календаря)
- добавлена возможность выводить отдельно список месяца и список лет.

Плугин пока только на русском языке, сомневаюсь, что гугл сможет помочь. Если у кого есть желание помочь с переводом я выписал в блокноте текст необходимый к переводу. Принимаются любые языки.

Скоро будет:
- работа с DOM календаря
- popup на даты

The plugin is ready to go.
The calendar has been slightly reworked:
- now you can not only display it in a container, but also use it as a pop-up calendar for any component
- added functions for calling the subroutine click on (date, month, year, week, calendar switch arrows)
- added the ability to display a separate list of months and a list of years.

The plugin is only in Russian for now, I doubt that Google will be able to help. If anyone wants to help with the translation, I have written down the text needed for translation in a notepad. Any languages are accepted.

Coming soon:
- working with the calendar DOM
- popup for dates

 

Uploaded files:
  • You need to login to have access to uploads.
luishp and Vadim have reacted to this post.
luishpVadim

@lolo

That's great! Thanks for sharing! Translation into other languages is of course important!

Thank you very much for sharing @lolo
I have attached here the english text (tranlated with ChatGPT4)
I hope it helps!

Uploaded files:
  • You need to login to have access to uploads.
CDY@44 has reacted to this post.
CDY@44

Исправил различные ошибки, добавил удаление экземпляра.
У плагина теперь есть официальная страница https://pavlenkovv.ru/pvvdatecalendar/

Fixed various errors, added instance deletion.
The plugin now has an official page https://pavlenkovv.ru/pvvdatecalendar/

в архиве русская и английская версии
Russian and English versions in the archive

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and farhad2008 have reacted to this post.
luishpVadimfarhad2008

@lolo

Hello, how are you, testing your plugin, I'll ask you, 
can I modify the size of the day numbers and day names of what is displayed inside the container?
Because no matter how much the container where we want to display the calendar is enlarged, 
everything looks very small inside.

@gustavo1973
я посмотрю, что можно сделать
I'll see what i can do

@gustavo1973

Календарь использует попутный ветер для стилизации, и так уж получилось, что они используют rem
The calendar uses tailwind for styling, and they just so happen to use rem
воспользуйтесь  transform: scale()

Добавьте в CSS своего проекта этот код
Add this code to your project's CSS

.vanilla-calendar {
    transform: scale(1.2) !important;
    transform-origin: top left !important;
}

 

luishp and CDY@44 have reacted to this post.
luishpCDY@44

@lolo

Gracias por tu ayuda, funciona lo que me dices, pero el texto dentro del container se sigue viendo chico, posibilidad de agrandarlo?

Probe agregandole a tu codigo algo asi sin resultado positivo , ( sacado de internet ) , entiendo poco de CSS:

font: italic bold 30px Verdana, Helvetica, Arial, sans-serif;

Otra cosa, Probando un poco tus acciones hay algunas que me funcionan mal:

. La accion "pvvGetNameCurrentMonth" no me deja seleccionar el lenguaje, esta desabilitada laopcion, en otras acciones si permite, lo solucione poniendo "Español"

. La accion "pvvGetNumberCurrentMonth " me devuelve el valor "3", deberia devolverme el valor "4" ya que estamos en el mes de Abril, hize hoy la prueba.

. La accion "pvvGetNameMonth" tampoco devuelve bien el nombre del mes al suministrarle el Numero del mismo

Quizas estos errores se deben a la configuracion de Idiomas, no se

saludos

 

Thanks for your help, what you tell me works, but the text inside the container is still visible small, 
is it possible to enlarge it?

I tried adding something like this to your code without positive results, (taken from the internet), 
I understand little about CSS:
font: italic bold 30px Verdana, Helvetica, Arial, sans-serif;
Another thing, after testing your actions a little, there are some that work badly for me:
. The action "pvvGetNameCurrentMonth" does not let me select the language, the option is disabled, 
  in other actions if it allows, I solved it by putting "Spanish"

. The action "pvvGetNumberCurrentMonth" returns the value "3", it should return the value "4" since we are 
  in the month of April, I did the test today.

. The "pvvGetNameMonth" action also does not return the name of the month correctly when supplying its Number

Perhaps these errors are due to the Language configuration, it is not known.

greetings

@gustavo1973

Спасибо, я действительно пропустил выбор языка (ошибка исправлена)

pvvGetNumberCurrentMonth,pvvGetNameMonth - работают правильно.

Их значения хранятся в массиве, а массив всегда начинается с "0"
0,1,2,3,4,...11
в данном случае 3- это Апрель.
-------------------------------------------------------------------------

Thanks, I actually missed the language selection (bug fixed)

pvvGetNumberCurrentMonth, pvvGetNameMonth - work correctly.
Their values are stored in an array, and the array always starts with "0"
0,1,2,3,4,...11
in this case, 3 is April.
*********************************************************************
Я не понял, что именно у Вас не получилось с текстом календаря.
I don’t understand what exactly went wrong with the calendar text.

Uploaded files:
  • You need to login to have access to uploads.

@lolo

Gracias por tu pronta respuesta

Tu plugin esta muy bueno porque tiene acciones muy utiles para trabajar con fechas, te hago unas sugerencias que quizas puedan ser incorporadas:

Algunas de tus acciones que te mencione en el post anterior devuelven el resultado en un Array, no es posible que directamente devuelvan el valor, que el manejo del array lo hagas tu internamente en el plugin?

Otra sugerencia, tienes una accion que se llama "pvvGetMaxNumberCurrentMonth" que devuelve la cantidad de dias que tiene el mes en curso, seria muy util esa misma accion con otro nombre pero que permita saber la cantidad de dias pero en un mes ingresado por nosotros de determinado año.

 

Thanks for your prompt response
Your plugin is very good because it has very useful actions to work with dates, 
I make some suggestions that perhaps can be incorporated:
Some of your actions that I mentioned in the previous post return the result in an Array, 
is it not possible for them to directly return the value, do you manage the array internally in the plugin?

Another suggestion, you have an action called "pvvGetMaxNumberCurrentMonth" that returns 
the number of days in the current month. That same action would be very useful with 
another name but that allows us to know the number of days but in a month entered by us.

@gustavo1973

сделал для Вас (1...12)
добавил функцию pvvGetMaxNumberMonthFromDate

 

made for you (1...12)
added function pvvGetMaxNumberMonthFromDate

Uploaded files:
  • You need to login to have access to uploads.
luishp and CDY@44 have reacted to this post.
luishpCDY@44

А вообще, кто как думает.. Стоит оставить месяца [0....11] и недели [0...6] или все таки нужно начинать с [1]?
In general, who thinks... Should I leave months [0....11] and weeks [0...6] or should I still start from [1]?

@lolo

Lo ideal seria que los meses fueran de 1 a 12 y lo mismo las semanas que comienzen en 1

Que el manejo del array lo hagas tu internamente si es que se puede, que la accion solo devuelva el resultado listo para usar

The ideal would be for the months to be from 1 to 12 and the same for the weeks that start at 1.

Do the management of the array internally if possible, and let the action only return the result ready to use.
Open chat
1
Do you need more info?
Hi, do you have any doubt?