@northdata/fomantic-ui 2.8.722 → 2.9.401

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 (157) hide show
  1. package/lib/semantic-ui/dist/components/accordion.css +62 -69
  2. package/lib/semantic-ui/dist/components/accordion.js +595 -618
  3. package/lib/semantic-ui/dist/components/accordion.min.css +4 -4
  4. package/lib/semantic-ui/dist/components/accordion.min.js +6 -6
  5. package/lib/semantic-ui/dist/components/api.js +1225 -1177
  6. package/lib/semantic-ui/dist/components/api.min.js +6 -6
  7. package/lib/semantic-ui/dist/components/button.css +291 -634
  8. package/lib/semantic-ui/dist/components/button.min.css +4 -4
  9. package/lib/semantic-ui/dist/components/calendar.css +149 -33
  10. package/lib/semantic-ui/dist/components/calendar.js +2045 -1774
  11. package/lib/semantic-ui/dist/components/calendar.min.css +4 -4
  12. package/lib/semantic-ui/dist/components/calendar.min.js +6 -6
  13. package/lib/semantic-ui/dist/components/card.css +147 -537
  14. package/lib/semantic-ui/dist/components/card.min.css +4 -4
  15. package/lib/semantic-ui/dist/components/checkbox.css +215 -405
  16. package/lib/semantic-ui/dist/components/checkbox.js +888 -876
  17. package/lib/semantic-ui/dist/components/checkbox.min.css +4 -4
  18. package/lib/semantic-ui/dist/components/checkbox.min.js +6 -6
  19. package/lib/semantic-ui/dist/components/container.css +20 -21
  20. package/lib/semantic-ui/dist/components/container.min.css +4 -4
  21. package/lib/semantic-ui/dist/components/dimmer.css +76 -184
  22. package/lib/semantic-ui/dist/components/dimmer.js +732 -753
  23. package/lib/semantic-ui/dist/components/dimmer.min.css +4 -4
  24. package/lib/semantic-ui/dist/components/dimmer.min.js +6 -6
  25. package/lib/semantic-ui/dist/components/divider.css +81 -88
  26. package/lib/semantic-ui/dist/components/divider.min.css +4 -4
  27. package/lib/semantic-ui/dist/components/dropdown.css +431 -450
  28. package/lib/semantic-ui/dist/components/dropdown.js +4432 -4238
  29. package/lib/semantic-ui/dist/components/dropdown.min.css +4 -4
  30. package/lib/semantic-ui/dist/components/dropdown.min.js +6 -6
  31. package/lib/semantic-ui/dist/components/feed.css +130 -87
  32. package/lib/semantic-ui/dist/components/feed.min.css +4 -4
  33. package/lib/semantic-ui/dist/components/flag.css +541 -511
  34. package/lib/semantic-ui/dist/components/flag.min.css +4 -4
  35. package/lib/semantic-ui/dist/components/form.css +437 -476
  36. package/lib/semantic-ui/dist/components/form.js +2199 -2033
  37. package/lib/semantic-ui/dist/components/form.min.css +4 -4
  38. package/lib/semantic-ui/dist/components/form.min.js +6 -6
  39. package/lib/semantic-ui/dist/components/grid.css +151 -306
  40. package/lib/semantic-ui/dist/components/grid.min.css +4 -4
  41. package/lib/semantic-ui/dist/components/header.css +82 -99
  42. package/lib/semantic-ui/dist/components/header.min.css +4 -4
  43. package/lib/semantic-ui/dist/components/icon.css +2744 -2706
  44. package/lib/semantic-ui/dist/components/icon.min.css +4 -4
  45. package/lib/semantic-ui/dist/components/image.css +38 -73
  46. package/lib/semantic-ui/dist/components/image.min.css +4 -4
  47. package/lib/semantic-ui/dist/components/input.css +344 -254
  48. package/lib/semantic-ui/dist/components/input.min.css +4 -4
  49. package/lib/semantic-ui/dist/components/item.css +91 -139
  50. package/lib/semantic-ui/dist/components/item.min.css +4 -4
  51. package/lib/semantic-ui/dist/components/label.css +244 -267
  52. package/lib/semantic-ui/dist/components/label.min.css +4 -4
  53. package/lib/semantic-ui/dist/components/list.css +75 -113
  54. package/lib/semantic-ui/dist/components/list.min.css +4 -4
  55. package/lib/semantic-ui/dist/components/loader.css +142 -601
  56. package/lib/semantic-ui/dist/components/loader.min.css +4 -4
  57. package/lib/semantic-ui/dist/components/menu.css +398 -638
  58. package/lib/semantic-ui/dist/components/menu.min.css +9 -1
  59. package/lib/semantic-ui/dist/components/message.css +116 -332
  60. package/lib/semantic-ui/dist/components/message.min.css +4 -4
  61. package/lib/semantic-ui/dist/components/modal.css +149 -138
  62. package/lib/semantic-ui/dist/components/modal.js +1637 -1209
  63. package/lib/semantic-ui/dist/components/modal.min.css +4 -4
  64. package/lib/semantic-ui/dist/components/modal.min.js +6 -6
  65. package/lib/semantic-ui/dist/components/popup.css +284 -277
  66. package/lib/semantic-ui/dist/components/popup.js +1561 -1541
  67. package/lib/semantic-ui/dist/components/popup.min.css +4 -4
  68. package/lib/semantic-ui/dist/components/popup.min.js +6 -6
  69. package/lib/semantic-ui/dist/components/reset.css +12 -17
  70. package/lib/semantic-ui/dist/components/reset.min.css +4 -4
  71. package/lib/semantic-ui/dist/components/search.css +99 -137
  72. package/lib/semantic-ui/dist/components/search.js +1641 -1565
  73. package/lib/semantic-ui/dist/components/search.min.css +4 -4
  74. package/lib/semantic-ui/dist/components/search.min.js +6 -6
  75. package/lib/semantic-ui/dist/components/segment.css +149 -275
  76. package/lib/semantic-ui/dist/components/segment.min.css +4 -4
  77. package/lib/semantic-ui/dist/components/site.css +40 -48
  78. package/lib/semantic-ui/dist/components/site.js +455 -493
  79. package/lib/semantic-ui/dist/components/site.min.css +4 -4
  80. package/lib/semantic-ui/dist/components/site.min.js +6 -6
  81. package/lib/semantic-ui/dist/components/tab.css +16 -20
  82. package/lib/semantic-ui/dist/components/tab.js +967 -1001
  83. package/lib/semantic-ui/dist/components/tab.min.css +4 -4
  84. package/lib/semantic-ui/dist/components/tab.min.js +6 -6
  85. package/lib/semantic-ui/dist/components/table.css +465 -424
  86. package/lib/semantic-ui/dist/components/table.min.css +4 -4
  87. package/lib/semantic-ui/dist/components/transition.css +264 -1282
  88. package/lib/semantic-ui/dist/components/transition.js +1034 -1109
  89. package/lib/semantic-ui/dist/components/transition.min.css +4 -4
  90. package/lib/semantic-ui/dist/components/transition.min.js +6 -6
  91. package/lib/semantic-ui/dist/semantic-packed.css +5610 -6590
  92. package/lib/semantic-ui/dist/semantic.css +8547 -11697
  93. package/lib/semantic-ui/dist/semantic.full.css +14698 -11227
  94. package/lib/semantic-ui/dist/semantic.full.min.css +6 -262
  95. package/lib/semantic-ui/dist/semantic.js +19428 -19253
  96. package/lib/semantic-ui/dist/semantic.min.css +128 -128
  97. package/lib/semantic-ui/dist/semantic.min.js +6 -6
  98. package/lib/semantic-ui/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  99. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
  100. package/lib/semantic-ui/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  101. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
  102. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  103. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff +0 -0
  104. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff2 +0 -0
  105. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
  106. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  107. package/lib/semantic-ui/types/fomantic-ui-accordion.d.ts +244 -0
  108. package/lib/semantic-ui/types/fomantic-ui-api.d.ts +561 -0
  109. package/lib/semantic-ui/types/fomantic-ui-calendar.d.ts +867 -0
  110. package/lib/semantic-ui/types/fomantic-ui-checkbox.d.ts +342 -0
  111. package/lib/semantic-ui/types/fomantic-ui-dimmer.d.ts +408 -0
  112. package/lib/semantic-ui/types/fomantic-ui-dropdown.d.ts +1221 -0
  113. package/lib/semantic-ui/types/fomantic-ui-embed.d.ts +343 -0
  114. package/lib/semantic-ui/types/fomantic-ui-flyout.d.ts +539 -0
  115. package/lib/semantic-ui/types/fomantic-ui-form.d.ts +759 -0
  116. package/lib/semantic-ui/types/fomantic-ui-modal.d.ts +567 -0
  117. package/lib/semantic-ui/types/fomantic-ui-nag.d.ts +270 -0
  118. package/lib/semantic-ui/types/fomantic-ui-popup.d.ts +549 -0
  119. package/lib/semantic-ui/types/fomantic-ui-progress.d.ts +465 -0
  120. package/lib/semantic-ui/types/fomantic-ui-rating.d.ts +187 -0
  121. package/lib/semantic-ui/types/fomantic-ui-search.d.ts +612 -0
  122. package/lib/semantic-ui/types/fomantic-ui-shape.d.ts +274 -0
  123. package/lib/semantic-ui/types/fomantic-ui-sidebar.d.ts +402 -0
  124. package/lib/semantic-ui/types/fomantic-ui-slider.d.ts +368 -0
  125. package/lib/semantic-ui/types/fomantic-ui-sticky.d.ts +215 -0
  126. package/lib/semantic-ui/types/fomantic-ui-tab.d.ts +361 -0
  127. package/lib/semantic-ui/types/fomantic-ui-toast.d.ts +526 -0
  128. package/lib/semantic-ui/types/fomantic-ui-transition.d.ts +389 -0
  129. package/lib/semantic-ui/types/fomantic-ui-visibility.d.ts +355 -0
  130. package/lib/semantic-ui/types/index.d.ts +63 -0
  131. package/package.json +19 -8
  132. package/lib/semantic-ui/dist/components/shape.css +0 -160
  133. package/lib/semantic-ui/dist/components/shape.js +0 -848
  134. package/lib/semantic-ui/dist/components/shape.min.css +0 -9
  135. package/lib/semantic-ui/dist/components/shape.min.js +0 -11
  136. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.eot +0 -0
  137. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.svg +0 -450
  138. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.ttf +0 -0
  139. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  140. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
  141. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  142. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.eot +0 -0
  143. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.svg +0 -4938
  144. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.ttf +0 -0
  145. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  146. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
  147. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  148. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
  149. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.svg +0 -200
  150. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.ttf +0 -0
  151. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.woff +0 -0
  152. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.eot +0 -0
  153. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.svg +0 -2373
  154. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.ttf +0 -0
  155. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff +0 -0
  156. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff2 +0 -0
  157. /package/lib/semantic-ui/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
@@ -0,0 +1,465 @@
1
+ declare namespace FomanticUI {
2
+ interface Progress {
3
+ settings: ProgressSettings;
4
+
5
+ /**
6
+ * Sets current percent of progress to value.
7
+ * If using a total will convert from percent to estimated value.
8
+ * 'percent' can be array of percent like '[20,30,50]', comma-separated string like '20,30,50' for `.ui.multiple.progress`.
9
+ */
10
+ (behavior: 'set percent', percent: number | [] | string): JQuery;
11
+
12
+ /**
13
+ * Sets progress to specified value.
14
+ * Will automatically calculate percent from total.
15
+ * value can be array of values like '[5,3,10]', comma-separated string like '5,3,10' for `.ui.multiple.progress`.
16
+ */
17
+ (behavior: 'set progress', value: number | [] | string): JQuery;
18
+
19
+ /**
20
+ * Increments progress by increment value, if not passed a value will use random amount specified in settings.
21
+ */
22
+ (behavior: 'increment', incrementValue: number): JQuery;
23
+
24
+ /**
25
+ * Decrements progress by decrement value, if not passed a value will use random amount specified in settings.
26
+ */
27
+ (behavior: 'decrement', decrementValue: number): JQuery;
28
+
29
+ /**
30
+ * Immediately updates progress to value, ignoring progress animation interval delays.
31
+ * 'value' can be array of values like '[5,3,10]', comma-separated string like '5,3,10' for `.ui.multiple.progress`.
32
+ */
33
+ (behavior: 'update progress', value: number | [] | string): JQuery;
34
+
35
+ /**
36
+ * Finishes progress and sets loaded to 100%.
37
+ * Set 'keepState' to 'true' (default 'false') to stop the active animation only without setting the progress to 100%.
38
+ */
39
+ (behavior: 'complete', keepState: boolean): JQuery;
40
+
41
+ /**
42
+ * Resets progress to zero.
43
+ */
44
+ (behavior: 'reset'): JQuery;
45
+
46
+ /**
47
+ * Set total to a new value.
48
+ */
49
+ (behavior: 'set total', total: number): JQuery;
50
+
51
+ /**
52
+ * Replaces templated string with value, total, percent left and percent.
53
+ */
54
+ (behavior: 'get text', text: string): JQuery;
55
+
56
+ /**
57
+ * Returns normalized value inside acceptable range specified by total.
58
+ */
59
+ (behavior: 'get normalized value', value: number): JQuery;
60
+
61
+ /**
62
+ * Returns percent as last specified.
63
+ */
64
+ (behavior: 'get percent'): number;
65
+
66
+ /**
67
+ * Returns current progress value.
68
+ */
69
+ (behavior: 'get value'): number;
70
+
71
+ /**
72
+ * Returns total.
73
+ */
74
+ (behavior: 'get total'): number;
75
+
76
+ /**
77
+ * Returns whether progress is completed.
78
+ */
79
+ (behavior: 'is complete'): boolean;
80
+
81
+ /**
82
+ * Returns whether progress was a success.
83
+ */
84
+ (behavior: 'is success'): boolean;
85
+
86
+ /**
87
+ * Returns whether progress is in warning state.
88
+ */
89
+ (behavior: 'is warning'): boolean;
90
+
91
+ /**
92
+ * Returns whether progress is in error state.
93
+ */
94
+ (behavior: 'is error'): boolean;
95
+
96
+ /**
97
+ * Returns whether progress is in active state.
98
+ */
99
+ (behavior: 'is active'): boolean;
100
+
101
+ /**
102
+ * Sets progress to active state.
103
+ */
104
+ (behavior: 'set active'): JQuery;
105
+
106
+ /**
107
+ * Sets progress to warning state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
108
+ */
109
+ (behavior: 'set warning', text: string, keepState: boolean): JQuery;
110
+
111
+ /**
112
+ * Sets progress to success state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
113
+ */
114
+ (behavior: 'set success', text: string, keepState: boolean): JQuery;
115
+
116
+ /**
117
+ * Sets progress to error state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
118
+ */
119
+ (behavior: 'set error', text: string, keepState: boolean): JQuery;
120
+
121
+ /**
122
+ * Changes progress animation speed.
123
+ */
124
+ (behavior: 'set duration', value: number): JQuery;
125
+
126
+ /**
127
+ * Sets progress exterior label to text.
128
+ */
129
+ (behavior: 'set label', text: string): JQuery;
130
+
131
+ /**
132
+ * Sets progress bar label to text.
133
+ */
134
+ (behavior: 'set bar label', text: string): JQuery;
135
+
136
+ /**
137
+ * Removes progress to active state.
138
+ */
139
+ (behavior: 'remove active'): JQuery;
140
+
141
+ /**
142
+ * Removes progress to warning state.
143
+ */
144
+ (behavior: 'remove warning'): JQuery;
145
+
146
+ /**
147
+ * Removes progress to success state.
148
+ */
149
+ (behavior: 'remove success'): JQuery;
150
+
151
+ /**
152
+ * Removes progress to error state.
153
+ */
154
+ (behavior: 'remove error'): JQuery;
155
+
156
+ /**
157
+ * Destroys instance and removes all events.
158
+ */
159
+ (behavior: 'destroy'): JQuery;
160
+
161
+ <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ProgressSettings, keyof ProgressSettings>>;
162
+ <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings[K]): JQuery;
163
+ (behavior: 'setting', value: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
164
+ (settings?: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
165
+ }
166
+
167
+ /**
168
+ * @see {@link https://fomantic-ui.com/modules/progress.html#/settings}
169
+ */
170
+ interface ProgressSettings {
171
+ // region Progress Settings
172
+
173
+ /**
174
+ * Whether success state should automatically trigger when progress completes.
175
+ * @default true
176
+ */
177
+ autoSuccess: boolean;
178
+
179
+ /**
180
+ * Whether progress should automatically show activity when incremented.
181
+ * @default true
182
+ */
183
+ showActivity: boolean;
184
+
185
+ /**
186
+ * When set to 'true', values that calculate to above 100% or below 0% will be adjusted.
187
+ * When set to 'false', inappropriate values will produce an error.
188
+ * @default true
189
+ */
190
+ limitValues: boolean;
191
+
192
+ /**
193
+ * Can be set to either to display progress as 'percent' or 'ratio'.
194
+ * Matches up to corresponding text template with the same name.
195
+ * @default 'percent'
196
+ */
197
+ label: 'percent' | 'ratio';
198
+
199
+ /**
200
+ * When incrementing without value, sets range for random increment value.
201
+ * @default {}
202
+ */
203
+ random: object;
204
+
205
+ /**
206
+ * Decimal point precision for calculated progress.
207
+ * @default 0
208
+ */
209
+ precision: number;
210
+
211
+ /**
212
+ * Sets current overall percent.
213
+ * @default false
214
+ */
215
+ percent: false | number;
216
+
217
+ /**
218
+ * Setting a total value will make each call to increment get closer to this total (i.e. 1/20, 2/20 etc).
219
+ * @default false
220
+ */
221
+ total: false | number;
222
+
223
+ /**
224
+ * Sets current value, when total is specified, this is used to calculate a ratio of the total, with percent this should be the overall percent.
225
+ * @default false
226
+ */
227
+ value: false | number;
228
+
229
+ // endregion
230
+
231
+ // region Callbacks
232
+
233
+ /**
234
+ * Callback on percentage change.
235
+ */
236
+ onChange(this: JQuery, percent: number, value: number, total: number): void;
237
+
238
+ /**
239
+ * Callback on success state.
240
+ */
241
+ onSuccess(this: JQuery, total: number): void;
242
+
243
+ /**
244
+ * Callback on active state.
245
+ */
246
+ onActive(this: JQuery, value: number, total: number): void;
247
+
248
+ /**
249
+ * Callback on error state.
250
+ */
251
+ onError(this: JQuery, value: number, total: number): void;
252
+
253
+ /**
254
+ * Callback on warning state.
255
+ */
256
+ onWarning(this: JQuery, value: number, total: number): void;
257
+
258
+ // endregion
259
+
260
+ // region DOM Settings
261
+
262
+ /**
263
+ * DOM Selectors used internally.
264
+ * Selectors used to find parts of a module.
265
+ */
266
+ selector: Progress.SelectorSettings;
267
+
268
+ /**
269
+ * Class names used to determine element state.
270
+ */
271
+ className: Progress.ClassNameSettings;
272
+
273
+ /**
274
+ *
275
+ */
276
+ text: Progress.TextSettings;
277
+
278
+ /**
279
+ * Regular expressions used by module
280
+ */
281
+ regExp: Progress.RegExpSettings;
282
+
283
+ /**
284
+ * Regular expressions used by module
285
+ */
286
+ metadata: Progress.MetadataSettings;
287
+
288
+ // endregion
289
+
290
+ // region Debug Settings
291
+
292
+ /**
293
+ * Name used in log statements
294
+ * @default 'Progress'
295
+ */
296
+ name: string;
297
+
298
+ /**
299
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
300
+ * @default 'progress'
301
+ */
302
+ namespace: string;
303
+
304
+ /**
305
+ * Silences all console output including error messages, regardless of other debug settings.
306
+ * @default false
307
+ */
308
+ silent: boolean;
309
+
310
+ /**
311
+ * Debug output to console
312
+ * @default false
313
+ */
314
+ debug: boolean;
315
+
316
+ /**
317
+ * Show console.table output with performance metrics
318
+ * @default true
319
+ */
320
+ performance: boolean;
321
+
322
+ /**
323
+ * Debug output includes all internal behaviors
324
+ * @default false
325
+ */
326
+ verbose: boolean;
327
+
328
+ error: Progress.ErrorSettings;
329
+
330
+ // endregion
331
+ }
332
+
333
+ namespace Progress {
334
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
335
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
336
+ type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
337
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
338
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
339
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
340
+
341
+ namespace Settings {
342
+ interface Selectors {
343
+ /**
344
+ * @default '> .bar'
345
+ */
346
+ bar: string;
347
+
348
+ /**
349
+ * @default '> .label'
350
+ */
351
+ label: string;
352
+
353
+ /**
354
+ * @default '.bar > .progress'
355
+ */
356
+ progress: string;
357
+ }
358
+
359
+ interface ClassNames {
360
+ /**
361
+ * @default 'active'
362
+ */
363
+ active: string;
364
+
365
+ /**
366
+ * @default 'error'
367
+ */
368
+ error: string;
369
+
370
+ /**
371
+ * @default 'success'
372
+ */
373
+ success: string;
374
+
375
+ /**
376
+ * @default 'warning'
377
+ */
378
+ warning: string;
379
+ }
380
+
381
+ interface Texts {
382
+ /**
383
+ * @default false
384
+ */
385
+ active: boolean | string;
386
+
387
+ /**
388
+ * @default false
389
+ */
390
+ error: boolean | string;
391
+
392
+ /**
393
+ * @default false
394
+ */
395
+ success: boolean | string;
396
+
397
+ /**
398
+ * @default false
399
+ */
400
+ warning: boolean | string;
401
+
402
+ /**
403
+ * @default '{percent}%''
404
+ */
405
+ percent: string;
406
+
407
+ /**
408
+ * @default '{value} of {total}'
409
+ */
410
+ ratio: string;
411
+
412
+ /**
413
+ * @default []
414
+ */
415
+ bars: string[];
416
+ }
417
+
418
+ interface RegExps {
419
+ /**
420
+ * @default /\{\$*[A-z0-9]+\}/g
421
+ */
422
+ variable: RegExp;
423
+ }
424
+
425
+ interface Metadatas {
426
+ /**
427
+ * @default 'percent'
428
+ */
429
+ percent: string;
430
+
431
+ /**
432
+ * @default 'total'
433
+ */
434
+ total: string;
435
+
436
+ /**
437
+ * @default 'value'
438
+ */
439
+ value: string;
440
+ }
441
+
442
+ interface Errors {
443
+ /**
444
+ * @default 'The method you called is not defined.'
445
+ */
446
+ method: string;
447
+
448
+ /**
449
+ * @default 'Progress value is non numeric'
450
+ */
451
+ nonNumeric: string;
452
+
453
+ /**
454
+ * @default 'Value specified is above 100%'
455
+ */
456
+ tooHigh: string;
457
+
458
+ /**
459
+ * @default 'Value specified is below 0%'
460
+ */
461
+ tooLow: string;
462
+ }
463
+ }
464
+ }
465
+ }
@@ -0,0 +1,187 @@
1
+ declare namespace FomanticUI {
2
+ interface Rating {
3
+ settings: RatingSettings;
4
+
5
+ /**
6
+ * Sets rating programmatically.
7
+ */
8
+ (behavior: 'set rating', rating: number): JQuery;
9
+
10
+ /**
11
+ * Gets current rating.
12
+ */
13
+ (behavior: 'get rating'): number;
14
+
15
+ /**
16
+ * Disables interactive rating mode.
17
+ */
18
+ (behavior: 'disable'): JQuery;
19
+
20
+ /**
21
+ * Enables interactive rating mode.
22
+ */
23
+ (behavior: 'enable'): JQuery;
24
+
25
+ /**
26
+ * Clears current rating.
27
+ */
28
+ (behavior: 'clear rating'): JQuery;
29
+
30
+ (behavior: 'destroy'): 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
+ }
36
+
37
+ /**
38
+ * @see {@link https://fomantic-ui.com/modules/rating.html#/settings}
39
+ */
40
+ interface RatingSettings {
41
+ // region Accordion Settings
42
+
43
+ /**
44
+ * The icon classname.
45
+ * @default 'star'
46
+ */
47
+ icon: string;
48
+
49
+ /**
50
+ * A number representing the default rating to apply.
51
+ * @default 0
52
+ */
53
+ initialRating: number;
54
+
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;
73
+
74
+ /**
75
+ * Whether to enable user's ability to rate.
76
+ * @default true
77
+ */
78
+ interactive: boolean;
79
+
80
+ // endregion
81
+
82
+ // region Callbacks
83
+
84
+ /**
85
+ * Is called after user selects a new rating.
86
+ */
87
+ onRate(this: JQuery, value: number): void;
88
+
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;
103
+
104
+ // endregion
105
+
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
+ }
178
+
179
+ interface Errors {
180
+ /**
181
+ * @default 'You called a rating action that was not defined'
182
+ */
183
+ action: string;
184
+ }
185
+ }
186
+ }
187
+ }