fomantic-ui 2.9.1-beta.23 → 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 +6 -11
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +22 -22
- 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 +47 -47
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +69 -58
- package/dist/components/calendar.min.css +1 -1
- 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 +9 -9
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +11 -11
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +171 -173
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +16 -16
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +21 -17
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +87 -87
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +30 -26
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +7 -7
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +45 -45
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +30 -32
- 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 +10 -10
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +31 -31
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +34 -34
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +21 -21
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +14 -14
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +33 -25
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +11 -11
- 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 +21 -21
- 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 +23 -23
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +41 -17
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +21 -21
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +21 -21
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +847 -800
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/gulpfile.js +1 -1
- package/package.json +2 -1
- package/scripts/nightly-version.js +3 -1
- package/src/definitions/behaviors/api.js +46 -46
- package/src/definitions/behaviors/form.js +86 -86
- package/src/definitions/behaviors/state.js +10 -10
- package/src/definitions/behaviors/visibility.js +20 -20
- package/src/definitions/globals/site.js +13 -13
- package/src/definitions/modules/accordion.js +21 -21
- package/src/definitions/modules/calendar.js +68 -57
- package/src/definitions/modules/checkbox.js +8 -8
- package/src/definitions/modules/dimmer.js +10 -10
- package/src/definitions/modules/dropdown.js +170 -172
- package/src/definitions/modules/embed.js +15 -15
- package/src/definitions/modules/flyout.js +20 -16
- package/src/definitions/modules/modal.js +29 -25
- package/src/definitions/modules/nag.js +6 -6
- package/src/definitions/modules/popup.js +44 -44
- package/src/definitions/modules/progress.js +29 -31
- package/src/definitions/modules/rating.js +9 -9
- package/src/definitions/modules/search.js +30 -30
- package/src/definitions/modules/shape.js +33 -33
- package/src/definitions/modules/sidebar.js +20 -20
- package/src/definitions/modules/slider.js +32 -24
- package/src/definitions/modules/sticky.js +20 -20
- package/src/definitions/modules/tab.js +22 -22
- package/src/definitions/modules/toast.js +40 -16
- package/src/definitions/modules/transition.js +20 -20
- package/tasks/admin/components/create.js +1 -1
- package/tasks/admin/components/init.js +1 -1
- package/tasks/admin/components/update.js +4 -4
- package/tasks/admin/distributions/create.js +2 -2
- package/tasks/admin/distributions/init.js +1 -1
- package/tasks/admin/distributions/update.js +4 -4
- package/tasks/admin/publish.js +1 -3
- package/tasks/admin/register.js +5 -5
- package/tasks/admin/release.js +1 -3
- package/tasks/build/assets.js +1 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/config/admin/github.js +3 -4
- package/tasks/config/npm/gulpfile.js +1 -1
- package/tasks/config/project/config.js +8 -6
- package/tasks/config/project/install.js +10 -10
- package/tasks/config/project/release.js +3 -2
- package/tasks/config/tasks.js +2 -2
- package/tasks/config/user.js +5 -3
- package/tasks/docs/build.js +1 -1
- package/tasks/docs/metadata.js +1 -1
- package/tasks/docs/serve.js +2 -1
- package/tasks/install.js +2 -2
- 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/dist/components/embed.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.24+029436f - Embed
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -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
|
|
@@ -29,7 +29,7 @@
|
|
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
|
@@ -37,7 +37,7 @@
|
|
37
37
|
|
38
38
|
$allModules.each(function () {
|
39
39
|
var
|
40
|
-
settings =
|
40
|
+
settings = $.isPlainObject(parameters)
|
41
41
|
? $.extend(true, {}, $.fn.embed.settings, parameters)
|
42
42
|
: $.extend({}, $.fn.embed.settings),
|
43
43
|
|
@@ -206,24 +206,24 @@
|
|
206
206
|
return settings.placeholder || $module.data(metadata.placeholder);
|
207
207
|
},
|
208
208
|
icon: function () {
|
209
|
-
return settings.icon || (
|
209
|
+
return settings.icon || ($module.data(metadata.icon) !== undefined
|
210
210
|
? $module.data(metadata.icon)
|
211
211
|
: module.determine.icon());
|
212
212
|
},
|
213
213
|
source: function (url) {
|
214
|
-
return settings.source || (
|
214
|
+
return settings.source || ($module.data(metadata.source) !== undefined
|
215
215
|
? $module.data(metadata.source)
|
216
216
|
: module.determine.source());
|
217
217
|
},
|
218
218
|
type: function () {
|
219
219
|
var source = module.get.source();
|
220
220
|
|
221
|
-
return
|
221
|
+
return sources[source] !== undefined
|
222
222
|
? sources[source].type
|
223
223
|
: false;
|
224
224
|
},
|
225
225
|
url: function () {
|
226
|
-
return settings.url || (
|
226
|
+
return settings.url || ($module.data(metadata.url) !== undefined
|
227
227
|
? $module.data(metadata.url)
|
228
228
|
: module.determine.url());
|
229
229
|
},
|
@@ -257,7 +257,7 @@
|
|
257
257
|
source = module.get.source()
|
258
258
|
;
|
259
259
|
|
260
|
-
return
|
260
|
+
return sources[source] !== undefined
|
261
261
|
? sources[source].icon
|
262
262
|
: false;
|
263
263
|
},
|
@@ -267,7 +267,7 @@
|
|
267
267
|
source = settings.source || $module.data(metadata.source),
|
268
268
|
url
|
269
269
|
;
|
270
|
-
url =
|
270
|
+
url = sources[source] !== undefined
|
271
271
|
? sources[source].url.replace('{id}', id)
|
272
272
|
: false;
|
273
273
|
if (url) {
|
@@ -336,7 +336,7 @@
|
|
336
336
|
},
|
337
337
|
parameters: function (source, extraParameters) {
|
338
338
|
var
|
339
|
-
parameters =
|
339
|
+
parameters = sources[source] && sources[source].parameters !== undefined
|
340
340
|
? sources[source].parameters(settings)
|
341
341
|
: {}
|
342
342
|
;
|
@@ -352,7 +352,7 @@
|
|
352
352
|
|
353
353
|
has: {
|
354
354
|
embed: function () {
|
355
|
-
return
|
355
|
+
return $embed.length > 0;
|
356
356
|
},
|
357
357
|
placeholder: function () {
|
358
358
|
return settings.placeholder || $module.data(metadata.placeholder);
|
@@ -361,8 +361,8 @@
|
|
361
361
|
|
362
362
|
should: {
|
363
363
|
autoplay: function () {
|
364
|
-
return
|
365
|
-
?
|
364
|
+
return settings.autoplay === 'auto'
|
365
|
+
? settings.placeholder || $module.data(metadata.placeholder) !== undefined
|
366
366
|
: settings.autoplay;
|
367
367
|
},
|
368
368
|
},
|
@@ -488,7 +488,7 @@
|
|
488
488
|
query = query.split(/[ .]/);
|
489
489
|
maxDepth = query.length - 1;
|
490
490
|
$.each(query, function (depth, value) {
|
491
|
-
var camelCaseValue =
|
491
|
+
var camelCaseValue = depth != maxDepth
|
492
492
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
493
493
|
: query
|
494
494
|
;
|
@@ -541,7 +541,7 @@
|
|
541
541
|
}
|
542
542
|
});
|
543
543
|
|
544
|
-
return
|
544
|
+
return returnedValue !== undefined
|
545
545
|
? returnedValue
|
546
546
|
: this;
|
547
547
|
};
|
package/dist/components/feed.css
CHANGED
package/dist/components/flag.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.1-beta.
|
2
|
+
* # Fomantic-UI 2.9.1-beta.24+029436f - Flyout
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -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
|
|
@@ -34,7 +34,7 @@
|
|
34
34
|
performance = [],
|
35
35
|
|
36
36
|
query = arguments[0],
|
37
|
-
methodInvoked =
|
37
|
+
methodInvoked = typeof query === 'string',
|
38
38
|
queryArguments = [].slice.call(arguments, 1),
|
39
39
|
|
40
40
|
requestAnimationFrame = window.requestAnimationFrame
|
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
$allModules.each(function () {
|
52
52
|
var
|
53
|
-
settings =
|
53
|
+
settings = $.isPlainObject(parameters)
|
54
54
|
? $.extend(true, {}, $.fn.flyout.settings, parameters)
|
55
55
|
: $.extend({}, $.fn.flyout.settings),
|
56
56
|
|
@@ -128,10 +128,14 @@
|
|
128
128
|
}
|
129
129
|
settings.actions.forEach(function (el) {
|
130
130
|
var
|
131
|
-
icon = el[fields.icon]
|
131
|
+
icon = el[fields.icon]
|
132
|
+
? '<i ' + (el[fields.text] ? 'aria-hidden="true"' : '') + ' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>'
|
133
|
+
: '',
|
132
134
|
text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
|
133
135
|
cls = module.helpers.deQuote(el[fields.class] || ''),
|
134
|
-
click = el[fields.click] && isFunction(el[fields.click])
|
136
|
+
click = el[fields.click] && isFunction(el[fields.click])
|
137
|
+
? el[fields.click]
|
138
|
+
: function () {}
|
135
139
|
;
|
136
140
|
$actions.append($('<button/>', {
|
137
141
|
html: icon + text,
|
@@ -262,8 +266,8 @@
|
|
262
266
|
clickaway: function (event) {
|
263
267
|
if (settings.closable) {
|
264
268
|
var
|
265
|
-
clickedInPusher =
|
266
|
-
clickedContext =
|
269
|
+
clickedInPusher = $pusher.find(event.target).length > 0 || $pusher.is(event.target),
|
270
|
+
clickedContext = $context.is(event.target)
|
267
271
|
;
|
268
272
|
if (clickedInPusher) {
|
269
273
|
module.verbose('User clicked on dimmed page');
|
@@ -652,13 +656,13 @@
|
|
652
656
|
},
|
653
657
|
|
654
658
|
othersAnimating: function () {
|
655
|
-
return
|
659
|
+
return $flyouts.not($module).filter('.' + className.animating).length > 0;
|
656
660
|
},
|
657
661
|
othersVisible: function () {
|
658
|
-
return
|
662
|
+
return $flyouts.not($module).filter('.' + className.visible).length > 0;
|
659
663
|
},
|
660
664
|
othersActive: function () {
|
661
|
-
return
|
665
|
+
return module.othersVisible() || module.othersAnimating();
|
662
666
|
},
|
663
667
|
|
664
668
|
hideOthers: function (callback) {
|
@@ -794,7 +798,7 @@
|
|
794
798
|
autofocus: function () {
|
795
799
|
var
|
796
800
|
$autofocus = $inputs.filter('[autofocus]'),
|
797
|
-
$input =
|
801
|
+
$input = $autofocus.length > 0
|
798
802
|
? $autofocus.first()
|
799
803
|
: ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
|
800
804
|
;
|
@@ -1011,10 +1015,10 @@
|
|
1011
1015
|
ie: function () {
|
1012
1016
|
if (module.cache.isIE === undefined) {
|
1013
1017
|
var
|
1014
|
-
isIE11 =
|
1015
|
-
isIE =
|
1018
|
+
isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
|
1019
|
+
isIE = 'ActiveXObject' in window
|
1016
1020
|
;
|
1017
|
-
module.cache.isIE =
|
1021
|
+
module.cache.isIE = isIE11 || isIE;
|
1018
1022
|
}
|
1019
1023
|
|
1020
1024
|
return module.cache.isIE;
|
@@ -1238,7 +1242,7 @@
|
|
1238
1242
|
query = query.split(/[ .]/);
|
1239
1243
|
maxDepth = query.length - 1;
|
1240
1244
|
$.each(query, function (depth, value) {
|
1241
|
-
var camelCaseValue =
|
1245
|
+
var camelCaseValue = depth != maxDepth
|
1242
1246
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
1243
1247
|
: query
|
1244
1248
|
;
|
@@ -1305,7 +1309,7 @@
|
|
1305
1309
|
}
|
1306
1310
|
});
|
1307
1311
|
|
1308
|
-
return
|
1312
|
+
return returnedValue !== undefined
|
1309
1313
|
? returnedValue
|
1310
1314
|
: this;
|
1311
1315
|
};
|
package/dist/components/form.css
CHANGED