formstrap 0.3.5 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,6 @@
5
5
  @import "formstrap/vendor/flatpickr";
6
6
 
7
7
  // Redactor
8
- @import "formstrap/vendor/redactor";
9
8
  @import "formstrap/vendor/overrides/redactor";
10
9
 
11
10
  // Formstrap
@@ -106,8 +106,9 @@
106
106
  class="btn btn-sm btn-outline-secondary"
107
107
  data-repeater-target="addButton"
108
108
  data-popup-target="button"
109
- data-popup-id="<%= "repeater-buttons-#{repeater_id}" %>"
109
+ data-popup-id="repeater-buttons-<%= repeater_id %>"
110
110
  data-popup-pass-thru="<%= pass_thru %>"
111
+ data-row-index=""
111
112
  data-action="click->repeater#resetButtonIndices click->popup#open"
112
113
  >
113
114
  <%= bootstrap_icon("plus") %>
@@ -121,7 +122,7 @@
121
122
  <div
122
123
  class="btn btn-sm btn-outline-secondary"
123
124
  data-popup-target="button"
124
- data-popup-id="<%= "repeater-buttons-#{repeater_id}" %>"
125
+ data-popup-id="repeater-buttons-<%= repeater_id %>"
125
126
  data-action="click->repeater#addRow click->popup#close"
126
127
  data-row-index=""
127
128
  data-template-name="<%= name %>"
@@ -135,7 +136,7 @@
135
136
  <!-- Templates -->
136
137
  <% template_names.each do |template_name| %>
137
138
  <template data-repeater-target="template" data-template-name="<%= template_name %>">
138
- <%= form.fields_for attribute, association_object, child_index: "rrrrrrrrr" do |ff| %>
139
+ <%= form.fields_for attribute, association_object, child_index: "_#{repeater_id}_" do |ff| %>
139
140
  <%= render "formstrap/repeater/row", row_options.merge(form: ff, pass_thru: pass_thru, repeater_id: repeater_id, index: nil, template_name: template_name) do %>
140
141
  <%= yield(ff, template_name) %>
141
142
  <% end %>
@@ -41,7 +41,7 @@
41
41
  title="<%= t(".add") %>"
42
42
  data-repeater-target="addButton"
43
43
  data-popup-target="button"
44
- data-popup-id="<%= "repeater-buttons-#{repeater_id}" %>"
44
+ data-popup-id="repeater-buttons-<%= repeater_id %>"
45
45
  data-popup-pass-thru="<%= pass_thru %>"
46
46
  data-action="click->repeater#resetButtonIndices click->popup#open"
47
47
  >
data/esbuild-js.js CHANGED
@@ -7,5 +7,6 @@ esbuild.build({
7
7
  bundle: true,
8
8
  allowOverwrite: true,
9
9
  format: 'esm',
10
+ external: ['redactor'],
10
11
  watch
11
12
  }).catch((e) => console.error(e.message))
@@ -16,12 +16,5 @@ module Formstrap
16
16
  next unless app.config.respond_to?(:assets)
17
17
  app.config.assets.precompile += %w[formstrap.js formstrap.css formstrap.scss]
18
18
  end
19
-
20
- # Add importmap to main app
21
- initializer "headmin.importmap", before: "importmap" do |app|
22
- next unless app.config.respond_to?(:importmap)
23
- app.config.importmap.paths << Engine.root.join("config/importmap.rb")
24
- app.config.importmap.cache_sweepers << Engine.root.join("app/assets/javascripts")
25
- end
26
19
  end
27
20
  end
@@ -1,3 +1,3 @@
1
1
  module Formstrap
2
- VERSION = "0.3.5"
2
+ VERSION = "0.4.1"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontierdotbe/formstrap",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "Bootstrap-powered Form Helpers",
5
5
  "module": "app/assets/javascripts/formstrap.js",
6
6
  "main": "app/assets/javascripts/formstrap.js",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jef Vlamings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An extensive Bootstrap form library to power your Ruby On Rails application.
14
14
  email:
@@ -77,7 +77,6 @@ files:
77
77
  - app/assets/stylesheets/formstrap/utilities/dropzone.scss
78
78
  - app/assets/stylesheets/formstrap/vendor/flatpickr.css
79
79
  - app/assets/stylesheets/formstrap/vendor/overrides/redactor.scss
80
- - app/assets/stylesheets/formstrap/vendor/redactor.css
81
80
  - app/assets/stylesheets/formstrap/vendor/tom-select-bootstrap.scss
82
81
  - app/controllers/concerns/formstrap/pagination.rb
83
82
  - app/controllers/formstrap/media_controller.rb
@@ -175,7 +174,6 @@ files:
175
174
  - app/views/formstrap/shared/_thumbnail.html.erb
176
175
  - bin/console
177
176
  - bin/setup
178
- - config/importmap.rb
179
177
  - config/locales/de.yml
180
178
  - config/locales/en.yml
181
179
  - config/locales/formstrap/de.yml