five-two-nw-olivander 0.2.0.23 → 0.2.0.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d0296c18b05b98a8346e7c04c1dbfc31b449ad9bd3328103f3fedbb0be36e29
4
- data.tar.gz: c54615ded2e32f20658347245f453922abd816812867a74861f929387380a5eb
3
+ metadata.gz: 9c368febf0214492611afc69e3c6411448392438e2873d8892662cd41c4eac6d
4
+ data.tar.gz: 0c371dcac2dee3bec40de9f173a43ce1712e0f85b89d25fa857e6bf567222ae0
5
5
  SHA512:
6
- metadata.gz: b83fa3327c1e436a3e7266694604ae415df5e63afaa87ebd32d33e86f3366858b9c848b2952e15d457c109cc3d6099c8f769d71e261b66fa2b54c65752ff8c54
7
- data.tar.gz: 4f9f587b5eefd520da0d09672fea7244079f1042880cc8169c810d1af4177ed2a590ee9c07c141b7a265dec313feb763f45cc8a41aa5b8317c325041be2a57ed
6
+ metadata.gz: f1ee2c1f994e25539abe0d5d66713e130825fea5deede854ebad41d5355699f90ad706b32226ea2940d42036837f3d98df874d7ab30d4557e842e6bfe54393e5
7
+ data.tar.gz: 7bbb1b4c278bdb17f0a8b005eced9bfb03b281abf7dd26d7f3d6da843338860894066fa39e261df47b5a6a68194e7efd949cff83c3fd0c84659ffe3b7635894a
@@ -0,0 +1,14 @@
1
+ import { Controller } from "@hotwired/stimulus"
2
+
3
+ // Connects to data-controller="auto-select2"
4
+ export default class extends Controller {
5
+ connect() {
6
+ var self = this,
7
+ el = self.element
8
+ $(el).select2({
9
+ dropdownParent: $(el).parent(),
10
+ minimumInputLength: el.dataset.minimumInputLength || 0,
11
+ placeholder: el.dataset.placeholder || 'Select...'
12
+ })
13
+ }
14
+ }
@@ -61,7 +61,6 @@ module Olivander
61
61
  end
62
62
 
63
63
  datatable do
64
- puts "firing datatable do block"
65
64
  order(order_by[0], order_by[1]) if order_by.size == 2
66
65
  # bulk_actions_col if datatable._bulk_actions.size.positive?
67
66
 
@@ -4,7 +4,9 @@ module Olivander
4
4
 
5
5
  initializer "olivander.assets.precompile" do |app|
6
6
  app.config.assets.precompile += %w[
7
- adminlte.js datatable_index_charts_controller.js
7
+ adminlte.js
8
+ auto_select2.js
9
+ datatable_index_charts_controller.js
8
10
  datatable_expandable_chart_controller.js
9
11
  turbo_flash_controller.js
10
12
  modal_controller.js
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = '0.2.0.23'.freeze
2
+ VERSION = '0.2.0.24'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.23
4
+ version: 0.2.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick
@@ -212,6 +212,7 @@ files:
212
212
  - app/assets/javascripts/adminlte/plugins/toastr/toastr.min.css
213
213
  - app/assets/javascripts/adminlte/plugins/toastr/toastr.min.js
214
214
  - app/assets/javascripts/adminlte/select2_defaults.coffee
215
+ - app/assets/javascripts/controllers/auto_select2_controller.js
215
216
  - app/assets/javascripts/controllers/datatable_expandable_chart_controller.js
216
217
  - app/assets/javascripts/controllers/datatable_index_charts_controller.js
217
218
  - app/assets/javascripts/controllers/input_control_association_controller.js