Merge pull request #9123 from tchak/update-coldwired-11
chore(coldwired): update to 0.11
This commit is contained in:
commit
5d245fee7d
12 changed files with 20 additions and 21 deletions
|
@ -73,7 +73,7 @@ class Attachment::EditComponent < ApplicationComponent
|
||||||
aria: { describedby: champ&.describedby_id },
|
aria: { describedby: champ&.describedby_id },
|
||||||
data: {
|
data: {
|
||||||
auto_attach_url:,
|
auto_attach_url:,
|
||||||
turbo_force: true
|
turbo_force: :server
|
||||||
}.merge(has_file_size_validator? ? { max_file_size: } : {})
|
}.merge(has_file_size_validator? ? { max_file_size: } : {})
|
||||||
.merge(user_can_replace? ? { replace_attachment_target: "input" } : {})
|
.merge(user_can_replace? ? { replace_attachment_target: "input" } : {})
|
||||||
}.merge(has_content_type_validator? ? { accept: accept_content_type } : {})
|
}.merge(has_content_type_validator? ? { accept: accept_content_type } : {})
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
= t('.action_choice')
|
= t('.action_choice')
|
||||||
- @api_token.allowed_procedures.each do |procedure|
|
- @api_token.allowed_procedures.each do |procedure|
|
||||||
= f.hidden_field :allowed_procedure_ids, value: procedure.id, multiple: true, id: dom_id(procedure, :allowed_procedure)
|
= f.hidden_field :allowed_procedure_ids, value: procedure.id, multiple: true, id: dom_id(procedure, :allowed_procedure)
|
||||||
.flex.justify-between.align-center{ 'data-turbo-force': true }
|
.flex.justify-between.align-center{ 'data-turbo-force': :server }
|
||||||
= f.select :allowed_procedure_ids, procedures_to_allow_options, {prompt: t('.prompt_choose_procedure')}, { class: 'no-margin width-66 small', name: "api_token[allowed_procedure_ids][]" }
|
= f.select :allowed_procedure_ids, procedures_to_allow_options, {prompt: t('.prompt_choose_procedure')}, { class: 'no-margin width-66 small', name: "api_token[allowed_procedure_ids][]" }
|
||||||
= f.button type: :submit, class: "fr-btn fr-btn--secondary" do
|
= f.button type: :submit, class: "fr-btn fr-btn--secondary" do
|
||||||
= t('.add')
|
= t('.add')
|
||||||
|
|
|
@ -36,7 +36,6 @@ export class TurboController extends ApplicationController {
|
||||||
element: document.body,
|
element: document.body,
|
||||||
schema: {
|
schema: {
|
||||||
forceAttribute: 'data-turbo-force',
|
forceAttribute: 'data-turbo-force',
|
||||||
permanentAttribute: 'data-turbo-permanent',
|
|
||||||
focusGroupAttribute: 'data-turbo-focus-group',
|
focusGroupAttribute: 'data-turbo-focus-group',
|
||||||
focusDirectionAttribute: 'data-turbo-focus-direction',
|
focusDirectionAttribute: 'data-turbo-focus-direction',
|
||||||
hiddenClassName: 'hidden'
|
hiddenClassName: 'hidden'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
= form_for procedure.administrateurs.new(user: User.new),
|
= form_for procedure.administrateurs.new(user: User.new),
|
||||||
url: { controller: 'procedure_administrateurs' },
|
url: { controller: 'procedure_administrateurs' },
|
||||||
html: { class: 'form', id: "new_administrateur" },
|
html: { class: 'form', id: "new_administrateur" },
|
||||||
data: { turbo: true, turbo_force: true } do |f|
|
data: { turbo: true, turbo_force: :server } do |f|
|
||||||
= f.label :email do
|
= f.label :email do
|
||||||
Ajouter un administrateur
|
Ajouter un administrateur
|
||||||
%p.notice Renseignez l’email d’un administrateur déjà enregistré sur #{APPLICATION_NAME} pour lui permettre de modifier « #{procedure.libelle} ».
|
%p.notice Renseignez l’email d’un administrateur déjà enregistré sur #{APPLICATION_NAME} pour lui permettre de modifier « #{procedure.libelle} ».
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
||||||
|
|
||||||
= f.label 'email', 'Recercher des administrateurs par email', class: 'fr-label'
|
= f.label 'email', 'Recercher des administrateurs par email', class: 'fr-label'
|
||||||
= f.search_field 'email', size: 40, class: 'fr-input', data: { turbo_force: true }
|
= f.search_field 'email', size: 40, class: 'fr-input', data: { turbo_force: :server }
|
||||||
.actions= link_to 'Voir la liste des démarches', all_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
.actions= link_to 'Voir la liste des démarches', all_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
||||||
.fr-table.fr-table--bordered
|
.fr-table.fr-table--bordered
|
||||||
%table#all-admins
|
%table#all-admins
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
= hidden_field_tag 'from_publication_date', @filter.from_publication_date if @filter.from_publication_date.present?
|
||||||
|
|
||||||
= f.label :libelle, 'Rechercher des démarches par libellé', class: 'fr-label'
|
= f.label :libelle, 'Rechercher des démarches par libellé', class: 'fr-label'
|
||||||
= f.search_field 'libelle', size: 30, class: 'fr-input', data: { turbo_force: true }
|
= f.search_field 'libelle', size: 30, class: 'fr-input', data: { turbo_force: :server }
|
||||||
.actions
|
.actions
|
||||||
.link.fr-mx-1w= link_to 'Voir les administrateurs', administrateurs_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
.link.fr-mx-1w= link_to 'Voir les administrateurs', administrateurs_admin_procedures_path(@filter.params), class: 'fr-btn fr-btn--secondary'
|
||||||
.link.fr-mx-1w{ "data-turbo": "false" }= link_to 'Exporter les résultats', all_admin_procedures_path(@filter.params.merge(format: :xlsx)), class: 'fr-btn fr-btn--secondary'
|
.link.fr-mx-1w{ "data-turbo": "false" }= link_to 'Exporter les résultats', all_admin_procedures_path(@filter.params.merge(format: :xlsx)), class: 'fr-btn fr-btn--secondary'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
%br
|
%br
|
||||||
= t('.fill_in_password')
|
= t('.fill_in_password')
|
||||||
|
|
||||||
= form_tag france_connect_particulier_merge_with_existing_account_path, data: { turbo: true, turbo_force: true }, class: 'mt-2 form fconnect-form' do
|
= form_tag france_connect_particulier_merge_with_existing_account_path, data: { turbo: true, turbo_force: :server }, class: 'mt-2 form fconnect-form' do
|
||||||
= hidden_field_tag :merge_token, merge_token
|
= hidden_field_tag :merge_token, merge_token
|
||||||
= hidden_field_tag :email, email
|
= hidden_field_tag :email, email
|
||||||
= label_tag :password, t('views.registrations.new.password_label', min_length: 8)
|
= label_tag :password, t('views.registrations.new.password_label', min_length: 8)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- if dossier.en_instruction?
|
- if dossier.en_instruction?
|
||||||
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: { data: {'turbo-force': true} }, button_options: { class: [button_or_label_class(dossier)]}, role: dossier.en_instruction? ? :region : :menu) do |menu|
|
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: { data: { turbo_force: :server } }, button_options: { class: [button_or_label_class(dossier)]}, role: dossier.en_instruction? ? :region : :menu) do |menu|
|
||||||
- menu.with_button_inner_html do
|
- menu.with_button_inner_html do
|
||||||
Instruire le dossier
|
Instruire le dossier
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
%p= t('views.invites.form.invite_to_edit_line1')
|
%p= t('views.invites.form.invite_to_edit_line1')
|
||||||
%p= t('views.invites.form.invite_to_edit_line2')
|
%p= t('views.invites.form.invite_to_edit_line2')
|
||||||
|
|
||||||
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: true }, method: :post, class: 'form' do
|
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: :server }, method: :post, class: 'form' do
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
%span
|
%span
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
Tags
|
Tags
|
||||||
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
.fr-ml-1w.hidden{ 'data-expand-target': 'content' }
|
||||||
%div
|
%div
|
||||||
= f.search_field :tags, placeholder: 'Choisissez un tag', list: 'tags_list', class: 'fr-input', data: { no_autosubmit: 'input', turbo_force: true }, multiple: true
|
= f.search_field :tags, placeholder: 'Choisissez un tag', list: 'tags_list', class: 'fr-input', data: { no_autosubmit: 'input', turbo_force: :server }, multiple: true
|
||||||
%datalist#tags_list
|
%datalist#tags_list
|
||||||
- Procedure.tags.each do |tag|
|
- Procedure.tags.each do |tag|
|
||||||
%option{ value: tag }
|
%option{ value: tag }
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@coldwired/actions": "^0.10.0",
|
"@coldwired/actions": "^0.11.0",
|
||||||
"@coldwired/turbo-stream": "^0.10.0",
|
"@coldwired/turbo-stream": "^0.11.0",
|
||||||
"@coldwired/utils": "^0.10.0",
|
"@coldwired/utils": "^0.10.0",
|
||||||
"@gouvfr/dsfr": "^1.7.2",
|
"@gouvfr/dsfr": "^1.7.2",
|
||||||
"@graphiql/plugin-explorer": "^0.1.15",
|
"@graphiql/plugin-explorer": "^0.1.15",
|
||||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -1150,21 +1150,21 @@
|
||||||
"@babel/helper-validator-identifier" "^7.19.1"
|
"@babel/helper-validator-identifier" "^7.19.1"
|
||||||
to-fast-properties "^2.0.0"
|
to-fast-properties "^2.0.0"
|
||||||
|
|
||||||
"@coldwired/actions@^0.10.0":
|
"@coldwired/actions@^0.11.0":
|
||||||
version "0.10.0"
|
version "0.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/@coldwired/actions/-/actions-0.10.0.tgz#8ce75a132e6ba7917337b4cc366ff59d725b4c75"
|
resolved "https://registry.yarnpkg.com/@coldwired/actions/-/actions-0.11.0.tgz#b50f833074ff4cd0b80afe022efb9c44b048b21a"
|
||||||
integrity sha512-EFXUnYRL2uWJe9LrBW5F6L874VX1aKrvKQ3uLTa7rmGmd91PksXzIY0ZDrBJ9pWAdQQywfiGxUkyerIDR4e4jg==
|
integrity sha512-IIF1fCCPWRywUfF1nG0QvOzjqKZWKBoniyS2qEJbejpE5FB17eohLIG4GZpkxFtzW+yb96ASRcqAFYcmMEjmYQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@coldwired/utils" "^0.10.0"
|
"@coldwired/utils" "^0.10.0"
|
||||||
morphdom "^2.7.0"
|
morphdom "^2.7.0"
|
||||||
tiny-invariant "^1.3.1"
|
tiny-invariant "^1.3.1"
|
||||||
|
|
||||||
"@coldwired/turbo-stream@^0.10.0":
|
"@coldwired/turbo-stream@^0.11.0":
|
||||||
version "0.10.0"
|
version "0.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/@coldwired/turbo-stream/-/turbo-stream-0.10.0.tgz#1e8fa6512691ec65c9f5152f62d5a1daef9b08c9"
|
resolved "https://registry.yarnpkg.com/@coldwired/turbo-stream/-/turbo-stream-0.11.0.tgz#fef5338cf95c5e331aa229c5edda92383bc6a05d"
|
||||||
integrity sha512-6WZ9DB2L/E8vBSWVbr//VMawQFU15cj1DBO8YY+ktcnUmRR90D6yy7yfq65g7xSd6qIOJo4sQ3vvCVr9U4enRw==
|
integrity sha512-Ty1xvjBzqp9dXZfibH6mYTgESmccxe6utG9wZbla+GcsibgCDJJ7NWQEs13RNUhVeCeSRyDL8Ho//UpwqFUEHg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@coldwired/actions" "^0.10.0"
|
"@coldwired/actions" "^0.11.0"
|
||||||
"@coldwired/utils" "^0.10.0"
|
"@coldwired/utils" "^0.10.0"
|
||||||
tiny-invariant "^1.3.1"
|
tiny-invariant "^1.3.1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue