fomantic-ui 2.9.3-beta.46 → 2.9.3-beta.47
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/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- 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 +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- 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 +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- 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 +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- 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 +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- 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 -1
- package/dist/components/menu.min.css +1 -1
- 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 +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- 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 +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- 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 +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- 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 +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- 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 +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- 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 +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +53 -53
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +1 -1
- package/types/fomantic-ui-accordion.d.ts +166 -172
- package/types/fomantic-ui-api.d.ts +418 -470
- package/types/fomantic-ui-calendar.d.ts +425 -479
- package/types/fomantic-ui-checkbox.d.ts +148 -194
- package/types/fomantic-ui-dimmer.d.ts +188 -265
- package/types/fomantic-ui-dropdown.d.ts +447 -666
- package/types/fomantic-ui-embed.d.ts +243 -289
- package/types/fomantic-ui-flyout.d.ts +259 -292
- package/types/fomantic-ui-form.d.ts +478 -607
- package/types/fomantic-ui-modal.d.ts +389 -471
- package/types/fomantic-ui-nag.d.ts +228 -277
- package/types/fomantic-ui-popup.d.ts +438 -534
- package/types/fomantic-ui-progress.d.ts +278 -352
- package/types/fomantic-ui-rating.d.ts +137 -168
- package/types/fomantic-ui-search.d.ts +359 -453
- package/types/fomantic-ui-shape.d.ts +152 -194
- package/types/fomantic-ui-sidebar.d.ts +315 -391
- package/types/fomantic-ui-slider.d.ts +259 -322
- package/types/fomantic-ui-sticky.d.ts +198 -244
- package/types/fomantic-ui-tab.d.ts +284 -350
- package/types/fomantic-ui-tests.ts +4 -2
- package/types/fomantic-ui-toast.d.ts +318 -424
- package/types/fomantic-ui-transition.d.ts +223 -273
- package/types/fomantic-ui-visibility.d.ts +286 -353
- package/types/index.d.ts +0 -1
@@ -113,187 +113,161 @@ declare namespace FomanticUI {
|
|
113
113
|
(behavior: 'should allow indeterminate'): boolean;
|
114
114
|
|
115
115
|
(behavior: 'destroy'): JQuery;
|
116
|
-
<K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value?: undefined): CheckboxSettings
|
117
|
-
<K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value: CheckboxSettings
|
118
|
-
(behavior: 'setting', value: CheckboxSettings): JQuery;
|
119
|
-
(settings?: CheckboxSettings): JQuery;
|
116
|
+
<K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value?: undefined): Partial<Pick<CheckboxSettings, keyof CheckboxSettings>>;
|
117
|
+
<K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value: CheckboxSettings[K]): JQuery;
|
118
|
+
(behavior: 'setting', value: Partial<Pick<CheckboxSettings, keyof CheckboxSettings>>): JQuery;
|
119
|
+
(settings?: Partial<Pick<CheckboxSettings, keyof CheckboxSettings>>): JQuery;
|
120
120
|
}
|
121
121
|
|
122
122
|
/**
|
123
123
|
* @see {@link https://fomantic-ui.com/modules/checkbox.html#/settings}
|
124
124
|
*/
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
265
|
-
*/
|
266
|
-
silent: boolean;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Debug output to console
|
270
|
-
*/
|
271
|
-
debug: boolean;
|
272
|
-
|
273
|
-
/**
|
274
|
-
* Show console.table output with performance metrics
|
275
|
-
*/
|
276
|
-
performance: boolean;
|
277
|
-
|
278
|
-
/**
|
279
|
-
* Debug output includes all internal behaviors
|
280
|
-
*/
|
281
|
-
verbose: boolean;
|
282
|
-
|
283
|
-
errors: Checkbox.ErrorSettings;
|
284
|
-
|
285
|
-
// endregion
|
286
|
-
}
|
125
|
+
interface CheckboxSettings {
|
126
|
+
// region Checkbox Settings
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Setting to 'true'/'false' will determine whether an input will allow no selection. 'auto' will set disallow this behavior only for radio boxes.
|
130
|
+
* @default 'auto'
|
131
|
+
*/
|
132
|
+
uncheckable: 'auto' | boolean;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Whether callbacks for checked status should be fired on init as well as change.
|
136
|
+
* @default false
|
137
|
+
*/
|
138
|
+
fireOnInit: boolean;
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Whether pressing the 'ENTER' Key on a focused checkbox should also toggle it.
|
142
|
+
* @default true
|
143
|
+
*/
|
144
|
+
enableEnterKey: boolean;
|
145
|
+
|
146
|
+
// endregion
|
147
|
+
|
148
|
+
// region Callbacks
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Callback after a checkbox is either checked or unchecked.
|
152
|
+
*/
|
153
|
+
onChange(this: JQuery): void;
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Callback after a checkbox is checked.
|
157
|
+
*/
|
158
|
+
onChecked(this: JQuery): void;
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Callback after a checkbox is set to indeterminate.
|
162
|
+
*/
|
163
|
+
onIndeterminate(this: JQuery): void;
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Callback after a checkbox is set to determinate.
|
167
|
+
*/
|
168
|
+
onDeterminate(this: JQuery): void;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Callback after a checkbox is unchecked.
|
172
|
+
*/
|
173
|
+
onUnchecked(this: JQuery): void;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Callback before a checkbox is checked. Can cancel change by returning 'false'.
|
177
|
+
*/
|
178
|
+
beforeChecked(this: JQuery): void | false;
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Callback before a checkbox is set to indeterminate. Can cancel change by returning 'false'.
|
182
|
+
*/
|
183
|
+
beforeIndeterminate(this: JQuery): void | false;
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Callback before a checkbox is set to determinate. Can cancel change by returning 'false'.
|
187
|
+
*/
|
188
|
+
beforeDeterminate(this: JQuery): void | false;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Callback before a checkbox is unchecked. Can cancel change by returning 'false'.
|
192
|
+
*/
|
193
|
+
beforeUnchecked(this: JQuery): void | false;
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Callback after a checkbox is enabled.
|
197
|
+
*/
|
198
|
+
onEnable(this: JQuery): void;
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Callback after a checkbox is disabled.
|
202
|
+
*/
|
203
|
+
onDisable(this: JQuery): void;
|
204
|
+
|
205
|
+
// endregion
|
206
|
+
|
207
|
+
// region DOM Settings
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Selectors used to find parts of a module.
|
211
|
+
*/
|
212
|
+
selector: Checkbox.SelectorSettings;
|
213
|
+
|
214
|
+
/**
|
215
|
+
* Class names used to determine element state.
|
216
|
+
*/
|
217
|
+
className: Checkbox.ClassNameSettings;
|
218
|
+
|
219
|
+
// endregion
|
220
|
+
|
221
|
+
// region Debug Settings
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Name used in log statements
|
225
|
+
* @default 'Checkbox'
|
226
|
+
*/
|
227
|
+
name: string;
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
231
|
+
* @default 'checkbox'
|
232
|
+
*/
|
233
|
+
namespace: string;
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
237
|
+
* @default false
|
238
|
+
*/
|
239
|
+
silent: boolean;
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Debug output to console
|
243
|
+
* @default false
|
244
|
+
*/
|
245
|
+
debug: boolean;
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Show console.table output with performance metrics
|
249
|
+
* @default true
|
250
|
+
*/
|
251
|
+
performance: boolean;
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Debug output includes all internal behaviors
|
255
|
+
* @default false
|
256
|
+
*/
|
257
|
+
verbose: boolean;
|
258
|
+
|
259
|
+
errors: Checkbox.ErrorSettings;
|
260
|
+
|
261
|
+
// endregion
|
287
262
|
}
|
288
263
|
|
289
264
|
namespace Checkbox {
|
290
|
-
type SelectorSettings =
|
265
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
266
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
267
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
291
268
|
|
292
|
-
namespace
|
293
|
-
|
294
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
295
|
-
|
296
|
-
interface _Impl {
|
269
|
+
namespace Settings {
|
270
|
+
interface Selectors {
|
297
271
|
/**
|
298
272
|
* @default '.ui.checkbox'
|
299
273
|
*/
|
@@ -314,22 +288,8 @@ declare namespace FomanticUI {
|
|
314
288
|
*/
|
315
289
|
link: string;
|
316
290
|
}
|
317
|
-
}
|
318
291
|
|
319
|
-
|
320
|
-
|
321
|
-
namespace ClassNameSettings {
|
322
|
-
type Param = (
|
323
|
-
| Pick<_Impl, 'checked'>
|
324
|
-
| Pick<_Impl, 'indeterminate'>
|
325
|
-
| Pick<_Impl, 'disabled'>
|
326
|
-
| Pick<_Impl, 'hidden'>
|
327
|
-
| Pick<_Impl, 'radio'>
|
328
|
-
| Pick<_Impl, 'readOnly'>
|
329
|
-
) &
|
330
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
331
|
-
|
332
|
-
interface _Impl {
|
292
|
+
interface ClassNames {
|
333
293
|
/**
|
334
294
|
* @default 'checked'
|
335
295
|
*/
|
@@ -360,14 +320,8 @@ declare namespace FomanticUI {
|
|
360
320
|
*/
|
361
321
|
readOnly: string;
|
362
322
|
}
|
363
|
-
}
|
364
|
-
|
365
|
-
type ErrorSettings = ErrorSettings.Param;
|
366
|
-
|
367
|
-
namespace ErrorSettings {
|
368
|
-
type Param = Pick<_Impl, 'method'> & Partial<Pick<_Impl, keyof _Impl>>;
|
369
323
|
|
370
|
-
interface
|
324
|
+
interface Errors {
|
371
325
|
/**
|
372
326
|
* @default 'The method you called is not defined.'
|
373
327
|
*/
|