fomantic-ui 2.9.4-beta.3 → 2.9.4-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +20 -1
- package/.eslintrc.js +17 -0
- package/.github/workflows/ci.yml +5 -5
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/CONTRIBUTORS.md +2 -0
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +4 -2
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +7 -3
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +19 -3
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +4 -2
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +4 -2
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +4 -2
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +15 -17
- package/dist/components/dropdown.js +18 -8
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +4 -2
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +4 -2
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +15 -5
- package/dist/components/form.js +42 -17
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +5 -5
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +4 -1
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +30 -10
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -2
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -2
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +7 -3
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +7 -3
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -2
- package/dist/components/popup.js +10 -4
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -2
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +4 -2
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +7 -3
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +4 -2
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +4 -2
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +4 -2
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +4 -2
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +4 -2
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +4 -2
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +4 -2
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +4 -2
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +7 -3
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +4 -2
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +143 -92
- package/dist/semantic.js +175 -80
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
- package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
- package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
- package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
- package/package.json +3 -3
- package/src/definitions/behaviors/api.js +6 -2
- package/src/definitions/behaviors/form.js +41 -16
- package/src/definitions/behaviors/state.js +3 -1
- package/src/definitions/behaviors/visibility.js +3 -1
- package/src/definitions/collections/form.less +14 -4
- package/src/definitions/collections/grid.less +4 -4
- package/src/definitions/elements/button.less +25 -3
- package/src/definitions/elements/header.less +5 -0
- package/src/definitions/elements/input.less +14 -6
- package/src/definitions/globals/site.js +3 -1
- package/src/definitions/modules/accordion.js +3 -1
- package/src/definitions/modules/calendar.js +3 -1
- package/src/definitions/modules/checkbox.js +3 -1
- package/src/definitions/modules/dimmer.js +3 -1
- package/src/definitions/modules/dropdown.js +17 -7
- package/src/definitions/modules/dropdown.less +2 -2
- package/src/definitions/modules/embed.js +3 -1
- package/src/definitions/modules/flyout.js +3 -1
- package/src/definitions/modules/modal.js +6 -2
- package/src/definitions/modules/nag.js +6 -2
- package/src/definitions/modules/popup.js +9 -3
- package/src/definitions/modules/progress.js +3 -1
- package/src/definitions/modules/rating.js +3 -1
- package/src/definitions/modules/search.js +6 -2
- package/src/definitions/modules/shape.js +3 -1
- package/src/definitions/modules/sidebar.js +3 -1
- package/src/definitions/modules/slider.js +3 -1
- package/src/definitions/modules/sticky.js +3 -1
- package/src/definitions/modules/tab.js +3 -1
- package/src/definitions/modules/toast.js +3 -1
- package/src/definitions/modules/transition.js +6 -2
- package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
- package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
- package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- package/src/themes/default/collections/form.variables +1 -0
- package/src/themes/default/elements/button.variables +2 -0
- package/src/themes/default/globals/variation.variables +1 -0
- package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
- package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
- package/types/fomantic-ui-accordion.d.ts +1 -1
- package/types/fomantic-ui-api.d.ts +9 -3
- package/types/fomantic-ui-calendar.d.ts +93 -8
- package/types/fomantic-ui-checkbox.d.ts +14 -4
- package/types/fomantic-ui-dimmer.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +30 -35
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +24 -10
- package/types/fomantic-ui-form.d.ts +123 -15
- package/types/fomantic-ui-modal.d.ts +75 -5
- package/types/fomantic-ui-nag.d.ts +4 -4
- package/types/fomantic-ui-popup.d.ts +11 -11
- package/types/fomantic-ui-progress.d.ts +12 -6
- package/types/fomantic-ui-rating.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +31 -13
- package/types/fomantic-ui-shape.d.ts +2 -2
- package/types/fomantic-ui-sidebar.d.ts +4 -4
- package/types/fomantic-ui-slider.d.ts +1 -1
- package/types/fomantic-ui-sticky.d.ts +1 -1
- package/types/fomantic-ui-tab.d.ts +5 -5
- package/types/fomantic-ui-toast.d.ts +7 -2
- package/types/fomantic-ui-transition.d.ts +29 -1
- package/types/fomantic-ui-visibility.d.ts +3 -3
- package/types/index.d.ts +25 -25
- package/types/tests.ts +188 -0
- package/types/tsconfig.json +1 -1
- package/types/fomantic-ui-tests.ts +0 -25
@@ -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,
|
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,
|
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
|
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:
|
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:
|
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
|
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 |
|
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,
|
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;
|