card-mod-bar_and_box 0.15.0 → 0.15.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/bar_and_box.js.coffee +4 -6
- data/assets/style/bar.scss +11 -0
- data/assets/style/image_box.scss +1 -0
- data/data/files/mod_bar_and_box_script_asset_output/file.js +1 -1
- data/set/abstract/media/media_snippet.haml +1 -1
- data/set/all/bar_menu.haml +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 696c319da1df586be4b003d76c8ca62910b56ae4f584f2e9f47dea74f42d1693
|
4
|
+
data.tar.gz: 69487f2d6c1f5492ca5ef7f7d232eb39b9afcfa7523599dbb978bf32b3a44753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b5099a2338fa04c6f681a246c8b25538c3c434ff190ab7f6c83982668e5d83ec690da753caea70b379895958efcb760650fe220ec6a31c351c6ed572d4ad813
|
7
|
+
data.tar.gz: 2b2675a5a3c555c537fda3b9929ee426f85adeaf919197732c260ea1b065589d67799980d95471b0af8026cc5a8dd799876645962acb21af67302cc9f772f5be
|
@@ -6,17 +6,15 @@ $(window).ready ->
|
|
6
6
|
cl = $(this)
|
7
7
|
if cl.data("skip") == "on"
|
8
8
|
cl.data "skip", null
|
9
|
+
else if openInNewTab event
|
10
|
+
window.open cardLinkPath(cl), "_tab_" + Math.floor(Math.random() * 1000)
|
9
11
|
else if cl.closest("._card-link-modal")[0]
|
10
12
|
cl.find("._modal-page-link").trigger "click"
|
11
13
|
else
|
12
|
-
|
13
|
-
if openInNewTab event
|
14
|
-
window.open url, "_tab_" + Math.floor(Math.random() * 1000);
|
15
|
-
else
|
16
|
-
window.location = url
|
14
|
+
window.location = cardLinkPath(cl)
|
17
15
|
|
18
16
|
openInNewTab = (event) -> event.metaKey
|
19
|
-
|
17
|
+
cardLinkPath = (cl) -> decko.path(cl.data("cardLinkUrl") ||cl.data("cardLinkName"))
|
20
18
|
|
21
19
|
decko.slot.ready (slot)->
|
22
20
|
# note: by using slot ready, we can make sure this event is triggered early
|
data/assets/style/bar.scss
CHANGED
@@ -14,6 +14,16 @@ $bar_stripe_color: $dark !default;
|
|
14
14
|
border: 3px solid $primary !important;
|
15
15
|
}
|
16
16
|
|
17
|
+
.bar-accordion {
|
18
|
+
.accordion-body {
|
19
|
+
padding: 0;
|
20
|
+
.bar {
|
21
|
+
border-left: 1px solid $border-color !important;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
|
17
27
|
.bar {
|
18
28
|
border-left: 3px solid $bar_stripe_color !important;
|
19
29
|
|
@@ -46,6 +56,7 @@ $bar_stripe_color: $dark !default;
|
|
46
56
|
}
|
47
57
|
|
48
58
|
.bar-menu {
|
59
|
+
min-width: 3em;
|
49
60
|
width: 3em;
|
50
61
|
display: flex;
|
51
62
|
align-items: center;
|
data/assets/style/image_box.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
// bar_and_box.js.coffee
|
2
|
-
(function(){
|
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
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);
|
data/set/all/bar_menu.haml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
.bar-menu-button.btn.dropdown-toggle{ "aria-expanded": "false",
|
3
3
|
"aria-haspopup": "true",
|
4
4
|
"data-bs-toggle": "dropdown" }
|
5
|
-
|
5
|
+
= icon_tag :more
|
6
6
|
.bar-menu-list.dropdown-menu{ "aria-labelledby": ".bar-menu-button" }
|
7
7
|
- bar_menu_items.each do |item|
|
8
8
|
.dropdown-item
|
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.15.
|
4
|
+
version: 0.15.1.1
|
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: 2023-
|
13
|
+
date: 2023-03-29 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.105.
|
21
|
+
version: 1.105.1
|
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.105.
|
28
|
+
version: 1.105.1
|
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.15.
|
35
|
+
version: 0.15.1.1
|
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.15.
|
42
|
+
version: 0.15.1.1
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|