@northdata/fomantic-ui 2.8.722 → 2.9.401

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 (157) 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 +5610 -6590
  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/lib/semantic-ui/types/fomantic-ui-accordion.d.ts +244 -0
  108. package/lib/semantic-ui/types/fomantic-ui-api.d.ts +561 -0
  109. package/lib/semantic-ui/types/fomantic-ui-calendar.d.ts +867 -0
  110. package/lib/semantic-ui/types/fomantic-ui-checkbox.d.ts +342 -0
  111. package/lib/semantic-ui/types/fomantic-ui-dimmer.d.ts +408 -0
  112. package/lib/semantic-ui/types/fomantic-ui-dropdown.d.ts +1221 -0
  113. package/lib/semantic-ui/types/fomantic-ui-embed.d.ts +343 -0
  114. package/lib/semantic-ui/types/fomantic-ui-flyout.d.ts +539 -0
  115. package/lib/semantic-ui/types/fomantic-ui-form.d.ts +759 -0
  116. package/lib/semantic-ui/types/fomantic-ui-modal.d.ts +567 -0
  117. package/lib/semantic-ui/types/fomantic-ui-nag.d.ts +270 -0
  118. package/lib/semantic-ui/types/fomantic-ui-popup.d.ts +549 -0
  119. package/lib/semantic-ui/types/fomantic-ui-progress.d.ts +465 -0
  120. package/lib/semantic-ui/types/fomantic-ui-rating.d.ts +187 -0
  121. package/lib/semantic-ui/types/fomantic-ui-search.d.ts +612 -0
  122. package/lib/semantic-ui/types/fomantic-ui-shape.d.ts +274 -0
  123. package/lib/semantic-ui/types/fomantic-ui-sidebar.d.ts +402 -0
  124. package/lib/semantic-ui/types/fomantic-ui-slider.d.ts +368 -0
  125. package/lib/semantic-ui/types/fomantic-ui-sticky.d.ts +215 -0
  126. package/lib/semantic-ui/types/fomantic-ui-tab.d.ts +361 -0
  127. package/lib/semantic-ui/types/fomantic-ui-toast.d.ts +526 -0
  128. package/lib/semantic-ui/types/fomantic-ui-transition.d.ts +389 -0
  129. package/lib/semantic-ui/types/fomantic-ui-visibility.d.ts +355 -0
  130. package/lib/semantic-ui/types/index.d.ts +63 -0
  131. package/package.json +19 -8
  132. package/lib/semantic-ui/dist/components/shape.css +0 -160
  133. package/lib/semantic-ui/dist/components/shape.js +0 -848
  134. package/lib/semantic-ui/dist/components/shape.min.css +0 -9
  135. package/lib/semantic-ui/dist/components/shape.min.js +0 -11
  136. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.eot +0 -0
  137. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.svg +0 -450
  138. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.ttf +0 -0
  139. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  140. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
  141. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  142. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.eot +0 -0
  143. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.svg +0 -4938
  144. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.ttf +0 -0
  145. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  146. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
  147. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  148. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
  149. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.svg +0 -200
  150. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.ttf +0 -0
  151. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.woff +0 -0
  152. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.eot +0 -0
  153. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.svg +0 -2373
  154. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.ttf +0 -0
  155. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff +0 -0
  156. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff2 +0 -0
  157. /package/lib/semantic-ui/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
@@ -1,618 +1,595 @@
1
- /*!
2
- * # Fomantic-UI - Accordion
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
- 'use strict';
14
-
15
- $.isFunction = $.isFunction || function(obj) {
16
- return typeof obj === "function" && typeof obj.nodeType !== "number";
17
- };
18
-
19
- window = (typeof window != 'undefined' && window.Math == Math)
20
- ? window
21
- : (typeof self != 'undefined' && self.Math == Math)
22
- ? self
23
- : Function('return this')()
24
- ;
25
-
26
- $.fn.accordion = function(parameters) {
27
- var
28
- $allModules = $(this),
29
-
30
- time = new Date().getTime(),
31
- performance = [],
32
-
33
- query = arguments[0],
34
- methodInvoked = (typeof query == 'string'),
35
- queryArguments = [].slice.call(arguments, 1),
36
-
37
- returnedValue
38
- ;
39
- $allModules
40
- .each(function() {
41
- var
42
- settings = ( $.isPlainObject(parameters) )
43
- ? $.extend(true, {}, $.fn.accordion.settings, parameters)
44
- : $.extend({}, $.fn.accordion.settings),
45
-
46
- className = settings.className,
47
- namespace = settings.namespace,
48
- selector = settings.selector,
49
- error = settings.error,
50
-
51
- eventNamespace = '.' + namespace,
52
- moduleNamespace = 'module-' + namespace,
53
- moduleSelector = $allModules.selector || '',
54
-
55
- $module = $(this),
56
- $title = $module.find(selector.title),
57
- $content = $module.find(selector.content),
58
-
59
- element = this,
60
- instance = $module.data(moduleNamespace),
61
- observer,
62
- module
63
- ;
64
-
65
- module = {
66
-
67
- initialize: function() {
68
- module.debug('Initializing', $module);
69
- module.bind.events();
70
- if(settings.observeChanges) {
71
- module.observeChanges();
72
- }
73
- module.instantiate();
74
- },
75
-
76
- instantiate: function() {
77
- instance = module;
78
- $module
79
- .data(moduleNamespace, module)
80
- ;
81
- },
82
-
83
- destroy: function() {
84
- module.debug('Destroying previous instance', $module);
85
- $module
86
- .off(eventNamespace)
87
- .removeData(moduleNamespace)
88
- ;
89
- },
90
-
91
- refresh: function() {
92
- $title = $module.find(selector.title);
93
- $content = $module.find(selector.content);
94
- },
95
-
96
- observeChanges: function() {
97
- if('MutationObserver' in window) {
98
- observer = new MutationObserver(function(mutations) {
99
- module.debug('DOM tree modified, updating selector cache');
100
- module.refresh();
101
- });
102
- observer.observe(element, {
103
- childList : true,
104
- subtree : true
105
- });
106
- module.debug('Setting up mutation observer', observer);
107
- }
108
- },
109
-
110
- bind: {
111
- events: function() {
112
- module.debug('Binding delegated events');
113
- $module
114
- .on(settings.on + eventNamespace, selector.trigger, module.event.click)
115
- ;
116
- }
117
- },
118
-
119
- event: {
120
- click: function() {
121
- module.toggle.call(this);
122
- }
123
- },
124
-
125
- toggle: function(query) {
126
- var
127
- $activeTitle = (query !== undefined)
128
- ? (typeof query === 'number')
129
- ? $title.eq(query)
130
- : $(query).closest(selector.title)
131
- : $(this).closest(selector.title),
132
- $activeContent = $activeTitle.next($content),
133
- isAnimating = $activeContent.hasClass(className.animating),
134
- isActive = $activeContent.hasClass(className.active),
135
- isOpen = (isActive && !isAnimating),
136
- isOpening = (!isActive && isAnimating)
137
- ;
138
- module.debug('Toggling visibility of content', $activeTitle);
139
- if(isOpen || isOpening) {
140
- if(settings.collapsible) {
141
- module.close.call($activeTitle);
142
- }
143
- else {
144
- module.debug('Cannot close accordion content collapsing is disabled');
145
- }
146
- }
147
- else {
148
- module.open.call($activeTitle);
149
- }
150
- },
151
-
152
- open: function(query) {
153
- var
154
- $activeTitle = (query !== undefined)
155
- ? (typeof query === 'number')
156
- ? $title.eq(query)
157
- : $(query).closest(selector.title)
158
- : $(this).closest(selector.title),
159
- $activeContent = $activeTitle.next($content),
160
- isAnimating = $activeContent.hasClass(className.animating),
161
- isActive = $activeContent.hasClass(className.active),
162
- isOpen = (isActive || isAnimating)
163
- ;
164
- if(isOpen) {
165
- module.debug('Accordion already open, skipping', $activeContent);
166
- return;
167
- }
168
- module.debug('Opening accordion content', $activeTitle);
169
- settings.onOpening.call($activeContent);
170
- settings.onChanging.call($activeContent);
171
- if(settings.exclusive) {
172
- module.closeOthers.call($activeTitle);
173
- }
174
- $activeTitle
175
- .addClass(className.active)
176
- ;
177
- $activeContent
178
- .stop(true, true)
179
- .addClass(className.animating)
180
- ;
181
- if(settings.animateChildren) {
182
- if($.fn.transition !== undefined && $module.transition('is supported')) {
183
- $activeContent
184
- .children()
185
- .transition({
186
- animation : 'fade in',
187
- queue : false,
188
- useFailSafe : true,
189
- debug : settings.debug,
190
- verbose : settings.verbose,
191
- duration : settings.duration,
192
- skipInlineHidden : true,
193
- onComplete: function() {
194
- $activeContent.children().removeClass(className.transition);
195
- }
196
- })
197
- ;
198
- }
199
- else {
200
- $activeContent
201
- .children()
202
- .stop(true, true)
203
- .animate({
204
- opacity: 1
205
- }, settings.duration, module.resetOpacity)
206
- ;
207
- }
208
- }
209
- $activeContent
210
- .slideDown(settings.duration, settings.easing, function() {
211
- $activeContent
212
- .removeClass(className.animating)
213
- .addClass(className.active)
214
- ;
215
- module.reset.display.call(this);
216
- settings.onOpen.call(this);
217
- settings.onChange.call(this);
218
- })
219
- ;
220
- },
221
-
222
- close: function(query) {
223
- var
224
- $activeTitle = (query !== undefined)
225
- ? (typeof query === 'number')
226
- ? $title.eq(query)
227
- : $(query).closest(selector.title)
228
- : $(this).closest(selector.title),
229
- $activeContent = $activeTitle.next($content),
230
- isAnimating = $activeContent.hasClass(className.animating),
231
- isActive = $activeContent.hasClass(className.active),
232
- isOpening = (!isActive && isAnimating),
233
- isClosing = (isActive && isAnimating)
234
- ;
235
- if((isActive || isOpening) && !isClosing) {
236
- module.debug('Closing accordion content', $activeContent);
237
- settings.onClosing.call($activeContent);
238
- settings.onChanging.call($activeContent);
239
- $activeTitle
240
- .removeClass(className.active)
241
- ;
242
- $activeContent
243
- .stop(true, true)
244
- .addClass(className.animating)
245
- ;
246
- if(settings.animateChildren) {
247
- if($.fn.transition !== undefined && $module.transition('is supported')) {
248
- $activeContent
249
- .children()
250
- .transition({
251
- animation : 'fade out',
252
- queue : false,
253
- useFailSafe : true,
254
- debug : settings.debug,
255
- verbose : settings.verbose,
256
- duration : settings.duration,
257
- skipInlineHidden : true
258
- })
259
- ;
260
- }
261
- else {
262
- $activeContent
263
- .children()
264
- .stop(true, true)
265
- .animate({
266
- opacity: 0
267
- }, settings.duration, module.resetOpacity)
268
- ;
269
- }
270
- }
271
- $activeContent
272
- .slideUp(settings.duration, settings.easing, function() {
273
- $activeContent
274
- .removeClass(className.animating)
275
- .removeClass(className.active)
276
- ;
277
- module.reset.display.call(this);
278
- settings.onClose.call(this);
279
- settings.onChange.call(this);
280
- })
281
- ;
282
- }
283
- },
284
-
285
- closeOthers: function(index) {
286
- var
287
- $activeTitle = (index !== undefined)
288
- ? $title.eq(index)
289
- : $(this).closest(selector.title),
290
- $parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
291
- $activeAccordion = $activeTitle.closest(selector.accordion),
292
- activeSelector = selector.title + '.' + className.active + ':visible',
293
- activeContent = selector.content + '.' + className.active + ':visible',
294
- $openTitles,
295
- $nestedTitles,
296
- $openContents
297
- ;
298
- if(settings.closeNested) {
299
- $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
300
- $openContents = $openTitles.next($content);
301
- }
302
- else {
303
- $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
304
- $nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles);
305
- $openTitles = $openTitles.not($nestedTitles);
306
- $openContents = $openTitles.next($content);
307
- }
308
- if( ($openTitles.length > 0) ) {
309
- module.debug('Exclusive enabled, closing other content', $openTitles);
310
- $openTitles
311
- .removeClass(className.active)
312
- ;
313
- $openContents
314
- .removeClass(className.animating)
315
- .stop(true, true)
316
- ;
317
- if(settings.animateChildren) {
318
- if($.fn.transition !== undefined && $module.transition('is supported')) {
319
- $openContents
320
- .children()
321
- .transition({
322
- animation : 'fade out',
323
- useFailSafe : true,
324
- debug : settings.debug,
325
- verbose : settings.verbose,
326
- duration : settings.duration,
327
- skipInlineHidden : true
328
- })
329
- ;
330
- }
331
- else {
332
- $openContents
333
- .children()
334
- .stop(true, true)
335
- .animate({
336
- opacity: 0
337
- }, settings.duration, module.resetOpacity)
338
- ;
339
- }
340
- }
341
- $openContents
342
- .slideUp(settings.duration , settings.easing, function() {
343
- $(this).removeClass(className.active);
344
- module.reset.display.call(this);
345
- })
346
- ;
347
- }
348
- },
349
-
350
- reset: {
351
-
352
- display: function() {
353
- module.verbose('Removing inline display from element', this);
354
- $(this).css('display', '');
355
- if( $(this).attr('style') === '') {
356
- $(this)
357
- .attr('style', '')
358
- .removeAttr('style')
359
- ;
360
- }
361
- },
362
-
363
- opacity: function() {
364
- module.verbose('Removing inline opacity from element', this);
365
- $(this).css('opacity', '');
366
- if( $(this).attr('style') === '') {
367
- $(this)
368
- .attr('style', '')
369
- .removeAttr('style')
370
- ;
371
- }
372
- },
373
-
374
- },
375
-
376
- setting: function(name, value) {
377
- module.debug('Changing setting', name, value);
378
- if( $.isPlainObject(name) ) {
379
- $.extend(true, settings, name);
380
- }
381
- else if(value !== undefined) {
382
- if($.isPlainObject(settings[name])) {
383
- $.extend(true, settings[name], value);
384
- }
385
- else {
386
- settings[name] = value;
387
- }
388
- }
389
- else {
390
- return settings[name];
391
- }
392
- },
393
- internal: function(name, value) {
394
- module.debug('Changing internal', name, value);
395
- if(value !== undefined) {
396
- if( $.isPlainObject(name) ) {
397
- $.extend(true, module, name);
398
- }
399
- else {
400
- module[name] = value;
401
- }
402
- }
403
- else {
404
- return module[name];
405
- }
406
- },
407
- debug: function() {
408
- if(!settings.silent && settings.debug) {
409
- if(settings.performance) {
410
- module.performance.log(arguments);
411
- }
412
- else {
413
- module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
414
- module.debug.apply(console, arguments);
415
- }
416
- }
417
- },
418
- verbose: function() {
419
- if(!settings.silent && settings.verbose && settings.debug) {
420
- if(settings.performance) {
421
- module.performance.log(arguments);
422
- }
423
- else {
424
- module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
425
- module.verbose.apply(console, arguments);
426
- }
427
- }
428
- },
429
- error: function() {
430
- if(!settings.silent) {
431
- module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
432
- module.error.apply(console, arguments);
433
- }
434
- },
435
- performance: {
436
- log: function(message) {
437
- var
438
- currentTime,
439
- executionTime,
440
- previousTime
441
- ;
442
- if(settings.performance) {
443
- currentTime = new Date().getTime();
444
- previousTime = time || currentTime;
445
- executionTime = currentTime - previousTime;
446
- time = currentTime;
447
- performance.push({
448
- 'Name' : message[0],
449
- 'Arguments' : [].slice.call(message, 1) || '',
450
- 'Element' : element,
451
- 'Execution Time' : executionTime
452
- });
453
- }
454
- clearTimeout(module.performance.timer);
455
- module.performance.timer = setTimeout(module.performance.display, 500);
456
- },
457
- display: function() {
458
- var
459
- title = settings.name + ':',
460
- totalTime = 0
461
- ;
462
- time = false;
463
- clearTimeout(module.performance.timer);
464
- $.each(performance, function(index, data) {
465
- totalTime += data['Execution Time'];
466
- });
467
- title += ' ' + totalTime + 'ms';
468
- if(moduleSelector) {
469
- title += ' \'' + moduleSelector + '\'';
470
- }
471
- if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
472
- console.groupCollapsed(title);
473
- if(console.table) {
474
- console.table(performance);
475
- }
476
- else {
477
- $.each(performance, function(index, data) {
478
- console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
479
- });
480
- }
481
- console.groupEnd();
482
- }
483
- performance = [];
484
- }
485
- },
486
- invoke: function(query, passedArguments, context) {
487
- var
488
- object = instance,
489
- maxDepth,
490
- found,
491
- response
492
- ;
493
- passedArguments = passedArguments || queryArguments;
494
- context = element || context;
495
- if(typeof query == 'string' && object !== undefined) {
496
- query = query.split(/[\. ]/);
497
- maxDepth = query.length - 1;
498
- $.each(query, function(depth, value) {
499
- var camelCaseValue = (depth != maxDepth)
500
- ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
501
- : query
502
- ;
503
- if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
504
- object = object[camelCaseValue];
505
- }
506
- else if( object[camelCaseValue] !== undefined ) {
507
- found = object[camelCaseValue];
508
- return false;
509
- }
510
- else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
511
- object = object[value];
512
- }
513
- else if( object[value] !== undefined ) {
514
- found = object[value];
515
- return false;
516
- }
517
- else {
518
- module.error(error.method, query);
519
- return false;
520
- }
521
- });
522
- }
523
- if ( $.isFunction( found ) ) {
524
- response = found.apply(context, passedArguments);
525
- }
526
- else if(found !== undefined) {
527
- response = found;
528
- }
529
- if(Array.isArray(returnedValue)) {
530
- returnedValue.push(response);
531
- }
532
- else if(returnedValue !== undefined) {
533
- returnedValue = [returnedValue, response];
534
- }
535
- else if(response !== undefined) {
536
- returnedValue = response;
537
- }
538
- return found;
539
- }
540
- };
541
- if(methodInvoked) {
542
- if(instance === undefined) {
543
- module.initialize();
544
- }
545
- module.invoke(query);
546
- }
547
- else {
548
- if(instance !== undefined) {
549
- instance.invoke('destroy');
550
- }
551
- module.initialize();
552
- }
553
- })
554
- ;
555
- return (returnedValue !== undefined)
556
- ? returnedValue
557
- : this
558
- ;
559
- };
560
-
561
- $.fn.accordion.settings = {
562
-
563
- name : 'Accordion',
564
- namespace : 'accordion',
565
-
566
- silent : false,
567
- debug : false,
568
- verbose : false,
569
- performance : true,
570
-
571
- on : 'click', // event on title that opens accordion
572
-
573
- observeChanges : true, // whether accordion should automatically refresh on DOM insertion
574
-
575
- exclusive : true, // whether a single accordion content panel should be open at once
576
- collapsible : true, // whether accordion content can be closed
577
- closeNested : false, // whether nested content should be closed when a panel is closed
578
- animateChildren : true, // whether children opacity should be animated
579
-
580
- duration : 350, // duration of animation
581
- easing : 'easeOutQuad', // easing equation for animation
582
-
583
- onOpening : function(){}, // callback before open animation
584
- onClosing : function(){}, // callback before closing animation
585
- onChanging : function(){}, // callback before closing or opening animation
586
-
587
- onOpen : function(){}, // callback after open animation
588
- onClose : function(){}, // callback after closing animation
589
- onChange : function(){}, // callback after closing or opening animation
590
-
591
- error: {
592
- method : 'The method you called is not defined'
593
- },
594
-
595
- className : {
596
- active : 'active',
597
- animating : 'animating',
598
- transition: 'transition'
599
- },
600
-
601
- selector : {
602
- accordion : '.accordion',
603
- title : '.title',
604
- trigger : '.title',
605
- content : '.content'
606
- }
607
-
608
- };
609
-
610
- // Adds easing
611
- $.extend( $.easing, {
612
- easeOutQuad: function (x, t, b, c, d) {
613
- return -c *(t/=d)*(t-2) + b;
614
- }
615
- });
616
-
617
- })( jQuery, window, document );
618
-
1
+ /*!
2
+ * # Fomantic-UI 2.9.4 - Accordion
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.accordion = function (parameters) {
23
+ var
24
+ $allModules = $(this),
25
+
26
+ time = Date.now(),
27
+ performance = [],
28
+
29
+ query = arguments[0],
30
+ methodInvoked = typeof query === 'string',
31
+ queryArguments = [].slice.call(arguments, 1),
32
+
33
+ returnedValue
34
+ ;
35
+ $allModules.each(function () {
36
+ var
37
+ settings = $.isPlainObject(parameters)
38
+ ? $.extend(true, {}, $.fn.accordion.settings, parameters)
39
+ : $.extend({}, $.fn.accordion.settings),
40
+
41
+ className = settings.className,
42
+ namespace = settings.namespace,
43
+ selector = settings.selector,
44
+ error = settings.error,
45
+
46
+ eventNamespace = '.' + namespace,
47
+ moduleNamespace = 'module-' + namespace,
48
+
49
+ $module = $(this),
50
+ $title = $module.find(selector.title),
51
+ $content = $module.find(selector.content),
52
+
53
+ element = this,
54
+ instance = $module.data(moduleNamespace),
55
+ observer,
56
+ module
57
+ ;
58
+
59
+ module = {
60
+
61
+ initialize: function () {
62
+ module.debug('Initializing', $module);
63
+ module.bind.events();
64
+ if (settings.observeChanges) {
65
+ module.observeChanges();
66
+ }
67
+ module.instantiate();
68
+ },
69
+
70
+ instantiate: function () {
71
+ instance = module;
72
+ $module
73
+ .data(moduleNamespace, module)
74
+ ;
75
+ },
76
+
77
+ destroy: function () {
78
+ module.debug('Destroying previous instance', $module);
79
+ $module
80
+ .off(eventNamespace)
81
+ .removeData(moduleNamespace)
82
+ ;
83
+ },
84
+
85
+ refresh: function () {
86
+ $title = $module.find(selector.title);
87
+ $content = $module.find(selector.content);
88
+ },
89
+
90
+ observeChanges: function () {
91
+ if ('MutationObserver' in window) {
92
+ observer = new MutationObserver(function (mutations) {
93
+ module.debug('DOM tree modified, updating selector cache');
94
+ module.refresh();
95
+ });
96
+ observer.observe(element, {
97
+ childList: true,
98
+ subtree: true,
99
+ });
100
+ module.debug('Setting up mutation observer', observer);
101
+ }
102
+ },
103
+
104
+ bind: {
105
+ events: function () {
106
+ module.debug('Binding delegated events');
107
+ $module
108
+ .on(settings.on + eventNamespace, selector.trigger, module.event.click)
109
+ ;
110
+ },
111
+ },
112
+
113
+ event: {
114
+ click: function (event) {
115
+ if ($(event.target).closest(selector.ignore).length === 0) {
116
+ module.toggle.call(this);
117
+ }
118
+ },
119
+ },
120
+
121
+ toggle: function (query) {
122
+ var
123
+ $activeTitle = query !== undefined
124
+ ? (typeof query === 'number'
125
+ ? $title.eq(query)
126
+ : $(query).closest(selector.title))
127
+ : $(this).closest(selector.title),
128
+ $activeContent = $activeTitle.next($content),
129
+ isAnimating = $activeContent.hasClass(className.animating),
130
+ isActive = $activeContent.hasClass(className.active),
131
+ isOpen = isActive && !isAnimating,
132
+ isOpening = !isActive && isAnimating
133
+ ;
134
+ module.debug('Toggling visibility of content', $activeTitle);
135
+ if (isOpen || isOpening) {
136
+ if (settings.collapsible) {
137
+ module.close.call($activeTitle);
138
+ } else {
139
+ module.debug('Cannot close accordion content collapsing is disabled');
140
+ }
141
+ } else {
142
+ module.open.call($activeTitle);
143
+ }
144
+ },
145
+
146
+ open: function (query) {
147
+ var
148
+ $activeTitle = query !== undefined
149
+ ? (typeof query === 'number'
150
+ ? $title.eq(query)
151
+ : $(query).closest(selector.title))
152
+ : $(this).closest(selector.title),
153
+ $activeContent = $activeTitle.next($content),
154
+ isAnimating = $activeContent.hasClass(className.animating),
155
+ isActive = $activeContent.hasClass(className.active),
156
+ isOpen = isActive || isAnimating
157
+ ;
158
+ if (isOpen) {
159
+ module.debug('Accordion already open, skipping', $activeContent);
160
+
161
+ return;
162
+ }
163
+ module.debug('Opening accordion content', $activeTitle);
164
+ settings.onOpening.call($activeContent);
165
+ settings.onChanging.call($activeContent);
166
+ if (settings.exclusive) {
167
+ module.closeOthers.call($activeTitle);
168
+ }
169
+ $activeTitle
170
+ .addClass(className.active)
171
+ ;
172
+ $activeContent
173
+ .stop(true, true)
174
+ .addClass(className.animating)
175
+ ;
176
+ if (settings.animateChildren) {
177
+ if ($.fn.transition !== undefined) {
178
+ $activeContent
179
+ .children()
180
+ .transition({
181
+ animation: 'fade in',
182
+ queue: false,
183
+ useFailSafe: true,
184
+ debug: settings.debug,
185
+ verbose: settings.verbose,
186
+ silent: settings.silent,
187
+ duration: settings.duration,
188
+ skipInlineHidden: true,
189
+ onComplete: function () {
190
+ $activeContent.children().removeClass(className.transition);
191
+ },
192
+ })
193
+ ;
194
+ } else {
195
+ $activeContent
196
+ .children()
197
+ .stop(true, true)
198
+ .animate({
199
+ opacity: 1,
200
+ }, settings.duration, module.resetOpacity);
201
+ }
202
+ }
203
+ $activeContent
204
+ .slideDown(settings.duration, settings.easing, function () {
205
+ $activeContent
206
+ .removeClass(className.animating)
207
+ .addClass(className.active)
208
+ ;
209
+ module.reset.display.call(this);
210
+ settings.onOpen.call(this);
211
+ settings.onChange.call(this);
212
+ })
213
+ ;
214
+ },
215
+
216
+ close: function (query) {
217
+ var
218
+ $activeTitle = query !== undefined
219
+ ? (typeof query === 'number'
220
+ ? $title.eq(query)
221
+ : $(query).closest(selector.title))
222
+ : $(this).closest(selector.title),
223
+ $activeContent = $activeTitle.next($content),
224
+ isAnimating = $activeContent.hasClass(className.animating),
225
+ isActive = $activeContent.hasClass(className.active),
226
+ isOpening = !isActive && isAnimating,
227
+ isClosing = isActive && isAnimating
228
+ ;
229
+ if ((isActive || isOpening) && !isClosing) {
230
+ module.debug('Closing accordion content', $activeContent);
231
+ settings.onClosing.call($activeContent);
232
+ settings.onChanging.call($activeContent);
233
+ $activeTitle
234
+ .removeClass(className.active)
235
+ ;
236
+ $activeContent
237
+ .stop(true, true)
238
+ .addClass(className.animating)
239
+ ;
240
+ if (settings.animateChildren) {
241
+ if ($.fn.transition !== undefined) {
242
+ $activeContent
243
+ .children()
244
+ .transition({
245
+ animation: 'fade out',
246
+ queue: false,
247
+ useFailSafe: true,
248
+ debug: settings.debug,
249
+ verbose: settings.verbose,
250
+ silent: settings.silent,
251
+ duration: settings.duration,
252
+ skipInlineHidden: true,
253
+ })
254
+ ;
255
+ } else {
256
+ $activeContent
257
+ .children()
258
+ .stop(true, true)
259
+ .animate({
260
+ opacity: 0,
261
+ }, settings.duration, module.resetOpacity);
262
+ }
263
+ }
264
+ $activeContent
265
+ .slideUp(settings.duration, settings.easing, function () {
266
+ $activeContent
267
+ .removeClass(className.animating)
268
+ .removeClass(className.active)
269
+ ;
270
+ module.reset.display.call(this);
271
+ settings.onClose.call(this);
272
+ settings.onChange.call(this);
273
+ })
274
+ ;
275
+ }
276
+ },
277
+
278
+ closeOthers: function (index) {
279
+ var
280
+ $activeTitle = index !== undefined
281
+ ? $title.eq(index)
282
+ : $(this).closest(selector.title),
283
+ $parentTitles = $activeTitle.parents(selector.content).prev(selector.title),
284
+ $activeAccordion = $activeTitle.closest(selector.accordion),
285
+ activeSelector = selector.title + '.' + className.active + ':visible',
286
+ activeContent = selector.content + '.' + className.active + ':visible',
287
+ $openTitles,
288
+ $nestedTitles,
289
+ $openContents
290
+ ;
291
+ if (settings.closeNested) {
292
+ $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
293
+ $openContents = $openTitles.next($content);
294
+ } else {
295
+ $openTitles = $activeAccordion.find(activeSelector).not($parentTitles);
296
+ $nestedTitles = $activeAccordion.find(activeContent).find(activeSelector).not($parentTitles);
297
+ $openTitles = $openTitles.not($nestedTitles);
298
+ $openContents = $openTitles.next($content);
299
+ }
300
+ if ($openTitles.length > 0) {
301
+ module.debug('Exclusive enabled, closing other content', $openTitles);
302
+ $openTitles
303
+ .removeClass(className.active)
304
+ ;
305
+ $openContents
306
+ .removeClass(className.animating)
307
+ .stop(true, true)
308
+ ;
309
+ if (settings.animateChildren) {
310
+ if ($.fn.transition !== undefined) {
311
+ $openContents
312
+ .children()
313
+ .transition({
314
+ animation: 'fade out',
315
+ useFailSafe: true,
316
+ debug: settings.debug,
317
+ verbose: settings.verbose,
318
+ silent: settings.silent,
319
+ duration: settings.duration,
320
+ skipInlineHidden: true,
321
+ })
322
+ ;
323
+ } else {
324
+ $openContents
325
+ .children()
326
+ .stop(true, true)
327
+ .animate({
328
+ opacity: 0,
329
+ }, settings.duration, module.resetOpacity);
330
+ }
331
+ }
332
+ $openContents
333
+ .slideUp(settings.duration, settings.easing, function () {
334
+ $(this).removeClass(className.active);
335
+ module.reset.display.call(this);
336
+ })
337
+ ;
338
+ }
339
+ },
340
+
341
+ reset: {
342
+
343
+ display: function () {
344
+ module.verbose('Removing inline display from element', this);
345
+ var $element = $(this);
346
+ $element.css('display', '');
347
+ if ($element.attr('style') === '') {
348
+ $element
349
+ .attr('style', '')
350
+ .removeAttr('style')
351
+ ;
352
+ }
353
+ },
354
+
355
+ opacity: function () {
356
+ module.verbose('Removing inline opacity from element', this);
357
+ var $element = $(this);
358
+ $element.css('opacity', '');
359
+ if ($element.attr('style') === '') {
360
+ $element
361
+ .attr('style', '')
362
+ .removeAttr('style')
363
+ ;
364
+ }
365
+ },
366
+
367
+ },
368
+
369
+ setting: function (name, value) {
370
+ module.debug('Changing setting', name, value);
371
+ if ($.isPlainObject(name)) {
372
+ $.extend(true, settings, name);
373
+ } else if (value !== undefined) {
374
+ if ($.isPlainObject(settings[name])) {
375
+ $.extend(true, settings[name], value);
376
+ } else {
377
+ settings[name] = value;
378
+ }
379
+ } else {
380
+ return settings[name];
381
+ }
382
+ },
383
+ internal: function (name, value) {
384
+ module.debug('Changing internal', name, value);
385
+ if (value !== undefined) {
386
+ if ($.isPlainObject(name)) {
387
+ $.extend(true, module, name);
388
+ } else {
389
+ module[name] = value;
390
+ }
391
+ } else {
392
+ return module[name];
393
+ }
394
+ },
395
+ debug: function () {
396
+ if (!settings.silent && settings.debug) {
397
+ if (settings.performance) {
398
+ module.performance.log(arguments);
399
+ } else {
400
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
401
+ module.debug.apply(console, arguments);
402
+ }
403
+ }
404
+ },
405
+ verbose: function () {
406
+ if (!settings.silent && settings.verbose && settings.debug) {
407
+ if (settings.performance) {
408
+ module.performance.log(arguments);
409
+ } else {
410
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
411
+ module.verbose.apply(console, arguments);
412
+ }
413
+ }
414
+ },
415
+ error: function () {
416
+ if (!settings.silent) {
417
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
418
+ module.error.apply(console, arguments);
419
+ }
420
+ },
421
+ performance: {
422
+ log: function (message) {
423
+ var
424
+ currentTime,
425
+ executionTime,
426
+ previousTime
427
+ ;
428
+ if (settings.performance) {
429
+ currentTime = Date.now();
430
+ previousTime = time || currentTime;
431
+ executionTime = currentTime - previousTime;
432
+ time = currentTime;
433
+ performance.push({
434
+ Name: message[0],
435
+ Arguments: [].slice.call(message, 1) || '',
436
+ Element: element,
437
+ 'Execution Time': executionTime,
438
+ });
439
+ }
440
+ clearTimeout(module.performance.timer);
441
+ module.performance.timer = setTimeout(function () {
442
+ module.performance.display();
443
+ }, 500);
444
+ },
445
+ display: function () {
446
+ var
447
+ title = settings.name + ':',
448
+ totalTime = 0
449
+ ;
450
+ time = false;
451
+ clearTimeout(module.performance.timer);
452
+ $.each(performance, function (index, data) {
453
+ totalTime += data['Execution Time'];
454
+ });
455
+ title += ' ' + totalTime + 'ms';
456
+ if (performance.length > 0) {
457
+ console.groupCollapsed(title);
458
+ if (console.table) {
459
+ console.table(performance);
460
+ } else {
461
+ $.each(performance, function (index, data) {
462
+ console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
463
+ });
464
+ }
465
+ console.groupEnd();
466
+ }
467
+ performance = [];
468
+ },
469
+ },
470
+ invoke: function (query, passedArguments, context) {
471
+ var
472
+ object = instance,
473
+ maxDepth,
474
+ found,
475
+ response
476
+ ;
477
+ passedArguments = passedArguments || queryArguments;
478
+ context = context || element;
479
+ if (typeof query === 'string' && object !== undefined) {
480
+ query = query.split(/[ .]/);
481
+ maxDepth = query.length - 1;
482
+ $.each(query, function (depth, value) {
483
+ var camelCaseValue = depth !== maxDepth
484
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
485
+ : query;
486
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
487
+ object = object[camelCaseValue];
488
+ } else if (object[camelCaseValue] !== undefined) {
489
+ found = object[camelCaseValue];
490
+
491
+ return false;
492
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
493
+ object = object[value];
494
+ } else if (object[value] !== undefined) {
495
+ found = object[value];
496
+
497
+ return false;
498
+ } else {
499
+ module.error(error.method, query);
500
+
501
+ return false;
502
+ }
503
+ });
504
+ }
505
+ if (isFunction(found)) {
506
+ response = found.apply(context, passedArguments);
507
+ } else if (found !== undefined) {
508
+ response = found;
509
+ }
510
+ if (Array.isArray(returnedValue)) {
511
+ returnedValue.push(response);
512
+ } else if (returnedValue !== undefined) {
513
+ returnedValue = [returnedValue, response];
514
+ } else if (response !== undefined) {
515
+ returnedValue = response;
516
+ }
517
+
518
+ return found;
519
+ },
520
+ };
521
+ if (methodInvoked) {
522
+ if (instance === undefined) {
523
+ module.initialize();
524
+ }
525
+ module.invoke(query);
526
+ } else {
527
+ if (instance !== undefined) {
528
+ instance.invoke('destroy');
529
+ }
530
+ module.initialize();
531
+ }
532
+ });
533
+
534
+ return returnedValue !== undefined
535
+ ? returnedValue
536
+ : this;
537
+ };
538
+
539
+ $.fn.accordion.settings = {
540
+
541
+ name: 'Accordion',
542
+ namespace: 'accordion',
543
+
544
+ silent: false,
545
+ debug: false,
546
+ verbose: false,
547
+ performance: true,
548
+
549
+ on: 'click', // event on title that opens accordion
550
+
551
+ observeChanges: true, // whether accordion should automatically refresh on DOM insertion
552
+
553
+ exclusive: true, // whether a single accordion content panel should be open at once
554
+ collapsible: true, // whether accordion content can be closed
555
+ closeNested: false, // whether nested content should be closed when a panel is closed
556
+ animateChildren: true, // whether children opacity should be animated
557
+
558
+ duration: 350, // duration of animation
559
+ easing: 'easeOutQuad', // easing equation for animation
560
+
561
+ onOpening: function () {}, // callback before open animation
562
+ onClosing: function () {}, // callback before closing animation
563
+ onChanging: function () {}, // callback before closing or opening animation
564
+
565
+ onOpen: function () {}, // callback after open animation
566
+ onClose: function () {}, // callback after closing animation
567
+ onChange: function () {}, // callback after closing or opening animation
568
+
569
+ error: {
570
+ method: 'The method you called is not defined',
571
+ },
572
+
573
+ className: {
574
+ active: 'active',
575
+ animating: 'animating',
576
+ transition: 'transition',
577
+ },
578
+
579
+ selector: {
580
+ accordion: '.accordion',
581
+ title: '.title',
582
+ trigger: '.title',
583
+ ignore: '.ui.dropdown',
584
+ content: '.content',
585
+ },
586
+
587
+ };
588
+
589
+ // Adds easing
590
+ $.extend($.easing, {
591
+ easeOutQuad: function (x) {
592
+ return 1 - (1 - x) * (1 - x);
593
+ },
594
+ });
595
+ })(jQuery, window, document);