card-mod-tabs 0.17.0 → 0.18.0

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: a8b1ce6ca206463efa9e033264cf8713d5e335d826fa73148f554c8fc8975b78
4
- data.tar.gz: 1e076dc4982a896873fe159a57c97d10b2f69da55d53f8740ac960b0ea40640d
3
+ metadata.gz: 93d5be3c1f6abe76e038831c99dbecb67877f0ec0ec2f4439db2dd5487b424d5
4
+ data.tar.gz: '0847f8484546aeedafc80fda2b626540ff8c6aee1e44a268bbc97f3d042bfe87'
5
5
  SHA512:
6
- metadata.gz: ebaa606beee901439298988631af2f9466025cb5993099cebd778e55a9b16a077af4eaa7d03a324216f6fcd44f16c115ffc51b9938d7d6877fb594ebf07190b6
7
- data.tar.gz: 4f886727eba261b5ea486387dcc5676cf9c836bb725823eb2065450eb2b7e55e3ea09e0df0d91039bd76f58ac609e5dd519443d4715a7d8679bff2ee08b091de
6
+ metadata.gz: b822d3cc0c922d82417cbf0525132deb131f76511ae7c63357d5282e27bfb52ea91c485edc91f128ecd03939bbad4443b61ec31004f89f504407550de9457f56
7
+ data.tar.gz: a945de20c3d03fc23fd2e6037e6d8209e29582b434964ef92c6710fe1ed8ce0bbdd496f290aa71bab5122f1d6d2bdbba3e4137a0add2cb8c88d824374b7ee225
@@ -1,12 +1,18 @@
1
1
  $(window).ready ->
2
2
  $('body').on 'show.bs.tab', 'a.load[data-bs-toggle="tab"][data-url]', (e) ->
3
- tab_id = $(e.target).attr('href')
4
- url = $(e.target).data('url')
3
+ targ = $(e.target)
4
+ tab_id = targ.attr "href"
5
+ url = targ.data "url"
5
6
  tabname = $(this).data "tabName"
6
- $(e.target).removeClass('load')
7
+ targ.removeClass "load"
8
+ tab_content = $(tab_id)
9
+ # tab_content.slotReloading()
10
+
7
11
  $.ajax
8
12
  url: url
9
13
  success: (html) ->
10
- $(tab_id).append(html)
14
+ tab_content.append(html)
11
15
  window.history.pushState("tab", "", "?tab=" + tabname)
12
- decko.contentLoaded $(tab_id), $(this)
16
+ decko.contentLoaded tab_content, $(this)
17
+ # complete: ()->
18
+ # tab_content.slotLoadingComplete()
@@ -1,2 +1,2 @@
1
1
  // tab.js.coffee
2
- (function(){$(window).ready(function(){return $("body").on("show.bs.tab",'a.load[data-bs-toggle="tab"][data-url]',function(t){var a,e,r;return a=$(t.target).attr("href"),r=$(t.target).data("url"),e=$(this).data("tabName"),$(t.target).removeClass("load"),$.ajax({url:r,success:function(t){return $(a).append(t),window.history.pushState("tab","","?tab="+e),decko.contentLoaded($(a),$(this))}})})})}).call(this);
2
+ (function(){$(window).ready(function(){return $("body").on("show.bs.tab",'a.load[data-bs-toggle="tab"][data-url]',function(t){var a,n,o,e,r;return n=(e=$(t.target)).attr("href"),r=e.data("url"),o=$(this).data("tabName"),e.removeClass("load"),a=$(n),$.ajax({url:r,success:function(t){return a.append(t),window.history.pushState("tab","","?tab="+o),decko.contentLoaded(a,$(this))}})})})}).call(this);
data/set/abstract/tabs.rb CHANGED
@@ -55,7 +55,7 @@ format :html do
55
55
 
56
56
  def tab_title_from_map tab_key, opts
57
57
  opts ||= {}
58
- if Codename.exists? tab_key
58
+ if Codename.exist? tab_key
59
59
  tab_title_from_fieldcode tab_key, opts
60
60
  else
61
61
  label = opts[:label] || tab_key
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-tabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-06-12 00:00:00.000000000 Z
13
+ date: 2024-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.107.0
21
+ version: 1.108.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.107.0
28
+ version: 1.108.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-bootstrap
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.17.0
35
+ version: 0.18.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.17.0
42
+ version: 0.18.0
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org
@@ -59,7 +59,7 @@ files:
59
59
  - set/all/tabs/tab_panel.haml
60
60
  homepage: https://decko.org
61
61
  licenses:
62
- - GPL-3.0
62
+ - GPL-3.0-or-later
63
63
  metadata:
64
64
  source_code_uri: https://github.com/decko-commons/decko
65
65
  homepage_uri: https://decko.org
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.5.10
86
+ rubygems_version: 3.5.7
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: tabs