five-two-nw-olivander 0.2.0.23 → 0.2.0.25

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: c66521cd7f23c0bd1c3cf0fef06d4018167c89622f723f473089b8eaf7f6779e
4
+ data.tar.gz: df1d9a27819f1be84ffed038d81a3b5e009e7d807be15acca333383676657cfe
5
5
  SHA512:
6
- metadata.gz: b83fa3327c1e436a3e7266694604ae415df5e63afaa87ebd32d33e86f3366858b9c848b2952e15d457c109cc3d6099c8f769d71e261b66fa2b54c65752ff8c54
7
- data.tar.gz: 4f9f587b5eefd520da0d09672fea7244079f1042880cc8169c810d1af4177ed2a590ee9c07c141b7a265dec313feb763f45cc8a41aa5b8317c325041be2a57ed
6
+ metadata.gz: 9a91c57dea019abd31b73a54ab3f472d6f604c3898a10e06d9ad688c1152b69cdd6181a4eb3f18f944c010545389527b309d6bab348402e133684bb5b912b88e
7
+ data.tar.gz: 7cde1697865b6e7689b38528e60c78374ded9309b3fc36031427868b51c96dcafb32d644939c929f65fed12eb930d7e662a43a7d9f72c00fbd0b35e940e304a1
@@ -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_controller.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.25'.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.25
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