fomantic-ui 2.9.3-beta.9 → 2.9.4-beta.0
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 +2 -2
- package/.github/FUNDING.yml +1 -1
- package/.github/auto_assign.yml +1 -1
- package/.github/workflows/ci.yml +5 -5
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/CHANGELOG.md +131 -0
- package/CONTRIBUTORS.md +1 -1
- package/README.md +5 -2
- package/SECURITY.md +2 -1
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +2 -2
- 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 +10 -9
- 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 +2 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +140 -3
- package/dist/components/calendar.js +2 -2
- 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 +50 -6
- package/dist/components/checkbox.js +5 -3
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +6 -1
- package/dist/components/comment.min.css +2 -2
- package/dist/components/container.css +62 -1
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +3 -3
- package/dist/components/dimmer.js +2 -2
- package/dist/components/dimmer.min.css +2 -2
- 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 +101 -25
- package/dist/components/dropdown.js +29 -21
- 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 +2 -2
- package/dist/components/emoji.css +697 -249
- package/dist/components/emoji.min.css +2 -2
- package/dist/components/feed.css +486 -5
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +3 -2
- package/dist/components/flag.min.css +2 -2
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +2 -33
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +34 -32
- package/dist/components/form.js +72 -31
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +107 -107
- 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 +62 -62
- 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 +3 -27
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +6 -1
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +21 -2
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +13 -13
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +282 -282
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +13 -7
- 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 -1
- package/dist/components/modal.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/components/popup.js +11 -9
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +2 -2
- 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 +2 -2
- 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 +26 -1
- package/dist/components/search.js +5 -4
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +159 -33
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +2 -2
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +2 -32
- 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 +2 -2
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +126 -26
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +2 -2
- 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 +2 -2
- 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 +6 -4
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +65 -1
- 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 +6 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +3 -3
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +2 -2
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +2822 -954
- package/dist/semantic.js +302 -206
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +4 -3
- package/scripts/nightly-version.js +2 -2
- package/src/definitions/behaviors/api.js +9 -8
- package/src/definitions/behaviors/form.js +71 -30
- package/src/definitions/behaviors/state.js +1 -1
- package/src/definitions/behaviors/visibility.js +1 -1
- package/src/definitions/collections/form.less +9 -14
- package/src/definitions/collections/grid.less +106 -106
- package/src/definitions/collections/menu.less +29 -22
- package/src/definitions/collections/table.less +66 -0
- package/src/definitions/elements/button.less +1 -1
- package/src/definitions/elements/container.less +63 -0
- package/src/definitions/elements/icon.less +5 -5
- package/src/definitions/elements/input.less +2 -2
- package/src/definitions/elements/label.less +21 -1
- package/src/definitions/elements/list.less +13 -13
- package/src/definitions/elements/loader.less +71 -71
- package/src/definitions/elements/segment.less +110 -13
- package/src/definitions/globals/site.js +1 -1
- package/src/definitions/modules/accordion.js +1 -1
- package/src/definitions/modules/calendar.js +1 -1
- package/src/definitions/modules/calendar.less +40 -11
- package/src/definitions/modules/checkbox.js +4 -2
- package/src/definitions/modules/checkbox.less +61 -5
- package/src/definitions/modules/dimmer.js +1 -1
- package/src/definitions/modules/dimmer.less +2 -2
- package/src/definitions/modules/dropdown.js +28 -20
- package/src/definitions/modules/dropdown.less +124 -21
- package/src/definitions/modules/embed.js +1 -1
- package/src/definitions/modules/flyout.js +1 -32
- package/src/definitions/modules/modal.js +2 -2
- package/src/definitions/modules/modal.less +6 -0
- package/src/definitions/modules/nag.js +2 -2
- package/src/definitions/modules/popup.js +10 -8
- package/src/definitions/modules/popup.less +4 -4
- package/src/definitions/modules/progress.js +1 -1
- package/src/definitions/modules/rating.js +1 -1
- package/src/definitions/modules/search.js +4 -3
- package/src/definitions/modules/search.less +31 -0
- package/src/definitions/modules/shape.js +1 -1
- package/src/definitions/modules/sidebar.js +1 -31
- package/src/definitions/modules/slider.js +125 -25
- package/src/definitions/modules/sticky.js +1 -1
- package/src/definitions/modules/tab.js +5 -3
- package/src/definitions/modules/toast.js +1 -1
- package/src/definitions/modules/toast.less +7 -0
- package/src/definitions/modules/transition.js +2 -2
- package/src/definitions/views/comment.less +7 -0
- package/src/definitions/views/feed.less +238 -32
- package/src/definitions/views/item.less +7 -0
- package/src/theme.less +1 -1
- package/src/themes/amazon/elements/button.variables +5 -1
- package/src/themes/bootstrap3/elements/button.variables +5 -1
- package/src/themes/chubby/elements/header.variables +6 -1
- package/src/themes/default/collections/message.variables +3 -9
- package/src/themes/default/collections/table.variables +11 -8
- package/src/themes/default/elements/button.variables +8 -10
- package/src/themes/default/elements/container.variables +3 -0
- package/src/themes/default/elements/emoji.variables +179 -67
- package/src/themes/default/elements/flag.variables +1 -1
- package/src/themes/default/elements/label.variables +6 -1
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/globals/site.variables +362 -341
- package/src/themes/default/globals/variation.variables +24 -1
- package/src/themes/default/modules/calendar.variables +11 -0
- package/src/themes/default/modules/checkbox.variables +12 -0
- package/src/themes/default/modules/dropdown.variables +10 -4
- package/src/themes/default/modules/modal.variables +3 -0
- package/src/themes/default/modules/popup.variables +1 -1
- package/src/themes/default/modules/search.variables +3 -0
- package/src/themes/default/modules/toast.variables +6 -5
- package/src/themes/default/views/card.variables +4 -12
- package/src/themes/default/views/feed.variables +55 -1
- package/src/themes/default/views/item.variables +5 -5
- package/src/themes/flat/collections/form.variables +4 -4
- package/src/themes/flat/globals/site.variables +1 -1
- package/src/themes/github/elements/button.variables +5 -1
- package/src/themes/joypixels/elements/emoji.variables +182 -70
- package/src/themes/material/globals/site.variables +1 -1
- package/src/themes/twitter/elements/button.variables +5 -1
- package/src/themes/twitter/elements/emoji.variables +178 -66
- package/tasks/admin/components/create.js +1 -2
- package/tasks/admin/components/init.js +3 -4
- package/tasks/admin/components/update.js +2 -3
- package/tasks/admin/distributions/create.js +9 -5
- package/tasks/admin/distributions/init.js +3 -4
- package/tasks/admin/distributions/update.js +2 -3
- package/tasks/config/project/install.js +3 -0
- package/tasks/config/tasks.js +1 -8
- package/tasks/config/user.js +1 -1
- package/tasks/docs/build.js +2 -2
- package/tasks/docs/metadata.js +1 -1
- package/tasks/docs/serve.js +1 -1
- package/tasks/install.js +19 -10
- package/tasks/watch.js +1 -2
- package/types/fomantic-ui-accordion.d.ts +244 -0
- package/types/fomantic-ui-api.d.ts +555 -0
- package/types/fomantic-ui-calendar.d.ts +766 -0
- package/types/fomantic-ui-checkbox.d.ts +332 -0
- package/types/fomantic-ui-dimmer.d.ts +408 -0
- package/types/fomantic-ui-dropdown.d.ts +1183 -0
- package/types/fomantic-ui-embed.d.ts +326 -0
- package/types/fomantic-ui-flyout.d.ts +525 -0
- package/types/fomantic-ui-form.d.ts +651 -0
- package/types/fomantic-ui-modal.d.ts +471 -0
- package/types/fomantic-ui-nag.d.ts +270 -0
- package/types/fomantic-ui-popup.d.ts +523 -0
- package/types/fomantic-ui-progress.d.ts +459 -0
- package/types/fomantic-ui-rating.d.ts +187 -0
- package/types/fomantic-ui-search.d.ts +496 -0
- package/types/fomantic-ui-shape.d.ts +274 -0
- package/types/fomantic-ui-sidebar.d.ts +402 -0
- package/types/fomantic-ui-slider.d.ts +316 -0
- package/types/fomantic-ui-sticky.d.ts +215 -0
- package/types/fomantic-ui-tab.d.ts +361 -0
- package/types/fomantic-ui-tests.ts +25 -0
- package/types/fomantic-ui-toast.d.ts +514 -0
- package/types/fomantic-ui-transition.d.ts +355 -0
- package/types/fomantic-ui-visibility.d.ts +355 -0
- package/types/index.d.ts +63 -0
- package/types/tsconfig.json +23 -0
- package/types/tslint.json +1 -0
|
@@ -233,9 +233,6 @@
|
|
|
233
233
|
.off(eventNamespace)
|
|
234
234
|
.removeData(moduleNamespace)
|
|
235
235
|
;
|
|
236
|
-
if (module.is.ios()) {
|
|
237
|
-
module.remove.ios();
|
|
238
|
-
}
|
|
239
236
|
$closeIcon.off(elementNamespace);
|
|
240
237
|
if ($inputs) {
|
|
241
238
|
$inputs.off(elementNamespace);
|
|
@@ -890,12 +887,6 @@
|
|
|
890
887
|
});
|
|
891
888
|
},
|
|
892
889
|
|
|
893
|
-
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
|
894
|
-
// (This is no longer necessary in latest iOS)
|
|
895
|
-
ios: function () {
|
|
896
|
-
$html.addClass(className.ios);
|
|
897
|
-
},
|
|
898
|
-
|
|
899
890
|
// container
|
|
900
891
|
pushed: function () {
|
|
901
892
|
$context.addClass(className.pushed);
|
|
@@ -945,11 +936,6 @@
|
|
|
945
936
|
;
|
|
946
937
|
},
|
|
947
938
|
|
|
948
|
-
// ios scroll on html not document
|
|
949
|
-
ios: function () {
|
|
950
|
-
$html.removeClass(className.ios);
|
|
951
|
-
},
|
|
952
|
-
|
|
953
939
|
// context
|
|
954
940
|
pushed: function () {
|
|
955
941
|
$context.removeClass(className.pushed);
|
|
@@ -1071,20 +1057,6 @@
|
|
|
1071
1057
|
|
|
1072
1058
|
return module.cache.isIE;
|
|
1073
1059
|
},
|
|
1074
|
-
ios: function () {
|
|
1075
|
-
var
|
|
1076
|
-
userAgent = navigator.userAgent,
|
|
1077
|
-
isIOS = userAgent.match(regExp.ios),
|
|
1078
|
-
isMobileChrome = userAgent.match(regExp.mobileChrome)
|
|
1079
|
-
;
|
|
1080
|
-
if (isIOS && !isMobileChrome) {
|
|
1081
|
-
module.verbose('Browser was found to be iOS', userAgent);
|
|
1082
|
-
|
|
1083
|
-
return true;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
return false;
|
|
1087
|
-
},
|
|
1088
1060
|
mobile: function () {
|
|
1089
1061
|
var
|
|
1090
1062
|
userAgent = navigator.userAgent,
|
|
@@ -1247,7 +1219,7 @@
|
|
|
1247
1219
|
});
|
|
1248
1220
|
}
|
|
1249
1221
|
clearTimeout(module.performance.timer);
|
|
1250
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
1222
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
1251
1223
|
},
|
|
1252
1224
|
display: function () {
|
|
1253
1225
|
var
|
|
@@ -1431,7 +1403,6 @@
|
|
|
1431
1403
|
blurring: 'blurring',
|
|
1432
1404
|
closing: 'closing',
|
|
1433
1405
|
dimmed: 'dimmed',
|
|
1434
|
-
ios: 'ios',
|
|
1435
1406
|
locked: 'locked',
|
|
1436
1407
|
pushable: 'pushable',
|
|
1437
1408
|
pushed: 'pushed',
|
|
@@ -1464,8 +1435,6 @@
|
|
|
1464
1435
|
},
|
|
1465
1436
|
|
|
1466
1437
|
regExp: {
|
|
1467
|
-
ios: /(iPad|iPhone|iPod)/g,
|
|
1468
|
-
mobileChrome: /(CriOS)/g,
|
|
1469
1438
|
mobile: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g,
|
|
1470
1439
|
},
|
|
1471
1440
|
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
},
|
|
528
528
|
debounce: function (method, delay) {
|
|
529
529
|
clearTimeout(module.timer);
|
|
530
|
-
module.timer = setTimeout(method, delay);
|
|
530
|
+
module.timer = setTimeout(function () { method(); }, delay);
|
|
531
531
|
},
|
|
532
532
|
keyboard: function (event) {
|
|
533
533
|
var
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
1273
|
});
|
|
1274
1274
|
}
|
|
1275
1275
|
clearTimeout(module.performance.timer);
|
|
1276
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
1276
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
1277
1277
|
},
|
|
1278
1278
|
display: function () {
|
|
1279
1279
|
var
|
|
@@ -481,6 +481,12 @@
|
|
|
481
481
|
overflow: auto;
|
|
482
482
|
overscroll-behavior: @overscrollBehavior;
|
|
483
483
|
}
|
|
484
|
+
& when (@variationTableResizable) {
|
|
485
|
+
.ui.modal > .resizable.scrolling.content {
|
|
486
|
+
resize: @resizableDirection;
|
|
487
|
+
max-height: none;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
484
490
|
}
|
|
485
491
|
|
|
486
492
|
& when (@variationModalOverlay) {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
if (settings.displayTime > 0) {
|
|
91
|
-
setTimeout(module.hide, settings.displayTime);
|
|
91
|
+
setTimeout(function () { module.hide(); }, settings.displayTime);
|
|
92
92
|
}
|
|
93
93
|
module.show();
|
|
94
94
|
},
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
379
|
clearTimeout(module.performance.timer);
|
|
380
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
380
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
381
381
|
},
|
|
382
382
|
display: function () {
|
|
383
383
|
var
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
;
|
|
195
195
|
clearTimeout(module.hideTimer);
|
|
196
196
|
if (!openedWithTouch || (openedWithTouch && settings.addTouchEvents)) {
|
|
197
|
-
module.showTimer = setTimeout(module.show, delay);
|
|
197
|
+
module.showTimer = setTimeout(function () { module.show(); }, delay);
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
end: function () {
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
: settings.delay
|
|
205
205
|
;
|
|
206
206
|
clearTimeout(module.showTimer);
|
|
207
|
-
module.hideTimer = setTimeout(module.hide, delay);
|
|
207
|
+
module.hideTimer = setTimeout(function () { module.hide(); }, delay);
|
|
208
208
|
},
|
|
209
209
|
touchstart: function (event) {
|
|
210
210
|
openedWithTouch = true;
|
|
@@ -248,9 +248,11 @@
|
|
|
248
248
|
// generates popup html from metadata
|
|
249
249
|
create: function () {
|
|
250
250
|
var
|
|
251
|
+
targetSibling = $target.next(selector.popup),
|
|
252
|
+
contentFallback = !settings.popup && targetSibling.length === 0 ? $module.attr('title') : false,
|
|
251
253
|
html = module.get.html(),
|
|
252
254
|
title = module.get.title(),
|
|
253
|
-
content = module.get.content()
|
|
255
|
+
content = module.get.content(contentFallback)
|
|
254
256
|
;
|
|
255
257
|
|
|
256
258
|
if (html || content || title) {
|
|
@@ -291,10 +293,10 @@
|
|
|
291
293
|
if (settings.hoverable) {
|
|
292
294
|
module.bind.popup();
|
|
293
295
|
}
|
|
294
|
-
} else if (
|
|
296
|
+
} else if (targetSibling.length > 0) {
|
|
295
297
|
module.verbose('Pre-existing popup found');
|
|
296
298
|
settings.inline = true;
|
|
297
|
-
settings.popup =
|
|
299
|
+
settings.popup = targetSibling.data(metadata.activator, $module);
|
|
298
300
|
module.refresh();
|
|
299
301
|
if (settings.hoverable) {
|
|
300
302
|
module.bind.popup();
|
|
@@ -484,10 +486,10 @@
|
|
|
484
486
|
|
|
485
487
|
return $module.data(metadata.title) || settings.title;
|
|
486
488
|
},
|
|
487
|
-
content: function () {
|
|
489
|
+
content: function (fallback) {
|
|
488
490
|
$module.removeData(metadata.content);
|
|
489
491
|
|
|
490
|
-
return $module.data(metadata.content) || settings.content ||
|
|
492
|
+
return $module.data(metadata.content) || settings.content || fallback;
|
|
491
493
|
},
|
|
492
494
|
variation: function () {
|
|
493
495
|
$module.removeData(metadata.variation);
|
|
@@ -1242,7 +1244,7 @@
|
|
|
1242
1244
|
});
|
|
1243
1245
|
}
|
|
1244
1246
|
clearTimeout(module.performance.timer);
|
|
1245
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
1247
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
1246
1248
|
},
|
|
1247
1249
|
display: function () {
|
|
1248
1250
|
var
|
|
@@ -117,7 +117,6 @@
|
|
|
117
117
|
[data-tooltip]::before,
|
|
118
118
|
[data-tooltip]::after {
|
|
119
119
|
pointer-events: none;
|
|
120
|
-
visibility: hidden;
|
|
121
120
|
opacity: 0;
|
|
122
121
|
transition:
|
|
123
122
|
transform @tooltipDuration @tooltipEasing,
|
|
@@ -138,9 +137,10 @@
|
|
|
138
137
|
[data-tooltip]::after {
|
|
139
138
|
transform-origin: center bottom;
|
|
140
139
|
}
|
|
140
|
+
[data-tooltip][data-variation~="visible"]::before,
|
|
141
|
+
[data-tooltip][data-variation~="visible"]::after,
|
|
141
142
|
[data-tooltip]:hover::before,
|
|
142
143
|
[data-tooltip]:hover::after {
|
|
143
|
-
visibility: visible;
|
|
144
144
|
pointer-events: auto;
|
|
145
145
|
opacity: 1;
|
|
146
146
|
}
|
|
@@ -833,8 +833,8 @@
|
|
|
833
833
|
@color: @value;
|
|
834
834
|
@c: @colors[@@color][color];
|
|
835
835
|
@l: @colors[@@color][light];
|
|
836
|
-
@cl: lighten(@c, @loadingColoredPercent);
|
|
837
|
-
@ll: darken(@l, @loadingColoredPercent);
|
|
836
|
+
@cl: if(iscolor(@c), lighten(@c, @loadingColoredPercent), @c);
|
|
837
|
+
@ll: if(iscolor(@l), darken(@l, @loadingColoredPercent), @l);
|
|
838
838
|
|
|
839
839
|
& when not (@variationPopupTooltip) {
|
|
840
840
|
.ui.ui.ui.@{color}.popup::before,
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
});
|
|
792
792
|
}
|
|
793
793
|
clearTimeout(module.performance.timer);
|
|
794
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
794
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
795
795
|
},
|
|
796
796
|
display: function () {
|
|
797
797
|
var
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
clearTimeout(module.performance.timer);
|
|
371
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
371
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
372
372
|
},
|
|
373
373
|
display: function () {
|
|
374
374
|
var
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
callback = function () {
|
|
170
170
|
module.cancel.query();
|
|
171
171
|
module.remove.focus();
|
|
172
|
-
module.timer = setTimeout(module.hideResults, settings.hideDelay);
|
|
172
|
+
module.timer = setTimeout(function () { module.hideResults(); }, settings.hideDelay);
|
|
173
173
|
}
|
|
174
174
|
;
|
|
175
175
|
if (pageLostFocus) {
|
|
@@ -561,6 +561,7 @@
|
|
|
561
561
|
if (cache) {
|
|
562
562
|
module.debug('Reading result from cache', searchTerm);
|
|
563
563
|
module.save.results(cache.results);
|
|
564
|
+
settings.onResults.call(element, cache.results, true);
|
|
564
565
|
module.addResults(cache.html);
|
|
565
566
|
module.inject.id(cache.results);
|
|
566
567
|
callback();
|
|
@@ -1170,7 +1171,7 @@
|
|
|
1170
1171
|
});
|
|
1171
1172
|
}
|
|
1172
1173
|
clearTimeout(module.performance.timer);
|
|
1173
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
1174
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
1174
1175
|
},
|
|
1175
1176
|
display: function () {
|
|
1176
1177
|
var
|
|
@@ -1345,7 +1346,7 @@
|
|
|
1345
1346
|
onResultsAdd: false,
|
|
1346
1347
|
|
|
1347
1348
|
onSearchQuery: function (query) {},
|
|
1348
|
-
onResults: function (response) {},
|
|
1349
|
+
onResults: function (response, fromCache) {},
|
|
1349
1350
|
|
|
1350
1351
|
onResultsOpen: function () {},
|
|
1351
1352
|
onResultsClose: function () {},
|
|
@@ -367,6 +367,19 @@
|
|
|
367
367
|
transition: @categoryResultTransition;
|
|
368
368
|
padding: @categoryResultPadding;
|
|
369
369
|
}
|
|
370
|
+
|
|
371
|
+
& when (@variationSearchHorizontalCategory) {
|
|
372
|
+
.ui.horizontal.category.search > .results .category,
|
|
373
|
+
.ui.horizontal.category.search > .results .category > .name,
|
|
374
|
+
.ui.horizontal.category.search > .results .category > .results {
|
|
375
|
+
display: block;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ui.horizontal.category.search > .results .category > .results {
|
|
379
|
+
width: 100%;
|
|
380
|
+
border-left: 0;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
370
383
|
}
|
|
371
384
|
|
|
372
385
|
/*******************************
|
|
@@ -394,21 +407,39 @@
|
|
|
394
407
|
@media only screen and (max-width: @largestMobileScreen) {
|
|
395
408
|
.ui.scrolling.search > .results {
|
|
396
409
|
max-height: @scrollingMobileMaxResultsHeight;
|
|
410
|
+
.resizable& when (@variationSearchResizable) {
|
|
411
|
+
height: @scrollingMobileMaxResultsHeight;
|
|
412
|
+
}
|
|
397
413
|
}
|
|
398
414
|
}
|
|
399
415
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
400
416
|
.ui.scrolling.search > .results {
|
|
401
417
|
max-height: @scrollingTabletMaxResultsHeight;
|
|
418
|
+
.resizable& when (@variationSearchResizable) {
|
|
419
|
+
height: @scrollingTabletMaxResultsHeight;
|
|
420
|
+
}
|
|
402
421
|
}
|
|
403
422
|
}
|
|
404
423
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
405
424
|
.ui.scrolling.search > .results {
|
|
406
425
|
max-height: @scrollingComputerMaxResultsHeight;
|
|
426
|
+
.resizable& when (@variationSearchResizable) {
|
|
427
|
+
height: @scrollingComputerMaxResultsHeight;
|
|
428
|
+
}
|
|
407
429
|
}
|
|
408
430
|
}
|
|
409
431
|
@media only screen and (min-width: @widescreenMonitorBreakpoint) {
|
|
410
432
|
.ui.scrolling.search > .results {
|
|
411
433
|
max-height: @scrollingWidescreenMaxResultsHeight;
|
|
434
|
+
.resizable& when (@variationSearchResizable) {
|
|
435
|
+
height: @scrollingWidescreenMaxResultsHeight;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
& when (@variationSearchResizable) {
|
|
440
|
+
.ui.scrolling.resizable.search > .results {
|
|
441
|
+
resize: @resizableDirection;
|
|
442
|
+
max-height: none;
|
|
412
443
|
}
|
|
413
444
|
}
|
|
414
445
|
}
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
clearTimeout(module.performance.timer);
|
|
626
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
626
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
627
627
|
},
|
|
628
628
|
display: function () {
|
|
629
629
|
var
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
.off(eventNamespace)
|
|
130
130
|
.removeData(moduleNamespace)
|
|
131
131
|
;
|
|
132
|
-
if (module.is.ios()) {
|
|
133
|
-
module.remove.ios();
|
|
134
|
-
}
|
|
135
132
|
// bound by uuid
|
|
136
133
|
$context.off(elementNamespace);
|
|
137
134
|
$window.off(elementNamespace);
|
|
@@ -595,11 +592,6 @@
|
|
|
595
592
|
$pusher.removeClass(className.blurring);
|
|
596
593
|
}
|
|
597
594
|
},
|
|
598
|
-
// ios only (scroll on html not document). This prevent auto-resize canvas/scroll in ios
|
|
599
|
-
// (This is no longer necessary in latest iOS)
|
|
600
|
-
ios: function () {
|
|
601
|
-
$html.addClass(className.ios);
|
|
602
|
-
},
|
|
603
595
|
|
|
604
596
|
// container
|
|
605
597
|
pushed: function () {
|
|
@@ -648,11 +640,6 @@
|
|
|
648
640
|
}
|
|
649
641
|
},
|
|
650
642
|
|
|
651
|
-
// ios scroll on html not document
|
|
652
|
-
ios: function () {
|
|
653
|
-
$html.removeClass(className.ios);
|
|
654
|
-
},
|
|
655
|
-
|
|
656
643
|
// context
|
|
657
644
|
pushed: function () {
|
|
658
645
|
$context.removeClass(className.pushed);
|
|
@@ -772,20 +759,6 @@
|
|
|
772
759
|
return module.cache.isIE;
|
|
773
760
|
},
|
|
774
761
|
|
|
775
|
-
ios: function () {
|
|
776
|
-
var
|
|
777
|
-
userAgent = navigator.userAgent,
|
|
778
|
-
isIOS = userAgent.match(regExp.ios),
|
|
779
|
-
isMobileChrome = userAgent.match(regExp.mobileChrome)
|
|
780
|
-
;
|
|
781
|
-
if (isIOS && !isMobileChrome) {
|
|
782
|
-
module.verbose('Browser was found to be iOS', userAgent);
|
|
783
|
-
|
|
784
|
-
return true;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
return false;
|
|
788
|
-
},
|
|
789
762
|
mobile: function () {
|
|
790
763
|
var
|
|
791
764
|
userAgent = navigator.userAgent,
|
|
@@ -898,7 +871,7 @@
|
|
|
898
871
|
});
|
|
899
872
|
}
|
|
900
873
|
clearTimeout(module.performance.timer);
|
|
901
|
-
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
874
|
+
module.performance.timer = setTimeout(function () { module.performance.display(); }, 500);
|
|
902
875
|
},
|
|
903
876
|
display: function () {
|
|
904
877
|
var
|
|
@@ -1045,7 +1018,6 @@
|
|
|
1045
1018
|
blurring: 'blurring',
|
|
1046
1019
|
closing: 'closing',
|
|
1047
1020
|
dimmed: 'dimmed',
|
|
1048
|
-
ios: 'ios',
|
|
1049
1021
|
locked: 'locked',
|
|
1050
1022
|
pushable: 'pushable',
|
|
1051
1023
|
pushed: 'pushed',
|
|
@@ -1065,8 +1037,6 @@
|
|
|
1065
1037
|
},
|
|
1066
1038
|
|
|
1067
1039
|
regExp: {
|
|
1068
|
-
ios: /(iPad|iPhone|iPod)/g,
|
|
1069
|
-
mobileChrome: /(CriOS)/g,
|
|
1070
1040
|
mobile: /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g,
|
|
1071
1041
|
},
|
|
1072
1042
|
|