fomantic-ui 2.9.0-beta.289 → 2.9.0-beta.291
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/.github/codeql/codeql-config.yml +4 -0
- package/.github/workflows/codeql.yml +68 -0
- package/dist/components/accordion.css +2 -2
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/components/calendar.js +2 -2
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +2 -2
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- 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 +2 -2
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- 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 +3 -3
- 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 +1 -1
- 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/form.css +3 -3
- package/dist/components/form.js +2 -2
- 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 +2 -2
- package/dist/components/header.min.css +2 -2
- 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 +2 -2
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +2 -2
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +2 -2
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -1
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/popup.js +10 -10
- 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 +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +4 -4
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +2 -2
- 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 +1 -1
- 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 +3 -3
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +75 -4
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +2 -2
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +3 -3
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +2 -2
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +4 -4
- 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 +2 -2
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +511 -241
- 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 +3 -3
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +2 -2
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +661 -312
- package/dist/semantic.js +52 -52
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/dist/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/dist/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/package.json +1 -1
- package/src/definitions/behaviors/api.js +1 -1
- package/src/definitions/behaviors/form.js +1 -1
- package/src/definitions/behaviors/state.js +1 -1
- package/src/definitions/behaviors/visibility.js +1 -1
- package/src/definitions/collections/table.less +26 -8
- package/src/definitions/modules/calendar.js +1 -1
- package/src/definitions/modules/dropdown.js +2 -2
- package/src/definitions/modules/modal.js +2 -2
- package/src/definitions/modules/nag.js +1 -1
- package/src/definitions/modules/popup.js +9 -9
- package/src/definitions/modules/sidebar.js +2 -2
- package/src/definitions/modules/sticky.js +3 -3
- package/src/definitions/modules/tab.js +1 -1
- package/src/definitions/modules/toast.js +2 -2
- package/src/theme.less +13 -2
- package/src/themes/amazon/globals/site.variables +1 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/src/themes/default/globals/site.variables +99 -4
- package/src/themes/github/globals/site.variables +1 -0
- package/src/themes/systemfont/globals/reset.overrides +8 -0
- package/src/themes/systemfont/globals/site.variables +10 -0
- package/tasks/build/css.js +2 -2
- package/tasks/build/javascript.js +2 -2
- package/test/helpers/jasmine-jquery.js +1 -1
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -65,7 +65,7 @@ $.api = $.fn.api = function(parameters) {
|
|
65
65
|
|
66
66
|
// context used for state
|
67
67
|
$context = (settings.stateContext)
|
68
|
-
? $(settings.stateContext)
|
68
|
+
? ([window,document].indexOf(settings.stateContext) < 0 ? $(document).find(settings.stateContext) : $(settings.stateContext))
|
69
69
|
: $module,
|
70
70
|
|
71
71
|
// request details
|
@@ -1217,7 +1217,7 @@ $.fn.form = function(parameters) {
|
|
1217
1217
|
if(settings.errorFocus && ignoreCallbacks !== true) {
|
1218
1218
|
var focusElement, hasTabIndex = true;
|
1219
1219
|
if (typeof settings.errorFocus === 'string') {
|
1220
|
-
focusElement = $(settings.errorFocus);
|
1220
|
+
focusElement = $(document).find(settings.errorFocus);
|
1221
1221
|
hasTabIndex = focusElement.is('[tabindex]');
|
1222
1222
|
// to be able to focus/scroll into non input elements we need a tabindex
|
1223
1223
|
if (!hasTabIndex) {
|
@@ -74,7 +74,7 @@ $.fn.state = function(parameters) {
|
|
74
74
|
|
75
75
|
// bind events with delegated events
|
76
76
|
if(settings.context && moduleSelector !== '') {
|
77
|
-
$(settings.context)
|
77
|
+
([window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
78
78
|
.on(moduleSelector, 'mouseenter' + eventNamespace, module.change.text)
|
79
79
|
.on(moduleSelector, 'mouseleave' + eventNamespace, module.reset.text)
|
80
80
|
.on(moduleSelector, 'click' + eventNamespace, module.toggle.state)
|
@@ -58,7 +58,7 @@ $.fn.visibility = function(parameters) {
|
|
58
58
|
$window = $(window),
|
59
59
|
|
60
60
|
$module = $(this),
|
61
|
-
$context = $(settings.context),
|
61
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
62
62
|
|
63
63
|
$placeholder,
|
64
64
|
|
@@ -243,7 +243,7 @@
|
|
243
243
|
@color: @value;
|
244
244
|
@c: @colors[@@color][color];
|
245
245
|
@l: @colors[@@color][light];
|
246
|
-
.ui.ui.ui.ui.table:not(.unstackable) tr
|
246
|
+
.ui.ui.ui.ui.table:not(.unstackable) tr[class*="@{color} marked"] {
|
247
247
|
&.left {
|
248
248
|
box-shadow: @responsiveRowBoxShadow, @coloredBorderSize 0 0 0 @c inset;
|
249
249
|
}
|
@@ -252,7 +252,7 @@
|
|
252
252
|
}
|
253
253
|
}
|
254
254
|
& when (@variationTableInverted) {
|
255
|
-
.ui.ui.ui.ui.inverted.table:not(.unstackable) tr
|
255
|
+
.ui.ui.ui.ui.inverted.table:not(.unstackable) tr[class*="@{color} marked"] {
|
256
256
|
&.left {
|
257
257
|
box-shadow: @responsiveRowBoxShadow, @coloredBorderSize 0 0 0 @l inset;
|
258
258
|
}
|
@@ -872,7 +872,7 @@
|
|
872
872
|
@color: @value;
|
873
873
|
@c: @colors[@@color][color];
|
874
874
|
@l: @colors[@@color][light];
|
875
|
-
.ui.ui.ui.ui[class*="tablet stackable"].table tr
|
875
|
+
.ui.ui.ui.ui[class*="tablet stackable"].table tr[class*="@{color} marked"] {
|
876
876
|
&.left {
|
877
877
|
box-shadow: @responsiveRowBoxShadow, @coloredBorderSize 0 0 0 @c inset;
|
878
878
|
}
|
@@ -881,7 +881,7 @@
|
|
881
881
|
}
|
882
882
|
}
|
883
883
|
& when (@variationTableInverted) {
|
884
|
-
.ui.ui.ui.ui[class*="tablet stackable"].inverted.table tr
|
884
|
+
.ui.ui.ui.ui[class*="tablet stackable"].inverted.table tr[class*="@{color} marked"] {
|
885
885
|
&.left {
|
886
886
|
box-shadow: @responsiveRowBoxShadow, @coloredBorderSize 0 0 0 @l inset;
|
887
887
|
}
|
@@ -1180,6 +1180,9 @@
|
|
1180
1180
|
}
|
1181
1181
|
}
|
1182
1182
|
}
|
1183
|
+
.ui.ui.ui.ui.table tr[class*="@{color} colored"],
|
1184
|
+
.ui.ui.table th[class*="@{color} colored"],
|
1185
|
+
.ui.ui.table td[class*="@{color} colored"],
|
1183
1186
|
.ui.ui.ui.ui.table tr.@{color}:not(.marked),
|
1184
1187
|
.ui.ui.table th.@{color}:not(.marked),
|
1185
1188
|
.ui.ui.table td.@{color}:not(.marked) {
|
@@ -1199,6 +1202,9 @@
|
|
1199
1202
|
color: @t;
|
1200
1203
|
}
|
1201
1204
|
}
|
1205
|
+
.ui.table > thead > tr[class*="@{color} colored"] > th,
|
1206
|
+
.ui.table > tfoot > tr[class*="@{color} colored"] > th,
|
1207
|
+
.ui.table > tfoot > tr[class*="@{color} colored"] > td,
|
1202
1208
|
.ui.table > thead > tr.@{color}:not(.marked) > th,
|
1203
1209
|
.ui.table > tfoot > tr.@{color}:not(.marked) > th,
|
1204
1210
|
.ui.table > tfoot > tr.@{color}:not(.marked) > td {
|
@@ -1212,12 +1218,18 @@
|
|
1212
1218
|
}
|
1213
1219
|
|
1214
1220
|
& when (@variationTableInverted) {
|
1221
|
+
.ui.ui.ui.ui.inverted.table tr[class*="@{color} colored"],
|
1222
|
+
.ui.ui.inverted.table th[class*="@{color} colored"],
|
1223
|
+
.ui.ui.inverted.table td[class*="@{color} colored"],
|
1215
1224
|
.ui.ui.ui.ui.inverted.table tr.@{color}:not(.marked),
|
1216
1225
|
.ui.ui.inverted.table th.@{color}:not(.marked),
|
1217
1226
|
.ui.ui.inverted.table td.@{color}:not(.marked) {
|
1218
1227
|
background: @c;
|
1219
1228
|
color: @white;
|
1220
1229
|
}
|
1230
|
+
.ui.inverted.table > thead > tr[class*="@{color} colored"] > th,
|
1231
|
+
.ui.inverted.table > tfoot > tr[class*="@{color} colored"] > th,
|
1232
|
+
.ui.inverted.table > tfoot > tr[class*="@{color} colored"] > td,
|
1221
1233
|
.ui.inverted.table > thead > tr.@{color}:not(.marked) > th,
|
1222
1234
|
.ui.inverted.table > tfoot > tr.@{color}:not(.marked) > th,
|
1223
1235
|
.ui.inverted.table > tfoot > tr.@{color}:not(.marked) > td {
|
@@ -1226,6 +1238,9 @@
|
|
1226
1238
|
}
|
1227
1239
|
}
|
1228
1240
|
& when (@variationTableSelectable) {
|
1241
|
+
.ui.ui.selectable.table tr[class*="@{color} colored"]:hover,
|
1242
|
+
.ui.table tr td.selectable[class*="@{color} colored"]:hover,
|
1243
|
+
.ui.selectable.table tr:hover td[class*="@{color} colored"],
|
1229
1244
|
.ui.ui.selectable.table tr.@{color}:not(.marked):hover,
|
1230
1245
|
.ui.table tr td.selectable.@{color}:not(.marked):hover,
|
1231
1246
|
.ui.selectable.table tr:hover td.@{color}:not(.marked) {
|
@@ -1243,6 +1258,9 @@
|
|
1243
1258
|
}
|
1244
1259
|
}
|
1245
1260
|
& when (@variationTableInverted) {
|
1261
|
+
.ui.ui.inverted.selectable.table tr[class*="@{color} colored"]:hover,
|
1262
|
+
.ui.inverted.table tr td.selectable[class*="@{color} colored"]:hover,
|
1263
|
+
.ui.inverted.selectable.table tr:hover td[class*="@{color} colored"],
|
1246
1264
|
.ui.ui.inverted.selectable.table tr.@{color}:not(.marked):hover,
|
1247
1265
|
.ui.inverted.table tr td.selectable.@{color}:not(.marked):hover,
|
1248
1266
|
.ui.inverted.selectable.table tr:hover td.@{color}:not(.marked) {
|
@@ -1262,8 +1280,8 @@
|
|
1262
1280
|
}
|
1263
1281
|
}
|
1264
1282
|
& when (@variationTableMarked) {
|
1265
|
-
.ui.table td
|
1266
|
-
.ui.table tr
|
1283
|
+
.ui.table td[class*="@{color} marked"],
|
1284
|
+
.ui.table tr[class*="@{color} marked"] {
|
1267
1285
|
&.left {
|
1268
1286
|
box-shadow: @coloredBorderSize 0 0 0 @c inset;
|
1269
1287
|
}
|
@@ -1272,8 +1290,8 @@
|
|
1272
1290
|
}
|
1273
1291
|
}
|
1274
1292
|
& when (@variationTableInverted) {
|
1275
|
-
.ui.inverted.table td
|
1276
|
-
.ui.inverted.table tr
|
1293
|
+
.ui.inverted.table td[class*="@{color} marked"],
|
1294
|
+
.ui.inverted.table tr[class*="@{color} marked"] {
|
1277
1295
|
&.left {
|
1278
1296
|
box-shadow: @coloredBorderSize 0 0 0 @l inset;
|
1279
1297
|
}
|
@@ -803,7 +803,7 @@ $.fn.calendar = function(parameters) {
|
|
803
803
|
return null;
|
804
804
|
}
|
805
805
|
if (!(selector instanceof $)) {
|
806
|
-
selector = $(selector).first();
|
806
|
+
selector = $(document).find(selector).first();
|
807
807
|
}
|
808
808
|
//assume range related calendars are using the same namespace
|
809
809
|
return selector.data(moduleNamespace);
|
@@ -61,7 +61,7 @@ $.fn.dropdown = function(parameters) {
|
|
61
61
|
moduleNamespace = 'module-' + namespace,
|
62
62
|
|
63
63
|
$module = $(this),
|
64
|
-
$context = $(settings.context),
|
64
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
65
65
|
$text = $module.find(selector.text),
|
66
66
|
$search = $module.find(selector.search),
|
67
67
|
$sizer = $module.find(selector.sizer),
|
@@ -2917,7 +2917,7 @@ $.fn.dropdown = function(parameters) {
|
|
2917
2917
|
$('<option/>')
|
2918
2918
|
.prop('value', escapedValue)
|
2919
2919
|
.addClass(className.addition)
|
2920
|
-
.
|
2920
|
+
.text(value)
|
2921
2921
|
.appendTo($input)
|
2922
2922
|
;
|
2923
2923
|
module.verbose('Adding user addition as an <option>', value);
|
@@ -65,7 +65,7 @@ $.fn.modal = function(parameters) {
|
|
65
65
|
moduleNamespace = 'module-' + namespace,
|
66
66
|
|
67
67
|
$module = $(this),
|
68
|
-
$context = $(settings.context),
|
68
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
69
69
|
$closeIcon = $module.find(selector.closeIcon),
|
70
70
|
$inputs,
|
71
71
|
|
@@ -124,7 +124,7 @@ $.fn.modal = function(parameters) {
|
|
124
124
|
click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {};
|
125
125
|
$actions.append($('<button/>', {
|
126
126
|
html: icon + text,
|
127
|
-
'aria-label':
|
127
|
+
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
128
128
|
class: className.button + ' ' + cls,
|
129
129
|
click: function () {
|
130
130
|
var button = $(this);
|
@@ -53,7 +53,7 @@ $.fn.nag = function(parameters) {
|
|
53
53
|
$module = $(this),
|
54
54
|
|
55
55
|
$context = (settings.context)
|
56
|
-
? $(settings.context)
|
56
|
+
? ([window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
57
57
|
: $('body'),
|
58
58
|
|
59
59
|
element = this,
|
@@ -62,11 +62,11 @@ $.fn.popup = function(parameters) {
|
|
62
62
|
moduleNamespace = 'module-' + namespace,
|
63
63
|
|
64
64
|
$module = $(this),
|
65
|
-
$context = $(settings.context),
|
66
|
-
$scrollContext = $(settings.scrollContext),
|
67
|
-
$boundary = $(settings.boundary),
|
65
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
66
|
+
$scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $(document).find(settings.scrollContext) : $(settings.scrollContext),
|
67
|
+
$boundary = [window,document].indexOf(settings.boundary) < 0 ? $(document).find(settings.boundary) : $(settings.boundary),
|
68
68
|
$target = (settings.target)
|
69
|
-
? $(settings.target)
|
69
|
+
? ([window,document].indexOf(settings.target) < 0 ? $(document).find(settings.target) : $(settings.target))
|
70
70
|
: $module,
|
71
71
|
|
72
72
|
$popup,
|
@@ -121,8 +121,8 @@ $.fn.popup = function(parameters) {
|
|
121
121
|
},
|
122
122
|
|
123
123
|
refresh: function() {
|
124
|
-
if(settings.popup) {
|
125
|
-
$popup = $(settings.popup).eq(0);
|
124
|
+
if(settings.popup && typeof settings.popup === 'string') {
|
125
|
+
$popup = $(document).find(settings.popup).eq(0);
|
126
126
|
}
|
127
127
|
else {
|
128
128
|
if(settings.inline) {
|
@@ -286,8 +286,8 @@ $.fn.popup = function(parameters) {
|
|
286
286
|
}
|
287
287
|
settings.onCreate.call($popup, element);
|
288
288
|
}
|
289
|
-
else if(settings.popup) {
|
290
|
-
$(settings.popup).data(metadata.activator, $module);
|
289
|
+
else if(settings.popup && typeof settings.popup === 'string') {
|
290
|
+
$(document).find(settings.popup).data(metadata.activator, $module);
|
291
291
|
module.verbose('Used popup specified in settings');
|
292
292
|
module.refresh();
|
293
293
|
if(settings.hoverable) {
|
@@ -368,7 +368,7 @@ $.fn.popup = function(parameters) {
|
|
368
368
|
},
|
369
369
|
|
370
370
|
hideAll: function() {
|
371
|
-
$(selector.popup)
|
371
|
+
$(document).find(selector.popup)
|
372
372
|
.filter('.' + className.popupVisible)
|
373
373
|
.each(function() {
|
374
374
|
$(this)
|
@@ -66,7 +66,7 @@ $.fn.sidebar = function(parameters) {
|
|
66
66
|
moduleNamespace = 'module-' + namespace,
|
67
67
|
|
68
68
|
$module = $(this),
|
69
|
-
$context = $(settings.context),
|
69
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context),
|
70
70
|
|
71
71
|
$sidebars = $module.children(selector.sidebar),
|
72
72
|
$fixed = $context.children(selector.fixed),
|
@@ -294,7 +294,7 @@ $.fn.sidebar = function(parameters) {
|
|
294
294
|
|
295
295
|
refresh: function() {
|
296
296
|
module.verbose('Refreshing selector cache');
|
297
|
-
$context = $(settings.context);
|
297
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context);
|
298
298
|
$sidebars = $context.children(selector.sidebar);
|
299
299
|
$pusher = $context.children(selector.pusher);
|
300
300
|
$fixed = $context.children(selector.fixed);
|
@@ -53,7 +53,7 @@ $.fn.sticky = function(parameters) {
|
|
53
53
|
|
54
54
|
$module = $(this),
|
55
55
|
$window = $(window),
|
56
|
-
$scroll = $(settings.scrollContext),
|
56
|
+
$scroll = [window,document].indexOf(settings.scrollContext) < 0 ? $(document).find(settings.scrollContext) : $(settings.scrollContext),
|
57
57
|
$container,
|
58
58
|
$context,
|
59
59
|
|
@@ -139,7 +139,7 @@ $.fn.sticky = function(parameters) {
|
|
139
139
|
|
140
140
|
determineContainer: function() {
|
141
141
|
if(settings.container) {
|
142
|
-
$container = $(settings.container);
|
142
|
+
$container = [window,document].indexOf(settings.container) < 0 ? $(document).find(settings.container) : $(settings.container);
|
143
143
|
}
|
144
144
|
else {
|
145
145
|
$container = $module.offsetParent();
|
@@ -148,7 +148,7 @@ $.fn.sticky = function(parameters) {
|
|
148
148
|
|
149
149
|
determineContext: function() {
|
150
150
|
if(settings.context) {
|
151
|
-
$context = $(settings.context);
|
151
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context);
|
152
152
|
}
|
153
153
|
else {
|
154
154
|
$context = $container;
|
@@ -162,7 +162,7 @@ $.fn.tab = function(parameters) {
|
|
162
162
|
module.verbose('Determined parent element for creating context', $context);
|
163
163
|
}
|
164
164
|
else if(settings.context) {
|
165
|
-
$context = $(settings.context);
|
165
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context);
|
166
166
|
module.verbose('Using selector for tab context', settings.context, $context);
|
167
167
|
}
|
168
168
|
else {
|
@@ -61,7 +61,7 @@ $.fn.toast = function(parameters) {
|
|
61
61
|
$animationObject,
|
62
62
|
$close,
|
63
63
|
$context = (settings.context)
|
64
|
-
? $(settings.context)
|
64
|
+
? ([window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
|
65
65
|
: $('body'),
|
66
66
|
|
67
67
|
isToastComponent = $module.hasClass('toast') || $module.hasClass('message') || $module.hasClass('card'),
|
@@ -246,7 +246,7 @@ $.fn.toast = function(parameters) {
|
|
246
246
|
click = el[fields.click] && $.isFunction(el[fields.click]) ? el[fields.click] : function () {};
|
247
247
|
$actions.append($('<button/>', {
|
248
248
|
html: icon + text,
|
249
|
-
'aria-label':
|
249
|
+
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
250
250
|
class: className.button + ' ' + cls,
|
251
251
|
click: function () {
|
252
252
|
var button = $(this);
|
package/src/theme.less
CHANGED
@@ -60,8 +60,19 @@
|
|
60
60
|
Fonts
|
61
61
|
-------------------*/
|
62
62
|
|
63
|
-
.loadFonts()
|
64
|
-
|
63
|
+
.loadFonts() {
|
64
|
+
& when (@importGoogleFonts) {
|
65
|
+
@import (css) url('@{googleProtocol}fonts.googleapis.com/css2?family=@{googleFontRequest}');
|
66
|
+
}
|
67
|
+
& when (@importFonts) and not (@fontName = ''){
|
68
|
+
each(@fonts, {
|
69
|
+
@font-face {
|
70
|
+
each(@value,{
|
71
|
+
@{key}: @value;
|
72
|
+
});
|
73
|
+
}
|
74
|
+
})
|
75
|
+
}
|
65
76
|
}
|
66
77
|
|
67
78
|
/*------------------
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,18 +3,113 @@
|
|
3
3
|
*******************************/
|
4
4
|
|
5
5
|
@import "variation.variables";
|
6
|
+
@supportIE: true;
|
6
7
|
|
7
8
|
/*-------------------
|
8
9
|
Fonts
|
9
10
|
--------------------*/
|
10
11
|
|
11
12
|
@fontName : 'Lato';
|
12
|
-
|
13
|
-
@
|
14
|
-
|
13
|
+
@fontFileNameLatin : 'LatoLatin';
|
14
|
+
@fontFileNameSupplement: 'Lato';
|
15
|
+
|
16
|
+
// based on https://github.com/twbs/bootstrap/blob/v5.1.3/scss/_variables.scss#L577 list
|
17
|
+
@fallbackFonts : system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
18
|
+
|
19
|
+
@headerFont : @fontName, @fallbackFonts;
|
20
|
+
@pageFont : @fontName, @fallbackFonts;
|
21
|
+
|
22
|
+
@fontDisplay : swap;
|
23
|
+
@textRendering : optimizeLegibility;
|
24
|
+
@unicodeRangeLatin : U+0000, U+000D, U+0020-007E, U+00A0-017F, U+0192, U+0218-021B, U+0237, U+02C6-02C7, U+02C9, U+02D8-02DD, U+0394, U+03A9, U+03BC, U+03C0, U+1E80-1E85, U+2010, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20A3-20A4, U+20A7, U+20AC, U+2113, U+2122, U+2126, U+212E, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+F8FF, U+FB00-FB04;
|
25
|
+
@unicodeRangeSupplement : U+0180-0191, U+0193-0217, U+021C-0236, U+0238-02C5, U+02C8, U+02CA-02D7, U+02DE-036F, U+0374-0375, U+037A-037E, U+0384-038A, U+038C, U+038E-0393, U+0395-03A1, U+03A3-03A8, U+03AA-03BB, U+03BD-03BF, U+03C1-03CE, U+03D0-0486, U+0488-0513, U+1D00-1DCA, U+1DFE-1E7F, U+1E86-1E9B, U+1E9E, U+1EA0-1EF9, U+1F00-1F15, U+1F18-1F1D, U+1F20-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F7D, U+1F80-1FB4, U+1FB6-1FC4, U+1FC6-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+2000-200F, U+2012, U+2015-2017, U+201B, U+201F, U+202F, U+2034, U+203C-203E, U+205E-205F, U+2070-2071, U+2074-2094, U+20A0-20A2, U+20A5-20A6, U+20A8-20AB, U+20AD-20B5, U+20B8-20BA, U+20DD, U+2105, U+2116-2117, U+2120, U+2132, U+214D-214E, U+2153-215F, U+2183-2184, U+2190-2199, U+21A8, U+221F, U+2229, U+2261, U+2302, U+2310, U+2320-2321, U+2460-2473, U+24EA-24F4, U+24FF-2500, U+2502, U+250C, U+2510, U+2514, U+2518, U+2C60-2C6C, U+2C74-2C77;
|
26
|
+
|
27
|
+
@importFonts : true;
|
28
|
+
@fonts: {
|
29
|
+
@regularLatin: {
|
30
|
+
font-family: @fontName;
|
31
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Regular.woff2") format('woff2')
|
32
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameLatin}-Regular.woff") format('woff'));
|
33
|
+
font-style : normal;
|
34
|
+
font-weight : @normal;
|
35
|
+
font-display : @fontDisplay;
|
36
|
+
text-rendering : @textRendering;
|
37
|
+
unicode-range : @unicodeRangeLatin;
|
38
|
+
};
|
39
|
+
@boldLatin: {
|
40
|
+
font-family: @fontName;
|
41
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Bold.woff2") format('woff2')
|
42
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameLatin}-Bold.woff") format('woff'));
|
43
|
+
font-style : normal;
|
44
|
+
font-weight : @bold;
|
45
|
+
font-display : @fontDisplay;
|
46
|
+
text-rendering : @textRendering;
|
47
|
+
unicode-range : @unicodeRangeLatin;
|
48
|
+
};
|
49
|
+
@italicLatin: {
|
50
|
+
font-family: @fontName;
|
51
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-Italic.woff2") format('woff2')
|
52
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameLatin}-Italic.woff") format('woff'));
|
53
|
+
font-style : italic;
|
54
|
+
font-weight : @normal;
|
55
|
+
font-display : @fontDisplay;
|
56
|
+
text-rendering : @textRendering;
|
57
|
+
unicode-range : @unicodeRangeLatin;
|
58
|
+
};
|
59
|
+
@boldItalicLatin: {
|
60
|
+
font-family: @fontName;
|
61
|
+
src: url("@{fontPath}/@{fontFileNameLatin}-BoldItalic.woff2") format('woff2')
|
62
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameLatin}-BoldItalic.woff") format('woff'));
|
63
|
+
font-style : italic;
|
64
|
+
font-weight : @bold;
|
65
|
+
font-display : @fontDisplay;
|
66
|
+
text-rendering : @textRendering;
|
67
|
+
unicode-range : @unicodeRangeLatin;
|
68
|
+
};
|
69
|
+
@regularSupplement: {
|
70
|
+
font-family: @fontName;
|
71
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Regular.woff2") format('woff2')
|
72
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameSupplement}-Regular.woff") format('woff'));
|
73
|
+
font-style : normal;
|
74
|
+
font-weight : @normal;
|
75
|
+
font-display : @fontDisplay;
|
76
|
+
text-rendering : @textRendering;
|
77
|
+
unicode-range : @unicodeRangeSupplement;
|
78
|
+
};
|
79
|
+
@boldSupplement: {
|
80
|
+
font-family: @fontName;
|
81
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Bold.woff2") format('woff2')
|
82
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameSupplement}-Bold.woff") format('woff'));
|
83
|
+
font-style : normal;
|
84
|
+
font-weight : @bold;
|
85
|
+
font-display : @fontDisplay;
|
86
|
+
text-rendering : @textRendering;
|
87
|
+
unicode-range : @unicodeRangeSupplement;
|
88
|
+
};
|
89
|
+
@italicSupplement: {
|
90
|
+
font-family: @fontName;
|
91
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-Italic.woff2") format('woff2')
|
92
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameSupplement}-Italic.woff") format('woff'));
|
93
|
+
font-style : italic;
|
94
|
+
font-weight : @normal;
|
95
|
+
font-display : @fontDisplay;
|
96
|
+
text-rendering : @textRendering;
|
97
|
+
unicode-range : @unicodeRangeSupplement;
|
98
|
+
};
|
99
|
+
@boldItalicSupplement: {
|
100
|
+
font-family: @fontName;
|
101
|
+
src: url("@{fontPath}/@{fontFileNameSupplement}-BoldItalic.woff2") format('woff2')
|
102
|
+
if(@supportIE, e(',') url("@{fontPath}/@{fontFileNameSupplement}-BoldItalic.woff") format('woff'));
|
103
|
+
font-style : italic;
|
104
|
+
font-weight : @bold;
|
105
|
+
font-display : @fontDisplay;
|
106
|
+
text-rendering : @textRendering;
|
107
|
+
unicode-range : @unicodeRangeSupplement;
|
108
|
+
};
|
109
|
+
};
|
15
110
|
|
16
111
|
@googleFontName : @fontName;
|
17
|
-
@importGoogleFonts :
|
112
|
+
@importGoogleFonts : false;
|
18
113
|
@googleFontSizes : 'ital,wght@0,400%3B0,700%3B1,400%3B1,700';
|
19
114
|
@googleSubset : 'latin';
|
20
115
|
@googleFontDisplay : 'swap';
|
package/tasks/build/css.js
CHANGED
@@ -133,8 +133,8 @@ function buildCSS(src, type, config, opts, callback) {
|
|
133
133
|
}
|
134
134
|
|
135
135
|
if (globs.individuals !== undefined && typeof src === 'string') {
|
136
|
-
const individuals = config.globs.individuals.replace(
|
137
|
-
const components = config.globs.components.replace(
|
136
|
+
const individuals = config.globs.individuals.replace(/\{/g,'');
|
137
|
+
const components = config.globs.components.replace(/\}/g,',').concat(individuals);
|
138
138
|
|
139
139
|
src = config.paths.source.definitions + '/**/' + components + '.less';
|
140
140
|
}
|
@@ -100,8 +100,8 @@ function buildJS(src, type, config, callback) {
|
|
100
100
|
}
|
101
101
|
|
102
102
|
if (globs.individuals !== undefined && typeof src === 'string') {
|
103
|
-
const individuals = config.globs.individuals.replace(
|
104
|
-
const components = config.globs.components.replace(
|
103
|
+
const individuals = config.globs.individuals.replace(/\{/g,'');
|
104
|
+
const components = config.globs.components.replace(/\}/g,',').concat(individuals);
|
105
105
|
|
106
106
|
src = config.paths.source.definitions + '/**/' + components + (config.globs.ignored || '') + '.js';
|
107
107
|
}
|