fomantic-ui 2.9.4-beta.4 → 2.9.4-beta.41

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 (242) hide show
  1. package/.all-contributorsrc +20 -1
  2. package/.eslintrc.js +17 -0
  3. package/.github/FUNDING.yml +1 -1
  4. package/.github/workflows/ci.yml +5 -5
  5. package/.github/workflows/nightly.yml +1 -1
  6. package/.github/workflows/release.yml +1 -1
  7. package/CONTRIBUTORS.md +2 -0
  8. package/dist/components/accordion.css +1 -1
  9. package/dist/components/accordion.js +4 -2
  10. package/dist/components/accordion.min.css +1 -1
  11. package/dist/components/accordion.min.js +2 -2
  12. package/dist/components/ad.css +1 -1
  13. package/dist/components/ad.min.css +1 -1
  14. package/dist/components/api.js +7 -3
  15. package/dist/components/api.min.js +2 -2
  16. package/dist/components/breadcrumb.css +1 -1
  17. package/dist/components/breadcrumb.min.css +1 -1
  18. package/dist/components/button.css +19 -3
  19. package/dist/components/button.min.css +2 -2
  20. package/dist/components/calendar.css +1 -1
  21. package/dist/components/calendar.js +4 -2
  22. package/dist/components/calendar.min.css +1 -1
  23. package/dist/components/calendar.min.js +2 -2
  24. package/dist/components/card.css +1 -1
  25. package/dist/components/card.min.css +1 -1
  26. package/dist/components/checkbox.css +1 -1
  27. package/dist/components/checkbox.js +10 -4
  28. package/dist/components/checkbox.min.css +1 -1
  29. package/dist/components/checkbox.min.js +3 -3
  30. package/dist/components/comment.css +1 -1
  31. package/dist/components/comment.min.css +1 -1
  32. package/dist/components/container.css +1 -1
  33. package/dist/components/container.min.css +1 -1
  34. package/dist/components/dimmer.css +1 -1
  35. package/dist/components/dimmer.js +4 -2
  36. package/dist/components/dimmer.min.css +1 -1
  37. package/dist/components/dimmer.min.js +2 -2
  38. package/dist/components/divider.css +1 -1
  39. package/dist/components/divider.min.css +1 -1
  40. package/dist/components/dropdown.css +18 -20
  41. package/dist/components/dropdown.js +99 -31
  42. package/dist/components/dropdown.min.css +2 -2
  43. package/dist/components/dropdown.min.js +3 -3
  44. package/dist/components/embed.css +1 -1
  45. package/dist/components/embed.js +17 -7
  46. package/dist/components/embed.min.css +1 -1
  47. package/dist/components/embed.min.js +3 -3
  48. package/dist/components/emoji.css +1 -1
  49. package/dist/components/emoji.min.css +1 -1
  50. package/dist/components/feed.css +1 -1
  51. package/dist/components/feed.min.css +1 -1
  52. package/dist/components/flag.css +1 -1
  53. package/dist/components/flag.min.css +1 -1
  54. package/dist/components/flyout.css +1 -1
  55. package/dist/components/flyout.js +4 -2
  56. package/dist/components/flyout.min.css +1 -1
  57. package/dist/components/flyout.min.js +2 -2
  58. package/dist/components/form.css +15 -5
  59. package/dist/components/form.js +42 -17
  60. package/dist/components/form.min.css +2 -2
  61. package/dist/components/form.min.js +3 -3
  62. package/dist/components/grid.css +5 -5
  63. package/dist/components/grid.min.css +2 -2
  64. package/dist/components/header.css +4 -1
  65. package/dist/components/header.min.css +2 -2
  66. package/dist/components/icon.css +1 -1
  67. package/dist/components/icon.min.css +1 -1
  68. package/dist/components/image.css +1 -1
  69. package/dist/components/image.min.css +1 -1
  70. package/dist/components/input.css +30 -10
  71. package/dist/components/input.min.css +2 -2
  72. package/dist/components/item.css +1 -1
  73. package/dist/components/item.min.css +1 -1
  74. package/dist/components/label.css +1 -2
  75. package/dist/components/label.min.css +2 -2
  76. package/dist/components/list.css +1 -1
  77. package/dist/components/list.min.css +1 -1
  78. package/dist/components/loader.css +1 -1
  79. package/dist/components/loader.min.css +1 -1
  80. package/dist/components/menu.css +1 -2
  81. package/dist/components/menu.min.css +2 -2
  82. package/dist/components/message.css +1 -1
  83. package/dist/components/message.min.css +1 -1
  84. package/dist/components/modal.css +1 -1
  85. package/dist/components/modal.js +7 -3
  86. package/dist/components/modal.min.css +1 -1
  87. package/dist/components/modal.min.js +2 -2
  88. package/dist/components/nag.css +1 -1
  89. package/dist/components/nag.js +11 -5
  90. package/dist/components/nag.min.css +1 -1
  91. package/dist/components/nag.min.js +3 -3
  92. package/dist/components/placeholder.css +1 -1
  93. package/dist/components/placeholder.min.css +1 -1
  94. package/dist/components/popup.css +1 -2
  95. package/dist/components/popup.js +10 -4
  96. package/dist/components/popup.min.css +2 -2
  97. package/dist/components/popup.min.js +2 -2
  98. package/dist/components/progress.css +1 -1
  99. package/dist/components/progress.js +4 -2
  100. package/dist/components/progress.min.css +1 -1
  101. package/dist/components/progress.min.js +2 -2
  102. package/dist/components/rail.css +1 -1
  103. package/dist/components/rail.min.css +1 -1
  104. package/dist/components/rating.css +1 -1
  105. package/dist/components/rating.js +4 -2
  106. package/dist/components/rating.min.css +1 -1
  107. package/dist/components/rating.min.js +2 -2
  108. package/dist/components/reset.css +1 -1
  109. package/dist/components/reset.min.css +1 -1
  110. package/dist/components/reveal.css +1 -1
  111. package/dist/components/reveal.min.css +1 -1
  112. package/dist/components/search.css +1 -1
  113. package/dist/components/search.js +64 -12
  114. package/dist/components/search.min.css +1 -1
  115. package/dist/components/search.min.js +3 -3
  116. package/dist/components/segment.css +1 -1
  117. package/dist/components/segment.min.css +1 -1
  118. package/dist/components/shape.css +1 -1
  119. package/dist/components/shape.js +4 -2
  120. package/dist/components/shape.min.css +1 -1
  121. package/dist/components/shape.min.js +2 -2
  122. package/dist/components/sidebar.css +1 -1
  123. package/dist/components/sidebar.js +4 -2
  124. package/dist/components/sidebar.min.css +1 -1
  125. package/dist/components/sidebar.min.js +2 -2
  126. package/dist/components/site.css +1 -1
  127. package/dist/components/site.js +4 -2
  128. package/dist/components/site.min.css +1 -1
  129. package/dist/components/site.min.js +2 -2
  130. package/dist/components/slider.css +1 -1
  131. package/dist/components/slider.js +4 -2
  132. package/dist/components/slider.min.css +1 -1
  133. package/dist/components/slider.min.js +2 -2
  134. package/dist/components/state.js +4 -2
  135. package/dist/components/state.min.js +2 -2
  136. package/dist/components/statistic.css +1 -1
  137. package/dist/components/statistic.min.css +1 -1
  138. package/dist/components/step.css +1 -1
  139. package/dist/components/step.min.css +1 -1
  140. package/dist/components/sticky.css +1 -1
  141. package/dist/components/sticky.js +4 -2
  142. package/dist/components/sticky.min.css +1 -1
  143. package/dist/components/sticky.min.js +2 -2
  144. package/dist/components/tab.css +1 -1
  145. package/dist/components/tab.js +4 -2
  146. package/dist/components/tab.min.css +1 -1
  147. package/dist/components/tab.min.js +2 -2
  148. package/dist/components/table.css +7 -7
  149. package/dist/components/table.min.css +2 -2
  150. package/dist/components/text.css +1 -1
  151. package/dist/components/text.min.css +1 -1
  152. package/dist/components/toast.css +1 -1
  153. package/dist/components/toast.js +4 -2
  154. package/dist/components/toast.min.css +1 -1
  155. package/dist/components/toast.min.js +2 -2
  156. package/dist/components/transition.css +1 -1
  157. package/dist/components/transition.js +7 -3
  158. package/dist/components/transition.min.css +1 -1
  159. package/dist/components/transition.min.js +2 -2
  160. package/dist/components/visibility.js +4 -2
  161. package/dist/components/visibility.min.js +2 -2
  162. package/dist/semantic.css +152 -101
  163. package/dist/semantic.js +336 -121
  164. package/dist/semantic.min.css +3 -3
  165. package/dist/semantic.min.js +3 -3
  166. package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  167. package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  168. package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  169. package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
  170. package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
  171. package/package.json +3 -3
  172. package/src/definitions/behaviors/api.js +6 -2
  173. package/src/definitions/behaviors/form.js +41 -16
  174. package/src/definitions/behaviors/state.js +3 -1
  175. package/src/definitions/behaviors/visibility.js +3 -1
  176. package/src/definitions/collections/form.less +14 -4
  177. package/src/definitions/collections/grid.less +4 -4
  178. package/src/definitions/collections/table.less +6 -6
  179. package/src/definitions/elements/button.less +25 -3
  180. package/src/definitions/elements/header.less +5 -0
  181. package/src/definitions/elements/input.less +14 -6
  182. package/src/definitions/globals/site.js +3 -1
  183. package/src/definitions/modules/accordion.js +3 -1
  184. package/src/definitions/modules/calendar.js +3 -1
  185. package/src/definitions/modules/checkbox.js +9 -3
  186. package/src/definitions/modules/dimmer.js +3 -1
  187. package/src/definitions/modules/dropdown.js +98 -30
  188. package/src/definitions/modules/dropdown.less +12 -5
  189. package/src/definitions/modules/embed.js +16 -6
  190. package/src/definitions/modules/flyout.js +3 -1
  191. package/src/definitions/modules/modal.js +6 -2
  192. package/src/definitions/modules/nag.js +10 -4
  193. package/src/definitions/modules/popup.js +9 -3
  194. package/src/definitions/modules/progress.js +3 -1
  195. package/src/definitions/modules/rating.js +3 -1
  196. package/src/definitions/modules/search.js +63 -11
  197. package/src/definitions/modules/search.less +9 -2
  198. package/src/definitions/modules/shape.js +3 -1
  199. package/src/definitions/modules/sidebar.js +3 -1
  200. package/src/definitions/modules/slider.js +3 -1
  201. package/src/definitions/modules/sticky.js +3 -1
  202. package/src/definitions/modules/tab.js +3 -1
  203. package/src/definitions/modules/toast.js +3 -1
  204. package/src/definitions/modules/transition.js +6 -2
  205. package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
  206. package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  207. package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  208. package/src/themes/default/collections/form.variables +1 -0
  209. package/src/themes/default/elements/button.variables +2 -0
  210. package/src/themes/default/globals/site.variables +3 -0
  211. package/src/themes/default/globals/variation.variables +3 -0
  212. package/src/themes/default/modules/dropdown.variables +3 -0
  213. package/src/themes/default/modules/search.variables +3 -0
  214. package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
  215. package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
  216. package/types/fomantic-ui-accordion.d.ts +1 -1
  217. package/types/fomantic-ui-api.d.ts +9 -3
  218. package/types/fomantic-ui-calendar.d.ts +93 -8
  219. package/types/fomantic-ui-checkbox.d.ts +14 -4
  220. package/types/fomantic-ui-dimmer.d.ts +1 -1
  221. package/types/fomantic-ui-dropdown.d.ts +36 -35
  222. package/types/fomantic-ui-embed.d.ts +1 -1
  223. package/types/fomantic-ui-flyout.d.ts +24 -10
  224. package/types/fomantic-ui-form.d.ts +123 -15
  225. package/types/fomantic-ui-modal.d.ts +75 -5
  226. package/types/fomantic-ui-nag.d.ts +4 -4
  227. package/types/fomantic-ui-popup.d.ts +11 -11
  228. package/types/fomantic-ui-progress.d.ts +12 -6
  229. package/types/fomantic-ui-rating.d.ts +1 -1
  230. package/types/fomantic-ui-search.d.ts +43 -13
  231. package/types/fomantic-ui-shape.d.ts +2 -2
  232. package/types/fomantic-ui-sidebar.d.ts +4 -4
  233. package/types/fomantic-ui-slider.d.ts +1 -1
  234. package/types/fomantic-ui-sticky.d.ts +1 -1
  235. package/types/fomantic-ui-tab.d.ts +5 -5
  236. package/types/fomantic-ui-toast.d.ts +7 -2
  237. package/types/fomantic-ui-transition.d.ts +29 -1
  238. package/types/fomantic-ui-visibility.d.ts +3 -3
  239. package/types/index.d.ts +25 -25
  240. package/types/tests.ts +188 -0
  241. package/types/tsconfig.json +1 -1
  242. package/types/fomantic-ui-tests.ts +0 -25
@@ -82,6 +82,7 @@
82
82
  @variationHeaderDividing: true;
83
83
  @variationHeaderBlock: true;
84
84
  @variationHeaderAttached: true;
85
+ @variationHeaderSeamless: true;
85
86
  @variationHeaderTags: h1, h2, h3, h4, h5, h6;
86
87
  @variationHeaderSizes: @variationAllSizes;
87
88
  @variationHeaderColors: @variationAllColors;
@@ -572,6 +573,7 @@
572
573
  @variationDropdownPointing: true;
573
574
  @variationDropdownColumnar: true;
574
575
  @variationDropdownScrollhint: true;
576
+ @variationDropdownHighlightMatches: false;
575
577
  @variationDropdownSizes: @variationAllSizes;
576
578
 
577
579
  /* Embed */
@@ -677,6 +679,7 @@
677
679
  @variationSearchVeryLong: true;
678
680
  @variationSearchResizable: true;
679
681
  @variationSearchScrolling: true;
682
+ @variationSearchHighlightMatches: false;
680
683
  @variationSearchSizes: @variationAllSizes;
681
684
 
682
685
  /* Shape */
@@ -480,3 +480,6 @@
480
480
 
481
481
  /* Resizable */
482
482
  @resizableDirection: vertical;
483
+
484
+ @highlightMatchesBackground: @defaultHighlightMatchesBackground;
485
+ @highlightMatchesColor: @defaultHighlightMatchesColor;
@@ -177,3 +177,6 @@
177
177
 
178
178
  /* Resizable */
179
179
  @resizableDirection: vertical;
180
+
181
+ @highlightMatchesBackground: @defaultHighlightMatchesBackground;
182
+ @highlightMatchesColor: @defaultHighlightMatchesColor;
@@ -0,0 +1,94 @@
1
+ (c) 2012-2015 GitHub
2
+ with Reserved Font Name Opticons.
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -28,7 +28,7 @@ declare namespace FomanticUI {
28
28
  (behavior: 'toggle', index: number): JQuery;
29
29
 
30
30
  (behavior: 'destroy'): JQuery;
31
- <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<AccordionSettings, keyof AccordionSettings>>;
31
+ <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<AccordionSettings, keyof AccordionSettings>>;
32
32
  <K extends keyof AccordionSettings>(behavior: 'setting', name: K, value: AccordionSettings[K]): JQuery;
33
33
  (behavior: 'setting', value: Partial<Pick<AccordionSettings, keyof AccordionSettings>>): JQuery;
34
34
  (settings?: Partial<Pick<AccordionSettings, keyof AccordionSettings>>): JQuery;
@@ -107,7 +107,7 @@ declare namespace FomanticUI {
107
107
  */
108
108
  (behavior: 'destroy'): JQuery;
109
109
 
110
- <K extends keyof APISettings | JQueryAjaxSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>;
110
+ <K extends keyof APISettings | JQueryAjaxSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>;
111
111
  <K extends keyof APISettings>(behavior: 'setting', name: K, value: APISettings[K]): JQuery;
112
112
  (behavior: 'setting', value: Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>): JQuery;
113
113
  (settings?: Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>): JQuery;
@@ -125,6 +125,12 @@ declare namespace FomanticUI {
125
125
  */
126
126
  on: string;
127
127
 
128
+ /**
129
+ * Object containing all templates endpoints
130
+ * @default {}
131
+ */
132
+ api: {[key: string]: string};
133
+
128
134
  /**
129
135
  * Can be set to 'local' to cache successful returned AJAX responses when using a JSON API.
130
136
  * This helps avoid server roundtrips when API endpoints will return the same results when accessed repeatedly.
@@ -137,7 +143,7 @@ declare namespace FomanticUI {
137
143
  * UI state will be applied to this element, defaults to triggering element.
138
144
  * @default false
139
145
  */
140
- stateContext: false | JQuery;
146
+ stateContext: false | string | JQuery<any>;
141
147
 
142
148
  /**
143
149
  * Whether to encode parameters with 'encodeURIComponent' before adding into url string.
@@ -259,7 +265,7 @@ declare namespace FomanticUI {
259
265
  * Method for transmitting request to server.
260
266
  * @default 'get'
261
267
  */
262
- method: 'get' | 'post' | 'put' | 'delete' | 'head' | 'options' | 'patch';
268
+ method: Uppercase<'get' | 'post' | 'put' | 'delete' | 'head' | 'options' | 'patch'> | Lowercase<'get' | 'post' | 'put' | 'delete' | 'head' | 'options' | 'patch'>;
263
269
 
264
270
  /**
265
271
  * Expected data type of response.
@@ -37,7 +37,7 @@ declare namespace FomanticUI {
37
37
  * Pass false to updateInput to disable updating the input.
38
38
  * Pass false to fireChange to disable the onBeforeChange and onChange callbacks for this change
39
39
  */
40
- (behavior: 'set date', date: string, updateInput: boolean, fireChange: boolean): JQuery;
40
+ (behavior: 'set date', date: Date | string | null, updateInput?: boolean, fireChange?: boolean): JQuery;
41
41
 
42
42
  /**
43
43
  * Get the current selection mode (year, month, day, hour, minute)
@@ -82,12 +82,12 @@ declare namespace FomanticUI {
82
82
  /**
83
83
  * Set the minimal selectable date
84
84
  */
85
- (behavior: 'set minDate', date: Date | string): JQuery;
85
+ (behavior: 'set minDate', date: Date | string | null): JQuery;
86
86
 
87
87
  /**
88
88
  * Set the maximal selectable date
89
89
  */
90
- (behavior: 'set maxDate', date: Date | string): JQuery;
90
+ (behavior: 'set maxDate', date: Date | string | null): JQuery;
91
91
 
92
92
  (behavior: 'destroy'): JQuery;
93
93
 
@@ -214,7 +214,7 @@ declare namespace FomanticUI {
214
214
  *
215
215
  * @default null
216
216
  */
217
- initialDate: null | Date;
217
+ initialDate: Date | string | null;
218
218
 
219
219
  /**
220
220
  * Display mode to start in, can be 'year', 'month', 'day', 'hour', 'minute' (false = 'day').
@@ -319,12 +319,14 @@ declare namespace FomanticUI {
319
319
  *
320
320
  * @default false
321
321
  */
322
- selectAdjacentDays: 5 | 10 | 15 | 20 | 30;
322
+ selectAdjacentDays: boolean;
323
323
 
324
324
  popupOptions: Calendar.PopupSettings;
325
325
 
326
326
  text: Calendar.TextSettings;
327
327
 
328
+ formatter: Calendar.FormatterSettings;
329
+
328
330
  // endregion
329
331
 
330
332
  // region Callbacks
@@ -333,12 +335,12 @@ declare namespace FomanticUI {
333
335
  * Is called before a calendar date changes. 'return false;' will cancel the change.
334
336
  * @since 2.8.0
335
337
  */
336
- onBeforeChange(this: JQuery): void;
338
+ onBeforeChange(this: JQuery, date?: Date, text?: string, mode?: string): void;
337
339
 
338
340
  /**
339
341
  * Is called after a calendar date has changed.
340
342
  */
341
- onChange(this: JQuery): void;
343
+ onChange(this: JQuery, date?: Date): void;
342
344
 
343
345
  /**
344
346
  * Is called before a calendar is shown. 'return false;' will prevent the calendar to be shown.
@@ -364,7 +366,7 @@ declare namespace FomanticUI {
364
366
  * Is called when a cell of the calendar is selected providing its value and current mode.
365
367
  * 'return false;' will prevent the selection.
366
368
  */
367
- onSelect(this: JQuery, date: Date, mode: string): void;
369
+ onSelect(this: JQuery, date?: Date, mode?: string): void;
368
370
 
369
371
  // endregion
370
372
 
@@ -436,6 +438,7 @@ declare namespace FomanticUI {
436
438
  namespace Calendar {
437
439
  type PopupSettings = Partial<Pick<Settings.Popup, keyof Settings.Popup>>;
438
440
  type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
441
+ type FormatterSettings = Partial<Pick<Settings.Formatters, keyof Settings.Formatters>>;
439
442
  type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
440
443
  type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
441
444
  type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
@@ -471,6 +474,16 @@ declare namespace FomanticUI {
471
474
  */
472
475
  days: string[];
473
476
 
477
+ /**
478
+ * @default ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
479
+ */
480
+ dayNamesShort: string[];
481
+
482
+ /**
483
+ * @default ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
484
+ */
485
+ dayNames: string[];
486
+
474
487
  /**
475
488
  * @default ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
476
489
  */
@@ -507,6 +520,78 @@ declare namespace FomanticUI {
507
520
  weekNo: string;
508
521
  }
509
522
 
523
+ interface Formatters {
524
+ /**
525
+ *
526
+ */
527
+ yearHeader(date: Date, settings?: CalendarSettings): string;
528
+
529
+ /**
530
+ * @default 'YYYY'
531
+ */
532
+ monthHeader: string;
533
+
534
+ /**
535
+ * @default 'MMMM YYYY'
536
+ */
537
+ dayHeader: string;
538
+
539
+ /**
540
+ * @default 'MMMM D, YYYY'
541
+ */
542
+ hourHeader: string;
543
+
544
+ /**
545
+ * @default 'MMMM D, YYYY'
546
+ */
547
+ minuteHeader: string;
548
+
549
+ /**
550
+ * @default 'MMMM D, YYYY'
551
+ */
552
+ dayColumnHeader(day: number, settings: CalendarSettings): string;
553
+
554
+ /**
555
+ * @default 'MMMM D, YYYY h:mm A'
556
+ */
557
+ datetime: string;
558
+
559
+ /**
560
+ * @default 'MMMM D, YYYY'
561
+ */
562
+ date: string;
563
+
564
+ /**
565
+ * @default 'h:mm A'
566
+ */
567
+ time: string;
568
+
569
+ /**
570
+ * @default 'h:mm A'
571
+ */
572
+ cellTime: string;
573
+
574
+ /**
575
+ * @default 'MMMM YYYY'
576
+ */
577
+ month: string;
578
+
579
+ /**
580
+ * @default 'YYYY'
581
+ */
582
+ year: string;
583
+
584
+ /**
585
+ *
586
+ */
587
+ today(settings: CalendarSettings): string;
588
+
589
+ /**
590
+ *
591
+ */
592
+ cell(cell: string, date: Date, cellOptions: any): any
593
+ }
594
+
510
595
  interface Selectors {
511
596
  /**
512
597
  * @default '.ui.popup'
@@ -32,6 +32,11 @@ declare namespace FomanticUI {
32
32
  */
33
33
  (behavior: 'enable'): JQuery;
34
34
 
35
+ /**
36
+ * Disable interaction with a checkbox.
37
+ */
38
+ (behavior: 'disable'): JQuery;
39
+
35
40
  /**
36
41
  * Set a checkbox state to checked without callbacks.
37
42
  */
@@ -82,6 +87,11 @@ declare namespace FomanticUI {
82
87
  */
83
88
  (behavior: 'is unchecked'): boolean;
84
89
 
90
+ /**
91
+ * Returns whether element is not determinate.
92
+ */
93
+ (behavior: 'is indeterminate'): boolean;
94
+
85
95
  /**
86
96
  * Returns whether element is able to be changed.
87
97
  */
@@ -175,22 +185,22 @@ declare namespace FomanticUI {
175
185
  /**
176
186
  * Callback before a checkbox is checked. Can cancel change by returning 'false'.
177
187
  */
178
- beforeChecked(this: JQuery): void | false;
188
+ beforeChecked(this: JQuery): void | Promise<void> | boolean;
179
189
 
180
190
  /**
181
191
  * Callback before a checkbox is set to indeterminate. Can cancel change by returning 'false'.
182
192
  */
183
- beforeIndeterminate(this: JQuery): void | false;
193
+ beforeIndeterminate(this: JQuery): void | Promise<void> | false;
184
194
 
185
195
  /**
186
196
  * Callback before a checkbox is set to determinate. Can cancel change by returning 'false'.
187
197
  */
188
- beforeDeterminate(this: JQuery): void | false;
198
+ beforeDeterminate(this: JQuery): void | Promise<void> | false;
189
199
 
190
200
  /**
191
201
  * Callback before a checkbox is unchecked. Can cancel change by returning 'false'.
192
202
  */
193
- beforeUnchecked(this: JQuery): void | false;
203
+ beforeUnchecked(this: JQuery): void | Promise<void> | false;
194
204
 
195
205
  /**
196
206
  * Callback after a checkbox is enabled.
@@ -113,7 +113,7 @@ declare namespace FomanticUI {
113
113
  (behavior: 'set disabled'): JQuery;
114
114
 
115
115
  (behavior: 'destroy'): JQuery;
116
- <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
116
+ <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
117
117
  <K extends keyof DimmerSettings>(behavior: 'setting', name: K, value: DimmerSettings[K]): JQuery;
118
118
  (behavior: 'setting', value: Partial<Pick<DimmerSettings, keyof DimmerSettings>>): JQuery;
119
119
  (settings?: Partial<Pick<DimmerSettings, keyof DimmerSettings>>): JQuery;