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
package/dist/components/popup.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Popup
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -170,7 +170,7 @@
|
|
170
170
|
if (documentObserver) {
|
171
171
|
documentObserver.disconnect();
|
172
172
|
}
|
173
|
-
// remove element only if was created dynamically
|
173
|
+
// remove the element only if was created dynamically
|
174
174
|
if ($popup && !settings.preserve) {
|
175
175
|
module.removePopup();
|
176
176
|
}
|
@@ -557,7 +557,7 @@
|
|
557
557
|
},
|
558
558
|
};
|
559
559
|
|
560
|
-
// if popup offset context is
|
560
|
+
// if popup offset context is different from target, then adjust calculations
|
561
561
|
if ($popupOffsetParent[0] !== $offsetParent[0]) {
|
562
562
|
var
|
563
563
|
popupOffset = $popupOffsetParent.offset()
|
@@ -818,7 +818,7 @@
|
|
818
818
|
module.debug('RTL: Popup position updated', position);
|
819
819
|
}
|
820
820
|
|
821
|
-
// if last attempt use specified last resort position
|
821
|
+
// if last attempt, use specified last resort position
|
822
822
|
if (searchDepth === settings.maxSearchDepth && typeof settings.lastResort === 'string') {
|
823
823
|
position = settings.lastResort;
|
824
824
|
}
|
@@ -1362,7 +1362,7 @@
|
|
1362
1362
|
// whether it should use dom mutation observers
|
1363
1363
|
observeChanges: true,
|
1364
1364
|
|
1365
|
-
// callback only when element added to dom
|
1365
|
+
// callback only when the element was added to dom
|
1366
1366
|
onCreate: function () {},
|
1367
1367
|
|
1368
1368
|
// callback before element removed from dom
|
@@ -1407,7 +1407,7 @@
|
|
1407
1407
|
// element which popup should be relative to
|
1408
1408
|
target: false,
|
1409
1409
|
|
1410
|
-
//
|
1410
|
+
// jQuery selector or element that should be used as a popup
|
1411
1411
|
popup: false,
|
1412
1412
|
|
1413
1413
|
// popup should remain inline next to activator
|
@@ -1422,7 +1422,7 @@
|
|
1422
1422
|
// explicitly set content
|
1423
1423
|
content: false,
|
1424
1424
|
|
1425
|
-
// explicitly set
|
1425
|
+
// explicitly set HTML
|
1426
1426
|
html: false,
|
1427
1427
|
|
1428
1428
|
// explicitly set title
|
@@ -1465,7 +1465,7 @@
|
|
1465
1465
|
duration: 200,
|
1466
1466
|
transition: 'scale',
|
1467
1467
|
|
1468
|
-
// distance away from activating element in px
|
1468
|
+
// distance away from the activating element in px
|
1469
1469
|
distanceAway: 0,
|
1470
1470
|
|
1471
1471
|
// number of pixels an element is allowed to be "offstage" for a position to be chosen (allows for rounding)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Progress
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -69,13 +69,13 @@
|
|
69
69
|
/**
|
70
70
|
* Derive precision for multiple progress with total and values.
|
71
71
|
*
|
72
|
-
* This helper dervices a precision that is
|
72
|
+
* This helper dervices a precision that is large enough to show the minimum value of multiple progress.
|
73
73
|
*
|
74
74
|
* Example1
|
75
75
|
* - total: 1122
|
76
76
|
* - values: [325, 111, 74, 612]
|
77
77
|
* - min ratio: 74/1122 = 0.0659...
|
78
|
-
* - required precision:
|
78
|
+
* - required precision: 100
|
79
79
|
*
|
80
80
|
* Example2
|
81
81
|
* - total: 10541
|
@@ -323,7 +323,7 @@
|
|
323
323
|
: value;
|
324
324
|
},
|
325
325
|
|
326
|
-
// gets current displayed percentage (if animating values this is the intermediary value)
|
326
|
+
// gets current displayed percentage (if animating values, this is the intermediary value)
|
327
327
|
displayPercent: function (index) {
|
328
328
|
var
|
329
329
|
$bar = $($bars[index]),
|
@@ -487,10 +487,10 @@
|
|
487
487
|
var isMultipleValues = percents.length > 1 && hasTotal;
|
488
488
|
var sumTotal = module.helper.sum(module.helper.forceArray(module.value));
|
489
489
|
if (isMultipleValues && sumTotal > module.total) {
|
490
|
-
// Sum values instead of
|
490
|
+
// Sum values instead of percents to avoid precision issues when summing floats
|
491
491
|
module.error(error.sumExceedsTotal, sumTotal, module.total);
|
492
492
|
} else if (!isMultipleValues && totalPercent > 100) {
|
493
|
-
// Sum before rounding since sum of rounded may have error though sum of actual is fine
|
493
|
+
// Sum before rounding, since sum of rounded may have error though sum of actual is fine
|
494
494
|
module.error(error.tooHigh, totalPercent);
|
495
495
|
} else if (totalPercent < 0) {
|
496
496
|
module.error(error.tooLow, totalPercent);
|
@@ -922,7 +922,7 @@
|
|
922
922
|
total: false,
|
923
923
|
value: false,
|
924
924
|
|
925
|
-
// delay in ms for fail
|
925
|
+
// delay in ms for fail-safe animation callback
|
926
926
|
failSafeDelay: 100,
|
927
927
|
|
928
928
|
onLabelUpdate: function (state, text, value, total) {
|
package/dist/components/rail.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Search
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -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
|
package/dist/components/shape.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Shape
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -767,7 +767,7 @@
|
|
767
767
|
onBeforeChange: function () {},
|
768
768
|
onChange: function () {},
|
769
769
|
|
770
|
-
// allow animation to same side
|
770
|
+
// allow animation to the same side
|
771
771
|
allowRepeats: false,
|
772
772
|
|
773
773
|
// animation duration
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Sidebar
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -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
|
|
package/dist/components/site.css
CHANGED
package/dist/components/site.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.3+f3fff7f - Slider
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -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
|
|