fomantic-ui 2.10.0-beta.6 → 2.10.0-beta.7
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/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 +1 -1
- package/dist/components/api.min.js +1 -1
- 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 +24 -37
- 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 +11 -20
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +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/flyout.css +1 -1
- package/dist/components/flyout.js +11 -19
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- 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/menu.css +1 -1
- package/dist/components/menu.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 +11 -19
- 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 +11 -20
- 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 +11 -20
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- 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 +15 -20
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- 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 +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- 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.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +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 +11 -19
- 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 +53 -53
- package/dist/semantic.js +120 -189
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/modules/dropdown.js +23 -36
- package/src/definitions/modules/embed.js +10 -19
- package/src/definitions/modules/flyout.js +10 -18
- package/src/definitions/modules/modal.js +10 -18
- package/src/definitions/modules/popup.js +10 -19
- package/src/definitions/modules/rating.js +10 -19
- package/src/definitions/modules/search.js +14 -19
- package/src/definitions/modules/toast.js +10 -18
package/package.json
CHANGED
@@ -1757,6 +1757,7 @@
|
|
1757
1757
|
}
|
1758
1758
|
// down arrow (open menu)
|
1759
1759
|
if (pressedKey === keys.downArrow && !module.is.visible()) {
|
1760
|
+
focused = true;
|
1760
1761
|
module.verbose('Down key pressed, showing dropdown');
|
1761
1762
|
module.show();
|
1762
1763
|
event.preventDefault();
|
@@ -3835,25 +3836,19 @@
|
|
3835
3836
|
},
|
3836
3837
|
htmlEntities: function (string, forceAmpersand) {
|
3837
3838
|
forceAmpersand = typeof forceAmpersand === 'number' ? false : forceAmpersand;
|
3838
|
-
var
|
3839
|
-
badChars = /["'<>]/g,
|
3840
|
-
shouldEscape = /["&'<>]/,
|
3841
|
-
escape = {
|
3842
|
-
'<': '<',
|
3843
|
-
'>': '>',
|
3844
|
-
'"': '"',
|
3845
|
-
"'": ''',
|
3846
|
-
},
|
3847
|
-
escapedChar = function (chr) {
|
3848
|
-
return escape[chr];
|
3849
|
-
}
|
3850
|
-
;
|
3851
|
-
if (shouldEscape.test(string)) {
|
3852
|
-
string = string.replace(forceAmpersand ? /&/g : /&(?![\d#a-z]{1,12};)/gi, '&');
|
3853
|
-
string = string.replace(badChars, escapedChar);
|
3854
|
-
}
|
3855
3839
|
|
3856
|
-
|
3840
|
+
const badChars = forceAmpersand
|
3841
|
+
? /["&'<>]/g
|
3842
|
+
: /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
3843
|
+
const escape = {
|
3844
|
+
'"': '"',
|
3845
|
+
'&': '&',
|
3846
|
+
"'": ''',
|
3847
|
+
'<': '<',
|
3848
|
+
'>': '>',
|
3849
|
+
};
|
3850
|
+
|
3851
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
3857
3852
|
},
|
3858
3853
|
},
|
3859
3854
|
|
@@ -4263,25 +4258,17 @@
|
|
4263
4258
|
if (settings !== undefined && settings.preserveHTML) {
|
4264
4259
|
return string;
|
4265
4260
|
}
|
4266
|
-
var
|
4267
|
-
badChars = /["'<>]/g,
|
4268
|
-
shouldEscape = /["&'<>]/,
|
4269
|
-
escape = {
|
4270
|
-
'<': '<',
|
4271
|
-
'>': '>',
|
4272
|
-
'"': '"',
|
4273
|
-
"'": ''',
|
4274
|
-
},
|
4275
|
-
escapedChar = function (chr) {
|
4276
|
-
return escape[chr];
|
4277
|
-
}
|
4278
|
-
;
|
4279
|
-
if (shouldEscape.test(string)) {
|
4280
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
4281
|
-
string = string.replace(badChars, escapedChar);
|
4282
|
-
}
|
4283
4261
|
|
4284
|
-
|
4262
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
4263
|
+
const escape = {
|
4264
|
+
'"': '"',
|
4265
|
+
'&': '&',
|
4266
|
+
"'": ''',
|
4267
|
+
'<': '<',
|
4268
|
+
'>': '>',
|
4269
|
+
};
|
4270
|
+
|
4271
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
4285
4272
|
},
|
4286
4273
|
// generates dropdown from select values
|
4287
4274
|
dropdown: function (select, settings) {
|
@@ -646,25 +646,16 @@
|
|
646
646
|
|
647
647
|
templates: {
|
648
648
|
escape: function (string) {
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
return escape[chr];
|
660
|
-
}
|
661
|
-
;
|
662
|
-
if (shouldEscape.test(string)) {
|
663
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
664
|
-
string = string.replace(badChars, escapedChar);
|
665
|
-
}
|
666
|
-
|
667
|
-
return string;
|
649
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
650
|
+
const escape = {
|
651
|
+
'"': '"',
|
652
|
+
'&': '&',
|
653
|
+
"'": ''',
|
654
|
+
'<': '<',
|
655
|
+
'>': '>',
|
656
|
+
};
|
657
|
+
|
658
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
668
659
|
},
|
669
660
|
iframe: function (url, parameters) {
|
670
661
|
var
|
@@ -1083,25 +1083,17 @@
|
|
1083
1083
|
if (settings !== undefined && settings.preserveHTML) {
|
1084
1084
|
return string;
|
1085
1085
|
}
|
1086
|
-
var
|
1087
|
-
badChars = /["'<>]/g,
|
1088
|
-
shouldEscape = /["&'<>]/,
|
1089
|
-
escape = {
|
1090
|
-
'<': '<',
|
1091
|
-
'>': '>',
|
1092
|
-
'"': '"',
|
1093
|
-
"'": ''',
|
1094
|
-
},
|
1095
|
-
escapedChar = function (chr) {
|
1096
|
-
return escape[chr];
|
1097
|
-
}
|
1098
|
-
;
|
1099
|
-
if (shouldEscape.test(string)) {
|
1100
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
1101
|
-
string = string.replace(badChars, escapedChar);
|
1102
|
-
}
|
1103
1086
|
|
1104
|
-
|
1087
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
1088
|
+
const escape = {
|
1089
|
+
'"': '"',
|
1090
|
+
'&': '&',
|
1091
|
+
"'": ''',
|
1092
|
+
'<': '<',
|
1093
|
+
'>': '>',
|
1094
|
+
};
|
1095
|
+
|
1096
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
1105
1097
|
},
|
1106
1098
|
},
|
1107
1099
|
|
@@ -931,25 +931,17 @@
|
|
931
931
|
if (settings !== undefined && settings.preserveHTML) {
|
932
932
|
return string;
|
933
933
|
}
|
934
|
-
var
|
935
|
-
badChars = /["'<>]/g,
|
936
|
-
shouldEscape = /["&'<>]/,
|
937
|
-
escape = {
|
938
|
-
'<': '<',
|
939
|
-
'>': '>',
|
940
|
-
'"': '"',
|
941
|
-
"'": ''',
|
942
|
-
},
|
943
|
-
escapedChar = function (chr) {
|
944
|
-
return escape[chr];
|
945
|
-
}
|
946
|
-
;
|
947
|
-
if (shouldEscape.test(string)) {
|
948
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
949
|
-
string = string.replace(badChars, escapedChar);
|
950
|
-
}
|
951
934
|
|
952
|
-
|
935
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
936
|
+
const escape = {
|
937
|
+
'"': '"',
|
938
|
+
'&': '&',
|
939
|
+
"'": ''',
|
940
|
+
'<': '<',
|
941
|
+
'>': '>',
|
942
|
+
};
|
943
|
+
|
944
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
953
945
|
},
|
954
946
|
},
|
955
947
|
can: {
|
@@ -1515,25 +1515,16 @@
|
|
1515
1515
|
|
1516
1516
|
templates: {
|
1517
1517
|
escape: function (string) {
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
return escape[chr];
|
1529
|
-
}
|
1530
|
-
;
|
1531
|
-
if (shouldEscape.test(string)) {
|
1532
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
1533
|
-
string = string.replace(badChars, escapedChar);
|
1534
|
-
}
|
1535
|
-
|
1536
|
-
return string;
|
1518
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
1519
|
+
const escape = {
|
1520
|
+
'"': '"',
|
1521
|
+
'&': '&',
|
1522
|
+
"'": ''',
|
1523
|
+
'<': '<',
|
1524
|
+
'>': '>',
|
1525
|
+
};
|
1526
|
+
|
1527
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
1537
1528
|
},
|
1538
1529
|
popup: function (text) {
|
1539
1530
|
var
|
@@ -519,25 +519,16 @@
|
|
519
519
|
|
520
520
|
templates: {
|
521
521
|
escape: function (string) {
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
return escape[chr];
|
533
|
-
}
|
534
|
-
;
|
535
|
-
if (shouldEscape.test(string)) {
|
536
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
537
|
-
string = string.replace(badChars, escapedChar);
|
538
|
-
}
|
539
|
-
|
540
|
-
return string;
|
522
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
523
|
+
const escape = {
|
524
|
+
'"': '"',
|
525
|
+
'&': '&',
|
526
|
+
"'": ''',
|
527
|
+
'<': '<',
|
528
|
+
'>': '>',
|
529
|
+
};
|
530
|
+
|
531
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
541
532
|
},
|
542
533
|
icon: function (maxRating, iconClass) {
|
543
534
|
var
|
@@ -1475,25 +1475,20 @@
|
|
1475
1475
|
if (settings !== undefined && settings.preserveHTML) {
|
1476
1476
|
return string;
|
1477
1477
|
}
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
1493
|
-
string = string.replace(badChars, escapedChar);
|
1494
|
-
// FUI controlled HTML is still allowed
|
1495
|
-
string = string.replace(/<(\/)*mark>/g, '<$1mark>');
|
1496
|
-
}
|
1478
|
+
|
1479
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
1480
|
+
const escape = {
|
1481
|
+
'"': '"',
|
1482
|
+
'&': '&',
|
1483
|
+
"'": ''',
|
1484
|
+
'<': '<',
|
1485
|
+
'>': '>',
|
1486
|
+
};
|
1487
|
+
|
1488
|
+
string = string.replace(badChars, (chr) => escape[chr]);
|
1489
|
+
|
1490
|
+
// FUI controlled HTML is still allowed
|
1491
|
+
string = string.replace(/<(\/)*mark>/g, '<$1mark>');
|
1497
1492
|
|
1498
1493
|
return string;
|
1499
1494
|
},
|
@@ -596,25 +596,17 @@
|
|
596
596
|
if (settings !== undefined && settings.preserveHTML) {
|
597
597
|
return string;
|
598
598
|
}
|
599
|
-
var
|
600
|
-
badChars = /["'<>]/g,
|
601
|
-
shouldEscape = /["&'<>]/,
|
602
|
-
escape = {
|
603
|
-
'<': '<',
|
604
|
-
'>': '>',
|
605
|
-
'"': '"',
|
606
|
-
"'": ''',
|
607
|
-
},
|
608
|
-
escapedChar = function (chr) {
|
609
|
-
return escape[chr];
|
610
|
-
}
|
611
|
-
;
|
612
|
-
if (shouldEscape.test(string)) {
|
613
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
614
|
-
string = string.replace(badChars, escapedChar);
|
615
|
-
}
|
616
599
|
|
617
|
-
|
600
|
+
const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
601
|
+
const escape = {
|
602
|
+
'"': '"',
|
603
|
+
'&': '&',
|
604
|
+
"'": ''',
|
605
|
+
'<': '<',
|
606
|
+
'>': '>',
|
607
|
+
};
|
608
|
+
|
609
|
+
return string.replace(badChars, (chr) => escape[chr]);
|
618
610
|
},
|
619
611
|
},
|
620
612
|
|