wcc-styles 2.0.1 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/javascripts/wcc/styles/tessa.coffee +1 -2
- data/lib/assets/javascripts/wcc/styles/wcc.datetimepicker.js +26 -21
- data/lib/assets/stylesheets/wcc/styles/setup/_mixins.scss +5 -0
- data/lib/assets/stylesheets/wcc/styles/snippets/_buttons.scss +1 -6
- data/lib/assets/stylesheets/wcc/styles/snippets/_navs.scss +1 -1
- data/lib/wcc/styles/version.rb +1 -1
- metadata +2 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19e5632a7a117a17a3d1489a87d9b1d2045e777f
|
4
|
+
data.tar.gz: bdbd1db840d71ed74dbd94a92079defd8c0526a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d060234576f2e73dc87b8399a25529802f6f33925fa5787b81eaa2baabeb36c0da0be7f3eaacb69cf48e7041d06005c94a4100bbe80a094705403fe5d4087d4
|
7
|
+
data.tar.gz: 2e461a6b29c66e20dd78f35040791fc353fb7d3371189dd711284cebd8d05171e3caedbc124e5b16dc0cb3a90d223a6aaa2b715f7e5a02220c3dac6ecb01fc60
|
@@ -72,10 +72,9 @@ class window.WCC.Dropzone extends Dropzone
|
|
72
72
|
|
73
73
|
headers =
|
74
74
|
"Accept": "application/json",
|
75
|
-
"Cache-Control": "no-cache",
|
76
75
|
"X-Requested-With": "XMLHttpRequest",
|
77
76
|
|
78
|
-
extend headers, @options.headers if @options.headers
|
77
|
+
$.extend headers, @options.headers if @options.headers
|
79
78
|
|
80
79
|
xhr.setRequestHeader headerName, headerValue for headerName, headerValue of headers
|
81
80
|
|
@@ -25,28 +25,33 @@ WCC.datetimepicker = (function() {
|
|
25
25
|
timezone: "America/Chicago"
|
26
26
|
};
|
27
27
|
|
28
|
+
dtp.initializeAll = function($, selector) {
|
29
|
+
selector = selector ? selector : "[data-datetimepicker]";
|
30
|
+
$(selector).each(function(i, item) {
|
31
|
+
var $item = $(item);
|
32
|
+
var $input = $($item.data('datetimepicker'));
|
33
|
+
var options = $item.data('datetimepicker-options');
|
34
|
+
|
35
|
+
item.config = $.extend({}, WCC.datetimepicker.defaultConfig, options);
|
36
|
+
$item.datetimepicker(item.config);
|
37
|
+
|
38
|
+
if (!$input.length) return;
|
39
|
+
|
40
|
+
$item
|
41
|
+
.off('change.datetimepicker')
|
42
|
+
.on('change.datetimepicker', function(event) {
|
43
|
+
var time = moment.tz(this.value, this.config.format, this.config.timezone);
|
44
|
+
if (time.isValid()) {
|
45
|
+
$input.val(time.toISOString());
|
46
|
+
} else {
|
47
|
+
$input.val('');
|
48
|
+
}
|
49
|
+
});
|
50
|
+
});
|
51
|
+
};
|
52
|
+
|
28
53
|
return dtp;
|
29
54
|
}());
|
30
55
|
|
31
|
-
$(
|
32
|
-
$("[data-datetimepicker]").each(function(i, item) {
|
33
|
-
var $item = $(item);
|
34
|
-
var $input = $($item.data('datetimepicker'));
|
35
|
-
var options = $item.data('datetimepicker-options');
|
36
|
-
|
37
|
-
item.config = $.extend({}, WCC.datetimepicker.defaultConfig, options);
|
38
|
-
$item.datetimepicker(item.config);
|
39
|
-
|
40
|
-
if (!$input.length) return;
|
41
|
-
|
42
|
-
$item.on('change', function(event) {
|
43
|
-
var time = moment.tz(this.value, this.config.format, this.config.timezone);
|
44
|
-
if (time.isValid()) {
|
45
|
-
$input.val(time.toISOString());
|
46
|
-
} else {
|
47
|
-
$input.val('');
|
48
|
-
}
|
49
|
-
});
|
50
|
-
});
|
51
|
-
});
|
56
|
+
$(WCC.datetimepicker.initializeAll);
|
52
57
|
|
@@ -43,17 +43,12 @@
|
|
43
43
|
|
44
44
|
&.danger {
|
45
45
|
@include button-theme($red);
|
46
|
-
|
47
|
-
&.ghost {
|
48
|
-
background-color: transparent;
|
49
|
-
border: 2px solid $red;
|
50
|
-
color: $red;
|
51
|
-
}
|
52
46
|
}
|
53
47
|
|
54
48
|
&.disabled {
|
55
49
|
@include button-theme($light-grey);
|
56
50
|
color: $medium-grey;
|
51
|
+
cursor: inherit;
|
57
52
|
}
|
58
53
|
|
59
54
|
&.ghost {
|
@@ -34,6 +34,7 @@ ul.nav {
|
|
34
34
|
&.tabs,
|
35
35
|
&.nav-tabs {
|
36
36
|
border-bottom: 1px solid #ddd;
|
37
|
+
width: 100%;
|
37
38
|
|
38
39
|
> li {
|
39
40
|
float: left;
|
@@ -66,7 +67,6 @@ ul.nav {
|
|
66
67
|
// Justified Tabs
|
67
68
|
&.justified,
|
68
69
|
&.nav-justified {
|
69
|
-
width: 100%;
|
70
70
|
border-bottom: 0;
|
71
71
|
|
72
72
|
> li {
|
data/lib/wcc/styles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-styles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Community Church
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|
@@ -52,76 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '4.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rails-assets-selectize
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rails-assets-dropzone
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rails-assets-moment
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rails-assets-moment-timezone
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rails-assets-datetimepicker
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - '='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 2.4.5
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 2.4.5
|
125
55
|
description: Check out the Watermark Patterns library at https://patterns.watermark.org/
|
126
56
|
email:
|
127
57
|
- dev@watermark.org
|