Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Plans on Supporting to latest Jquery Version? #33

Open
ashish-kafle-bepatient opened this issue Dec 20, 2023 · 2 comments
Open

Any Plans on Supporting to latest Jquery Version? #33

ashish-kafle-bepatient opened this issue Dec 20, 2023 · 2 comments

Comments

@ashish-kafle-bepatient
Copy link

ashish-kafle-bepatient commented Dec 20, 2023

Hi, I love this package and it's a great package. I realised that the Jquery 3+ has deprecated the function that this plugin will use.
Will it have support for the latest JQuery version?

Thank you
@thet @regebro

@regebro
Copy link
Contributor

regebro commented Dec 20, 2023

I'm not using or maintaining this package since 10 years, so I don't know.

@thet
Copy link
Member

thet commented Dec 20, 2023

@ashish-kafle-bepatient nice to hear someone is using this package outside the Plone community! Can I ask for which projects you are using it for? I'm curious to see.

We have now integrated the code into https://github.com/plone/mockup/tree/master/src/pat/recurrence and have removed some old dependencies.
Basically, you can include the mockup project by using:

https://cdn.jsdelivr.net/npm/@plone/mockup@latest/dist/bundle.min.js

By using that you'd also have access to all the rest of the Mockup patterns, which is JavaScript functionality tailored to the Plone CMS needs. But it doesn't really hurt, also the dependencies are dynamically loaded.

You would use the recurrence pattern like so:

<textarea class="pat-recurrence"></textarea>

This is an example from the Plone CMS:

<textarea class="pat-recurrence recurrence-widget" id="form-widgets-IEventRecurrence-recurrence" name="form.widgets.IEventRecurrence.recurrence" data-pat-recurrence="{&quot;localization&quot;: {&quot;displayUnactivate&quot;: &quot;Does not repeat&quot;, &quot;displayActivate&quot;: &quot;Repeats every &quot;, &quot;add_rules&quot;: &quot;Add&quot;, &quot;edit_rules&quot;: &quot;Edit&quot;, &quot;delete_rules&quot;: &quot;Delete&quot;, &quot;add&quot;: &quot;Add&quot;, &quot;refresh&quot;: &quot;Refresh&quot;, &quot;title&quot;: &quot;Repeat&quot;, &quot;preview&quot;: &quot;Selected dates&quot;, &quot;addDate&quot;: &quot;Add date&quot;, &quot;recurrenceType&quot;: &quot;Repeats:&quot;, &quot;dailyInterval1&quot;: &quot;Repeat every:&quot;, &quot;dailyInterval2&quot;: &quot;days&quot;, &quot;weeklyInterval1&quot;: &quot;Repeat every:&quot;, &quot;weeklyInterval2&quot;: &quot;week(s)&quot;, &quot;weeklyWeekdays&quot;: &quot;Repeat on:&quot;, &quot;weeklyWeekdaysHuman&quot;: &quot;on: &quot;, &quot;monthlyInterval1&quot;: &quot;Repeat every:&quot;, &quot;monthlyInterval2&quot;: &quot;month(s)&quot;, &quot;monthlyDayOfMonth1&quot;: &quot;Day&quot;, &quot;monthlyDayOfMonth1Human&quot;: &quot;on day&quot;, &quot;monthlyDayOfMonth2&quot;: &quot;of the month&quot;, &quot;monthlyDayOfMonth3&quot;: &quot;month(s)&quot;, &quot;monthlyDayOfMonth4&quot;: &quot;monthly_day_of_month_4&quot;, &quot;monthlyWeekdayOfMonth1&quot;: &quot;The&quot;, &quot;monthlyWeekdayOfMonth1Human&quot;: &quot;on the&quot;, &quot;monthlyWeekdayOfMonth2&quot;: &quot; &quot;, &quot;monthlyWeekdayOfMonth3&quot;: &quot;of the month&quot;, &quot;monthlyRepeatOn&quot;: &quot;Repeat on:&quot;, &quot;yearlyInterval1&quot;: &quot;Repeat every:&quot;, &quot;yearlyInterval2&quot;: &quot;year(s)&quot;, &quot;yearlyDayOfMonth1&quot;: &quot;Every&quot;, &quot;yearlyDayOfMonth1Human&quot;: &quot;on&quot;, &quot;yearlyDayOfMonth2&quot;: &quot; &quot;, &quot;yearlyDayOfMonth3&quot;: &quot; &quot;, &quot;yearlyWeekdayOfMonth1&quot;: &quot;The&quot;, &quot;yearlyWeekdayOfMonth1Human&quot;: &quot;on the&quot;, &quot;yearlyWeekdayOfMonth2&quot;: &quot; &quot;, &quot;yearlyWeekdayOfMonth3&quot;: &quot;of&quot;, &quot;yearlyWeekdayOfMonth4&quot;: &quot; &quot;, &quot;yearlyRepeatOn&quot;: &quot;Repeat on:&quot;, &quot;range&quot;: &quot;End recurrence:&quot;, &quot;rangeNoEnd&quot;: &quot;Never&quot;, &quot;rangeByOccurrences1&quot;: &quot;Ending after&quot;, &quot;rangeByOccurrences1Human&quot;: &quot;ends after&quot;, &quot;rangeByOccurrences2&quot;: &quot;occurrence(s)&quot;, &quot;rangeByEndDate&quot;: &quot;Until &quot;, &quot;rangeByEndDateHuman&quot;: &quot;ends on &quot;, &quot;including&quot;: &quot;, and also &quot;, &quot;cancel&quot;: &quot;Cancel&quot;, &quot;save&quot;: &quot;Save&quot;, &quot;recurrenceStart&quot;: &quot;Start of the recurrence&quot;, &quot;additionalDate&quot;: &quot;Additional date&quot;, &quot;include&quot;: &quot;Include&quot;, &quot;exclude&quot;: &quot;Exclude&quot;, &quot;remove&quot;: &quot;Remove&quot;, &quot;orderIndexes&quot;: [&quot;first&quot;, &quot;second&quot;, &quot;third&quot;, &quot;fourth&quot;, &quot;last&quot;], &quot;months&quot;: [&quot;January&quot;, &quot;February&quot;, &quot;March&quot;, &quot;April&quot;, &quot;May&quot;, &quot;June&quot;, &quot;July&quot;, &quot;August&quot;, &quot;September&quot;, &quot;October&quot;, &quot;November&quot;, &quot;December&quot;], &quot;shortMonths&quot;: [&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;, &quot;Apr&quot;, &quot;May&quot;, &quot;Jun&quot;, &quot;Jul&quot;, &quot;Aug&quot;, &quot;Sep&quot;, &quot;Oct&quot;, &quot;Nov&quot;, &quot;Dec&quot;], &quot;weekdays&quot;: [&quot;Sunday&quot;, &quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;], &quot;shortWeekdays&quot;: [&quot;Sun&quot;, &quot;Mon&quot;, &quot;Tue&quot;, &quot;Wed&quot;, &quot;Thu&quot;, &quot;Fri&quot;, &quot;Sat&quot;], &quot;longDateFormat&quot;: &quot;dddd mmmm dd, yyyy&quot;, &quot;shortDateFormat&quot;: &quot;mm/dd/yy&quot;, &quot;unsupportedFeatures&quot;: &quot;Warning: This event uses recurrence features not supported by this widget. Saving the recurrence may change the recurrence in unintended ways: &quot;, &quot;noTemplateMatch&quot;: &quot;No matching recurrence template&quot;, &quot;multipleDayOfMonth&quot;: &quot;This widget does not support multiple days in monthly or yearly recurrence&quot;, &quot;bysetpos&quot;: &quot;BYSETPOS is not supported&quot;, &quot;noRule&quot;: &quot;No RRULE in RRULE data&quot;, &quot;noRepeatEvery&quot;: &quot;Error: The \&quot;Repeat every\&quot;-field must be between 1 and 1000&quot;, &quot;noEndDate&quot;: &quot;Error: End date is not set. Please set a correct value&quot;, &quot;noRepeatOn&quot;: &quot;Error: \&quot;Repeat on\&quot;-value must be selected&quot;, &quot;pastEndDate&quot;: &quot;Error: End date cannot be before start date&quot;, &quot;noEndAfterNOccurrences&quot;: &quot;Error: The \&quot;After N occurrences\&quot;-field must be between 1 and 1000&quot;, &quot;alreadyAdded&quot;: &quot;This date was already added&quot;, &quot;rtemplate&quot;: {&quot;daily&quot;: &quot;Daily&quot;, &quot;mondayfriday&quot;: &quot;Monday and Friday&quot;, &quot;weekdays&quot;: &quot;Weekday&quot;, &quot;weekly&quot;: &quot;Weekly&quot;, &quot;monthly&quot;: &quot;Monthly&quot;, &quot;yearly&quot;: &quot;Yearly&quot;}, &quot;except&quot;: &quot;, except for&quot;}, &quot;language&quot;: &quot;en&quot;, &quot;configuration&quot;: {&quot;ajaxContentType&quot;: &quot;application/x-www-form-urlencoded&quot;, &quot;ajaxURL&quot;: &quot;https://classic.demo.plone.org/@@json_recurrence&quot;, &quot;firstDay&quot;: 0, &quot;hasRepeatForeverButton&quot;: false, &quot;lang&quot;: &quot;en&quot;, &quot;readOnly&quot;: false, &quot;ributtonExtraClass&quot;: &quot;allowMultiSubmit&quot;, &quot;startField&quot;: &quot;form.widgets.IEventBasic.start&quot;}}" style="display: none;"></textarea>

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants