Recompile dist
This commit is contained in:
parent
3037b933e2
commit
6d91da7e63
3
dist/js/i18n/ar.js
vendored
Normal file
3
dist/js/i18n/ar.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="الرجاء حذف "+t+" عناصر";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="الرجاء إضافة "+t+" عناصر";return n},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(e){var t="تستطيع إختيار "+e.maximum+" بنود فقط";return t},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"}}}),{define:e.define,require:e.require}})();
|
2
dist/js/i18n/he.js
vendored
2
dist/js/i18n/he.js
vendored
@ -1,3 +1,3 @@
|
|||||||
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
||||||
|
|
||||||
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"התוצאות לא נטענו בהלכה"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="נא למחוק "+t+" תווים";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="נא להכניס "+t+" תווים או יותר";return n},loadingMore:function(){return"טען תוצאות נוספות…"},maximumSelected:function(e){var t="באפשרותך לבחור רק "+e.maximum+" פריטים";return e.maximum!=1&&(t+="s"),t},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"}}}),{define:e.define,require:e.require}})();
|
(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(e){var t=e.input.length-e.maximum,n="נא למחוק ";return t===1?n+="תו אחד":n+=t+" תווים",n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="נא להכניס ";return t===1?n+="תו אחד":n+=t+" תווים",n+=" או יותר",n},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(e){var t="באפשרותך לבחור עד ";return e.maximum===1?t+="פריט אחד":t+=e.maximum+" פריטים",t},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"}}}),{define:e.define,require:e.require}})();
|
48
dist/js/select2.full.js
vendored
48
dist/js/select2.full.js
vendored
@ -784,9 +784,15 @@ S2.define('select2/results',[
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$message[0].className += ' select2-results__message';
|
||||||
|
|
||||||
this.$results.append($message);
|
this.$results.append($message);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Results.prototype.hideMessages = function () {
|
||||||
|
this.$results.find('.select2-results__message').remove();
|
||||||
|
};
|
||||||
|
|
||||||
Results.prototype.append = function (data) {
|
Results.prototype.append = function (data) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
|
||||||
@ -986,6 +992,7 @@ S2.define('select2/results',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
container.on('query', function (params) {
|
container.on('query', function (params) {
|
||||||
|
self.hideMessages();
|
||||||
self.showLoading(params);
|
self.showLoading(params);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1369,7 +1376,7 @@ S2.define('select2/selection/base',[
|
|||||||
BaseSelection.prototype._handleBlur = function (evt) {
|
BaseSelection.prototype._handleBlur = function (evt) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
// This needs to be delayed as the actve element is the body when the tab
|
// This needs to be delayed as the active element is the body when the tab
|
||||||
// key is pressed, possibly along with others.
|
// key is pressed, possibly along with others.
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
// Don't trigger `blur` if the focus is still in the selection
|
// Don't trigger `blur` if the focus is still in the selection
|
||||||
@ -1867,6 +1874,14 @@ S2.define('select2/selection/search',[
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Try to detect the IE version should the `documentMode` property that
|
||||||
|
// is stored on the document. This is only implemented in IE and is
|
||||||
|
// slightly cleaner than doing a user agent check.
|
||||||
|
// This property is not available in Edge, but Edge also doesn't have
|
||||||
|
// this bug.
|
||||||
|
var msie = document.documentMode;
|
||||||
|
var disableInputEvents = msie && msie <= 11;
|
||||||
|
|
||||||
// Workaround for browsers which do not support the `input` event
|
// Workaround for browsers which do not support the `input` event
|
||||||
// This will prevent double-triggering of events for browsers which support
|
// This will prevent double-triggering of events for browsers which support
|
||||||
// both the `keyup` and `input` events.
|
// both the `keyup` and `input` events.
|
||||||
@ -1874,17 +1889,10 @@ S2.define('select2/selection/search',[
|
|||||||
'input.searchcheck',
|
'input.searchcheck',
|
||||||
'.select2-search--inline',
|
'.select2-search--inline',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
// Try to detect the IE version should the `documentMode` property that
|
|
||||||
// is stored on the document. This is only implemented in IE and is
|
|
||||||
// slightly cleaner than doing a user agent check.
|
|
||||||
// This property is not available in Edge, but Edge also doesn't have
|
|
||||||
// this bug.
|
|
||||||
var msie = document.documentMode;
|
|
||||||
|
|
||||||
// IE will trigger the `input` event when a placeholder is used on a
|
// IE will trigger the `input` event when a placeholder is used on a
|
||||||
// search box. To get around this issue, we are forced to ignore all
|
// search box. To get around this issue, we are forced to ignore all
|
||||||
// `input` events in IE and keep using `keyup`.
|
// `input` events in IE and keep using `keyup`.
|
||||||
if (msie && msie <= 11) {
|
if (disableInputEvents) {
|
||||||
self.$selection.off('input.search input.searchcheck');
|
self.$selection.off('input.search input.searchcheck');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1898,6 +1906,14 @@ S2.define('select2/selection/search',[
|
|||||||
'keyup.search input.search',
|
'keyup.search input.search',
|
||||||
'.select2-search--inline',
|
'.select2-search--inline',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
|
// IE will trigger the `input` event when a placeholder is used on a
|
||||||
|
// search box. To get around this issue, we are forced to ignore all
|
||||||
|
// `input` events in IE and keep using `keyup`.
|
||||||
|
if (disableInputEvents && evt.type === 'input') {
|
||||||
|
self.$selection.off('input.search input.searchcheck');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var key = evt.which;
|
var key = evt.which;
|
||||||
|
|
||||||
// We can freely ignore events from modifier keys
|
// We can freely ignore events from modifier keys
|
||||||
@ -3387,11 +3403,11 @@ S2.define('select2/data/ajax',[
|
|||||||
}, this.ajaxOptions);
|
}, this.ajaxOptions);
|
||||||
|
|
||||||
if (typeof options.url === 'function') {
|
if (typeof options.url === 'function') {
|
||||||
options.url = options.url(params);
|
options.url = options.url.call(this.$element, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.data === 'function') {
|
if (typeof options.data === 'function') {
|
||||||
options.data = options.data(params);
|
options.data = options.data.call(this.$element, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function request () {
|
function request () {
|
||||||
@ -3766,6 +3782,10 @@ S2.define('select2/dropdown',[
|
|||||||
return $dropdown;
|
return $dropdown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Dropdown.prototype.bind = function () {
|
||||||
|
// Should be implemented in subclasses
|
||||||
|
};
|
||||||
|
|
||||||
Dropdown.prototype.position = function ($dropdown, $container) {
|
Dropdown.prototype.position = function ($dropdown, $container) {
|
||||||
// Should be implmented in subclasses
|
// Should be implmented in subclasses
|
||||||
};
|
};
|
||||||
@ -5239,6 +5259,10 @@ S2.define('select2/core',[
|
|||||||
'select': 'selecting',
|
'select': 'selecting',
|
||||||
'unselect': 'unselecting'
|
'unselect': 'unselecting'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (args === undefined) {
|
||||||
|
args = {};
|
||||||
|
}
|
||||||
|
|
||||||
if (name in preTriggerMap) {
|
if (name in preTriggerMap) {
|
||||||
var preTriggerName = preTriggerMap[name];
|
var preTriggerName = preTriggerMap[name];
|
||||||
@ -5955,7 +5979,7 @@ S2.define('jquery.select2',[
|
|||||||
|
|
||||||
var args = Array.prototype.slice.call(arguments, 1);
|
var args = Array.prototype.slice.call(arguments, 1);
|
||||||
|
|
||||||
var ret = instance[options](args);
|
var ret = instance[options].apply(instance, args);
|
||||||
|
|
||||||
// Check if we should be returning `this`
|
// Check if we should be returning `this`
|
||||||
if ($.inArray(options, thisMethods) > -1) {
|
if ($.inArray(options, thisMethods) > -1) {
|
||||||
|
6
dist/js/select2.full.min.js
vendored
6
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
48
dist/js/select2.js
vendored
48
dist/js/select2.js
vendored
@ -784,9 +784,15 @@ S2.define('select2/results',[
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$message[0].className += ' select2-results__message';
|
||||||
|
|
||||||
this.$results.append($message);
|
this.$results.append($message);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Results.prototype.hideMessages = function () {
|
||||||
|
this.$results.find('.select2-results__message').remove();
|
||||||
|
};
|
||||||
|
|
||||||
Results.prototype.append = function (data) {
|
Results.prototype.append = function (data) {
|
||||||
this.hideLoading();
|
this.hideLoading();
|
||||||
|
|
||||||
@ -986,6 +992,7 @@ S2.define('select2/results',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
container.on('query', function (params) {
|
container.on('query', function (params) {
|
||||||
|
self.hideMessages();
|
||||||
self.showLoading(params);
|
self.showLoading(params);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1369,7 +1376,7 @@ S2.define('select2/selection/base',[
|
|||||||
BaseSelection.prototype._handleBlur = function (evt) {
|
BaseSelection.prototype._handleBlur = function (evt) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
// This needs to be delayed as the actve element is the body when the tab
|
// This needs to be delayed as the active element is the body when the tab
|
||||||
// key is pressed, possibly along with others.
|
// key is pressed, possibly along with others.
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
// Don't trigger `blur` if the focus is still in the selection
|
// Don't trigger `blur` if the focus is still in the selection
|
||||||
@ -1867,6 +1874,14 @@ S2.define('select2/selection/search',[
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Try to detect the IE version should the `documentMode` property that
|
||||||
|
// is stored on the document. This is only implemented in IE and is
|
||||||
|
// slightly cleaner than doing a user agent check.
|
||||||
|
// This property is not available in Edge, but Edge also doesn't have
|
||||||
|
// this bug.
|
||||||
|
var msie = document.documentMode;
|
||||||
|
var disableInputEvents = msie && msie <= 11;
|
||||||
|
|
||||||
// Workaround for browsers which do not support the `input` event
|
// Workaround for browsers which do not support the `input` event
|
||||||
// This will prevent double-triggering of events for browsers which support
|
// This will prevent double-triggering of events for browsers which support
|
||||||
// both the `keyup` and `input` events.
|
// both the `keyup` and `input` events.
|
||||||
@ -1874,17 +1889,10 @@ S2.define('select2/selection/search',[
|
|||||||
'input.searchcheck',
|
'input.searchcheck',
|
||||||
'.select2-search--inline',
|
'.select2-search--inline',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
// Try to detect the IE version should the `documentMode` property that
|
|
||||||
// is stored on the document. This is only implemented in IE and is
|
|
||||||
// slightly cleaner than doing a user agent check.
|
|
||||||
// This property is not available in Edge, but Edge also doesn't have
|
|
||||||
// this bug.
|
|
||||||
var msie = document.documentMode;
|
|
||||||
|
|
||||||
// IE will trigger the `input` event when a placeholder is used on a
|
// IE will trigger the `input` event when a placeholder is used on a
|
||||||
// search box. To get around this issue, we are forced to ignore all
|
// search box. To get around this issue, we are forced to ignore all
|
||||||
// `input` events in IE and keep using `keyup`.
|
// `input` events in IE and keep using `keyup`.
|
||||||
if (msie && msie <= 11) {
|
if (disableInputEvents) {
|
||||||
self.$selection.off('input.search input.searchcheck');
|
self.$selection.off('input.search input.searchcheck');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1898,6 +1906,14 @@ S2.define('select2/selection/search',[
|
|||||||
'keyup.search input.search',
|
'keyup.search input.search',
|
||||||
'.select2-search--inline',
|
'.select2-search--inline',
|
||||||
function (evt) {
|
function (evt) {
|
||||||
|
// IE will trigger the `input` event when a placeholder is used on a
|
||||||
|
// search box. To get around this issue, we are forced to ignore all
|
||||||
|
// `input` events in IE and keep using `keyup`.
|
||||||
|
if (disableInputEvents && evt.type === 'input') {
|
||||||
|
self.$selection.off('input.search input.searchcheck');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var key = evt.which;
|
var key = evt.which;
|
||||||
|
|
||||||
// We can freely ignore events from modifier keys
|
// We can freely ignore events from modifier keys
|
||||||
@ -3387,11 +3403,11 @@ S2.define('select2/data/ajax',[
|
|||||||
}, this.ajaxOptions);
|
}, this.ajaxOptions);
|
||||||
|
|
||||||
if (typeof options.url === 'function') {
|
if (typeof options.url === 'function') {
|
||||||
options.url = options.url(params);
|
options.url = options.url.call(this.$element, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof options.data === 'function') {
|
if (typeof options.data === 'function') {
|
||||||
options.data = options.data(params);
|
options.data = options.data.call(this.$element, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function request () {
|
function request () {
|
||||||
@ -3766,6 +3782,10 @@ S2.define('select2/dropdown',[
|
|||||||
return $dropdown;
|
return $dropdown;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Dropdown.prototype.bind = function () {
|
||||||
|
// Should be implemented in subclasses
|
||||||
|
};
|
||||||
|
|
||||||
Dropdown.prototype.position = function ($dropdown, $container) {
|
Dropdown.prototype.position = function ($dropdown, $container) {
|
||||||
// Should be implmented in subclasses
|
// Should be implmented in subclasses
|
||||||
};
|
};
|
||||||
@ -5239,6 +5259,10 @@ S2.define('select2/core',[
|
|||||||
'select': 'selecting',
|
'select': 'selecting',
|
||||||
'unselect': 'unselecting'
|
'unselect': 'unselecting'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (args === undefined) {
|
||||||
|
args = {};
|
||||||
|
}
|
||||||
|
|
||||||
if (name in preTriggerMap) {
|
if (name in preTriggerMap) {
|
||||||
var preTriggerName = preTriggerMap[name];
|
var preTriggerName = preTriggerMap[name];
|
||||||
@ -5459,7 +5483,7 @@ S2.define('jquery.select2',[
|
|||||||
|
|
||||||
var args = Array.prototype.slice.call(arguments, 1);
|
var args = Array.prototype.slice.call(arguments, 1);
|
||||||
|
|
||||||
var ret = instance[options](args);
|
var ret = instance[options].apply(instance, args);
|
||||||
|
|
||||||
// Check if we should be returning `this`
|
// Check if we should be returning `this`
|
||||||
if ($.inArray(options, thisMethods) > -1) {
|
if ($.inArray(options, thisMethods) > -1) {
|
||||||
|
4
dist/js/select2.min.js
vendored
4
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user