fomantic-ui 2.10.0-beta.13 → 2.10.0-beta.14
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 +56 -66
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +95 -112
- 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 +55 -65
- package/src/definitions/modules/embed.js +2 -3
- package/src/definitions/modules/flyout.js +2 -3
- package/src/definitions/modules/modal.js +2 -3
- package/src/definitions/modules/popup.js +2 -3
- package/src/definitions/modules/rating.js +2 -3
- package/src/definitions/modules/search.js +2 -3
- package/src/definitions/modules/toast.js +2 -3
package/dist/semantic.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
2
|
+
* # Fomantic UI - 2.10.0-beta.14+ea33639
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* https://fomantic-ui.com/
|
5
5
|
*
|
@@ -9,7 +9,7 @@
|
|
9
9
|
*
|
10
10
|
*/
|
11
11
|
/*!
|
12
|
-
* # Fomantic-UI 2.10.0-beta.
|
12
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Site
|
13
13
|
* https://github.com/fomantic/Fomantic-UI/
|
14
14
|
*
|
15
15
|
*
|
@@ -446,7 +446,7 @@
|
|
446
446
|
})(jQuery, window, document);
|
447
447
|
|
448
448
|
/*!
|
449
|
-
* # Fomantic-UI 2.10.0-beta.
|
449
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Form Validation
|
450
450
|
* https://github.com/fomantic/Fomantic-UI/
|
451
451
|
*
|
452
452
|
*
|
@@ -2537,7 +2537,7 @@
|
|
2537
2537
|
})(jQuery, window, document);
|
2538
2538
|
|
2539
2539
|
/*!
|
2540
|
-
* # Fomantic-UI 2.10.0-beta.
|
2540
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Accordion
|
2541
2541
|
* https://github.com/fomantic/Fomantic-UI/
|
2542
2542
|
*
|
2543
2543
|
*
|
@@ -3094,7 +3094,7 @@
|
|
3094
3094
|
})(jQuery, window, document);
|
3095
3095
|
|
3096
3096
|
/*!
|
3097
|
-
* # Fomantic-UI 2.10.0-beta.
|
3097
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Calendar
|
3098
3098
|
* https://github.com/fomantic/Fomantic-UI/
|
3099
3099
|
*
|
3100
3100
|
*
|
@@ -5102,7 +5102,7 @@
|
|
5102
5102
|
})(jQuery, window, document);
|
5103
5103
|
|
5104
5104
|
/*!
|
5105
|
-
* # Fomantic-UI 2.10.0-beta.
|
5105
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Checkbox
|
5106
5106
|
* https://github.com/fomantic/Fomantic-UI/
|
5107
5107
|
*
|
5108
5108
|
*
|
@@ -5941,7 +5941,7 @@
|
|
5941
5941
|
})(jQuery, window, document);
|
5942
5942
|
|
5943
5943
|
/*!
|
5944
|
-
* # Fomantic-UI 2.10.0-beta.
|
5944
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Dimmer
|
5945
5945
|
* https://github.com/fomantic/Fomantic-UI/
|
5946
5946
|
*
|
5947
5947
|
*
|
@@ -6641,7 +6641,7 @@
|
|
6641
6641
|
})(jQuery, window, document);
|
6642
6642
|
|
6643
6643
|
/*!
|
6644
|
-
* # Fomantic-UI 2.10.0-beta.
|
6644
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Dropdown
|
6645
6645
|
* https://github.com/fomantic/Fomantic-UI/
|
6646
6646
|
*
|
6647
6647
|
*
|
@@ -6874,7 +6874,7 @@
|
|
6874
6874
|
: [values];
|
6875
6875
|
$.each(values, function (index, value) {
|
6876
6876
|
if (module.get.item(value) === false) {
|
6877
|
-
html = settings.templates.addition(module.add.variables(message.addResult, value));
|
6877
|
+
html = settings.templates.addition(module.add.variables(message.addResult, settings.templates.escape(value, settings)));
|
6878
6878
|
$userChoice = $('<div />')
|
6879
6879
|
.html(html)
|
6880
6880
|
.attr('data-' + metadata.value, value)
|
@@ -7352,7 +7352,9 @@
|
|
7352
7352
|
module.remove.message();
|
7353
7353
|
}
|
7354
7354
|
if (settings.allowAdditions) {
|
7355
|
-
module.add.userSuggestion(
|
7355
|
+
module.add.userSuggestion(settings.preserveHTML
|
7356
|
+
? module.escape.htmlEntities(query)
|
7357
|
+
: query);
|
7356
7358
|
}
|
7357
7359
|
if (module.is.searchSelection() && module.can.show() && module.is.focusedOnSearch() && !module.is.empty()) {
|
7358
7360
|
module.show();
|
@@ -7435,7 +7437,7 @@
|
|
7435
7437
|
if (values.length === 0 && !settings.allowAdditions) {
|
7436
7438
|
module.add.message(message.noResults);
|
7437
7439
|
} else {
|
7438
|
-
let value = module.is.multiple() ? module.get.values() : module.get.value();
|
7440
|
+
let value = module.is.multiple() ? module.get.values(true) : module.get.value();
|
7439
7441
|
if (value !== '') {
|
7440
7442
|
module.verbose('Value(s) present after click icon, select value(s) in items');
|
7441
7443
|
module.set.selected(value, null, true, true);
|
@@ -7682,8 +7684,11 @@
|
|
7682
7684
|
let tokens = pasteValue.split(settings.delimiter);
|
7683
7685
|
let notFoundTokens = [];
|
7684
7686
|
tokens.forEach(function (value) {
|
7685
|
-
|
7686
|
-
|
7687
|
+
const valueTrimmed = settings.preserveHTML
|
7688
|
+
? module.escape.htmlEntities(value.trim())
|
7689
|
+
: value.trim();
|
7690
|
+
if (module.set.selected(valueTrimmed, null, false, true) === false) {
|
7691
|
+
notFoundTokens.push(valueTrimmed);
|
7687
7692
|
}
|
7688
7693
|
});
|
7689
7694
|
event.preventDefault();
|
@@ -8421,7 +8426,9 @@
|
|
8421
8426
|
return $module.data(metadata.placeholderText) || '';
|
8422
8427
|
},
|
8423
8428
|
text: function () {
|
8424
|
-
return settings.preserveHTML
|
8429
|
+
return settings.preserveHTML
|
8430
|
+
? $text.html()
|
8431
|
+
: $text.text();
|
8425
8432
|
},
|
8426
8433
|
query: function () {
|
8427
8434
|
return String($search.val()).trim();
|
@@ -8590,7 +8597,7 @@
|
|
8590
8597
|
.find('option')
|
8591
8598
|
.each(function () {
|
8592
8599
|
let $option = $(this);
|
8593
|
-
let name = $option.html();
|
8600
|
+
let name = module.escape.assumeUnescapedAmpLtGt($option.html());
|
8594
8601
|
let disabled = $option.attr('disabled');
|
8595
8602
|
let value = $option.attr('value') !== undefined
|
8596
8603
|
? $option.attr('value')
|
@@ -8613,7 +8620,7 @@
|
|
8613
8620
|
values.push({
|
8614
8621
|
name: name,
|
8615
8622
|
value: value,
|
8616
|
-
text:
|
8623
|
+
text: text,
|
8617
8624
|
disabled: disabled,
|
8618
8625
|
});
|
8619
8626
|
}
|
@@ -8692,7 +8699,7 @@
|
|
8692
8699
|
return;
|
8693
8700
|
}
|
8694
8701
|
if (isMultiple) {
|
8695
|
-
if ($.inArray(module.escape.htmlEntities(String(optionValue)), value.map(String)
|
8702
|
+
if ($.inArray(module.escape.htmlEntities(String(optionValue)), value.map(String)) !== -1) {
|
8696
8703
|
$selectedItem = $selectedItem
|
8697
8704
|
? $selectedItem.add($choice)
|
8698
8705
|
: $choice;
|
@@ -9174,7 +9181,6 @@
|
|
9174
9181
|
} else {
|
9175
9182
|
$input.addClass(className.noselection);
|
9176
9183
|
}
|
9177
|
-
let escapedValue = module.escape.value(value);
|
9178
9184
|
let hasInput = $input.length > 0;
|
9179
9185
|
let currentValue = module.get.values();
|
9180
9186
|
let stringValue = value !== undefined
|
@@ -9192,10 +9198,10 @@
|
|
9192
9198
|
module.debug('Adding user option', value);
|
9193
9199
|
module.add.optionValue(value);
|
9194
9200
|
}
|
9195
|
-
module.debug('Updating input value',
|
9201
|
+
module.debug('Updating input value', value, currentValue);
|
9196
9202
|
internalChange = true;
|
9197
9203
|
$input
|
9198
|
-
.val(
|
9204
|
+
.val(value);
|
9199
9205
|
if (settings.fireOnInit === false && module.is.initialLoad()) {
|
9200
9206
|
module.debug('Input native change event ignored on initial load');
|
9201
9207
|
} else if (preventChangeTrigger !== true) {
|
@@ -9203,8 +9209,8 @@
|
|
9203
9209
|
}
|
9204
9210
|
internalChange = false;
|
9205
9211
|
} else {
|
9206
|
-
module.verbose('Storing value in metadata',
|
9207
|
-
if (
|
9212
|
+
module.verbose('Storing value in metadata', value, $input);
|
9213
|
+
if (value !== currentValue) {
|
9208
9214
|
$module.data(metadata.value, stringValue);
|
9209
9215
|
}
|
9210
9216
|
}
|
@@ -9329,19 +9335,18 @@
|
|
9329
9335
|
let $next = module.is.searchSelection()
|
9330
9336
|
? $search
|
9331
9337
|
: $text;
|
9332
|
-
let escapedValue = module.escape.value(value);
|
9333
9338
|
let $label;
|
9334
9339
|
if (settings.ignoreCase) {
|
9335
|
-
|
9340
|
+
value = value.toLowerCase();
|
9336
9341
|
}
|
9337
9342
|
$label = $('<a />')
|
9338
9343
|
.addClass(className.label)
|
9339
|
-
.attr('data-' + metadata.value,
|
9340
|
-
.html(templates.label(
|
9341
|
-
$label = settings.onLabelCreate.call($label,
|
9344
|
+
.attr('data-' + metadata.value, value)
|
9345
|
+
.html(templates.label(value, text, settings));
|
9346
|
+
$label = settings.onLabelCreate.call($label, value, text);
|
9342
9347
|
|
9343
9348
|
if (module.has.label(value)) {
|
9344
|
-
module.debug('User selection already exists, skipping',
|
9349
|
+
module.debug('User selection already exists, skipping', value);
|
9345
9350
|
|
9346
9351
|
return;
|
9347
9352
|
}
|
@@ -9380,8 +9385,7 @@
|
|
9380
9385
|
}
|
9381
9386
|
},
|
9382
9387
|
optionValue: function (value) {
|
9383
|
-
let
|
9384
|
-
let $option = $input.find('option[value="' + CSS.escape(escapedValue) + '"]');
|
9388
|
+
let $option = $input.find('option[value="' + CSS.escape(value) + '"]');
|
9385
9389
|
let hasOption = $option.length > 0;
|
9386
9390
|
if (hasOption) {
|
9387
9391
|
return;
|
@@ -9393,7 +9397,7 @@
|
|
9393
9397
|
$input.find('option.' + className.addition).remove();
|
9394
9398
|
}
|
9395
9399
|
$('<option/>')
|
9396
|
-
.prop('value',
|
9400
|
+
.prop('value', value)
|
9397
9401
|
.addClass(className.addition)
|
9398
9402
|
.text(value)
|
9399
9403
|
.appendTo($input);
|
@@ -9422,7 +9426,7 @@
|
|
9422
9426
|
.attr('data-' + metadata.text, value)
|
9423
9427
|
.removeClass(className.filtered);
|
9424
9428
|
if (!settings.hideAdditions) {
|
9425
|
-
html = settings.templates.addition(module.add.variables(message.addResult, value));
|
9429
|
+
html = settings.templates.addition(module.add.variables(message.addResult, settings.templates.escape(value, settings)));
|
9426
9430
|
$addition
|
9427
9431
|
.html(html);
|
9428
9432
|
}
|
@@ -9557,8 +9561,7 @@
|
|
9557
9561
|
module.remove.empty();
|
9558
9562
|
},
|
9559
9563
|
optionValue: function (value) {
|
9560
|
-
let
|
9561
|
-
let $option = $input.find('option[value="' + CSS.escape(escapedValue) + '"]');
|
9564
|
+
let $option = $input.find('option[value="' + CSS.escape(value) + '"]');
|
9562
9565
|
let hasOption = $option.length > 0;
|
9563
9566
|
if (!hasOption || !$option.hasClass(className.addition)) {
|
9564
9567
|
return;
|
@@ -9566,7 +9569,7 @@
|
|
9566
9569
|
// temporarily disconnect observer
|
9567
9570
|
module.disconnect.selectObserver();
|
9568
9571
|
$option.remove();
|
9569
|
-
module.verbose('Removing user addition as an <option>',
|
9572
|
+
module.verbose('Removing user addition as an <option>', value);
|
9570
9573
|
module.observe.select();
|
9571
9574
|
},
|
9572
9575
|
message: function () {
|
@@ -9655,9 +9658,8 @@
|
|
9655
9658
|
return values;
|
9656
9659
|
},
|
9657
9660
|
label: function (value, shouldAnimate) {
|
9658
|
-
let escapedValue = module.escape.value(value);
|
9659
9661
|
let $labels = $module.find(selector.label);
|
9660
|
-
let $removedLabel = $labels.filter('[data-' + metadata.value + '="' + CSS.escape(settings.ignoreCase ?
|
9662
|
+
let $removedLabel = $labels.filter('[data-' + metadata.value + '="' + CSS.escape(settings.ignoreCase ? value.toLowerCase() : value) + '"]');
|
9661
9663
|
module.verbose('Removing label', $removedLabel);
|
9662
9664
|
$removedLabel.remove();
|
9663
9665
|
},
|
@@ -9768,13 +9770,12 @@
|
|
9768
9770
|
return $menu.children(selector.message).length > 0;
|
9769
9771
|
},
|
9770
9772
|
label: function (value) {
|
9771
|
-
let escapedValue = module.escape.value(value);
|
9772
9773
|
let $labels = $module.find(selector.label);
|
9773
9774
|
if (settings.ignoreCase) {
|
9774
|
-
|
9775
|
+
value = value.toLowerCase();
|
9775
9776
|
}
|
9776
9777
|
|
9777
|
-
return $labels.filter('[data-' + metadata.value + '="' + CSS.escape(
|
9778
|
+
return $labels.filter('[data-' + metadata.value + '="' + CSS.escape(value) + '"]').length > 0;
|
9778
9779
|
},
|
9779
9780
|
maxSelections: function () {
|
9780
9781
|
return settings.maxSelections && module.get.selectionCount() >= settings.maxSelections;
|
@@ -10179,38 +10180,13 @@
|
|
10179
10180
|
},
|
10180
10181
|
|
10181
10182
|
escape: {
|
10182
|
-
value: function (value) {
|
10183
|
-
let multipleValues = Array.isArray(value);
|
10184
|
-
let stringValue = typeof value === 'string';
|
10185
|
-
let isUnparsable = !stringValue && !multipleValues;
|
10186
|
-
let hasQuotes = stringValue && value.search(regExp.quote) !== -1;
|
10187
|
-
let values = [];
|
10188
|
-
if (isUnparsable || !hasQuotes) {
|
10189
|
-
return value;
|
10190
|
-
}
|
10191
|
-
module.debug('Encoding quote values for use in select', value);
|
10192
|
-
if (multipleValues) {
|
10193
|
-
$.each(value, function (index, value) {
|
10194
|
-
values.push(value.replace(regExp.quote, '"'));
|
10195
|
-
});
|
10196
|
-
|
10197
|
-
return values;
|
10198
|
-
}
|
10199
|
-
|
10200
|
-
return value.replace(regExp.quote, '"');
|
10201
|
-
},
|
10202
10183
|
string: function (text) {
|
10203
10184
|
text = String(text);
|
10204
10185
|
|
10205
10186
|
return text.replace(regExp.escape, '\\$&');
|
10206
10187
|
},
|
10207
|
-
htmlEntities: function (string
|
10208
|
-
|
10209
|
-
|
10210
|
-
const badChars = forceAmpersand
|
10211
|
-
? /["&'<>]/g
|
10212
|
-
: /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
|
10213
|
-
const escape = {
|
10188
|
+
htmlEntities: function (string) {
|
10189
|
+
const escapeMap = {
|
10214
10190
|
'"': '"',
|
10215
10191
|
'&': '&',
|
10216
10192
|
"'": ''',
|
@@ -10218,7 +10194,23 @@
|
|
10218
10194
|
'>': '>',
|
10219
10195
|
};
|
10220
10196
|
|
10221
|
-
return String(string).replace(
|
10197
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
10198
|
+
},
|
10199
|
+
|
10200
|
+
// https://github.com/fomantic/Fomantic-UI/issues/2782
|
10201
|
+
// https://jsfiddle.net/3efL7jnt/
|
10202
|
+
assumeUnescapedAmpLtGt: function (string) {
|
10203
|
+
if (settings.preserveHTML) {
|
10204
|
+
return string;
|
10205
|
+
}
|
10206
|
+
|
10207
|
+
const unescapeMap = {
|
10208
|
+
'&': '&',
|
10209
|
+
'<': '<',
|
10210
|
+
'>': '>',
|
10211
|
+
};
|
10212
|
+
|
10213
|
+
return string.replace(/&(?:amp|lt|gt);/g, (v) => unescapeMap[v]);
|
10222
10214
|
},
|
10223
10215
|
},
|
10224
10216
|
|
@@ -10431,7 +10423,7 @@
|
|
10431
10423
|
|
10432
10424
|
maxSelections: false, // When set to a number, limits the number of selections to this count
|
10433
10425
|
useLabels: true, // whether multiple select should filter currently active selections from choices
|
10434
|
-
delimiter: ',', // when multiselect uses normal <input
|
10426
|
+
delimiter: ',', // when multiselect uses normal <input>, the values will be delimited with this character
|
10435
10427
|
|
10436
10428
|
showOnFocus: false, // show the menu on focus
|
10437
10429
|
allowReselection: false, // whether current value should trigger callbacks when reselected
|
@@ -10508,7 +10500,6 @@
|
|
10508
10500
|
|
10509
10501
|
regExp: {
|
10510
10502
|
escape: /[\s#$()*+,.:=?@[\\\]^{|}-]/g,
|
10511
|
-
quote: /"/g,
|
10512
10503
|
},
|
10513
10504
|
|
10514
10505
|
metadata: {
|
@@ -10622,8 +10613,7 @@
|
|
10622
10613
|
return string;
|
10623
10614
|
}
|
10624
10615
|
|
10625
|
-
const
|
10626
|
-
const escape = {
|
10616
|
+
const escapeMap = {
|
10627
10617
|
'"': '"',
|
10628
10618
|
'&': '&',
|
10629
10619
|
"'": ''',
|
@@ -10631,7 +10621,7 @@
|
|
10631
10621
|
'>': '>',
|
10632
10622
|
};
|
10633
10623
|
|
10634
|
-
return String(string).replace(
|
10624
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
10635
10625
|
},
|
10636
10626
|
// generates dropdown from select values
|
10637
10627
|
dropdown: function (select, settings) {
|
@@ -10755,7 +10745,7 @@
|
|
10755
10745
|
})(jQuery, window, document);
|
10756
10746
|
|
10757
10747
|
/*!
|
10758
|
-
* # Fomantic-UI 2.10.0-beta.
|
10748
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Embed
|
10759
10749
|
* https://github.com/fomantic/Fomantic-UI/
|
10760
10750
|
*
|
10761
10751
|
*
|
@@ -11368,8 +11358,7 @@
|
|
11368
11358
|
|
11369
11359
|
templates: {
|
11370
11360
|
escape: function (string) {
|
11371
|
-
const
|
11372
|
-
const escape = {
|
11361
|
+
const escapeMap = {
|
11373
11362
|
'"': '"',
|
11374
11363
|
'&': '&',
|
11375
11364
|
"'": ''',
|
@@ -11377,7 +11366,7 @@
|
|
11377
11366
|
'>': '>',
|
11378
11367
|
};
|
11379
11368
|
|
11380
|
-
return String(string).replace(
|
11369
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
11381
11370
|
},
|
11382
11371
|
iframe: function (url, parameters) {
|
11383
11372
|
let src = url;
|
@@ -11415,7 +11404,7 @@
|
|
11415
11404
|
})(jQuery, window, document);
|
11416
11405
|
|
11417
11406
|
/*!
|
11418
|
-
* # Fomantic-UI 2.10.0-beta.
|
11407
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Flyout
|
11419
11408
|
* https://github.com/fomantic/Fomantic-UI/
|
11420
11409
|
*
|
11421
11410
|
*
|
@@ -12439,8 +12428,7 @@
|
|
12439
12428
|
return string;
|
12440
12429
|
}
|
12441
12430
|
|
12442
|
-
const
|
12443
|
-
const escape = {
|
12431
|
+
const escapeMap = {
|
12444
12432
|
'"': '"',
|
12445
12433
|
'&': '&',
|
12446
12434
|
"'": ''',
|
@@ -12448,7 +12436,7 @@
|
|
12448
12436
|
'>': '>',
|
12449
12437
|
};
|
12450
12438
|
|
12451
|
-
return String(string).replace(
|
12439
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
12452
12440
|
},
|
12453
12441
|
},
|
12454
12442
|
|
@@ -12838,7 +12826,7 @@
|
|
12838
12826
|
})(jQuery, window, document);
|
12839
12827
|
|
12840
12828
|
/*!
|
12841
|
-
* # Fomantic-UI 2.10.0-beta.
|
12829
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Modal
|
12842
12830
|
* https://github.com/fomantic/Fomantic-UI/
|
12843
12831
|
*
|
12844
12832
|
*
|
@@ -13713,8 +13701,7 @@
|
|
13713
13701
|
return string;
|
13714
13702
|
}
|
13715
13703
|
|
13716
|
-
const
|
13717
|
-
const escape = {
|
13704
|
+
const escapeMap = {
|
13718
13705
|
'"': '"',
|
13719
13706
|
'&': '&',
|
13720
13707
|
"'": ''',
|
@@ -13722,7 +13709,7 @@
|
|
13722
13709
|
'>': '>',
|
13723
13710
|
};
|
13724
13711
|
|
13725
|
-
return String(string).replace(
|
13712
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
13726
13713
|
},
|
13727
13714
|
},
|
13728
13715
|
can: {
|
@@ -14353,7 +14340,7 @@
|
|
14353
14340
|
})(jQuery, window, document);
|
14354
14341
|
|
14355
14342
|
/*!
|
14356
|
-
* # Fomantic-UI 2.10.0-beta.
|
14343
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Nag
|
14357
14344
|
* https://github.com/fomantic/Fomantic-UI/
|
14358
14345
|
*
|
14359
14346
|
*
|
@@ -14890,7 +14877,7 @@
|
|
14890
14877
|
})(jQuery, window, document);
|
14891
14878
|
|
14892
14879
|
/*!
|
14893
|
-
* # Fomantic-UI 2.10.0-beta.
|
14880
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Popup
|
14894
14881
|
* https://github.com/fomantic/Fomantic-UI/
|
14895
14882
|
*
|
14896
14883
|
*
|
@@ -16346,8 +16333,7 @@
|
|
16346
16333
|
|
16347
16334
|
templates: {
|
16348
16335
|
escape: function (string) {
|
16349
|
-
const
|
16350
|
-
const escape = {
|
16336
|
+
const escapeMap = {
|
16351
16337
|
'"': '"',
|
16352
16338
|
'&': '&',
|
16353
16339
|
"'": ''',
|
@@ -16355,7 +16341,7 @@
|
|
16355
16341
|
'>': '>',
|
16356
16342
|
};
|
16357
16343
|
|
16358
|
-
return String(string).replace(
|
16344
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
16359
16345
|
},
|
16360
16346
|
popup: function (text) {
|
16361
16347
|
let html = '';
|
@@ -16379,7 +16365,7 @@
|
|
16379
16365
|
})(jQuery, window, document);
|
16380
16366
|
|
16381
16367
|
/*!
|
16382
|
-
* # Fomantic-UI 2.10.0-beta.
|
16368
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Progress
|
16383
16369
|
* https://github.com/fomantic/Fomantic-UI/
|
16384
16370
|
*
|
16385
16371
|
*
|
@@ -17324,7 +17310,7 @@
|
|
17324
17310
|
})(jQuery, window, document);
|
17325
17311
|
|
17326
17312
|
/*!
|
17327
|
-
* # Fomantic-UI 2.10.0-beta.
|
17313
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Slider
|
17328
17314
|
* https://github.com/fomantic/Fomantic-UI/
|
17329
17315
|
*
|
17330
17316
|
*
|
@@ -18788,7 +18774,7 @@
|
|
18788
18774
|
})(jQuery, window, document);
|
18789
18775
|
|
18790
18776
|
/*!
|
18791
|
-
* # Fomantic-UI 2.10.0-beta.
|
18777
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Rating
|
18792
18778
|
* https://github.com/fomantic/Fomantic-UI/
|
18793
18779
|
*
|
18794
18780
|
*
|
@@ -19269,8 +19255,7 @@
|
|
19269
19255
|
|
19270
19256
|
templates: {
|
19271
19257
|
escape: function (string) {
|
19272
|
-
const
|
19273
|
-
const escape = {
|
19258
|
+
const escapeMap = {
|
19274
19259
|
'"': '"',
|
19275
19260
|
'&': '&',
|
19276
19261
|
"'": ''',
|
@@ -19278,7 +19263,7 @@
|
|
19278
19263
|
'>': '>',
|
19279
19264
|
};
|
19280
19265
|
|
19281
|
-
return String(string).replace(
|
19266
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
19282
19267
|
},
|
19283
19268
|
icon: function (maxRating, iconClass) {
|
19284
19269
|
let icon = 1;
|
@@ -19297,7 +19282,7 @@
|
|
19297
19282
|
})(jQuery, window, document);
|
19298
19283
|
|
19299
19284
|
/*!
|
19300
|
-
* # Fomantic-UI 2.10.0-beta.
|
19285
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Search
|
19301
19286
|
* https://github.com/fomantic/Fomantic-UI/
|
19302
19287
|
*
|
19303
19288
|
*
|
@@ -20686,8 +20671,7 @@
|
|
20686
20671
|
return string;
|
20687
20672
|
}
|
20688
20673
|
|
20689
|
-
const
|
20690
|
-
const escape = {
|
20674
|
+
const escapeMap = {
|
20691
20675
|
'"': '"',
|
20692
20676
|
'&': '&',
|
20693
20677
|
"'": ''',
|
@@ -20695,7 +20679,7 @@
|
|
20695
20679
|
'>': '>',
|
20696
20680
|
};
|
20697
20681
|
|
20698
|
-
string = String(string).replace(
|
20682
|
+
string = String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
20699
20683
|
|
20700
20684
|
// FUI controlled HTML is still allowed
|
20701
20685
|
string = string.replace(/<(\/)*mark>/g, '<$1mark>');
|
@@ -20837,7 +20821,7 @@
|
|
20837
20821
|
})(jQuery, window, document);
|
20838
20822
|
|
20839
20823
|
/*!
|
20840
|
-
* # Fomantic-UI 2.10.0-beta.
|
20824
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Shape
|
20841
20825
|
* https://github.com/fomantic/Fomantic-UI/
|
20842
20826
|
*
|
20843
20827
|
*
|
@@ -21569,7 +21553,7 @@
|
|
21569
21553
|
})(jQuery, window, document);
|
21570
21554
|
|
21571
21555
|
/*!
|
21572
|
-
* # Fomantic-UI 2.10.0-beta.
|
21556
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Sidebar
|
21573
21557
|
* https://github.com/fomantic/Fomantic-UI/
|
21574
21558
|
*
|
21575
21559
|
*
|
@@ -22542,7 +22526,7 @@
|
|
22542
22526
|
})(jQuery, window, document);
|
22543
22527
|
|
22544
22528
|
/*!
|
22545
|
-
* # Fomantic-UI 2.10.0-beta.
|
22529
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Sticky
|
22546
22530
|
* https://github.com/fomantic/Fomantic-UI/
|
22547
22531
|
*
|
22548
22532
|
*
|
@@ -23415,7 +23399,7 @@
|
|
23415
23399
|
})(jQuery, window, document);
|
23416
23400
|
|
23417
23401
|
/*!
|
23418
|
-
* # Fomantic-UI 2.10.0-beta.
|
23402
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Tab
|
23419
23403
|
* https://github.com/fomantic/Fomantic-UI/
|
23420
23404
|
*
|
23421
23405
|
*
|
@@ -24315,7 +24299,7 @@
|
|
24315
24299
|
})(jQuery, window, document);
|
24316
24300
|
|
24317
24301
|
/*!
|
24318
|
-
* # Fomantic-UI 2.10.0-beta.
|
24302
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Toast
|
24319
24303
|
* https://github.com/fomantic/Fomantic-UI/
|
24320
24304
|
*
|
24321
24305
|
*
|
@@ -24897,8 +24881,7 @@
|
|
24897
24881
|
return string;
|
24898
24882
|
}
|
24899
24883
|
|
24900
|
-
const
|
24901
|
-
const escape = {
|
24884
|
+
const escapeMap = {
|
24902
24885
|
'"': '"',
|
24903
24886
|
'&': '&',
|
24904
24887
|
"'": ''',
|
@@ -24906,7 +24889,7 @@
|
|
24906
24889
|
'>': '>',
|
24907
24890
|
};
|
24908
24891
|
|
24909
|
-
return String(string).replace(
|
24892
|
+
return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
|
24910
24893
|
},
|
24911
24894
|
},
|
24912
24895
|
|
@@ -25242,7 +25225,7 @@
|
|
25242
25225
|
})(jQuery, window, document);
|
25243
25226
|
|
25244
25227
|
/*!
|
25245
|
-
* # Fomantic-UI 2.10.0-beta.
|
25228
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Transition
|
25246
25229
|
* https://github.com/fomantic/Fomantic-UI/
|
25247
25230
|
*
|
25248
25231
|
*
|
@@ -26222,7 +26205,7 @@
|
|
26222
26205
|
})(jQuery, window, document);
|
26223
26206
|
|
26224
26207
|
/*!
|
26225
|
-
* # Fomantic-UI 2.10.0-beta.
|
26208
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - API
|
26226
26209
|
* https://github.com/fomantic/Fomantic-UI/
|
26227
26210
|
*
|
26228
26211
|
*
|
@@ -27395,7 +27378,7 @@
|
|
27395
27378
|
})(jQuery, window, document);
|
27396
27379
|
|
27397
27380
|
/*!
|
27398
|
-
* # Fomantic-UI 2.10.0-beta.
|
27381
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - State
|
27399
27382
|
* https://github.com/fomantic/Fomantic-UI/
|
27400
27383
|
*
|
27401
27384
|
*
|
@@ -28063,7 +28046,7 @@
|
|
28063
28046
|
})(jQuery, window, document);
|
28064
28047
|
|
28065
28048
|
/*!
|
28066
|
-
* # Fomantic-UI 2.10.0-beta.
|
28049
|
+
* # Fomantic-UI 2.10.0-beta.14+ea33639 - Visibility
|
28067
28050
|
* https://github.com/fomantic/Fomantic-UI/
|
28068
28051
|
*
|
28069
28052
|
*
|
package/dist/semantic.min.css
CHANGED