fomantic-ui 2.10.0-beta.1 → 2.10.0-beta.10
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 +9 -0
- package/.eslintrc.js +0 -10
- package/CONTRIBUTING.md +4 -1
- package/CONTRIBUTORS.md +1 -0
- package/FAQ.md +7 -2
- package/README.md +5 -9
- package/ROADMAP.md +4 -4
- package/SECURITY.md +8 -7
- package/changelog-setup.js +64 -70
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +103 -142
- 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 +157 -210
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -2
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -2
- package/dist/components/calendar.js +314 -352
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -2
- package/dist/components/checkbox.js +85 -135
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +2 -4
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +1 -11
- package/dist/components/dimmer.js +61 -94
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -2
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +30 -51
- package/dist/components/dropdown.js +736 -1055
- 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 +85 -114
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- 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 +2 -3
- package/dist/components/flyout.js +226 -355
- package/dist/components/flyout.min.css +2 -2
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +5 -95
- package/dist/components/form.js +335 -444
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +2 -58
- 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 +4 -4
- 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 +1 -536
- 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 +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -3
- 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 -9
- 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 -9
- package/dist/components/modal.js +261 -384
- 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 +68 -98
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -2
- package/dist/components/popup.js +198 -271
- 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 +109 -144
- 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 +91 -123
- 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 +2 -9
- package/dist/components/search.js +277 -379
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +2 -7
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -2
- package/dist/components/shape.js +158 -224
- package/dist/components/shape.min.css +2 -2
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +2 -3
- package/dist/components/sidebar.js +124 -206
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +9 -25
- package/dist/components/site.js +38 -57
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +246 -329
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +70 -100
- 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 +135 -180
- 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 +176 -244
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +3 -37
- 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 -3
- package/dist/components/toast.js +109 -147
- 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 +91 -146
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +146 -224
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +3906 -8720
- package/dist/semantic.js +4397 -6155
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/examples/assets/show-examples.js +2 -4
- package/gulpfile.js +5 -7
- package/package.json +3 -5
- package/scripts/nightly-version.js +7 -10
- package/src/README.md +3 -3
- package/src/definitions/behaviors/api.js +156 -209
- package/src/definitions/behaviors/form.js +334 -443
- package/src/definitions/behaviors/state.js +69 -99
- package/src/definitions/behaviors/visibility.js +145 -223
- package/src/definitions/collections/form.less +1 -13
- package/src/definitions/collections/grid.less +1 -61
- package/src/definitions/collections/menu.less +0 -11
- package/src/definitions/collections/table.less +1 -35
- package/src/definitions/elements/input.less +1 -61
- package/src/definitions/elements/segment.less +0 -6
- package/src/definitions/globals/site.js +37 -56
- package/src/definitions/globals/site.less +2 -18
- package/src/definitions/modules/accordion.js +102 -141
- package/src/definitions/modules/calendar.js +313 -351
- package/src/definitions/modules/checkbox.js +84 -134
- package/src/definitions/modules/dimmer.js +60 -93
- package/src/definitions/modules/dimmer.less +0 -9
- package/src/definitions/modules/dropdown.js +735 -1054
- package/src/definitions/modules/dropdown.less +31 -47
- package/src/definitions/modules/embed.js +84 -113
- package/src/definitions/modules/flyout.js +225 -354
- package/src/definitions/modules/modal.js +260 -383
- package/src/definitions/modules/modal.less +1 -1
- package/src/definitions/modules/nag.js +67 -97
- package/src/definitions/modules/popup.js +197 -270
- package/src/definitions/modules/progress.js +108 -143
- package/src/definitions/modules/rating.js +90 -122
- package/src/definitions/modules/search.js +276 -378
- package/src/definitions/modules/search.less +0 -3
- package/src/definitions/modules/shape.js +157 -223
- package/src/definitions/modules/sidebar.js +123 -205
- package/src/definitions/modules/slider.js +245 -328
- package/src/definitions/modules/slider.less +1 -1
- package/src/definitions/modules/sticky.js +134 -179
- package/src/definitions/modules/tab.js +175 -243
- package/src/definitions/modules/toast.js +108 -146
- package/src/definitions/modules/toast.less +1 -1
- package/src/definitions/modules/transition.js +90 -145
- package/src/theme.less +0 -13
- package/src/themes/basic/elements/icon.variables +1 -1
- package/src/themes/default/collections/grid.variables +0 -30
- package/src/themes/default/collections/table.variables +1 -5
- package/src/themes/default/elements/icon.variables +3 -3
- package/src/themes/default/globals/site.variables +8 -15
- package/src/themes/default/globals/variation.variables +1 -2
- package/src/themes/default/modules/dropdown.variables +1 -0
- package/src/themes/default/modules/slider.variables +1 -1
- package/src/themes/github/elements/icon.variables +1 -1
- package/src/themes/material/elements/icon.variables +1 -1
- package/tasks/README.md +1 -1
- package/tasks/admin/components/create.js +89 -122
- package/tasks/admin/components/init.js +34 -65
- package/tasks/admin/components/update.js +50 -61
- package/tasks/admin/distributions/create.js +71 -111
- package/tasks/admin/distributions/init.js +32 -63
- package/tasks/admin/distributions/update.js +49 -57
- package/tasks/admin/publish.js +1 -1
- package/tasks/admin/register.js +14 -19
- package/tasks/admin/release.js +2 -2
- package/tasks/build/assets.js +14 -18
- package/tasks/build/css.js +59 -68
- package/tasks/build/javascript.js +48 -56
- package/tasks/build.js +4 -6
- package/tasks/check-install.js +5 -8
- package/tasks/clean.js +5 -7
- package/tasks/collections/admin.js +14 -16
- package/tasks/collections/build.js +6 -8
- package/tasks/collections/docs.js +4 -6
- package/tasks/collections/install.js +2 -4
- package/tasks/collections/rtl.js +2 -4
- package/tasks/collections/various.js +2 -4
- package/tasks/config/admin/github.js +9 -19
- package/tasks/config/admin/templates/README.md +2 -2
- package/tasks/config/admin/templates/bower.json +2 -4
- package/tasks/config/admin/templates/composer.json +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -4
- package/tasks/config/admin/templates/less-package.js +1 -3
- package/tasks/config/defaults.js +0 -1
- package/tasks/config/npm/gulpfile.js +4 -6
- package/tasks/config/project/config.js +27 -35
- package/tasks/config/project/install.js +64 -82
- package/tasks/config/project/release.js +7 -9
- package/tasks/config/tasks.js +10 -21
- package/tasks/config/user.js +14 -20
- package/tasks/docs/build.js +26 -31
- package/tasks/docs/metadata.js +30 -39
- package/tasks/docs/serve.js +23 -27
- package/tasks/install.js +94 -128
- package/tasks/rtl/build.js +2 -4
- package/tasks/rtl/watch.js +3 -5
- package/tasks/watch.js +13 -13
- package/test/meteor/fonts.js +1 -2
- package/test/modules/module.spec.js +16 -18
- package/types/fomantic-ui-calendar.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +45 -1
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +1 -1
- package/types/fomantic-ui-form.d.ts +0 -7
- package/types/fomantic-ui-modal.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +12 -6
- package/types/fomantic-ui-toast.d.ts +1 -1
- package/src/themes/basic/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/src/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/github/assets/fonts/octicons.woff +0 -0
- package/src/themes/material/assets/fonts/icons.woff +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Checkbox
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -20,43 +20,39 @@
|
|
20
20
|
: globalThis;
|
21
21
|
|
22
22
|
$.fn.checkbox = function (parameters) {
|
23
|
-
|
24
|
-
$allModules = $(this),
|
23
|
+
let $allModules = $(this);
|
25
24
|
|
26
|
-
|
27
|
-
|
25
|
+
let time = Date.now();
|
26
|
+
let performance = [];
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
;
|
28
|
+
let query = arguments[0];
|
29
|
+
let methodInvoked = typeof query === 'string';
|
30
|
+
let queryArguments = [].slice.call(arguments, 1);
|
31
|
+
let returnedValue;
|
34
32
|
|
35
33
|
$allModules.each(function () {
|
36
|
-
|
37
|
-
settings = $.extend(true, {}, $.fn.checkbox.settings, parameters),
|
34
|
+
let settings = $.extend(true, {}, $.fn.checkbox.settings, parameters);
|
38
35
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
36
|
+
let className = settings.className;
|
37
|
+
let namespace = settings.namespace;
|
38
|
+
let selector = settings.selector;
|
39
|
+
let error = settings.error;
|
43
40
|
|
44
|
-
|
45
|
-
|
41
|
+
let eventNamespace = '.' + namespace;
|
42
|
+
let moduleNamespace = 'module-' + namespace;
|
46
43
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
let $module = $(this);
|
45
|
+
let $label = $(this).children(selector.label);
|
46
|
+
let $input = $(this).children(selector.input);
|
47
|
+
let input = $input[0];
|
51
48
|
|
52
|
-
|
53
|
-
|
54
|
-
|
49
|
+
let initialLoad = false;
|
50
|
+
let shortcutPressed = false;
|
51
|
+
let instance = $module.data(moduleNamespace);
|
55
52
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
;
|
53
|
+
let observer;
|
54
|
+
let element = this;
|
55
|
+
let module;
|
60
56
|
|
61
57
|
module = {
|
62
58
|
|
@@ -78,8 +74,7 @@
|
|
78
74
|
module.verbose('Storing instance of module', module);
|
79
75
|
instance = module;
|
80
76
|
$module
|
81
|
-
.data(moduleNamespace, module)
|
82
|
-
;
|
77
|
+
.data(moduleNamespace, module);
|
83
78
|
},
|
84
79
|
|
85
80
|
destroy: function () {
|
@@ -134,31 +129,26 @@
|
|
134
129
|
},
|
135
130
|
|
136
131
|
observeChanges: function () {
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
module.debug('Setting up mutation observer', observer);
|
147
|
-
}
|
132
|
+
observer = new MutationObserver(function (mutations) {
|
133
|
+
module.debug('DOM tree modified, updating selector cache');
|
134
|
+
module.refresh();
|
135
|
+
});
|
136
|
+
observer.observe(element, {
|
137
|
+
childList: true,
|
138
|
+
subtree: true,
|
139
|
+
});
|
140
|
+
module.debug('Setting up mutation observer', observer);
|
148
141
|
},
|
149
142
|
|
150
143
|
attachEvents: function (selector, event) {
|
151
|
-
|
152
|
-
$element = $(selector)
|
153
|
-
;
|
144
|
+
let $element = $(selector);
|
154
145
|
event = isFunction(module[event])
|
155
146
|
? module[event]
|
156
147
|
: module.toggle;
|
157
148
|
if ($element.length > 0) {
|
158
149
|
module.debug('Attaching checkbox events to element', selector, event);
|
159
150
|
$element
|
160
|
-
.on('click' + eventNamespace, event)
|
161
|
-
;
|
151
|
+
.on('click' + eventNamespace, event);
|
162
152
|
} else {
|
163
153
|
module.error(error.notFound);
|
164
154
|
}
|
@@ -178,9 +168,7 @@
|
|
178
168
|
}
|
179
169
|
},
|
180
170
|
click: function (event) {
|
181
|
-
|
182
|
-
$target = $(event.target)
|
183
|
-
;
|
171
|
+
let $target = $(event.target);
|
184
172
|
if ($target.is(selector.input)) {
|
185
173
|
module.verbose('Using default check action on initialized checkbox');
|
186
174
|
|
@@ -196,25 +184,21 @@
|
|
196
184
|
event.preventDefault();
|
197
185
|
},
|
198
186
|
keydown: function (event) {
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
;
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
rIndex = r.index($module),
|
215
|
-
rLen = r.length,
|
216
|
-
checkIndex = false
|
217
|
-
;
|
187
|
+
let key = event.which;
|
188
|
+
let keyCode = {
|
189
|
+
enter: 13,
|
190
|
+
space: 32,
|
191
|
+
escape: 27,
|
192
|
+
left: 37,
|
193
|
+
up: 38,
|
194
|
+
right: 39,
|
195
|
+
down: 40,
|
196
|
+
};
|
197
|
+
|
198
|
+
let r = module.get.radios().not(selector.disabled);
|
199
|
+
let rIndex = r.index($module);
|
200
|
+
let rLen = r.length;
|
201
|
+
let checkIndex = false;
|
218
202
|
|
219
203
|
if (key === keyCode.left || key === keyCode.up) {
|
220
204
|
checkIndex = (rIndex === 0 ? rLen : rIndex) - 1;
|
@@ -228,9 +212,9 @@
|
|
228
212
|
|
229
213
|
return false;
|
230
214
|
}
|
231
|
-
|
232
|
-
|
233
|
-
|
215
|
+
let nextOption = $(r[checkIndex]);
|
216
|
+
let nextInput = nextOption.children(selector.input);
|
217
|
+
let disallowOption = nextOption.hasClass(className.readOnly) || nextInput.prop('readonly');
|
234
218
|
if (disallowOption || settings.beforeChecked.apply(nextInput[0]) === false) {
|
235
219
|
module.verbose('Next option should not allow check, cancelling key navigation');
|
236
220
|
|
@@ -333,8 +317,6 @@
|
|
333
317
|
module.set.enabled();
|
334
318
|
if (!module.should.ignoreCallbacks()) {
|
335
319
|
settings.onEnable.call(input);
|
336
|
-
// preserve legacy callbacks
|
337
|
-
settings.onEnabled.call(input);
|
338
320
|
}
|
339
321
|
},
|
340
322
|
|
@@ -348,18 +330,14 @@
|
|
348
330
|
module.set.disabled();
|
349
331
|
if (!module.should.ignoreCallbacks()) {
|
350
332
|
settings.onDisable.call(input);
|
351
|
-
// preserve legacy callbacks
|
352
|
-
settings.onDisabled.call(input);
|
353
333
|
}
|
354
334
|
},
|
355
335
|
|
356
336
|
get: {
|
357
337
|
radios: function () {
|
358
|
-
|
359
|
-
name = module.get.name()
|
360
|
-
;
|
338
|
+
let name = module.get.name();
|
361
339
|
|
362
|
-
return $('input[name="' + name + '"]').closest(selector.checkbox);
|
340
|
+
return $('input[name="' + CSS.escape(name) + '"]').closest(selector.checkbox);
|
363
341
|
},
|
364
342
|
otherRadios: function () {
|
365
343
|
return module.get.radios().not($module);
|
@@ -477,8 +455,7 @@
|
|
477
455
|
module.verbose('Setting class to checked');
|
478
456
|
$module
|
479
457
|
.removeClass(className.indeterminate)
|
480
|
-
.addClass(className.checked)
|
481
|
-
;
|
458
|
+
.addClass(className.checked);
|
482
459
|
if (module.is.radio()) {
|
483
460
|
module.uncheckOthers();
|
484
461
|
}
|
@@ -490,15 +467,13 @@
|
|
490
467
|
module.verbose('Setting state to checked', input);
|
491
468
|
$input
|
492
469
|
.prop('indeterminate', false)
|
493
|
-
.prop('checked', true)
|
494
|
-
;
|
470
|
+
.prop('checked', true);
|
495
471
|
},
|
496
472
|
unchecked: function () {
|
497
473
|
module.verbose('Removing checked class');
|
498
474
|
$module
|
499
475
|
.removeClass(className.indeterminate)
|
500
|
-
.removeClass(className.checked)
|
501
|
-
;
|
476
|
+
.removeClass(className.checked);
|
502
477
|
if (!module.is.indeterminate() && module.is.unchecked()) {
|
503
478
|
module.debug('Input is already unchecked');
|
504
479
|
|
@@ -507,14 +482,12 @@
|
|
507
482
|
module.debug('Setting state to unchecked');
|
508
483
|
$input
|
509
484
|
.prop('indeterminate', false)
|
510
|
-
.prop('checked', false)
|
511
|
-
;
|
485
|
+
.prop('checked', false);
|
512
486
|
},
|
513
487
|
indeterminate: function () {
|
514
488
|
module.verbose('Setting class to indeterminate');
|
515
489
|
$module
|
516
|
-
.addClass(className.indeterminate)
|
517
|
-
;
|
490
|
+
.addClass(className.indeterminate);
|
518
491
|
if (module.is.indeterminate()) {
|
519
492
|
module.debug('Input is already indeterminate, skipping input property change');
|
520
493
|
|
@@ -522,14 +495,12 @@
|
|
522
495
|
}
|
523
496
|
module.debug('Setting state to indeterminate');
|
524
497
|
$input
|
525
|
-
.prop('indeterminate', true)
|
526
|
-
;
|
498
|
+
.prop('indeterminate', true);
|
527
499
|
},
|
528
500
|
determinate: function () {
|
529
501
|
module.verbose('Removing indeterminate class');
|
530
502
|
$module
|
531
|
-
.removeClass(className.indeterminate)
|
532
|
-
;
|
503
|
+
.removeClass(className.indeterminate);
|
533
504
|
if (module.is.determinate()) {
|
534
505
|
module.debug('Input is already determinate, skipping input property change');
|
535
506
|
|
@@ -537,14 +508,12 @@
|
|
537
508
|
}
|
538
509
|
module.debug('Setting state to determinate');
|
539
510
|
$input
|
540
|
-
.prop('indeterminate', false)
|
541
|
-
;
|
511
|
+
.prop('indeterminate', false);
|
542
512
|
},
|
543
513
|
disabled: function () {
|
544
514
|
module.verbose('Setting class to disabled');
|
545
515
|
$module
|
546
|
-
.addClass(className.disabled)
|
547
|
-
;
|
516
|
+
.addClass(className.disabled);
|
548
517
|
if (module.is.disabled()) {
|
549
518
|
module.debug('Input is already disabled, skipping input property change');
|
550
519
|
|
@@ -552,8 +521,7 @@
|
|
552
521
|
}
|
553
522
|
module.debug('Setting state to disabled');
|
554
523
|
$input
|
555
|
-
.prop('disabled', 'disabled')
|
556
|
-
;
|
524
|
+
.prop('disabled', 'disabled');
|
557
525
|
},
|
558
526
|
enabled: function () {
|
559
527
|
module.verbose('Removing disabled class');
|
@@ -565,8 +533,7 @@
|
|
565
533
|
}
|
566
534
|
module.debug('Setting state to enabled');
|
567
535
|
$input
|
568
|
-
.prop('disabled', false)
|
569
|
-
;
|
536
|
+
.prop('disabled', false);
|
570
537
|
},
|
571
538
|
tabbable: function () {
|
572
539
|
module.verbose('Adding tabindex to checkbox');
|
@@ -584,11 +551,9 @@
|
|
584
551
|
|
585
552
|
trigger: {
|
586
553
|
change: function () {
|
587
|
-
|
588
|
-
inputElement = $input[0]
|
589
|
-
;
|
554
|
+
let inputElement = $input[0];
|
590
555
|
if (inputElement) {
|
591
|
-
|
556
|
+
let events = document.createEvent('HTMLEvents');
|
592
557
|
module.verbose('Triggering native change event');
|
593
558
|
events.initEvent('change', true, false);
|
594
559
|
inputElement.dispatchEvent(events);
|
@@ -621,8 +586,7 @@
|
|
621
586
|
.on('click' + eventNamespace, module.event.click)
|
622
587
|
.on('change' + eventNamespace, module.event.change)
|
623
588
|
.on('keydown' + eventNamespace, selector.input, module.event.keydown)
|
624
|
-
.on('keyup' + eventNamespace, selector.input, module.event.keyup)
|
625
|
-
;
|
589
|
+
.on('keyup' + eventNamespace, selector.input, module.event.keyup);
|
626
590
|
},
|
627
591
|
},
|
628
592
|
|
@@ -630,15 +594,12 @@
|
|
630
594
|
events: function () {
|
631
595
|
module.debug('Removing events');
|
632
596
|
$module
|
633
|
-
.off(eventNamespace)
|
634
|
-
;
|
597
|
+
.off(eventNamespace);
|
635
598
|
},
|
636
599
|
},
|
637
600
|
|
638
601
|
uncheckOthers: function () {
|
639
|
-
|
640
|
-
$radios = module.get.otherRadios()
|
641
|
-
;
|
602
|
+
let $radios = module.get.otherRadios();
|
642
603
|
module.debug('Unchecking other radios', $radios);
|
643
604
|
$radios.removeClass(className.checked);
|
644
605
|
},
|
@@ -710,11 +671,9 @@
|
|
710
671
|
},
|
711
672
|
performance: {
|
712
673
|
log: function (message) {
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
previousTime
|
717
|
-
;
|
674
|
+
let currentTime;
|
675
|
+
let executionTime;
|
676
|
+
let previousTime;
|
718
677
|
if (settings.performance) {
|
719
678
|
currentTime = Date.now();
|
720
679
|
previousTime = time || currentTime;
|
@@ -733,10 +692,8 @@
|
|
733
692
|
}, 500);
|
734
693
|
},
|
735
694
|
display: function () {
|
736
|
-
|
737
|
-
|
738
|
-
totalTime = 0
|
739
|
-
;
|
695
|
+
let title = settings.name + ':';
|
696
|
+
let totalTime = 0;
|
740
697
|
time = false;
|
741
698
|
clearTimeout(module.performance.timer);
|
742
699
|
$.each(performance, function (index, data) {
|
@@ -758,22 +715,19 @@
|
|
758
715
|
},
|
759
716
|
},
|
760
717
|
invoke: function (query, passedArguments, context) {
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
response
|
766
|
-
;
|
718
|
+
let object = instance;
|
719
|
+
let maxDepth;
|
720
|
+
let found;
|
721
|
+
let response;
|
767
722
|
passedArguments = passedArguments || queryArguments;
|
768
723
|
context = context || element;
|
769
724
|
if (typeof query === 'string' && object !== undefined) {
|
770
725
|
query = query.split(/[ .]/);
|
771
726
|
maxDepth = query.length - 1;
|
772
727
|
$.each(query, function (depth, value) {
|
773
|
-
|
728
|
+
let camelCaseValue = depth !== maxDepth
|
774
729
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
775
|
-
: query
|
776
|
-
;
|
730
|
+
: query;
|
777
731
|
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
778
732
|
object = object[camelCaseValue];
|
779
733
|
} else if (object[camelCaseValue] !== undefined) {
|
@@ -859,10 +813,6 @@
|
|
859
813
|
onEnable: function () {},
|
860
814
|
onDisable: function () {},
|
861
815
|
|
862
|
-
// preserve misspelled callbacks (will be removed in 3.0)
|
863
|
-
onEnabled: function () {},
|
864
|
-
onDisabled: function () {},
|
865
|
-
|
866
816
|
className: {
|
867
817
|
checked: 'checked',
|
868
818
|
indeterminate: 'indeterminate',
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Checkbox
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
6
6
|
* Released under the MIT license
|
7
7
|
* https://opensource.org/licenses/MIT
|
8
8
|
*
|
9
|
-
*/.ui.checkbox{position:relative;display:inline-block;-webkit-backface-visibility:hidden;backface-visibility:hidden;outline:0;vertical-align:baseline;font-style:normal;min-height:17px;font-size:1em;line-height:17px;min-width:17px}.ui.checkbox input[type=checkbox],.ui.checkbox input[type=radio]{cursor:pointer;position:absolute;top:0;left:0;opacity:0!important;outline:0;z-index:3;width:17px;height:17px}.ui.checkbox label{cursor:auto;position:relative;display:block;outline:0;font-size:1em}.ui.checkbox:not(.invisible) label{padding-left:1.85714em}.ui.checkbox label::before{position:absolute;top:0;left:0;width:17px;height:17px;content:"";background:#fff;border-radius:.21428571rem;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;border:1px solid #d4d4d5}.ui.checkbox label::after{position:absolute;font-size:14px;top:0;left:0;width:17px;height:17px;text-align:center;opacity:0;color:rgba(0,0,0,.87);transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease}.ui.right.aligned.checkbox label{padding-left:0;padding-right:1.85714em}.ui.right.aligned.checkbox label::after,.ui.right.aligned.checkbox label::before{right:0;left:auto}.ui.checkbox label,.ui.checkbox+label{color:rgba(0,0,0,.87);transition:color .1s ease}.ui.checkbox+label{vertical-align:middle}.ui.checkbox label:hover::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox:not(.invisible) label:hover,.ui.checkbox:not(.invisible)+label:hover{color:rgba(0,0,0,.8)}.ui.checkbox label:active::before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox label:active::after{color:rgba(0,0,0,.95)}.ui.checkbox:not(.invisible) input:active~label{color:rgba(0,0,0,.95)}.ui.checkbox input:focus~label::before{background:#fff;border-color:#96c8da}.ui.checkbox input:focus~label::after{color:rgba(0,0,0,.95)}.ui.checkbox:not(.invisible) input:focus~label{color:rgba(0,0,0,.95)}.ui.checkbox input:checked~label::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:checked~label::after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input:not([type=radio]):indeterminate~label::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:not([type=radio]):indeterminate~label::after{opacity:1;color:rgba(0,0,0,.95)}.ui.indeterminate.toggle.checkbox input:not([type=radio]):indeterminate~label::before{background:rgba(0,0,0,.15)}.ui.indeterminate.toggle.checkbox input:not([type=radio])~label::after{left:1.075rem}.ui.right.aligned.indeterminate.toggle.checkbox input:not([type=radio])~label::after{left:auto;right:1.075rem}.ui.checkbox input:checked:focus~label::before,.ui.checkbox input:not([type=radio]):indeterminate:focus~label::before{background:#fff;border-color:#96c8da}.ui.checkbox input:checked:focus~label::after,.ui.checkbox input:not([type=radio]):indeterminate:focus~label::after{color:rgba(0,0,0,.95)}.ui.read-only.checkbox,.ui.read-only.checkbox label{cursor:default;pointer-events:none}.ui.checkbox input[disabled]~label,.ui.disabled.checkbox label{cursor:default;opacity:.5;color:#000;pointer-events:none}.ui.checkbox input.hidden{z-index:-1}.ui.checkbox input+label[for],.ui.checkbox input.hidden+label{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ui.radio.checkbox{min-height:15px}.ui.radio.checkbox label{padding-left:1.85714em}.ui.radio.checkbox label::before{content:"";transform:none;width:15px;height:15px;border-radius:500rem;top:1px;left:0}.ui.radio.checkbox label::after{border:none;content:""!important;line-height:15px;top:1px;left:0;width:15px;height:15px;border-radius:500rem;transform:scale(.46666667);background-color:rgba(0,0,0,.87)}.ui.radio.checkbox input:focus~label::before{background-color:#fff}.ui.radio.checkbox input:focus~label::after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:indeterminate~label::after{opacity:0}.ui.radio.checkbox input:checked~label::before{background-color:#fff}.ui.radio.checkbox input:checked~label::after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:focus:checked~label::before{background-color:#fff}.ui.radio.checkbox input:focus:checked~label::after{background-color:rgba(0,0,0,.95)}.ui.slider.checkbox{min-height:1.25rem}.ui.slider.checkbox input{width:3.5rem;height:1.25rem}.ui.slider.checkbox label{padding-left:4.5rem;line-height:1rem;color:rgba(0,0,0,.4)}.ui.slider.checkbox label::before{display:block;position:absolute;content:"";transform:none;border:none!important;left:0;z-index:1;top:.4rem;background-color:rgba(0,0,0,.05);width:3.5rem;height:.21428571rem;border-radius:500rem;transition:background .3s ease}.ui.slider.checkbox label::after{background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:""!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:-.25rem;left:0;transform:none;border-radius:500rem;transition:left .3s ease}.ui.slider.checkbox input:focus~label::before{background-color:rgba(0,0,0,.15);border:none}.ui.slider.checkbox label:hover{color:rgba(0,0,0,.8)}.ui.slider.checkbox label:hover::before{background:rgba(0,0,0,.15)}.ui.slider.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox input:checked~label::before{background-color:#545454}.ui.slider.checkbox input:checked~label::after{left:2rem}.ui.slider.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox input:focus:checked~label::before{background-color:#000}.ui.right.aligned.slider.checkbox label{padding-left:0;padding-right:4.5rem}.ui.right.aligned.slider.checkbox label::after{left:auto;right:2rem;transition:right .3s ease}.ui.right.aligned.slider.checkbox input:checked~label::after{left:auto;right:0}.ui.toggle.checkbox{min-height:1.5rem}.ui.toggle.checkbox input{width:3.5rem;height:1.5rem}.ui.toggle.checkbox label{min-height:1.5rem;padding-left:4.5rem;color:rgba(0,0,0,.87)}.ui.toggle.checkbox label{padding-top:.15em}.ui.toggle.checkbox label::before{display:block;position:absolute;content:"";z-index:1;transform:none;border:none;top:0;background:rgba(0,0,0,.05);box-shadow:none;width:3.5rem;height:1.5rem;border-radius:500rem}.ui.toggle.checkbox label::after{background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:""!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:0;left:0;border-radius:500rem;transition:background .3s ease,left .3s ease}.ui.toggle.checkbox input~label::after{left:-.05rem;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus~label::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox label:hover::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:checked~label::before{background-color:#2185d0}.ui.toggle.checkbox input:checked~label::after{left:2.15rem;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:focus:checked~label::before{background-color:#0d71bb}.ui.right.aligned.toggle.checkbox label{padding-left:0;padding-right:4.5rem}.ui.right.aligned.toggle.checkbox input~label::after{left:auto;right:2.15rem;transition:background .3s ease,right .3s ease}.ui.right.aligned.toggle.checkbox input:checked~label::after{left:auto;right:-.05rem}.ui.ui.fitted.checkbox label{padding-left:0}.ui.fitted.toggle.checkbox{width:3.5rem}.ui.fitted.slider.checkbox{width:3.5rem}.ui.ui.ui.inverted.checkbox label,.ui.ui.ui.inverted.checkbox+label{color:rgba(255,255,255,.9)}.ui.ui.inverted.checkbox label:hover{color:#fff}.ui.inverted.checkbox label:hover::before{border-color:rgba(34,36,38,.5)}.ui.inverted.slider.checkbox label{color:rgba(255,255,255,.5)}.ui.ui.inverted.slider.checkbox label::before{background-color:rgba(255,255,255,.5)}.ui.ui.inverted.slider.checkbox label:hover::before{background:rgba(255,255,255,.7)}.ui.ui.inverted.slider.checkbox input:checked~label{color:#fff}.ui.ui.inverted.slider.checkbox input:checked~label::before{background-color:rgba(255,255,255,.8)}.ui.ui.inverted.slider.checkbox input:focus:checked~label{color:#fff}.ui.ui.inverted.slider.checkbox input:focus:checked~label::before{background-color:rgba(255,255,255,.8)}.ui.ui.inverted.toggle.checkbox label::before{background-color:rgba(255,255,255,.9)}.ui.ui.inverted.toggle.checkbox label:hover::before{background:#fff}.ui.ui.inverted.toggle.checkbox input:checked~label{color:#fff}.ui.ui.inverted.toggle.checkbox input:checked~label::before{background-color:#2185d0}.ui.ui.inverted.toggle.checkbox input:focus:checked~label{color:#fff}.ui.ui.inverted.toggle.checkbox input:focus:checked~label::before{background-color:#0d71bb}.ui.invisible.checkbox:not(.compact){display:block}.ui.invisible.checkbox input{left:-99999px;position:absolute}.ui.invisible.checkbox label::after,.ui.invisible.checkbox label::before{display:none}.ui.invisible.checkbox label{transition:all .1s ease}.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label{background:0 0;border-color:transparent;box-shadow:0 0 0 1px rgba(34,36,38,.15) inset;color:inherit}.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked):not(:hover):focus+label:not(.image){box-shadow:0 0 0 1px rgba(34,36,38,.35) inset}.basic.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label,.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label.image{box-shadow:none}.ui.invisible.checkbox input:not(:checked)+label.image{opacity:.5;filter:grayscale(1)}.ui.invisible.checkbox input:not(:checked):not(:hover):focus+label.image{opacity:.75}.disabled.ui.invisible.checkbox input:not(:checked)+label.image,.ui.invisible.checkbox input:not(:checked)[disabled]+label.image{opacity:.25}.ui.mini.checkbox{font-size:.78571429em}.ui.tiny.checkbox{font-size:.85714286em}.ui.small.checkbox{font-size:.92857143em}.ui.large.checkbox{font-size:1.14285714em}.ui.large.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.large.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.large.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.large.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.14285714);transform-origin:left}.ui.large.checkbox.radio label::before,.ui.large.form .checkbox.radio label::before{transform:scale(1.14285714);transform-origin:left}.ui.large.checkbox.radio label::after,.ui.large.form .checkbox.radio label::after{transform:scale(.57142857);transform-origin:left;left:.33571429em}.ui.big.checkbox{font-size:1.28571429em}.ui.big.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.big.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.big.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.big.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.28571429);transform-origin:left}.ui.big.checkbox.radio label::before,.ui.big.form .checkbox.radio label::before{transform:scale(1.28571429);transform-origin:left}.ui.big.checkbox.radio label::after,.ui.big.form .checkbox.radio label::after{transform:scale(.64285714);transform-origin:left;left:.37142857em}.ui.huge.checkbox{font-size:1.42857143em}.ui.huge.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.huge.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.huge.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.huge.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.42857143);transform-origin:left}.ui.huge.checkbox.radio label::before,.ui.huge.form .checkbox.radio label::before{transform:scale(1.42857143);transform-origin:left}.ui.huge.checkbox.radio label::after,.ui.huge.form .checkbox.radio label::after{transform:scale(.71428571);transform-origin:left;left:.40714286em}.ui.massive.checkbox{font-size:1.71428571em}.ui.massive.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.massive.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.massive.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.massive.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.71428571);transform-origin:left}.ui.massive.checkbox.radio label::before,.ui.massive.form .checkbox.radio label::before{transform:scale(1.71428571);transform-origin:left}.ui.massive.checkbox.radio label::after,.ui.massive.form .checkbox.radio label::after{transform:scale(.85714286);transform-origin:left;left:.47857143em}@font-face{font-family:Checkbox;src:url(data:application/font-woff;base64,d09GRgABAAAAAAR8AA0AAAAABtwAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAEYAAAABoAAAAcgbCWJ0dERUYAAARIAAAAFwAAABgAJQAAT1MvMgAAAZgAAABAAAAAYA8SBD9jbWFwAAAB9AAAAFMAAAFc71zo6Wdhc3AAAARAAAAACAAAAAgAAAAQZ2x5ZgAAAlwAAADJAAABVHshwGBoZWFkAAABMAAAAC4AAAA2Bj3tWWhoZWEAAAFgAAAAHQAAACQHfQPIaG10eAAAAdgAAAAZAAAAHg56AEVsb2NhAAACSAAAABIAAAASAQoAjG1heHAAAAGAAAAAGAAAACAACgAvbmFtZQAAAygAAADnAAABp5xOC4Fwb3N0AAAEEAAAADAAAABaHRtWW3icY2BkYGBgYmDgqbAVjee3+crAzcIAAhc3XilHppl3M+cBKQ6QWgYGAAHnCVsAAHicY2BkYGA+8P8AAwMLAwgw72ZgZEAF7ABaJgNOAAAAeJxjYGRgYOBg0GUA0QwMTAxoAAAFtQA6eJxjYGYWYpzAwMrAwDST6QwDA0M/hGZ8zWDMyMmAChgF0AQYHBgYXjAxH/h/gMGB+QCIx8CIJKvAwAgAIOcKW3icY2GAAMZQCM0ExCwMDK7MqiAeAAqXAM4AAAB4nN2NwQ2AMAwDL00pHYJH52AQ9n/w6BbFCS9WwJFlO3IUwHl5YAQuJctcOaVdU6TGmGWt7IxJuHXnvmcrnLPR2GWb6NnF4rrwhT5U/o0Hf5EJGAAAAAAAAAgACAAQABgASABsAKoAAHichY09CsJAEIVndiG2gyQ7IASJIbHQyvyIiFhZpBE8iNsIeiVvYOFx7FPbKE6yUcHGgZ23jzd8DxDeowAWCv77Dez0Vd1hAIB+D714NMa0yNdYZrMhum0CfaWnT4bpeSPaEjOd8djIltTBNBlhSGzES3Jqb5oW6UOrE1WBL7/A73lxNBqnK8znZRbNWMgJET8qJhlWF1HV3zvXSceBSifawrTjTLrd0uI3c4lFu4UcYvbh1/KsIaodUayx7Kxr+wb8Y+EFi+YsngAAAHicfc5BSsNAGMXxf9q0agURFy50M3shlOoNikIXddGFa5N0SEvLDKQp2KUH8AxuXXkkz+JL+NYJJPzmffNmAlzxS0L7JJxzYx5wxoN5qPzZnMrv5hGXfJrHyr/NE+74UytJL5Rcdye0Huiue/NQ+aM5lV/NI27ZmsfKv8wTnvhhzgZPyY6CyAfMN77cFVFaaVBxZE9OraWvjvtc6Kn0jN40qDnoVyIBx4yMqWJfH7YxuFk27a2/dLVGxUpbQndYrrVnrazgpO9C1chSb7s3UymGxlU++Dpv/NoVJ7co4zLGkPEPj0VARQB4nGNgYsAPOBgYGJkYmBiZGZgZWRhZGdnYS/MyDYAAShuCaFcLCB9Iw/hGAOPdCuMAAQAB//8AD3icY2BkYGDgAWIBIGYCYhYIDQACOwAmAHicY2BgYGQAgns+by1A9MWNV8phNABQ5wfrAAA=) format("woff")}.ui.checkbox label::after{font-family:Checkbox}.ui.checkbox input:checked~label::after{content:"\e800"}.ui.checkbox input:indeterminate~label::after{font-size:12px;content:"\e801"}
|
9
|
+
*/.ui.checkbox{position:relative;display:inline-block;-webkit-backface-visibility:hidden;backface-visibility:hidden;outline:0;vertical-align:baseline;font-style:normal;min-height:17px;font-size:1em;line-height:17px;min-width:17px}.ui.checkbox input[type=checkbox],.ui.checkbox input[type=radio]{cursor:pointer;position:absolute;top:0;left:0;opacity:0!important;outline:0;z-index:3;width:17px;height:17px}.ui.checkbox label{cursor:auto;position:relative;display:block;outline:0;font-size:1em}.ui.checkbox:not(.invisible) label{padding-left:1.85714em}.ui.checkbox label::before{position:absolute;top:0;left:0;width:17px;height:17px;content:"";background:#fff;border-radius:.21428571rem;transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease;border:1px solid #d4d4d5}.ui.checkbox label::after{position:absolute;font-size:14px;top:0;left:0;width:17px;height:17px;text-align:center;opacity:0;color:rgba(0,0,0,.87);transition:border .1s ease,opacity .1s ease,transform .1s ease,box-shadow .1s ease}.ui.right.aligned.checkbox label{padding-left:0;padding-right:1.85714em}.ui.right.aligned.checkbox label::after,.ui.right.aligned.checkbox label::before{right:0;left:auto}.ui.checkbox label,.ui.checkbox+label{color:rgba(0,0,0,.87);transition:color .1s ease}.ui.checkbox+label{vertical-align:middle}.ui.checkbox label:hover::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox:not(.invisible) label:hover,.ui.checkbox:not(.invisible)+label:hover{color:rgba(0,0,0,.8)}.ui.checkbox label:active::before{background:#f9fafb;border-color:rgba(34,36,38,.35)}.ui.checkbox label:active::after{color:rgba(0,0,0,.95)}.ui.checkbox:not(.invisible) input:active~label{color:rgba(0,0,0,.95)}.ui.checkbox input:focus~label::before{background:#fff;border-color:#96c8da}.ui.checkbox input:focus~label::after{color:rgba(0,0,0,.95)}.ui.checkbox:not(.invisible) input:focus~label{color:rgba(0,0,0,.95)}.ui.checkbox input:checked~label::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:checked~label::after{opacity:1;color:rgba(0,0,0,.95)}.ui.checkbox input:not([type=radio]):indeterminate~label::before{background:#fff;border-color:rgba(34,36,38,.35)}.ui.checkbox input:not([type=radio]):indeterminate~label::after{opacity:1;color:rgba(0,0,0,.95)}.ui.indeterminate.toggle.checkbox input:not([type=radio]):indeterminate~label::before{background:rgba(0,0,0,.15)}.ui.indeterminate.toggle.checkbox input:not([type=radio])~label::after{left:1.075rem}.ui.right.aligned.indeterminate.toggle.checkbox input:not([type=radio])~label::after{left:auto;right:1.075rem}.ui.checkbox input:checked:focus~label::before,.ui.checkbox input:not([type=radio]):indeterminate:focus~label::before{background:#fff;border-color:#96c8da}.ui.checkbox input:checked:focus~label::after,.ui.checkbox input:not([type=radio]):indeterminate:focus~label::after{color:rgba(0,0,0,.95)}.ui.read-only.checkbox,.ui.read-only.checkbox label{cursor:default;pointer-events:none}.ui.checkbox input[disabled]~label,.ui.disabled.checkbox label{cursor:default;opacity:.5;color:#000;pointer-events:none}.ui.checkbox input.hidden{z-index:-1}.ui.checkbox input+label[for],.ui.checkbox input.hidden+label{cursor:pointer;-webkit-user-select:none;user-select:none}.ui.radio.checkbox{min-height:15px}.ui.radio.checkbox label{padding-left:1.85714em}.ui.radio.checkbox label::before{content:"";transform:none;width:15px;height:15px;border-radius:500rem;top:1px;left:0}.ui.radio.checkbox label::after{border:none;content:""!important;line-height:15px;top:1px;left:0;width:15px;height:15px;border-radius:500rem;transform:scale(.46666667);background-color:rgba(0,0,0,.87)}.ui.radio.checkbox input:focus~label::before{background-color:#fff}.ui.radio.checkbox input:focus~label::after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:indeterminate~label::after{opacity:0}.ui.radio.checkbox input:checked~label::before{background-color:#fff}.ui.radio.checkbox input:checked~label::after{background-color:rgba(0,0,0,.95)}.ui.radio.checkbox input:focus:checked~label::before{background-color:#fff}.ui.radio.checkbox input:focus:checked~label::after{background-color:rgba(0,0,0,.95)}.ui.slider.checkbox{min-height:1.25rem}.ui.slider.checkbox input{width:3.5rem;height:1.25rem}.ui.slider.checkbox label{padding-left:4.5rem;line-height:1rem;color:rgba(0,0,0,.4)}.ui.slider.checkbox label::before{display:block;position:absolute;content:"";transform:none;border:none!important;left:0;z-index:1;top:.4rem;background-color:rgba(0,0,0,.05);width:3.5rem;height:.21428571rem;border-radius:500rem;transition:background .3s ease}.ui.slider.checkbox label::after{background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:""!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:-.25rem;left:0;transform:none;border-radius:500rem;transition:left .3s ease}.ui.slider.checkbox input:focus~label::before{background-color:rgba(0,0,0,.15);border:none}.ui.slider.checkbox label:hover{color:rgba(0,0,0,.8)}.ui.slider.checkbox label:hover::before{background:rgba(0,0,0,.15)}.ui.slider.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox input:checked~label::before{background-color:#545454}.ui.slider.checkbox input:checked~label::after{left:2rem}.ui.slider.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)}.ui.slider.checkbox input:focus:checked~label::before{background-color:#000}.ui.right.aligned.slider.checkbox label{padding-left:0;padding-right:4.5rem}.ui.right.aligned.slider.checkbox label::after{left:auto;right:2rem;transition:right .3s ease}.ui.right.aligned.slider.checkbox input:checked~label::after{left:auto;right:0}.ui.toggle.checkbox{min-height:1.5rem}.ui.toggle.checkbox input{width:3.5rem;height:1.5rem}.ui.toggle.checkbox label{min-height:1.5rem;padding-left:4.5rem;color:rgba(0,0,0,.87)}.ui.toggle.checkbox label{padding-top:.15em}.ui.toggle.checkbox label::before{display:block;position:absolute;content:"";z-index:1;transform:none;border:none;top:0;background:rgba(0,0,0,.05);box-shadow:none;width:3.5rem;height:1.5rem;border-radius:500rem}.ui.toggle.checkbox label::after{background:#fff linear-gradient(transparent,rgba(0,0,0,.05));position:absolute;content:""!important;opacity:1;z-index:2;border:none;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset;width:1.5rem;height:1.5rem;top:0;left:0;border-radius:500rem;transition:background .3s ease,left .3s ease}.ui.toggle.checkbox input~label::after{left:-.05rem;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus~label::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox label:hover::before{background-color:rgba(0,0,0,.15);border:none}.ui.toggle.checkbox input:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:checked~label::before{background-color:#2185d0}.ui.toggle.checkbox input:checked~label::after{left:2.15rem;box-shadow:0 1px 2px 0 rgba(34,36,38,.15),0 0 0 1px rgba(34,36,38,.15) inset}.ui.toggle.checkbox input:focus:checked~label{color:rgba(0,0,0,.95)}.ui.toggle.checkbox input:focus:checked~label::before{background-color:#0d71bb}.ui.right.aligned.toggle.checkbox label{padding-left:0;padding-right:4.5rem}.ui.right.aligned.toggle.checkbox input~label::after{left:auto;right:2.15rem;transition:background .3s ease,right .3s ease}.ui.right.aligned.toggle.checkbox input:checked~label::after{left:auto;right:-.05rem}.ui.ui.fitted.checkbox label{padding-left:0}.ui.fitted.toggle.checkbox{width:3.5rem}.ui.fitted.slider.checkbox{width:3.5rem}.ui.ui.ui.inverted.checkbox label,.ui.ui.ui.inverted.checkbox+label{color:rgba(255,255,255,.9)}.ui.ui.inverted.checkbox label:hover{color:#fff}.ui.inverted.checkbox label:hover::before{border-color:rgba(34,36,38,.5)}.ui.inverted.slider.checkbox label{color:rgba(255,255,255,.5)}.ui.ui.inverted.slider.checkbox label::before{background-color:rgba(255,255,255,.5)}.ui.ui.inverted.slider.checkbox label:hover::before{background:rgba(255,255,255,.7)}.ui.ui.inverted.slider.checkbox input:checked~label{color:#fff}.ui.ui.inverted.slider.checkbox input:checked~label::before{background-color:rgba(255,255,255,.8)}.ui.ui.inverted.slider.checkbox input:focus:checked~label{color:#fff}.ui.ui.inverted.slider.checkbox input:focus:checked~label::before{background-color:rgba(255,255,255,.8)}.ui.ui.inverted.toggle.checkbox label::before{background-color:rgba(255,255,255,.9)}.ui.ui.inverted.toggle.checkbox label:hover::before{background:#fff}.ui.ui.inverted.toggle.checkbox input:checked~label{color:#fff}.ui.ui.inverted.toggle.checkbox input:checked~label::before{background-color:#2185d0}.ui.ui.inverted.toggle.checkbox input:focus:checked~label{color:#fff}.ui.ui.inverted.toggle.checkbox input:focus:checked~label::before{background-color:#0d71bb}.ui.invisible.checkbox:not(.compact){display:block}.ui.invisible.checkbox input{left:-99999px;position:absolute}.ui.invisible.checkbox label::after,.ui.invisible.checkbox label::before{display:none}.ui.invisible.checkbox label{transition:all .1s ease}.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label{background:0 0;border-color:transparent;box-shadow:0 0 0 1px rgba(34,36,38,.15) inset;color:inherit}.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked):not(:hover):focus+label:not(.image){box-shadow:0 0 0 1px rgba(34,36,38,.35) inset}.basic.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label,.ui.ui.ui.ui.ui.invisible.checkbox input:not(:checked)+label.image{box-shadow:none}.ui.invisible.checkbox input:not(:checked)+label.image{opacity:.5;filter:grayscale(1)}.ui.invisible.checkbox input:not(:checked):not(:hover):focus+label.image{opacity:.75}.disabled.ui.invisible.checkbox input:not(:checked)+label.image,.ui.invisible.checkbox input:not(:checked)[disabled]+label.image{opacity:.25}.ui.mini.checkbox{font-size:.78571429em}.ui.tiny.checkbox{font-size:.85714286em}.ui.small.checkbox{font-size:.92857143em}.ui.large.checkbox{font-size:1.14285714em}.ui.large.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.large.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.large.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.large.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.14285714);transform-origin:left}.ui.large.checkbox.radio label::before,.ui.large.form .checkbox.radio label::before{transform:scale(1.14285714);transform-origin:left}.ui.large.checkbox.radio label::after,.ui.large.form .checkbox.radio label::after{transform:scale(.57142857);transform-origin:left;left:.33571429em}.ui.big.checkbox{font-size:1.28571429em}.ui.big.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.big.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.big.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.big.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.28571429);transform-origin:left}.ui.big.checkbox.radio label::before,.ui.big.form .checkbox.radio label::before{transform:scale(1.28571429);transform-origin:left}.ui.big.checkbox.radio label::after,.ui.big.form .checkbox.radio label::after{transform:scale(.64285714);transform-origin:left;left:.37142857em}.ui.huge.checkbox{font-size:1.42857143em}.ui.huge.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.huge.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.huge.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.huge.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.42857143);transform-origin:left}.ui.huge.checkbox.radio label::before,.ui.huge.form .checkbox.radio label::before{transform:scale(1.42857143);transform-origin:left}.ui.huge.checkbox.radio label::after,.ui.huge.form .checkbox.radio label::after{transform:scale(.71428571);transform-origin:left;left:.40714286em}.ui.massive.checkbox{font-size:1.71428571em}.ui.massive.checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.massive.checkbox:not(.slider):not(.toggle):not(.radio) label::before,.ui.massive.form .checkbox:not(.slider):not(.toggle):not(.radio) label::after,.ui.massive.form .checkbox:not(.slider):not(.toggle):not(.radio) label::before{transform:scale(1.71428571);transform-origin:left}.ui.massive.checkbox.radio label::before,.ui.massive.form .checkbox.radio label::before{transform:scale(1.71428571);transform-origin:left}.ui.massive.checkbox.radio label::after,.ui.massive.form .checkbox.radio label::after{transform:scale(.85714286);transform-origin:left;left:.47857143em}@font-face{font-family:Checkbox;src:url(data:application/font-woff;base64,d09GRgABAAAAAAR8AA0AAAAABtwAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAEYAAAABoAAAAcgbCWJ0dERUYAAARIAAAAFwAAABgAJQAAT1MvMgAAAZgAAABAAAAAYA8SBD9jbWFwAAAB9AAAAFMAAAFc71zo6Wdhc3AAAARAAAAACAAAAAgAAAAQZ2x5ZgAAAlwAAADJAAABVHshwGBoZWFkAAABMAAAAC4AAAA2Bj3tWWhoZWEAAAFgAAAAHQAAACQHfQPIaG10eAAAAdgAAAAZAAAAHg56AEVsb2NhAAACSAAAABIAAAASAQoAjG1heHAAAAGAAAAAGAAAACAACgAvbmFtZQAAAygAAADnAAABp5xOC4Fwb3N0AAAEEAAAADAAAABaHRtWW3icY2BkYGBgYmDgqbAVjee3+crAzcIAAhc3XilHppl3M+cBKQ6QWgYGAAHnCVsAAHicY2BkYGA+8P8AAwMLAwgw72ZgZEAF7ABaJgNOAAAAeJxjYGRgYOBg0GUA0QwMTAxoAAAFtQA6eJxjYGYWYpzAwMrAwDST6QwDA0M/hGZ8zWDMyMmAChgF0AQYHBgYXjAxH/h/gMGB+QCIx8CIJKvAwAgAIOcKW3icY2GAAMZQCM0ExCwMDK7MqiAeAAqXAM4AAAB4nN2NwQ2AMAwDL00pHYJH52AQ9n/w6BbFCS9WwJFlO3IUwHl5YAQuJctcOaVdU6TGmGWt7IxJuHXnvmcrnLPR2GWb6NnF4rrwhT5U/o0Hf5EJGAAAAAAAAAgACAAQABgASABsAKoAAHichY09CsJAEIVndiG2gyQ7IASJIbHQyvyIiFhZpBE8iNsIeiVvYOFx7FPbKE6yUcHGgZ23jzd8DxDeowAWCv77Dez0Vd1hAIB+D714NMa0yNdYZrMhum0CfaWnT4bpeSPaEjOd8djIltTBNBlhSGzES3Jqb5oW6UOrE1WBL7/A73lxNBqnK8znZRbNWMgJET8qJhlWF1HV3zvXSceBSifawrTjTLrd0uI3c4lFu4UcYvbh1/KsIaodUayx7Kxr+wb8Y+EFi+YsngAAAHicfc5BSsNAGMXxf9q0agURFy50M3shlOoNikIXddGFa5N0SEvLDKQp2KUH8AxuXXkkz+JL+NYJJPzmffNmAlzxS0L7JJxzYx5wxoN5qPzZnMrv5hGXfJrHyr/NE+74UytJL5Rcdye0Huiue/NQ+aM5lV/NI27ZmsfKv8wTnvhhzgZPyY6CyAfMN77cFVFaaVBxZE9OraWvjvtc6Kn0jN40qDnoVyIBx4yMqWJfH7YxuFk27a2/dLVGxUpbQndYrrVnrazgpO9C1chSb7s3UymGxlU++Dpv/NoVJ7co4zLGkPEPj0VARQB4nGNgYsAPOBgYGJkYmBiZGZgZWRhZGdnYS/MyDYAAShuCaFcLCB9Iw/hGAOPdCuMAAQAB//8AD3icY2BkYGDgAWIBIGYCYhYIDQACOwAmAHicY2BgYGQAgns+by1A9MWNV8phNABQ5wfrAAA=) format("woff")}.ui.checkbox label::after{font-family:Checkbox}.ui.checkbox input:checked~label::after{content:"\e800"}.ui.checkbox input:indeterminate~label::after{font-size:12px;content:"\e801"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
2
|
+
* # Fomantic UI - 2.10.0-beta.10+3ca268e
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* https://fomantic-ui.com/
|
5
5
|
*
|
@@ -8,4 +8,4 @@
|
|
8
8
|
* https://opensource.org/licenses/MIT
|
9
9
|
*
|
10
10
|
*/
|
11
|
-
!function(D,I,E){"use strict";function O(e){return"function"==typeof e&&"number"!=typeof e.nodeType}I=void 0!==I&&I.Math===Math?I:globalThis,D.fn.checkbox=function(c){var s,e=D(this),u=Date.now(),b=[],C=c,x="string"==typeof C,w=[].slice.call(arguments,1);return e.each(function(){var e,h=D.extend(!0,{},D.fn.checkbox.settings,c),g=h.className,n=h.namespace,p=h.selector,r=h.error,t="."+n,i="module-"+n,f=D(this),o=D(this).children(p.label),k=D(this).children(p.input),m=k[0],a=!1,v=!1,d=f.data(i),l=this,y={initialize:function(){y.verbose("Initializing checkbox",h),y.create.label(),y.bind.events(),y.set.tabbable(),y.hide.input(),y.observeChanges(),y.instantiate(),y.setup()},instantiate:function(){y.verbose("Storing instance of module",y),d=y,f.data(i,y)},destroy:function(){y.verbose("Destroying module"),y.unbind.events(),y.show.input(),f.removeData(i)},fix:{reference:function(){f.is(p.input)&&(y.debug("Behavior called on <input> adjusting invoked element"),f=f.closest(p.checkbox),y.refresh())}},setup:function(){y.set.initialLoad(),y.is.indeterminate()?(y.debug("Initial value is indeterminate"),y.indeterminate()):y.is.checked()?(y.debug("Initial value is checked"),y.check()):(y.debug("Initial value is unchecked"),y.uncheck()),y.remove.initialLoad()},refresh:function(){o=f.children(p.label),k=f.children(p.input),m=k[0]},hide:{input:function(){y.verbose("Modifying <input> z-index to be unselectable"),k.addClass(g.hidden)}},show:{input:function(){y.verbose("Modifying <input> z-index to be selectable"),k.removeClass(g.hidden)}},observeChanges:function(){"MutationObserver"in I&&((e=new MutationObserver(function(e){y.debug("DOM tree modified, updating selector cache"),y.refresh()})).observe(l,{childList:!0,subtree:!0}),y.debug("Setting up mutation observer",e))},attachEvents:function(e,n){var i=D(e);n=O(y[n])?y[n]:y.toggle,0<i.length?(y.debug("Attaching checkbox events to element",e,n),i.on("click"+t,n)):y.error(r.notFound)},preventDefaultOnInputTarget:function(){void 0!==event&&null!==event&&D(event.target).is(p.input)&&(y.verbose("Preventing default check action after manual check action"),event.preventDefault())},event:{change:function(e){y.should.ignoreCallbacks()||h.onChange.call(m)},click:function(e){var n=D(e.target);n.is(p.input)?y.verbose("Using default check action on initialized checkbox"):n.is(p.link)?y.debug("Clicking link inside checkbox, skipping toggle"):(y.toggle(),k.trigger("focus"),e.preventDefault())},keydown:function(e){var n=e.which,i=13,t=32,o=27,a=37,c=38,r=39,d=40,l=y.get.radios().not(p.disabled),s=l.index(f),u=l.length,b=!1;if(n===a||n===c?b=(0===s?u:s)-1:n!==r&&n!==d||(b=s===u-1?0:s+1),!y.should.ignoreCallbacks()&&!1!==b){if(!1===h.beforeUnchecked.apply(m))return y.verbose("Option not allowed to be unchecked, cancelling key navigation"),!1;c=D(l[b]),d=c.children(p.input);if(c.hasClass(g.readOnly)||d.prop("readonly")||!1===h.beforeChecked.apply(d[0]))return y.verbose("Next option should not allow check, cancelling key navigation"),!1}v=!1,n===o?(y.verbose("Escape key pressed blurring field"),k.trigger("blur"),v=!0,e.stopPropagation()):y.can.change()?e.ctrlKey||(n===t||n===i&&h.enableEnterKey?(y.verbose("Enter/space key pressed, toggling checkbox"),y.toggle(),v=!0):f.is(".toggle, .slider")&&!y.is.radio()&&(n===a&&y.is.checked()?(y.uncheck(),v=!0):n===r&&y.is.unchecked()&&(y.check(),v=!0))):v=!0},keyup:function(e){v&&e.preventDefault()}},check:function(){y.should.allowCheck()&&(y.debug("Checking checkbox",k),y.set.checked(),y.should.ignoreCallbacks()||(h.onChecked.call(m),y.trigger.change()),y.preventDefaultOnInputTarget())},uncheck:function(){y.should.allowUncheck()&&(y.debug("Unchecking checkbox"),y.set.unchecked(),y.should.ignoreCallbacks()||(h.onUnchecked.call(m),y.trigger.change()),y.preventDefaultOnInputTarget())},indeterminate:function(){y.should.allowIndeterminate()?y.debug("Checkbox is already indeterminate"):(y.debug("Making checkbox indeterminate"),y.set.indeterminate(),y.should.ignoreCallbacks()||(h.onIndeterminate.call(m),y.trigger.change()))},determinate:function(){y.should.allowDeterminate()?y.debug("Checkbox is already determinate"):(y.debug("Making checkbox determinate"),y.set.determinate(),y.should.ignoreCallbacks()||(h.onDeterminate.call(m),y.trigger.change()))},enable:function(){y.is.enabled()?y.debug("Checkbox is already enabled"):(y.debug("Enabling checkbox"),y.set.enabled(),y.should.ignoreCallbacks()||(h.onEnable.call(m),h.onEnabled.call(m)))},disable:function(){y.is.disabled()?y.debug("Checkbox is already disabled"):(y.debug("Disabling checkbox"),y.set.disabled(),y.should.ignoreCallbacks()||(h.onDisable.call(m),h.onDisabled.call(m)))},get:{radios:function(){var e=y.get.name();return D('input[name="'+e+'"]').closest(p.checkbox)},otherRadios:function(){return y.get.radios().not(f)},name:function(){return k.attr("name")}},is:{initialLoad:function(){return a},radio:function(){return k.hasClass(g.radio)||"radio"===k.attr("type")},indeterminate:function(){return void 0!==k.prop("indeterminate")&&k.prop("indeterminate")},checked:function(){return void 0!==k.prop("checked")&&k.prop("checked")},disabled:function(){return void 0!==k.prop("disabled")&&k.prop("disabled")},enabled:function(){return!y.is.disabled()},determinate:function(){return!y.is.indeterminate()},unchecked:function(){return!y.is.checked()}},should:{allowCheck:function(){return y.is.determinate()&&y.is.checked()&&!y.is.initialLoad()?(y.debug("Should not allow check, checkbox is already checked"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeChecked.apply(m))||(y.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return y.is.determinate()&&y.is.unchecked()&&!y.is.initialLoad()?(y.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeUnchecked.apply(m))||(y.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return y.is.indeterminate()&&!y.is.initialLoad()?(y.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeIndeterminate.apply(m))||(y.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return y.is.determinate()&&!y.is.initialLoad()?(y.debug("Should not allow determinate, checkbox is already determinate"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeDeterminate.apply(m))||(y.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},ignoreCallbacks:function(){return a&&!h.fireOnInit}},can:{change:function(){return!(f.hasClass(g.disabled)||f.hasClass(g.readOnly)||k.prop("disabled")||k.prop("readonly"))},uncheck:function(){return"boolean"==typeof h.uncheckable?h.uncheckable:!y.is.radio()}},set:{initialLoad:function(){a=!0},checked:function(){y.verbose("Setting class to checked"),f.removeClass(g.indeterminate).addClass(g.checked),y.is.radio()&&y.uncheckOthers(),!y.is.indeterminate()&&y.is.checked()?y.debug("Input is already checked, skipping input property change"):(y.verbose("Setting state to checked",m),k.prop("indeterminate",!1).prop("checked",!0))},unchecked:function(){y.verbose("Removing checked class"),f.removeClass(g.indeterminate).removeClass(g.checked),!y.is.indeterminate()&&y.is.unchecked()?y.debug("Input is already unchecked"):(y.debug("Setting state to unchecked"),k.prop("indeterminate",!1).prop("checked",!1))},indeterminate:function(){y.verbose("Setting class to indeterminate"),f.addClass(g.indeterminate),y.is.indeterminate()?y.debug("Input is already indeterminate, skipping input property change"):(y.debug("Setting state to indeterminate"),k.prop("indeterminate",!0))},determinate:function(){y.verbose("Removing indeterminate class"),f.removeClass(g.indeterminate),y.is.determinate()?y.debug("Input is already determinate, skipping input property change"):(y.debug("Setting state to determinate"),k.prop("indeterminate",!1))},disabled:function(){y.verbose("Setting class to disabled"),f.addClass(g.disabled),y.is.disabled()?y.debug("Input is already disabled, skipping input property change"):(y.debug("Setting state to disabled"),k.prop("disabled","disabled"))},enabled:function(){y.verbose("Removing disabled class"),f.removeClass(g.disabled),y.is.enabled()?y.debug("Input is already enabled, skipping input property change"):(y.debug("Setting state to enabled"),k.prop("disabled",!1))},tabbable:function(){y.verbose("Adding tabindex to checkbox"),void 0===k.attr("tabindex")&&k.attr("tabindex",0)}},remove:{initialLoad:function(){a=!1}},trigger:{change:function(){var e,n=k[0];n&&(e=E.createEvent("HTMLEvents"),y.verbose("Triggering native change event"),e.initEvent("change",!0,!1),n.dispatchEvent(e))}},create:{label:function(){0<k.prevAll(p.label).length?(k.prev(p.label).detach().insertAfter(k),y.debug("Moving existing label",o)):y.has.label()||(o=D("<label>").insertAfter(k),y.debug("Creating label",o))}},has:{label:function(){return 0<o.length}},bind:{events:function(){y.verbose("Attaching checkbox events"),f.on("click"+t,y.event.click).on("change"+t,y.event.change).on("keydown"+t,p.input,y.event.keydown).on("keyup"+t,p.input,y.event.keyup)}},unbind:{events:function(){y.debug("Removing events"),f.off(t)}},uncheckOthers:function(){var e=y.get.otherRadios();y.debug("Unchecking other radios",e),e.removeClass(g.checked)},toggle:function(){y.can.change()?y.is.indeterminate()||y.is.unchecked()?(y.debug("Currently unchecked"),y.check()):y.is.checked()&&y.can.uncheck()&&(y.debug("Currently checked"),y.uncheck()):y.is.radio()||y.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(e,n){if(y.debug("Changing setting",e,n),D.isPlainObject(e))D.extend(!0,h,e);else{if(void 0===n)return h[e];D.isPlainObject(h[e])?D.extend(!0,h[e],n):h[e]=n}},internal:function(e,n){if(D.isPlainObject(e))D.extend(!0,y,e);else{if(void 0===n)return y[e];y[e]=n}},debug:function(){!h.silent&&h.debug&&(h.performance?y.performance.log(arguments):(y.debug=Function.prototype.bind.call(console.info,console,h.name+":"),y.debug.apply(console,arguments)))},verbose:function(){!h.silent&&h.verbose&&h.debug&&(h.performance?y.performance.log(arguments):(y.verbose=Function.prototype.bind.call(console.info,console,h.name+":"),y.verbose.apply(console,arguments)))},error:function(){h.silent||(y.error=Function.prototype.bind.call(console.error,console,h.name+":"),y.error.apply(console,arguments))},performance:{log:function(e){var n,i;h.performance&&(i=(n=Date.now())-(u||n),u=n,b.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:l,"Execution Time":i})),clearTimeout(y.performance.timer),y.performance.timer=setTimeout(function(){y.performance.display()},500)},display:function(){var e=h.name+":",i=0;u=!1,clearTimeout(y.performance.timer),D.each(b,function(e,n){i+=n["Execution Time"]}),e+=" "+i+"ms",0<b.length&&(console.groupCollapsed(e),console.table?console.table(b):D.each(b,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),b=[]}},invoke:function(t,e,n){var o,a,i,c=d;return e=e||w,n=n||l,"string"==typeof t&&void 0!==c&&(t=t.split(/[ .]/),o=t.length-1,D.each(t,function(e,n){var i=e!==o?n+t[e+1].charAt(0).toUpperCase()+t[e+1].slice(1):t;if(D.isPlainObject(c[i])&&e!==o)c=c[i];else{if(void 0!==c[i])return a=c[i],!1;{if(!D.isPlainObject(c[n])||e===o)return void 0!==c[n]?a=c[n]:y.error(r.method,t),!1;c=c[n]}}})),O(a)?i=a.apply(n,e):void 0!==a&&(i=a),Array.isArray(s)?s.push(i):void 0!==s?s=[s,i]:void 0!==i&&(s=i),a}};x?(void 0===d&&y.initialize(),y.invoke(C)):(void 0!==d&&d.invoke("destroy"),y.initialize())}),void 0!==s?s:this},D.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!1,performance:!0,uncheckable:"auto",fireOnInit:!1,enableEnterKey:!0,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},onEnabled:function(){},onDisabled:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",disabled:".disabled, :has(input[disabled])",label:"label",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document);
|
11
|
+
!function(I,e,D){"use strict";function S(e){return"function"==typeof e&&"number"!=typeof e.nodeType}e=void 0!==e&&e.Math===Math?e:globalThis,I.fn.checkbox=function(c){let e=I(this),s=Date.now(),u=[],b=c,C="string"==typeof b,x=[].slice.call(arguments,1),w;return e.each(function(){let h=I.extend(!0,{},I.fn.checkbox.settings,c),g=h.className;var e=h.namespace;let p=h.selector,r=h.error,i="."+e,n="module-"+e,f=I(this),t=I(this).children(p.label),k=I(this).children(p.input),m=k[0],o=!1,v=!1,l=f.data(n),a,d=this,y;y={initialize:function(){y.verbose("Initializing checkbox",h),y.create.label(),y.bind.events(),y.set.tabbable(),y.hide.input(),y.observeChanges(),y.instantiate(),y.setup()},instantiate:function(){y.verbose("Storing instance of module",y),l=y,f.data(n,y)},destroy:function(){y.verbose("Destroying module"),y.unbind.events(),y.show.input(),f.removeData(n)},fix:{reference:function(){f.is(p.input)&&(y.debug("Behavior called on <input> adjusting invoked element"),f=f.closest(p.checkbox),y.refresh())}},setup:function(){y.set.initialLoad(),y.is.indeterminate()?(y.debug("Initial value is indeterminate"),y.indeterminate()):y.is.checked()?(y.debug("Initial value is checked"),y.check()):(y.debug("Initial value is unchecked"),y.uncheck()),y.remove.initialLoad()},refresh:function(){t=f.children(p.label),k=f.children(p.input),m=k[0]},hide:{input:function(){y.verbose("Modifying <input> z-index to be unselectable"),k.addClass(g.hidden)}},show:{input:function(){y.verbose("Modifying <input> z-index to be selectable"),k.removeClass(g.hidden)}},observeChanges:function(){(a=new MutationObserver(function(e){y.debug("DOM tree modified, updating selector cache"),y.refresh()})).observe(d,{childList:!0,subtree:!0}),y.debug("Setting up mutation observer",a)},attachEvents:function(e,n){let t=I(e);n=S(y[n])?y[n]:y.toggle,0<t.length?(y.debug("Attaching checkbox events to element",e,n),t.on("click"+i,n)):y.error(r.notFound)},preventDefaultOnInputTarget:function(){void 0!==event&&null!==event&&I(event.target).is(p.input)&&(y.verbose("Preventing default check action after manual check action"),event.preventDefault())},event:{change:function(e){y.should.ignoreCallbacks()||h.onChange.call(m)},click:function(e){let n=I(e.target);n.is(p.input)?y.verbose("Using default check action on initialized checkbox"):n.is(p.link)?y.debug("Clicking link inside checkbox, skipping toggle"):(y.toggle(),k.trigger("focus"),e.preventDefault())},keydown:function(e){var n=e.which;let t=13,i=32,o=27,a=37,c=38,r=39,l=40,d=y.get.radios().not(p.disabled);var s=d.index(f),u=d.length;let b=!1;if(n===a||n===c?b=(0===s?u:s)-1:n!==r&&n!==l||(b=s===u-1?0:s+1),!y.should.ignoreCallbacks()&&!1!==b){if(!1===h.beforeUnchecked.apply(m))return y.verbose("Option not allowed to be unchecked, cancelling key navigation"),!1;let e=I(d[b]),n=e.children(p.input);if(e.hasClass(g.readOnly)||n.prop("readonly")||!1===h.beforeChecked.apply(n[0]))return y.verbose("Next option should not allow check, cancelling key navigation"),!1}v=!1,n===o?(y.verbose("Escape key pressed blurring field"),k.trigger("blur"),v=!0,e.stopPropagation()):y.can.change()?e.ctrlKey||(n===i||n===t&&h.enableEnterKey?(y.verbose("Enter/space key pressed, toggling checkbox"),y.toggle(),v=!0):f.is(".toggle, .slider")&&!y.is.radio()&&(n===a&&y.is.checked()?(y.uncheck(),v=!0):n===r&&y.is.unchecked()&&(y.check(),v=!0))):v=!0},keyup:function(e){v&&e.preventDefault()}},check:function(){y.should.allowCheck()&&(y.debug("Checking checkbox",k),y.set.checked(),y.should.ignoreCallbacks()||(h.onChecked.call(m),y.trigger.change()),y.preventDefaultOnInputTarget())},uncheck:function(){y.should.allowUncheck()&&(y.debug("Unchecking checkbox"),y.set.unchecked(),y.should.ignoreCallbacks()||(h.onUnchecked.call(m),y.trigger.change()),y.preventDefaultOnInputTarget())},indeterminate:function(){y.should.allowIndeterminate()?y.debug("Checkbox is already indeterminate"):(y.debug("Making checkbox indeterminate"),y.set.indeterminate(),y.should.ignoreCallbacks()||(h.onIndeterminate.call(m),y.trigger.change()))},determinate:function(){y.should.allowDeterminate()?y.debug("Checkbox is already determinate"):(y.debug("Making checkbox determinate"),y.set.determinate(),y.should.ignoreCallbacks()||(h.onDeterminate.call(m),y.trigger.change()))},enable:function(){y.is.enabled()?y.debug("Checkbox is already enabled"):(y.debug("Enabling checkbox"),y.set.enabled(),y.should.ignoreCallbacks()||h.onEnable.call(m))},disable:function(){y.is.disabled()?y.debug("Checkbox is already disabled"):(y.debug("Disabling checkbox"),y.set.disabled(),y.should.ignoreCallbacks()||h.onDisable.call(m))},get:{radios:function(){var e=y.get.name();return I('input[name="'+CSS.escape(e)+'"]').closest(p.checkbox)},otherRadios:function(){return y.get.radios().not(f)},name:function(){return k.attr("name")}},is:{initialLoad:function(){return o},radio:function(){return k.hasClass(g.radio)||"radio"===k.attr("type")},indeterminate:function(){return void 0!==k.prop("indeterminate")&&k.prop("indeterminate")},checked:function(){return void 0!==k.prop("checked")&&k.prop("checked")},disabled:function(){return void 0!==k.prop("disabled")&&k.prop("disabled")},enabled:function(){return!y.is.disabled()},determinate:function(){return!y.is.indeterminate()},unchecked:function(){return!y.is.checked()}},should:{allowCheck:function(){return y.is.determinate()&&y.is.checked()&&!y.is.initialLoad()?(y.debug("Should not allow check, checkbox is already checked"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeChecked.apply(m))||(y.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return y.is.determinate()&&y.is.unchecked()&&!y.is.initialLoad()?(y.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeUnchecked.apply(m))||(y.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return y.is.indeterminate()&&!y.is.initialLoad()?(y.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeIndeterminate.apply(m))||(y.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return y.is.determinate()&&!y.is.initialLoad()?(y.debug("Should not allow determinate, checkbox is already determinate"),!1):!(!y.should.ignoreCallbacks()&&!1===h.beforeDeterminate.apply(m))||(y.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},ignoreCallbacks:function(){return o&&!h.fireOnInit}},can:{change:function(){return!(f.hasClass(g.disabled)||f.hasClass(g.readOnly)||k.prop("disabled")||k.prop("readonly"))},uncheck:function(){return"boolean"==typeof h.uncheckable?h.uncheckable:!y.is.radio()}},set:{initialLoad:function(){o=!0},checked:function(){y.verbose("Setting class to checked"),f.removeClass(g.indeterminate).addClass(g.checked),y.is.radio()&&y.uncheckOthers(),!y.is.indeterminate()&&y.is.checked()?y.debug("Input is already checked, skipping input property change"):(y.verbose("Setting state to checked",m),k.prop("indeterminate",!1).prop("checked",!0))},unchecked:function(){y.verbose("Removing checked class"),f.removeClass(g.indeterminate).removeClass(g.checked),!y.is.indeterminate()&&y.is.unchecked()?y.debug("Input is already unchecked"):(y.debug("Setting state to unchecked"),k.prop("indeterminate",!1).prop("checked",!1))},indeterminate:function(){y.verbose("Setting class to indeterminate"),f.addClass(g.indeterminate),y.is.indeterminate()?y.debug("Input is already indeterminate, skipping input property change"):(y.debug("Setting state to indeterminate"),k.prop("indeterminate",!0))},determinate:function(){y.verbose("Removing indeterminate class"),f.removeClass(g.indeterminate),y.is.determinate()?y.debug("Input is already determinate, skipping input property change"):(y.debug("Setting state to determinate"),k.prop("indeterminate",!1))},disabled:function(){y.verbose("Setting class to disabled"),f.addClass(g.disabled),y.is.disabled()?y.debug("Input is already disabled, skipping input property change"):(y.debug("Setting state to disabled"),k.prop("disabled","disabled"))},enabled:function(){y.verbose("Removing disabled class"),f.removeClass(g.disabled),y.is.enabled()?y.debug("Input is already enabled, skipping input property change"):(y.debug("Setting state to enabled"),k.prop("disabled",!1))},tabbable:function(){y.verbose("Adding tabindex to checkbox"),void 0===k.attr("tabindex")&&k.attr("tabindex",0)}},remove:{initialLoad:function(){o=!1}},trigger:{change:function(){let n=k[0];if(n){let e=D.createEvent("HTMLEvents");y.verbose("Triggering native change event"),e.initEvent("change",!0,!1),n.dispatchEvent(e)}}},create:{label:function(){0<k.prevAll(p.label).length?(k.prev(p.label).detach().insertAfter(k),y.debug("Moving existing label",t)):y.has.label()||(t=I("<label>").insertAfter(k),y.debug("Creating label",t))}},has:{label:function(){return 0<t.length}},bind:{events:function(){y.verbose("Attaching checkbox events"),f.on("click"+i,y.event.click).on("change"+i,y.event.change).on("keydown"+i,p.input,y.event.keydown).on("keyup"+i,p.input,y.event.keyup)}},unbind:{events:function(){y.debug("Removing events"),f.off(i)}},uncheckOthers:function(){let e=y.get.otherRadios();y.debug("Unchecking other radios",e),e.removeClass(g.checked)},toggle:function(){y.can.change()?y.is.indeterminate()||y.is.unchecked()?(y.debug("Currently unchecked"),y.check()):y.is.checked()&&y.can.uncheck()&&(y.debug("Currently checked"),y.uncheck()):y.is.radio()||y.debug("Checkbox is read-only or disabled, ignoring toggle")},setting:function(e,n){if(y.debug("Changing setting",e,n),I.isPlainObject(e))I.extend(!0,h,e);else{if(void 0===n)return h[e];I.isPlainObject(h[e])?I.extend(!0,h[e],n):h[e]=n}},internal:function(e,n){if(I.isPlainObject(e))I.extend(!0,y,e);else{if(void 0===n)return y[e];y[e]=n}},debug:function(){!h.silent&&h.debug&&(h.performance?y.performance.log(arguments):(y.debug=Function.prototype.bind.call(console.info,console,h.name+":"),y.debug.apply(console,arguments)))},verbose:function(){!h.silent&&h.verbose&&h.debug&&(h.performance?y.performance.log(arguments):(y.verbose=Function.prototype.bind.call(console.info,console,h.name+":"),y.verbose.apply(console,arguments)))},error:function(){h.silent||(y.error=Function.prototype.bind.call(console.error,console,h.name+":"),y.error.apply(console,arguments))},performance:{log:function(e){var n,t;h.performance&&(t=(n=Date.now())-(s||n),s=n,u.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:d,"Execution Time":t})),clearTimeout(y.performance.timer),y.performance.timer=setTimeout(function(){y.performance.display()},500)},display:function(){var e=h.name+":";let t=0;s=!1,clearTimeout(y.performance.timer),I.each(u,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",0<u.length&&(console.groupCollapsed(e),console.table?console.table(u):I.each(u,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),u=[]}},invoke:function(i,e,n){let o=l,a,c,t;return e=e||x,n=n||d,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),a=i.length-1,I.each(i,function(e,n){var t=e!==a?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(I.isPlainObject(o[t])&&e!==a)o=o[t];else{if(void 0!==o[t])return c=o[t],!1;{if(!I.isPlainObject(o[n])||e===a)return void 0!==o[n]?c=o[n]:y.error(r.method,i),!1;o=o[n]}}})),S(c)?t=c.apply(n,e):void 0!==c&&(t=c),Array.isArray(w)?w.push(t):void 0!==w?w=[w,t]:void 0!==t&&(w=t),c}},C?(void 0===l&&y.initialize(),y.invoke(b)):(void 0!==l&&l.invoke("destroy"),y.initialize())}),void 0!==w?w:this},I.fn.checkbox.settings={name:"Checkbox",namespace:"checkbox",silent:!1,debug:!1,verbose:!1,performance:!0,uncheckable:"auto",fireOnInit:!1,enableEnterKey:!0,onChange:function(){},beforeChecked:function(){},beforeUnchecked:function(){},beforeDeterminate:function(){},beforeIndeterminate:function(){},onChecked:function(){},onUnchecked:function(){},onDeterminate:function(){},onIndeterminate:function(){},onEnable:function(){},onDisable:function(){},className:{checked:"checked",indeterminate:"indeterminate",disabled:"disabled",hidden:"hidden",radio:"radio",readOnly:"read-only"},error:{method:"The method you called is not defined"},selector:{checkbox:".ui.checkbox",disabled:".disabled, :has(input[disabled])",label:"label",input:'input[type="checkbox"], input[type="radio"]',link:"a[href]"}}}(jQuery,window,document);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
2
|
+
* # Fomantic-UI 2.10.0-beta.10+3ca268e - Container
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -145,7 +145,6 @@
|
|
145
145
|
.ui.justified.container {
|
146
146
|
text-align: justify;
|
147
147
|
-webkit-hyphens: auto;
|
148
|
-
-ms-hyphens: auto;
|
149
148
|
hyphens: auto;
|
150
149
|
}
|
151
150
|
|
@@ -154,8 +153,7 @@
|
|
154
153
|
--------------- */
|
155
154
|
.ui.scrolling.container {
|
156
155
|
overflow: auto;
|
157
|
-
-
|
158
|
-
overscroll-behavior: none;
|
156
|
+
overscroll-behavior: none;
|
159
157
|
}
|
160
158
|
@media only screen and (max-width: 767.98px) {
|
161
159
|
.ui.scrolling.container.short {
|