fomantic-ui 2.9.1-beta.22 → 2.9.1-beta.24
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/.eslint/index.js +23 -0
- package/.eslint/no-extra-parens-rule.js +17 -0
- package/.eslint/package.json +11 -0
- package/.eslintrc.js +13 -70
- package/.stylelintrc.js +5 -7
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +26 -26
- 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 +95 -94
- 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 +3 -3
- package/dist/components/calendar.js +181 -151
- 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 +14 -14
- 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 +23 -25
- 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 +252 -254
- 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 +27 -33
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- 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 -2
- package/dist/components/flyout.js +50 -44
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +2 -2
- package/dist/components/form.js +187 -163
- package/dist/components/form.min.css +2 -2
- 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/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +49 -45
- 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 +22 -20
- 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 +71 -71
- 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 +46 -46
- 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 +15 -15
- 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 +69 -74
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +39 -39
- 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 +39 -37
- 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 +22 -21
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +69 -64
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +15 -15
- 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 +25 -25
- 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 +55 -57
- 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 +57 -30
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +7 -7
- package/dist/components/transition.js +45 -39
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +25 -25
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +60 -60
- package/dist/semantic.js +1518 -1427
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/responsive.html +1 -1
- package/gulpfile.js +1 -1
- package/package.json +2 -1
- package/scripts/nightly-version.js +6 -4
- package/src/definitions/behaviors/api.js +94 -93
- package/src/definitions/behaviors/form.js +186 -162
- package/src/definitions/behaviors/state.js +14 -14
- package/src/definitions/behaviors/visibility.js +24 -24
- package/src/definitions/collections/menu.less +2 -2
- package/src/definitions/elements/button.less +2 -2
- package/src/definitions/elements/loader.less +4 -4
- package/src/definitions/elements/step.less +1 -1
- package/src/definitions/globals/site.js +21 -20
- package/src/definitions/modules/accordion.js +25 -25
- package/src/definitions/modules/calendar.js +180 -150
- package/src/definitions/modules/calendar.less +2 -2
- package/src/definitions/modules/checkbox.js +13 -13
- package/src/definitions/modules/dimmer.js +22 -24
- package/src/definitions/modules/dimmer.less +10 -10
- package/src/definitions/modules/dropdown.js +251 -253
- package/src/definitions/modules/embed.js +26 -32
- package/src/definitions/modules/flyout.js +49 -43
- package/src/definitions/modules/flyout.less +1 -1
- package/src/definitions/modules/modal.js +48 -44
- package/src/definitions/modules/nag.js +21 -19
- package/src/definitions/modules/popup.js +70 -70
- package/src/definitions/modules/progress.js +45 -45
- package/src/definitions/modules/rating.js +14 -14
- package/src/definitions/modules/search.js +68 -73
- package/src/definitions/modules/shape.js +38 -38
- package/src/definitions/modules/sidebar.js +38 -36
- package/src/definitions/modules/slider.js +68 -63
- package/src/definitions/modules/sticky.js +24 -24
- package/src/definitions/modules/tab.js +54 -56
- package/src/definitions/modules/toast.js +56 -29
- package/src/definitions/modules/transition.js +44 -38
- package/src/themes/amazon/elements/button.overrides +7 -7
- package/src/themes/default/collections/form.variables +1 -1
- package/src/themes/default/elements/reveal.variables +1 -1
- package/src/themes/default/globals/site.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +6 -6
- package/src/themes/default/modules/modal.variables +1 -1
- package/src/themes/default/modules/slider.variables +4 -4
- package/src/themes/default/modules/toast.variables +2 -2
- package/src/themes/default/modules/transition.overrides +12 -12
- package/src/themes/flat/collections/form.overrides +2 -2
- package/src/themes/flat/globals/site.variables +1 -1
- package/src/themes/github/collections/form.overrides +2 -2
- package/src/themes/github/collections/menu.variables +1 -1
- package/src/themes/github/collections/message.overrides +3 -3
- package/src/themes/github/elements/input.overrides +2 -2
- package/src/themes/timeline/views/feed.overrides +3 -3
- package/src/themes/twitter/elements/button.overrides +2 -2
- package/tasks/README.md +1 -3
- package/tasks/admin/components/create.js +9 -16
- package/tasks/admin/components/init.js +7 -7
- package/tasks/admin/components/update.js +10 -10
- package/tasks/admin/distributions/create.js +16 -18
- package/tasks/admin/distributions/init.js +7 -7
- package/tasks/admin/distributions/update.js +10 -10
- package/tasks/admin/publish.js +1 -3
- package/tasks/admin/register.js +6 -6
- package/tasks/admin/release.js +1 -3
- package/tasks/build/assets.js +2 -2
- package/tasks/build/css.js +8 -3
- package/tasks/build/javascript.js +3 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/README.md +3 -5
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/docs.js +1 -1
- package/tasks/collections/install.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/collections/various.js +1 -1
- package/tasks/config/admin/github.js +6 -8
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/npm/gulpfile.js +7 -7
- package/tasks/config/project/config.js +14 -19
- package/tasks/config/project/install.js +35 -34
- package/tasks/config/project/release.js +15 -16
- package/tasks/config/tasks.js +18 -20
- package/tasks/config/user.js +5 -3
- package/tasks/docs/build.js +5 -3
- package/tasks/docs/metadata.js +7 -8
- package/tasks/docs/serve.js +6 -3
- package/tasks/install.js +39 -39
- package/tasks/rtl/build.js +1 -3
- package/tasks/rtl/watch.js +1 -3
- package/tasks/version.js +1 -3
- package/tasks/watch.js +1 -1
- package/test/.eslintrc.js +0 -4
- package/test/meteor/assets.js +1 -1
- package/test/modules/module.spec.js +15 -15
- package/test/modules/popup.spec.js +1 -1
- package/test/modules/search.spec.js +1 -1
- package/test/modules/tab.spec.js +1 -1
- package/test/modules/transition.spec.js +1 -1
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -25,18 +25,18 @@
|
|
25
25
|
|
26
26
|
moduleSelector = $allModules.selector || '',
|
27
27
|
|
28
|
-
time =
|
28
|
+
time = Date.now(),
|
29
29
|
performance = [],
|
30
30
|
|
31
31
|
query = arguments[0],
|
32
|
-
methodInvoked =
|
32
|
+
methodInvoked = typeof query === 'string',
|
33
33
|
queryArguments = [].slice.call(arguments, 1),
|
34
34
|
|
35
35
|
returnedValue
|
36
36
|
;
|
37
37
|
$allModules.each(function () {
|
38
38
|
var
|
39
|
-
settings =
|
39
|
+
settings = $.isPlainObject(parameters)
|
40
40
|
? $.extend(true, {}, $.fn.state.settings, parameters)
|
41
41
|
: $.extend({}, $.fn.state.settings),
|
42
42
|
|
@@ -130,7 +130,7 @@
|
|
130
130
|
return $module.hasClass(className.loading);
|
131
131
|
},
|
132
132
|
inactive: function () {
|
133
|
-
return
|
133
|
+
return !$module.hasClass(className.active);
|
134
134
|
},
|
135
135
|
state: function (state) {
|
136
136
|
if (className[state] === undefined) {
|
@@ -141,13 +141,13 @@
|
|
141
141
|
},
|
142
142
|
|
143
143
|
enabled: function () {
|
144
|
-
return
|
144
|
+
return !$module.is(settings.filter.active);
|
145
145
|
},
|
146
146
|
disabled: function () {
|
147
|
-
return
|
147
|
+
return $module.is(settings.filter.active);
|
148
148
|
},
|
149
149
|
textEnabled: function () {
|
150
|
-
return
|
150
|
+
return !$module.is(settings.filter.text);
|
151
151
|
},
|
152
152
|
|
153
153
|
// definitions for automatic type detection
|
@@ -339,7 +339,7 @@
|
|
339
339
|
|
340
340
|
get: {
|
341
341
|
text: function () {
|
342
|
-
return
|
342
|
+
return settings.selector.text
|
343
343
|
? $module.find(settings.selector.text).text()
|
344
344
|
: $module.html();
|
345
345
|
},
|
@@ -464,7 +464,7 @@
|
|
464
464
|
previousTime
|
465
465
|
;
|
466
466
|
if (settings.performance) {
|
467
|
-
currentTime =
|
467
|
+
currentTime = Date.now();
|
468
468
|
previousTime = time || currentTime;
|
469
469
|
executionTime = currentTime - previousTime;
|
470
470
|
time = currentTime;
|
@@ -515,11 +515,11 @@
|
|
515
515
|
;
|
516
516
|
passedArguments = passedArguments || queryArguments;
|
517
517
|
context = context || element;
|
518
|
-
if (typeof query
|
519
|
-
query = query.split(/[
|
518
|
+
if (typeof query === 'string' && object !== undefined) {
|
519
|
+
query = query.split(/[ .]/);
|
520
520
|
maxDepth = query.length - 1;
|
521
521
|
$.each(query, function (depth, value) {
|
522
|
-
var camelCaseValue =
|
522
|
+
var camelCaseValue = depth != maxDepth
|
523
523
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
524
524
|
: query
|
525
525
|
;
|
@@ -572,7 +572,7 @@
|
|
572
572
|
}
|
573
573
|
});
|
574
574
|
|
575
|
-
return
|
575
|
+
return returnedValue !== undefined
|
576
576
|
? returnedValue
|
577
577
|
: this;
|
578
578
|
};
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -24,11 +24,11 @@
|
|
24
24
|
$allModules = $(this),
|
25
25
|
moduleSelector = $allModules.selector || '',
|
26
26
|
|
27
|
-
time =
|
27
|
+
time = Date.now(),
|
28
28
|
performance = [],
|
29
29
|
|
30
30
|
query = arguments[0],
|
31
|
-
methodInvoked =
|
31
|
+
methodInvoked = typeof query === 'string',
|
32
32
|
queryArguments = [].slice.call(arguments, 1),
|
33
33
|
returnedValue,
|
34
34
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
$allModules.each(function () {
|
40
40
|
var
|
41
|
-
settings =
|
41
|
+
settings = $.isPlainObject(parameters)
|
42
42
|
? $.extend(true, {}, $.fn.visibility.settings, parameters)
|
43
43
|
: $.extend({}, $.fn.visibility.settings),
|
44
44
|
|
@@ -227,7 +227,7 @@
|
|
227
227
|
},
|
228
228
|
|
229
229
|
precache: function (images, callback) {
|
230
|
-
if (!(images
|
230
|
+
if (!Array.isArray(images)) {
|
231
231
|
images = [images];
|
232
232
|
}
|
233
233
|
var
|
@@ -427,21 +427,21 @@
|
|
427
427
|
},
|
428
428
|
verticallyScrollableContext: function () {
|
429
429
|
var
|
430
|
-
overflowY =
|
430
|
+
overflowY = $context[0] !== window
|
431
431
|
? $context.css('overflow-y')
|
432
432
|
: false
|
433
433
|
;
|
434
434
|
|
435
|
-
return
|
435
|
+
return overflowY == 'auto' || overflowY == 'scroll';
|
436
436
|
},
|
437
437
|
horizontallyScrollableContext: function () {
|
438
438
|
var
|
439
|
-
overflowX =
|
439
|
+
overflowX = $context[0] !== window
|
440
440
|
? $context.css('overflow-x')
|
441
441
|
: false
|
442
442
|
;
|
443
443
|
|
444
|
-
return
|
444
|
+
return overflowX == 'auto' || overflowX == 'scroll';
|
445
445
|
},
|
446
446
|
},
|
447
447
|
|
@@ -515,7 +515,7 @@
|
|
515
515
|
if (amount && newCallback) {
|
516
516
|
settings.onPassed[amount] = newCallback;
|
517
517
|
} else if (amount !== undefined) {
|
518
|
-
return
|
518
|
+
return module.get.pixelsPassed(amount) > calculations.pixelsPassed;
|
519
519
|
} else if (calculations.passing) {
|
520
520
|
$.each(settings.onPassed, function (amount, callback) {
|
521
521
|
if (calculations.bottomVisible || calculations.pixelsPassed > module.get.pixelsPassed(amount)) {
|
@@ -873,7 +873,7 @@
|
|
873
873
|
;
|
874
874
|
module.verbose('Saving element position');
|
875
875
|
// (quicker than $.extend)
|
876
|
-
element.fits =
|
876
|
+
element.fits = element.height < screen.height;
|
877
877
|
element.offset = $module.offset();
|
878
878
|
element.width = $module.outerWidth();
|
879
879
|
element.height = $module.outerHeight();
|
@@ -907,21 +907,21 @@
|
|
907
907
|
}
|
908
908
|
|
909
909
|
// visibility
|
910
|
-
element.topPassed =
|
911
|
-
element.bottomPassed =
|
910
|
+
element.topPassed = screen.top >= element.top;
|
911
|
+
element.bottomPassed = screen.top >= element.bottom;
|
912
912
|
element.topVisible = (screen.bottom >= element.top) && !element.topPassed;
|
913
913
|
element.bottomVisible = (screen.bottom >= element.bottom) && !element.bottomPassed;
|
914
914
|
element.pixelsPassed = 0;
|
915
915
|
element.percentagePassed = 0;
|
916
916
|
|
917
917
|
// meta calculations
|
918
|
-
element.onScreen = (
|
919
|
-
element.passing =
|
920
|
-
element.offScreen =
|
918
|
+
element.onScreen = (element.topVisible || element.passing) && !element.bottomPassed;
|
919
|
+
element.passing = element.topPassed && !element.bottomPassed;
|
920
|
+
element.offScreen = !element.onScreen;
|
921
921
|
|
922
922
|
// passing calculations
|
923
923
|
if (element.passing) {
|
924
|
-
element.pixelsPassed =
|
924
|
+
element.pixelsPassed = screen.top - element.top;
|
925
925
|
element.percentagePassed = (screen.top - element.top) / element.height;
|
926
926
|
}
|
927
927
|
module.cache.element = element;
|
@@ -957,13 +957,13 @@
|
|
957
957
|
element = module.get.elementCalculations()
|
958
958
|
;
|
959
959
|
if (amount.search('%') > -1) {
|
960
|
-
return
|
960
|
+
return element.height * (parseInt(amount, 10) / 100);
|
961
961
|
}
|
962
962
|
|
963
963
|
return parseInt(amount, 10);
|
964
964
|
},
|
965
965
|
occurred: function (callback) {
|
966
|
-
return
|
966
|
+
return module.cache.occurred !== undefined
|
967
967
|
? module.cache.occurred[callback] || false
|
968
968
|
: false;
|
969
969
|
},
|
@@ -1072,7 +1072,7 @@
|
|
1072
1072
|
previousTime
|
1073
1073
|
;
|
1074
1074
|
if (settings.performance) {
|
1075
|
-
currentTime =
|
1075
|
+
currentTime = Date.now();
|
1076
1076
|
previousTime = time || currentTime;
|
1077
1077
|
executionTime = currentTime - previousTime;
|
1078
1078
|
time = currentTime;
|
@@ -1123,11 +1123,11 @@
|
|
1123
1123
|
;
|
1124
1124
|
passedArguments = passedArguments || queryArguments;
|
1125
1125
|
context = context || element;
|
1126
|
-
if (typeof query
|
1127
|
-
query = query.split(/[
|
1126
|
+
if (typeof query === 'string' && object !== undefined) {
|
1127
|
+
query = query.split(/[ .]/);
|
1128
1128
|
maxDepth = query.length - 1;
|
1129
1129
|
$.each(query, function (depth, value) {
|
1130
|
-
var camelCaseValue =
|
1130
|
+
var camelCaseValue = depth != maxDepth
|
1131
1131
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
1132
1132
|
: query
|
1133
1133
|
;
|
@@ -1182,7 +1182,7 @@
|
|
1182
1182
|
}
|
1183
1183
|
});
|
1184
1184
|
|
1185
|
-
return
|
1185
|
+
return returnedValue !== undefined
|
1186
1186
|
? returnedValue
|
1187
1187
|
: this;
|
1188
1188
|
};
|
@@ -1665,13 +1665,13 @@ Floated Menu / Item
|
|
1665
1665
|
width: 14.285%;
|
1666
1666
|
}
|
1667
1667
|
.ui.menu.eight.item .item {
|
1668
|
-
width: 12.
|
1668
|
+
width: 12.5%;
|
1669
1669
|
}
|
1670
1670
|
.ui.menu.nine.item .item {
|
1671
1671
|
width: 11.11%;
|
1672
1672
|
}
|
1673
1673
|
.ui.menu.ten.item .item {
|
1674
|
-
width: 10
|
1674
|
+
width: 10%;
|
1675
1675
|
}
|
1676
1676
|
.ui.menu.eleven.item .item {
|
1677
1677
|
width: 9.09%;
|
@@ -1343,7 +1343,7 @@
|
|
1343
1343
|
}
|
1344
1344
|
|
1345
1345
|
.ui.eight.buttons > .button {
|
1346
|
-
width: 12.
|
1346
|
+
width: 12.5%;
|
1347
1347
|
}
|
1348
1348
|
|
1349
1349
|
.ui.nine.buttons {
|
@@ -1416,7 +1416,7 @@
|
|
1416
1416
|
}
|
1417
1417
|
|
1418
1418
|
.ui.eight.vertical.buttons > .button {
|
1419
|
-
height: 12.
|
1419
|
+
height: 12.5%;
|
1420
1420
|
}
|
1421
1421
|
|
1422
1422
|
.ui.nine.vertical.buttons > .button {
|
@@ -320,15 +320,15 @@
|
|
320
320
|
.ui.elastic.loading.loading .input > i.icon::after,
|
321
321
|
.ui.elastic.loading.loading > i.icon::after,
|
322
322
|
.ui.elastic.loader.loader::after {
|
323
|
-
animation: loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
|
323
|
+
animation: loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
|
324
324
|
animation-delay: 0.3s;
|
325
325
|
}
|
326
326
|
.ui.elastic.loading.loading.loading:not(.form):not(.segment):not(.segments):not(.card)::before,
|
327
327
|
.ui.elastic.loading.loading.loading .input > i.icon::before,
|
328
328
|
.ui.elastic.loading.loading.loading > i.icon::before,
|
329
329
|
.ui.elastic.loader.loader::before {
|
330
|
-
animation: elastic-loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
|
331
|
-
-moz-animation: currentcolor-elastic-loader 1s infinite cubic-bezier(.27, 1.05, .92, .61);
|
330
|
+
animation: elastic-loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
|
331
|
+
-moz-animation: currentcolor-elastic-loader 1s infinite cubic-bezier(0.27, 1.05, 0.92, 0.61);
|
332
332
|
border-right-color: transparent;
|
333
333
|
}
|
334
334
|
& when (@variationLoaderInline) {
|
@@ -355,7 +355,7 @@
|
|
355
355
|
.ui.fast.elastic.loading.loading > i.icon::after,
|
356
356
|
.ui.fast.elastic.loader.loader::after {
|
357
357
|
animation-duration: 0.66s;
|
358
|
-
animation-delay: 0.
|
358
|
+
animation-delay: 0.2s;
|
359
359
|
}
|
360
360
|
.ui.fast.elastic.loading.loading.loading:not(.form):not(.segment):not(.segments):not(.card)::before,
|
361
361
|
.ui.fast.elastic.loading.loading.loading .input > i.icon::before,
|
@@ -15,20 +15,20 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
22
|
-
$.
|
22
|
+
$.fn.site = function (parameters) {
|
23
23
|
var
|
24
|
-
time =
|
24
|
+
time = Date.now(),
|
25
25
|
performance = [],
|
26
26
|
|
27
27
|
query = arguments[0],
|
28
|
-
methodInvoked =
|
28
|
+
methodInvoked = typeof query === 'string',
|
29
29
|
queryArguments = [].slice.call(arguments, 1),
|
30
30
|
|
31
|
-
settings =
|
31
|
+
settings = $.isPlainObject(parameters)
|
32
32
|
? $.extend(true, {}, $.site.settings, parameters)
|
33
33
|
: $.extend({}, $.site.settings),
|
34
34
|
|
@@ -71,13 +71,13 @@
|
|
71
71
|
module.verbose('Console not available, normalizing events');
|
72
72
|
module.disable.console();
|
73
73
|
}
|
74
|
-
if (
|
74
|
+
if (console.group === undefined || console.groupEnd === undefined || console.groupCollapsed === undefined) {
|
75
75
|
module.verbose('Console group not available, normalizing events');
|
76
76
|
window.console.group = function () {};
|
77
77
|
window.console.groupEnd = function () {};
|
78
78
|
window.console.groupCollapsed = function () {};
|
79
79
|
}
|
80
|
-
if (
|
80
|
+
if (console.markTimeline === undefined) {
|
81
81
|
module.verbose('Mark timeline not available, normalizing events');
|
82
82
|
window.console.markTimeline = function () {};
|
83
83
|
}
|
@@ -102,7 +102,7 @@
|
|
102
102
|
},
|
103
103
|
|
104
104
|
moduleExists: function (name) {
|
105
|
-
return
|
105
|
+
return $.fn[name] !== undefined && $.fn[name].settings !== undefined;
|
106
106
|
},
|
107
107
|
|
108
108
|
enabled: {
|
@@ -139,17 +139,17 @@
|
|
139
139
|
|
140
140
|
change: {
|
141
141
|
setting: function (setting, value, modules, modifyExisting) {
|
142
|
-
modules =
|
143
|
-
? (modules === 'all'
|
142
|
+
modules = typeof modules === 'string'
|
143
|
+
? (modules === 'all'
|
144
144
|
? settings.modules
|
145
|
-
: [modules]
|
145
|
+
: [modules])
|
146
146
|
: modules || settings.modules;
|
147
|
-
modifyExisting =
|
147
|
+
modifyExisting = modifyExisting !== undefined
|
148
148
|
? modifyExisting
|
149
149
|
: true;
|
150
150
|
$.each(modules, function (index, name) {
|
151
151
|
var
|
152
|
-
namespace =
|
152
|
+
namespace = module.moduleExists(name)
|
153
153
|
? $.fn[name].settings.namespace || false
|
154
154
|
: true,
|
155
155
|
$existingModules
|
@@ -168,10 +168,10 @@
|
|
168
168
|
});
|
169
169
|
},
|
170
170
|
settings: function (newSettings, modules, modifyExisting) {
|
171
|
-
modules =
|
171
|
+
modules = typeof modules === 'string'
|
172
172
|
? [modules]
|
173
173
|
: modules || settings.modules;
|
174
|
-
modifyExisting =
|
174
|
+
modifyExisting = modifyExisting !== undefined
|
175
175
|
? modifyExisting
|
176
176
|
: true;
|
177
177
|
$.each(modules, function (index, name) {
|
@@ -309,7 +309,7 @@
|
|
309
309
|
previousTime
|
310
310
|
;
|
311
311
|
if (settings.performance) {
|
312
|
-
currentTime =
|
312
|
+
currentTime = Date.now();
|
313
313
|
previousTime = time || currentTime;
|
314
314
|
executionTime = currentTime - previousTime;
|
315
315
|
time = currentTime;
|
@@ -357,11 +357,11 @@
|
|
357
357
|
;
|
358
358
|
passedArguments = passedArguments || queryArguments;
|
359
359
|
context = context || element;
|
360
|
-
if (typeof query
|
361
|
-
query = query.split(/[
|
360
|
+
if (typeof query === 'string' && object !== undefined) {
|
361
|
+
query = query.split(/[ .]/);
|
362
362
|
maxDepth = query.length - 1;
|
363
363
|
$.each(query, function (depth, value) {
|
364
|
-
var camelCaseValue =
|
364
|
+
var camelCaseValue = depth != maxDepth
|
365
365
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
366
366
|
: query
|
367
367
|
;
|
@@ -413,10 +413,11 @@
|
|
413
413
|
module.initialize();
|
414
414
|
}
|
415
415
|
|
416
|
-
return
|
416
|
+
return returnedValue !== undefined
|
417
417
|
? returnedValue
|
418
418
|
: this;
|
419
419
|
};
|
420
|
+
$.site = $.fn.site;
|
420
421
|
|
421
422
|
$.site.settings = {
|
422
423
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -23,18 +23,18 @@
|
|
23
23
|
var
|
24
24
|
$allModules = $(this),
|
25
25
|
|
26
|
-
time =
|
26
|
+
time = Date.now(),
|
27
27
|
performance = [],
|
28
28
|
|
29
29
|
query = arguments[0],
|
30
|
-
methodInvoked =
|
30
|
+
methodInvoked = typeof query === 'string',
|
31
31
|
queryArguments = [].slice.call(arguments, 1),
|
32
32
|
|
33
33
|
returnedValue
|
34
34
|
;
|
35
35
|
$allModules.each(function () {
|
36
36
|
var
|
37
|
-
settings =
|
37
|
+
settings = $.isPlainObject(parameters)
|
38
38
|
? $.extend(true, {}, $.fn.accordion.settings, parameters)
|
39
39
|
: $.extend({}, $.fn.accordion.settings),
|
40
40
|
|
@@ -121,16 +121,16 @@
|
|
121
121
|
|
122
122
|
toggle: function (query) {
|
123
123
|
var
|
124
|
-
$activeTitle =
|
125
|
-
? (typeof query === 'number'
|
124
|
+
$activeTitle = query !== undefined
|
125
|
+
? (typeof query === 'number'
|
126
126
|
? $title.eq(query)
|
127
|
-
: $(query).closest(selector.title)
|
127
|
+
: $(query).closest(selector.title))
|
128
128
|
: $(this).closest(selector.title),
|
129
129
|
$activeContent = $activeTitle.next($content),
|
130
130
|
isAnimating = $activeContent.hasClass(className.animating),
|
131
131
|
isActive = $activeContent.hasClass(className.active),
|
132
|
-
isOpen =
|
133
|
-
isOpening =
|
132
|
+
isOpen = isActive && !isAnimating,
|
133
|
+
isOpening = !isActive && isAnimating
|
134
134
|
;
|
135
135
|
module.debug('Toggling visibility of content', $activeTitle);
|
136
136
|
if (isOpen || isOpening) {
|
@@ -146,15 +146,15 @@
|
|
146
146
|
|
147
147
|
open: function (query) {
|
148
148
|
var
|
149
|
-
$activeTitle =
|
150
|
-
? (typeof query === 'number'
|
149
|
+
$activeTitle = query !== undefined
|
150
|
+
? (typeof query === 'number'
|
151
151
|
? $title.eq(query)
|
152
|
-
: $(query).closest(selector.title)
|
152
|
+
: $(query).closest(selector.title))
|
153
153
|
: $(this).closest(selector.title),
|
154
154
|
$activeContent = $activeTitle.next($content),
|
155
155
|
isAnimating = $activeContent.hasClass(className.animating),
|
156
156
|
isActive = $activeContent.hasClass(className.active),
|
157
|
-
isOpen =
|
157
|
+
isOpen = isActive || isAnimating
|
158
158
|
;
|
159
159
|
if (isOpen) {
|
160
160
|
module.debug('Accordion already open, skipping', $activeContent);
|
@@ -216,16 +216,16 @@
|
|
216
216
|
|
217
217
|
close: function (query) {
|
218
218
|
var
|
219
|
-
$activeTitle =
|
220
|
-
? (typeof query === 'number'
|
219
|
+
$activeTitle = query !== undefined
|
220
|
+
? (typeof query === 'number'
|
221
221
|
? $title.eq(query)
|
222
|
-
: $(query).closest(selector.title)
|
222
|
+
: $(query).closest(selector.title))
|
223
223
|
: $(this).closest(selector.title),
|
224
224
|
$activeContent = $activeTitle.next($content),
|
225
225
|
isAnimating = $activeContent.hasClass(className.animating),
|
226
226
|
isActive = $activeContent.hasClass(className.active),
|
227
|
-
isOpening =
|
228
|
-
isClosing =
|
227
|
+
isOpening = !isActive && isAnimating,
|
228
|
+
isClosing = isActive && isAnimating
|
229
229
|
;
|
230
230
|
if ((isActive || isOpening) && !isClosing) {
|
231
231
|
module.debug('Closing accordion content', $activeContent);
|
@@ -278,7 +278,7 @@
|
|
278
278
|
|
279
279
|
closeOthers: function (index) {
|
280
280
|
var
|
281
|
-
$activeTitle =
|
281
|
+
$activeTitle = index !== undefined
|
282
282
|
? $title.eq(index)
|
283
283
|
: $(this).closest(selector.title),
|
284
284
|
$parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
|
@@ -298,7 +298,7 @@
|
|
298
298
|
$openTitles = $openTitles.not($nestedTitles);
|
299
299
|
$openContents = $openTitles.next($content);
|
300
300
|
}
|
301
|
-
if (
|
301
|
+
if ($openTitles.length > 0) {
|
302
302
|
module.debug('Exclusive enabled, closing other content', $openTitles);
|
303
303
|
$openTitles
|
304
304
|
.removeClass(className.active)
|
@@ -427,7 +427,7 @@
|
|
427
427
|
previousTime
|
428
428
|
;
|
429
429
|
if (settings.performance) {
|
430
|
-
currentTime =
|
430
|
+
currentTime = Date.now();
|
431
431
|
previousTime = time || currentTime;
|
432
432
|
executionTime = currentTime - previousTime;
|
433
433
|
time = currentTime;
|
@@ -478,11 +478,11 @@
|
|
478
478
|
;
|
479
479
|
passedArguments = passedArguments || queryArguments;
|
480
480
|
context = context || element;
|
481
|
-
if (typeof query
|
482
|
-
query = query.split(/[
|
481
|
+
if (typeof query === 'string' && object !== undefined) {
|
482
|
+
query = query.split(/[ .]/);
|
483
483
|
maxDepth = query.length - 1;
|
484
484
|
$.each(query, function (depth, value) {
|
485
|
-
var camelCaseValue =
|
485
|
+
var camelCaseValue = depth != maxDepth
|
486
486
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
487
487
|
: query;
|
488
488
|
if ($.isPlainObject(object[camelCaseValue]) && (depth != maxDepth)) {
|
@@ -533,7 +533,7 @@
|
|
533
533
|
}
|
534
534
|
});
|
535
535
|
|
536
|
-
return
|
536
|
+
return returnedValue !== undefined
|
537
537
|
? returnedValue
|
538
538
|
: this;
|
539
539
|
};
|