chore: enable freeze string literals by comment

This commit is contained in:
Colin Darie 2024-04-29 00:17:15 +02:00
parent edeb9a46ec
commit 77fb0553fc
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2262 changed files with 4520 additions and 1 deletions

View file

@ -1177,7 +1177,7 @@ Style/FormatStringToken:
EnforcedStyle: template EnforcedStyle: template
Style/FrozenStringLiteralComment: Style/FrozenStringLiteralComment:
Enabled: false Enabled: true
Style/GlobalVars: Style/GlobalVars:
Enabled: true Enabled: true

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'rails', '~> 7.0.8' # allows update to security fixes at any time gem 'rails', '~> 7.0.8' # allows update to security fixes at any time

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# A sample Guardfile # A sample Guardfile
# More info at https://github.com/guard/guard#readme # More info at https://github.com/guard/guard#readme

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake, # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ApplicationComponent < ViewComponent::Base class ApplicationComponent < ViewComponent::Base
include ViewComponent::Translatable include ViewComponent::Translatable
include FlipperHelper include FlipperHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Display a widget for uploading, editing and deleting a file attachment # Display a widget for uploading, editing and deleting a file attachment
class Attachment::EditComponent < ApplicationComponent class Attachment::EditComponent < ApplicationComponent
attr_reader :champ attr_reader :champ

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# Display a widget for uploading, editing and deleting a file attachment # Display a widget for uploading, editing and deleting a file attachment
class Attachment::MultipleComponent < ApplicationComponent class Attachment::MultipleComponent < ApplicationComponent
DEFAULT_MAX_ATTACHMENTS = 10 DEFAULT_MAX_ATTACHMENTS = 10

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Attachment::PendingPollComponent < ApplicationComponent class Attachment::PendingPollComponent < ApplicationComponent
attr_reader :attachments attr_reader :attachments

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class Attachment::ProgressBarComponent < ApplicationComponent class Attachment::ProgressBarComponent < ApplicationComponent
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Attachment::ProgressComponent < ApplicationComponent class Attachment::ProgressComponent < ApplicationComponent
attr_reader :attachment attr_reader :attachment
attr_reader :ignore_antivirus attr_reader :ignore_antivirus

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Attachment::ShowComponent < ApplicationComponent class Attachment::ShowComponent < ApplicationComponent
def initialize(attachment:, new_tab: false, truncate: false) def initialize(attachment:, new_tab: false, truncate: false)
@attachment = attachment @attachment = attachment

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conditions::ChampsConditionsComponent < Conditions::ConditionsComponent class Conditions::ChampsConditionsComponent < Conditions::ConditionsComponent
def initialize(tdc:, upper_tdcs:, procedure_id:) def initialize(tdc:, upper_tdcs:, procedure_id:)
@tdc, @condition, @source_tdcs = tdc, tdc.condition, upper_tdcs @tdc, @condition, @source_tdcs = tdc, tdc.condition, upper_tdcs

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conditions::ConditionsComponent < ApplicationComponent class Conditions::ConditionsComponent < ApplicationComponent
include Logic include Logic

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conditions::ConditionsErrorsComponent < ApplicationComponent class Conditions::ConditionsErrorsComponent < ApplicationComponent
def initialize(conditions:, source_tdcs:) def initialize(conditions:, source_tdcs:)
@conditions, @source_tdcs = conditions, source_tdcs @conditions, @source_tdcs = conditions, source_tdcs

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conditions::IneligibiliteRulesComponent < Conditions::ConditionsComponent class Conditions::IneligibiliteRulesComponent < Conditions::ConditionsComponent
include Logic include Logic

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Conditions::RoutingRulesComponent < Conditions::ConditionsComponent class Conditions::RoutingRulesComponent < Conditions::ConditionsComponent
include Logic include Logic

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::AccuseLectureComponent < ApplicationComponent class Dossiers::AccuseLectureComponent < ApplicationComponent
def initialize(dossier:) def initialize(dossier:)
@dossier = dossier @dossier = dossier

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::AutosaveFooterComponent < ApplicationComponent class Dossiers::AutosaveFooterComponent < ApplicationComponent
include ApplicationHelper include ApplicationHelper
attr_reader :dossier attr_reader :dossier

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::BatchAlertComponent < ApplicationComponent class Dossiers::BatchAlertComponent < ApplicationComponent
attr_reader :batch attr_reader :batch

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::BatchOperationComponent < ApplicationComponent class Dossiers::BatchOperationComponent < ApplicationComponent
attr_reader :statut, :procedure attr_reader :statut, :procedure

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::BatchOperationInlineButtonsComponent < ApplicationComponent class Dossiers::BatchOperationInlineButtonsComponent < ApplicationComponent
attr_reader :opt, :icons, :form attr_reader :opt, :icons, :form

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::BatchSelectMoreComponent < ApplicationComponent class Dossiers::BatchSelectMoreComponent < ApplicationComponent
def initialize(dossiers_count:, filtered_sorted_ids:) def initialize(dossiers_count:, filtered_sorted_ids:)
@dossiers_count = dossiers_count @dossiers_count = dossiers_count

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::ChampsRowsShowComponent < ApplicationComponent class Dossiers::ChampsRowsShowComponent < ApplicationComponent
attr_reader :profile attr_reader :profile
attr_reader :seen_at attr_reader :seen_at

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::EditFooterComponent < ApplicationComponent class Dossiers::EditFooterComponent < ApplicationComponent
delegate :can_passer_en_construction?, to: :@dossier delegate :can_passer_en_construction?, to: :@dossier

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::ExportDropdownComponent < ApplicationComponent class Dossiers::ExportDropdownComponent < ApplicationComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::ExportLinkComponent < ApplicationComponent class Dossiers::ExportLinkComponent < ApplicationComponent
include ApplicationHelper include ApplicationHelper
include TabsHelper include TabsHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::GeoAreaComponent < ApplicationComponent class Dossiers::GeoAreaComponent < ApplicationComponent
attr_reader :geo_area, :editing attr_reader :geo_area, :editing

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::GeoAreasComponent < ApplicationComponent class Dossiers::GeoAreasComponent < ApplicationComponent
attr_reader :champ, :editing attr_reader :champ, :editing

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::IndividualFormComponent < ApplicationComponent class Dossiers::IndividualFormComponent < ApplicationComponent
delegate :for_tiers?, to: :@dossier delegate :for_tiers?, to: :@dossier

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::InvalidIneligibiliteRulesComponent < ApplicationComponent class Dossiers::InvalidIneligibiliteRulesComponent < ApplicationComponent
delegate :can_passer_en_construction?, to: :@dossier delegate :can_passer_en_construction?, to: :@dossier

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::MessageComponent < ApplicationComponent class Dossiers::MessageComponent < ApplicationComponent
def initialize(commentaire:, connected_user:, messagerie_seen_at: nil, show_reply_button: false, groupe_gestionnaire: nil) def initialize(commentaire:, connected_user:, messagerie_seen_at: nil, show_reply_button: false, groupe_gestionnaire: nil)
@commentaire = commentaire @commentaire = commentaire

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::NotifiedToggleComponent < ApplicationComponent class Dossiers::NotifiedToggleComponent < ApplicationComponent
def initialize(procedure:, procedure_presentation:) def initialize(procedure:, procedure_presentation:)
@procedure = procedure @procedure = procedure

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::RowShowComponent < ApplicationComponent class Dossiers::RowShowComponent < ApplicationComponent
attr_reader :label attr_reader :label
attr_reader :profile attr_reader :profile

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::UserFilterComponent < ApplicationComponent class Dossiers::UserFilterComponent < ApplicationComponent
include DossierHelper include DossierHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dossiers::UserProcedureFilterComponent < ApplicationComponent class Dossiers::UserProcedureFilterComponent < ApplicationComponent
include DossierHelper include DossierHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dropdown::MenuComponent < ApplicationComponent class Dropdown::MenuComponent < ApplicationComponent
renders_one :button_inner_html renders_one :button_inner_html
renders_one :menu_header_html renders_one :menu_header_html

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/alerte # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/alerte
class Dsfr::AlertComponent < ApplicationComponent class Dsfr::AlertComponent < ApplicationComponent
renders_one :body renders_one :body

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/mise-en-avant # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/mise-en-avant
class Dsfr::CalloutComponent < ApplicationComponent class Dsfr::CalloutComponent < ApplicationComponent
renders_one :body renders_one :body

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::CardVerticalComponent < ApplicationComponent class Dsfr::CardVerticalComponent < ApplicationComponent
renders_many :footer_buttons renders_many :footer_buttons

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::ComboboxComponent < ApplicationComponent class Dsfr::ComboboxComponent < ApplicationComponent
def initialize(form: nil, options: nil, url: nil, selected: nil, allows_custom_value: false, limit: nil, input_html_options: {}, hidden_html_options: {}) def initialize(form: nil, options: nil, url: nil, selected: nil, allows_custom_value: false, limit: nil, input_html_options: {}, hidden_html_options: {})
@form, @options, @url, @selected, @allows_custom_value, @limit, @input_html_options, @hidden_html_options = form, options, url, selected, allows_custom_value, limit, input_html_options, hidden_html_options @form, @options, @url, @selected, @allows_custom_value, @limit, @input_html_options, @hidden_html_options = form, options, url, selected, allows_custom_value, limit, input_html_options, hidden_html_options

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::CopyButtonComponent < ApplicationComponent class Dsfr::CopyButtonComponent < ApplicationComponent
def initialize(text:, title:, success: nil) def initialize(text:, title:, success: nil)
@text = text @text = text

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::DownloadComponent < ApplicationComponent class Dsfr::DownloadComponent < ApplicationComponent
attr_reader :attachment attr_reader :attachment
attr_reader :html_class attr_reader :html_class

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::InputComponent < ApplicationComponent class Dsfr::InputComponent < ApplicationComponent
include Dsfr::InputErrorable include Dsfr::InputErrorable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Dsfr module Dsfr
module InputErrorable module InputErrorable
extend ActiveSupport::Concern extend ActiveSupport::Concern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Dsfr module Dsfr
class InputStatusMessageComponent < ApplicationComponent class InputStatusMessageComponent < ApplicationComponent
def initialize(errors_on_attribute:, error_full_messages:, describedby_id:, champ:) def initialize(errors_on_attribute:, error_full_messages:, describedby_id:, champ:)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::ListComponent < ApplicationComponent class Dsfr::ListComponent < ApplicationComponent
renders_many :items renders_many :items
renders_one :empty renders_one :empty

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/bandeau-d-information-importante/ # see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/bandeau-d-information-importante/
class Dsfr::NoticeComponent < ApplicationComponent class Dsfr::NoticeComponent < ApplicationComponent
renders_one :title renders_one :title

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::RadioButtonListComponent < ApplicationComponent class Dsfr::RadioButtonListComponent < ApplicationComponent
attr_reader :error attr_reader :error

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::SidemenuComponent < ApplicationComponent class Dsfr::SidemenuComponent < ApplicationComponent
renders_many :links, "LinkComponent" renders_many :links, "LinkComponent"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Dsfr::ToggleComponent < ApplicationComponent class Dsfr::ToggleComponent < ApplicationComponent
def initialize(form:, target:, title:, disabled: nil, hint: nil, toggle_labels: { checked: 'Activé', unchecked: 'Désactivé' }, opt: nil, extra_class_names: nil) def initialize(form:, target:, title:, disabled: nil, hint: nil, toggle_labels: { checked: 'Activé', unchecked: 'Désactivé' }, opt: nil, extra_class_names: nil)
@form = form @form = form

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::AddressComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::AddressComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-select' 'fr-select'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::AnnuaireEducationComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::AnnuaireEducationComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-select' 'fr-select'

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class EditableChamp::AsteriskMandatoryComponent < ApplicationComponent class EditableChamp::AsteriskMandatoryComponent < ApplicationComponent
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::CarteComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CarteComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper
def dsfr_champ_container def dsfr_champ_container

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::ChampLabelComponent < ApplicationComponent class EditableChamp::ChampLabelComponent < ApplicationComponent
include Dsfr::InputErrorable include Dsfr::InputErrorable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::ChampLabelContentComponent < ApplicationComponent class EditableChamp::ChampLabelContentComponent < ApplicationComponent
include ApplicationHelper include ApplicationHelper
include Dsfr::InputErrorable include Dsfr::InputErrorable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::CheckboxComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CheckboxComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-checkbox' 'fr-checkbox'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::CiviliteComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CiviliteComponent < EditableChamp::EditableChampBaseComponent
def dsfr_champ_container def dsfr_champ_container
:fieldset :fieldset

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class EditableChamp::CnafComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CnafComponent < EditableChamp::EditableChampBaseComponent
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::COJOComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::COJOComponent < EditableChamp::EditableChampBaseComponent
def input_group_class def input_group_class
if @champ.accreditation_success? if @champ.accreditation_success?

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::CommunesComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::CommunesComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DateComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DateComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DatetimeComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DatetimeComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DecimalNumberComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DecimalNumberComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DepartementsComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DepartementsComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DgfipComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DgfipComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DossierLinkComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DossierLinkComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DropDownListComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DropDownListComponent < EditableChamp::EditableChampBaseComponent
def render? def render?
@champ.options? @champ.options?

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::DropDownOtherInputComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::DropDownOtherInputComponent < EditableChamp::EditableChampBaseComponent
def render? def render?
@champ.other? @champ.other?

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::EditableChampBaseComponent < ApplicationComponent class EditableChamp::EditableChampBaseComponent < ApplicationComponent
include Dsfr::InputErrorable include Dsfr::InputErrorable

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::EditableChampComponent < ApplicationComponent class EditableChamp::EditableChampComponent < ApplicationComponent
def initialize(form:, champ:, seen_at: nil) def initialize(form:, champ:, seen_at: nil)
@form, @champ, @seen_at = form, champ, seen_at @form, @champ, @seen_at = form, champ, seen_at

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::EmailComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::EmailComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class EditableChamp::EngagementJuridiqueComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::EngagementJuridiqueComponent < EditableChamp::EditableChampBaseComponent
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::EpciComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::EpciComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::EtablissementTitreComponent < ApplicationComponent class EditableChamp::EtablissementTitreComponent < ApplicationComponent
include EtablissementHelper include EtablissementHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::ExplicationComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::ExplicationComponent < EditableChamp::EditableChampBaseComponent
delegate :type_de_champ, to: :@champ delegate :type_de_champ, to: :@champ
delegate :notice_explicative, to: :type_de_champ delegate :notice_explicative, to: :type_de_champ

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::ExpressionReguliereComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::ExpressionReguliereComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::HeaderSectionComponent < ApplicationComponent class EditableChamp::HeaderSectionComponent < ApplicationComponent
def initialize(form: nil, champ:, seen_at: nil, html_class: {}) def initialize(form: nil, champ:, seen_at: nil, html_class: {})
@champ = champ @champ = champ

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::IbanComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::IbanComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::IntegerNumberComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::IntegerNumberComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::LinkedDropDownListComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::LinkedDropDownListComponent < EditableChamp::EditableChampBaseComponent
def dsfr_champ_container def dsfr_champ_container
:fieldset :fieldset

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::MesriComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::MesriComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::MultipleDropDownListComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::MultipleDropDownListComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::NumberComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::NumberComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::PaysComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::PaysComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::PhoneComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::PhoneComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::PieceJustificativeComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::PieceJustificativeComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,2 +1,4 @@
# frozen_string_literal: true
class EditableChamp::PoleEmploiComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::PoleEmploiComponent < EditableChamp::EditableChampBaseComponent
end end

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::RegionsComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::RegionsComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper include ApplicationHelper

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::RepetitionComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::RepetitionComponent < EditableChamp::EditableChampBaseComponent
def legend_params def legend_params
@champ.description.present? ? { describedby: dom_id(@champ, :repetition) } : {} @champ.description.present? ? { describedby: dom_id(@champ, :repetition) } : {}

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::RepetitionRowComponent < ApplicationComponent class EditableChamp::RepetitionRowComponent < ApplicationComponent
def initialize(form:, dossier:, type_de_champ:, row_id:, row_number:, seen_at: nil) def initialize(form:, dossier:, type_de_champ:, row_id:, row_number:, seen_at: nil)
@form, @dossier, @type_de_champ, @row_id, @row_number, @seen_at = form, dossier, type_de_champ, row_id, row_number, seen_at @form, @dossier, @type_de_champ, @row_id, @row_number, @seen_at = form, dossier, type_de_champ, row_id, row_number, seen_at

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::RNAComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::RNAComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::RNFComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::RNFComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::SectionComponent < ApplicationComponent class EditableChamp::SectionComponent < ApplicationComponent
include ApplicationHelper include ApplicationHelper
include TreeableConcern include TreeableConcern

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::SiretComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::SiretComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::TextComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::TextComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::TextareaComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::TextareaComponent < EditableChamp::EditableChampBaseComponent
include HtmlToStringHelper include HtmlToStringHelper
def dsfr_input_classname def dsfr_input_classname

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname def dsfr_input_classname
'fr-input' 'fr-input'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class EditableChamp::YesNoComponent < EditableChamp::EditableChampBaseComponent class EditableChamp::YesNoComponent < EditableChamp::EditableChampBaseComponent
def dsfr_champ_container def dsfr_champ_container
:fieldset :fieldset

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
class ExpandableErrorList < ApplicationComponent class ExpandableErrorList < ApplicationComponent
def initialize(errors:) def initialize(errors:)
@errors = errors @errors = errors

Some files were not shown because too many files have changed in this diff Show more