@northdata/fomantic-ui 2.8.722 → 2.9.400

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.
Files changed (133) hide show
  1. package/lib/semantic-ui/dist/components/accordion.css +62 -69
  2. package/lib/semantic-ui/dist/components/accordion.js +595 -618
  3. package/lib/semantic-ui/dist/components/accordion.min.css +4 -4
  4. package/lib/semantic-ui/dist/components/accordion.min.js +6 -6
  5. package/lib/semantic-ui/dist/components/api.js +1225 -1177
  6. package/lib/semantic-ui/dist/components/api.min.js +6 -6
  7. package/lib/semantic-ui/dist/components/button.css +291 -634
  8. package/lib/semantic-ui/dist/components/button.min.css +4 -4
  9. package/lib/semantic-ui/dist/components/calendar.css +149 -33
  10. package/lib/semantic-ui/dist/components/calendar.js +2045 -1774
  11. package/lib/semantic-ui/dist/components/calendar.min.css +4 -4
  12. package/lib/semantic-ui/dist/components/calendar.min.js +6 -6
  13. package/lib/semantic-ui/dist/components/card.css +147 -537
  14. package/lib/semantic-ui/dist/components/card.min.css +4 -4
  15. package/lib/semantic-ui/dist/components/checkbox.css +215 -405
  16. package/lib/semantic-ui/dist/components/checkbox.js +888 -876
  17. package/lib/semantic-ui/dist/components/checkbox.min.css +4 -4
  18. package/lib/semantic-ui/dist/components/checkbox.min.js +6 -6
  19. package/lib/semantic-ui/dist/components/container.css +20 -21
  20. package/lib/semantic-ui/dist/components/container.min.css +4 -4
  21. package/lib/semantic-ui/dist/components/dimmer.css +76 -184
  22. package/lib/semantic-ui/dist/components/dimmer.js +732 -753
  23. package/lib/semantic-ui/dist/components/dimmer.min.css +4 -4
  24. package/lib/semantic-ui/dist/components/dimmer.min.js +6 -6
  25. package/lib/semantic-ui/dist/components/divider.css +81 -88
  26. package/lib/semantic-ui/dist/components/divider.min.css +4 -4
  27. package/lib/semantic-ui/dist/components/dropdown.css +431 -450
  28. package/lib/semantic-ui/dist/components/dropdown.js +4432 -4238
  29. package/lib/semantic-ui/dist/components/dropdown.min.css +4 -4
  30. package/lib/semantic-ui/dist/components/dropdown.min.js +6 -6
  31. package/lib/semantic-ui/dist/components/feed.css +130 -87
  32. package/lib/semantic-ui/dist/components/feed.min.css +4 -4
  33. package/lib/semantic-ui/dist/components/flag.css +541 -511
  34. package/lib/semantic-ui/dist/components/flag.min.css +4 -4
  35. package/lib/semantic-ui/dist/components/form.css +437 -476
  36. package/lib/semantic-ui/dist/components/form.js +2199 -2033
  37. package/lib/semantic-ui/dist/components/form.min.css +4 -4
  38. package/lib/semantic-ui/dist/components/form.min.js +6 -6
  39. package/lib/semantic-ui/dist/components/grid.css +151 -306
  40. package/lib/semantic-ui/dist/components/grid.min.css +4 -4
  41. package/lib/semantic-ui/dist/components/header.css +82 -99
  42. package/lib/semantic-ui/dist/components/header.min.css +4 -4
  43. package/lib/semantic-ui/dist/components/icon.css +2744 -2706
  44. package/lib/semantic-ui/dist/components/icon.min.css +4 -4
  45. package/lib/semantic-ui/dist/components/image.css +38 -73
  46. package/lib/semantic-ui/dist/components/image.min.css +4 -4
  47. package/lib/semantic-ui/dist/components/input.css +344 -254
  48. package/lib/semantic-ui/dist/components/input.min.css +4 -4
  49. package/lib/semantic-ui/dist/components/item.css +91 -139
  50. package/lib/semantic-ui/dist/components/item.min.css +4 -4
  51. package/lib/semantic-ui/dist/components/label.css +244 -267
  52. package/lib/semantic-ui/dist/components/label.min.css +4 -4
  53. package/lib/semantic-ui/dist/components/list.css +75 -113
  54. package/lib/semantic-ui/dist/components/list.min.css +4 -4
  55. package/lib/semantic-ui/dist/components/loader.css +142 -601
  56. package/lib/semantic-ui/dist/components/loader.min.css +4 -4
  57. package/lib/semantic-ui/dist/components/menu.css +398 -638
  58. package/lib/semantic-ui/dist/components/menu.min.css +9 -1
  59. package/lib/semantic-ui/dist/components/message.css +116 -332
  60. package/lib/semantic-ui/dist/components/message.min.css +4 -4
  61. package/lib/semantic-ui/dist/components/modal.css +149 -138
  62. package/lib/semantic-ui/dist/components/modal.js +1637 -1209
  63. package/lib/semantic-ui/dist/components/modal.min.css +4 -4
  64. package/lib/semantic-ui/dist/components/modal.min.js +6 -6
  65. package/lib/semantic-ui/dist/components/popup.css +284 -277
  66. package/lib/semantic-ui/dist/components/popup.js +1561 -1541
  67. package/lib/semantic-ui/dist/components/popup.min.css +4 -4
  68. package/lib/semantic-ui/dist/components/popup.min.js +6 -6
  69. package/lib/semantic-ui/dist/components/reset.css +12 -17
  70. package/lib/semantic-ui/dist/components/reset.min.css +4 -4
  71. package/lib/semantic-ui/dist/components/search.css +99 -137
  72. package/lib/semantic-ui/dist/components/search.js +1641 -1565
  73. package/lib/semantic-ui/dist/components/search.min.css +4 -4
  74. package/lib/semantic-ui/dist/components/search.min.js +6 -6
  75. package/lib/semantic-ui/dist/components/segment.css +149 -275
  76. package/lib/semantic-ui/dist/components/segment.min.css +4 -4
  77. package/lib/semantic-ui/dist/components/site.css +40 -48
  78. package/lib/semantic-ui/dist/components/site.js +455 -493
  79. package/lib/semantic-ui/dist/components/site.min.css +4 -4
  80. package/lib/semantic-ui/dist/components/site.min.js +6 -6
  81. package/lib/semantic-ui/dist/components/tab.css +16 -20
  82. package/lib/semantic-ui/dist/components/tab.js +967 -1001
  83. package/lib/semantic-ui/dist/components/tab.min.css +4 -4
  84. package/lib/semantic-ui/dist/components/tab.min.js +6 -6
  85. package/lib/semantic-ui/dist/components/table.css +465 -424
  86. package/lib/semantic-ui/dist/components/table.min.css +4 -4
  87. package/lib/semantic-ui/dist/components/transition.css +264 -1282
  88. package/lib/semantic-ui/dist/components/transition.js +1034 -1109
  89. package/lib/semantic-ui/dist/components/transition.min.css +4 -4
  90. package/lib/semantic-ui/dist/components/transition.min.js +6 -6
  91. package/lib/semantic-ui/dist/semantic-packed.css +5619 -6592
  92. package/lib/semantic-ui/dist/semantic.css +8547 -11697
  93. package/lib/semantic-ui/dist/semantic.full.css +14698 -11227
  94. package/lib/semantic-ui/dist/semantic.full.min.css +6 -262
  95. package/lib/semantic-ui/dist/semantic.js +19428 -19253
  96. package/lib/semantic-ui/dist/semantic.min.css +128 -128
  97. package/lib/semantic-ui/dist/semantic.min.js +6 -6
  98. package/lib/semantic-ui/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  99. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
  100. package/lib/semantic-ui/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  101. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
  102. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  103. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff +0 -0
  104. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff2 +0 -0
  105. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
  106. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  107. package/package.json +17 -7
  108. package/lib/semantic-ui/dist/components/shape.css +0 -160
  109. package/lib/semantic-ui/dist/components/shape.js +0 -848
  110. package/lib/semantic-ui/dist/components/shape.min.css +0 -9
  111. package/lib/semantic-ui/dist/components/shape.min.js +0 -11
  112. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.eot +0 -0
  113. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.svg +0 -450
  114. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.ttf +0 -0
  115. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  116. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
  117. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  118. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.eot +0 -0
  119. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.svg +0 -4938
  120. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.ttf +0 -0
  121. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  122. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
  123. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  124. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
  125. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.svg +0 -200
  126. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.ttf +0 -0
  127. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.woff +0 -0
  128. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.eot +0 -0
  129. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.svg +0 -2373
  130. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.ttf +0 -0
  131. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff +0 -0
  132. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff2 +0 -0
  133. /package/lib/semantic-ui/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
@@ -1,493 +1,455 @@
1
- /*!
2
- * # Fomantic-UI - Site
3
- * http://github.com/fomantic/Fomantic-UI/
4
- *
5
- *
6
- * Released under the MIT license
7
- * http://opensource.org/licenses/MIT
8
- *
9
- */
10
-
11
- ;(function ($, window, document, undefined) {
12
-
13
- $.isFunction = $.isFunction || function(obj) {
14
- return typeof obj === "function" && typeof obj.nodeType !== "number";
15
- };
16
-
17
- $.site = $.fn.site = function(parameters) {
18
- var
19
- time = new Date().getTime(),
20
- performance = [],
21
-
22
- query = arguments[0],
23
- methodInvoked = (typeof query == 'string'),
24
- queryArguments = [].slice.call(arguments, 1),
25
-
26
- settings = ( $.isPlainObject(parameters) )
27
- ? $.extend(true, {}, $.site.settings, parameters)
28
- : $.extend({}, $.site.settings),
29
-
30
- namespace = settings.namespace,
31
- error = settings.error,
32
-
33
- moduleNamespace = 'module-' + namespace,
34
-
35
- $document = $(document),
36
- $module = $document,
37
- element = this,
38
- instance = $module.data(moduleNamespace),
39
-
40
- module,
41
- returnedValue
42
- ;
43
- module = {
44
-
45
- initialize: function() {
46
- module.instantiate();
47
- },
48
-
49
- instantiate: function() {
50
- module.verbose('Storing instance of site', module);
51
- instance = module;
52
- $module
53
- .data(moduleNamespace, module)
54
- ;
55
- },
56
-
57
- normalize: function() {
58
- module.fix.console();
59
- module.fix.requestAnimationFrame();
60
- },
61
-
62
- fix: {
63
- console: function() {
64
- module.debug('Normalizing window.console');
65
- if (console === undefined || console.log === undefined) {
66
- module.verbose('Console not available, normalizing events');
67
- module.disable.console();
68
- }
69
- if (typeof console.group == 'undefined' || typeof console.groupEnd == 'undefined' || typeof console.groupCollapsed == 'undefined') {
70
- module.verbose('Console group not available, normalizing events');
71
- window.console.group = function() {};
72
- window.console.groupEnd = function() {};
73
- window.console.groupCollapsed = function() {};
74
- }
75
- if (typeof console.markTimeline == 'undefined') {
76
- module.verbose('Mark timeline not available, normalizing events');
77
- window.console.markTimeline = function() {};
78
- }
79
- },
80
- consoleClear: function() {
81
- module.debug('Disabling programmatic console clearing');
82
- window.console.clear = function() {};
83
- },
84
- requestAnimationFrame: function() {
85
- module.debug('Normalizing requestAnimationFrame');
86
- if(window.requestAnimationFrame === undefined) {
87
- module.debug('RequestAnimationFrame not available, normalizing event');
88
- window.requestAnimationFrame = window.requestAnimationFrame
89
- || window.mozRequestAnimationFrame
90
- || window.webkitRequestAnimationFrame
91
- || window.msRequestAnimationFrame
92
- || function(callback) { setTimeout(callback, 0); }
93
- ;
94
- }
95
- }
96
- },
97
-
98
- moduleExists: function(name) {
99
- return ($.fn[name] !== undefined && $.fn[name].settings !== undefined);
100
- },
101
-
102
- enabled: {
103
- modules: function(modules) {
104
- var
105
- enabledModules = []
106
- ;
107
- modules = modules || settings.modules;
108
- $.each(modules, function(index, name) {
109
- if(module.moduleExists(name)) {
110
- enabledModules.push(name);
111
- }
112
- });
113
- return enabledModules;
114
- }
115
- },
116
-
117
- disabled: {
118
- modules: function(modules) {
119
- var
120
- disabledModules = []
121
- ;
122
- modules = modules || settings.modules;
123
- $.each(modules, function(index, name) {
124
- if(!module.moduleExists(name)) {
125
- disabledModules.push(name);
126
- }
127
- });
128
- return disabledModules;
129
- }
130
- },
131
-
132
- change: {
133
- setting: function(setting, value, modules, modifyExisting) {
134
- modules = (typeof modules === 'string')
135
- ? (modules === 'all')
136
- ? settings.modules
137
- : [modules]
138
- : modules || settings.modules
139
- ;
140
- modifyExisting = (modifyExisting !== undefined)
141
- ? modifyExisting
142
- : true
143
- ;
144
- $.each(modules, function(index, name) {
145
- var
146
- namespace = (module.moduleExists(name))
147
- ? $.fn[name].settings.namespace || false
148
- : true,
149
- $existingModules
150
- ;
151
- if(module.moduleExists(name)) {
152
- module.verbose('Changing default setting', setting, value, name);
153
- $.fn[name].settings[setting] = value;
154
- if(modifyExisting && namespace) {
155
- $existingModules = $(':data(module-' + namespace + ')');
156
- if($existingModules.length > 0) {
157
- module.verbose('Modifying existing settings', $existingModules);
158
- $existingModules[name]('setting', setting, value);
159
- }
160
- }
161
- }
162
- });
163
- },
164
- settings: function(newSettings, modules, modifyExisting) {
165
- modules = (typeof modules === 'string')
166
- ? [modules]
167
- : modules || settings.modules
168
- ;
169
- modifyExisting = (modifyExisting !== undefined)
170
- ? modifyExisting
171
- : true
172
- ;
173
- $.each(modules, function(index, name) {
174
- var
175
- $existingModules
176
- ;
177
- if(module.moduleExists(name)) {
178
- module.verbose('Changing default setting', newSettings, name);
179
- $.extend(true, $.fn[name].settings, newSettings);
180
- if(modifyExisting && namespace) {
181
- $existingModules = $(':data(module-' + namespace + ')');
182
- if($existingModules.length > 0) {
183
- module.verbose('Modifying existing settings', $existingModules);
184
- $existingModules[name]('setting', newSettings);
185
- }
186
- }
187
- }
188
- });
189
- }
190
- },
191
-
192
- enable: {
193
- console: function() {
194
- module.console(true);
195
- },
196
- debug: function(modules, modifyExisting) {
197
- modules = modules || settings.modules;
198
- module.debug('Enabling debug for modules', modules);
199
- module.change.setting('debug', true, modules, modifyExisting);
200
- },
201
- verbose: function(modules, modifyExisting) {
202
- modules = modules || settings.modules;
203
- module.debug('Enabling verbose debug for modules', modules);
204
- module.change.setting('verbose', true, modules, modifyExisting);
205
- }
206
- },
207
- disable: {
208
- console: function() {
209
- module.console(false);
210
- },
211
- debug: function(modules, modifyExisting) {
212
- modules = modules || settings.modules;
213
- module.debug('Disabling debug for modules', modules);
214
- module.change.setting('debug', false, modules, modifyExisting);
215
- },
216
- verbose: function(modules, modifyExisting) {
217
- modules = modules || settings.modules;
218
- module.debug('Disabling verbose debug for modules', modules);
219
- module.change.setting('verbose', false, modules, modifyExisting);
220
- }
221
- },
222
-
223
- console: function(enable) {
224
- if(enable) {
225
- if(instance.cache.console === undefined) {
226
- module.error(error.console);
227
- return;
228
- }
229
- module.debug('Restoring console function');
230
- window.console = instance.cache.console;
231
- }
232
- else {
233
- module.debug('Disabling console function');
234
- instance.cache.console = window.console;
235
- window.console = {
236
- clear : function(){},
237
- error : function(){},
238
- group : function(){},
239
- groupCollapsed : function(){},
240
- groupEnd : function(){},
241
- info : function(){},
242
- log : function(){},
243
- markTimeline : function(){},
244
- warn : function(){}
245
- };
246
- }
247
- },
248
-
249
- destroy: function() {
250
- module.verbose('Destroying previous site for', $module);
251
- $module
252
- .removeData(moduleNamespace)
253
- ;
254
- },
255
-
256
- cache: {},
257
-
258
- setting: function(name, value) {
259
- if( $.isPlainObject(name) ) {
260
- $.extend(true, settings, name);
261
- }
262
- else if(value !== undefined) {
263
- settings[name] = value;
264
- }
265
- else {
266
- return settings[name];
267
- }
268
- },
269
- internal: function(name, value) {
270
- if( $.isPlainObject(name) ) {
271
- $.extend(true, module, name);
272
- }
273
- else if(value !== undefined) {
274
- module[name] = value;
275
- }
276
- else {
277
- return module[name];
278
- }
279
- },
280
- debug: function() {
281
- if(settings.debug) {
282
- if(settings.performance) {
283
- module.performance.log(arguments);
284
- }
285
- else {
286
- module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
287
- module.debug.apply(console, arguments);
288
- }
289
- }
290
- },
291
- verbose: function() {
292
- if(settings.verbose && settings.debug) {
293
- if(settings.performance) {
294
- module.performance.log(arguments);
295
- }
296
- else {
297
- module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
298
- module.verbose.apply(console, arguments);
299
- }
300
- }
301
- },
302
- error: function() {
303
- module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
304
- module.error.apply(console, arguments);
305
- },
306
- performance: {
307
- log: function(message) {
308
- var
309
- currentTime,
310
- executionTime,
311
- previousTime
312
- ;
313
- if(settings.performance) {
314
- currentTime = new Date().getTime();
315
- previousTime = time || currentTime;
316
- executionTime = currentTime - previousTime;
317
- time = currentTime;
318
- performance.push({
319
- 'Element' : element,
320
- 'Name' : message[0],
321
- 'Arguments' : [].slice.call(message, 1) || '',
322
- 'Execution Time' : executionTime
323
- });
324
- }
325
- clearTimeout(module.performance.timer);
326
- module.performance.timer = setTimeout(module.performance.display, 500);
327
- },
328
- display: function() {
329
- var
330
- title = settings.name + ':',
331
- totalTime = 0
332
- ;
333
- time = false;
334
- clearTimeout(module.performance.timer);
335
- $.each(performance, function(index, data) {
336
- totalTime += data['Execution Time'];
337
- });
338
- title += ' ' + totalTime + 'ms';
339
- if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
340
- console.groupCollapsed(title);
341
- if(console.table) {
342
- console.table(performance);
343
- }
344
- else {
345
- $.each(performance, function(index, data) {
346
- console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
347
- });
348
- }
349
- console.groupEnd();
350
- }
351
- performance = [];
352
- }
353
- },
354
- invoke: function(query, passedArguments, context) {
355
- var
356
- object = instance,
357
- maxDepth,
358
- found,
359
- response
360
- ;
361
- passedArguments = passedArguments || queryArguments;
362
- context = element || context;
363
- if(typeof query == 'string' && object !== undefined) {
364
- query = query.split(/[\. ]/);
365
- maxDepth = query.length - 1;
366
- $.each(query, function(depth, value) {
367
- var camelCaseValue = (depth != maxDepth)
368
- ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
369
- : query
370
- ;
371
- if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
372
- object = object[camelCaseValue];
373
- }
374
- else if( object[camelCaseValue] !== undefined ) {
375
- found = object[camelCaseValue];
376
- return false;
377
- }
378
- else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
379
- object = object[value];
380
- }
381
- else if( object[value] !== undefined ) {
382
- found = object[value];
383
- return false;
384
- }
385
- else {
386
- module.error(error.method, query);
387
- return false;
388
- }
389
- });
390
- }
391
- if ( $.isFunction( found ) ) {
392
- response = found.apply(context, passedArguments);
393
- }
394
- else if(found !== undefined) {
395
- response = found;
396
- }
397
- if(Array.isArray(returnedValue)) {
398
- returnedValue.push(response);
399
- }
400
- else if(returnedValue !== undefined) {
401
- returnedValue = [returnedValue, response];
402
- }
403
- else if(response !== undefined) {
404
- returnedValue = response;
405
- }
406
- return found;
407
- }
408
- };
409
-
410
- if(methodInvoked) {
411
- if(instance === undefined) {
412
- module.initialize();
413
- }
414
- module.invoke(query);
415
- }
416
- else {
417
- if(instance !== undefined) {
418
- module.destroy();
419
- }
420
- module.initialize();
421
- }
422
- return (returnedValue !== undefined)
423
- ? returnedValue
424
- : this
425
- ;
426
- };
427
-
428
- $.site.settings = {
429
-
430
- name : 'Site',
431
- namespace : 'site',
432
-
433
- error : {
434
- console : 'Console cannot be restored, most likely it was overwritten outside of module',
435
- method : 'The method you called is not defined.'
436
- },
437
-
438
- debug : false,
439
- verbose : false,
440
- performance : true,
441
-
442
- modules: [
443
- 'accordion',
444
- 'api',
445
- 'calendar',
446
- 'checkbox',
447
- 'dimmer',
448
- 'dropdown',
449
- 'embed',
450
- 'form',
451
- 'modal',
452
- 'nag',
453
- 'popup',
454
- 'slider',
455
- 'rating',
456
- 'shape',
457
- 'sidebar',
458
- 'state',
459
- 'sticky',
460
- 'tab',
461
- 'toast',
462
- 'transition',
463
- 'visibility',
464
- 'visit'
465
- ],
466
-
467
- siteNamespace : 'site',
468
- namespaceStub : {
469
- cache : {},
470
- config : {},
471
- sections : {},
472
- section : {},
473
- utilities : {}
474
- }
475
-
476
- };
477
-
478
- // allows for selection of elements with data attributes
479
- $.extend($.expr[ ":" ], {
480
- data: ($.expr.createPseudo)
481
- ? $.expr.createPseudo(function(dataName) {
482
- return function(elem) {
483
- return !!$.data(elem, dataName);
484
- };
485
- })
486
- : function(elem, i, match) {
487
- // support: jQuery < 1.8
488
- return !!$.data(elem, match[ 3 ]);
489
- }
490
- });
491
-
492
-
493
- })( jQuery, window, document );
1
+ /*!
2
+ * # Fomantic-UI 2.9.4 - Site
3
+ * https://github.com/fomantic/Fomantic-UI/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * https://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+
11
+ (function ($, window, document) {
12
+ 'use strict';
13
+
14
+ function isFunction(obj) {
15
+ return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
+ }
17
+
18
+ window = window !== undefined && window.Math === Math
19
+ ? window
20
+ : globalThis;
21
+
22
+ $.fn.site = function (parameters) {
23
+ var
24
+ time = Date.now(),
25
+ performance = [],
26
+
27
+ query = arguments[0],
28
+ methodInvoked = typeof query === 'string',
29
+ queryArguments = [].slice.call(arguments, 1),
30
+
31
+ settings = $.isPlainObject(parameters)
32
+ ? $.extend(true, {}, $.site.settings, parameters)
33
+ : $.extend({}, $.site.settings),
34
+
35
+ namespace = settings.namespace,
36
+ error = settings.error,
37
+
38
+ moduleNamespace = 'module-' + namespace,
39
+
40
+ $document = $(document),
41
+ $module = $document,
42
+ element = this,
43
+ instance = $module.data(moduleNamespace),
44
+
45
+ module,
46
+ returnedValue
47
+ ;
48
+ module = {
49
+
50
+ initialize: function () {
51
+ module.instantiate();
52
+ },
53
+
54
+ instantiate: function () {
55
+ module.verbose('Storing instance of site', module);
56
+ instance = module;
57
+ $module
58
+ .data(moduleNamespace, module)
59
+ ;
60
+ },
61
+
62
+ normalize: function () {
63
+ // keep the function for backward compatibility
64
+ // eslint-disable-next-line no-useless-return
65
+ return;
66
+ },
67
+
68
+ fix: {
69
+ consoleClear: function () {
70
+ module.debug('Disabling programmatic console clearing');
71
+ window.console.clear = function () {};
72
+ },
73
+ },
74
+
75
+ moduleExists: function (name) {
76
+ return $.fn[name] !== undefined && $.fn[name].settings !== undefined;
77
+ },
78
+
79
+ enabled: {
80
+ modules: function (modules) {
81
+ var
82
+ enabledModules = []
83
+ ;
84
+ modules = modules || settings.modules;
85
+ $.each(modules, function (index, name) {
86
+ if (module.moduleExists(name)) {
87
+ enabledModules.push(name);
88
+ }
89
+ });
90
+
91
+ return enabledModules;
92
+ },
93
+ },
94
+
95
+ disabled: {
96
+ modules: function (modules) {
97
+ var
98
+ disabledModules = []
99
+ ;
100
+ modules = modules || settings.modules;
101
+ $.each(modules, function (index, name) {
102
+ if (!module.moduleExists(name)) {
103
+ disabledModules.push(name);
104
+ }
105
+ });
106
+
107
+ return disabledModules;
108
+ },
109
+ },
110
+
111
+ change: {
112
+ setting: function (setting, value, modules, modifyExisting) {
113
+ modules = typeof modules === 'string'
114
+ ? (modules === 'all'
115
+ ? settings.modules
116
+ : [modules])
117
+ : modules || settings.modules;
118
+ modifyExisting = modifyExisting !== undefined
119
+ ? modifyExisting
120
+ : true;
121
+ $.each(modules, function (index, name) {
122
+ var
123
+ namespace = module.moduleExists(name)
124
+ ? $.fn[name].settings.namespace || false
125
+ : true,
126
+ $existingModules
127
+ ;
128
+ if (module.moduleExists(name)) {
129
+ module.verbose('Changing default setting', setting, value, name);
130
+ $.fn[name].settings[setting] = value;
131
+ if (modifyExisting && namespace) {
132
+ $existingModules = $(':data(module-' + namespace + ')');
133
+ if ($existingModules.length > 0) {
134
+ module.verbose('Modifying existing settings', $existingModules);
135
+ $existingModules[name]('setting', setting, value);
136
+ }
137
+ }
138
+ }
139
+ });
140
+ },
141
+ settings: function (newSettings, modules, modifyExisting) {
142
+ modules = typeof modules === 'string'
143
+ ? [modules]
144
+ : modules || settings.modules;
145
+ modifyExisting = modifyExisting !== undefined
146
+ ? modifyExisting
147
+ : true;
148
+ $.each(modules, function (index, name) {
149
+ var
150
+ $existingModules
151
+ ;
152
+ if (module.moduleExists(name)) {
153
+ module.verbose('Changing default setting', newSettings, name);
154
+ $.extend(true, $.fn[name].settings, newSettings);
155
+ if (modifyExisting && namespace) {
156
+ $existingModules = $(':data(module-' + namespace + ')');
157
+ if ($existingModules.length > 0) {
158
+ module.verbose('Modifying existing settings', $existingModules);
159
+ $existingModules[name]('setting', newSettings);
160
+ }
161
+ }
162
+ }
163
+ });
164
+ },
165
+ },
166
+
167
+ enable: {
168
+ console: function () {
169
+ module.console(true);
170
+ },
171
+ debug: function (modules, modifyExisting) {
172
+ modules = modules || settings.modules;
173
+ module.debug('Enabling debug for modules', modules);
174
+ module.change.setting('debug', true, modules, modifyExisting);
175
+ },
176
+ verbose: function (modules, modifyExisting) {
177
+ modules = modules || settings.modules;
178
+ module.debug('Enabling verbose debug for modules', modules);
179
+ module.change.setting('verbose', true, modules, modifyExisting);
180
+ },
181
+ },
182
+ disable: {
183
+ console: function () {
184
+ module.console(false);
185
+ },
186
+ debug: function (modules, modifyExisting) {
187
+ modules = modules || settings.modules;
188
+ module.debug('Disabling debug for modules', modules);
189
+ module.change.setting('debug', false, modules, modifyExisting);
190
+ },
191
+ verbose: function (modules, modifyExisting) {
192
+ modules = modules || settings.modules;
193
+ module.debug('Disabling verbose debug for modules', modules);
194
+ module.change.setting('verbose', false, modules, modifyExisting);
195
+ },
196
+ },
197
+
198
+ console: function (enable) {
199
+ if (enable) {
200
+ if (instance.cache.console === undefined) {
201
+ module.error(error.console);
202
+
203
+ return;
204
+ }
205
+ module.debug('Restoring console function');
206
+ window.console = instance.cache.console;
207
+ } else {
208
+ module.debug('Disabling console function');
209
+ instance.cache.console = window.console;
210
+ window.console = {
211
+ clear: function () {},
212
+ error: function () {},
213
+ group: function () {},
214
+ groupCollapsed: function () {},
215
+ groupEnd: function () {},
216
+ info: function () {},
217
+ log: function () {},
218
+ table: function () {},
219
+ warn: function () {},
220
+ };
221
+ }
222
+ },
223
+
224
+ destroy: function () {
225
+ module.verbose('Destroying previous site for', $module);
226
+ $module
227
+ .removeData(moduleNamespace)
228
+ ;
229
+ },
230
+
231
+ cache: {},
232
+
233
+ setting: function (name, value) {
234
+ if ($.isPlainObject(name)) {
235
+ $.extend(true, settings, name);
236
+ } else if (value !== undefined) {
237
+ settings[name] = value;
238
+ } else {
239
+ return settings[name];
240
+ }
241
+ },
242
+ internal: function (name, value) {
243
+ if ($.isPlainObject(name)) {
244
+ $.extend(true, module, name);
245
+ } else if (value !== undefined) {
246
+ module[name] = value;
247
+ } else {
248
+ return module[name];
249
+ }
250
+ },
251
+ debug: function () {
252
+ if (settings.debug) {
253
+ if (settings.performance) {
254
+ module.performance.log(arguments);
255
+ } else {
256
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
257
+ module.debug.apply(console, arguments);
258
+ }
259
+ }
260
+ },
261
+ verbose: function () {
262
+ if (settings.verbose && settings.debug) {
263
+ if (settings.performance) {
264
+ module.performance.log(arguments);
265
+ } else {
266
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
267
+ module.verbose.apply(console, arguments);
268
+ }
269
+ }
270
+ },
271
+ error: function () {
272
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
273
+ module.error.apply(console, arguments);
274
+ },
275
+ performance: {
276
+ log: function (message) {
277
+ var
278
+ currentTime,
279
+ executionTime,
280
+ previousTime
281
+ ;
282
+ if (settings.performance) {
283
+ currentTime = Date.now();
284
+ previousTime = time || currentTime;
285
+ executionTime = currentTime - previousTime;
286
+ time = currentTime;
287
+ performance.push({
288
+ Element: element,
289
+ Name: message[0],
290
+ Arguments: [].slice.call(message, 1) || '',
291
+ 'Execution Time': executionTime,
292
+ });
293
+ }
294
+ clearTimeout(module.performance.timer);
295
+ module.performance.timer = setTimeout(function () {
296
+ module.performance.display();
297
+ }, 500);
298
+ },
299
+ display: function () {
300
+ var
301
+ title = settings.name + ':',
302
+ totalTime = 0
303
+ ;
304
+ time = false;
305
+ clearTimeout(module.performance.timer);
306
+ $.each(performance, function (index, data) {
307
+ totalTime += data['Execution Time'];
308
+ });
309
+ title += ' ' + totalTime + 'ms';
310
+ if (performance.length > 0) {
311
+ console.groupCollapsed(title);
312
+ if (console.table) {
313
+ console.table(performance);
314
+ } else {
315
+ $.each(performance, function (index, data) {
316
+ console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
317
+ });
318
+ }
319
+ console.groupEnd();
320
+ }
321
+ performance = [];
322
+ },
323
+ },
324
+ invoke: function (query, passedArguments, context) {
325
+ var
326
+ object = instance,
327
+ maxDepth,
328
+ found,
329
+ response
330
+ ;
331
+ passedArguments = passedArguments || queryArguments;
332
+ context = context || element;
333
+ if (typeof query === 'string' && object !== undefined) {
334
+ query = query.split(/[ .]/);
335
+ maxDepth = query.length - 1;
336
+ $.each(query, function (depth, value) {
337
+ var camelCaseValue = depth !== maxDepth
338
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
339
+ : query
340
+ ;
341
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
342
+ object = object[camelCaseValue];
343
+ } else if (object[camelCaseValue] !== undefined) {
344
+ found = object[camelCaseValue];
345
+
346
+ return false;
347
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
348
+ object = object[value];
349
+ } else if (object[value] !== undefined) {
350
+ found = object[value];
351
+
352
+ return false;
353
+ } else {
354
+ module.error(error.method, query);
355
+
356
+ return false;
357
+ }
358
+ });
359
+ }
360
+ if (isFunction(found)) {
361
+ response = found.apply(context, passedArguments);
362
+ } else if (found !== undefined) {
363
+ response = found;
364
+ }
365
+ if (Array.isArray(returnedValue)) {
366
+ returnedValue.push(response);
367
+ } else if (returnedValue !== undefined) {
368
+ returnedValue = [returnedValue, response];
369
+ } else if (response !== undefined) {
370
+ returnedValue = response;
371
+ }
372
+
373
+ return found;
374
+ },
375
+ };
376
+
377
+ if (methodInvoked) {
378
+ if (instance === undefined) {
379
+ module.initialize();
380
+ }
381
+ module.invoke(query);
382
+ } else {
383
+ if (instance !== undefined) {
384
+ module.destroy();
385
+ }
386
+ module.initialize();
387
+ }
388
+
389
+ return returnedValue !== undefined
390
+ ? returnedValue
391
+ : this;
392
+ };
393
+ $.site = $.fn.site;
394
+
395
+ $.site.settings = {
396
+
397
+ name: 'Site',
398
+ namespace: 'site',
399
+
400
+ error: {
401
+ console: 'Console cannot be restored, most likely it was overwritten outside of module',
402
+ method: 'The method you called is not defined.',
403
+ },
404
+
405
+ debug: false,
406
+ verbose: false,
407
+ performance: true,
408
+
409
+ modules: [
410
+ 'accordion',
411
+ 'api',
412
+ 'calendar',
413
+ 'checkbox',
414
+ 'dimmer',
415
+ 'dropdown',
416
+ 'embed',
417
+ 'flyout',
418
+ 'form',
419
+ 'modal',
420
+ 'nag',
421
+ 'popup',
422
+ 'progress',
423
+ 'rating',
424
+ 'search',
425
+ 'shape',
426
+ 'sidebar',
427
+ 'slider',
428
+ 'state',
429
+ 'sticky',
430
+ 'tab',
431
+ 'toast',
432
+ 'transition',
433
+ 'visibility',
434
+ ],
435
+
436
+ siteNamespace: 'site',
437
+ namespaceStub: {
438
+ cache: {},
439
+ config: {},
440
+ sections: {},
441
+ section: {},
442
+ utilities: {},
443
+ },
444
+
445
+ };
446
+
447
+ // allows for selection of elements with data attributes
448
+ $.extend($.expr.pseudos, {
449
+ data: $.expr.createPseudo(function (dataName) {
450
+ return function (elem) {
451
+ return !!$.data(elem, dataName);
452
+ };
453
+ }),
454
+ });
455
+ })(jQuery, window, document);