fomantic-ui 2.9.3-beta.1 → 2.9.3-beta.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/.all-contributorsrc +9 -0
- package/CONTRIBUTORS.md +102 -99
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -5
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +14 -8
- 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 +6 -6
- package/dist/components/calendar.js +1 -6
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- 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 -5
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- 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 -5
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- 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 +29 -14
- 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 -6
- 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 +38 -27
- 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 +31 -23
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- 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 +38 -26
- 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 +16 -8
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- 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 +18 -12
- 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 -6
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- 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 -5
- 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 +1 -5
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +3 -2
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -5
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +15 -8
- 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.css +1 -1
- package/dist/components/slider.js +1 -6
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +23 -20
- package/dist/components/state.min.js +2 -2
- 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 +17 -16
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +14 -6
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- 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 +17 -9
- 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 -5
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +15 -6
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +60 -59
- package/dist/semantic.js +298 -244
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/behaviors/api.js +13 -7
- package/src/definitions/behaviors/form.js +30 -22
- package/src/definitions/behaviors/state.js +22 -19
- package/src/definitions/behaviors/visibility.js +14 -5
- package/src/definitions/elements/segment.less +2 -1
- package/src/definitions/modules/accordion.js +0 -4
- package/src/definitions/modules/calendar.js +0 -5
- package/src/definitions/modules/calendar.less +1 -1
- package/src/definitions/modules/checkbox.js +0 -4
- package/src/definitions/modules/dimmer.js +0 -4
- package/src/definitions/modules/dropdown.js +28 -13
- package/src/definitions/modules/embed.js +0 -5
- package/src/definitions/modules/flyout.js +37 -26
- package/src/definitions/modules/modal.js +37 -25
- package/src/definitions/modules/nag.js +15 -7
- package/src/definitions/modules/popup.js +17 -11
- package/src/definitions/modules/progress.js +0 -5
- package/src/definitions/modules/rating.js +0 -4
- package/src/definitions/modules/search.js +0 -4
- package/src/definitions/modules/shape.js +0 -4
- package/src/definitions/modules/sidebar.js +14 -7
- package/src/definitions/modules/slider.js +0 -5
- package/src/definitions/modules/sticky.js +16 -15
- package/src/definitions/modules/tab.js +13 -5
- package/src/definitions/modules/toast.js +16 -8
- package/src/definitions/modules/transition.js +0 -4
package/dist/semantic.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.3-beta.
|
2
|
+
* # Fomantic UI - 2.9.3-beta.3+880333c
|
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.9.3-beta.
|
12
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Site
|
13
13
|
* https://github.com/fomantic/Fomantic-UI/
|
14
14
|
*
|
15
15
|
*
|
@@ -463,7 +463,7 @@
|
|
463
463
|
})(jQuery, window, document);
|
464
464
|
|
465
465
|
/*!
|
466
|
-
* # Fomantic-UI 2.9.3-beta.
|
466
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Form Validation
|
467
467
|
* https://github.com/fomantic/Fomantic-UI/
|
468
468
|
*
|
469
469
|
*
|
@@ -486,7 +486,7 @@
|
|
486
486
|
$.fn.form = function (parameters) {
|
487
487
|
var
|
488
488
|
$allModules = $(this),
|
489
|
-
|
489
|
+
$window = $(window),
|
490
490
|
|
491
491
|
time = Date.now(),
|
492
492
|
performance = [],
|
@@ -525,6 +525,8 @@
|
|
525
525
|
namespace,
|
526
526
|
moduleNamespace,
|
527
527
|
eventNamespace,
|
528
|
+
attachEventsSelector,
|
529
|
+
attachEventsAction,
|
528
530
|
|
529
531
|
submitting = false,
|
530
532
|
dirty = false,
|
@@ -607,6 +609,9 @@
|
|
607
609
|
module[action]();
|
608
610
|
event.preventDefault();
|
609
611
|
});
|
612
|
+
|
613
|
+
attachEventsSelector = selector;
|
614
|
+
attachEventsAction = action;
|
610
615
|
},
|
611
616
|
|
612
617
|
bindEvents: function () {
|
@@ -632,10 +637,14 @@
|
|
632
637
|
|
633
638
|
// Dirty events
|
634
639
|
if (settings.preventLeaving) {
|
635
|
-
$
|
640
|
+
$window.on('beforeunload' + eventNamespace, module.event.beforeUnload);
|
636
641
|
}
|
637
642
|
|
638
|
-
$field.on('change
|
643
|
+
$field.on('change' + eventNamespace
|
644
|
+
+ ' click' + eventNamespace
|
645
|
+
+ ' keyup' + eventNamespace
|
646
|
+
+ ' keydown' + eventNamespace
|
647
|
+
+ ' blur' + eventNamespace, function (e) {
|
639
648
|
module.determine.isDirty();
|
640
649
|
});
|
641
650
|
|
@@ -646,6 +655,9 @@
|
|
646
655
|
$module.on('clean' + eventNamespace, function (e) {
|
647
656
|
settings.onClean.call();
|
648
657
|
});
|
658
|
+
if (attachEventsSelector) {
|
659
|
+
module.attachEvents(attachEventsSelector, attachEventsAction);
|
660
|
+
}
|
649
661
|
},
|
650
662
|
|
651
663
|
clear: function () {
|
@@ -694,6 +706,7 @@
|
|
694
706
|
isCheckbox = $field.is(selector.checkbox),
|
695
707
|
isDropdown = $element.is(selector.uiDropdown) && module.can.useElement('dropdown'),
|
696
708
|
isCalendar = $calendar.length > 0 && module.can.useElement('calendar'),
|
709
|
+
isFile = $field.is(selector.file),
|
697
710
|
isErrored = $fieldGroup.hasClass(className.error)
|
698
711
|
;
|
699
712
|
if (defaultValue === undefined) {
|
@@ -714,7 +727,7 @@
|
|
714
727
|
$calendar.calendar('set date', defaultValue);
|
715
728
|
} else {
|
716
729
|
module.verbose('Resetting field value', $field, defaultValue);
|
717
|
-
$field.val(defaultValue);
|
730
|
+
$field.val(isFile ? '' : defaultValue);
|
718
731
|
}
|
719
732
|
});
|
720
733
|
module.remove.states();
|
@@ -850,6 +863,13 @@
|
|
850
863
|
$module.off(eventNamespace);
|
851
864
|
$field.off(eventNamespace);
|
852
865
|
$submit.off(eventNamespace);
|
866
|
+
if (settings.preventLeaving) {
|
867
|
+
$window.off(eventNamespace);
|
868
|
+
}
|
869
|
+
if (attachEventsSelector) {
|
870
|
+
$(attachEventsSelector).off(eventNamespace);
|
871
|
+
attachEventsSelector = undefined;
|
872
|
+
}
|
853
873
|
},
|
854
874
|
|
855
875
|
event: {
|
@@ -951,18 +971,7 @@
|
|
951
971
|
return rule.type;
|
952
972
|
},
|
953
973
|
changeEvent: function (type, $input) {
|
954
|
-
|
955
|
-
return 'change';
|
956
|
-
}
|
957
|
-
|
958
|
-
return module.get.inputEvent();
|
959
|
-
},
|
960
|
-
inputEvent: function () {
|
961
|
-
return document.createElement('input').oninput !== undefined
|
962
|
-
? 'input'
|
963
|
-
: (document.createElement('input').onpropertychange !== undefined
|
964
|
-
? 'propertychange'
|
965
|
-
: 'keyup');
|
974
|
+
return ['file', 'checkbox', 'radio', 'hidden'].indexOf(type) >= 0 || $input.is('select') ? 'change' : 'input';
|
966
975
|
},
|
967
976
|
fieldsFromShorthand: function (fields) {
|
968
977
|
var
|
@@ -1567,6 +1576,7 @@
|
|
1567
1576
|
$field = module.get.field(key),
|
1568
1577
|
$element = $field.parent(),
|
1569
1578
|
$calendar = $field.closest(selector.uiCalendar),
|
1579
|
+
isFile = $field.is(selector.file),
|
1570
1580
|
isMultiple = Array.isArray(value),
|
1571
1581
|
isCheckbox = $element.is(selector.uiCheckbox) && module.can.useElement('checkbox'),
|
1572
1582
|
isDropdown = $element.is(selector.uiDropdown) && module.can.useElement('dropdown'),
|
@@ -1609,7 +1619,7 @@
|
|
1609
1619
|
$calendar.calendar('set date', value);
|
1610
1620
|
} else {
|
1611
1621
|
module.verbose('Setting field value', value, $field);
|
1612
|
-
$field.val(value);
|
1622
|
+
$field.val(isFile ? '' : value);
|
1613
1623
|
}
|
1614
1624
|
}
|
1615
1625
|
});
|
@@ -1937,9 +1947,6 @@
|
|
1937
1947
|
totalTime += data['Execution Time'];
|
1938
1948
|
});
|
1939
1949
|
title += ' ' + totalTime + 'ms';
|
1940
|
-
if (moduleSelector) {
|
1941
|
-
title += ' \'' + moduleSelector + '\'';
|
1942
|
-
}
|
1943
1950
|
if ($allModules.length > 1) {
|
1944
1951
|
title += ' (' + $allModules.length + ')';
|
1945
1952
|
}
|
@@ -2115,9 +2122,10 @@
|
|
2115
2122
|
selector: {
|
2116
2123
|
checkbox: 'input[type="checkbox"], input[type="radio"]',
|
2117
2124
|
clear: '.clear',
|
2118
|
-
field: 'input:not(.search):not([type="
|
2125
|
+
field: 'input:not(.search):not([type="reset"]):not([type="button"]):not([type="submit"]), textarea, select',
|
2126
|
+
file: 'input[type="file"]',
|
2119
2127
|
group: '.field',
|
2120
|
-
input: 'input
|
2128
|
+
input: 'input',
|
2121
2129
|
message: '.error.message',
|
2122
2130
|
prompt: '.prompt.label',
|
2123
2131
|
radio: 'input[type="radio"]',
|
@@ -2569,7 +2577,7 @@
|
|
2569
2577
|
})(jQuery, window, document);
|
2570
2578
|
|
2571
2579
|
/*!
|
2572
|
-
* # Fomantic-UI 2.9.3-beta.
|
2580
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Accordion
|
2573
2581
|
* https://github.com/fomantic/Fomantic-UI/
|
2574
2582
|
*
|
2575
2583
|
*
|
@@ -2615,7 +2623,6 @@
|
|
2615
2623
|
|
2616
2624
|
eventNamespace = '.' + namespace,
|
2617
2625
|
moduleNamespace = 'module-' + namespace,
|
2618
|
-
moduleSelector = $allModules.selector || '',
|
2619
2626
|
|
2620
2627
|
$module = $(this),
|
2621
2628
|
$title = $module.find(selector.title),
|
@@ -3022,9 +3029,6 @@
|
|
3022
3029
|
totalTime += data['Execution Time'];
|
3023
3030
|
});
|
3024
3031
|
title += ' ' + totalTime + 'ms';
|
3025
|
-
if (moduleSelector) {
|
3026
|
-
title += ' \'' + moduleSelector + '\'';
|
3027
|
-
}
|
3028
3032
|
if (performance.length > 0) {
|
3029
3033
|
console.groupCollapsed(title);
|
3030
3034
|
if (console.table) {
|
@@ -3167,7 +3171,7 @@
|
|
3167
3171
|
})(jQuery, window, document);
|
3168
3172
|
|
3169
3173
|
/*!
|
3170
|
-
* # Fomantic-UI 2.9.3-beta.
|
3174
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Calendar
|
3171
3175
|
* https://github.com/fomantic/Fomantic-UI/
|
3172
3176
|
*
|
3173
3177
|
*
|
@@ -3192,8 +3196,6 @@
|
|
3192
3196
|
$allModules = $(this),
|
3193
3197
|
$document = $(document),
|
3194
3198
|
|
3195
|
-
moduleSelector = $allModules.selector || '',
|
3196
|
-
|
3197
3199
|
time = Date.now(),
|
3198
3200
|
performance = [],
|
3199
3201
|
|
@@ -4662,9 +4664,6 @@
|
|
4662
4664
|
totalTime += data['Execution Time'];
|
4663
4665
|
});
|
4664
4666
|
title += ' ' + totalTime + 'ms';
|
4665
|
-
if (moduleSelector) {
|
4666
|
-
title += ' \'' + moduleSelector + '\'';
|
4667
|
-
}
|
4668
4667
|
if (performance.length > 0) {
|
4669
4668
|
console.groupCollapsed(title);
|
4670
4669
|
if (console.table) {
|
@@ -5183,7 +5182,7 @@
|
|
5183
5182
|
})(jQuery, window, document);
|
5184
5183
|
|
5185
5184
|
/*!
|
5186
|
-
* # Fomantic-UI 2.9.3-beta.
|
5185
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Checkbox
|
5187
5186
|
* https://github.com/fomantic/Fomantic-UI/
|
5188
5187
|
*
|
5189
5188
|
*
|
@@ -5206,7 +5205,6 @@
|
|
5206
5205
|
$.fn.checkbox = function (parameters) {
|
5207
5206
|
var
|
5208
5207
|
$allModules = $(this),
|
5209
|
-
moduleSelector = $allModules.selector || '',
|
5210
5208
|
|
5211
5209
|
time = Date.now(),
|
5212
5210
|
performance = [],
|
@@ -5921,9 +5919,6 @@
|
|
5921
5919
|
totalTime += data['Execution Time'];
|
5922
5920
|
});
|
5923
5921
|
title += ' ' + totalTime + 'ms';
|
5924
|
-
if (moduleSelector) {
|
5925
|
-
title += ' \'' + moduleSelector + '\'';
|
5926
|
-
}
|
5927
5922
|
if (performance.length > 0) {
|
5928
5923
|
console.groupCollapsed(title);
|
5929
5924
|
if (console.table) {
|
@@ -6068,7 +6063,7 @@
|
|
6068
6063
|
})(jQuery, window, document);
|
6069
6064
|
|
6070
6065
|
/*!
|
6071
|
-
* # Fomantic-UI 2.9.3-beta.
|
6066
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Dimmer
|
6072
6067
|
* https://github.com/fomantic/Fomantic-UI/
|
6073
6068
|
*
|
6074
6069
|
*
|
@@ -6115,7 +6110,6 @@
|
|
6115
6110
|
|
6116
6111
|
eventNamespace = '.' + namespace,
|
6117
6112
|
moduleNamespace = 'module-' + namespace,
|
6118
|
-
moduleSelector = $allModules.selector || '',
|
6119
6113
|
|
6120
6114
|
clickEvent = 'ontouchstart' in document.documentElement
|
6121
6115
|
? 'touchstart'
|
@@ -6611,9 +6605,6 @@
|
|
6611
6605
|
totalTime += data['Execution Time'];
|
6612
6606
|
});
|
6613
6607
|
title += ' ' + totalTime + 'ms';
|
6614
|
-
if (moduleSelector) {
|
6615
|
-
title += ' \'' + moduleSelector + '\'';
|
6616
|
-
}
|
6617
6608
|
if ($allModules.length > 1) {
|
6618
6609
|
title += ' (' + $allModules.length + ')';
|
6619
6610
|
}
|
@@ -6803,7 +6794,7 @@
|
|
6803
6794
|
})(jQuery, window, document);
|
6804
6795
|
|
6805
6796
|
/*!
|
6806
|
-
* # Fomantic-UI 2.9.3-beta.
|
6797
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Dropdown
|
6807
6798
|
* https://github.com/fomantic/Fomantic-UI/
|
6808
6799
|
*
|
6809
6800
|
*
|
@@ -6828,14 +6819,25 @@
|
|
6828
6819
|
$allModules = $(this),
|
6829
6820
|
$document = $(document),
|
6830
6821
|
|
6831
|
-
moduleSelector = $allModules.selector || '',
|
6832
|
-
|
6833
6822
|
time = Date.now(),
|
6834
6823
|
performance = [],
|
6835
6824
|
|
6836
6825
|
query = arguments[0],
|
6837
6826
|
methodInvoked = typeof query === 'string',
|
6838
6827
|
queryArguments = [].slice.call(arguments, 1),
|
6828
|
+
contextCheck = function (context, win) {
|
6829
|
+
var $context;
|
6830
|
+
if ([window, document].indexOf(context) >= 0) {
|
6831
|
+
$context = $(context);
|
6832
|
+
} else {
|
6833
|
+
$context = $(win.document).find(context);
|
6834
|
+
if ($context.length === 0) {
|
6835
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
6836
|
+
}
|
6837
|
+
}
|
6838
|
+
|
6839
|
+
return $context;
|
6840
|
+
},
|
6839
6841
|
returnedValue
|
6840
6842
|
;
|
6841
6843
|
|
@@ -6860,7 +6862,7 @@
|
|
6860
6862
|
moduleNamespace = 'module-' + namespace,
|
6861
6863
|
|
6862
6864
|
$module = $(this),
|
6863
|
-
$context =
|
6865
|
+
$context = contextCheck(settings.context, window),
|
6864
6866
|
$text = $module.find(selector.text),
|
6865
6867
|
$search = $module.find(selector.search),
|
6866
6868
|
$sizer = $module.find(selector.sizer),
|
@@ -6895,7 +6897,8 @@
|
|
6895
6897
|
selectObserver,
|
6896
6898
|
menuObserver,
|
6897
6899
|
classObserver,
|
6898
|
-
module
|
6900
|
+
module,
|
6901
|
+
tempDisableApiCache = false
|
6899
6902
|
;
|
6900
6903
|
|
6901
6904
|
module = {
|
@@ -7662,11 +7665,12 @@
|
|
7662
7665
|
if (!$module.api('get request')) {
|
7663
7666
|
module.setup.api();
|
7664
7667
|
}
|
7665
|
-
apiSettings = $.extend(true, {}, apiSettings, settings.apiSettings, apiCallbacks);
|
7668
|
+
apiSettings = $.extend(true, {}, apiSettings, settings.apiSettings, apiCallbacks, tempDisableApiCache ? { cache: false } : {});
|
7666
7669
|
$module
|
7667
7670
|
.api('setting', apiSettings)
|
7668
7671
|
.api('query')
|
7669
7672
|
;
|
7673
|
+
tempDisableApiCache = false;
|
7670
7674
|
},
|
7671
7675
|
|
7672
7676
|
filterItems: function (query) {
|
@@ -8869,7 +8873,7 @@
|
|
8869
8873
|
values.push({
|
8870
8874
|
name: name,
|
8871
8875
|
value: value,
|
8872
|
-
text: text,
|
8876
|
+
text: module.escape.htmlEntities(text, true),
|
8873
8877
|
disabled: disabled,
|
8874
8878
|
});
|
8875
8879
|
}
|
@@ -9192,6 +9196,11 @@
|
|
9192
9196
|
module.set.value('', null, null, preventChangeTrigger);
|
9193
9197
|
},
|
9194
9198
|
|
9199
|
+
clearCache: function () {
|
9200
|
+
module.debug('Clearing API cache once');
|
9201
|
+
tempDisableApiCache = true;
|
9202
|
+
},
|
9203
|
+
|
9195
9204
|
scrollPage: function (direction, $selectedItem) {
|
9196
9205
|
var
|
9197
9206
|
$currentItem = $selectedItem || module.get.selectedItem(),
|
@@ -10242,7 +10251,7 @@
|
|
10242
10251
|
return settings.apiSettings && module.can.useAPI();
|
10243
10252
|
},
|
10244
10253
|
noApiCache: function () {
|
10245
|
-
return settings.apiSettings && !settings.apiSettings.cache;
|
10254
|
+
return tempDisableApiCache || (settings.apiSettings && !settings.apiSettings.cache);
|
10246
10255
|
},
|
10247
10256
|
single: function () {
|
10248
10257
|
return !module.is.multiple();
|
@@ -10252,7 +10261,7 @@
|
|
10252
10261
|
selectChanged = false
|
10253
10262
|
;
|
10254
10263
|
$.each(mutations, function (index, mutation) {
|
10255
|
-
if ($(mutation.target).is('
|
10264
|
+
if ($(mutation.target).is('option, optgroup') || $(mutation.addedNodes).is('select') || ($(mutation.target).is('select') && mutation.type !== 'attributes')) {
|
10256
10265
|
selectChanged = true;
|
10257
10266
|
|
10258
10267
|
return false;
|
@@ -10561,7 +10570,7 @@
|
|
10561
10570
|
|
10562
10571
|
return text.replace(regExp.escape, '\\$&');
|
10563
10572
|
},
|
10564
|
-
htmlEntities: function (string) {
|
10573
|
+
htmlEntities: function (string, forceAmpersand) {
|
10565
10574
|
var
|
10566
10575
|
badChars = /["'<>`]/g,
|
10567
10576
|
shouldEscape = /["&'<>`]/,
|
@@ -10577,7 +10586,7 @@
|
|
10577
10586
|
}
|
10578
10587
|
;
|
10579
10588
|
if (shouldEscape.test(string)) {
|
10580
|
-
string = string.replace(/&(?![\d#a-z]{1,12};)/gi, '&');
|
10589
|
+
string = string.replace(forceAmpersand ? /&/g : /&(?![\d#a-z]{1,12};)/gi, '&');
|
10581
10590
|
|
10582
10591
|
return string.replace(badChars, escapedChar);
|
10583
10592
|
}
|
@@ -10668,9 +10677,6 @@
|
|
10668
10677
|
totalTime += data['Execution Time'];
|
10669
10678
|
});
|
10670
10679
|
title += ' ' + totalTime + 'ms';
|
10671
|
-
if (moduleSelector) {
|
10672
|
-
title += ' \'' + moduleSelector + '\'';
|
10673
|
-
}
|
10674
10680
|
if (performance.length > 0) {
|
10675
10681
|
console.groupCollapsed(title);
|
10676
10682
|
if (console.table) {
|
@@ -11138,7 +11144,7 @@
|
|
11138
11144
|
})(jQuery, window, document);
|
11139
11145
|
|
11140
11146
|
/*!
|
11141
|
-
* # Fomantic-UI 2.9.3-beta.
|
11147
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Embed
|
11142
11148
|
* https://github.com/fomantic/Fomantic-UI/
|
11143
11149
|
*
|
11144
11150
|
*
|
@@ -11162,8 +11168,6 @@
|
|
11162
11168
|
var
|
11163
11169
|
$allModules = $(this),
|
11164
11170
|
|
11165
|
-
moduleSelector = $allModules.selector || '',
|
11166
|
-
|
11167
11171
|
time = Date.now(),
|
11168
11172
|
performance = [],
|
11169
11173
|
|
@@ -11594,9 +11598,6 @@
|
|
11594
11598
|
totalTime += data['Execution Time'];
|
11595
11599
|
});
|
11596
11600
|
title += ' ' + totalTime + 'ms';
|
11597
|
-
if (moduleSelector) {
|
11598
|
-
title += ' \'' + moduleSelector + '\'';
|
11599
|
-
}
|
11600
11601
|
if ($allModules.length > 1) {
|
11601
11602
|
title += ' (' + $allModules.length + ')';
|
11602
11603
|
}
|
@@ -11822,7 +11823,7 @@
|
|
11822
11823
|
})(jQuery, window, document);
|
11823
11824
|
|
11824
11825
|
/*!
|
11825
|
-
* # Fomantic-UI 2.9.3-beta.
|
11826
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Flyout
|
11826
11827
|
* https://github.com/fomantic/Fomantic-UI/
|
11827
11828
|
*
|
11828
11829
|
*
|
@@ -11851,15 +11852,25 @@
|
|
11851
11852
|
$head = $('head'),
|
11852
11853
|
$body = $('body'),
|
11853
11854
|
|
11854
|
-
moduleSelector = $allModules.selector || '',
|
11855
|
-
|
11856
11855
|
time = Date.now(),
|
11857
11856
|
performance = [],
|
11858
11857
|
|
11859
11858
|
query = arguments[0],
|
11860
11859
|
methodInvoked = typeof query === 'string',
|
11861
11860
|
queryArguments = [].slice.call(arguments, 1),
|
11861
|
+
contextCheck = function (context, win) {
|
11862
|
+
var $context;
|
11863
|
+
if ([window, document].indexOf(context) >= 0) {
|
11864
|
+
$context = $body;
|
11865
|
+
} else {
|
11866
|
+
$context = $(win.document).find(context);
|
11867
|
+
if ($context.length === 0) {
|
11868
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
11869
|
+
}
|
11870
|
+
}
|
11862
11871
|
|
11872
|
+
return $context;
|
11873
|
+
},
|
11863
11874
|
returnedValue
|
11864
11875
|
;
|
11865
11876
|
|
@@ -11880,7 +11891,7 @@
|
|
11880
11891
|
moduleNamespace = 'module-' + namespace,
|
11881
11892
|
|
11882
11893
|
$module = $(this),
|
11883
|
-
$context =
|
11894
|
+
$context = contextCheck(settings.context, window),
|
11884
11895
|
$closeIcon = $module.find(selector.close),
|
11885
11896
|
$inputs,
|
11886
11897
|
$focusedElement,
|
@@ -11899,6 +11910,7 @@
|
|
11899
11910
|
initialBodyMargin = '',
|
11900
11911
|
tempBodyMargin = '',
|
11901
11912
|
hadScrollbar = false,
|
11913
|
+
windowRefocused = false,
|
11902
11914
|
|
11903
11915
|
elementNamespace,
|
11904
11916
|
id,
|
@@ -12077,9 +12089,13 @@
|
|
12077
12089
|
module.setup.heights();
|
12078
12090
|
},
|
12079
12091
|
focus: function () {
|
12080
|
-
|
12092
|
+
windowRefocused = true;
|
12093
|
+
},
|
12094
|
+
click: function (event) {
|
12095
|
+
if (windowRefocused && document.activeElement !== event.target && module.is.visible() && settings.autofocus && settings.dimPage && $(document.activeElement).closest(selector.flyout).length === 0) {
|
12081
12096
|
requestAnimationFrame(module.set.autofocus);
|
12082
12097
|
}
|
12098
|
+
windowRefocused = false;
|
12083
12099
|
},
|
12084
12100
|
clickaway: function (event) {
|
12085
12101
|
if (settings.closable) {
|
@@ -12186,6 +12202,9 @@
|
|
12186
12202
|
$window
|
12187
12203
|
.on('focus' + elementNamespace, module.event.focus)
|
12188
12204
|
;
|
12205
|
+
$context
|
12206
|
+
.on('click' + elementNamespace, module.event.click)
|
12207
|
+
;
|
12189
12208
|
},
|
12190
12209
|
clickaway: function () {
|
12191
12210
|
module.verbose('Adding clickaway events to context', $context);
|
@@ -12315,11 +12334,12 @@
|
|
12315
12334
|
|
12316
12335
|
return nodes;
|
12317
12336
|
},
|
12318
|
-
shouldRefreshInputs = false
|
12337
|
+
shouldRefreshInputs = false,
|
12338
|
+
ignoreAutofocus = true
|
12319
12339
|
;
|
12320
12340
|
mutations.every(function (mutation) {
|
12321
12341
|
if (mutation.type === 'attributes') {
|
12322
|
-
if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
|
12342
|
+
if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').filter(':visible').length > 0)) {
|
12323
12343
|
shouldRefreshInputs = true;
|
12324
12344
|
}
|
12325
12345
|
} else {
|
@@ -12329,6 +12349,7 @@
|
|
12329
12349
|
$removedInputs = $(collectNodes(mutation.removedNodes)).filter('a[href], [tabindex], :input');
|
12330
12350
|
if ($addedInputs.length > 0 || $removedInputs.length > 0) {
|
12331
12351
|
shouldRefreshInputs = true;
|
12352
|
+
ignoreAutofocus = false;
|
12332
12353
|
}
|
12333
12354
|
}
|
12334
12355
|
|
@@ -12336,7 +12357,7 @@
|
|
12336
12357
|
});
|
12337
12358
|
|
12338
12359
|
if (shouldRefreshInputs) {
|
12339
|
-
module.refreshInputs();
|
12360
|
+
module.refreshInputs(ignoreAutofocus);
|
12340
12361
|
}
|
12341
12362
|
});
|
12342
12363
|
observer.observe(element, {
|
@@ -12350,7 +12371,7 @@
|
|
12350
12371
|
},
|
12351
12372
|
refresh: function () {
|
12352
12373
|
module.verbose('Refreshing selector cache');
|
12353
|
-
$context =
|
12374
|
+
$context = contextCheck(settings.context, window);
|
12354
12375
|
module.refreshFlyouts();
|
12355
12376
|
$pusher = $context.children(selector.pusher);
|
12356
12377
|
module.clear.cache();
|
@@ -12361,7 +12382,7 @@
|
|
12361
12382
|
$flyouts = $context.children(selector.flyout);
|
12362
12383
|
},
|
12363
12384
|
|
12364
|
-
refreshInputs: function () {
|
12385
|
+
refreshInputs: function (ignoreAutofocus) {
|
12365
12386
|
if ($inputs) {
|
12366
12387
|
$inputs
|
12367
12388
|
.off('keydown' + elementNamespace)
|
@@ -12373,8 +12394,8 @@
|
|
12373
12394
|
$inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
|
12374
12395
|
return $(this).closest('.disabled').length === 0;
|
12375
12396
|
});
|
12376
|
-
if ($inputs.length === 0) {
|
12377
|
-
$inputs = $module;
|
12397
|
+
if ($inputs.filter(':input').length === 0) {
|
12398
|
+
$inputs = $module.add($inputs);
|
12378
12399
|
$module.attr('tabindex', -1);
|
12379
12400
|
} else {
|
12380
12401
|
$module.removeAttr('tabindex');
|
@@ -12385,7 +12406,7 @@
|
|
12385
12406
|
$inputs.last()
|
12386
12407
|
.on('keydown' + elementNamespace, module.event.inputKeyDown.last)
|
12387
12408
|
;
|
12388
|
-
if (settings.autofocus && $inputs.filter(':focus').length === 0) {
|
12409
|
+
if (!ignoreAutofocus && settings.autofocus && $inputs.filter(':focus').length === 0) {
|
12389
12410
|
module.set.autofocus();
|
12390
12411
|
}
|
12391
12412
|
},
|
@@ -12663,20 +12684,14 @@
|
|
12663
12684
|
var
|
12664
12685
|
$autofocus = $inputs.filter('[autofocus]'),
|
12665
12686
|
$rawInputs = $inputs.filter(':input'),
|
12666
|
-
$input = $autofocus.length > 0
|
12667
|
-
? $autofocus
|
12687
|
+
$input = ($autofocus.length > 0
|
12688
|
+
? $autofocus
|
12668
12689
|
: ($rawInputs.length > 0
|
12669
12690
|
? $rawInputs
|
12670
|
-
: $
|
12671
|
-
|
12691
|
+
: $module)
|
12692
|
+
).first()
|
12672
12693
|
;
|
12673
|
-
|
12674
|
-
if ($input.length === 0 && $inputs.length > 0) {
|
12675
|
-
$input = $inputs.first();
|
12676
|
-
}
|
12677
|
-
if ($input.length > 0) {
|
12678
|
-
$input.trigger('focus');
|
12679
|
-
}
|
12694
|
+
$input.trigger('focus');
|
12680
12695
|
},
|
12681
12696
|
dimmerStyles: function () {
|
12682
12697
|
if (settings.blurring) {
|
@@ -13067,9 +13082,6 @@
|
|
13067
13082
|
totalTime += data['Execution Time'];
|
13068
13083
|
});
|
13069
13084
|
title += ' ' + totalTime + 'ms';
|
13070
|
-
if (moduleSelector) {
|
13071
|
-
title += ' \'' + moduleSelector + '\'';
|
13072
|
-
}
|
13073
13085
|
if (performance.length > 0) {
|
13074
13086
|
console.groupCollapsed(title);
|
13075
13087
|
if (console.table) {
|
@@ -13390,7 +13402,7 @@
|
|
13390
13402
|
})(jQuery, window, document);
|
13391
13403
|
|
13392
13404
|
/*!
|
13393
|
-
* # Fomantic-UI 2.9.3-beta.
|
13405
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Modal
|
13394
13406
|
* https://github.com/fomantic/Fomantic-UI/
|
13395
13407
|
*
|
13396
13408
|
*
|
@@ -13417,15 +13429,25 @@
|
|
13417
13429
|
$document = $(document),
|
13418
13430
|
$body = $('body'),
|
13419
13431
|
|
13420
|
-
moduleSelector = $allModules.selector || '',
|
13421
|
-
|
13422
13432
|
time = Date.now(),
|
13423
13433
|
performance = [],
|
13424
13434
|
|
13425
13435
|
query = arguments[0],
|
13426
13436
|
methodInvoked = typeof query === 'string',
|
13427
13437
|
queryArguments = [].slice.call(arguments, 1),
|
13438
|
+
contextCheck = function (context, win) {
|
13439
|
+
var $context;
|
13440
|
+
if ([window, document].indexOf(context) >= 0) {
|
13441
|
+
$context = $body;
|
13442
|
+
} else {
|
13443
|
+
$context = $(win.document).find(context);
|
13444
|
+
if ($context.length === 0) {
|
13445
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
13446
|
+
}
|
13447
|
+
}
|
13428
13448
|
|
13449
|
+
return $context;
|
13450
|
+
},
|
13429
13451
|
returnedValue
|
13430
13452
|
;
|
13431
13453
|
|
@@ -13445,7 +13467,7 @@
|
|
13445
13467
|
moduleNamespace = 'module-' + namespace,
|
13446
13468
|
|
13447
13469
|
$module = $(this),
|
13448
|
-
$context =
|
13470
|
+
$context = contextCheck(settings.context, window),
|
13449
13471
|
isBody = $context[0] === $body[0],
|
13450
13472
|
$closeIcon = $module.find(selector.closeIcon),
|
13451
13473
|
$inputs,
|
@@ -13469,6 +13491,7 @@
|
|
13469
13491
|
tempBodyMargin = '',
|
13470
13492
|
keepScrollingClass = false,
|
13471
13493
|
hadScrollbar = false,
|
13494
|
+
windowRefocused = false,
|
13472
13495
|
|
13473
13496
|
elementEventNamespace,
|
13474
13497
|
id,
|
@@ -13632,6 +13655,7 @@
|
|
13632
13655
|
.off(eventNamespace)
|
13633
13656
|
;
|
13634
13657
|
$window.off(elementEventNamespace);
|
13658
|
+
$context.off(elementEventNamespace);
|
13635
13659
|
$dimmer.off(elementEventNamespace);
|
13636
13660
|
$closeIcon.off(elementEventNamespace);
|
13637
13661
|
if ($inputs) {
|
@@ -13653,11 +13677,12 @@
|
|
13653
13677
|
return nodes;
|
13654
13678
|
},
|
13655
13679
|
shouldRefresh = false,
|
13656
|
-
shouldRefreshInputs = false
|
13680
|
+
shouldRefreshInputs = false,
|
13681
|
+
ignoreAutofocus = true
|
13657
13682
|
;
|
13658
13683
|
mutations.every(function (mutation) {
|
13659
13684
|
if (mutation.type === 'attributes') {
|
13660
|
-
if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').length > 0)) {
|
13685
|
+
if (observeAttributes && (mutation.attributeName === 'disabled' || $(mutation.target).find(':input').addBack(':input').filter(':visible').length > 0)) {
|
13661
13686
|
shouldRefreshInputs = true;
|
13662
13687
|
}
|
13663
13688
|
} else {
|
@@ -13668,6 +13693,7 @@
|
|
13668
13693
|
$removedInputs = $(collectNodes(mutation.removedNodes)).filter('a[href], [tabindex], :input');
|
13669
13694
|
if ($addedInputs.length > 0 || $removedInputs.length > 0) {
|
13670
13695
|
shouldRefreshInputs = true;
|
13696
|
+
ignoreAutofocus = false;
|
13671
13697
|
}
|
13672
13698
|
}
|
13673
13699
|
|
@@ -13679,7 +13705,7 @@
|
|
13679
13705
|
module.refresh();
|
13680
13706
|
}
|
13681
13707
|
if (shouldRefreshInputs) {
|
13682
|
-
module.refreshInputs();
|
13708
|
+
module.refreshInputs(ignoreAutofocus);
|
13683
13709
|
}
|
13684
13710
|
});
|
13685
13711
|
observer.observe(element, {
|
@@ -13707,7 +13733,7 @@
|
|
13707
13733
|
$allModals = $otherModals.add($module);
|
13708
13734
|
},
|
13709
13735
|
|
13710
|
-
refreshInputs: function () {
|
13736
|
+
refreshInputs: function (ignoreAutofocus) {
|
13711
13737
|
if ($inputs) {
|
13712
13738
|
$inputs
|
13713
13739
|
.off('keydown' + elementEventNamespace)
|
@@ -13716,8 +13742,8 @@
|
|
13716
13742
|
$inputs = $module.find('a[href], [tabindex], :input:enabled').filter(':visible').filter(function () {
|
13717
13743
|
return $(this).closest('.disabled').length === 0;
|
13718
13744
|
});
|
13719
|
-
if ($inputs.length === 0) {
|
13720
|
-
$inputs = $module;
|
13745
|
+
if ($inputs.filter(':input').length === 0) {
|
13746
|
+
$inputs = $module.add($inputs);
|
13721
13747
|
$module.attr('tabindex', -1);
|
13722
13748
|
} else {
|
13723
13749
|
$module.removeAttr('tabindex');
|
@@ -13728,7 +13754,7 @@
|
|
13728
13754
|
$inputs.last()
|
13729
13755
|
.on('keydown' + elementEventNamespace, module.event.inputKeyDown.last)
|
13730
13756
|
;
|
13731
|
-
if (settings.autofocus && $inputs.filter(':focus').length === 0) {
|
13757
|
+
if (!ignoreAutofocus && settings.autofocus && $inputs.filter(':focus').length === 0) {
|
13732
13758
|
module.set.autofocus();
|
13733
13759
|
}
|
13734
13760
|
},
|
@@ -13766,6 +13792,9 @@
|
|
13766
13792
|
.on('resize' + elementEventNamespace, module.event.resize)
|
13767
13793
|
.on('focus' + elementEventNamespace, module.event.focus)
|
13768
13794
|
;
|
13795
|
+
$context
|
13796
|
+
.on('click' + elementEventNamespace, module.event.click)
|
13797
|
+
;
|
13769
13798
|
},
|
13770
13799
|
scrollLock: function () {
|
13771
13800
|
// touch events default to passive, due to changes in chrome to optimize mobile perf
|
@@ -13923,9 +13952,13 @@
|
|
13923
13952
|
}
|
13924
13953
|
},
|
13925
13954
|
focus: function () {
|
13926
|
-
|
13955
|
+
windowRefocused = true;
|
13956
|
+
},
|
13957
|
+
click: function (event) {
|
13958
|
+
if (windowRefocused && document.activeElement !== event.target && $dimmable.dimmer('is active') && module.is.active() && settings.autofocus && $(document.activeElement).closest(selector.modal).length === 0) {
|
13927
13959
|
requestAnimationFrame(module.set.autofocus);
|
13928
13960
|
}
|
13961
|
+
windowRefocused = false;
|
13929
13962
|
},
|
13930
13963
|
},
|
13931
13964
|
|
@@ -14435,20 +14468,14 @@
|
|
14435
14468
|
var
|
14436
14469
|
$autofocus = $inputs.filter('[autofocus]'),
|
14437
14470
|
$rawInputs = $inputs.filter(':input'),
|
14438
|
-
$input = $autofocus.length > 0
|
14439
|
-
? $autofocus
|
14471
|
+
$input = ($autofocus.length > 0
|
14472
|
+
? $autofocus
|
14440
14473
|
: ($rawInputs.length > 0
|
14441
14474
|
? $rawInputs
|
14442
|
-
: $
|
14443
|
-
|
14475
|
+
: $module)
|
14476
|
+
).first()
|
14444
14477
|
;
|
14445
|
-
|
14446
|
-
if ($input.length === 0 && $inputs.length > 0) {
|
14447
|
-
$input = $inputs.first();
|
14448
|
-
}
|
14449
|
-
if ($input.length > 0) {
|
14450
|
-
$input.trigger('focus');
|
14451
|
-
}
|
14478
|
+
$input.trigger('focus');
|
14452
14479
|
},
|
14453
14480
|
bodyMargin: function () {
|
14454
14481
|
var position = module.can.leftBodyScrollbar() ? 'left' : 'right';
|
@@ -14662,9 +14689,6 @@
|
|
14662
14689
|
totalTime += data['Execution Time'];
|
14663
14690
|
});
|
14664
14691
|
title += ' ' + totalTime + 'ms';
|
14665
|
-
if (moduleSelector) {
|
14666
|
-
title += ' \'' + moduleSelector + '\'';
|
14667
|
-
}
|
14668
14692
|
if (performance.length > 0) {
|
14669
14693
|
console.groupCollapsed(title);
|
14670
14694
|
if (console.table) {
|
@@ -15012,7 +15036,7 @@
|
|
15012
15036
|
})(jQuery, window, document);
|
15013
15037
|
|
15014
15038
|
/*!
|
15015
|
-
* # Fomantic-UI 2.9.3-beta.
|
15039
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Nag
|
15016
15040
|
* https://github.com/fomantic/Fomantic-UI/
|
15017
15041
|
*
|
15018
15042
|
*
|
@@ -15035,7 +15059,7 @@
|
|
15035
15059
|
$.fn.nag = function (parameters) {
|
15036
15060
|
var
|
15037
15061
|
$allModules = $(this),
|
15038
|
-
|
15062
|
+
$body = $('body'),
|
15039
15063
|
|
15040
15064
|
time = Date.now(),
|
15041
15065
|
performance = [],
|
@@ -15043,6 +15067,19 @@
|
|
15043
15067
|
query = arguments[0],
|
15044
15068
|
methodInvoked = typeof query === 'string',
|
15045
15069
|
queryArguments = [].slice.call(arguments, 1),
|
15070
|
+
contextCheck = function (context, win) {
|
15071
|
+
var $context;
|
15072
|
+
if ([window, document].indexOf(context) >= 0) {
|
15073
|
+
$context = $(context);
|
15074
|
+
} else {
|
15075
|
+
$context = $(win.document).find(context);
|
15076
|
+
if ($context.length === 0) {
|
15077
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
15078
|
+
}
|
15079
|
+
}
|
15080
|
+
|
15081
|
+
return $context;
|
15082
|
+
},
|
15046
15083
|
returnedValue
|
15047
15084
|
;
|
15048
15085
|
$allModules.each(function () {
|
@@ -15060,9 +15097,7 @@
|
|
15060
15097
|
|
15061
15098
|
$module = $(this),
|
15062
15099
|
|
15063
|
-
$context = settings.context
|
15064
|
-
? ([window, document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
15065
|
-
: $('body'),
|
15100
|
+
$context = settings.context ? contextCheck(settings.context, window) : $body,
|
15066
15101
|
|
15067
15102
|
element = this,
|
15068
15103
|
instance = $module.data(moduleNamespace),
|
@@ -15392,9 +15427,6 @@
|
|
15392
15427
|
totalTime += data['Execution Time'];
|
15393
15428
|
});
|
15394
15429
|
title += ' ' + totalTime + 'ms';
|
15395
|
-
if (moduleSelector) {
|
15396
|
-
title += ' \'' + moduleSelector + '\'';
|
15397
|
-
}
|
15398
15430
|
if (performance.length > 0) {
|
15399
15431
|
console.groupCollapsed(title);
|
15400
15432
|
if (console.table) {
|
@@ -15565,7 +15597,7 @@
|
|
15565
15597
|
})(jQuery, window, document);
|
15566
15598
|
|
15567
15599
|
/*!
|
15568
|
-
* # Fomantic-UI 2.9.3-beta.
|
15600
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Popup
|
15569
15601
|
* https://github.com/fomantic/Fomantic-UI/
|
15570
15602
|
*
|
15571
15603
|
*
|
@@ -15592,8 +15624,6 @@
|
|
15592
15624
|
$window = $(window),
|
15593
15625
|
$body = $('body'),
|
15594
15626
|
|
15595
|
-
moduleSelector = $allModules.selector || '',
|
15596
|
-
|
15597
15627
|
clickEvent = 'ontouchstart' in document.documentElement
|
15598
15628
|
? 'touchstart'
|
15599
15629
|
: 'click',
|
@@ -15604,6 +15634,19 @@
|
|
15604
15634
|
query = arguments[0],
|
15605
15635
|
methodInvoked = typeof query === 'string',
|
15606
15636
|
queryArguments = [].slice.call(arguments, 1),
|
15637
|
+
contextCheck = function (context, win) {
|
15638
|
+
var $context;
|
15639
|
+
if ([window, document].indexOf(context) >= 0) {
|
15640
|
+
$context = $(context);
|
15641
|
+
} else {
|
15642
|
+
$context = $(win.document).find(context);
|
15643
|
+
if ($context.length === 0) {
|
15644
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
15645
|
+
}
|
15646
|
+
}
|
15647
|
+
|
15648
|
+
return $context;
|
15649
|
+
},
|
15607
15650
|
|
15608
15651
|
returnedValue
|
15609
15652
|
;
|
@@ -15623,12 +15666,10 @@
|
|
15623
15666
|
moduleNamespace = 'module-' + namespace,
|
15624
15667
|
|
15625
15668
|
$module = $(this),
|
15626
|
-
$context =
|
15627
|
-
$scrollContext =
|
15628
|
-
$boundary =
|
15629
|
-
$target = settings.target
|
15630
|
-
? ([window, document].indexOf(settings.target) < 0 ? $document.find(settings.target) : $(settings.target))
|
15631
|
-
: $module,
|
15669
|
+
$context = contextCheck(settings.context, window),
|
15670
|
+
$scrollContext = contextCheck(settings.scrollContext, window),
|
15671
|
+
$boundary = contextCheck(settings.boundary, window),
|
15672
|
+
$target = settings.target ? contextCheck(settings.target, window) : $module,
|
15632
15673
|
|
15633
15674
|
$popup,
|
15634
15675
|
$offsetParent,
|
@@ -16812,9 +16853,6 @@
|
|
16812
16853
|
totalTime += data['Execution Time'];
|
16813
16854
|
});
|
16814
16855
|
title += ' ' + totalTime + 'ms';
|
16815
|
-
if (moduleSelector) {
|
16816
|
-
title += ' \'' + moduleSelector + '\'';
|
16817
|
-
}
|
16818
16856
|
if (performance.length > 0) {
|
16819
16857
|
console.groupCollapsed(title);
|
16820
16858
|
if (console.table) {
|
@@ -17113,7 +17151,7 @@
|
|
17113
17151
|
})(jQuery, window, document);
|
17114
17152
|
|
17115
17153
|
/*!
|
17116
|
-
* # Fomantic-UI 2.9.3-beta.
|
17154
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Progress
|
17117
17155
|
* https://github.com/fomantic/Fomantic-UI/
|
17118
17156
|
*
|
17119
17157
|
*
|
@@ -17137,8 +17175,6 @@
|
|
17137
17175
|
var
|
17138
17176
|
$allModules = $(this),
|
17139
17177
|
|
17140
|
-
moduleSelector = $allModules.selector || '',
|
17141
|
-
|
17142
17178
|
time = Date.now(),
|
17143
17179
|
performance = [],
|
17144
17180
|
|
@@ -17920,9 +17956,6 @@
|
|
17920
17956
|
totalTime += data['Execution Time'];
|
17921
17957
|
});
|
17922
17958
|
title += ' ' + totalTime + 'ms';
|
17923
|
-
if (moduleSelector) {
|
17924
|
-
title += ' \'' + moduleSelector + '\'';
|
17925
|
-
}
|
17926
17959
|
if (performance.length > 0) {
|
17927
17960
|
console.groupCollapsed(title);
|
17928
17961
|
if (console.table) {
|
@@ -18096,7 +18129,7 @@
|
|
18096
18129
|
})(jQuery, window, document);
|
18097
18130
|
|
18098
18131
|
/*!
|
18099
|
-
* # Fomantic-UI 2.9.3-beta.
|
18132
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Slider
|
18100
18133
|
* https://github.com/fomantic/Fomantic-UI/
|
18101
18134
|
*
|
18102
18135
|
*
|
@@ -18122,8 +18155,6 @@
|
|
18122
18155
|
$document = $(document),
|
18123
18156
|
$window = $(window),
|
18124
18157
|
|
18125
|
-
moduleSelector = $allModules.selector || '',
|
18126
|
-
|
18127
18158
|
time = Date.now(),
|
18128
18159
|
performance = [],
|
18129
18160
|
|
@@ -19288,9 +19319,6 @@
|
|
19288
19319
|
totalTime += data['Execution Time'];
|
19289
19320
|
});
|
19290
19321
|
title += ' ' + totalTime + 'ms';
|
19291
|
-
if (moduleSelector) {
|
19292
|
-
title += ' \'' + moduleSelector + '\'';
|
19293
|
-
}
|
19294
19322
|
if (performance.length > 0) {
|
19295
19323
|
console.groupCollapsed(title);
|
19296
19324
|
if (console.table) {
|
@@ -19449,7 +19477,7 @@
|
|
19449
19477
|
})(jQuery, window, document);
|
19450
19478
|
|
19451
19479
|
/*!
|
19452
|
-
* # Fomantic-UI 2.9.3-beta.
|
19480
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Rating
|
19453
19481
|
* https://github.com/fomantic/Fomantic-UI/
|
19454
19482
|
*
|
19455
19483
|
*
|
@@ -19472,7 +19500,6 @@
|
|
19472
19500
|
$.fn.rating = function (parameters) {
|
19473
19501
|
var
|
19474
19502
|
$allModules = $(this),
|
19475
|
-
moduleSelector = $allModules.selector || '',
|
19476
19503
|
|
19477
19504
|
time = Date.now(),
|
19478
19505
|
performance = [],
|
@@ -19832,9 +19859,6 @@
|
|
19832
19859
|
totalTime += data['Execution Time'];
|
19833
19860
|
});
|
19834
19861
|
title += ' ' + totalTime + 'ms';
|
19835
|
-
if (moduleSelector) {
|
19836
|
-
title += ' \'' + moduleSelector + '\'';
|
19837
|
-
}
|
19838
19862
|
if ($allModules.length > 1) {
|
19839
19863
|
title += ' (' + $allModules.length + ')';
|
19840
19864
|
}
|
@@ -19992,7 +20016,7 @@
|
|
19992
20016
|
})(jQuery, window, document);
|
19993
20017
|
|
19994
20018
|
/*!
|
19995
|
-
* # Fomantic-UI 2.9.3-beta.
|
20019
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Search
|
19996
20020
|
* https://github.com/fomantic/Fomantic-UI/
|
19997
20021
|
*
|
19998
20022
|
*
|
@@ -20015,7 +20039,6 @@
|
|
20015
20039
|
$.fn.search = function (parameters) {
|
20016
20040
|
var
|
20017
20041
|
$allModules = $(this),
|
20018
|
-
moduleSelector = $allModules.selector || '',
|
20019
20042
|
|
20020
20043
|
time = Date.now(),
|
20021
20044
|
performance = [],
|
@@ -21177,9 +21200,6 @@
|
|
21177
21200
|
totalTime += data['Execution Time'];
|
21178
21201
|
});
|
21179
21202
|
title += ' ' + totalTime + 'ms';
|
21180
|
-
if (moduleSelector) {
|
21181
|
-
title += ' \'' + moduleSelector + '\'';
|
21182
|
-
}
|
21183
21203
|
if ($allModules.length > 1) {
|
21184
21204
|
title += ' (' + $allModules.length + ')';
|
21185
21205
|
}
|
@@ -21573,7 +21593,7 @@
|
|
21573
21593
|
})(jQuery, window, document);
|
21574
21594
|
|
21575
21595
|
/*!
|
21576
|
-
* # Fomantic-UI 2.9.3-beta.
|
21596
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Shape
|
21577
21597
|
* https://github.com/fomantic/Fomantic-UI/
|
21578
21598
|
*
|
21579
21599
|
*
|
@@ -21609,7 +21629,6 @@
|
|
21609
21629
|
|
21610
21630
|
$allModules.each(function () {
|
21611
21631
|
var
|
21612
|
-
moduleSelector = $allModules.selector || '',
|
21613
21632
|
settings = $.isPlainObject(parameters)
|
21614
21633
|
? $.extend(true, {}, $.fn.shape.settings, parameters)
|
21615
21634
|
: $.extend({}, $.fn.shape.settings),
|
@@ -22211,9 +22230,6 @@
|
|
22211
22230
|
totalTime += data['Execution Time'];
|
22212
22231
|
});
|
22213
22232
|
title += ' ' + totalTime + 'ms';
|
22214
|
-
if (moduleSelector) {
|
22215
|
-
title += ' \'' + moduleSelector + '\'';
|
22216
|
-
}
|
22217
22233
|
if ($allModules.length > 1) {
|
22218
22234
|
title += ' (' + $allModules.length + ')';
|
22219
22235
|
}
|
@@ -22373,7 +22389,7 @@
|
|
22373
22389
|
})(jQuery, window, document);
|
22374
22390
|
|
22375
22391
|
/*!
|
22376
|
-
* # Fomantic-UI 2.9.3-beta.
|
22392
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Sidebar
|
22377
22393
|
* https://github.com/fomantic/Fomantic-UI/
|
22378
22394
|
*
|
22379
22395
|
*
|
@@ -22402,15 +22418,25 @@
|
|
22402
22418
|
$html = $('html'),
|
22403
22419
|
$head = $('head'),
|
22404
22420
|
|
22405
|
-
moduleSelector = $allModules.selector || '',
|
22406
|
-
|
22407
22421
|
time = Date.now(),
|
22408
22422
|
performance = [],
|
22409
22423
|
|
22410
22424
|
query = arguments[0],
|
22411
22425
|
methodInvoked = typeof query === 'string',
|
22412
22426
|
queryArguments = [].slice.call(arguments, 1),
|
22427
|
+
contextCheck = function (context, win) {
|
22428
|
+
var $context;
|
22429
|
+
if ([window, document].indexOf(context) >= 0) {
|
22430
|
+
$context = $body;
|
22431
|
+
} else {
|
22432
|
+
$context = $(win.document).find(context);
|
22433
|
+
if ($context.length === 0) {
|
22434
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
22435
|
+
}
|
22436
|
+
}
|
22413
22437
|
|
22438
|
+
return $context;
|
22439
|
+
},
|
22414
22440
|
returnedValue;
|
22415
22441
|
|
22416
22442
|
$allModules.each(function () {
|
@@ -22429,7 +22455,7 @@
|
|
22429
22455
|
moduleNamespace = 'module-' + namespace,
|
22430
22456
|
|
22431
22457
|
$module = $(this),
|
22432
|
-
$context =
|
22458
|
+
$context = contextCheck(settings.context, window),
|
22433
22459
|
isBody = $context[0] === $body[0],
|
22434
22460
|
|
22435
22461
|
$sidebars = $module.children(selector.sidebar),
|
@@ -22651,7 +22677,7 @@
|
|
22651
22677
|
|
22652
22678
|
refresh: function () {
|
22653
22679
|
module.verbose('Refreshing selector cache');
|
22654
|
-
$context =
|
22680
|
+
$context = contextCheck(settings.context, window);
|
22655
22681
|
module.refreshSidebars();
|
22656
22682
|
$pusher = $context.children(selector.pusher);
|
22657
22683
|
$fixed = $context.children(selector.fixed);
|
@@ -23275,9 +23301,6 @@
|
|
23275
23301
|
totalTime += data['Execution Time'];
|
23276
23302
|
});
|
23277
23303
|
title += ' ' + totalTime + 'ms';
|
23278
|
-
if (moduleSelector) {
|
23279
|
-
title += ' \'' + moduleSelector + '\'';
|
23280
|
-
}
|
23281
23304
|
if (performance.length > 0) {
|
23282
23305
|
console.groupCollapsed(title);
|
23283
23306
|
if (console.table) {
|
@@ -23449,7 +23472,7 @@
|
|
23449
23472
|
})(jQuery, window, document);
|
23450
23473
|
|
23451
23474
|
/*!
|
23452
|
-
* # Fomantic-UI 2.9.3-beta.
|
23475
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Sticky
|
23453
23476
|
* https://github.com/fomantic/Fomantic-UI/
|
23454
23477
|
*
|
23455
23478
|
*
|
@@ -23473,7 +23496,6 @@
|
|
23473
23496
|
var
|
23474
23497
|
$allModules = $(this),
|
23475
23498
|
$document = $(document),
|
23476
|
-
moduleSelector = $allModules.selector || '',
|
23477
23499
|
|
23478
23500
|
time = Date.now(),
|
23479
23501
|
performance = [],
|
@@ -23481,6 +23503,19 @@
|
|
23481
23503
|
query = arguments[0],
|
23482
23504
|
methodInvoked = typeof query === 'string',
|
23483
23505
|
queryArguments = [].slice.call(arguments, 1),
|
23506
|
+
contextCheck = function (context, win) {
|
23507
|
+
var $context;
|
23508
|
+
if ([window, document].indexOf(context) >= 0) {
|
23509
|
+
$context = $(context);
|
23510
|
+
} else {
|
23511
|
+
$context = $(win.document).find(context);
|
23512
|
+
if ($context.length === 0) {
|
23513
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
23514
|
+
}
|
23515
|
+
}
|
23516
|
+
|
23517
|
+
return $context;
|
23518
|
+
},
|
23484
23519
|
returnedValue
|
23485
23520
|
;
|
23486
23521
|
|
@@ -23499,7 +23534,7 @@
|
|
23499
23534
|
|
23500
23535
|
$module = $(this),
|
23501
23536
|
$window = $(window),
|
23502
|
-
$scroll =
|
23537
|
+
$scroll = contextCheck(settings.scrollContext, window),
|
23503
23538
|
$container,
|
23504
23539
|
$context,
|
23505
23540
|
|
@@ -23577,19 +23612,11 @@
|
|
23577
23612
|
},
|
23578
23613
|
|
23579
23614
|
determineContainer: function () {
|
23580
|
-
|
23581
|
-
$container = [window, document].indexOf(settings.container) < 0 ? $document.find(settings.container) : $(settings.container);
|
23582
|
-
} else {
|
23583
|
-
$container = $module.offsetParent();
|
23584
|
-
}
|
23615
|
+
$container = settings.container ? contextCheck(settings.container, window) : $module.offsetParent();
|
23585
23616
|
},
|
23586
23617
|
|
23587
23618
|
determineContext: function () {
|
23588
|
-
|
23589
|
-
$context = [window, document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context);
|
23590
|
-
} else {
|
23591
|
-
$context = $container;
|
23592
|
-
}
|
23619
|
+
$context = settings.context ? contextCheck(settings.context, window) : $container;
|
23593
23620
|
if ($context.length === 0) {
|
23594
23621
|
module.error(error.invalidContext, settings.context, $module);
|
23595
23622
|
}
|
@@ -24205,9 +24232,6 @@
|
|
24205
24232
|
totalTime += data['Execution Time'];
|
24206
24233
|
});
|
24207
24234
|
title += ' ' + totalTime + 'ms';
|
24208
|
-
if (moduleSelector) {
|
24209
|
-
title += ' \'' + moduleSelector + '\'';
|
24210
|
-
}
|
24211
24235
|
if (performance.length > 0) {
|
24212
24236
|
console.groupCollapsed(title);
|
24213
24237
|
if (console.table) {
|
@@ -24364,7 +24388,7 @@
|
|
24364
24388
|
})(jQuery, window, document);
|
24365
24389
|
|
24366
24390
|
/*!
|
24367
|
-
* # Fomantic-UI 2.9.3-beta.
|
24391
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Tab
|
24368
24392
|
* https://github.com/fomantic/Fomantic-UI/
|
24369
24393
|
*
|
24370
24394
|
*
|
@@ -24395,14 +24419,25 @@
|
|
24395
24419
|
? $(window)
|
24396
24420
|
: $(this),
|
24397
24421
|
$document = $(document),
|
24398
|
-
moduleSelector = $allModules.selector || '',
|
24399
24422
|
time = Date.now(),
|
24400
24423
|
performance = [],
|
24401
24424
|
|
24402
24425
|
query = arguments[0],
|
24403
24426
|
methodInvoked = typeof query === 'string',
|
24404
24427
|
queryArguments = [].slice.call(arguments, 1),
|
24428
|
+
contextCheck = function (context, win) {
|
24429
|
+
var $context;
|
24430
|
+
if ([window, document].indexOf(context) >= 0) {
|
24431
|
+
$context = $(context);
|
24432
|
+
} else {
|
24433
|
+
$context = $(win.document).find(context);
|
24434
|
+
if ($context.length === 0) {
|
24435
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
24436
|
+
}
|
24437
|
+
}
|
24405
24438
|
|
24439
|
+
return $context;
|
24440
|
+
},
|
24406
24441
|
initializedHistory = false,
|
24407
24442
|
returnedValue
|
24408
24443
|
;
|
@@ -24517,7 +24552,7 @@
|
|
24517
24552
|
$context = $reference.parent();
|
24518
24553
|
module.verbose('Determined parent element for creating context', $context);
|
24519
24554
|
} else if (settings.context) {
|
24520
|
-
$context =
|
24555
|
+
$context = contextCheck(settings.context, window);
|
24521
24556
|
module.verbose('Using selector for tab context', settings.context, $context);
|
24522
24557
|
} else {
|
24523
24558
|
$context = $('body');
|
@@ -25153,9 +25188,6 @@
|
|
25153
25188
|
totalTime += data['Execution Time'];
|
25154
25189
|
});
|
25155
25190
|
title += ' ' + totalTime + 'ms';
|
25156
|
-
if (moduleSelector) {
|
25157
|
-
title += ' \'' + moduleSelector + '\'';
|
25158
|
-
}
|
25159
25191
|
if (performance.length > 0) {
|
25160
25192
|
console.groupCollapsed(title);
|
25161
25193
|
if (console.table) {
|
@@ -25320,7 +25352,7 @@
|
|
25320
25352
|
})(jQuery, window, document);
|
25321
25353
|
|
25322
25354
|
/*!
|
25323
|
-
* # Fomantic-UI 2.9.3-beta.
|
25355
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Toast
|
25324
25356
|
* https://github.com/fomantic/Fomantic-UI/
|
25325
25357
|
*
|
25326
25358
|
*
|
@@ -25343,7 +25375,7 @@
|
|
25343
25375
|
$.fn.toast = function (parameters) {
|
25344
25376
|
var
|
25345
25377
|
$allModules = $(this),
|
25346
|
-
|
25378
|
+
$body = $('body'),
|
25347
25379
|
|
25348
25380
|
time = Date.now(),
|
25349
25381
|
performance = [],
|
@@ -25351,6 +25383,19 @@
|
|
25351
25383
|
query = arguments[0],
|
25352
25384
|
methodInvoked = typeof query === 'string',
|
25353
25385
|
queryArguments = [].slice.call(arguments, 1),
|
25386
|
+
contextCheck = function (context, win) {
|
25387
|
+
var $context;
|
25388
|
+
if ([window, document].indexOf(context) >= 0) {
|
25389
|
+
$context = $(context);
|
25390
|
+
} else {
|
25391
|
+
$context = $(win.document).find(context);
|
25392
|
+
if ($context.length === 0) {
|
25393
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : $body;
|
25394
|
+
}
|
25395
|
+
}
|
25396
|
+
|
25397
|
+
return $context;
|
25398
|
+
},
|
25354
25399
|
returnedValue
|
25355
25400
|
;
|
25356
25401
|
$allModules.each(function () {
|
@@ -25376,9 +25421,7 @@
|
|
25376
25421
|
$progressBar,
|
25377
25422
|
$animationObject,
|
25378
25423
|
$close,
|
25379
|
-
$context = settings.context
|
25380
|
-
? ([window, document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
25381
|
-
: $('body'),
|
25424
|
+
$context = settings.context ? contextCheck(settings.context, window) : $body,
|
25382
25425
|
|
25383
25426
|
isToastComponent = $module.hasClass('toast') || $module.hasClass('message') || $module.hasClass('card'),
|
25384
25427
|
|
@@ -25427,11 +25470,11 @@
|
|
25427
25470
|
if ($toastBox) {
|
25428
25471
|
module.debug('Removing toast', $toastBox);
|
25429
25472
|
module.unbind.events();
|
25473
|
+
settings.onRemove.call($toastBox, element);
|
25430
25474
|
$toastBox.remove();
|
25431
25475
|
$toastBox = undefined;
|
25432
25476
|
$toast = undefined;
|
25433
25477
|
$animationObject = undefined;
|
25434
|
-
settings.onRemove.call($toastBox, element);
|
25435
25478
|
$progress = undefined;
|
25436
25479
|
$progressBar = undefined;
|
25437
25480
|
$close = undefined;
|
@@ -26025,9 +26068,6 @@
|
|
26025
26068
|
totalTime += data['Execution Time'];
|
26026
26069
|
});
|
26027
26070
|
title += ' ' + totalTime + 'ms';
|
26028
|
-
if (moduleSelector) {
|
26029
|
-
title += ' \'' + moduleSelector + '\'';
|
26030
|
-
}
|
26031
26071
|
if (performance.length > 0) {
|
26032
26072
|
console.groupCollapsed(title);
|
26033
26073
|
if (console.table) {
|
@@ -26273,7 +26313,7 @@
|
|
26273
26313
|
})(jQuery, window, document);
|
26274
26314
|
|
26275
26315
|
/*!
|
26276
|
-
* # Fomantic-UI 2.9.3-beta.
|
26316
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Transition
|
26277
26317
|
* https://github.com/fomantic/Fomantic-UI/
|
26278
26318
|
*
|
26279
26319
|
*
|
@@ -26296,7 +26336,6 @@
|
|
26296
26336
|
$.fn.transition = function () {
|
26297
26337
|
var
|
26298
26338
|
$allModules = $(this),
|
26299
|
-
moduleSelector = $allModules.selector || '',
|
26300
26339
|
|
26301
26340
|
time = Date.now(),
|
26302
26341
|
performance = [],
|
@@ -27137,9 +27176,6 @@
|
|
27137
27176
|
totalTime += data['Execution Time'];
|
27138
27177
|
});
|
27139
27178
|
title += ' ' + totalTime + 'ms';
|
27140
|
-
if (moduleSelector) {
|
27141
|
-
title += ' \'' + moduleSelector + '\'';
|
27142
|
-
}
|
27143
27179
|
if ($allModules.length > 1) {
|
27144
27180
|
title += ' (' + $allModules.length + ')';
|
27145
27181
|
}
|
@@ -27308,7 +27344,7 @@
|
|
27308
27344
|
})(jQuery, window, document);
|
27309
27345
|
|
27310
27346
|
/*!
|
27311
|
-
* # Fomantic-UI 2.9.3-beta.
|
27347
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - API
|
27312
27348
|
* https://github.com/fomantic/Fomantic-UI/
|
27313
27349
|
*
|
27314
27350
|
*
|
@@ -27338,14 +27374,25 @@
|
|
27338
27374
|
$allModules = isFunction(this)
|
27339
27375
|
? $(window)
|
27340
27376
|
: $(this),
|
27341
|
-
moduleSelector = $allModules.selector || '',
|
27342
27377
|
time = Date.now(),
|
27343
27378
|
performance = [],
|
27344
27379
|
|
27345
27380
|
query = arguments[0],
|
27346
27381
|
methodInvoked = typeof query === 'string',
|
27347
27382
|
queryArguments = [].slice.call(arguments, 1),
|
27383
|
+
contextCheck = function (context, win) {
|
27384
|
+
var $context;
|
27385
|
+
if ([window, document].indexOf(context) >= 0) {
|
27386
|
+
$context = $(context);
|
27387
|
+
} else {
|
27388
|
+
$context = $(win.document).find(context);
|
27389
|
+
if ($context.length === 0) {
|
27390
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
27391
|
+
}
|
27392
|
+
}
|
27348
27393
|
|
27394
|
+
return $context;
|
27395
|
+
},
|
27349
27396
|
returnedValue
|
27350
27397
|
;
|
27351
27398
|
|
@@ -27371,9 +27418,7 @@
|
|
27371
27418
|
$form = $module.closest(selector.form),
|
27372
27419
|
|
27373
27420
|
// context used for state
|
27374
|
-
$context = settings.stateContext
|
27375
|
-
? ([window, document].indexOf(settings.stateContext) < 0 ? $(document).find(settings.stateContext) : $(settings.stateContext))
|
27376
|
-
: $module,
|
27421
|
+
$context = settings.stateContext ? contextCheck(settings.stateContext, window) : $module,
|
27377
27422
|
|
27378
27423
|
// request details
|
27379
27424
|
ajaxSettings,
|
@@ -28283,9 +28328,6 @@
|
|
28283
28328
|
totalTime += data['Execution Time'];
|
28284
28329
|
});
|
28285
28330
|
title += ' ' + totalTime + 'ms';
|
28286
|
-
if (moduleSelector) {
|
28287
|
-
title += ' \'' + moduleSelector + '\'';
|
28288
|
-
}
|
28289
28331
|
if (performance.length > 0) {
|
28290
28332
|
console.groupCollapsed(title);
|
28291
28333
|
if (console.table) {
|
@@ -28523,7 +28565,7 @@
|
|
28523
28565
|
})(jQuery, window, document);
|
28524
28566
|
|
28525
28567
|
/*!
|
28526
|
-
* # Fomantic-UI 2.9.3-beta.
|
28568
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - State
|
28527
28569
|
* https://github.com/fomantic/Fomantic-UI/
|
28528
28570
|
*
|
28529
28571
|
*
|
@@ -28547,15 +28589,25 @@
|
|
28547
28589
|
var
|
28548
28590
|
$allModules = $(this),
|
28549
28591
|
|
28550
|
-
moduleSelector = $allModules.selector || '',
|
28551
|
-
|
28552
28592
|
time = Date.now(),
|
28553
28593
|
performance = [],
|
28554
28594
|
|
28555
28595
|
query = arguments[0],
|
28556
28596
|
methodInvoked = typeof query === 'string',
|
28557
28597
|
queryArguments = [].slice.call(arguments, 1),
|
28598
|
+
contextCheck = function (context, win) {
|
28599
|
+
var $context;
|
28600
|
+
if ([window, document].indexOf(context) >= 0) {
|
28601
|
+
$context = $(context);
|
28602
|
+
} else {
|
28603
|
+
$context = $(win.document).find(context);
|
28604
|
+
if ($context.length === 0) {
|
28605
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
28606
|
+
}
|
28607
|
+
}
|
28558
28608
|
|
28609
|
+
return $context;
|
28610
|
+
},
|
28559
28611
|
returnedValue
|
28560
28612
|
;
|
28561
28613
|
$allModules.each(function () {
|
@@ -28575,6 +28627,7 @@
|
|
28575
28627
|
moduleNamespace = namespace + '-module',
|
28576
28628
|
|
28577
28629
|
$module = $(this),
|
28630
|
+
$context = settings.context ? contextCheck(settings.context, window) : $module,
|
28578
28631
|
|
28579
28632
|
element = this,
|
28580
28633
|
instance = $module.data(moduleNamespace),
|
@@ -28592,19 +28645,11 @@
|
|
28592
28645
|
}
|
28593
28646
|
|
28594
28647
|
// bind events with delegated events
|
28595
|
-
|
28596
|
-
|
28597
|
-
|
28598
|
-
|
28599
|
-
|
28600
|
-
;
|
28601
|
-
} else {
|
28602
|
-
$module
|
28603
|
-
.on('mouseenter' + eventNamespace, module.change.text)
|
28604
|
-
.on('mouseleave' + eventNamespace, module.reset.text)
|
28605
|
-
.on('click' + eventNamespace, module.toggle.state)
|
28606
|
-
;
|
28607
|
-
}
|
28648
|
+
$context
|
28649
|
+
.on('mouseenter' + eventNamespace, module.change.text)
|
28650
|
+
.on('mouseleave' + eventNamespace, module.reset.text)
|
28651
|
+
.on('click' + eventNamespace, module.toggle.state)
|
28652
|
+
;
|
28608
28653
|
module.instantiate();
|
28609
28654
|
},
|
28610
28655
|
|
@@ -28618,8 +28663,11 @@
|
|
28618
28663
|
|
28619
28664
|
destroy: function () {
|
28620
28665
|
module.verbose('Destroying previous module', instance);
|
28621
|
-
$
|
28666
|
+
$context
|
28622
28667
|
.off(eventNamespace)
|
28668
|
+
;
|
28669
|
+
$module
|
28670
|
+
.removeData(metadata.storedText)
|
28623
28671
|
.removeData(moduleNamespace)
|
28624
28672
|
;
|
28625
28673
|
},
|
@@ -29013,9 +29061,6 @@
|
|
29013
29061
|
totalTime += data['Execution Time'];
|
29014
29062
|
});
|
29015
29063
|
title += ' ' + totalTime + 'ms';
|
29016
|
-
if (moduleSelector) {
|
29017
|
-
title += ' \'' + moduleSelector + '\'';
|
29018
|
-
}
|
29019
29064
|
if (performance.length > 0) {
|
29020
29065
|
console.groupCollapsed(title);
|
29021
29066
|
if (console.table) {
|
@@ -29216,7 +29261,7 @@
|
|
29216
29261
|
})(jQuery, window, document);
|
29217
29262
|
|
29218
29263
|
/*!
|
29219
|
-
* # Fomantic-UI 2.9.3-beta.
|
29264
|
+
* # Fomantic-UI 2.9.3-beta.3+880333c - Visibility
|
29220
29265
|
* https://github.com/fomantic/Fomantic-UI/
|
29221
29266
|
*
|
29222
29267
|
*
|
@@ -29239,7 +29284,6 @@
|
|
29239
29284
|
$.fn.visibility = function (parameters) {
|
29240
29285
|
var
|
29241
29286
|
$allModules = $(this),
|
29242
|
-
moduleSelector = $allModules.selector || '',
|
29243
29287
|
|
29244
29288
|
time = Date.now(),
|
29245
29289
|
performance = [],
|
@@ -29247,6 +29291,19 @@
|
|
29247
29291
|
query = arguments[0],
|
29248
29292
|
methodInvoked = typeof query === 'string',
|
29249
29293
|
queryArguments = [].slice.call(arguments, 1),
|
29294
|
+
contextCheck = function (context, win) {
|
29295
|
+
var $context;
|
29296
|
+
if ([window, document].indexOf(context) >= 0) {
|
29297
|
+
$context = $(context);
|
29298
|
+
} else {
|
29299
|
+
$context = $(win.document).find(context);
|
29300
|
+
if ($context.length === 0) {
|
29301
|
+
$context = win.frameElement ? contextCheck(context, win.parent) : window;
|
29302
|
+
}
|
29303
|
+
}
|
29304
|
+
|
29305
|
+
return $context;
|
29306
|
+
},
|
29250
29307
|
returnedValue,
|
29251
29308
|
|
29252
29309
|
moduleCount = $allModules.length,
|
@@ -29270,7 +29327,7 @@
|
|
29270
29327
|
$window = $(window),
|
29271
29328
|
|
29272
29329
|
$module = $(this),
|
29273
|
-
$context =
|
29330
|
+
$context = contextCheck(settings.context, window),
|
29274
29331
|
|
29275
29332
|
$placeholder,
|
29276
29333
|
|
@@ -30306,9 +30363,6 @@
|
|
30306
30363
|
totalTime += data['Execution Time'];
|
30307
30364
|
});
|
30308
30365
|
title += ' ' + totalTime + 'ms';
|
30309
|
-
if (moduleSelector) {
|
30310
|
-
title += ' \'' + moduleSelector + '\'';
|
30311
|
-
}
|
30312
30366
|
if (performance.length > 0) {
|
30313
30367
|
console.groupCollapsed(title);
|
30314
30368
|
if (console.table) {
|