Fieldset-style inputs never go through the `FormControl` wrapper, so the
legend needs the `FormControl-label` class applied by the component. The
input does not support validation for the time being.
Wrapper arguments stay on the fieldset, while the component-specific and
form arguments flow to the inner tree view.
Default `datepicker_options` to `{}` in `SingleDatePickerInput`
(inherited by `RangeDatePickerInput`), and remove now-redundant
empty hash arguments from callsites.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
https://community.openproject.org/work_packages/68710
In addition to adding the files section to the document edit view,
this commit makes it optional to be able to attach files to blocknote.
This is, for example, not necessary when blocknote is rendered in
read-only mode (that's not happening yet, but planned).
This change also resolves issues with block scope after upgrading to
ViewComponent 4.0:
ActionView::Template::Error:
undefined local variable or method 'model' for an instance of #<Class:0x00000003020e3cb0>
# ./app/forms/scim_clients/form.rb:93:in 'block (2 levels) in <class:Form>'
# ./lib/primer/open_project/forms/html_content.rb:15:in 'BasicObject#instance_exec'
Additionally, since we are only interested in the passed `html_block`,
there is no need define a separate `HtmlContentInput` class.
This required to allow disabling the pattern input. For that
it received the additional FormControl-input class, which makes
sense, because it behaves like a form input and made it react
to the disabled attribute.
A side effect of the new class seems to be that some paddings changed
slightly, but it still looks good to me.
Decorates options for additional input types defined in
`Primer::Forms::Dsl::InputMethods`.
See also d9621e9efe.
As a result, `CustomField::Inputs::Bool` now supports help texts.
Renders `AttributeHelpTextComponent` in Primerized forms automatically
if the form model supports attribute help texts and the
`include_help_text: true` option is passed to the form DSL method.
This commit introduces a new type of input field which can handle autocomplete with 'tokens', so that we can build
patterns like `Example pattern {{token}} value`.
Except the color picker which still uses an angular component.
Also fixed an issue where the "Default value" checkbox could disappear
from the form after submitting with an error in the form.