fomantic-ui 2.9.0-beta.232 → 2.9.0-beta.236
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/.all-contributorsrc +9 -0
- package/CONTRIBUTORS.md +1 -0
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +5 -5
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +3 -3
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +2 -2
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +2 -2
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +49 -49
- package/dist/semantic.js +35 -35
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/examples/assets/library/iframe-content.js +3 -3
- package/examples/assets/library/iframe.js +3 -3
- package/package.json +1 -1
- package/src/definitions/behaviors/api.js +4 -4
- package/src/definitions/modules/dropdown.js +2 -2
- package/src/definitions/modules/modal.js +1 -1
- package/src/definitions/modules/popup.js +1 -1
- package/src/definitions/modules/sidebar.js +1 -1
- package/src/definitions/modules/toast.js +1 -1
- package/test/helpers/sinon.js +1 -1
@@ -185,7 +185,7 @@
|
|
185
185
|
return 'true' === str ? true : false;
|
186
186
|
}
|
187
187
|
|
188
|
-
var data = initMsg.
|
188
|
+
var data = initMsg.slice(msgIdLen).split(':');
|
189
189
|
|
190
190
|
myID = data[0];
|
191
191
|
bodyMargin = (undefined !== data[1]) ? Number(data[1]) : bodyMargin; //For V1 compatibility
|
@@ -1048,7 +1048,7 @@
|
|
1048
1048
|
};
|
1049
1049
|
|
1050
1050
|
function isMessageForUs() {
|
1051
|
-
return msgID === (''+event.data).
|
1051
|
+
return msgID === (''+event.data).slice(0,msgIdLen); //''+ Protects against non-string messages
|
1052
1052
|
}
|
1053
1053
|
|
1054
1054
|
function getMessageType() {
|
@@ -1056,7 +1056,7 @@
|
|
1056
1056
|
}
|
1057
1057
|
|
1058
1058
|
function getData() {
|
1059
|
-
return event.data.
|
1059
|
+
return event.data.slice(event.data.indexOf(':')+1);
|
1060
1060
|
}
|
1061
1061
|
|
1062
1062
|
function isMiddleTier() {
|
@@ -148,7 +148,7 @@
|
|
148
148
|
}
|
149
149
|
|
150
150
|
function processMsg() {
|
151
|
-
var data = msg.
|
151
|
+
var data = msg.slice(msgIdLen).split(':');
|
152
152
|
|
153
153
|
return {
|
154
154
|
iframe: settings[data[0]] && settings[data[0]].iframe,
|
@@ -226,7 +226,7 @@
|
|
226
226
|
}
|
227
227
|
|
228
228
|
function isMessageForUs() {
|
229
|
-
return msgId === (('' + msg).
|
229
|
+
return msgId === (('' + msg).slice(0,msgIdLen)) && (msg.slice(msgIdLen).split(':')[0] in settings); //''+Protects against non-string msg
|
230
230
|
}
|
231
231
|
|
232
232
|
function isMessageFromMetaParent() {
|
@@ -242,7 +242,7 @@
|
|
242
242
|
}
|
243
243
|
|
244
244
|
function getMsgBody(offset) {
|
245
|
-
return msg.
|
245
|
+
return msg.slice(msg.indexOf(':')+msgHeaderLen+offset);
|
246
246
|
}
|
247
247
|
|
248
248
|
function forwardMsgFromIFrame(msgBody) {
|
package/package.json
CHANGED
@@ -363,8 +363,8 @@ $.api = $.fn.api = function(parameters) {
|
|
363
363
|
var
|
364
364
|
// allow legacy {$var} style
|
365
365
|
variable = (templatedString.indexOf('$') !== -1)
|
366
|
-
? templatedString.
|
367
|
-
: templatedString.
|
366
|
+
? templatedString.slice(2, -1)
|
367
|
+
: templatedString.slice(1, -1),
|
368
368
|
value = ($.isPlainObject(urlData) && urlData[variable] !== undefined)
|
369
369
|
? urlData[variable]
|
370
370
|
: ($module.data(variable) !== undefined)
|
@@ -395,8 +395,8 @@ $.api = $.fn.api = function(parameters) {
|
|
395
395
|
var
|
396
396
|
// allow legacy {/$var} style
|
397
397
|
variable = (templatedString.indexOf('$') !== -1)
|
398
|
-
? templatedString.
|
399
|
-
: templatedString.
|
398
|
+
? templatedString.slice(3, -1)
|
399
|
+
: templatedString.slice(2, -1),
|
400
400
|
value = ($.isPlainObject(urlData) && urlData[variable] !== undefined)
|
401
401
|
? urlData[variable]
|
402
402
|
: ($module.data(variable) !== undefined)
|
@@ -225,7 +225,7 @@ $.fn.dropdown = function(parameters) {
|
|
225
225
|
|
226
226
|
create: {
|
227
227
|
id: function() {
|
228
|
-
id = (Math.random().toString(16) + '000000000').
|
228
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
229
229
|
elementNamespace = '.' + id;
|
230
230
|
module.verbose('Creating unique id for element', id);
|
231
231
|
},
|
@@ -2528,7 +2528,7 @@ $.fn.dropdown = function(parameters) {
|
|
2528
2528
|
var
|
2529
2529
|
length = module.get.query().length
|
2530
2530
|
;
|
2531
|
-
$search.val( text.
|
2531
|
+
$search.val( text.slice(0, length));
|
2532
2532
|
},
|
2533
2533
|
scrollPosition: function($item, forceScroll) {
|
2534
2534
|
var
|
@@ -211,7 +211,7 @@ $.fn.modal = function(parameters) {
|
|
211
211
|
$dimmer = $dimmable.dimmer('get dimmer');
|
212
212
|
},
|
213
213
|
id: function() {
|
214
|
-
id = (Math.random().toString(16) + '000000000').
|
214
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
215
215
|
elementEventNamespace = '.' + id;
|
216
216
|
module.verbose('Creating unique id for element', id);
|
217
217
|
},
|
@@ -309,7 +309,7 @@ $.fn.popup = function(parameters) {
|
|
309
309
|
},
|
310
310
|
|
311
311
|
createID: function() {
|
312
|
-
id = (Math.random().toString(16) + '000000000').
|
312
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
313
313
|
elementNamespace = '.' + id;
|
314
314
|
module.verbose('Creating unique id for element', id);
|
315
315
|
},
|
@@ -118,7 +118,7 @@ $.fn.sidebar = function(parameters) {
|
|
118
118
|
|
119
119
|
create: {
|
120
120
|
id: function() {
|
121
|
-
id = (Math.random().toString(16) + '000000000').
|
121
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
122
122
|
elementNamespace = '.' + id;
|
123
123
|
module.verbose('Creating unique id for element', id);
|
124
124
|
}
|
@@ -154,7 +154,7 @@ $.fn.toast = function(parameters) {
|
|
154
154
|
$context.append($('<div/>',{class: settings.position + ' ' + className.container + ' ' +(settings.horizontal ? className.horizontal : '')}));
|
155
155
|
},
|
156
156
|
id: function() {
|
157
|
-
id = (Math.random().toString(16) + '000000000').
|
157
|
+
id = (Math.random().toString(16) + '000000000').slice(2, 10);
|
158
158
|
module.verbose('Creating unique id for element', id);
|
159
159
|
},
|
160
160
|
toast: function() {
|
package/test/helpers/sinon.js
CHANGED
@@ -580,7 +580,7 @@ define.amd = true;
|
|
580
580
|
var content = element.innerHTML;
|
581
581
|
|
582
582
|
if (content.length > 20) {
|
583
|
-
content = content.
|
583
|
+
content = content.slice(0, 20) + "[...]";
|
584
584
|
}
|
585
585
|
|
586
586
|
var res = formatted + pairs.join(" ") + ">" + content +
|