fomantic-ui 2.10.0-beta.2 → 2.10.0-beta.4
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/CONTRIBUTING.md +4 -1
- package/CONTRIBUTORS.md +1 -0
- package/FAQ.md +7 -2
- package/README.md +1 -4
- package/ROADMAP.md +4 -4
- package/SECURITY.md +8 -7
- 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 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -2
- package/dist/components/calendar.js +7 -7
- 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 -2
- package/dist/components/checkbox.js +1 -9
- package/dist/components/checkbox.min.css +2 -2
- 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 +2 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -11
- package/dist/components/dimmer.js +4 -4
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -2
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +24 -47
- package/dist/components/dropdown.js +30 -34
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +2 -2
- 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 +2 -3
- package/dist/components/flyout.js +5 -45
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -95
- package/dist/components/form.js +11 -16
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -58
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +4 -4
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -536
- package/dist/components/input.min.css +2 -2
- 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 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -9
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +5 -9
- package/dist/components/modal.js +6 -30
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +2 -2
- 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 -2
- package/dist/components/popup.js +8 -8
- package/dist/components/popup.min.css +2 -2
- 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 +2 -9
- package/dist/components/search.js +8 -8
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -2
- package/dist/components/shape.js +2 -2
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +2 -3
- package/dist/components/sidebar.js +3 -44
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +9 -25
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- 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 +3 -37
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -3
- package/dist/components/toast.js +5 -5
- 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 +6 -6
- 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 +92 -1100
- package/dist/semantic.js +142 -264
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +3 -4
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +5 -5
- package/src/definitions/behaviors/form.js +10 -15
- package/src/definitions/behaviors/state.js +2 -2
- package/src/definitions/behaviors/visibility.js +1 -1
- package/src/definitions/collections/form.less +1 -13
- package/src/definitions/collections/grid.less +1 -61
- package/src/definitions/collections/menu.less +0 -11
- package/src/definitions/collections/table.less +1 -35
- package/src/definitions/elements/input.less +1 -61
- package/src/definitions/elements/segment.less +0 -6
- package/src/definitions/globals/site.less +2 -18
- package/src/definitions/modules/calendar.js +6 -6
- package/src/definitions/modules/checkbox.js +0 -8
- package/src/definitions/modules/dimmer.js +3 -3
- package/src/definitions/modules/dimmer.less +0 -9
- package/src/definitions/modules/dropdown.js +29 -33
- package/src/definitions/modules/dropdown.less +20 -42
- package/src/definitions/modules/embed.js +1 -1
- package/src/definitions/modules/flyout.js +4 -44
- package/src/definitions/modules/modal.js +5 -29
- package/src/definitions/modules/modal.less +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 +7 -7
- package/src/definitions/modules/search.less +0 -3
- package/src/definitions/modules/shape.js +1 -1
- package/src/definitions/modules/sidebar.js +2 -43
- 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 +4 -4
- package/src/definitions/modules/toast.less +1 -1
- package/src/definitions/modules/transition.js +5 -5
- package/src/theme.less +0 -13
- package/src/themes/basic/elements/icon.variables +1 -1
- package/src/themes/default/collections/grid.variables +0 -30
- package/src/themes/default/collections/table.variables +1 -5
- package/src/themes/default/elements/icon.variables +3 -3
- package/src/themes/default/globals/site.variables +8 -15
- package/src/themes/default/globals/variation.variables +0 -1
- package/src/themes/default/modules/slider.variables +1 -1
- package/src/themes/github/elements/icon.variables +1 -1
- package/src/themes/material/elements/icon.variables +1 -1
- package/tasks/README.md +1 -1
- package/tasks/admin/components/create.js +1 -14
- package/tasks/admin/components/init.js +12 -37
- package/tasks/admin/components/update.js +7 -11
- package/tasks/admin/distributions/create.js +1 -11
- package/tasks/admin/distributions/init.js +10 -35
- package/tasks/admin/distributions/update.js +7 -8
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +3 -4
- package/tasks/admin/release.js +2 -2
- package/tasks/build/css.js +5 -5
- package/tasks/build/javascript.js +3 -3
- package/tasks/check-install.js +0 -1
- package/tasks/clean.js +5 -5
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/docs.js +2 -2
- package/tasks/config/admin/github.js +2 -10
- package/tasks/config/admin/templates/README.md +2 -2
- package/tasks/config/admin/templates/bower.json +2 -4
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +0 -1
- package/tasks/config/project/config.js +6 -6
- package/tasks/config/project/install.js +3 -4
- package/tasks/config/project/release.js +1 -1
- package/tasks/config/tasks.js +2 -9
- package/tasks/config/user.js +2 -4
- package/tasks/docs/metadata.js +8 -11
- package/tasks/docs/serve.js +3 -1
- package/tasks/install.js +14 -20
- package/tasks/rtl/watch.js +1 -1
- package/tasks/watch.js +4 -2
- package/types/fomantic-ui-calendar.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +1 -1
- package/types/fomantic-ui-form.d.ts +0 -7
- package/types/fomantic-ui-modal.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +6 -0
- package/types/fomantic-ui-toast.d.ts +1 -1
- package/src/themes/basic/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/github/assets/fonts/octicons.woff +0 -0
- package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -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) {
|
@@ -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
|
@@ -1395,7 +1395,7 @@
|
|
1395
1395
|
showNoResults: true,
|
1396
1396
|
|
1397
1397
|
// preserve possible html of resultset values
|
1398
|
-
preserveHTML:
|
1398
|
+
preserveHTML: false,
|
1399
1399
|
|
1400
1400
|
// transition settings
|
1401
1401
|
transition: 'scale',
|
@@ -252,28 +252,6 @@
|
|
252
252
|
+ ' }';
|
253
253
|
}
|
254
254
|
|
255
|
-
/* IE is only browser not to create context with transforms */
|
256
|
-
/* https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 */
|
257
|
-
if (module.is.ie()) {
|
258
|
-
if (direction === 'left' || direction === 'right') {
|
259
|
-
module.debug('Adding CSS rules for animation distance', width);
|
260
|
-
style += ''
|
261
|
-
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
262
|
-
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
263
|
-
+ ' }';
|
264
|
-
} else if (direction === 'top' || direction === 'bottom') {
|
265
|
-
style += ''
|
266
|
-
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
267
|
-
+ ' transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
268
|
-
+ ' }';
|
269
|
-
}
|
270
|
-
/* opposite sides visible forces content overlay */
|
271
|
-
style += ''
|
272
|
-
+ ' body.pushable > .ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher::after,'
|
273
|
-
+ ' body.pushable > .ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher::after {'
|
274
|
-
+ ' transform: translate3d(0, 0, 0);'
|
275
|
-
+ ' }';
|
276
|
-
}
|
277
255
|
style += '</style>';
|
278
256
|
$style = $(style)
|
279
257
|
.appendTo($head)
|
@@ -355,7 +333,7 @@
|
|
355
333
|
can: {
|
356
334
|
leftBodyScrollbar: function () {
|
357
335
|
if (module.cache.leftBodyScrollbar === undefined) {
|
358
|
-
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari()
|
336
|
+
module.cache.leftBodyScrollbar = module.is.rtl() && ((module.is.iframe && !module.is.firefox()) || module.is.safari());
|
359
337
|
}
|
360
338
|
|
361
339
|
return module.cache.leftBodyScrollbar;
|
@@ -389,7 +367,7 @@
|
|
389
367
|
if (module.othersActive()) {
|
390
368
|
module.debug('Other sidebars currently visible');
|
391
369
|
if (settings.exclusive) {
|
392
|
-
// if not overlay queue animation after hide
|
370
|
+
// if not overlay, queue animation after hide
|
393
371
|
if (settings.transition !== 'overlay') {
|
394
372
|
module.hideOthers(module.show);
|
395
373
|
|
@@ -730,13 +708,6 @@
|
|
730
708
|
|
731
709
|
return module.cache.isSafari;
|
732
710
|
},
|
733
|
-
edge: function () {
|
734
|
-
if (module.cache.isEdge === undefined) {
|
735
|
-
module.cache.isEdge = !!window.setImmediate && !module.is.ie();
|
736
|
-
}
|
737
|
-
|
738
|
-
return module.cache.isEdge;
|
739
|
-
},
|
740
711
|
firefox: function () {
|
741
712
|
if (module.cache.isFirefox === undefined) {
|
742
713
|
module.cache.isFirefox = !!window.InstallTrigger;
|
@@ -747,18 +718,6 @@
|
|
747
718
|
iframe: function () {
|
748
719
|
return !(self === top);
|
749
720
|
},
|
750
|
-
ie: function () {
|
751
|
-
if (module.cache.isIE === undefined) {
|
752
|
-
var
|
753
|
-
isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
|
754
|
-
isIE = 'ActiveXObject' in window
|
755
|
-
;
|
756
|
-
module.cache.isIE = isIE11 || isIE;
|
757
|
-
}
|
758
|
-
|
759
|
-
return module.cache.isIE;
|
760
|
-
},
|
761
|
-
|
762
721
|
mobile: function () {
|
763
722
|
var
|
764
723
|
userAgent = navigator.userAgent,
|
@@ -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,
|
@@ -840,7 +840,7 @@
|
|
840
840
|
closeOnClick: true,
|
841
841
|
cloneModule: true,
|
842
842
|
actions: false,
|
843
|
-
preserveHTML:
|
843
|
+
preserveHTML: false,
|
844
844
|
showImage: false,
|
845
845
|
alt: false,
|
846
846
|
|
@@ -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);
|
@@ -719,7 +719,7 @@
|
|
719
719
|
if (module.is.animating()) {
|
720
720
|
module.reset();
|
721
721
|
}
|
722
|
-
element.blur();
|
722
|
+
element.blur();
|
723
723
|
module.remove.display();
|
724
724
|
module.remove.visible();
|
725
725
|
settings.onBeforeHide.call(element, module.hideNow);
|
@@ -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
|
package/src/theme.less
CHANGED
@@ -75,16 +75,3 @@
|
|
75
75
|
});
|
76
76
|
}
|
77
77
|
}
|
78
|
-
|
79
|
-
/* ------------------
|
80
|
-
Overrides
|
81
|
-
------------------- */
|
82
|
-
|
83
|
-
// Keep empty mixin in case of custom components using it so they dont break
|
84
|
-
.loadUIOverrides() {
|
85
|
-
/* loadUIOverrides mixin is deprecated and will be removed in 2.10.0
|
86
|
-
Replace mixin call by
|
87
|
-
@import (multiple, optional) "../../overrides.less";
|
88
|
-
instead
|
89
|
-
*/
|
90
|
-
}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
@fonts: {
|
8
8
|
@solid: {
|
9
9
|
font-family: @fontName;
|
10
|
-
src: url("@{fontPath}/@{fontName}.woff2") format("woff2")
|
10
|
+
src: url("@{fontPath}/@{fontName}.woff2") format("woff2");
|
11
11
|
font-style: normal;
|
12
12
|
font-weight: @normal;
|
13
13
|
font-variant: normal;
|
@@ -86,33 +86,3 @@
|
|
86
86
|
@veryCompactRowSpacing: (@compactRowSpacing / 2);
|
87
87
|
@veryCompactCelledRelaxedPadding: (@compactCelledRelaxedPadding / 2);
|
88
88
|
@veryCompactCelledVeryRelaxedPadding: (@compactCelledVeryRelaxedPadding / 2);
|
89
|
-
|
90
|
-
/*******************************
|
91
|
-
Legacy
|
92
|
-
*******************************/
|
93
|
-
|
94
|
-
/* --------------
|
95
|
-
Page
|
96
|
-
--------------- */
|
97
|
-
|
98
|
-
/* Legacy (DO NOT USE)
|
99
|
-
*/
|
100
|
-
@mobileWidth: auto;
|
101
|
-
@mobileMargin: 0;
|
102
|
-
@mobileGutter: 0;
|
103
|
-
|
104
|
-
@tabletWidth: auto;
|
105
|
-
@tabletMargin: 0;
|
106
|
-
@tabletGutter: 2em;
|
107
|
-
|
108
|
-
@computerWidth: auto;
|
109
|
-
@computerMargin: 0;
|
110
|
-
@computerGutter: 3%;
|
111
|
-
|
112
|
-
@largeMonitorWidth: auto;
|
113
|
-
@largeMonitorMargin: 0;
|
114
|
-
@largeMonitorGutter: 15%;
|
115
|
-
|
116
|
-
@widescreenMonitorWidth: auto;
|
117
|
-
@widescreenMargin: 0;
|
118
|
-
@widescreenMonitorGutter: 23%;
|
@@ -41,7 +41,6 @@
|
|
41
41
|
@headerBorder: 1px solid @internalBorderColor;
|
42
42
|
@headerDivider: none;
|
43
43
|
@headerBackground: @offWhite;
|
44
|
-
@headerBackgroundHex: @offWhite;
|
45
44
|
@headerAlign: inherit;
|
46
45
|
@headerVerticalAlign: inherit;
|
47
46
|
@headerColor: @textColor;
|
@@ -57,7 +56,6 @@
|
|
57
56
|
@footerBorder: 1px solid @borderColor;
|
58
57
|
@footerDivider: none;
|
59
58
|
@footerBackground: @offWhite;
|
60
|
-
@footerBackgroundHex: @offWhite;
|
61
59
|
@footerAlign: inherit;
|
62
60
|
@footerVerticalAlign: inherit;
|
63
61
|
@footerColor: @textColor;
|
@@ -219,12 +217,10 @@
|
|
219
217
|
@invertedCellColor: @invertedTextColor;
|
220
218
|
|
221
219
|
@invertedHeaderBackground: @veryStrongTransparentBlack;
|
222
|
-
@invertedHeaderBackgroundHex: #252525;
|
223
220
|
@invertedHeaderColor: @invertedTextColor;
|
224
221
|
@invertedHeaderBorderColor: @invertedCellBorderColor;
|
225
222
|
|
226
223
|
@invertedFooterBackground: @invertedHeaderBackground;
|
227
|
-
@invertedFooterBackgroundHex: @invertedHeaderBackgroundHex;
|
228
224
|
@invertedFooterColor: @invertedHeaderColor;
|
229
225
|
@invertedFooterBorderColor: @invertedHeaderBorderColor;
|
230
226
|
|
@@ -274,7 +270,7 @@
|
|
274
270
|
@stuckFooterBackground: @stuckHeaderBackground;
|
275
271
|
|
276
272
|
@invertedStuckBackground: @invertedBackground;
|
277
|
-
@invertedStuckHeaderBackground:
|
273
|
+
@invertedStuckHeaderBackground: #252525;
|
278
274
|
@invertedStuckFooterBackground: @invertedStuckHeaderBackground;
|
279
275
|
|
280
276
|
@stuckZIndex: 800;
|
@@ -45,7 +45,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
|
|
45
45
|
@fonts: {
|
46
46
|
@solid: {
|
47
47
|
font-family: @fontName;
|
48
|
-
src: url("@{fontPath}/@{fontName}.woff2") format("woff2")
|
48
|
+
src: url("@{fontPath}/@{fontName}.woff2") format("woff2");
|
49
49
|
font-style: normal;
|
50
50
|
font-weight: @normal;
|
51
51
|
font-display: block;
|
@@ -55,7 +55,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
|
|
55
55
|
};
|
56
56
|
@outline: {
|
57
57
|
font-family: @outlineFontName;
|
58
|
-
src: url("@{fontPath}/@{outlineFontName}.woff2") format("woff2")
|
58
|
+
src: url("@{fontPath}/@{outlineFontName}.woff2") format("woff2");
|
59
59
|
font-style: normal;
|
60
60
|
font-weight: @normal;
|
61
61
|
font-display: block;
|
@@ -65,7 +65,7 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
|
|
65
65
|
};
|
66
66
|
@brand: {
|
67
67
|
font-family: @brandFontName;
|
68
|
-
src: url("@{fontPath}/@{brandFontName}.woff2") format("woff2")
|
68
|
+
src: url("@{fontPath}/@{brandFontName}.woff2") format("woff2");
|
69
69
|
font-style: normal;
|
70
70
|
font-weight: @normal;
|
71
71
|
font-display: block;
|
@@ -3,7 +3,6 @@
|
|
3
3
|
*******************************/
|
4
4
|
|
5
5
|
@import "variation.variables";
|
6
|
-
@supportIE: true;
|
7
6
|
|
8
7
|
/* -------------------
|
9
8
|
Fonts
|
@@ -44,7 +43,7 @@
|
|
44
43
|
@fonts: {
|
45
44
|
@regularLatin: {
|
46
45
|
font-family: @fontName;
|
47
|
-
src: url("@{fontPath}/@{fontFileNameLatin}-Regular.woff2") format("woff2")
|
46
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Regular.woff2") format("woff2");
|
48
47
|
font-style: normal;
|
49
48
|
font-weight: @normal;
|
50
49
|
font-display: @fontDisplay;
|
@@ -53,7 +52,7 @@
|
|
53
52
|
};
|
54
53
|
@boldLatin: {
|
55
54
|
font-family: @fontName;
|
56
|
-
src: url("@{fontPath}/@{fontFileNameLatin}-Bold.woff2") format("woff2")
|
55
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Bold.woff2") format("woff2");
|
57
56
|
font-style: normal;
|
58
57
|
font-weight: @bold;
|
59
58
|
font-display: @fontDisplay;
|
@@ -62,7 +61,7 @@
|
|
62
61
|
};
|
63
62
|
@italicLatin: {
|
64
63
|
font-family: @fontName;
|
65
|
-
src: url("@{fontPath}/@{fontFileNameLatin}-Italic.woff2") format("woff2")
|
64
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Italic.woff2") format("woff2");
|
66
65
|
font-style: italic;
|
67
66
|
font-weight: @normal;
|
68
67
|
font-display: @fontDisplay;
|
@@ -71,7 +70,7 @@
|
|
71
70
|
};
|
72
71
|
@boldItalicLatin: {
|
73
72
|
font-family: @fontName;
|
74
|
-
src: url("@{fontPath}/@{fontFileNameLatin}-BoldItalic.woff2") format("woff2")
|
73
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-BoldItalic.woff2") format("woff2");
|
75
74
|
font-style: italic;
|
76
75
|
font-weight: @bold;
|
77
76
|
font-display: @fontDisplay;
|
@@ -80,7 +79,7 @@
|
|
80
79
|
};
|
81
80
|
@regularSupplement: {
|
82
81
|
font-family: @fontName;
|
83
|
-
src: url("@{fontPath}/@{fontFileNameSupplement}-Regular.woff2") format("woff2")
|
82
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Regular.woff2") format("woff2");
|
84
83
|
font-style: normal;
|
85
84
|
font-weight: @normal;
|
86
85
|
font-display: @fontDisplay;
|
@@ -89,7 +88,7 @@
|
|
89
88
|
};
|
90
89
|
@boldSupplement: {
|
91
90
|
font-family: @fontName;
|
92
|
-
src: url("@{fontPath}/@{fontFileNameSupplement}-Bold.woff2") format("woff2")
|
91
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Bold.woff2") format("woff2");
|
93
92
|
font-style: normal;
|
94
93
|
font-weight: @bold;
|
95
94
|
font-display: @fontDisplay;
|
@@ -98,7 +97,7 @@
|
|
98
97
|
};
|
99
98
|
@italicSupplement: {
|
100
99
|
font-family: @fontName;
|
101
|
-
src: url("@{fontPath}/@{fontFileNameSupplement}-Italic.woff2") format("woff2")
|
100
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Italic.woff2") format("woff2");
|
102
101
|
font-style: italic;
|
103
102
|
font-weight: @normal;
|
104
103
|
font-display: @fontDisplay;
|
@@ -107,7 +106,7 @@
|
|
107
106
|
};
|
108
107
|
@boldItalicSupplement: {
|
109
108
|
font-family: @fontName;
|
110
|
-
src: url("@{fontPath}/@{fontFileNameSupplement}-BoldItalic.woff2") format("woff2")
|
109
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-BoldItalic.woff2") format("woff2");
|
111
110
|
font-style: italic;
|
112
111
|
font-weight: @bold;
|
113
112
|
font-display: @fontDisplay;
|
@@ -276,12 +275,6 @@
|
|
276
275
|
@thumbInvertedInactiveBackground: rgba(255, 255, 255, 0.15);
|
277
276
|
@thumbInvertedHoverBackground: rgba(255, 255, 255, 0.35);
|
278
277
|
|
279
|
-
/* IE needs hex values */
|
280
|
-
@trackBackgroundHex: #e6e6e6;
|
281
|
-
@thumbBackgroundHex: #bfbfbf;
|
282
|
-
@trackInvertedBackgroundHex: #323232;
|
283
|
-
@thumbInvertedBackgroundHex: #656565;
|
284
|
-
|
285
278
|
/* Scrolling */
|
286
279
|
@scrollingMobileMaxHeight: 15em;
|
287
280
|
@scrollingTabletMaxHeight: 18em;
|