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
@@ -28,190 +28,159 @@ declare namespace FomanticUI {
|
|
28
28
|
(behavior: 'clear rating'): JQuery;
|
29
29
|
|
30
30
|
(behavior: 'destroy'): JQuery;
|
31
|
-
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined): RatingSettings
|
32
|
-
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value: RatingSettings
|
33
|
-
(behavior: 'setting', value: RatingSettings): JQuery;
|
34
|
-
(settings?: RatingSettings): JQuery;
|
31
|
+
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<RatingSettings, keyof RatingSettings>>;
|
32
|
+
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value: RatingSettings[K]): JQuery;
|
33
|
+
(behavior: 'setting', value: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
|
34
|
+
(settings?: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
|
35
35
|
}
|
36
36
|
|
37
37
|
/**
|
38
38
|
* @see {@link https://fomantic-ui.com/modules/rating.html#/settings}
|
39
39
|
*/
|
40
|
-
|
41
|
-
|
42
|
-
namespace RatingSettings {
|
43
|
-
type Param = (
|
44
|
-
| Pick<_Impl, 'icon'>
|
45
|
-
| Pick<_Impl, 'initialRating'>
|
46
|
-
| Pick<_Impl, 'maxRating'>
|
47
|
-
| Pick<_Impl, 'fireOnInit'>
|
48
|
-
| Pick<_Impl, 'clearable'>
|
49
|
-
| Pick<_Impl, 'interactive'>
|
50
|
-
| Pick<_Impl, 'onRate'>
|
51
|
-
| Pick<_Impl, 'selector'>
|
52
|
-
| Pick<_Impl, 'className'>
|
53
|
-
| Pick<_Impl, 'name'>
|
54
|
-
| Pick<_Impl, 'namespace'>
|
55
|
-
| Pick<_Impl, 'silent'>
|
56
|
-
| Pick<_Impl, 'debug'>
|
57
|
-
| Pick<_Impl, 'performance'>
|
58
|
-
| Pick<_Impl, 'verbose'>
|
59
|
-
| Pick<_Impl, 'error'>
|
60
|
-
) &
|
61
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
62
|
-
|
63
|
-
interface _Impl {
|
64
|
-
// region Accordion Settings
|
65
|
-
|
66
|
-
/**
|
67
|
-
* The icon classname.
|
68
|
-
* @default 'star'
|
69
|
-
*/
|
70
|
-
icon: string;
|
71
|
-
|
72
|
-
/**
|
73
|
-
* A number representing the default rating to apply.
|
74
|
-
* @default 0
|
75
|
-
*/
|
76
|
-
initialRating: number;
|
77
|
-
|
78
|
-
/**
|
79
|
-
* The maximum rating value.
|
80
|
-
* @default 4
|
81
|
-
*/
|
82
|
-
maxRating: number;
|
83
|
-
|
84
|
-
/**
|
85
|
-
* Whether callbacks like 'onRate' should fire immediately after initializing with the current value.
|
86
|
-
* @default false
|
87
|
-
*/
|
88
|
-
fireOnInit: boolean;
|
89
|
-
|
90
|
-
/**
|
91
|
-
* By default a rating will be only clearable if there is 1 icon.
|
92
|
-
* Setting to 'true'/'false' will allow or disallow a user to clear their rating.
|
93
|
-
* @default 'auto'
|
94
|
-
*/
|
95
|
-
clearable: 'auto' | boolean;
|
96
|
-
|
97
|
-
/**
|
98
|
-
* Whether to enable user's ability to rate.
|
99
|
-
* @default true
|
100
|
-
*/
|
101
|
-
interactive: boolean;
|
102
|
-
|
103
|
-
// endregion
|
104
|
-
|
105
|
-
// region Callbacks
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Is called after user selects a new rating.
|
109
|
-
*/
|
110
|
-
onRate(this: JQuery, value: number): void;
|
111
|
-
|
112
|
-
// endregion
|
113
|
-
|
114
|
-
// region DOM Settings
|
115
|
-
|
116
|
-
/**
|
117
|
-
* DOM Selectors used internally.
|
118
|
-
* Selectors used to find parts of a module.
|
119
|
-
*/
|
120
|
-
selector: Rating.SelectorSettings;
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Class names used to determine element state.
|
124
|
-
*/
|
125
|
-
className: Rating.ClassNameSettings;
|
126
|
-
|
127
|
-
// endregion
|
128
|
-
|
129
|
-
// region Debug Settings
|
130
|
-
|
131
|
-
/**
|
132
|
-
* Name used in log statements
|
133
|
-
*/
|
134
|
-
name: string;
|
135
|
-
|
136
|
-
/**
|
137
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
138
|
-
*/
|
139
|
-
namespace: string;
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
143
|
-
*/
|
144
|
-
silent: boolean;
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Debug output to console
|
148
|
-
*/
|
149
|
-
debug: boolean;
|
150
|
-
|
151
|
-
/**
|
152
|
-
* Show console.table output with performance metrics
|
153
|
-
*/
|
154
|
-
performance: boolean;
|
155
|
-
|
156
|
-
/**
|
157
|
-
* Debug output includes all internal behaviors
|
158
|
-
*/
|
159
|
-
verbose: boolean;
|
160
|
-
|
161
|
-
error: Rating.ErrorSettings;
|
162
|
-
|
163
|
-
// endregion
|
164
|
-
}
|
40
|
+
interface RatingSettings {
|
41
|
+
// region Accordion Settings
|
165
42
|
|
166
|
-
|
167
|
-
|
43
|
+
/**
|
44
|
+
* The icon classname.
|
45
|
+
* @default 'star'
|
46
|
+
*/
|
47
|
+
icon: string;
|
168
48
|
|
169
|
-
|
170
|
-
|
49
|
+
/**
|
50
|
+
* A number representing the default rating to apply.
|
51
|
+
* @default 0
|
52
|
+
*/
|
53
|
+
initialRating: number;
|
171
54
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
55
|
+
/**
|
56
|
+
* The maximum rating value.
|
57
|
+
* @default 4
|
58
|
+
*/
|
59
|
+
maxRating: number;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Whether callbacks like 'onRate' should fire immediately after initializing with the current value.
|
63
|
+
* @default false
|
64
|
+
*/
|
65
|
+
fireOnInit: boolean;
|
66
|
+
|
67
|
+
/**
|
68
|
+
* By default a rating will be only clearable if there is 1 icon.
|
69
|
+
* Setting to 'true'/'false' will allow or disallow a user to clear their rating.
|
70
|
+
* @default 'auto'
|
71
|
+
*/
|
72
|
+
clearable: 'auto' | boolean;
|
179
73
|
|
180
|
-
|
74
|
+
/**
|
75
|
+
* Whether to enable user's ability to rate.
|
76
|
+
* @default true
|
77
|
+
*/
|
78
|
+
interactive: boolean;
|
181
79
|
|
182
|
-
|
183
|
-
type Param = (Pick<_Impl, 'active'> | Pick<_Impl, 'hover'> | Pick<_Impl, 'loading'>) &
|
184
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
80
|
+
// endregion
|
185
81
|
|
186
|
-
|
187
|
-
/**
|
188
|
-
* @default 'active'
|
189
|
-
*/
|
190
|
-
active: string;
|
82
|
+
// region Callbacks
|
191
83
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
84
|
+
/**
|
85
|
+
* Is called after user selects a new rating.
|
86
|
+
*/
|
87
|
+
onRate(this: JQuery, value: number): void;
|
196
88
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
89
|
+
// endregion
|
90
|
+
|
91
|
+
// region DOM Settings
|
92
|
+
|
93
|
+
/**
|
94
|
+
* DOM Selectors used internally.
|
95
|
+
* Selectors used to find parts of a module.
|
96
|
+
*/
|
97
|
+
selector: Rating.SelectorSettings;
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Class names used to determine element state.
|
101
|
+
*/
|
102
|
+
className: Rating.ClassNameSettings;
|
203
103
|
|
204
|
-
|
104
|
+
// endregion
|
205
105
|
|
206
|
-
|
207
|
-
|
106
|
+
// region Debug Settings
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Name used in log statements
|
110
|
+
* @default 'Rating'
|
111
|
+
*/
|
112
|
+
name: string;
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
116
|
+
* @default 'rating'
|
117
|
+
*/
|
118
|
+
namespace: string;
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
122
|
+
* @default false
|
123
|
+
*/
|
124
|
+
silent: boolean;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Debug output to console
|
128
|
+
* @default false
|
129
|
+
*/
|
130
|
+
debug: boolean;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Show console.table output with performance metrics
|
134
|
+
* @default true
|
135
|
+
*/
|
136
|
+
performance: boolean;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Debug output includes all internal behaviors
|
140
|
+
* @default false
|
141
|
+
*/
|
142
|
+
verbose: boolean;
|
143
|
+
|
144
|
+
error: Rating.ErrorSettings;
|
145
|
+
|
146
|
+
// endregion
|
147
|
+
}
|
148
|
+
|
149
|
+
namespace Rating {
|
150
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
151
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
152
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
153
|
+
|
154
|
+
namespace Settings {
|
155
|
+
interface Selectors {
|
156
|
+
/**
|
157
|
+
* @default '.icon'
|
158
|
+
*/
|
159
|
+
icon: string;
|
160
|
+
}
|
161
|
+
|
162
|
+
interface ClassNames {
|
163
|
+
/**
|
164
|
+
* @default 'active'
|
165
|
+
*/
|
166
|
+
active: string;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* @default 'hover'
|
170
|
+
*/
|
171
|
+
hover: string;
|
172
|
+
|
173
|
+
/**
|
174
|
+
* @default 'loading'
|
175
|
+
*/
|
176
|
+
loading: string;
|
177
|
+
}
|
208
178
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
}
|
179
|
+
interface Errors {
|
180
|
+
/**
|
181
|
+
* @default 'You called a rating action that was not defined'
|
182
|
+
*/
|
183
|
+
action: string;
|
215
184
|
}
|
216
185
|
}
|
217
186
|
}
|