fomantic-ui 2.9.1-beta.8 → 2.9.1

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 (521) hide show
  1. package/.eslint/eqeqeq-rule.js +18 -0
  2. package/.eslint/index.js +29 -0
  3. package/.eslint/no-extra-parens-rule.js +17 -0
  4. package/.eslint/package.json +11 -0
  5. package/.eslintrc.js +123 -0
  6. package/.github/auto_assign.yml +0 -1
  7. package/.github/workflows/ci.yml +37 -4
  8. package/.github/workflows/nightly.yml +1 -1
  9. package/.github/workflows/release.yml +1 -1
  10. package/.prettierrc.js +12 -0
  11. package/.stylelintrc.js +48 -0
  12. package/CHANGELOG.md +112 -0
  13. package/README.md +1 -1
  14. package/dist/components/accordion.css +35 -53
  15. package/dist/components/accordion.js +568 -595
  16. package/dist/components/accordion.min.css +2 -2
  17. package/dist/components/accordion.min.js +3 -3
  18. package/dist/components/ad.css +34 -45
  19. package/dist/components/ad.min.css +2 -2
  20. package/dist/components/api.js +1157 -1179
  21. package/dist/components/api.min.js +3 -3
  22. package/dist/components/breadcrumb.css +5 -5
  23. package/dist/components/breadcrumb.min.css +2 -2
  24. package/dist/components/button.css +709 -1111
  25. package/dist/components/button.min.css +2 -2
  26. package/dist/components/calendar.css +24 -27
  27. package/dist/components/calendar.js +1934 -1809
  28. package/dist/components/calendar.min.css +2 -2
  29. package/dist/components/calendar.min.js +3 -3
  30. package/dist/components/card.css +219 -365
  31. package/dist/components/card.min.css +2 -2
  32. package/dist/components/checkbox.css +120 -191
  33. package/dist/components/checkbox.js +842 -841
  34. package/dist/components/checkbox.min.css +2 -2
  35. package/dist/components/checkbox.min.js +3 -3
  36. package/dist/components/comment.css +41 -59
  37. package/dist/components/comment.min.css +2 -2
  38. package/dist/components/container.css +7 -6
  39. package/dist/components/container.min.css +2 -2
  40. package/dist/components/dimmer.css +53 -172
  41. package/dist/components/dimmer.js +706 -737
  42. package/dist/components/dimmer.min.css +2 -2
  43. package/dist/components/dimmer.min.js +3 -3
  44. package/dist/components/divider.css +43 -61
  45. package/dist/components/divider.min.css +2 -2
  46. package/dist/components/dropdown.css +252 -386
  47. package/dist/components/dropdown.js +4195 -4236
  48. package/dist/components/dropdown.min.css +2 -2
  49. package/dist/components/dropdown.min.js +3 -3
  50. package/dist/components/embed.css +18 -29
  51. package/dist/components/embed.js +645 -675
  52. package/dist/components/embed.min.css +2 -2
  53. package/dist/components/embed.min.js +3 -3
  54. package/dist/components/emoji.css +3556 -3556
  55. package/dist/components/emoji.min.css +1 -1
  56. package/dist/components/feed.css +35 -57
  57. package/dist/components/feed.min.css +2 -2
  58. package/dist/components/flag.css +270 -268
  59. package/dist/components/flag.min.css +2 -2
  60. package/dist/components/flyout.css +95 -141
  61. package/dist/components/flyout.js +1514 -1465
  62. package/dist/components/flyout.min.css +2 -2
  63. package/dist/components/flyout.min.js +3 -3
  64. package/dist/components/form.css +244 -339
  65. package/dist/components/form.js +2022 -2004
  66. package/dist/components/form.min.css +2 -2
  67. package/dist/components/form.min.js +3 -3
  68. package/dist/components/grid.css +183 -329
  69. package/dist/components/grid.min.css +2 -2
  70. package/dist/components/header.css +118 -142
  71. package/dist/components/header.min.css +2 -2
  72. package/dist/components/icon.css +662 -745
  73. package/dist/components/icon.min.css +2 -2
  74. package/dist/components/image.css +39 -63
  75. package/dist/components/image.min.css +2 -2
  76. package/dist/components/input.css +356 -274
  77. package/dist/components/input.min.css +2 -2
  78. package/dist/components/item.css +84 -131
  79. package/dist/components/item.min.css +2 -2
  80. package/dist/components/label.css +359 -410
  81. package/dist/components/label.min.css +2 -2
  82. package/dist/components/list.css +49 -70
  83. package/dist/components/list.min.css +2 -2
  84. package/dist/components/loader.css +67 -155
  85. package/dist/components/loader.min.css +2 -2
  86. package/dist/components/menu.css +270 -431
  87. package/dist/components/menu.min.css +1 -1
  88. package/dist/components/message.css +125 -197
  89. package/dist/components/message.min.css +2 -2
  90. package/dist/components/modal.css +120 -154
  91. package/dist/components/modal.js +1544 -1486
  92. package/dist/components/modal.min.css +2 -2
  93. package/dist/components/modal.min.js +3 -3
  94. package/dist/components/nag.css +53 -63
  95. package/dist/components/nag.js +520 -526
  96. package/dist/components/nag.min.css +2 -2
  97. package/dist/components/nag.min.js +3 -3
  98. package/dist/components/placeholder.css +22 -42
  99. package/dist/components/placeholder.min.css +2 -2
  100. package/dist/components/popup.css +424 -202
  101. package/dist/components/popup.js +1456 -1456
  102. package/dist/components/popup.min.css +2 -2
  103. package/dist/components/popup.min.js +3 -3
  104. package/dist/components/progress.css +106 -211
  105. package/dist/components/progress.js +969 -997
  106. package/dist/components/progress.min.css +2 -2
  107. package/dist/components/progress.min.js +3 -3
  108. package/dist/components/rail.css +15 -20
  109. package/dist/components/rail.min.css +1 -1
  110. package/dist/components/rating.css +80 -121
  111. package/dist/components/rating.js +507 -523
  112. package/dist/components/rating.min.css +2 -2
  113. package/dist/components/rating.min.js +3 -3
  114. package/dist/components/reset.css +8 -13
  115. package/dist/components/reset.min.css +2 -2
  116. package/dist/components/reveal.css +44 -83
  117. package/dist/components/reveal.min.css +2 -2
  118. package/dist/components/search.css +69 -98
  119. package/dist/components/search.js +1520 -1534
  120. package/dist/components/search.min.css +2 -2
  121. package/dist/components/search.min.js +3 -3
  122. package/dist/components/segment.css +148 -224
  123. package/dist/components/segment.min.css +2 -2
  124. package/dist/components/shape.css +14 -30
  125. package/dist/components/shape.js +783 -810
  126. package/dist/components/shape.min.css +2 -2
  127. package/dist/components/shape.min.js +3 -3
  128. package/dist/components/sidebar.css +103 -206
  129. package/dist/components/sidebar.js +1061 -1099
  130. package/dist/components/sidebar.min.css +2 -2
  131. package/dist/components/sidebar.min.js +3 -3
  132. package/dist/components/site.css +28 -41
  133. package/dist/components/site.js +436 -476
  134. package/dist/components/site.min.css +2 -2
  135. package/dist/components/site.min.js +3 -3
  136. package/dist/components/slider.css +93 -121
  137. package/dist/components/slider.js +1310 -1311
  138. package/dist/components/slider.min.css +1 -1
  139. package/dist/components/slider.min.js +3 -3
  140. package/dist/components/state.js +638 -657
  141. package/dist/components/state.min.js +3 -3
  142. package/dist/components/statistic.css +75 -116
  143. package/dist/components/statistic.min.css +2 -2
  144. package/dist/components/step.css +77 -150
  145. package/dist/components/step.min.css +2 -2
  146. package/dist/components/sticky.css +1 -5
  147. package/dist/components/sticky.js +847 -901
  148. package/dist/components/sticky.min.css +2 -2
  149. package/dist/components/sticky.min.js +3 -3
  150. package/dist/components/tab.css +10 -14
  151. package/dist/components/tab.js +902 -966
  152. package/dist/components/tab.min.css +2 -2
  153. package/dist/components/tab.min.js +3 -3
  154. package/dist/components/table.css +547 -774
  155. package/dist/components/table.min.css +2 -2
  156. package/dist/components/text.css +32 -32
  157. package/dist/components/text.min.css +1 -1
  158. package/dist/components/toast.css +69 -147
  159. package/dist/components/toast.js +910 -884
  160. package/dist/components/toast.min.css +2 -2
  161. package/dist/components/toast.min.js +3 -3
  162. package/dist/components/transition.css +299 -1356
  163. package/dist/components/transition.js +1048 -1077
  164. package/dist/components/transition.min.css +2 -2
  165. package/dist/components/transition.min.js +3 -3
  166. package/dist/components/visibility.js +1213 -1245
  167. package/dist/components/visibility.min.js +3 -3
  168. package/dist/semantic.css +9344 -12298
  169. package/dist/semantic.js +29181 -29423
  170. package/dist/semantic.min.css +3 -3
  171. package/dist/semantic.min.js +3 -3
  172. package/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
  173. package/dist/themes/github/assets/fonts/octicons.woff2 +0 -0
  174. package/examples/.eslintrc.js +6 -0
  175. package/examples/assets/library/jquery.min.js +2 -4
  176. package/examples/assets/show-examples.js +13 -13
  177. package/examples/attached.html +1 -1
  178. package/examples/bootstrap.html +1 -1
  179. package/examples/components/button.html +1 -1
  180. package/examples/components/card.html +6 -6
  181. package/examples/components/input.html +1 -1
  182. package/examples/components/menu.html +1 -1
  183. package/examples/components/site.html +1 -1
  184. package/examples/components/sticky-context.html +2 -2
  185. package/examples/components/table.html +1 -1
  186. package/examples/fixed.html +3 -3
  187. package/examples/grid.html +5 -5
  188. package/examples/homepage.html +1 -1
  189. package/examples/login.html +2 -2
  190. package/examples/responsive.html +2 -2
  191. package/examples/sticky.html +4 -4
  192. package/examples/theming.html +1 -1
  193. package/gulpfile.js +13 -11
  194. package/package.json +17 -8
  195. package/scripts/nightly-version.js +83 -75
  196. package/src/_site/collections/menu.overrides +1 -1
  197. package/src/_site/elements/flag.variables +2 -2
  198. package/src/_site/globals/site.variables +1 -1
  199. package/src/_site/modules/embed.variables +3 -0
  200. package/src/definitions/behaviors/api.js +1158 -1180
  201. package/src/definitions/behaviors/form.js +2021 -2003
  202. package/src/definitions/behaviors/state.js +644 -663
  203. package/src/definitions/behaviors/visibility.js +1212 -1244
  204. package/src/definitions/collections/breadcrumb.less +43 -47
  205. package/src/definitions/collections/form.less +866 -884
  206. package/src/definitions/collections/grid.less +1681 -1699
  207. package/src/definitions/collections/menu.less +1522 -1544
  208. package/src/definitions/collections/message.less +294 -298
  209. package/src/definitions/collections/table.less +1657 -1661
  210. package/src/definitions/elements/button.less +1716 -1750
  211. package/src/definitions/elements/container.less +211 -211
  212. package/src/definitions/elements/divider.less +198 -211
  213. package/src/definitions/elements/emoji.less +41 -48
  214. package/src/definitions/elements/flag.less +46 -48
  215. package/src/definitions/elements/header.less +351 -359
  216. package/src/definitions/elements/icon.less +541 -484
  217. package/src/definitions/elements/image.less +216 -227
  218. package/src/definitions/elements/input.less +692 -699
  219. package/src/definitions/elements/label.less +784 -806
  220. package/src/definitions/elements/list.less +810 -814
  221. package/src/definitions/elements/loader.less +273 -268
  222. package/src/definitions/elements/placeholder.less +173 -170
  223. package/src/definitions/elements/rail.less +93 -93
  224. package/src/definitions/elements/reveal.less +192 -198
  225. package/src/definitions/elements/segment.less +742 -749
  226. package/src/definitions/elements/step.less +423 -437
  227. package/src/definitions/elements/text.less +34 -36
  228. package/src/definitions/globals/reset.less +11 -8
  229. package/src/definitions/globals/site.js +435 -475
  230. package/src/definitions/globals/site.less +108 -110
  231. package/src/definitions/modules/accordion.js +567 -594
  232. package/src/definitions/modules/accordion.less +244 -248
  233. package/src/definitions/modules/calendar.js +1933 -1808
  234. package/src/definitions/modules/calendar.less +100 -97
  235. package/src/definitions/modules/checkbox.js +841 -840
  236. package/src/definitions/modules/checkbox.less +531 -552
  237. package/src/definitions/modules/dimmer.js +705 -736
  238. package/src/definitions/modules/dimmer.less +294 -305
  239. package/src/definitions/modules/dropdown.js +4194 -4235
  240. package/src/definitions/modules/dropdown.less +1568 -1598
  241. package/src/definitions/modules/embed.js +644 -674
  242. package/src/definitions/modules/embed.less +82 -84
  243. package/src/definitions/modules/flyout.js +1513 -1464
  244. package/src/definitions/modules/flyout.less +453 -455
  245. package/src/definitions/modules/modal.js +1543 -1485
  246. package/src/definitions/modules/modal.less +459 -467
  247. package/src/definitions/modules/nag.js +519 -525
  248. package/src/definitions/modules/nag.less +136 -149
  249. package/src/definitions/modules/popup.js +1455 -1455
  250. package/src/definitions/modules/popup.less +738 -693
  251. package/src/definitions/modules/progress.js +968 -996
  252. package/src/definitions/modules/progress.less +523 -499
  253. package/src/definitions/modules/rating.js +506 -522
  254. package/src/definitions/modules/rating.less +98 -103
  255. package/src/definitions/modules/search.js +1519 -1533
  256. package/src/definitions/modules/search.less +374 -394
  257. package/src/definitions/modules/shape.js +782 -809
  258. package/src/definitions/modules/shape.less +70 -79
  259. package/src/definitions/modules/sidebar.js +1060 -1098
  260. package/src/definitions/modules/sidebar.less +463 -476
  261. package/src/definitions/modules/slider.js +1309 -1310
  262. package/src/definitions/modules/slider.less +309 -310
  263. package/src/definitions/modules/sticky.js +863 -917
  264. package/src/definitions/modules/sticky.less +17 -25
  265. package/src/definitions/modules/tab.js +901 -965
  266. package/src/definitions/modules/tab.less +48 -54
  267. package/src/definitions/modules/toast.js +909 -883
  268. package/src/definitions/modules/toast.less +589 -589
  269. package/src/definitions/modules/transition.js +1047 -1076
  270. package/src/definitions/modules/transition.less +58 -59
  271. package/src/definitions/views/ad.less +207 -208
  272. package/src/definitions/views/card.less +955 -973
  273. package/src/definitions/views/comment.less +192 -200
  274. package/src/definitions/views/feed.less +222 -226
  275. package/src/definitions/views/item.less +437 -448
  276. package/src/definitions/views/statistic.less +273 -279
  277. package/src/semantic.less +8 -6
  278. package/src/theme.config.example +53 -53
  279. package/src/theme.less +44 -35
  280. package/src/themes/amazon/elements/button.overrides +23 -24
  281. package/src/themes/amazon/elements/button.variables +18 -23
  282. package/src/themes/amazon/globals/site.variables +16 -17
  283. package/src/themes/basic/assets/fonts/icons.woff2 +0 -0
  284. package/src/themes/basic/collections/table.overrides +0 -1
  285. package/src/themes/basic/collections/table.variables +3 -3
  286. package/src/themes/basic/elements/button.overrides +0 -1
  287. package/src/themes/basic/elements/button.variables +9 -9
  288. package/src/themes/basic/elements/icon.overrides +9 -169
  289. package/src/themes/basic/elements/icon.variables +161 -18
  290. package/src/themes/basic/elements/step.overrides +2 -2
  291. package/src/themes/basic/elements/step.variables +2 -2
  292. package/src/themes/basic/globals/reset.overrides +1 -1
  293. package/src/themes/basic/globals/reset.variables +1 -1
  294. package/src/themes/basic/modules/progress.variables +2 -2
  295. package/src/themes/basic/views/card.overrides +0 -1
  296. package/src/themes/basic/views/card.variables +6 -6
  297. package/src/themes/bookish/elements/header.overrides +4 -4
  298. package/src/themes/bookish/elements/header.variables +5 -5
  299. package/src/themes/bootstrap3/elements/button.overrides +3 -0
  300. package/src/themes/bootstrap3/elements/button.variables +20 -25
  301. package/src/themes/chubby/collections/form.overrides +9 -9
  302. package/src/themes/chubby/collections/form.variables +3 -3
  303. package/src/themes/chubby/collections/menu.overrides +3 -0
  304. package/src/themes/chubby/collections/menu.variables +3 -3
  305. package/src/themes/chubby/elements/button.overrides +8 -10
  306. package/src/themes/chubby/elements/button.variables +10 -10
  307. package/src/themes/chubby/elements/header.overrides +1 -1
  308. package/src/themes/chubby/elements/header.variables +4 -4
  309. package/src/themes/chubby/modules/accordion.overrides +2 -2
  310. package/src/themes/chubby/modules/accordion.variables +4 -4
  311. package/src/themes/chubby/views/comment.overrides +5 -5
  312. package/src/themes/chubby/views/comment.variables +11 -11
  313. package/src/themes/classic/collections/table.variables +3 -3
  314. package/src/themes/classic/elements/button.variables +36 -43
  315. package/src/themes/classic/elements/header.variables +4 -4
  316. package/src/themes/classic/modules/progress.variables +3 -3
  317. package/src/themes/classic/views/card.overrides +25 -27
  318. package/src/themes/classic/views/card.variables +7 -7
  319. package/src/themes/colored/modules/checkbox.overrides +3 -0
  320. package/src/themes/colored/modules/checkbox.variables +1 -3
  321. package/src/themes/default/collections/breadcrumb.variables +4 -4
  322. package/src/themes/default/collections/form.variables +15 -16
  323. package/src/themes/default/collections/grid.overrides +0 -1
  324. package/src/themes/default/collections/grid.variables +15 -16
  325. package/src/themes/default/collections/menu.variables +31 -45
  326. package/src/themes/default/collections/message.variables +84 -123
  327. package/src/themes/default/collections/table.overrides +3 -0
  328. package/src/themes/default/collections/table.variables +30 -34
  329. package/src/themes/default/elements/button.variables +44 -53
  330. package/src/themes/default/elements/container.variables +8 -16
  331. package/src/themes/default/elements/divider.overrides +8 -9
  332. package/src/themes/default/elements/divider.variables +5 -6
  333. package/src/themes/default/elements/emoji.overrides +0 -1
  334. package/src/themes/default/elements/emoji.variables +3556 -3556
  335. package/src/themes/default/elements/flag.variables +1595 -1595
  336. package/src/themes/default/elements/header.overrides +0 -1
  337. package/src/themes/default/elements/header.variables +21 -21
  338. package/src/themes/default/elements/icon.variables +2016 -2012
  339. package/src/themes/default/elements/image.variables +6 -7
  340. package/src/themes/default/elements/input.variables +11 -12
  341. package/src/themes/default/elements/label.variables +25 -26
  342. package/src/themes/default/elements/list.variables +17 -21
  343. package/src/themes/default/elements/loader.variables +16 -17
  344. package/src/themes/default/elements/placeholder.variables +12 -9
  345. package/src/themes/default/elements/rail.variables +4 -5
  346. package/src/themes/default/elements/reveal.variables +1 -1
  347. package/src/themes/default/elements/segment.variables +24 -36
  348. package/src/themes/default/elements/step.overrides +4 -4
  349. package/src/themes/default/elements/step.variables +19 -22
  350. package/src/themes/default/elements/text.variables +2 -3
  351. package/src/themes/default/globals/colors.less +588 -588
  352. package/src/themes/default/globals/reset.overrides +63 -59
  353. package/src/themes/default/globals/reset.variables +1 -1
  354. package/src/themes/default/globals/site.variables +1074 -1123
  355. package/src/themes/default/globals/variation.variables +6 -4
  356. package/src/themes/default/modules/accordion.overrides +11 -11
  357. package/src/themes/default/modules/accordion.variables +15 -20
  358. package/src/themes/default/modules/calendar.variables +2 -0
  359. package/src/themes/default/modules/chatroom.variables +1 -1
  360. package/src/themes/default/modules/checkbox.overrides +9 -13
  361. package/src/themes/default/modules/checkbox.variables +24 -33
  362. package/src/themes/default/modules/dimmer.variables +14 -17
  363. package/src/themes/default/modules/dropdown.overrides +17 -17
  364. package/src/themes/default/modules/dropdown.variables +29 -31
  365. package/src/themes/default/modules/embed.variables +9 -13
  366. package/src/themes/default/modules/flyout.variables +10 -8
  367. package/src/themes/default/modules/modal.variables +64 -67
  368. package/src/themes/default/modules/nag.variables +11 -14
  369. package/src/themes/default/modules/popup.variables +14 -13
  370. package/src/themes/default/modules/progress.variables +17 -19
  371. package/src/themes/default/modules/rating.variables +10 -12
  372. package/src/themes/default/modules/search.variables +12 -17
  373. package/src/themes/default/modules/shape.variables +7 -8
  374. package/src/themes/default/modules/sidebar.variables +4 -4
  375. package/src/themes/default/modules/slider.variables +55 -54
  376. package/src/themes/default/modules/sticky.variables +1 -1
  377. package/src/themes/default/modules/toast.variables +8 -8
  378. package/src/themes/default/modules/transition.overrides +936 -915
  379. package/src/themes/default/modules/transition.variables +1 -1
  380. package/src/themes/default/views/ad.variables +1 -1
  381. package/src/themes/default/views/card.variables +33 -45
  382. package/src/themes/default/views/comment.variables +7 -9
  383. package/src/themes/default/views/feed.variables +10 -10
  384. package/src/themes/default/views/item.variables +20 -23
  385. package/src/themes/default/views/statistic.variables +8 -8
  386. package/src/themes/duo/elements/loader.variables +1 -1
  387. package/src/themes/famfamfam/elements/flag.overrides +263 -268
  388. package/src/themes/famfamfam/elements/flag.variables +4 -4
  389. package/src/themes/fixed-width/collections/grid.variables +4 -4
  390. package/src/themes/fixed-width/modules/modal.variables +11 -13
  391. package/src/themes/flat/collections/form.overrides +9 -9
  392. package/src/themes/flat/collections/form.variables +16 -17
  393. package/src/themes/flat/globals/site.variables +69 -74
  394. package/src/themes/github/assets/fonts/octicons.woff2 +0 -0
  395. package/src/themes/github/collections/breadcrumb.variables +0 -1
  396. package/src/themes/github/collections/form.overrides +7 -8
  397. package/src/themes/github/collections/form.variables +16 -18
  398. package/src/themes/github/collections/grid.variables +1 -2
  399. package/src/themes/github/collections/menu.overrides +2 -2
  400. package/src/themes/github/collections/menu.variables +24 -26
  401. package/src/themes/github/collections/message.overrides +3 -3
  402. package/src/themes/github/collections/message.variables +12 -14
  403. package/src/themes/github/collections/table.variables +2 -2
  404. package/src/themes/github/elements/button.overrides +0 -1
  405. package/src/themes/github/elements/button.variables +26 -30
  406. package/src/themes/github/elements/header.variables +2 -2
  407. package/src/themes/github/elements/icon.overrides +3 -208
  408. package/src/themes/github/elements/icon.variables +234 -19
  409. package/src/themes/github/elements/image.variables +1 -1
  410. package/src/themes/github/elements/input.overrides +16 -16
  411. package/src/themes/github/elements/input.variables +4 -5
  412. package/src/themes/github/elements/label.overrides +3 -3
  413. package/src/themes/github/elements/label.variables +0 -1
  414. package/src/themes/github/elements/segment.variables +9 -10
  415. package/src/themes/github/elements/step.overrides +13 -13
  416. package/src/themes/github/elements/step.variables +6 -6
  417. package/src/themes/github/globals/site.variables +16 -16
  418. package/src/themes/github/modules/dropdown.overrides +18 -19
  419. package/src/themes/github/modules/dropdown.variables +8 -10
  420. package/src/themes/github/modules/popup.variables +0 -2
  421. package/src/themes/gmail/collections/message.overrides +3 -0
  422. package/src/themes/gmail/collections/message.variables +4 -4
  423. package/src/themes/instagram/views/card.overrides +4 -5
  424. package/src/themes/instagram/views/card.variables +7 -8
  425. package/src/themes/joypixels/elements/emoji.overrides +0 -2
  426. package/src/themes/joypixels/elements/emoji.variables +3554 -3554
  427. package/src/themes/material/collections/menu.overrides +1 -1
  428. package/src/themes/material/collections/menu.variables +4 -4
  429. package/src/themes/material/elements/button.overrides +7 -9
  430. package/src/themes/material/elements/button.variables +44 -46
  431. package/src/themes/material/elements/header.overrides +3 -3
  432. package/src/themes/material/elements/header.variables +8 -10
  433. package/src/themes/material/elements/icon.overrides +3 -934
  434. package/src/themes/material/elements/icon.variables +958 -18
  435. package/src/themes/material/globals/site.overrides +3 -0
  436. package/src/themes/material/globals/site.variables +83 -84
  437. package/src/themes/material/modules/dropdown.overrides +2 -2
  438. package/src/themes/material/modules/dropdown.variables +5 -5
  439. package/src/themes/material/modules/modal.overrides +3 -3
  440. package/src/themes/material/modules/modal.variables +4 -5
  441. package/src/themes/pulsar/elements/loader.overrides +23 -61
  442. package/src/themes/raised/elements/button.variables +8 -9
  443. package/src/themes/resetcss/globals/reset.overrides +115 -33
  444. package/src/themes/resetcss/globals/reset.variables +1 -1
  445. package/src/themes/round/elements/button.overrides +3 -0
  446. package/src/themes/round/elements/button.variables +33 -38
  447. package/src/themes/rtl/globals/site.overrides +1 -1
  448. package/src/themes/rtl/globals/site.variables +5 -6
  449. package/src/themes/striped/modules/progress.overrides +20 -16
  450. package/src/themes/systemfont/globals/reset.overrides +1 -1
  451. package/src/themes/systemfont/globals/site.variables +6 -6
  452. package/src/themes/timeline/views/feed.overrides +12 -12
  453. package/src/themes/timeline/views/feed.variables +8 -8
  454. package/src/themes/twitter/elements/button.overrides +4 -5
  455. package/src/themes/twitter/elements/button.variables +17 -18
  456. package/src/themes/twitter/elements/emoji.variables +3556 -3556
  457. package/tasks/.eslintrc.js +9 -0
  458. package/tasks/README.md +2 -4
  459. package/tasks/admin/components/create.js +268 -277
  460. package/tasks/admin/components/init.js +123 -129
  461. package/tasks/admin/components/update.js +151 -158
  462. package/tasks/admin/distributions/create.js +183 -189
  463. package/tasks/admin/distributions/init.js +125 -131
  464. package/tasks/admin/distributions/update.js +147 -153
  465. package/tasks/admin/publish.js +5 -9
  466. package/tasks/admin/register.js +37 -39
  467. package/tasks/admin/release.js +8 -12
  468. package/tasks/build/assets.js +43 -40
  469. package/tasks/build/css.js +230 -217
  470. package/tasks/build/javascript.js +120 -114
  471. package/tasks/build.js +11 -11
  472. package/tasks/check-install.js +15 -17
  473. package/tasks/clean.js +6 -6
  474. package/tasks/collections/README.md +3 -5
  475. package/tasks/collections/admin.js +34 -36
  476. package/tasks/collections/build.js +19 -21
  477. package/tasks/collections/docs.js +11 -13
  478. package/tasks/collections/install.js +11 -13
  479. package/tasks/collections/rtl.js +9 -12
  480. package/tasks/collections/various.js +10 -12
  481. package/tasks/config/admin/github.js +17 -19
  482. package/tasks/config/admin/oauth.example.js +4 -4
  483. package/tasks/config/admin/release.js +98 -98
  484. package/tasks/config/admin/templates/README.md +8 -8
  485. package/tasks/config/admin/templates/bower.json +3 -2
  486. package/tasks/config/admin/templates/component-package.js +9 -10
  487. package/tasks/config/admin/templates/css-package.js +19 -21
  488. package/tasks/config/admin/templates/less-package.js +12 -14
  489. package/tasks/config/admin/templates/package.json +6 -6
  490. package/tasks/config/defaults.js +116 -116
  491. package/tasks/config/docs.js +23 -23
  492. package/tasks/config/npm/gulpfile.js +15 -14
  493. package/tasks/config/project/config.js +124 -136
  494. package/tasks/config/project/install.js +722 -719
  495. package/tasks/config/project/release.js +34 -41
  496. package/tasks/config/tasks.js +168 -167
  497. package/tasks/config/user.js +28 -32
  498. package/tasks/docs/build.js +100 -96
  499. package/tasks/docs/metadata.js +91 -98
  500. package/tasks/docs/serve.js +84 -82
  501. package/tasks/install.js +373 -382
  502. package/tasks/rtl/build.js +4 -3
  503. package/tasks/rtl/watch.js +4 -3
  504. package/tasks/version.js +4 -6
  505. package/tasks/watch.js +29 -31
  506. package/test/.eslintrc.js +23 -0
  507. package/test/meteor/assets.js +11 -14
  508. package/test/meteor/fonts.js +12 -13
  509. package/test/modules/accordion.spec.js +6 -8
  510. package/test/modules/checkbox.spec.js +5 -7
  511. package/test/modules/dropdown.spec.js +5 -7
  512. package/test/modules/modal.spec.js +6 -8
  513. package/test/modules/module.spec.js +158 -178
  514. package/test/modules/popup.spec.js +5 -7
  515. package/test/modules/search.spec.js +5 -7
  516. package/test/modules/shape.spec.js +5 -7
  517. package/test/modules/sidebar.spec.js +5 -7
  518. package/test/modules/tab.spec.js +6 -8
  519. package/test/modules/transition.spec.js +5 -7
  520. package/test/modules/video.spec.js +5 -7
  521. package/.github/workflows/codeql.yml +0 -68
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.9.1-beta.8+edc5e7e - Site
2
+ * # Fomantic-UI 2.9.1 - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -8,486 +8,446 @@
8
8
  *
9
9
  */
10
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
- },
11
+ (function ($, window, document) {
12
+ 'use strict';
13
+
14
+ function isFunction(obj) {
15
+ return typeof obj === 'function' && typeof obj.nodeType !== 'number';
16
+ }
97
17
 
98
- moduleExists: function(name) {
99
- return ($.fn[name] !== undefined && $.fn[name].settings !== undefined);
100
- },
18
+ window = window !== undefined && window.Math === Math
19
+ ? window
20
+ : globalThis;
101
21
 
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) {
22
+ $.fn.site = function (parameters) {
119
23
  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
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
143
47
  ;
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
- }
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(module.performance.display, 500);
296
+ },
297
+ display: function () {
298
+ var
299
+ title = settings.name + ':',
300
+ totalTime = 0
301
+ ;
302
+ time = false;
303
+ clearTimeout(module.performance.timer);
304
+ $.each(performance, function (index, data) {
305
+ totalTime += data['Execution Time'];
306
+ });
307
+ title += ' ' + totalTime + 'ms';
308
+ if (performance.length > 0) {
309
+ console.groupCollapsed(title);
310
+ if (console.table) {
311
+ console.table(performance);
312
+ } else {
313
+ $.each(performance, function (index, data) {
314
+ console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
315
+ });
316
+ }
317
+ console.groupEnd();
318
+ }
319
+ performance = [];
320
+ },
321
+ },
322
+ invoke: function (query, passedArguments, context) {
323
+ var
324
+ object = instance,
325
+ maxDepth,
326
+ found,
327
+ response
328
+ ;
329
+ passedArguments = passedArguments || queryArguments;
330
+ context = context || element;
331
+ if (typeof query === 'string' && object !== undefined) {
332
+ query = query.split(/[ .]/);
333
+ maxDepth = query.length - 1;
334
+ $.each(query, function (depth, value) {
335
+ var camelCaseValue = depth !== maxDepth
336
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
337
+ : query
338
+ ;
339
+ if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
340
+ object = object[camelCaseValue];
341
+ } else if (object[camelCaseValue] !== undefined) {
342
+ found = object[camelCaseValue];
343
+
344
+ return false;
345
+ } else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
346
+ object = object[value];
347
+ } else if (object[value] !== undefined) {
348
+ found = object[value];
349
+
350
+ return false;
351
+ } else {
352
+ module.error(error.method, query);
353
+
354
+ return false;
355
+ }
356
+ });
357
+ }
358
+ if (isFunction(found)) {
359
+ response = found.apply(context, passedArguments);
360
+ } else if (found !== undefined) {
361
+ response = found;
362
+ }
363
+ if (Array.isArray(returnedValue)) {
364
+ returnedValue.push(response);
365
+ } else if (returnedValue !== undefined) {
366
+ returnedValue = [returnedValue, response];
367
+ } else if (response !== undefined) {
368
+ returnedValue = response;
369
+ }
370
+
371
+ return found;
372
+ },
373
+ };
374
+
375
+ if (methodInvoked) {
376
+ if (instance === undefined) {
377
+ module.initialize();
160
378
  }
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
- }
379
+ module.invoke(query);
380
+ } else {
381
+ if (instance !== undefined) {
382
+ module.destroy();
186
383
  }
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);
384
+ module.initialize();
295
385
  }
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 = context || element;
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
386
 
493
- })( jQuery, window, document );
387
+ return returnedValue !== undefined
388
+ ? returnedValue
389
+ : this;
390
+ };
391
+ $.site = $.fn.site;
392
+
393
+ $.site.settings = {
394
+
395
+ name: 'Site',
396
+ namespace: 'site',
397
+
398
+ error: {
399
+ console: 'Console cannot be restored, most likely it was overwritten outside of module',
400
+ method: 'The method you called is not defined.',
401
+ },
402
+
403
+ debug: false,
404
+ verbose: false,
405
+ performance: true,
406
+
407
+ modules: [
408
+ 'accordion',
409
+ 'api',
410
+ 'calendar',
411
+ 'checkbox',
412
+ 'dimmer',
413
+ 'dropdown',
414
+ 'embed',
415
+ 'flyout',
416
+ 'form',
417
+ 'modal',
418
+ 'nag',
419
+ 'popup',
420
+ 'progress',
421
+ 'rating',
422
+ 'search',
423
+ 'shape',
424
+ 'sidebar',
425
+ 'slider',
426
+ 'state',
427
+ 'sticky',
428
+ 'tab',
429
+ 'toast',
430
+ 'transition',
431
+ 'visibility',
432
+ ],
433
+
434
+ siteNamespace: 'site',
435
+ namespaceStub: {
436
+ cache: {},
437
+ config: {},
438
+ sections: {},
439
+ section: {},
440
+ utilities: {},
441
+ },
442
+
443
+ };
444
+
445
+ // allows for selection of elements with data attributes
446
+ $.extend($.expr.pseudos, {
447
+ data: $.expr.createPseudo(function (dataName) {
448
+ return function (elem) {
449
+ return !!$.data(elem, dataName);
450
+ };
451
+ }),
452
+ });
453
+ })(jQuery, window, document);