active_frontend 15.0.21 → 15.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/lib/active_frontend/version.rb +1 -1
- data/vendor/assets/javascripts/base/_affirm.js +3 -0
- data/vendor/assets/javascripts/base/_animation.js +1 -0
- data/vendor/assets/javascripts/base/_choicepicker.js +8 -0
- data/vendor/assets/javascripts/base/_colorpicker.js +4 -0
- data/vendor/assets/javascripts/base/_datepicker.js +4 -0
- data/vendor/assets/javascripts/base/_filepicker.js +5 -0
- data/vendor/assets/javascripts/base/_layout.js +4 -0
- data/vendor/assets/javascripts/base/_list.js +5 -0
- data/vendor/assets/javascripts/base/_selectpicker.js +9 -0
- data/vendor/assets/javascripts/base/_switch.js +2 -0
- data/vendor/assets/javascripts/base/_table.js +4 -0
- data/vendor/assets/javascripts/base/_tag.js +6 -1
- data/vendor/assets/javascripts/base/_timeago.js +1 -0
- data/vendor/assets/javascripts/base/_timepicker.js +4 -0
- data/vendor/assets/javascripts/base/_timezone.js +4 -0
- data/vendor/assets/javascripts/base/_tour.js +12 -0
- data/vendor/assets/stylesheets/components/_ad.scss +17 -0
- data/vendor/assets/stylesheets/components/_alert.scss +4 -1
- data/vendor/assets/stylesheets/components/_card.scss +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c657af3c5ff4db00085243da5e1f5a93ea3c5ab1f7b6b29e8a97ed43cf39795
|
4
|
+
data.tar.gz: f17454dc4f2891799af851a13cf853fb1970e8230c1960b710763dfca9dd18ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e84127a8de7c34420cc40671f3d18b985abcc735f39ac964007addb1c0cc328c609656a4aa78c7baa76c8e41e3ffffba0be176ecb8663a741d7556074115584
|
7
|
+
data.tar.gz: 6990170eca0438fa6299d6a466ddb7adb3f9f3797932862d2b10cf010031e99d45f0f5013fbf6de09effe3e695bc6d9f61f5aee7a7cd823fe835e95db8f3d0bd
|
data/.DS_Store
CHANGED
Binary file
|
@@ -54,6 +54,7 @@
|
|
54
54
|
e.preventDefault();
|
55
55
|
|
56
56
|
_self.displayFormat();
|
57
|
+
$.event.trigger('affirmOnDisplay');
|
57
58
|
_self.options.onDisplayCallback();
|
58
59
|
|
59
60
|
return false;
|
@@ -62,10 +63,12 @@
|
|
62
63
|
$('body')
|
63
64
|
.on('click', '[data-affirm-toggle="cancel"]', function () {
|
64
65
|
_self.cancelFormat();
|
66
|
+
$.event.trigger('affirmOnCancel');
|
65
67
|
_self.options.onCancelCallback();
|
66
68
|
})
|
67
69
|
.on('click', '[data-affirm-toggle="confirm"]', function () {
|
68
70
|
_self.confirmFormat();
|
71
|
+
$.event.trigger('affirmOnConfirm');
|
69
72
|
_self.options.onConfirmCallback();
|
70
73
|
});
|
71
74
|
};
|
@@ -176,6 +176,10 @@
|
|
176
176
|
if (selector) selector.prop('checked', checkAll.is(':checked'));
|
177
177
|
});
|
178
178
|
|
179
|
+
$.event.trigger({
|
180
|
+
type: 'choicepickerOnCheckAll',
|
181
|
+
value: checkAll.val()
|
182
|
+
});
|
179
183
|
_self.options.onCheckAllCallback(checkAll.val());
|
180
184
|
});
|
181
185
|
};
|
@@ -259,6 +263,10 @@
|
|
259
263
|
if (label == '[object Object]') return;
|
260
264
|
|
261
265
|
this.$element.val(label);
|
266
|
+
$.event.trigger({
|
267
|
+
type: 'choicepickerOnSetVal',
|
268
|
+
choice: label
|
269
|
+
});
|
262
270
|
this.options.onSetValCallback(label);
|
263
271
|
};
|
264
272
|
|
@@ -68,8 +68,13 @@
|
|
68
68
|
var files = _self.pushNameFiles();
|
69
69
|
|
70
70
|
if (files.length === 0) {
|
71
|
+
$.event.trigger('filepickerOnFilesDeSelectedCallback');
|
71
72
|
_self.options.onFilesDeselectedCallback();
|
72
73
|
} else {
|
74
|
+
$.event.trigger({
|
75
|
+
type: 'filepickerOnFilesSelectedCallback',
|
76
|
+
count: files.length
|
77
|
+
});
|
73
78
|
_self.options.onFilesSelectedCallback(files.length);
|
74
79
|
}
|
75
80
|
|
@@ -63,10 +63,15 @@
|
|
63
63
|
list.append(emptyLi);
|
64
64
|
}
|
65
65
|
|
66
|
+
$.event.trigger('listOnPlaceholderCallback');
|
66
67
|
_self.options.onPlaceholderCallback();
|
67
68
|
}
|
68
69
|
}
|
69
70
|
|
71
|
+
$.event.trigger({
|
72
|
+
type: 'listOnVisibleItemsCallback',
|
73
|
+
count: visible
|
74
|
+
});
|
70
75
|
_self.options.onVisibleItemsCallback(visible);
|
71
76
|
|
72
77
|
return false;
|
@@ -149,6 +149,10 @@
|
|
149
149
|
if (value == '[object Object]') return;
|
150
150
|
|
151
151
|
this.$element.val(value);
|
152
|
+
$.event.trigger({
|
153
|
+
type: 'selectpickerOnSetVal',
|
154
|
+
value: value
|
155
|
+
});
|
152
156
|
this.options.onSetValCallback(value);
|
153
157
|
|
154
158
|
if (this.$selected !== value.toString()) {
|
@@ -158,6 +162,11 @@
|
|
158
162
|
this.$container
|
159
163
|
.find("a[data-val='" + value + "']")
|
160
164
|
.addClass(this.options.optionSelectedClass);
|
165
|
+
$.event.trigger({
|
166
|
+
type: 'selectpickerOnChangeCallback',
|
167
|
+
old_value: this.$selected,
|
168
|
+
new_value: value
|
169
|
+
});
|
161
170
|
this.options.onChangeCallback(this.$selected, value);
|
162
171
|
}
|
163
172
|
};
|
@@ -80,6 +80,7 @@
|
|
80
80
|
|
81
81
|
if (!silent) this.trigger();
|
82
82
|
|
83
|
+
$.event.trigger('switchOnOn');
|
83
84
|
this.options.onOnCallback();
|
84
85
|
};
|
85
86
|
|
@@ -94,6 +95,7 @@
|
|
94
95
|
|
95
96
|
if (!silent) this.trigger();
|
96
97
|
|
98
|
+
$.event.trigger('switchOnOff');
|
97
99
|
this.options.onOffCallback();
|
98
100
|
};
|
99
101
|
|
@@ -33,7 +33,7 @@
|
|
33
33
|
itemValue: function(item) {
|
34
34
|
return item ? item.toString() : item;
|
35
35
|
},
|
36
|
-
onTagExists: function(item,
|
36
|
+
onTagExists: function(item, tag) {},
|
37
37
|
tagClass: function(item) {
|
38
38
|
return 'label label-color-primary label-color-tint label-outline';
|
39
39
|
},
|
@@ -118,6 +118,11 @@
|
|
118
118
|
return $(this).data('item') === existing;
|
119
119
|
});
|
120
120
|
|
121
|
+
$.event.trigger({
|
122
|
+
type: 'tagOnTagExists',
|
123
|
+
item: item,
|
124
|
+
tag: $existingTag
|
125
|
+
});
|
121
126
|
_self.options.onTagExists(item, $existingTag);
|
122
127
|
}
|
123
128
|
|
@@ -74,6 +74,10 @@
|
|
74
74
|
if (offset === 'undefined') return this.options.default;
|
75
75
|
|
76
76
|
var timezone = this.options.timezones[offset];
|
77
|
+
$.event.trigger({
|
78
|
+
type: 'timezoneOnGetTimezone',
|
79
|
+
timezone: timezone
|
80
|
+
});
|
77
81
|
this.options.onGetTimezoneCallback(timezone);
|
78
82
|
|
79
83
|
return timezone;
|
@@ -143,6 +143,10 @@
|
|
143
143
|
|
144
144
|
this.removeItems();
|
145
145
|
|
146
|
+
$.event.trigger({
|
147
|
+
type: 'tourOnShowCallback',
|
148
|
+
item: item
|
149
|
+
});
|
146
150
|
this.options.onShowCallback(item);
|
147
151
|
|
148
152
|
if (element.length !== 0 && element.is(':visible')) {
|
@@ -162,9 +166,17 @@
|
|
162
166
|
element.popover('show');
|
163
167
|
}, 225);
|
164
168
|
|
169
|
+
$.event.trigger({
|
170
|
+
type: 'tourOnShownCallback',
|
171
|
+
item: item
|
172
|
+
});
|
165
173
|
this.options.onShownCallback(item);
|
166
174
|
} else {
|
167
175
|
if (this.options.skip) this.nextItem();
|
176
|
+
$.event.trigger({
|
177
|
+
type: 'tourOnMissCallback',
|
178
|
+
item: item
|
179
|
+
});
|
168
180
|
this.options.onMissCallback(item);
|
169
181
|
}
|
170
182
|
};
|
@@ -2,6 +2,7 @@
|
|
2
2
|
// ==================================================
|
3
3
|
// Ad
|
4
4
|
// Sizes
|
5
|
+
// Media Queries
|
5
6
|
|
6
7
|
// Ad
|
7
8
|
// ==================================================
|
@@ -76,3 +77,19 @@
|
|
76
77
|
height: 200px;
|
77
78
|
width: 200px;
|
78
79
|
}
|
80
|
+
.ad-custom,
|
81
|
+
.ad-responsive {
|
82
|
+
height: 60px;
|
83
|
+
width: 100%;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Media Queries
|
87
|
+
// ==================================================
|
88
|
+
@media only screen and (max-width: 767px) {
|
89
|
+
.ad {
|
90
|
+
&.responsive {
|
91
|
+
height: 60px;
|
92
|
+
width: 100%;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.0.
|
4
|
+
version: 15.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -826,7 +826,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
826
826
|
version: '0'
|
827
827
|
requirements: []
|
828
828
|
rubyforge_project:
|
829
|
-
rubygems_version: 2.7.
|
829
|
+
rubygems_version: 2.7.3
|
830
830
|
signing_key:
|
831
831
|
specification_version: 4
|
832
832
|
summary: ActiveFrontend Responsive Web Framework
|