ende 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/component.json +1 -1
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/ende_build.js +162 -161
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd707eb079a897bc8dce4924684b5907d60f1ec
|
4
|
+
data.tar.gz: 8ce13f5b416dbdfa66d36fe6ea05145aaa8baf3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fda8c0a308540efc30f989fcc1052e2098e21757c9a60ad8b5e53159123840531e0fd8362cce9d228b692a6cf262c54f680c18b7ba189e63a57ec7618a0d76e
|
7
|
+
data.tar.gz: 983d2dabc82fd92599312cbbfff9278ea9897ec8a7cfbf172befb436186913c8dc5be904ab24fc432b1385924063c1829c1a4d0dd90bd61f03bde6463c426697
|
data/component.json
CHANGED
data/lib/ende/version.rb
CHANGED
@@ -14727,7 +14727,7 @@ require.register("indefinido~observable@es6-modules/vendor/shims/accessors.js",
|
|
14727
14727
|
});
|
14728
14728
|
|
14729
14729
|
require.register("indefinido~observable@es6-modules/vendor/shims/array.indexOf.js", function (exports, module) {
|
14730
|
-
if (!Array.prototype.indexOf) {
|
14730
|
+
if (!Array.prototype.indexOf) {
|
14731
14731
|
Array.prototype.indexOf = function(obj, start) {
|
14732
14732
|
for (var i = (start || 0), j = this.length; i < j; i++) {
|
14733
14733
|
if (this[i] === obj) { return i; }
|
@@ -15389,13 +15389,14 @@ associable = {
|
|
15389
15389
|
owner: record
|
15390
15390
|
};
|
15391
15391
|
old_resource = record[resource];
|
15392
|
+
old_resource_id = record[resource + '_id'];
|
15392
15393
|
Object.defineProperty(record, resource.toString(), {
|
15393
15394
|
get: $.proxy(descriptors.belongs_to.resource.getter, association_proxy),
|
15394
15395
|
set: $.proxy(descriptors.belongs_to.resource.setter, association_proxy),
|
15395
15396
|
configurable: true
|
15396
15397
|
});
|
15397
15398
|
_results.push(record.after_initialize.push((function() {
|
15398
|
-
|
15399
|
+
(this[resource] = old_resource) || (this[resource + '_id'] = old_resource_id)
|
15399
15400
|
})));
|
15400
15401
|
}
|
15401
15402
|
return _results;
|
@@ -17834,7 +17835,7 @@ var compose = function compose() {
|
|
17834
17835
|
/**
|
17835
17836
|
* Take an old-fashioned JS constructor and return a stampit stamp
|
17836
17837
|
* that you can freely compose with other stamps.
|
17837
|
-
* @param {Function} Constructor
|
17838
|
+
* @param {Function} Constructor
|
17838
17839
|
* @return {Function} A composable stampit factory
|
17839
17840
|
* (aka stamp).
|
17840
17841
|
*/
|
@@ -17888,173 +17889,173 @@ License along with OWL Pluralization. If not, see
|
|
17888
17889
|
if ( typeof owl === 'undefined' ) owl = {};
|
17889
17890
|
|
17890
17891
|
owl.pluralize = (function() {
|
17891
|
-
|
17892
|
+
var userDefined = {};
|
17892
17893
|
|
17893
|
-
|
17894
|
-
|
17895
|
-
|
17896
|
-
|
17897
|
-
|
17898
|
-
|
17899
|
-
|
17894
|
+
function capitalizeSame(word, sampleWord) {
|
17895
|
+
if ( sampleWord.match(/^[A-Z]/) ) {
|
17896
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
17897
|
+
} else {
|
17898
|
+
return word;
|
17899
|
+
}
|
17900
|
+
}
|
17900
17901
|
|
17901
|
-
|
17902
|
-
|
17903
|
-
|
17904
|
-
|
17905
|
-
|
17906
|
-
|
17907
|
-
|
17908
|
-
|
17909
|
-
|
17910
|
-
|
17911
|
-
|
17902
|
+
// returns a plain Object having the given keys,
|
17903
|
+
// all with value 1, which can be used for fast lookups.
|
17904
|
+
function toKeys(keys) {
|
17905
|
+
keys = keys.split(',');
|
17906
|
+
var keysLength = keys.length;
|
17907
|
+
var table = {};
|
17908
|
+
for ( var i=0; i < keysLength; i++ ) {
|
17909
|
+
table[ keys[i] ] = 1;
|
17910
|
+
}
|
17911
|
+
return table;
|
17912
|
+
}
|
17912
17913
|
|
17913
|
-
|
17914
|
-
|
17914
|
+
// words that are always singular, always plural, or the same in both forms.
|
17915
|
+
var uninflected = toKeys("aircraft,advice,blues,corn,molasses,equipment,gold,information,cotton,jewelry,kin,legislation,luck,luggage,moose,music,offspring,rice,silver,trousers,wheat,bison,bream,breeches,britches,carp,chassis,clippers,cod,contretemps,corps,debris,diabetes,djinn,eland,elk,flounder,gallows,graffiti,headquarters,herpes,high,homework,innings,jackanapes,mackerel,measles,mews,mumps,news,pincers,pliers,proceedings,rabies,salmon,scissors,sea,series,shears,species,swine,trout,tuna,whiting,wildebeest,pike,oats,tongs,dregs,snuffers,victuals,tweezers,vespers,pinchers,bellows,cattle");
|
17915
17916
|
|
17916
|
-
|
17917
|
-
|
17918
|
-
|
17919
|
-
|
17920
|
-
|
17921
|
-
|
17922
|
-
|
17923
|
-
|
17924
|
-
|
17925
|
-
|
17926
|
-
|
17927
|
-
|
17928
|
-
|
17929
|
-
|
17930
|
-
|
17931
|
-
|
17932
|
-
|
17917
|
+
var irregular = {
|
17918
|
+
// pronouns
|
17919
|
+
I: 'we',
|
17920
|
+
you: 'you',
|
17921
|
+
he: 'they',
|
17922
|
+
it: 'they', // or them
|
17923
|
+
me: 'us',
|
17924
|
+
you: 'you',
|
17925
|
+
him: 'them',
|
17926
|
+
them: 'them',
|
17927
|
+
myself: 'ourselves',
|
17928
|
+
yourself: 'yourselves',
|
17929
|
+
himself: 'themselves',
|
17930
|
+
herself: 'themselves',
|
17931
|
+
itself: 'themselves',
|
17932
|
+
themself: 'themselves',
|
17933
|
+
oneself: 'oneselves',
|
17933
17934
|
|
17934
|
-
|
17935
|
-
|
17936
|
-
|
17937
|
-
|
17938
|
-
|
17939
|
-
|
17940
|
-
|
17941
|
-
|
17942
|
-
|
17935
|
+
child: 'children',
|
17936
|
+
dwarf: 'dwarfs', // dwarfs are real; dwarves are fantasy.
|
17937
|
+
mongoose: 'mongooses',
|
17938
|
+
mythos: 'mythoi',
|
17939
|
+
ox: 'oxen',
|
17940
|
+
soliloquy: 'soliloquies',
|
17941
|
+
trilby: 'trilbys',
|
17942
|
+
person: 'people',
|
17943
|
+
forum: 'forums', // fora is ok but uncommon.
|
17943
17944
|
|
17944
|
-
|
17945
|
-
|
17946
|
-
|
17947
|
-
|
17948
|
-
|
17949
|
-
|
17950
|
-
|
17945
|
+
// latin plural in popular usage.
|
17946
|
+
syllabus: 'syllabi',
|
17947
|
+
alumnus: 'alumni',
|
17948
|
+
genus: 'genera',
|
17949
|
+
viscus: 'viscera',
|
17950
|
+
stigma: 'stigmata'
|
17951
|
+
};
|
17951
17952
|
|
17952
|
-
|
17953
|
-
|
17954
|
-
|
17955
|
-
|
17956
|
-
|
17957
|
-
|
17958
|
-
|
17959
|
-
|
17960
|
-
|
17953
|
+
var suffixRules = [
|
17954
|
+
// common suffixes
|
17955
|
+
[ /man$/i, 'men' ],
|
17956
|
+
[ /([lm])ouse$/i, '$1ice' ],
|
17957
|
+
[ /tooth$/i, 'teeth' ],
|
17958
|
+
[ /goose$/i, 'geese' ],
|
17959
|
+
[ /foot$/i, 'feet' ],
|
17960
|
+
[ /zoon$/i, 'zoa' ],
|
17961
|
+
[ /([tcsx])is$/i, '$1es' ],
|
17961
17962
|
|
17962
|
-
|
17963
|
-
|
17964
|
-
|
17965
|
-
|
17966
|
-
|
17967
|
-
|
17968
|
-
|
17969
|
-
|
17970
|
-
|
17963
|
+
// fully assimilated suffixes
|
17964
|
+
[ /ix$/i, 'ices' ],
|
17965
|
+
[ /^(cod|mur|sil|vert)ex$/i, '$1ices' ],
|
17966
|
+
[ /^(agend|addend|memorand|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi)um$/i, '$1a' ],
|
17967
|
+
[ /^(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|\w+hedr)on$/i, '$1a' ],
|
17968
|
+
[ /^(alumn|alg|vertebr)a$/i, '$1ae' ],
|
17969
|
+
|
17970
|
+
// churches, classes, boxes, etc.
|
17971
|
+
[ /([cs]h|ss|x)$/i, '$1es' ],
|
17971
17972
|
|
17972
|
-
|
17973
|
-
|
17974
|
-
|
17973
|
+
// words with -ves plural form
|
17974
|
+
[ /([aeo]l|[^d]ea|ar)f$/i, '$1ves' ],
|
17975
|
+
[ /([nlw]i)fe$/i, '$1ves' ],
|
17975
17976
|
|
17976
|
-
|
17977
|
-
|
17978
|
-
|
17979
|
-
|
17977
|
+
// -y
|
17978
|
+
[ /([aeiou])y$/i, '$1ys' ],
|
17979
|
+
[ /(^[A-Z][a-z]*)y$/, '$1ys' ], // case sensitive!
|
17980
|
+
[ /y$/i, 'ies' ],
|
17980
17981
|
|
17981
|
-
|
17982
|
-
|
17983
|
-
|
17984
|
-
|
17982
|
+
// -o
|
17983
|
+
[ /([aeiou])o$/i, '$1os' ],
|
17984
|
+
[ /^(pian|portic|albin|generalissim|manifest|archipelag|ghett|medic|armadill|guan|octav|command|infern|phot|ditt|jumb|pr|dynam|ling|quart|embry|lumbag|rhin|fiasc|magnet|styl|alt|contralt|sopran|bass|crescend|temp|cant|sol|kimon)o$/i, '$1os' ],
|
17985
|
+
[ /o$/i, 'oes' ],
|
17985
17986
|
|
17986
|
-
|
17987
|
-
|
17988
|
-
|
17987
|
+
// words ending in s...
|
17988
|
+
[ /s$/i, 'ses' ]
|
17989
|
+
];
|
17989
17990
|
|
17990
|
-
|
17991
|
-
|
17992
|
-
|
17993
|
-
|
17994
|
-
|
17995
|
-
|
17996
|
-
|
17997
|
-
|
17998
|
-
|
17999
|
-
|
18000
|
-
|
18001
|
-
|
18002
|
-
|
18003
|
-
|
18004
|
-
|
18005
|
-
|
18006
|
-
|
18007
|
-
|
18008
|
-
|
18009
|
-
|
18010
|
-
|
18011
|
-
|
17991
|
+
// pluralizes the given singular noun. There are three ways to call it:
|
17992
|
+
// pluralize(noun) -> pluralNoun
|
17993
|
+
// Returns the plural of the given noun.
|
17994
|
+
// Example:
|
17995
|
+
// pluralize("person") -> "people"
|
17996
|
+
// pluralize("me") -> "us"
|
17997
|
+
//
|
17998
|
+
// pluralize(noun, count) -> plural or singular noun
|
17999
|
+
// Inflect the noun according to the count, returning the singular noun
|
18000
|
+
// if the count is 1.
|
18001
|
+
// Examples:
|
18002
|
+
// pluralize("person", 3) -> "people"
|
18003
|
+
// pluralize("person", 1) -> "person"
|
18004
|
+
// pluralize("person", 0) -> "people"
|
18005
|
+
//
|
18006
|
+
// pluralize(noun, count, plural) -> plural or singular noun
|
18007
|
+
// you can provide an irregular plural yourself as the 3rd argument.
|
18008
|
+
// Example:
|
18009
|
+
// pluralize("château", 2 "châteaux") -> "châteaux"
|
18010
|
+
function pluralize(word, count, plural) {
|
18011
|
+
// handle the empty string reasonably.
|
18012
|
+
if ( word === '' ) return '';
|
18012
18013
|
|
18013
|
-
|
18014
|
-
|
18014
|
+
// singular case.
|
18015
|
+
if ( count === 1 ) return word;
|
18015
18016
|
|
18016
|
-
|
18017
|
-
|
18017
|
+
// life is very easy if an explicit plural was provided.
|
18018
|
+
if ( typeof plural === 'string' ) return plural;
|
18018
18019
|
|
18019
|
-
|
18020
|
+
var lowerWord = word.toLowerCase();
|
18020
18021
|
|
18021
|
-
|
18022
|
-
|
18023
|
-
|
18024
|
-
|
18022
|
+
// user defined rules have the highest priority.
|
18023
|
+
if ( lowerWord in userDefined ) {
|
18024
|
+
return capitalizeSame(userDefined[lowerWord], word);
|
18025
|
+
}
|
18025
18026
|
|
18026
|
-
|
18027
|
-
|
18028
|
-
|
18027
|
+
// single letters are pluralized with 's, "I got five A's on
|
18028
|
+
// my report card."
|
18029
|
+
if ( word.match(/^[A-Z]$/) ) return word + "'s";
|
18029
18030
|
|
18030
|
-
|
18031
|
-
|
18032
|
-
|
18033
|
-
|
18031
|
+
// some word don't change form when plural.
|
18032
|
+
if ( word.match(/fish$|ois$|sheep$|deer$|pox$|itis$/i) ) return word;
|
18033
|
+
if ( word.match(/^[A-Z][a-z]*ese$/) ) return word; // Nationalities.
|
18034
|
+
if ( lowerWord in uninflected ) return word;
|
18034
18035
|
|
18035
|
-
|
18036
|
-
|
18037
|
-
|
18038
|
-
|
18039
|
-
|
18040
|
-
|
18041
|
-
|
18042
|
-
|
18043
|
-
|
18044
|
-
|
18045
|
-
|
18046
|
-
|
18047
|
-
|
18036
|
+
// there's a known set of words with irregular plural forms.
|
18037
|
+
if ( lowerWord in irregular ) {
|
18038
|
+
return capitalizeSame(irregular[lowerWord], word);
|
18039
|
+
}
|
18040
|
+
|
18041
|
+
// try to pluralize the word depending on its suffix.
|
18042
|
+
var suffixRulesLength = suffixRules.length;
|
18043
|
+
for ( var i=0; i < suffixRulesLength; i++ ) {
|
18044
|
+
var rule = suffixRules[i];
|
18045
|
+
if ( word.match(rule[0]) ) {
|
18046
|
+
return word.replace(rule[0], rule[1]);
|
18047
|
+
}
|
18048
|
+
}
|
18048
18049
|
|
18049
|
-
|
18050
|
-
|
18051
|
-
|
18050
|
+
// if all else fails, just add s.
|
18051
|
+
return word + 's';
|
18052
|
+
}
|
18052
18053
|
|
18053
|
-
|
18054
|
-
|
18055
|
-
|
18054
|
+
pluralize.define = function(word, plural) {
|
18055
|
+
userDefined[word.toLowerCase()] = plural;
|
18056
|
+
}
|
18056
18057
|
|
18057
|
-
|
18058
|
+
return pluralize;
|
18058
18059
|
|
18059
18060
|
})();
|
18060
18061
|
|
@@ -23564,7 +23565,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
23564
23565
|
|
23565
23566
|
(function ($) {
|
23566
23567
|
if ($.fn.inputmask === undefined) {
|
23567
|
-
//helper functions
|
23568
|
+
//helper functions
|
23568
23569
|
function isInputEventSupported(eventName) {
|
23569
23570
|
var el = document.createElement('input'),
|
23570
23571
|
eventName = 'on' + eventName,
|
@@ -23817,7 +23818,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
23817
23818
|
}
|
23818
23819
|
|
23819
23820
|
function isValid(pos, c, strict) { //strict true ~ no correction or autofill
|
23820
|
-
strict = strict === true; //always set a value to strict to prevent possible strange behavior in the extensions
|
23821
|
+
strict = strict === true; //always set a value to strict to prevent possible strange behavior in the extensions
|
23821
23822
|
|
23822
23823
|
function _isValid(position, activeMaskset, c, strict) {
|
23823
23824
|
var testPos = determineTestPosition(position), loopend = c ? 1 : 0, chrs = '', buffer = activeMaskset["buffer"];
|
@@ -24265,7 +24266,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
24265
24266
|
}
|
24266
24267
|
});
|
24267
24268
|
}
|
24268
|
-
if (getMaskLength() >= maxLength && maxLength > -1) { //FF sets no defined max length to -1
|
24269
|
+
if (getMaskLength() >= maxLength && maxLength > -1) { //FF sets no defined max length to -1
|
24269
24270
|
if (maxLength < getActiveBufferTemplate().length) getActiveBufferTemplate().length = maxLength;
|
24270
24271
|
if (getActiveMaskSet()['greedy'] == false) {
|
24271
24272
|
getActiveMaskSet()['repeat'] = Math.round(maxLength / getActiveBufferTemplate().length);
|
@@ -24862,7 +24863,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
24862
24863
|
}
|
24863
24864
|
}
|
24864
24865
|
if (minimalForwardPosition > getActiveMaskSet()["p"])
|
24865
|
-
getActiveMaskSet()["p"] = minimalForwardPosition; //needed for checkval strict
|
24866
|
+
getActiveMaskSet()["p"] = minimalForwardPosition; //needed for checkval strict
|
24866
24867
|
}
|
24867
24868
|
});
|
24868
24869
|
|
@@ -25038,7 +25039,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
25038
25039
|
|
25039
25040
|
$.fn.inputmask = function (fn, options) {
|
25040
25041
|
var opts = $.extend(true, {}, $.inputmask.defaults, options),
|
25041
|
-
|
25042
|
+
masksets,
|
25042
25043
|
activeMasksetIndex = 0;
|
25043
25044
|
|
25044
25045
|
if (typeof fn === "string") {
|
@@ -25109,7 +25110,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inputmask.js", function
|
|
25109
25110
|
return masksets[activeMasksetIndex]['_buffer'].join('');
|
25110
25111
|
}
|
25111
25112
|
else return "";
|
25112
|
-
case "hasMaskedValue": //check wheter the returned value is masked or not; currently only works reliable when using jquery.val fn to retrieve the value
|
25113
|
+
case "hasMaskedValue": //check wheter the returned value is masked or not; currently only works reliable when using jquery.val fn to retrieve the value
|
25113
25114
|
return this.data('_inputmask') ? !this.data('_inputmask')['opts'].autoUnmask : false;
|
25114
25115
|
case "isComplete":
|
25115
25116
|
masksets = this.data('_inputmask')['masksets'];
|
@@ -25425,7 +25426,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inview.js", function (ex
|
|
25425
25426
|
visiblePartX,
|
25426
25427
|
visiblePartY,
|
25427
25428
|
visiblePartsMerged;
|
25428
|
-
|
25429
|
+
|
25429
25430
|
// Don't ask me why because I haven't figured out yet:
|
25430
25431
|
// viewportOffset and viewportSize are sometimes suddenly null in Firefox 5.
|
25431
25432
|
// Even though it sounds weird:
|
@@ -25434,7 +25435,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inview.js", function (ex
|
|
25434
25435
|
if (!viewportOffset || !viewportSize) {
|
25435
25436
|
return;
|
25436
25437
|
}
|
25437
|
-
|
25438
|
+
|
25438
25439
|
if (elementOffset.top + elementSize.height > viewportOffset.top &&
|
25439
25440
|
elementOffset.top < viewportOffset.top + viewportSize.height &&
|
25440
25441
|
elementOffset.left + elementSize.width > viewportOffset.left &&
|
@@ -25459,7 +25460,7 @@ require.register("ende/vendor/assets/javascripts/jquery/inview.js", function (ex
|
|
25459
25460
|
$(w).bind("scroll resize", function() {
|
25460
25461
|
viewportSize = viewportOffset = null;
|
25461
25462
|
});
|
25462
|
-
|
25463
|
+
|
25463
25464
|
// IE < 9 scrolls to focused elements without firing the "scroll" event
|
25464
25465
|
if (!documentElement.addEventListener && documentElement.attachEvent) {
|
25465
25466
|
documentElement.attachEvent("onfocusin", function() {
|
@@ -25812,11 +25813,11 @@ if (!Function.prototype.bind) {
|
|
25812
25813
|
boundArgs.push("$" + i);
|
25813
25814
|
}
|
25814
25815
|
|
25815
|
-
// XXX Build a dynamic function with desired amount of arguments is the only
|
25816
|
-
// way to set the length property of a function.
|
25817
|
-
// In environments where Content Security Policies enabled (Chrome extensions,
|
25818
|
-
// for ex.) all use of eval or Function costructor throws an exception.
|
25819
|
-
// However in all of these environments Function.prototype.bind exists
|
25816
|
+
// XXX Build a dynamic function with desired amount of arguments is the only
|
25817
|
+
// way to set the length property of a function.
|
25818
|
+
// In environments where Content Security Policies enabled (Chrome extensions,
|
25819
|
+
// for ex.) all use of eval or Function costructor throws an exception.
|
25820
|
+
// However in all of these environments Function.prototype.bind exists
|
25820
25821
|
// and so this code will never be executed.
|
25821
25822
|
var bound = Function("binder", "return function(" + boundArgs.join(",") + "){return binder.apply(this,arguments)}")(binder);
|
25822
25823
|
|