fomantic-ui 2.10.0-beta.8 → 2.10.0-beta.81
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/.eslintrc.js +6 -23
- package/.github/workflows/ci.yml +9 -9
- package/.github/workflows/depsreview.yml +1 -1
- package/.github/workflows/nightly.yml +7 -5
- package/.github/workflows/release.yml +2 -2
- package/.stylelintrc.js +1 -15
- package/CHANGELOG.md +5289 -2325
- package/README.md +8 -4
- package/changelog-setup.js +32 -10
- package/changelog-template.hbs +256 -251
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +62 -73
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +101 -161
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +5 -6
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +3 -3
- package/dist/components/calendar.js +283 -332
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- 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 +58 -79
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +3 -3
- 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 +2 -2
- package/dist/components/dimmer.js +39 -52
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +21 -35
- package/dist/components/dropdown.js +435 -531
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +55 -68
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +3809 -7617
- package/dist/components/emoji.min.css +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 +1 -1
- package/dist/components/flyout.js +149 -168
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +3 -3
- package/dist/components/form.css +3 -5
- package/dist/components/form.js +249 -269
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +2 -2
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +6 -6
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +10 -37
- 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 +284 -12
- 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 +6 -14
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +3 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +53 -53
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +45 -60
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +5 -5
- package/dist/components/modal.js +161 -170
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +74 -88
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +2 -2
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +19 -73
- package/dist/components/popup.js +105 -138
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +4 -13
- package/dist/components/progress.js +75 -97
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +3 -3
- 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 +49 -61
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +48 -208
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +2 -5
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +2 -3
- package/dist/components/search.js +178 -198
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +6 -6
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +59 -69
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +81 -101
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +37 -58
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +169 -183
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +45 -59
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +95 -117
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +83 -115
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +8 -8
- 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 -1
- package/dist/components/toast.js +64 -74
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +61 -85
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +120 -140
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +4480 -8222
- package/dist/semantic.js +2886 -3485
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/examples/attached.html +1 -1
- package/examples/components/menu.html +1 -1
- package/package.json +8 -5
- package/scripts/nightly-version.js +4 -4
- package/src/definitions/behaviors/api.js +100 -160
- package/src/definitions/behaviors/form.js +248 -268
- package/src/definitions/behaviors/state.js +44 -58
- package/src/definitions/behaviors/visibility.js +119 -139
- package/src/definitions/collections/breadcrumb.less +0 -1
- package/src/definitions/collections/form.less +3 -9
- package/src/definitions/collections/grid.less +1 -2
- package/src/definitions/collections/menu.less +106 -117
- package/src/definitions/collections/message.less +1 -2
- package/src/definitions/collections/table.less +7 -8
- package/src/definitions/elements/button.less +4 -6
- package/src/definitions/elements/container.less +0 -1
- package/src/definitions/elements/divider.less +1 -2
- package/src/definitions/elements/emoji.less +1 -1
- package/src/definitions/elements/flag.less +1 -1
- package/src/definitions/elements/header.less +4 -5
- package/src/definitions/elements/icon.less +10 -37
- package/src/definitions/elements/image.less +0 -1
- package/src/definitions/elements/input.less +4 -7
- package/src/definitions/elements/label.less +5 -14
- package/src/definitions/elements/list.less +2 -3
- package/src/definitions/elements/loader.less +10 -11
- package/src/definitions/elements/placeholder.less +1 -2
- package/src/definitions/elements/rail.less +0 -1
- package/src/definitions/elements/reveal.less +1 -5
- package/src/definitions/elements/segment.less +5 -6
- package/src/definitions/elements/step.less +3 -4
- package/src/definitions/elements/text.less +0 -1
- package/src/definitions/globals/reset.less +0 -1
- package/src/definitions/globals/site.js +36 -57
- package/src/definitions/globals/site.less +0 -1
- package/src/definitions/modules/accordion.js +61 -72
- package/src/definitions/modules/accordion.less +0 -1
- package/src/definitions/modules/calendar.js +282 -331
- package/src/definitions/modules/calendar.less +2 -3
- package/src/definitions/modules/checkbox.js +57 -78
- package/src/definitions/modules/checkbox.less +0 -1
- package/src/definitions/modules/dimmer.js +38 -51
- package/src/definitions/modules/dimmer.less +1 -2
- package/src/definitions/modules/dropdown.js +434 -530
- package/src/definitions/modules/dropdown.less +27 -38
- package/src/definitions/modules/embed.js +54 -67
- package/src/definitions/modules/embed.less +0 -1
- package/src/definitions/modules/flyout.js +148 -167
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +160 -169
- package/src/definitions/modules/modal.less +3 -4
- package/src/definitions/modules/nag.js +73 -87
- package/src/definitions/modules/nag.less +0 -1
- package/src/definitions/modules/popup.js +104 -137
- package/src/definitions/modules/popup.less +18 -73
- package/src/definitions/modules/progress.js +74 -96
- package/src/definitions/modules/progress.less +3 -13
- package/src/definitions/modules/rating.js +48 -60
- package/src/definitions/modules/rating.less +0 -1
- package/src/definitions/modules/search.js +177 -197
- package/src/definitions/modules/search.less +2 -4
- package/src/definitions/modules/shape.js +58 -68
- package/src/definitions/modules/shape.less +0 -1
- package/src/definitions/modules/sidebar.js +80 -100
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +168 -182
- package/src/definitions/modules/slider.less +0 -1
- package/src/definitions/modules/sticky.js +94 -116
- package/src/definitions/modules/sticky.less +0 -1
- package/src/definitions/modules/tab.js +82 -114
- package/src/definitions/modules/tab.less +0 -1
- package/src/definitions/modules/toast.js +63 -73
- package/src/definitions/modules/toast.less +0 -1
- package/src/definitions/modules/transition.js +60 -84
- package/src/definitions/modules/transition.less +1 -2
- package/src/definitions/views/ad.less +0 -1
- package/src/definitions/views/card.less +0 -1
- package/src/definitions/views/comment.less +0 -1
- package/src/definitions/views/feed.less +0 -1
- package/src/definitions/views/item.less +0 -1
- package/src/definitions/views/statistic.less +0 -1
- package/src/semantic.less +1 -1
- package/src/themes/amazon/elements/button.overrides +1 -1
- package/src/themes/amazon/elements/button.variables +5 -6
- package/src/themes/amazon/globals/site.variables +2 -3
- package/src/themes/bookish/elements/header.variables +2 -2
- package/src/themes/bootstrap3/elements/button.variables +4 -5
- package/src/themes/chubby/collections/menu.variables +1 -1
- package/src/themes/chubby/elements/button.overrides +4 -4
- package/src/themes/chubby/modules/accordion.overrides +1 -1
- package/src/themes/chubby/views/comment.overrides +2 -2
- package/src/themes/chubby/views/comment.variables +2 -2
- package/src/themes/classic/collections/table.variables +2 -2
- package/src/themes/classic/elements/button.variables +11 -11
- package/src/themes/classic/modules/progress.variables +2 -2
- package/src/themes/classic/views/card.variables +2 -2
- package/src/themes/default/collections/form.variables +2 -3
- package/src/themes/default/collections/menu.variables +28 -28
- package/src/themes/default/collections/message.variables +1 -1
- package/src/themes/default/collections/table.variables +4 -4
- package/src/themes/default/elements/button.variables +9 -10
- package/src/themes/default/elements/divider.variables +1 -1
- package/src/themes/default/elements/icon.variables +2 -2
- package/src/themes/default/elements/image.variables +1 -1
- package/src/themes/default/elements/input.variables +2 -2
- package/src/themes/default/elements/label.variables +4 -4
- package/src/themes/default/elements/list.variables +1 -1
- package/src/themes/default/elements/placeholder.variables +6 -6
- package/src/themes/default/elements/segment.variables +8 -8
- package/src/themes/default/globals/reset.overrides +45 -201
- package/src/themes/default/globals/site.variables +50 -50
- package/src/themes/default/globals/variation.variables +3 -2
- package/src/themes/default/modules/accordion.variables +0 -1
- package/src/themes/default/modules/checkbox.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +12 -12
- package/src/themes/default/modules/dropdown.variables +17 -16
- package/src/themes/default/modules/embed.variables +2 -2
- package/src/themes/default/modules/flyout.variables +3 -3
- package/src/themes/default/modules/modal.variables +14 -14
- package/src/themes/default/modules/nag.variables +1 -1
- package/src/themes/default/modules/rating.variables +1 -1
- package/src/themes/default/modules/search.variables +1 -1
- package/src/themes/default/modules/shape.variables +1 -1
- package/src/themes/default/modules/sidebar.variables +2 -2
- package/src/themes/default/modules/toast.variables +4 -4
- package/src/themes/default/views/card.variables +6 -7
- package/src/themes/default/views/feed.variables +4 -4
- package/src/themes/default/views/item.variables +2 -3
- package/src/themes/flat/collections/form.variables +1 -1
- package/src/themes/flat/globals/site.variables +9 -9
- package/src/themes/github/collections/form.overrides +3 -3
- package/src/themes/github/collections/form.variables +3 -3
- package/src/themes/github/collections/menu.overrides +1 -1
- package/src/themes/github/collections/menu.variables +10 -10
- package/src/themes/github/collections/message.variables +6 -6
- package/src/themes/github/elements/button.variables +17 -17
- package/src/themes/github/elements/input.variables +3 -3
- package/src/themes/github/elements/segment.variables +2 -2
- package/src/themes/github/elements/step.overrides +4 -4
- package/src/themes/github/elements/step.variables +3 -3
- package/src/themes/github/globals/site.variables +2 -2
- package/src/themes/github/modules/dropdown.variables +1 -3
- package/src/themes/gmail/collections/message.variables +2 -2
- package/src/themes/material/collections/menu.variables +1 -1
- package/src/themes/material/elements/button.overrides +4 -4
- package/src/themes/material/elements/button.variables +5 -5
- package/src/themes/material/modules/dropdown.variables +1 -1
- package/src/themes/material/modules/modal.variables +1 -1
- package/src/themes/raised/elements/button.variables +1 -1
- package/src/themes/round/elements/button.variables +12 -12
- package/src/themes/striped/modules/progress.overrides +3 -3
- package/src/themes/timeline/views/feed.variables +2 -2
- package/src/themes/twitter/elements/button.overrides +1 -1
- package/src/themes/twitter/elements/button.variables +4 -5
- package/tasks/admin/components/create.js +12 -15
- package/tasks/admin/components/init.js +11 -12
- package/tasks/admin/components/update.js +19 -20
- package/tasks/admin/distributions/create.js +30 -51
- package/tasks/admin/distributions/init.js +11 -12
- package/tasks/admin/distributions/update.js +18 -19
- package/tasks/admin/register.js +7 -7
- package/tasks/build/assets.js +1 -1
- package/tasks/build/css.js +5 -5
- package/tasks/build/javascript.js +1 -1
- package/tasks/config/admin/github.js +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/project/config.js +10 -10
- package/tasks/config/project/install.js +12 -12
- package/tasks/config/project/release.js +6 -12
- package/tasks/config/tasks.js +15 -11
- package/tasks/config/user.js +1 -4
- package/tasks/docs/metadata.js +18 -20
- package/tasks/install.js +14 -12
- package/test/meteor/assets.js +4 -4
- package/test/meteor/fonts.js +10 -11
- package/test/modules/module.spec.js +18 -18
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
? window
|
|
20
20
|
: globalThis;
|
|
21
21
|
|
|
22
|
-
$.fn.transition = function () {
|
|
23
|
-
|
|
22
|
+
$.fn.transition = function (...args) {
|
|
23
|
+
const $allModules = $(this);
|
|
24
24
|
|
|
25
25
|
let time = Date.now();
|
|
26
26
|
let performance = [];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
let methodInvoked = typeof
|
|
28
|
+
const moduleArguments = args;
|
|
29
|
+
const parameters = args[0];
|
|
30
|
+
const queryArguments = args.slice(1);
|
|
31
|
+
let methodInvoked = typeof parameters === 'string';
|
|
32
32
|
|
|
33
33
|
let returnedValue;
|
|
34
34
|
$allModules.each(function (index) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
const $module = $(this);
|
|
36
|
+
const element = this;
|
|
37
37
|
|
|
38
38
|
// set at run time
|
|
39
39
|
let settings;
|
|
@@ -45,13 +45,12 @@
|
|
|
45
45
|
|
|
46
46
|
let moduleNamespace;
|
|
47
47
|
let eventNamespace;
|
|
48
|
-
let module;
|
|
49
48
|
|
|
50
|
-
module = {
|
|
49
|
+
const module = {
|
|
51
50
|
|
|
52
51
|
initialize: function () {
|
|
53
52
|
// get full settings
|
|
54
|
-
settings = module.get.settings
|
|
53
|
+
settings = module.get.settings(...moduleArguments);
|
|
55
54
|
|
|
56
55
|
// shorthand
|
|
57
56
|
className = settings.className;
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
instance = $module.data(moduleNamespace) || module;
|
|
65
64
|
|
|
66
65
|
if (methodInvoked) {
|
|
67
|
-
methodInvoked = module.invoke(
|
|
66
|
+
methodInvoked = module.invoke(parameters);
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
// method not invoked, lets run an animation
|
|
@@ -99,8 +98,8 @@
|
|
|
99
98
|
|
|
100
99
|
forceRepaint: function () {
|
|
101
100
|
module.verbose('Forcing element repaint');
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
const $parentElement = $module.parent();
|
|
102
|
+
const $nextElement = $module.next();
|
|
104
103
|
if ($nextElement.length === 0) {
|
|
105
104
|
$module.detach().appendTo($parentElement);
|
|
106
105
|
} else {
|
|
@@ -110,23 +109,18 @@
|
|
|
110
109
|
|
|
111
110
|
repaint: function () {
|
|
112
111
|
module.verbose('Repainting element');
|
|
113
|
-
|
|
112
|
+
const fakeAssignment = element.offsetWidth;
|
|
114
113
|
},
|
|
115
114
|
|
|
116
|
-
delay: function (interval) {
|
|
115
|
+
delay: function (interval = settings.interval) {
|
|
117
116
|
let direction = module.get.animationDirection();
|
|
118
|
-
let shouldReverse;
|
|
119
|
-
let delay;
|
|
120
117
|
if (!direction) {
|
|
121
118
|
direction = module.can.transition()
|
|
122
119
|
? module.get.direction()
|
|
123
120
|
: 'static';
|
|
124
121
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
: settings.interval;
|
|
128
|
-
shouldReverse = settings.reverse === 'auto' && direction === className.outward;
|
|
129
|
-
delay = shouldReverse || settings.reverse === true
|
|
122
|
+
const shouldReverse = settings.reverse === 'auto' && direction === className.outward;
|
|
123
|
+
const delay = shouldReverse || settings.reverse === true
|
|
130
124
|
? ($allModules.length - index) * interval
|
|
131
125
|
: index * interval;
|
|
132
126
|
module.debug('Delaying animation by', delay);
|
|
@@ -135,8 +129,8 @@
|
|
|
135
129
|
}, delay);
|
|
136
130
|
},
|
|
137
131
|
|
|
138
|
-
animate: function (overrideSettings) {
|
|
139
|
-
settings = overrideSettings
|
|
132
|
+
animate: function (overrideSettings = settings) {
|
|
133
|
+
settings = overrideSettings;
|
|
140
134
|
|
|
141
135
|
module.debug('Preparing animation', settings.animation);
|
|
142
136
|
if (module.is.animating()) {
|
|
@@ -179,7 +173,7 @@
|
|
|
179
173
|
.one('animationend.queue' + eventNamespace, function () {
|
|
180
174
|
module.queuing = false;
|
|
181
175
|
module.repaint();
|
|
182
|
-
module.animate.
|
|
176
|
+
module.animate.call(this, settings);
|
|
183
177
|
});
|
|
184
178
|
},
|
|
185
179
|
|
|
@@ -209,12 +203,12 @@
|
|
|
209
203
|
|
|
210
204
|
force: {
|
|
211
205
|
visible: function () {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
206
|
+
const style = $module.attr('style');
|
|
207
|
+
const userStyle = module.get.userStyle(style);
|
|
208
|
+
const displayType = module.get.displayType();
|
|
209
|
+
const overrideStyle = userStyle + 'display: ' + displayType + ' !important;';
|
|
210
|
+
const inlineDisplay = $module[0].style.display;
|
|
211
|
+
const mustStayHidden = !displayType || (inlineDisplay === 'none' && settings.skipInlineHidden) || $module[0].tagName.match(/(script|link|style)/i);
|
|
218
212
|
if (mustStayHidden) {
|
|
219
213
|
module.remove.transition();
|
|
220
214
|
|
|
@@ -227,9 +221,9 @@
|
|
|
227
221
|
return true;
|
|
228
222
|
},
|
|
229
223
|
hidden: function () {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
224
|
+
const style = $module.attr('style');
|
|
225
|
+
const currentDisplay = $module.css('display');
|
|
226
|
+
const emptyStyle = style === undefined || style === '';
|
|
233
227
|
if (currentDisplay !== 'none' && !module.is.hidden()) {
|
|
234
228
|
module.verbose('Overriding default display to hide element');
|
|
235
229
|
$module
|
|
@@ -257,7 +251,7 @@
|
|
|
257
251
|
return hasDirection;
|
|
258
252
|
},
|
|
259
253
|
inlineDisplay: function () {
|
|
260
|
-
|
|
254
|
+
const style = $module.attr('style') || '';
|
|
261
255
|
|
|
262
256
|
return Array.isArray(style.match(/display.*?;/, ''));
|
|
263
257
|
},
|
|
@@ -270,7 +264,7 @@
|
|
|
270
264
|
|
|
271
265
|
// determine exact animation
|
|
272
266
|
animation = animation || settings.animation;
|
|
273
|
-
|
|
267
|
+
const animationClass = module.get.animationClass(animation);
|
|
274
268
|
|
|
275
269
|
// save animation class in cache to restore class names
|
|
276
270
|
module.save.animation(animationClass);
|
|
@@ -282,8 +276,7 @@
|
|
|
282
276
|
module.start.animation(animationClass);
|
|
283
277
|
}
|
|
284
278
|
},
|
|
285
|
-
duration: function (
|
|
286
|
-
duration = duration || settings.duration;
|
|
279
|
+
duration: function (duration = settings.duration) {
|
|
287
280
|
duration = typeof duration === 'number'
|
|
288
281
|
? duration + 'ms'
|
|
289
282
|
: duration;
|
|
@@ -295,8 +288,7 @@
|
|
|
295
288
|
});
|
|
296
289
|
}
|
|
297
290
|
},
|
|
298
|
-
direction: function (direction) {
|
|
299
|
-
direction = direction || module.get.direction();
|
|
291
|
+
direction: function (direction = module.get.direction()) {
|
|
300
292
|
if (direction === className.inward) {
|
|
301
293
|
module.set.inward();
|
|
302
294
|
} else {
|
|
@@ -333,8 +325,7 @@
|
|
|
333
325
|
},
|
|
334
326
|
|
|
335
327
|
start: {
|
|
336
|
-
animation: function (animationClass) {
|
|
337
|
-
animationClass = animationClass || module.get.animationClass();
|
|
328
|
+
animation: function (animationClass = module.get.animationClass()) {
|
|
338
329
|
module.debug('Starting tween', animationClass);
|
|
339
330
|
$module
|
|
340
331
|
.addClass(animationClass)
|
|
@@ -367,7 +358,7 @@
|
|
|
367
358
|
|
|
368
359
|
restore: {
|
|
369
360
|
conditions: function () {
|
|
370
|
-
|
|
361
|
+
const animation = module.get.currentAnimation();
|
|
371
362
|
if (animation) {
|
|
372
363
|
$module
|
|
373
364
|
.removeClass(animation);
|
|
@@ -379,7 +370,7 @@
|
|
|
379
370
|
|
|
380
371
|
add: {
|
|
381
372
|
failSafe: function () {
|
|
382
|
-
|
|
373
|
+
const duration = module.get.duration();
|
|
383
374
|
module.timer = setTimeout(function () {
|
|
384
375
|
$module.triggerHandler('animationend');
|
|
385
376
|
}, duration + settings.failSafeDelay);
|
|
@@ -475,9 +466,8 @@
|
|
|
475
466
|
animation: animation,
|
|
476
467
|
});
|
|
477
468
|
},
|
|
478
|
-
animationClass: function (animation) {
|
|
479
|
-
|
|
480
|
-
let directionClass = module.can.transition() && !module.has.direction()
|
|
469
|
+
animationClass: function (animationClass = settings.animation) {
|
|
470
|
+
const directionClass = module.can.transition() && !module.has.direction()
|
|
481
471
|
? module.get.direction() + ' '
|
|
482
472
|
: '';
|
|
483
473
|
|
|
@@ -501,9 +491,8 @@
|
|
|
501
491
|
? className.inward
|
|
502
492
|
: className.outward;
|
|
503
493
|
},
|
|
504
|
-
animationDirection: function (animation) {
|
|
494
|
+
animationDirection: function (animation = settings.animation) {
|
|
505
495
|
let direction;
|
|
506
|
-
animation = animation || settings.animation;
|
|
507
496
|
if (typeof animation === 'string') {
|
|
508
497
|
animation = animation.split(' ');
|
|
509
498
|
// search animation name for out/in class
|
|
@@ -522,27 +511,23 @@
|
|
|
522
511
|
|
|
523
512
|
return false;
|
|
524
513
|
},
|
|
525
|
-
duration: function (duration) {
|
|
526
|
-
duration = duration || settings.duration;
|
|
514
|
+
duration: function (duration = settings.duration) {
|
|
527
515
|
if (duration === false) {
|
|
528
516
|
duration = $module.css('animation-duration') || 0;
|
|
529
517
|
}
|
|
530
518
|
|
|
531
519
|
return typeof duration === 'string'
|
|
532
|
-
? (duration.
|
|
533
|
-
? parseFloat(duration)
|
|
534
|
-
: parseFloat(duration) * 1000)
|
|
520
|
+
? (duration.includes('ms')
|
|
521
|
+
? Number.parseFloat(duration)
|
|
522
|
+
: Number.parseFloat(duration) * 1000)
|
|
535
523
|
: duration;
|
|
536
524
|
},
|
|
537
|
-
displayType: function (shouldDetermine) {
|
|
538
|
-
shouldDetermine = shouldDetermine !== undefined
|
|
539
|
-
? shouldDetermine
|
|
540
|
-
: true;
|
|
525
|
+
displayType: function (shouldDetermine = true) {
|
|
541
526
|
if (settings.displayType) {
|
|
542
527
|
return settings.displayType;
|
|
543
528
|
}
|
|
544
529
|
if (shouldDetermine && $module.data(metadata.displayType) === undefined) {
|
|
545
|
-
|
|
530
|
+
const currentDisplay = $module.css('display');
|
|
546
531
|
if (currentDisplay === '' || currentDisplay === 'none') {
|
|
547
532
|
// create a fake element to determine display state
|
|
548
533
|
module.can.transition(true);
|
|
@@ -565,8 +550,8 @@
|
|
|
565
550
|
|
|
566
551
|
can: {
|
|
567
552
|
transition: function (forced) {
|
|
568
|
-
|
|
569
|
-
|
|
553
|
+
const animation = settings.animation;
|
|
554
|
+
const transitionExists = module.get.transitionExists(animation);
|
|
570
555
|
let displayType = module.get.displayType(false);
|
|
571
556
|
let elementClass;
|
|
572
557
|
let tagName;
|
|
@@ -642,8 +627,7 @@
|
|
|
642
627
|
looping: function () {
|
|
643
628
|
return $module.hasClass(className.looping);
|
|
644
629
|
},
|
|
645
|
-
occurring: function (animation) {
|
|
646
|
-
animation = animation || settings.animation;
|
|
630
|
+
occurring: function (animation = settings.animation) {
|
|
647
631
|
animation = '.' + animation.replace(' ', '.');
|
|
648
632
|
|
|
649
633
|
return $module.filter(animation).length > 0;
|
|
@@ -756,30 +740,30 @@
|
|
|
756
740
|
return module[name];
|
|
757
741
|
}
|
|
758
742
|
},
|
|
759
|
-
debug: function () {
|
|
743
|
+
debug: function (...args) {
|
|
760
744
|
if (!settings.silent && settings.debug) {
|
|
761
745
|
if (settings.performance) {
|
|
762
|
-
module.performance.log(
|
|
746
|
+
module.performance.log(args);
|
|
763
747
|
} else {
|
|
764
748
|
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
765
|
-
module.debug.apply(console,
|
|
749
|
+
module.debug.apply(console, args);
|
|
766
750
|
}
|
|
767
751
|
}
|
|
768
752
|
},
|
|
769
|
-
verbose: function () {
|
|
753
|
+
verbose: function (...args) {
|
|
770
754
|
if (!settings.silent && settings.verbose && settings.debug) {
|
|
771
755
|
if (settings.performance) {
|
|
772
|
-
module.performance.log(
|
|
756
|
+
module.performance.log(args);
|
|
773
757
|
} else {
|
|
774
758
|
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
775
|
-
module.verbose.apply(console,
|
|
759
|
+
module.verbose.apply(console, args);
|
|
776
760
|
}
|
|
777
761
|
}
|
|
778
762
|
},
|
|
779
|
-
error: function () {
|
|
763
|
+
error: function (...args) {
|
|
780
764
|
if (!settings.silent) {
|
|
781
765
|
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
|
782
|
-
module.error.apply(console,
|
|
766
|
+
module.error.apply(console, args);
|
|
783
767
|
}
|
|
784
768
|
},
|
|
785
769
|
performance: {
|
|
@@ -794,7 +778,7 @@
|
|
|
794
778
|
time = currentTime;
|
|
795
779
|
performance.push({
|
|
796
780
|
Name: message[0],
|
|
797
|
-
Arguments:
|
|
781
|
+
Arguments: message.slice(1),
|
|
798
782
|
Element: element,
|
|
799
783
|
'Execution Time': executionTime,
|
|
800
784
|
});
|
|
@@ -818,31 +802,23 @@
|
|
|
818
802
|
}
|
|
819
803
|
if (performance.length > 0) {
|
|
820
804
|
console.groupCollapsed(title);
|
|
821
|
-
|
|
822
|
-
console.table(performance);
|
|
823
|
-
} else {
|
|
824
|
-
$.each(performance, function (index, data) {
|
|
825
|
-
console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
|
|
826
|
-
});
|
|
827
|
-
}
|
|
805
|
+
console.table(performance);
|
|
828
806
|
console.groupEnd();
|
|
829
807
|
}
|
|
830
808
|
performance = [];
|
|
831
809
|
},
|
|
832
810
|
},
|
|
833
811
|
// modified for transition to return invoke success
|
|
834
|
-
invoke: function (query, passedArguments, context) {
|
|
812
|
+
invoke: function (query, passedArguments = queryArguments, context = element) {
|
|
835
813
|
let object = instance;
|
|
836
814
|
let maxDepth;
|
|
837
815
|
let found;
|
|
838
816
|
let response;
|
|
839
|
-
passedArguments = passedArguments || queryArguments;
|
|
840
|
-
context = context || element;
|
|
841
817
|
if (typeof query === 'string' && object !== undefined) {
|
|
842
818
|
query = query.split(/[ .]/);
|
|
843
819
|
maxDepth = query.length - 1;
|
|
844
820
|
$.each(query, function (depth, value) {
|
|
845
|
-
|
|
821
|
+
const camelCaseValue = depth !== maxDepth
|
|
846
822
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
|
847
823
|
: query;
|
|
848
824
|
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
@keyframes pulsating {
|
|
94
94
|
100% {
|
|
95
|
-
box-shadow: 0 0 0 @pulsatingDistance
|
|
95
|
+
box-shadow: 0 0 0 @pulsatingDistance rgb(255 255 255 / 0);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
& when not (@variationTransitionColors = false) {
|
|
@@ -113,5 +113,4 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// stylelint-disable no-invalid-position-at-import-rule
|
|
117
116
|
@import (multiple, optional) "../../overrides.less";
|
package/src/semantic.less
CHANGED
|
@@ -24,17 +24,16 @@
|
|
|
24
24
|
@horizontalPadding: 1.75em;
|
|
25
25
|
|
|
26
26
|
@backgroundColor: #f7f8fa;
|
|
27
|
-
@backgroundImage: linear-gradient(
|
|
27
|
+
@backgroundImage: linear-gradient(rgb(255 255 255 / 0), rgb(0 0 0 / 0.1));
|
|
28
28
|
@boxShadow:
|
|
29
|
-
0 1px 0 1px
|
|
29
|
+
0 1px 0 1px rgb(255 255 255 / 0.3) inset,
|
|
30
30
|
0 0 0 1px #adb2bb inset;
|
|
31
31
|
|
|
32
|
-
@
|
|
33
|
-
@coloredBoxShadow: 0 1px 0 0 rgba(255, 255, 255, 0.2) inset;
|
|
32
|
+
@coloredBoxShadow: 0 1px 0 0 rgb(255 255 255 / 0.2) inset;
|
|
34
33
|
|
|
35
34
|
@downBoxShadow:
|
|
36
35
|
0 0 0 1px #adb2bb inset,
|
|
37
|
-
0 1px 3px
|
|
36
|
+
0 1px 3px rgb(0 0 0 / 0.2) inset;
|
|
38
37
|
|
|
39
38
|
@labeledIconBackgroundColor: #313a43;
|
|
40
39
|
@labeledIconColor: #fff;
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
@black: #444c55;
|
|
44
43
|
@orange: #f4cc67;
|
|
45
44
|
|
|
46
|
-
@coloredBackgroundImage: linear-gradient(
|
|
45
|
+
@coloredBackgroundImage: linear-gradient(rgb(255 255 255 / 0.15), rgb(0 0 0 / 0.1));
|
|
47
46
|
@primaryColor: @orange;
|
|
48
47
|
@secondaryColor: @black;
|
|
49
48
|
|
|
@@ -18,15 +18,14 @@
|
|
|
18
18
|
@disabledOpacity: 0.3;
|
|
19
19
|
|
|
20
20
|
@black: #444c55;
|
|
21
|
-
@orange: #fde07b;
|
|
22
21
|
|
|
23
22
|
@linkColor: #0066c0;
|
|
24
23
|
@linkHoverColor: #c45500;
|
|
25
24
|
@linkHoverUnderline: underline;
|
|
26
25
|
|
|
27
|
-
@borderColor:
|
|
26
|
+
@borderColor: rgb(0 0 0 / 0.13);
|
|
28
27
|
@solidBorderColor: #ddd;
|
|
29
|
-
@internalBorderColor:
|
|
28
|
+
@internalBorderColor: rgb(0 0 0 / 0.06);
|
|
30
29
|
@selectedBorderColor: #51a7e8;
|
|
31
30
|
|
|
32
31
|
/* Breakpoints */
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
|
|
12
12
|
@subHeaderFontSize: 0.85rem;
|
|
13
13
|
|
|
14
|
-
@dividedBorder: 1px dotted
|
|
14
|
+
@dividedBorder: 1px dotted rgb(0 0 0 / 0.2);
|
|
15
15
|
|
|
16
16
|
/* Block Header */
|
|
17
17
|
@blockVerticalPadding: 1.3em;
|
|
18
18
|
@blockHorizontalPadding: 1em;
|
|
19
19
|
|
|
20
20
|
/* Attached */
|
|
21
|
-
@attachedBackground: linear-gradient(
|
|
21
|
+
@attachedBackground: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.03)) repeat scroll 0 0 #f8f8f8;
|
|
22
22
|
@attachedVerticalPadding: 1.3;
|
|
23
23
|
@attachedHorizontalPadding: 1em;
|
|
24
24
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
sans-serif;
|
|
11
11
|
@textTransform: none;
|
|
12
12
|
@fontWeight: @normal;
|
|
13
|
-
@textColor:
|
|
13
|
+
@textColor: rgb(51 51 51 / 1);
|
|
14
14
|
|
|
15
15
|
@borderRadius: @4px;
|
|
16
16
|
|
|
@@ -21,9 +21,8 @@
|
|
|
21
21
|
@backgroundColor: @white;
|
|
22
22
|
@backgroundImage: none;
|
|
23
23
|
|
|
24
|
-
@borderBoxShadowColor:
|
|
24
|
+
@borderBoxShadowColor: rgb(0 0 0 / 0.14);
|
|
25
25
|
|
|
26
|
-
@green: #5cb85c;
|
|
27
26
|
@red: #d9534f;
|
|
28
27
|
@blue: #337ab7;
|
|
29
28
|
@green: #60b044;
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
@basicHoverBackground: transparent;
|
|
43
42
|
@basicDownBoxShadow:
|
|
44
43
|
0 0 0 1px #adadad inset,
|
|
45
|
-
0 3px 5px
|
|
44
|
+
0 3px 5px rgb(0 0 0 / 0.125) inset;
|
|
46
45
|
|
|
47
46
|
@groupButtonOffset: 0 0 0 -1px;
|
|
48
47
|
@verticalGroupOffset: 0 0 -1px 0;
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
@downBackgroundColor: #e6e6e6;
|
|
56
55
|
@downBoxShadow:
|
|
57
56
|
0 0 0 1px #adadad inset,
|
|
58
|
-
0 3px 5px
|
|
57
|
+
0 3px 5px rgb(0 0 0 / 0.125) inset;
|
|
59
58
|
|
|
60
59
|
@activeBackgroundColor: #e6e6e6;
|
|
61
60
|
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
.ui.labeled.icon.buttons > .button > .icon,
|
|
8
8
|
.ui.labeled.icon.button > .icon {
|
|
9
9
|
box-shadow:
|
|
10
|
-
-1px 0 0 0
|
|
11
|
-
-1px 0 0 0
|
|
10
|
+
-1px 0 0 0 rgb(255 255 255 / 0.2) inset,
|
|
11
|
+
-1px 0 0 0 rgb(0 0 0 / 0.05) inset;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ui.right.labeled.icon.buttons .button .icon,
|
|
15
15
|
.ui.right.labeled.icon.button .icon {
|
|
16
16
|
box-shadow:
|
|
17
|
-
1px 0 0 0
|
|
18
|
-
1px 0 0 0
|
|
17
|
+
1px 0 0 0 rgb(255 255 255 / 0.2) inset,
|
|
18
|
+
1px 0 0 0 rgb(0 0 0 / 0.05) inset;
|
|
19
19
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
.ui.comments .comment {
|
|
6
6
|
border-radius: 0.5em;
|
|
7
|
-
box-shadow: 0 1px 1px 1px
|
|
7
|
+
box-shadow: 0 1px 1px 1px rgb(0 0 0 / 0.1);
|
|
8
8
|
}
|
|
9
9
|
.ui.comments .comment > .comments .comment {
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid rgb(0 0 0 / 0.1);
|
|
11
11
|
box-shadow: none;
|
|
12
12
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
@commentBackground: #fff;
|
|
11
11
|
@commentMargin: 1em 0 0;
|
|
12
12
|
@commentPadding: 1em 1.5em;
|
|
13
|
-
@commentBorder: 1px solid
|
|
14
|
-
@commentDivider: 1px solid
|
|
13
|
+
@commentBorder: 1px solid rgb(0 0 0 / 0.1);
|
|
14
|
+
@commentDivider: 1px solid rgb(0 0 0 / 0.1);
|
|
15
15
|
@firstCommentMargin: 1em;
|
|
16
16
|
@firstCommentPadding: 1em;
|
|
17
17
|
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
|
|
11
11
|
@headerBackground: @subtleGradient;
|
|
12
12
|
@headerBoxShadow: @subtleShadow;
|
|
13
|
-
@footerBoxShadow: 0 -1px 1px 0
|
|
14
|
-
@footerBackground:
|
|
13
|
+
@footerBoxShadow: 0 -1px 1px 0 rgb(0 0 0 / 0.05);
|
|
14
|
+
@footerBackground: rgb(0 0 0 / 0.05);
|