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

Jalali calendar support for form date-time element #4308

Open
okaeiz opened this issue May 24, 2024 · 8 comments
Open

Jalali calendar support for form date-time element #4308

okaeiz opened this issue May 24, 2024 · 8 comments
Labels
backlog Queued in backlog enhancement New feature or request Forms i18n

Comments

@okaeiz
Copy link

okaeiz commented May 24, 2024

Problem you would like to solve

Since Camunda is becoming the first choice for business process management, and we are located in a region where the main calendar is Jalali (not Gregorian), including date-time elements in our forms requires our users to take a considerable time converting these dates. Although this can be handled by using middleware scripts in database transactions or other use cases, it is not worth the effort. It takes time and energy.
It'd be great if date-time element had an option to change the calendar when needed.

Proposed solution

I guess the easiest way of implementation is to add an option to the date-time properties panel using which the users can switch the calendar between Jalali and Gregorian.

Alternatives considered

Another option would be to set this preference in the form properties panel. There's another FR which proposes the support for right-to-left languages and it seemed like a good idea to implement this option in the form properties, rather than for each element separately.
Therefore, the date settings may be implemented there as well.

Additional context

I'd be glad if I could contribute in i18n and localization (string translation and visual improvements).

@okaeiz okaeiz added the enhancement New feature or request label May 24, 2024
@okaeiz
Copy link
Author

okaeiz commented May 29, 2024

I'd be grateful if you guys keep me informed of this issue. It's of high importance for my organization.

@nikku
Copy link
Member

nikku commented May 29, 2024

@okaeiz Consider to contribute if this is important for your organization.

@okaeiz
Copy link
Author

okaeiz commented Jun 1, 2024

@okaeiz Consider to contribute if this is important for your organization.

Could you please tell me where I can find the codes related to the components' definition? I checked everything under camunda-modeler/client/src/app/tabs /form but I found nothing. I want to start working on a new calendar component.

@nikku
Copy link
Member

nikku commented Jun 3, 2024

@okaeiz We use form-js as a foundation and I'd ask you to contribute there.

@nikku nikku added Forms backlog Queued in backlog i18n labels Jun 3, 2024
@okaeiz
Copy link
Author

okaeiz commented Oct 31, 2024

I have created this Jalali Calendar custom component:

JalaliCalendar.mp4

Is it worth creating a PR in form-js?

@barmac
Copy link
Collaborator

barmac commented Oct 31, 2024

Please feel free to open a PR to https://github.com/bpmn-io/form-js so that the team can evaluate it.

@okaeiz
Copy link
Author

okaeiz commented Oct 31, 2024

Since there already exists a datepicker, is it okay to add another datepicker or we should modify the existing one?

@barmac
Copy link
Collaborator

barmac commented Oct 31, 2024

@nikku and I have reached out to the form-js team internally, so you will get an answer soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog enhancement New feature or request Forms i18n
Projects
None yet
Development

No branches or pull requests

3 participants