@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.
- package/lib/semantic-ui/dist/components/accordion.css +62 -69
- package/lib/semantic-ui/dist/components/accordion.js +595 -618
- package/lib/semantic-ui/dist/components/accordion.min.css +4 -4
- package/lib/semantic-ui/dist/components/accordion.min.js +6 -6
- package/lib/semantic-ui/dist/components/api.js +1225 -1177
- package/lib/semantic-ui/dist/components/api.min.js +6 -6
- package/lib/semantic-ui/dist/components/button.css +291 -634
- package/lib/semantic-ui/dist/components/button.min.css +4 -4
- package/lib/semantic-ui/dist/components/calendar.css +149 -33
- package/lib/semantic-ui/dist/components/calendar.js +2045 -1774
- package/lib/semantic-ui/dist/components/calendar.min.css +4 -4
- package/lib/semantic-ui/dist/components/calendar.min.js +6 -6
- package/lib/semantic-ui/dist/components/card.css +147 -537
- package/lib/semantic-ui/dist/components/card.min.css +4 -4
- package/lib/semantic-ui/dist/components/checkbox.css +215 -405
- package/lib/semantic-ui/dist/components/checkbox.js +888 -876
- package/lib/semantic-ui/dist/components/checkbox.min.css +4 -4
- package/lib/semantic-ui/dist/components/checkbox.min.js +6 -6
- package/lib/semantic-ui/dist/components/container.css +20 -21
- package/lib/semantic-ui/dist/components/container.min.css +4 -4
- package/lib/semantic-ui/dist/components/dimmer.css +76 -184
- package/lib/semantic-ui/dist/components/dimmer.js +732 -753
- package/lib/semantic-ui/dist/components/dimmer.min.css +4 -4
- package/lib/semantic-ui/dist/components/dimmer.min.js +6 -6
- package/lib/semantic-ui/dist/components/divider.css +81 -88
- package/lib/semantic-ui/dist/components/divider.min.css +4 -4
- package/lib/semantic-ui/dist/components/dropdown.css +431 -450
- package/lib/semantic-ui/dist/components/dropdown.js +4432 -4238
- package/lib/semantic-ui/dist/components/dropdown.min.css +4 -4
- package/lib/semantic-ui/dist/components/dropdown.min.js +6 -6
- package/lib/semantic-ui/dist/components/feed.css +130 -87
- package/lib/semantic-ui/dist/components/feed.min.css +4 -4
- package/lib/semantic-ui/dist/components/flag.css +541 -511
- package/lib/semantic-ui/dist/components/flag.min.css +4 -4
- package/lib/semantic-ui/dist/components/form.css +437 -476
- package/lib/semantic-ui/dist/components/form.js +2199 -2033
- package/lib/semantic-ui/dist/components/form.min.css +4 -4
- package/lib/semantic-ui/dist/components/form.min.js +6 -6
- package/lib/semantic-ui/dist/components/grid.css +151 -306
- package/lib/semantic-ui/dist/components/grid.min.css +4 -4
- package/lib/semantic-ui/dist/components/header.css +82 -99
- package/lib/semantic-ui/dist/components/header.min.css +4 -4
- package/lib/semantic-ui/dist/components/icon.css +2744 -2706
- package/lib/semantic-ui/dist/components/icon.min.css +4 -4
- package/lib/semantic-ui/dist/components/image.css +38 -73
- package/lib/semantic-ui/dist/components/image.min.css +4 -4
- package/lib/semantic-ui/dist/components/input.css +344 -254
- package/lib/semantic-ui/dist/components/input.min.css +4 -4
- package/lib/semantic-ui/dist/components/item.css +91 -139
- package/lib/semantic-ui/dist/components/item.min.css +4 -4
- package/lib/semantic-ui/dist/components/label.css +244 -267
- package/lib/semantic-ui/dist/components/label.min.css +4 -4
- package/lib/semantic-ui/dist/components/list.css +75 -113
- package/lib/semantic-ui/dist/components/list.min.css +4 -4
- package/lib/semantic-ui/dist/components/loader.css +142 -601
- package/lib/semantic-ui/dist/components/loader.min.css +4 -4
- package/lib/semantic-ui/dist/components/menu.css +398 -638
- package/lib/semantic-ui/dist/components/menu.min.css +9 -1
- package/lib/semantic-ui/dist/components/message.css +116 -332
- package/lib/semantic-ui/dist/components/message.min.css +4 -4
- package/lib/semantic-ui/dist/components/modal.css +149 -138
- package/lib/semantic-ui/dist/components/modal.js +1637 -1209
- package/lib/semantic-ui/dist/components/modal.min.css +4 -4
- package/lib/semantic-ui/dist/components/modal.min.js +6 -6
- package/lib/semantic-ui/dist/components/popup.css +284 -277
- package/lib/semantic-ui/dist/components/popup.js +1561 -1541
- package/lib/semantic-ui/dist/components/popup.min.css +4 -4
- package/lib/semantic-ui/dist/components/popup.min.js +6 -6
- package/lib/semantic-ui/dist/components/reset.css +12 -17
- package/lib/semantic-ui/dist/components/reset.min.css +4 -4
- package/lib/semantic-ui/dist/components/search.css +99 -137
- package/lib/semantic-ui/dist/components/search.js +1641 -1565
- package/lib/semantic-ui/dist/components/search.min.css +4 -4
- package/lib/semantic-ui/dist/components/search.min.js +6 -6
- package/lib/semantic-ui/dist/components/segment.css +149 -275
- package/lib/semantic-ui/dist/components/segment.min.css +4 -4
- package/lib/semantic-ui/dist/components/site.css +40 -48
- package/lib/semantic-ui/dist/components/site.js +455 -493
- package/lib/semantic-ui/dist/components/site.min.css +4 -4
- package/lib/semantic-ui/dist/components/site.min.js +6 -6
- package/lib/semantic-ui/dist/components/tab.css +16 -20
- package/lib/semantic-ui/dist/components/tab.js +967 -1001
- package/lib/semantic-ui/dist/components/tab.min.css +4 -4
- package/lib/semantic-ui/dist/components/tab.min.js +6 -6
- package/lib/semantic-ui/dist/components/table.css +465 -424
- package/lib/semantic-ui/dist/components/table.min.css +4 -4
- package/lib/semantic-ui/dist/components/transition.css +264 -1282
- package/lib/semantic-ui/dist/components/transition.js +1034 -1109
- package/lib/semantic-ui/dist/components/transition.min.css +4 -4
- package/lib/semantic-ui/dist/components/transition.min.js +6 -6
- package/lib/semantic-ui/dist/semantic-packed.css +5610 -6590
- package/lib/semantic-ui/dist/semantic.css +8547 -11697
- package/lib/semantic-ui/dist/semantic.full.css +14698 -11227
- package/lib/semantic-ui/dist/semantic.full.min.css +6 -262
- package/lib/semantic-ui/dist/semantic.js +19428 -19253
- package/lib/semantic-ui/dist/semantic.min.css +128 -128
- package/lib/semantic-ui/dist/semantic.min.js +6 -6
- package/lib/semantic-ui/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
- package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff2 +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/lib/semantic-ui/types/fomantic-ui-accordion.d.ts +244 -0
- package/lib/semantic-ui/types/fomantic-ui-api.d.ts +561 -0
- package/lib/semantic-ui/types/fomantic-ui-calendar.d.ts +867 -0
- package/lib/semantic-ui/types/fomantic-ui-checkbox.d.ts +342 -0
- package/lib/semantic-ui/types/fomantic-ui-dimmer.d.ts +408 -0
- package/lib/semantic-ui/types/fomantic-ui-dropdown.d.ts +1221 -0
- package/lib/semantic-ui/types/fomantic-ui-embed.d.ts +343 -0
- package/lib/semantic-ui/types/fomantic-ui-flyout.d.ts +539 -0
- package/lib/semantic-ui/types/fomantic-ui-form.d.ts +759 -0
- package/lib/semantic-ui/types/fomantic-ui-modal.d.ts +567 -0
- package/lib/semantic-ui/types/fomantic-ui-nag.d.ts +270 -0
- package/lib/semantic-ui/types/fomantic-ui-popup.d.ts +549 -0
- package/lib/semantic-ui/types/fomantic-ui-progress.d.ts +465 -0
- package/lib/semantic-ui/types/fomantic-ui-rating.d.ts +187 -0
- package/lib/semantic-ui/types/fomantic-ui-search.d.ts +612 -0
- package/lib/semantic-ui/types/fomantic-ui-shape.d.ts +274 -0
- package/lib/semantic-ui/types/fomantic-ui-sidebar.d.ts +402 -0
- package/lib/semantic-ui/types/fomantic-ui-slider.d.ts +368 -0
- package/lib/semantic-ui/types/fomantic-ui-sticky.d.ts +215 -0
- package/lib/semantic-ui/types/fomantic-ui-tab.d.ts +361 -0
- package/lib/semantic-ui/types/fomantic-ui-toast.d.ts +526 -0
- package/lib/semantic-ui/types/fomantic-ui-transition.d.ts +389 -0
- package/lib/semantic-ui/types/fomantic-ui-visibility.d.ts +355 -0
- package/lib/semantic-ui/types/index.d.ts +63 -0
- package/package.json +19 -8
- package/lib/semantic-ui/dist/components/shape.css +0 -160
- package/lib/semantic-ui/dist/components/shape.js +0 -848
- package/lib/semantic-ui/dist/components/shape.min.css +0 -9
- package/lib/semantic-ui/dist/components/shape.min.js +0 -11
- package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.eot +0 -0
- package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.svg +0 -450
- package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
- package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.eot +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.svg +0 -4938
- package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
- package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
- package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.svg +0 -200
- package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.woff +0 -0
- package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.eot +0 -0
- package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.svg +0 -2373
- package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.ttf +0 -0
- package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff +0 -0
- package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff2 +0 -0
- /package/lib/semantic-ui/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
|
@@ -1,618 +1,595 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* # Fomantic-UI - Accordion
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
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);
|