katalyst-tables 2.2.7 → 2.2.9

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: 25c7348eb8542d2810e9448b6d966a21968e5906d9f520770687fce182455042
4
- data.tar.gz: 1dffc5490373097ec0f03251e941336cf4cf06a5ae9542d8beae5fa6c33c4e32
3
+ metadata.gz: baf08d43e92a19b9ada1834020d34cffd41eae9c2621ecf8c5d2909186c180f2
4
+ data.tar.gz: ea9f5d9a8acbe840c03096e38eef0b6cd2ee6d71fdc95d18e1ac0908883347fd
5
5
  SHA512:
6
- metadata.gz: 590ac1fd488278be25b6d6bc9cfcfa6b7d417d7390ca9a6c45fe3792f36c0c7b011662bc106b15972e100a528f36b3794704d33042f5efba89fd997e99d53386
7
- data.tar.gz: 4051cacd2816958fe46b0c7d511b24f8a6d5ce3110cef45ba755953063ebdc05f3a36f99c2c514cf53f68703166e9bf0d9f6f4bae8360e7173f3044162bd9db9
6
+ metadata.gz: 922f28f297e834b1584275236524de22dbc94e56850fb575557ffcc7ad8061242fc96886bf128e55681f2b7f664c44c0aac8fe9adfeb26e043adba14f20b78c4
7
+ data.tar.gz: 0f3bcaed4e1c140fe2f3707df1979535ba2f394c0e0986b3e6320c194589daeb019397574c5d6eb0092955e95e1bb5f86e67b1f445df87f4daae1bb07cc4dc04
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus";
2
- import { Turbo } from "@hotwired/turbo";
2
+ import { Turbo } from "@hotwired/turbo-rails";
3
3
 
4
4
  export default class TurboCollectionController extends Controller {
5
5
  static values = {
@@ -16,6 +16,11 @@ module Katalyst
16
16
 
17
17
  class_methods do
18
18
  delegate :use, :insert, to: :reducers
19
+
20
+ def inherited(subclass)
21
+ super
22
+ subclass.reducers = reducers.dup
23
+ end
19
24
  end
20
25
 
21
26
  class Stack # :nodoc:
@@ -23,6 +28,10 @@ module Katalyst
23
28
  @stack = []
24
29
  end
25
30
 
31
+ def initialize_dup(other)
32
+ @stack = other.instance_variable_get(:@stack).dup
33
+ end
34
+
26
35
  def use(klass)
27
36
  @stack << Reducer.new(klass) unless index(klass)
28
37
  end
data/config/importmap.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
4
- pin "@hotwired/turbo", to: "turbo.min.js", preload: true
5
-
6
3
  pin_all_from Katalyst::Tables::Engine.root.join("app/assets/javascripts"),
7
4
  # preload in tests so that we don't start clicking before controllers load
8
5
  preload: Rails.env.test?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Katalyst
4
4
  module Tables
5
- VERSION = "2.2.7"
5
+ VERSION = "2.2.9"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-03 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils