@atlassian/aui 9.12.2 → 9.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.css +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes-css.js +1 -1
- package/dist/aui/aui-prototyping-design-tokens-base-themes.js +1 -1
- package/dist/aui/aui-prototyping.css +1 -1
- package/dist/aui/aui-prototyping.js +2 -2
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +2 -2
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/package.json +3 -8
- package/src/js/aui/internal/alignment.js +1 -1
- package/src/js-vendor-effective/jquery-aop/LICENSE +21 -0
- package/src/js-vendor-effective/jquery-aop/README.md +54 -0
- package/src/js-vendor-effective/jquery-aop/aop.js +395 -0
- package/src/js-vendor-effective/jquery-aop/jquery-aop.txt +5 -0
- package/src/js-vendor-effective/jquery-aop/package.json +16 -0
- package/src/js-vendor-effective/jquery-form/jquery.form.js +819 -0
- package/src/js-vendor-effective/jquery-form/package.json +15 -0
- package/src/js-vendor-effective/jquery.hotkeys/jquery.hotkeys.js +176 -0
- package/src/js-vendor-effective/jquery.hotkeys/package.json +14 -0
- package/src/js-vendor-effective/select2/CONTRIBUTING.md +107 -0
- package/src/js-vendor-effective/select2/LICENSE +18 -0
- package/src/js-vendor-effective/select2/README.md +115 -0
- package/src/js-vendor-effective/select2/bower.json +8 -0
- package/src/js-vendor-effective/select2/component.json +66 -0
- package/src/js-vendor-effective/select2/composer.json +29 -0
- package/src/js-vendor-effective/select2/package.json +20 -0
- package/src/js-vendor-effective/select2/release.sh +79 -0
- package/src/js-vendor-effective/select2/select2-bootstrap.css +87 -0
- package/src/js-vendor-effective/select2/select2-spinner.gif +0 -0
- package/src/js-vendor-effective/select2/select2.css +692 -0
- package/src/js-vendor-effective/select2/select2.jquery.json +36 -0
- package/src/js-vendor-effective/select2/select2.js +3729 -0
- package/src/js-vendor-effective/select2/select2.min.js +23 -0
- package/src/js-vendor-effective/select2/select2.png +0 -0
- package/src/js-vendor-effective/select2/select2_locale_ar.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_az.js +20 -0
- package/src/js-vendor-effective/select2/select2_locale_bg.js +20 -0
- package/src/js-vendor-effective/select2/select2_locale_ca.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_cs.js +51 -0
- package/src/js-vendor-effective/select2/select2_locale_da.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_de.js +18 -0
- package/src/js-vendor-effective/select2/select2_locale_el.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_en.js.template +20 -0
- package/src/js-vendor-effective/select2/select2_locale_es.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_et.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_eu.js +45 -0
- package/src/js-vendor-effective/select2/select2_locale_fa.js +21 -0
- package/src/js-vendor-effective/select2/select2_locale_fi.js +30 -0
- package/src/js-vendor-effective/select2/select2_locale_fr.js +18 -0
- package/src/js-vendor-effective/select2/select2_locale_gl.js +45 -0
- package/src/js-vendor-effective/select2/select2_locale_he.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_hr.js +24 -0
- package/src/js-vendor-effective/select2/select2_locale_hu.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_id.js +21 -0
- package/src/js-vendor-effective/select2/select2_locale_is.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_it.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_ja.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_ka.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_ko.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_lt.js +26 -0
- package/src/js-vendor-effective/select2/select2_locale_lv.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_mk.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_ms.js +21 -0
- package/src/js-vendor-effective/select2/select2_locale_nb.js +22 -0
- package/src/js-vendor-effective/select2/select2_locale_nl.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_pl.js +54 -0
- package/src/js-vendor-effective/select2/select2_locale_pt-BR.js +18 -0
- package/src/js-vendor-effective/select2/select2_locale_pt-PT.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_ro.js +17 -0
- package/src/js-vendor-effective/select2/select2_locale_rs.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_ru.js +23 -0
- package/src/js-vendor-effective/select2/select2_locale_sk.js +50 -0
- package/src/js-vendor-effective/select2/select2_locale_sv.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_th.js +19 -0
- package/src/js-vendor-effective/select2/select2_locale_tr.js +20 -0
- package/src/js-vendor-effective/select2/select2_locale_ug-CN.js +16 -0
- package/src/js-vendor-effective/select2/select2_locale_uk.js +25 -0
- package/src/js-vendor-effective/select2/select2_locale_vi.js +20 -0
- package/src/js-vendor-effective/select2/select2_locale_zh-CN.js +16 -0
- package/src/js-vendor-effective/select2/select2_locale_zh-TW.js +16 -0
- package/src/js-vendor-effective/select2/select2x2.png +0 -0
- package/src/js-vendor-effective/tablesorter/README.md +158 -0
- package/src/js-vendor-effective/tablesorter/jquery.tablesorter.js +1925 -0
- package/src/js-vendor-effective/tablesorter/package.json +43 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jquery-form",
|
|
3
|
+
"version": "2.67.0",
|
|
4
|
+
"description": "The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX.",
|
|
5
|
+
"homepage": "https://github.com/jquery-form/form/tree/bbb98d808095cadde10cab5fa07e2e46e191feb0",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "jquery.form.js",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/jquery-form/form.git"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"jquery": ">=1.7.2"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Modified by Atlassian to allow chaining of keys
|
|
3
|
+
*
|
|
4
|
+
* jQuery Hotkeys Plugin
|
|
5
|
+
* Copyright 2010, John Resig
|
|
6
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
7
|
+
*
|
|
8
|
+
* Based upon the plugin by Tzury Bar Yochay:
|
|
9
|
+
* http://github.com/tzuryby/hotkeys
|
|
10
|
+
*
|
|
11
|
+
* Original idea by:
|
|
12
|
+
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
(function(jQuery){
|
|
16
|
+
|
|
17
|
+
jQuery.hotkeys = {
|
|
18
|
+
version: "0.8",
|
|
19
|
+
|
|
20
|
+
specialKeys: {
|
|
21
|
+
8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
|
|
22
|
+
20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
|
|
23
|
+
37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",
|
|
24
|
+
91 : "meta",
|
|
25
|
+
96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
|
|
26
|
+
104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",
|
|
27
|
+
112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",
|
|
28
|
+
120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll",
|
|
29
|
+
188: ",", 190: ".", 191: "/", 224: "meta", 219: '[', 221: ']'
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
// These only work under Mac Gecko when using keypress (see http://unixpapa.com/js/key.html).
|
|
33
|
+
keypressKeys: [ "<", ">", "?" ],
|
|
34
|
+
|
|
35
|
+
shiftNums: {
|
|
36
|
+
"`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
|
|
37
|
+
"8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ":", "'": "\"", ",": "<",
|
|
38
|
+
".": ">", "/": "?", "\\": "|"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
jQuery.each(jQuery.hotkeys.keypressKeys, function (_, key) {
|
|
43
|
+
jQuery.hotkeys.shiftNums[ key ] = key;
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
function TimedNumber(timer) {
|
|
47
|
+
this.num = 0;
|
|
48
|
+
this.timer = timer > 0 ? timer : false;
|
|
49
|
+
}
|
|
50
|
+
TimedNumber.prototype.val = function () {
|
|
51
|
+
return this.num;
|
|
52
|
+
};
|
|
53
|
+
TimedNumber.prototype.inc = function () {
|
|
54
|
+
if (this.timer) {
|
|
55
|
+
clearTimeout(this.timeout);
|
|
56
|
+
this.timeout = setTimeout(jQuery.proxy(TimedNumber.prototype.reset, this), this.timer);
|
|
57
|
+
}
|
|
58
|
+
this.num++;
|
|
59
|
+
};
|
|
60
|
+
TimedNumber.prototype.reset = function () {
|
|
61
|
+
if (this.timer) {
|
|
62
|
+
clearTimeout(this.timeout);
|
|
63
|
+
}
|
|
64
|
+
this.num = 0;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
function keyHandler( handleObj ) {
|
|
68
|
+
// Only care when a possible input has been specified
|
|
69
|
+
if ( !(jQuery.isPlainObject(handleObj.data) || jQuery.isArray(handleObj.data) || typeof handleObj.data === "string") ) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var origHandler = handleObj.handler,
|
|
74
|
+
options = {
|
|
75
|
+
timer: 700,
|
|
76
|
+
combo: []
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
(function (data) {
|
|
80
|
+
if (typeof data === 'string') {
|
|
81
|
+
options.combo = [ data ];
|
|
82
|
+
} else if (jQuery.isArray(data)) {
|
|
83
|
+
options.combo = data;
|
|
84
|
+
} else {
|
|
85
|
+
jQuery.extend(options, data);
|
|
86
|
+
}
|
|
87
|
+
options.combo = jQuery.map(options.combo, function (key) {
|
|
88
|
+
return key.toLowerCase();
|
|
89
|
+
});
|
|
90
|
+
})(handleObj.data);
|
|
91
|
+
|
|
92
|
+
handleObj.index = new TimedNumber(options.timer);
|
|
93
|
+
handleObj.handler = function( event ) {
|
|
94
|
+
// Don't fire in text-accepting inputs that we didn't directly bind to
|
|
95
|
+
// important to note that jQuery.fn.prop is only available on jquery 1.6+
|
|
96
|
+
if ( this !== event.target && (/textarea|select|input/i.test( event.target.nodeName ) ||
|
|
97
|
+
jQuery(event.target).prop('contenteditable') === 'true' )) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Keypress represents characters, not special keys
|
|
102
|
+
var special = event.type !== 'keypress' ? jQuery.hotkeys.specialKeys[ event.which ] : null,
|
|
103
|
+
character = String.fromCharCode( event.which ).toLowerCase(),
|
|
104
|
+
key, modif = "", possible = {};
|
|
105
|
+
|
|
106
|
+
// check combinations (alt|ctrl|shift+anything)
|
|
107
|
+
if ( event.altKey && special !== "alt" ) {
|
|
108
|
+
modif += "alt+";
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if ( event.ctrlKey && special !== "ctrl" ) {
|
|
112
|
+
modif += "ctrl+";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// TODO: Need to make sure this works consistently across platforms
|
|
116
|
+
if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
|
|
117
|
+
modif += "meta+";
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if ( event.shiftKey && special !== "shift" ) {
|
|
121
|
+
modif += "shift+";
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Under Chrome and Safari, meta's keycode == '['s charcode
|
|
125
|
+
// Even if they did type this key combo we could not use it because it is browser back in Chrome/Safari on OS X
|
|
126
|
+
if (event.metaKey && character === '[') {
|
|
127
|
+
character = null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if ( special ) {
|
|
131
|
+
possible[ modif + special ] = true;
|
|
132
|
+
}
|
|
133
|
+
if ( character ) {
|
|
134
|
+
possible[ modif + character ] = true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// "$" can be specified as "shift+4" or "$"
|
|
138
|
+
if ( /shift+/.test(modif) ) {
|
|
139
|
+
possible [ modif.replace('shift+', '') + jQuery.hotkeys.shiftNums[ (special || character) ] ] = true;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var index = handleObj.index,
|
|
143
|
+
combo = options.combo;
|
|
144
|
+
|
|
145
|
+
if ( pressed(combo[index.val()], possible) ) {
|
|
146
|
+
if ( index.val() === combo.length - 1 ) {
|
|
147
|
+
index.reset();
|
|
148
|
+
return origHandler.apply(this, arguments);
|
|
149
|
+
} else {
|
|
150
|
+
index.inc();
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
index.reset();
|
|
154
|
+
// For mutli-key combinations, we might have restarted the key sequence.
|
|
155
|
+
if ( pressed(combo[0], possible) ) {
|
|
156
|
+
index.inc();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function pressed(key, possible) {
|
|
163
|
+
var keys = key.split(' ');
|
|
164
|
+
for (var i = 0, len = keys.length; i < len; i++) {
|
|
165
|
+
if ( possible[keys[i]] ) {
|
|
166
|
+
return true;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
jQuery.each([ "keydown", "keyup", "keypress" ], function() {
|
|
173
|
+
jQuery.event.special[ this ] = { add: keyHandler };
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
})( jQuery );
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jquery.hotkeys",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "**jQuery Hotkeys** is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.",
|
|
5
|
+
"main": "jquery.hotkeys.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/jeresig/jquery.hotkeys/tree/0451de18d57d3401bd4cc021facbe5fd63b5aae6"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT or GPL Version 2",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "grunt -v"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Contributing to Select2
|
|
2
|
+
=======================
|
|
3
|
+
Looking to contribute something to Select2? **Here's how you can help.**
|
|
4
|
+
|
|
5
|
+
Please take a moment to review this document in order to make the contribution
|
|
6
|
+
process easy and effective for everyone involved.
|
|
7
|
+
|
|
8
|
+
Following these guidelines helps to communicate that you respect the time of
|
|
9
|
+
the developers managing and developing this open source project. In return,
|
|
10
|
+
they should reciprocate that respect in addressing your issue or assessing
|
|
11
|
+
patches and features.
|
|
12
|
+
|
|
13
|
+
Using the issue tracker
|
|
14
|
+
-----------------------
|
|
15
|
+
When [reporting bugs][reporting-bugs] or
|
|
16
|
+
[requesting features][requesting-features], the
|
|
17
|
+
[issue tracker on GitHub][issue-tracker] is the recommended channel to use.
|
|
18
|
+
|
|
19
|
+
The issue tracker **is not** a place for support requests. The
|
|
20
|
+
[mailing list][mailing-list] or [IRC channel][irc-channel] are better places to
|
|
21
|
+
get help.
|
|
22
|
+
|
|
23
|
+
Reporting bugs with Select2
|
|
24
|
+
---------------------------
|
|
25
|
+
We really appreciate clear bug reports that _consistently_ show an issue
|
|
26
|
+
_within Select2_.
|
|
27
|
+
|
|
28
|
+
The ideal bug report follows these guidelines:
|
|
29
|
+
|
|
30
|
+
1. **Use the [GitHub issue search][issue-search]** — Check if the issue
|
|
31
|
+
has already been reported.
|
|
32
|
+
2. **Check if the issue has been fixed** — Try to reproduce the problem
|
|
33
|
+
using the code in the `master` branch.
|
|
34
|
+
3. **Isolate the problem** — Try to create an
|
|
35
|
+
[isolated test case][isolated-case] that consistently reproduces the problem.
|
|
36
|
+
|
|
37
|
+
Please try to be as detailed as possible in your bug report, especially if an
|
|
38
|
+
isolated test case cannot be made. Some useful questions to include the answer
|
|
39
|
+
to are:
|
|
40
|
+
|
|
41
|
+
- What steps can be used to reproduce the issue?
|
|
42
|
+
- What is the bug and what is the expected outcome?
|
|
43
|
+
- What browser(s) and Operating System have you tested with?
|
|
44
|
+
- Does the bug happen consistently across all tested browsers?
|
|
45
|
+
- What version of jQuery are you using? And what version of Select2?
|
|
46
|
+
- Are you using Select2 with other plugins?
|
|
47
|
+
|
|
48
|
+
All of these questions will help people fix and identify any potential bugs.
|
|
49
|
+
|
|
50
|
+
Requesting features in Select2
|
|
51
|
+
------------------------------
|
|
52
|
+
Select2 is a large library that carries with it a lot of functionality. Because
|
|
53
|
+
of this, many feature requests will not be implemented in the core library.
|
|
54
|
+
|
|
55
|
+
Before starting work on a major feature for Select2, **contact the
|
|
56
|
+
[community][community] first** or you may risk spending a considerable amount of
|
|
57
|
+
time on something which the project developers are not interested in bringing
|
|
58
|
+
into the project.
|
|
59
|
+
|
|
60
|
+
### Select2 4.0
|
|
61
|
+
|
|
62
|
+
Many feature requests will be closed off until 4.0, where Select2 plans to adopt
|
|
63
|
+
a more flexible API. If you are interested in helping with the development of
|
|
64
|
+
the next major Select2 release, please send a message to the
|
|
65
|
+
[mailing list][mailing-list] or [irc channel][irc-channel] for more information.
|
|
66
|
+
|
|
67
|
+
Triaging issues and pull requests
|
|
68
|
+
---------------------------------
|
|
69
|
+
Anyone can help the project maintainers triage issues and review pull requests.
|
|
70
|
+
|
|
71
|
+
### Handling new issues
|
|
72
|
+
|
|
73
|
+
Select2 regularly receives new issues which need to be tested and organized.
|
|
74
|
+
|
|
75
|
+
When a new issue that comes in that is similar to another existing issue, it
|
|
76
|
+
should be checked to make sure it is not a duplicate. Duplicates issues should
|
|
77
|
+
be marked by replying to the issue with "Duplicate of #[issue number]" where
|
|
78
|
+
`[issue number]` is the url or issue number for the existing issue. This will
|
|
79
|
+
allow the project maintainers to quickly close off additional issues and keep
|
|
80
|
+
the discussion focused within a single issue.
|
|
81
|
+
|
|
82
|
+
If you can test issues that are reported to Select2 that contain test cases and
|
|
83
|
+
confirm under what conditions bugs happen, that will allow others to identify
|
|
84
|
+
what causes a bug quicker.
|
|
85
|
+
|
|
86
|
+
### Reviewing pull requests
|
|
87
|
+
|
|
88
|
+
It is very common for pull requests to be opened for issues that contain a clear
|
|
89
|
+
solution to the problem. These pull requests should be rigorously reviewed by
|
|
90
|
+
the community before being accepted. If you are not sure about a piece of
|
|
91
|
+
submitted code, or know of a better way to do something, do not hesitate to make
|
|
92
|
+
a comment on the pull request.
|
|
93
|
+
|
|
94
|
+
It should also be made clear that **all code contributed to Select** must be
|
|
95
|
+
licensable under the [Apache 2 or GPL 2 licenses][licensing]. Code that cannot
|
|
96
|
+
be released under either of these licenses **cannot be accepted** into the
|
|
97
|
+
project.
|
|
98
|
+
|
|
99
|
+
[community]: https://github.com/ivaynberg/select2#community
|
|
100
|
+
[reporting-bugs]: #reporting-bugs-with-select2
|
|
101
|
+
[requesting-features]: #requesting-features-in-select2
|
|
102
|
+
[issue-tracker]: https://github.com/ivaynberg/select2/issues
|
|
103
|
+
[mailing-list]: https://github.com/ivaynberg/select2#mailing-list
|
|
104
|
+
[irc-channel]: https://github.com/ivaynberg/select2#irc-channel
|
|
105
|
+
[issue-search]: https://github.com/ivaynberg/select2/search?q=&type=Issues
|
|
106
|
+
[isolated-case]: http://css-tricks.com/6263-reduced-test-cases/
|
|
107
|
+
[licensing]: https://github.com/ivaynberg/select2#copyright-and-license
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Copyright 2014 Igor Vaynberg
|
|
2
|
+
|
|
3
|
+
Version: @@ver@@ Timestamp: @@timestamp@@
|
|
4
|
+
|
|
5
|
+
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
|
6
|
+
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
|
7
|
+
use of this software only upon the condition that you accept all of the terms of either the Apache
|
|
8
|
+
License or the GPL License.
|
|
9
|
+
|
|
10
|
+
You may obtain a copy of the Apache License and the GPL License at:
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
http://www.gnu.org/licenses/gpl-2.0.html
|
|
14
|
+
|
|
15
|
+
Unless required by applicable law or agreed to in writing, software distributed under the Apache License
|
|
16
|
+
or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
17
|
+
either express or implied. See the Apache License and the GPL License for the specific language governing
|
|
18
|
+
permissions and limitations under the Apache License and the GPL License.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Select2
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
Select2 is a jQuery-based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
|
|
5
|
+
|
|
6
|
+
To get started, checkout examples and documentation at http://select2.github.io/select2/
|
|
7
|
+
|
|
8
|
+
Use cases
|
|
9
|
+
---------
|
|
10
|
+
|
|
11
|
+
* Enhancing native selects with search.
|
|
12
|
+
* Enhancing native selects with a better multi-select interface.
|
|
13
|
+
* Loading data from JavaScript: easily load items via ajax and have them searchable.
|
|
14
|
+
* Nesting optgroups: native selects only support one level of nested. Select2 does not have this restriction.
|
|
15
|
+
* Tagging: ability to add new items on the fly.
|
|
16
|
+
* Working with large, remote datasets: ability to partially load a dataset based on the search term.
|
|
17
|
+
* Paging of large datasets: easy support for loading more pages when the results are scrolled to the end.
|
|
18
|
+
* Templating: support for custom rendering of results and selections.
|
|
19
|
+
|
|
20
|
+
Browser compatibility
|
|
21
|
+
---------------------
|
|
22
|
+
* IE 8+
|
|
23
|
+
* Chrome 8+
|
|
24
|
+
* Firefox 10+
|
|
25
|
+
* Safari 3+
|
|
26
|
+
* Opera 10.6+
|
|
27
|
+
|
|
28
|
+
Usage
|
|
29
|
+
-----
|
|
30
|
+
You can source Select2 directly from a CDN like [jsDelivr](http://www.jsdelivr.com/#!select2) or [CDNJS](http://www.cdnjs.com/libraries/select2), [download it from this GitHub repo](https://github.com/select2/select2/tags), or use one of the integrations below.
|
|
31
|
+
|
|
32
|
+
Integrations
|
|
33
|
+
------------
|
|
34
|
+
|
|
35
|
+
* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org))
|
|
36
|
+
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
|
|
37
|
+
* [AngularUI](http://angular-ui.github.io/#ui-select) ([AngularJS](https://angularjs.org/))
|
|
38
|
+
* [Django](https://github.com/applegrew/django-select2)
|
|
39
|
+
* [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin)
|
|
40
|
+
* [Symfony2](https://github.com/avocode/FormExtensions)
|
|
41
|
+
* [Bootstrap 2](https://github.com/t0m/select2-bootstrap-css) and [Bootstrap 3](https://github.com/t0m/select2-bootstrap-css/tree/bootstrap3) (CSS skins)
|
|
42
|
+
* [Meteor](https://github.com/nate-strauser/meteor-select2) (modern reactive JavaScript framework; + [Bootstrap 3 skin](https://github.com/esperadomedia/meteor-select2-bootstrap3-css/))
|
|
43
|
+
* [Meteor](https://jquery-select2.meteor.com)
|
|
44
|
+
* [Yii 2.x](http://demos.krajee.com/widgets#select2)
|
|
45
|
+
* [Yii 1.x](https://github.com/tonybolzan/yii-select2)
|
|
46
|
+
* [AtmosphereJS](https://atmospherejs.com/package/jquery-select2)
|
|
47
|
+
* [EmberJS](https://github.com/iStefo/ember-select-2)
|
|
48
|
+
|
|
49
|
+
### Example Integrations
|
|
50
|
+
|
|
51
|
+
* [Knockout.js](https://github.com/ivaynberg/select2/wiki/Knockout.js-Integration)
|
|
52
|
+
* [Socket.IO](https://github.com/ivaynberg/select2/wiki/Socket.IO-Integration)
|
|
53
|
+
* [PHP](https://github.com/ivaynberg/select2/wiki/PHP-Example)
|
|
54
|
+
* [.Net MVC] (https://github.com/ivaynberg/select2/wiki/.Net-MVC-Example)
|
|
55
|
+
|
|
56
|
+
Internationalization (i18n)
|
|
57
|
+
---------------------------
|
|
58
|
+
|
|
59
|
+
Select2 supports multiple languages by simply including the right language JS
|
|
60
|
+
file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.) after `select2.js`.
|
|
61
|
+
|
|
62
|
+
Missing a language? Just copy `select2_locale_en.js.template`, translate
|
|
63
|
+
it, and make a pull request back to Select2 here on GitHub.
|
|
64
|
+
|
|
65
|
+
Documentation
|
|
66
|
+
-------------
|
|
67
|
+
|
|
68
|
+
The documentation for Select2 is available [through GitHub Pages](http://select2.github.io/select2/) and is located within this repository in the [`gh-pages` branch](https://github.com/ivaynberg/select2/tree/gh-pages).
|
|
69
|
+
|
|
70
|
+
Community
|
|
71
|
+
---------
|
|
72
|
+
|
|
73
|
+
### Bug tracker
|
|
74
|
+
|
|
75
|
+
Have a bug? Please create an issue here on GitHub!
|
|
76
|
+
|
|
77
|
+
https://github.com/ivaynberg/select2/issues
|
|
78
|
+
|
|
79
|
+
### Mailing list
|
|
80
|
+
|
|
81
|
+
Have a question? Ask on our mailing list!
|
|
82
|
+
|
|
83
|
+
select2@googlegroups.com
|
|
84
|
+
|
|
85
|
+
https://groups.google.com/d/forum/select2
|
|
86
|
+
|
|
87
|
+
### IRC channel
|
|
88
|
+
|
|
89
|
+
Need help implementing Select2 in your project? Ask in our IRC channel!
|
|
90
|
+
|
|
91
|
+
**Network:** [Freenode](https://freenode.net/) (`chat.freenode.net`)
|
|
92
|
+
|
|
93
|
+
**Channel:** `#select2`
|
|
94
|
+
|
|
95
|
+
**Web access:** https://webchat.freenode.net/?channels=select2
|
|
96
|
+
|
|
97
|
+
Copyright and license
|
|
98
|
+
---------------------
|
|
99
|
+
|
|
100
|
+
Copyright 2015 Igor Vaynberg
|
|
101
|
+
|
|
102
|
+
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
|
103
|
+
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
|
104
|
+
use of this software only upon the condition that you accept all of the terms of either the Apache
|
|
105
|
+
License or the GPL License.
|
|
106
|
+
|
|
107
|
+
You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:
|
|
108
|
+
|
|
109
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
110
|
+
http://www.gnu.org/licenses/gpl-2.0.html
|
|
111
|
+
|
|
112
|
+
Unless required by applicable law or agreed to in writing, software distributed under the Apache License
|
|
113
|
+
or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
114
|
+
either express or implied. See the Apache License and the GPL License for the specific language governing
|
|
115
|
+
permissions and limitations under the Apache License and the GPL License.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "select2",
|
|
3
|
+
"repo": "ivaynberg/select2",
|
|
4
|
+
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
|
|
5
|
+
"version": "3.5.4",
|
|
6
|
+
"demo": "http://ivaynberg.github.io/select2/",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"jquery"
|
|
9
|
+
],
|
|
10
|
+
"main": "select2.js",
|
|
11
|
+
"styles": [
|
|
12
|
+
"select2.css",
|
|
13
|
+
"select2-bootstrap.css"
|
|
14
|
+
],
|
|
15
|
+
"scripts": [
|
|
16
|
+
"select2.js",
|
|
17
|
+
"select2_locale_ar.js",
|
|
18
|
+
"select2_locale_bg.js",
|
|
19
|
+
"select2_locale_ca.js",
|
|
20
|
+
"select2_locale_cs.js",
|
|
21
|
+
"select2_locale_da.js",
|
|
22
|
+
"select2_locale_de.js",
|
|
23
|
+
"select2_locale_el.js",
|
|
24
|
+
"select2_locale_es.js",
|
|
25
|
+
"select2_locale_et.js",
|
|
26
|
+
"select2_locale_eu.js",
|
|
27
|
+
"select2_locale_fa.js",
|
|
28
|
+
"select2_locale_fi.js",
|
|
29
|
+
"select2_locale_fr.js",
|
|
30
|
+
"select2_locale_gl.js",
|
|
31
|
+
"select2_locale_he.js",
|
|
32
|
+
"select2_locale_hr.js",
|
|
33
|
+
"select2_locale_hu.js",
|
|
34
|
+
"select2_locale_id.js",
|
|
35
|
+
"select2_locale_is.js",
|
|
36
|
+
"select2_locale_it.js",
|
|
37
|
+
"select2_locale_ja.js",
|
|
38
|
+
"select2_locale_ka.js",
|
|
39
|
+
"select2_locale_ko.js",
|
|
40
|
+
"select2_locale_lt.js",
|
|
41
|
+
"select2_locale_lv.js",
|
|
42
|
+
"select2_locale_mk.js",
|
|
43
|
+
"select2_locale_ms.js",
|
|
44
|
+
"select2_locale_nl.js",
|
|
45
|
+
"select2_locale_no.js",
|
|
46
|
+
"select2_locale_pl.js",
|
|
47
|
+
"select2_locale_pt-BR.js",
|
|
48
|
+
"select2_locale_pt-PT.js",
|
|
49
|
+
"select2_locale_ro.js",
|
|
50
|
+
"select2_locale_ru.js",
|
|
51
|
+
"select2_locale_sk.js",
|
|
52
|
+
"select2_locale_sv.js",
|
|
53
|
+
"select2_locale_th.js",
|
|
54
|
+
"select2_locale_tr.js",
|
|
55
|
+
"select2_locale_uk.js",
|
|
56
|
+
"select2_locale_vi.js",
|
|
57
|
+
"select2_locale_zh-CN.js",
|
|
58
|
+
"select2_locale_zh-TW.js"
|
|
59
|
+
],
|
|
60
|
+
"images": [
|
|
61
|
+
"select2-spinner.gif",
|
|
62
|
+
"select2.png",
|
|
63
|
+
"select2x2.png"
|
|
64
|
+
],
|
|
65
|
+
"license": "MIT"
|
|
66
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name":
|
|
3
|
+
"ivaynberg/select2",
|
|
4
|
+
"description": "Select2 is a jQuery based replacement for select boxes.",
|
|
5
|
+
"version": "3.5.4",
|
|
6
|
+
"type": "component",
|
|
7
|
+
"homepage": "http://ivaynberg.github.io/select2/",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"require": {
|
|
10
|
+
"robloach/component-installer": "*",
|
|
11
|
+
"components/jquery": ">=1.7.1"
|
|
12
|
+
},
|
|
13
|
+
"extra": {
|
|
14
|
+
"component": {
|
|
15
|
+
"scripts": [
|
|
16
|
+
"select2.js"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"select2.js",
|
|
20
|
+
"select2_locale_*.js",
|
|
21
|
+
"select2.css",
|
|
22
|
+
"select2-bootstrap.css",
|
|
23
|
+
"select2-spinner.gif",
|
|
24
|
+
"select2.png",
|
|
25
|
+
"select2x2.png"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name" : "Select2",
|
|
3
|
+
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
|
|
4
|
+
"homepage": "http://ivaynberg.github.io/select2",
|
|
5
|
+
"author": "Igor Vaynberg",
|
|
6
|
+
"repository": {"type": "git", "url": "git://github.com/ivaynberg/select2.git"},
|
|
7
|
+
"main": "select2.js",
|
|
8
|
+
"version": "3.5.4",
|
|
9
|
+
"jspm": {
|
|
10
|
+
"main": "select2",
|
|
11
|
+
"files": ["select2.js", "select2.png", "select2.css", "select2-spinner.gif"],
|
|
12
|
+
"shim": {
|
|
13
|
+
"select2": {
|
|
14
|
+
"imports": ["jquery", "./select2.css!"],
|
|
15
|
+
"exports": "$"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"buildConfig": { "uglify": true }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
echo -n "Enter the version for this release: "
|
|
5
|
+
|
|
6
|
+
read ver
|
|
7
|
+
|
|
8
|
+
if [ ! $ver ]; then
|
|
9
|
+
echo "Invalid version."
|
|
10
|
+
exit
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
name="select2"
|
|
14
|
+
js="$name.js"
|
|
15
|
+
mini="$name.min.js"
|
|
16
|
+
css="$name.css"
|
|
17
|
+
release="$name-$ver"
|
|
18
|
+
tag="$ver"
|
|
19
|
+
branch="build-$ver"
|
|
20
|
+
curbranch=`git branch | grep "*" | sed "s/* //"`
|
|
21
|
+
timestamp=$(date)
|
|
22
|
+
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g"
|
|
23
|
+
remote="origin"
|
|
24
|
+
|
|
25
|
+
echo "Pulling from origin"
|
|
26
|
+
|
|
27
|
+
git pull
|
|
28
|
+
|
|
29
|
+
echo "Updating Version Identifiers"
|
|
30
|
+
|
|
31
|
+
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i -- bower.json select2.jquery.json component.json composer.json package.json
|
|
32
|
+
|
|
33
|
+
git add bower.json
|
|
34
|
+
git add select2.jquery.json
|
|
35
|
+
git add component.json
|
|
36
|
+
git add composer.json
|
|
37
|
+
git add package.json
|
|
38
|
+
|
|
39
|
+
git commit -m "modified version identifiers in descriptors for release $ver"
|
|
40
|
+
git push
|
|
41
|
+
|
|
42
|
+
git branch "$branch"
|
|
43
|
+
git checkout "$branch"
|
|
44
|
+
|
|
45
|
+
echo "Tokenizing..."
|
|
46
|
+
|
|
47
|
+
find . -name "$js" | xargs -I{} sed -e "$tokens" -i -- {}
|
|
48
|
+
find . -name "$css" | xargs -I{} sed -e "$tokens" -i -- {}
|
|
49
|
+
|
|
50
|
+
sed -e "s/latest/$ver/g" -i -- bower.json
|
|
51
|
+
|
|
52
|
+
git add "$js"
|
|
53
|
+
git add "$css"
|
|
54
|
+
|
|
55
|
+
echo "Minifying..."
|
|
56
|
+
|
|
57
|
+
echo "/*" > "$mini"
|
|
58
|
+
cat LICENSE | sed "$tokens" >> "$mini"
|
|
59
|
+
echo "*/" >> "$mini"
|
|
60
|
+
|
|
61
|
+
curl -s \
|
|
62
|
+
--data-urlencode "js_code@$js" \
|
|
63
|
+
http://marijnhaverbeke.nl/uglifyjs \
|
|
64
|
+
>> "$mini"
|
|
65
|
+
|
|
66
|
+
git add "$mini"
|
|
67
|
+
|
|
68
|
+
git commit -m "release $ver"
|
|
69
|
+
|
|
70
|
+
echo "Tagging..."
|
|
71
|
+
git tag -a "$tag" -m "tagged version $ver"
|
|
72
|
+
git push "$remote" --tags
|
|
73
|
+
|
|
74
|
+
echo "Cleaning Up..."
|
|
75
|
+
|
|
76
|
+
git checkout "$curbranch"
|
|
77
|
+
git branch -D "$branch"
|
|
78
|
+
|
|
79
|
+
echo "Done"
|