esphinx-rails-ui 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/esphinx_ui.gemspec +3 -3
- data/lib/assets/javascripts/esphinx/ui/handlers/tabs.js +1 -1
- data/lib/assets/javascripts/esphinx/ui/handlers/tooltip.js +1 -1
- data/lib/assets/javascripts/esphinx/ui/panels/autocomplete.js +9 -10
- data/lib/assets/javascripts/esphinx/ui/panels/modal.js +11 -11
- data/lib/assets/javascripts/esphinx/ui/selectors/select.js +2 -2
- data/lib/assets/stylesheets/esphinx/ui/mixins.sass +0 -0
- data/lib/esphinx/rails/ui/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cab5a44606da4bf91daaf426afd204b7a64b584
|
4
|
+
data.tar.gz: f43805e4bb37df2f554985af6746c27f8ed838ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd0f1886be96ced53ad906470440ff62f934832309510c1fdd7f02bdd2a801d713ea196f2461bacf13ac48ec9a00254e3cd1b63fcf95f3ff9693158207b28b2
|
7
|
+
data.tar.gz: 2ab633b5c5eb206571c455da812d9e7003b1e6b7bb2ab2dffb4a386c759c238c1176b403471becbe91362d554021ef5534d139ce10afe0abad4e873fce119508
|
data/esphinx_ui.gemspec
CHANGED
@@ -8,13 +8,13 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Home Labs"]
|
9
9
|
spec.email = ["home-labs@outlook.com"]
|
10
10
|
spec.homepage = "https://rubygemspec.org/gems/esphinx-rails-ui"
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
11
|
+
spec.summary = "Summary of ESphinx UI."
|
12
|
+
spec.description = "User Interface plugin for ESphinx."
|
13
13
|
spec.license = "MIT"
|
14
14
|
spec.test_files = Dir["test/**/*"]
|
15
15
|
|
16
16
|
spec.files = Dir["{bin,config,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "esphinx_ui.gemspec"]
|
17
|
-
spec.require_paths = %w{lib vendor}
|
17
|
+
spec.require_paths = %w{config lib vendor}
|
18
18
|
|
19
19
|
# this is just for solve compatibility, but not to install gem
|
20
20
|
spec.add_dependency 'basicss-rails', '~> 1'
|
@@ -25,7 +25,7 @@ var
|
|
25
25
|
self = this,
|
26
26
|
created = false,
|
27
27
|
|
28
|
-
|
28
|
+
iteratorBlock = function(i) {
|
29
29
|
spanizedSliceFound = $(mapped[i].span());
|
30
30
|
spanizedSliceFound.addClass(CSS_CLASS + " slice-found");
|
31
31
|
|
@@ -35,7 +35,7 @@ var
|
|
35
35
|
spanize = function(map) {
|
36
36
|
mapped = map;
|
37
37
|
|
38
|
-
Object.keys(map).forEach(
|
38
|
+
Object.keys(map).forEach(iteratorBlock);
|
39
39
|
|
40
40
|
return map;
|
41
41
|
},
|
@@ -49,7 +49,7 @@ var
|
|
49
49
|
span,
|
50
50
|
composedArr = [],
|
51
51
|
|
52
|
-
|
52
|
+
iteratorBlock = function(value, i) {
|
53
53
|
if (mapped.hasOwnProperty(i)) {
|
54
54
|
span = mapped[i];
|
55
55
|
sliceFound = span.text();
|
@@ -59,7 +59,7 @@ var
|
|
59
59
|
.slice(searchIndex + sliceFound.length,
|
60
60
|
value.length);
|
61
61
|
|
62
|
-
if (
|
62
|
+
if (leftUnitName.filled()) {
|
63
63
|
composedArr.push(window.document
|
64
64
|
.createTextNode(leftUnitName));
|
65
65
|
} else {
|
@@ -68,7 +68,7 @@ var
|
|
68
68
|
|
69
69
|
composedArr.push(span.asNode());
|
70
70
|
|
71
|
-
if (
|
71
|
+
if (rightUnitName.filled()) {
|
72
72
|
composedArr.push(window.document
|
73
73
|
.createTextNode(rightUnitName));
|
74
74
|
}
|
@@ -79,7 +79,7 @@ var
|
|
79
79
|
|
80
80
|
};
|
81
81
|
|
82
|
-
nodeTextAsArr.spaceOut().forEach(
|
82
|
+
nodeTextAsArr.spaceOut().forEach(iteratorBlock);
|
83
83
|
|
84
84
|
return composedArr;
|
85
85
|
},
|
@@ -110,11 +110,11 @@ var
|
|
110
110
|
var
|
111
111
|
copy = $(node).clone(),
|
112
112
|
|
113
|
-
|
113
|
+
iteratorBlock = function(v) {
|
114
114
|
copy.append(v);
|
115
115
|
};
|
116
116
|
|
117
|
-
composedArr.forEach(
|
117
|
+
composedArr.forEach(iteratorBlock);
|
118
118
|
|
119
119
|
return copy;
|
120
120
|
},
|
@@ -155,7 +155,6 @@ var
|
|
155
155
|
var
|
156
156
|
target = $(e.target);
|
157
157
|
|
158
|
-
// debugger
|
159
158
|
if (!target.isA(window.HTMLInputElement) &&
|
160
159
|
!target.isA(window.HTMLLIElement)) {
|
161
160
|
target = target.parent("ol" + CSS_CLASS_QUERY +
|
@@ -233,7 +232,7 @@ var
|
|
233
232
|
options, callback);
|
234
233
|
}
|
235
234
|
|
236
|
-
if (Object.
|
235
|
+
if (Object.belongToClass(originalList, Object)) {
|
237
236
|
referenceElement = searchTextBox;
|
238
237
|
callback = options;
|
239
238
|
options = originalList;
|
@@ -71,7 +71,7 @@ var
|
|
71
71
|
index = isMinimized.call(this);
|
72
72
|
|
73
73
|
if (index) {
|
74
|
-
minimized.
|
74
|
+
minimized.deleteAt(index);
|
75
75
|
}
|
76
76
|
},
|
77
77
|
|
@@ -187,16 +187,16 @@ var
|
|
187
187
|
actions;
|
188
188
|
|
189
189
|
if ((_windowController || timesUp) &&
|
190
|
-
!header.
|
190
|
+
!header.amount()) {
|
191
191
|
header = $("<header></header>");
|
192
192
|
actions = $("<div></div>").addClass("actions");
|
193
|
-
hideButton = $('<a
|
193
|
+
hideButton = $('<a url="#"></a>')
|
194
194
|
.addClass("hide-button");
|
195
195
|
|
196
196
|
header.append(actions);
|
197
197
|
|
198
198
|
if (options.closeButton || timesUp) {
|
199
|
-
closeButton = $('<a
|
199
|
+
closeButton = $('<a url="#"></a>')
|
200
200
|
.addClass("close-button");
|
201
201
|
actions.append(closeButton);
|
202
202
|
}
|
@@ -278,11 +278,11 @@ var
|
|
278
278
|
observers = function(section, options) {
|
279
279
|
var
|
280
280
|
loadingContainerObserver,
|
281
|
-
|
281
|
+
amount = 0,
|
282
282
|
|
283
283
|
callback = function(img) {
|
284
284
|
$(img).on("load", function() {
|
285
|
-
|
285
|
+
amount += 1;
|
286
286
|
});
|
287
287
|
},
|
288
288
|
|
@@ -303,7 +303,7 @@ var
|
|
303
303
|
}
|
304
304
|
}
|
305
305
|
}, function(_accomplish) {
|
306
|
-
if (
|
306
|
+
if (amount == imgs.length || timesUp) {
|
307
307
|
_accomplish();
|
308
308
|
}
|
309
309
|
});
|
@@ -320,11 +320,11 @@ var
|
|
320
320
|
mainObserveBlock = function() {
|
321
321
|
var
|
322
322
|
imgs,
|
323
|
-
|
323
|
+
amount = 0,
|
324
324
|
|
325
325
|
callback = function(img) {
|
326
326
|
$(img).on("load", function() {
|
327
|
-
|
327
|
+
amount += 1;
|
328
328
|
});
|
329
329
|
};
|
330
330
|
|
@@ -357,7 +357,7 @@ var
|
|
357
357
|
},
|
358
358
|
function(_accomplish) {
|
359
359
|
progress = true;
|
360
|
-
if (
|
360
|
+
if (amount == imgs.length || timesUp) {
|
361
361
|
_accomplish();
|
362
362
|
}
|
363
363
|
});
|
@@ -432,7 +432,7 @@ var
|
|
432
432
|
var
|
433
433
|
node = $(content);
|
434
434
|
|
435
|
-
if (
|
435
|
+
if (node.empty()) {
|
436
436
|
node = window.document.createTextNode(content);
|
437
437
|
}
|
438
438
|
|
@@ -134,8 +134,8 @@ var
|
|
134
134
|
|
135
135
|
$(window.document).on("click", function(e) {
|
136
136
|
|
137
|
-
if (
|
138
|
-
.
|
137
|
+
if ($(e.target).parent(CSS_CLASS_QUERY + ".select")
|
138
|
+
.empty()) {
|
139
139
|
if (optionsPanels.visible()) {
|
140
140
|
optionsPanels.hide();
|
141
141
|
captions.removeClass("expanded-arrow");
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esphinx-rails-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Home Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: basicss-rails
|
@@ -76,6 +76,7 @@ metadata: {}
|
|
76
76
|
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
|
+
- config
|
79
80
|
- lib
|
80
81
|
- vendor
|
81
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
91
|
version: '0'
|
91
92
|
requirements: []
|
92
93
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.6.
|
94
|
+
rubygems_version: 2.6.11
|
94
95
|
signing_key:
|
95
96
|
specification_version: 4
|
96
97
|
summary: Summary of ESphinx UI.
|