card-mod-bar_and_box 0.15.0 → 0.15.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: d9400c0c6f38327f88bab979f8c06d29c4efe149258d33184df1baf071374ff6
|
4
|
+
data.tar.gz: 86694f07f1d3a00b58502a28753cd73e3f0ed87d2d9ed5057325bab2865c237a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2d00c0307d14a7bfebc6093757aa58142155943d7eb1b6f2f1b4dbc28dc4e5a0a07a3ab7ae29e423b8e2c22dd9a1c0d5e46a10a3a29dee203b422f195039934
|
7
|
+
data.tar.gz: 96306c241ae3f72e8fac25f0398b4bd0716d8d0749ab372ada59861874f3bb284dc578566cd46d26c486fcd62b767e4951d32e212254817b50f7c8b507754ad0
|
@@ -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
|
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
|
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
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|