fomantic-ui 2.10.0-beta.2 → 2.10.0-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/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 +6 -6
- 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 +7 -7
- 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 +4 -4
- 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 +29 -29
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +2 -2
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- 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 -3
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -5
- package/dist/components/form.js +11 -11
- 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 +2 -2
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +2 -2
- 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 +8 -8
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +7 -7
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +7 -7
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +2 -2
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +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 +5 -5
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +3 -3
- 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 +5 -5
- 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 +10 -10
- 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 +4 -4
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +5 -5
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +2 -2
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +57 -57
- package/dist/semantic.js +131 -131
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +5 -5
- package/src/definitions/behaviors/form.js +10 -10
- package/src/definitions/behaviors/state.js +2 -2
- package/src/definitions/behaviors/visibility.js +1 -1
- package/src/definitions/collections/form.less +1 -1
- package/src/definitions/modules/calendar.js +6 -6
- package/src/definitions/modules/dimmer.js +3 -3
- package/src/definitions/modules/dropdown.js +28 -28
- package/src/definitions/modules/embed.js +1 -1
- package/src/definitions/modules/flyout.js +2 -2
- package/src/definitions/modules/modal.js +1 -1
- package/src/definitions/modules/nag.js +1 -1
- package/src/definitions/modules/popup.js +7 -7
- package/src/definitions/modules/progress.js +6 -6
- package/src/definitions/modules/search.js +6 -6
- package/src/definitions/modules/shape.js +1 -1
- package/src/definitions/modules/sidebar.js +1 -1
- package/src/definitions/modules/slider.js +4 -4
- package/src/definitions/modules/slider.less +1 -1
- package/src/definitions/modules/sticky.js +4 -4
- package/src/definitions/modules/tab.js +9 -9
- package/src/definitions/modules/toast.js +3 -3
- package/src/definitions/modules/transition.js +4 -4
- package/src/themes/default/modules/slider.variables +1 -1
@@ -134,7 +134,7 @@
|
|
134
134
|
determine: {
|
135
135
|
searchFields: function () {
|
136
136
|
// this makes sure $.extend does not add specified search fields to default fields
|
137
|
-
// this is the only setting
|
137
|
+
// this is the only setting that should not extend defaults
|
138
138
|
if (parameters && parameters.searchFields !== undefined) {
|
139
139
|
settings.searchFields = Array.isArray(parameters.searchFields)
|
140
140
|
? parameters.searchFields
|
@@ -660,7 +660,7 @@
|
|
660
660
|
? searchFields
|
661
661
|
: settings.searchFields;
|
662
662
|
|
663
|
-
// search fields should be array to loop correctly
|
663
|
+
// search fields should be an array to loop correctly
|
664
664
|
if (!Array.isArray(searchFields)) {
|
665
665
|
searchFields = [searchFields];
|
666
666
|
}
|
@@ -938,7 +938,7 @@
|
|
938
938
|
id: function (results) {
|
939
939
|
module.debug('Injecting unique ids into results');
|
940
940
|
var
|
941
|
-
// since results may be object, we must use counters
|
941
|
+
// since results may be an object, we must use counters
|
942
942
|
categoryIndex = 0,
|
943
943
|
resultIndex = 0
|
944
944
|
;
|
@@ -1342,7 +1342,7 @@
|
|
1342
1342
|
// minimum characters required to search
|
1343
1343
|
minCharacters: 1,
|
1344
1344
|
|
1345
|
-
// whether to select first result after searching automatically
|
1345
|
+
// whether to select the first result after searching automatically
|
1346
1346
|
selectFirstResult: false,
|
1347
1347
|
|
1348
1348
|
// API config
|
@@ -1370,7 +1370,7 @@
|
|
1370
1370
|
// Whether search result should highlight matching strings
|
1371
1371
|
highlightMatches: false,
|
1372
1372
|
|
1373
|
-
// match results also if they contain diacritics of the same base character (for example searching for "a" will also match "á" or "â" or "à", etc...)
|
1373
|
+
// match results also if they contain diacritics of the same base character (for example, searching for "a" will also match "á" or "â" or "à", etc...)
|
1374
1374
|
ignoreDiacritics: false,
|
1375
1375
|
|
1376
1376
|
// whether to consider case sensitivity on local searching
|
@@ -1379,7 +1379,7 @@
|
|
1379
1379
|
// whether to add events to prompt automatically
|
1380
1380
|
automatic: true,
|
1381
1381
|
|
1382
|
-
// delay before hiding menu after blur
|
1382
|
+
// delay before hiding the menu after blur
|
1383
1383
|
hideDelay: 0,
|
1384
1384
|
|
1385
1385
|
// delay before searching
|
@@ -389,7 +389,7 @@
|
|
389
389
|
if (module.othersActive()) {
|
390
390
|
module.debug('Other sidebars currently visible');
|
391
391
|
if (settings.exclusive) {
|
392
|
-
// if not overlay queue animation after hide
|
392
|
+
// if not overlay, queue animation after hide
|
393
393
|
if (settings.transition !== 'overlay') {
|
394
394
|
module.hideOthers(module.show);
|
395
395
|
|
@@ -271,7 +271,7 @@
|
|
271
271
|
isHover = false;
|
272
272
|
});
|
273
273
|
// All touch events are invoked on the element where the touch *started*. Thus, we can bind them all
|
274
|
-
// on the thumb(s) and don't need to worry about interference with other components, i.e
|
274
|
+
// on the thumb(s) and don't need to worry about interference with other components, i.e., no dynamic binding
|
275
275
|
// and unbinding required.
|
276
276
|
$module.find('.thumb')
|
277
277
|
.on('touchstart' + eventNamespace, module.event.touchDown)
|
@@ -281,7 +281,7 @@
|
|
281
281
|
;
|
282
282
|
},
|
283
283
|
slidingEvents: function () {
|
284
|
-
// these don't need the identifier because we only ever want one of them to be registered with document
|
284
|
+
// these don't need the identifier because we only ever want one of them to be registered with the document
|
285
285
|
module.verbose('Binding page wide events while handle is being draged');
|
286
286
|
$document.on('mousemove' + eventNamespace, module.event.move);
|
287
287
|
$document.on('mouseup' + eventNamespace, module.event.up);
|
@@ -506,7 +506,7 @@
|
|
506
506
|
},
|
507
507
|
|
508
508
|
resync: function () {
|
509
|
-
module.verbose('
|
509
|
+
module.verbose('Re-syncing thumb position based on value');
|
510
510
|
module.setup.labels();
|
511
511
|
if (module.is.range()) {
|
512
512
|
module.update.position(module.secondThumbVal, $secondThumb);
|
@@ -985,7 +985,7 @@
|
|
985
985
|
if (value !== difference) {
|
986
986
|
module.verbose('Rounding value to closest step: ' + difference);
|
987
987
|
}
|
988
|
-
// Use precision to avoid ugly
|
988
|
+
// Use precision to avoid ugly JavaScript floating point rounding issues
|
989
989
|
// (like 35 * .01 = 0.35000000000000003)
|
990
990
|
module.verbose('Cutting off additional decimal places');
|
991
991
|
|
@@ -871,10 +871,10 @@
|
|
871
871
|
// Offset to adjust scroll when attached to bottom of screen
|
872
872
|
bottomOffset: 0,
|
873
873
|
|
874
|
-
// will only set container height if difference between context and container is larger than this number
|
874
|
+
// will only set container height if the difference between context and container is larger than this number
|
875
875
|
jitter: 5,
|
876
876
|
|
877
|
-
// set width of sticky element when it is fixed to page (used to make sure 100% width is maintained if no fixed size set)
|
877
|
+
// set width of the sticky element when it is fixed to page (used to make sure 100% width is maintained if no fixed size set)
|
878
878
|
setSize: true,
|
879
879
|
|
880
880
|
// Whether to automatically observe changes with Mutation Observers
|
@@ -886,10 +886,10 @@
|
|
886
886
|
// Called on each scroll
|
887
887
|
onScroll: function () {},
|
888
888
|
|
889
|
-
// Called when element is stuck to viewport
|
889
|
+
// Called when the element is stuck to viewport
|
890
890
|
onStick: function () {},
|
891
891
|
|
892
|
-
// Called when element is unstuck from viewport
|
892
|
+
// Called when the element is unstuck from viewport
|
893
893
|
onUnstick: function () {},
|
894
894
|
|
895
895
|
// Called when element reaches top of context
|
@@ -320,7 +320,7 @@
|
|
320
320
|
pushStateAvailable = window.history && window.history.pushState,
|
321
321
|
shouldIgnoreLoad = pushStateAvailable && settings.ignoreFirstLoad && firstLoad,
|
322
322
|
remoteContent = settings.auto || $.isPlainObject(settings.apiSettings),
|
323
|
-
// only add default path if not remote content
|
323
|
+
// only add the default path if not remote content
|
324
324
|
pathArray = remoteContent && !shouldIgnoreLoad
|
325
325
|
? module.utilities.pathToArray(tabPath)
|
326
326
|
: module.get.defaultPathArray(tabPath)
|
@@ -392,7 +392,7 @@
|
|
392
392
|
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
|
393
393
|
currentPath = $anchor.closest('[data-tab]').data(metadata.tab);
|
394
394
|
$tab = module.get.tabElement(currentPath);
|
395
|
-
// if anchor exists use parent tab
|
395
|
+
// if anchor exists, use parent tab
|
396
396
|
if ($anchor && $anchor.length > 0 && currentPath) {
|
397
397
|
module.debug('Anchor link used, opening parent tab', $tab, $anchor);
|
398
398
|
if (settings.onBeforeChange.call(element, currentPath) === false) {
|
@@ -615,7 +615,7 @@
|
|
615
615
|
path: function () {
|
616
616
|
return $.address.value();
|
617
617
|
},
|
618
|
-
// adds default tabs to tab path
|
618
|
+
// adds default tabs to the tab path
|
619
619
|
defaultPathArray: function (tabPath) {
|
620
620
|
return module.utilities.pathToArray(module.get.defaultPath(tabPath));
|
621
621
|
},
|
@@ -899,7 +899,7 @@
|
|
899
899
|
verbose: false,
|
900
900
|
performance: true,
|
901
901
|
|
902
|
-
auto: false, // uses pjax style endpoints fetching content from same url with remote-content headers
|
902
|
+
auto: false, // uses pjax style endpoints fetching content from the same url with remote-content headers
|
903
903
|
history: false, // use browser history
|
904
904
|
historyType: 'hash', // #/ or html5 state
|
905
905
|
path: false, // base path of url
|
@@ -913,21 +913,21 @@
|
|
913
913
|
alwaysRefresh: false, // load tab content new every tab click
|
914
914
|
cache: true, // cache the content requests to pull locally
|
915
915
|
loadOnce: false, // Whether tab data should only be loaded once when using remote content
|
916
|
-
cacheType: 'response', // Whether to cache exact response, or to
|
917
|
-
ignoreFirstLoad: false, // don't load remote content on first load
|
916
|
+
cacheType: 'response', // Whether to cache exact response, or to HTML cache contents after scripts execute
|
917
|
+
ignoreFirstLoad: false, // don't load remote content on the first load
|
918
918
|
|
919
919
|
apiSettings: false, // settings for api call
|
920
920
|
evaluateScripts: 'once', // whether inline scripts should be parsed (true/false/once). Once will not re-evaluate on cached content
|
921
|
-
autoTabActivation: true, // whether a non
|
921
|
+
autoTabActivation: true, // whether a non-existing active tab will auto activate the first available tab
|
922
922
|
|
923
923
|
onFirstLoad: function (tabPath, parameterArray, historyEvent) {}, // called first time loaded
|
924
924
|
onLoad: function (tabPath, parameterArray, historyEvent) {}, // called on every load
|
925
925
|
onVisible: function (tabPath, parameterArray, historyEvent) {}, // called every time tab visible
|
926
|
-
onRequest: function (tabPath, parameterArray, historyEvent) {}, // called
|
926
|
+
onRequest: function (tabPath, parameterArray, historyEvent) {}, // called every time a tab beings loading remote content
|
927
927
|
onBeforeChange: function (tabPath) {}, // called before a tab is about to be changed. Returning false will cancel the tab change
|
928
928
|
|
929
929
|
templates: {
|
930
|
-
determineTitle: function (tabArray) {}, // returns page title for path
|
930
|
+
determineTitle: function (tabArray) {}, // returns page title for the path
|
931
931
|
},
|
932
932
|
|
933
933
|
error: {
|
@@ -826,8 +826,8 @@
|
|
826
826
|
|
827
827
|
title: '',
|
828
828
|
message: '',
|
829
|
-
displayTime: 3000, // set to zero to require
|
830
|
-
minDisplayTime: 1000, // minimum
|
829
|
+
displayTime: 3000, // set to zero to require manual dismissal, otherwise hides on its own
|
830
|
+
minDisplayTime: 1000, // minimum display time in case displayTime is set to 'auto'
|
831
831
|
wordsPerMinute: 120,
|
832
832
|
showIcon: false,
|
833
833
|
newestOnTop: false,
|
@@ -850,7 +850,7 @@
|
|
850
850
|
showDuration: 500,
|
851
851
|
hideMethod: 'scale',
|
852
852
|
hideDuration: 500,
|
853
|
-
closeEasing: 'easeOutCubic', // Set to empty string to stack the closed toast area immediately (old
|
853
|
+
closeEasing: 'easeOutCubic', // Set to empty string to stack the closed toast area immediately (old behavior)
|
854
854
|
closeDuration: 500,
|
855
855
|
},
|
856
856
|
|
@@ -588,7 +588,7 @@
|
|
588
588
|
if (shouldDetermine && $module.data(metadata.displayType) === undefined) {
|
589
589
|
var currentDisplay = $module.css('display');
|
590
590
|
if (currentDisplay === '' || currentDisplay === 'none') {
|
591
|
-
// create fake element to determine display state
|
591
|
+
// create a fake element to determine display state
|
592
592
|
module.can.transition(true);
|
593
593
|
} else {
|
594
594
|
module.save.displayType(currentDisplay);
|
@@ -967,7 +967,7 @@
|
|
967
967
|
// event namespace
|
968
968
|
namespace: 'transition',
|
969
969
|
|
970
|
-
// delay between animations in group
|
970
|
+
// delay between animations in a group
|
971
971
|
interval: 0,
|
972
972
|
|
973
973
|
// whether group animations should be reversed
|
@@ -990,13 +990,13 @@
|
|
990
990
|
// whether timeout should be used to ensure callback fires in cases animationend does not
|
991
991
|
useFailSafe: true,
|
992
992
|
|
993
|
-
// delay in ms for fail
|
993
|
+
// delay in ms for fail-safe
|
994
994
|
failSafeDelay: 100,
|
995
995
|
|
996
996
|
// whether EXACT animation can occur twice in a row
|
997
997
|
allowRepeats: false,
|
998
998
|
|
999
|
-
// Override final display type on visible
|
999
|
+
// Override the final display type on visible
|
1000
1000
|
displayType: false,
|
1001
1001
|
|
1002
1002
|
// animation duration
|