card-mod-bar_and_box 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/click_select.js.coffee +9 -8
- data/config/admin.yml +8 -0
- data/data/files/mod_bar_and_box_script_asset_output/file.js +1 -1
- data/set/all/bar.rb +7 -5
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 636fadbb9bbe3602992ed6066c6fcab12d57edf178bac8c460b159f3a7abdb3d
|
4
|
+
data.tar.gz: f651af530fb42581530e5fcee9071ad75e3f3f18521b24c2cd6dfbbca1d1d252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf405d9341c1bf03478acbd6bfb62d9f509bf9c1e6ed7bb7df8a0cb71a9155f763624179626b5720a8245c2e55396754487d0ec380e59821c5c4799b91252c46
|
7
|
+
data.tar.gz: bfc0790319ccb91fdd96c7ee2eedf07580cd560ad4d950aff86fa447413dea678af1390301482cdd2c0069fe5e46bb2470450cb7d466f5c6df4bb68cf33ec258
|
@@ -1,12 +1,13 @@
|
|
1
1
|
# TODO: move to list mod when possible
|
2
2
|
# (currently not because list mod comes before jquery)
|
3
3
|
|
4
|
-
$(
|
5
|
-
$(
|
6
|
-
|
4
|
+
$(window).ready ->
|
5
|
+
$("body").on "click", "._click-multiselect-editor ._select-item", (event) ->
|
6
|
+
$(this).closest("._select-item").toggleClass("selected")
|
7
|
+
event.stopPropagation()
|
7
8
|
|
8
|
-
$("body").on "click", "._click-select-editor ._select-item", (event) ->
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
$("body").on "click", "._click-select-editor ._select-item", (event) ->
|
10
|
+
selectEditor = $(this).closest("._click-select-editor")
|
11
|
+
selectEditor.find(".selected").removeClass("selected")
|
12
|
+
$(this).closest("._select-item").addClass("selected")
|
13
|
+
event.stopPropagation()
|
data/config/admin.yml
ADDED
@@ -1,4 +1,4 @@
|
|
1
1
|
// bar_and_box.js.coffee
|
2
2
|
(function(){var n,a;$(window).ready(function(){return $(document).on("click","._card-link",function(i){var r;return"on"===(r=$(this)).data("skip")?r.data("skip",null):a(i)?window.open(n(r),"_tab_"+Math.floor(1e3*Math.random())):r.closest("._card-link-modal")[0]?r.find("._modal-page-link").trigger("click"):window.location=n(r)})}),a=function(n){return n.metaKey},n=function(n){return decko.path(n.data("cardLinkUrl")||n.data("cardLinkName"))},decko.slot.ready(function(n){return n.find("._card-link a, ._card-link ._card-link-clickable").on("click",function(n){var a;return(a=$(this)).hasClass("_over-card-link")||a.closest("._over-card-link")[0]?a.closest("._card-link").data("skip","on"):n.preventDefault()})})}).call(this);
|
3
3
|
// click_select.js.coffee
|
4
|
-
(function(){$("body").on("click","._click-multiselect-editor ._select-item",function(e){return $(this).closest("._select-item").toggleClass("selected"),e.stopPropagation()}),$("body").on("click","._click-select-editor ._select-item",function(e){return $(this).closest("._click-select-editor").find(".selected").removeClass("selected"),$(this).closest("._select-item").addClass("selected"),e.stopPropagation()})}).call(this);
|
4
|
+
(function(){$(window).ready(function(){return $("body").on("click","._click-multiselect-editor ._select-item",function(e){return $(this).closest("._select-item").toggleClass("selected"),e.stopPropagation()}),$("body").on("click","._click-select-editor ._select-item",function(e){return $(this).closest("._click-select-editor").find(".selected").removeClass("selected"),$(this).closest("._select-item").addClass("selected"),e.stopPropagation()})})}).call(this);
|
data/set/all/bar.rb
CHANGED
@@ -43,11 +43,13 @@ format :html do
|
|
43
43
|
def build_accordion_bar open: false
|
44
44
|
prepare_bar mini_bar_cols
|
45
45
|
class_up "accordion-item", "bar #{classy 'bar'}"
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
wrap do
|
47
|
+
accordion_item render_bar_body,
|
48
|
+
subheader: render_menu,
|
49
|
+
body: render_bar_bottom,
|
50
|
+
open: open,
|
51
|
+
context: :accordion_bar
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
55
|
def build_bar
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-bar_and_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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:
|
13
|
+
date: 2024-06-12 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.
|
21
|
+
version: 1.107.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.
|
28
|
+
version: 1.107.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-style
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.17.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.
|
42
|
+
version: 0.17.0
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- assets/style/bar.scss
|
55
55
|
- assets/style/box.scss
|
56
56
|
- assets/style/image_box.scss
|
57
|
+
- config/admin.yml
|
57
58
|
- data/files/mod_bar_and_box_script_asset_output/file.js
|
58
59
|
- set/abstract/media.rb
|
59
60
|
- set/abstract/media/media_snippet.haml
|
@@ -83,14 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
84
|
requirements:
|
84
85
|
- - ">="
|
85
86
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
87
|
+
version: '3.0'
|
87
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
89
|
requirements:
|
89
90
|
- - ">="
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '0'
|
92
93
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.5.10
|
94
95
|
signing_key:
|
95
96
|
specification_version: 4
|
96
97
|
summary: bar and box views
|