@northdata/fomantic-ui 2.9.400 → 2.9.402

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 (72) hide show
  1. package/lib/semantic-ui/dist/components/button.css +15 -15
  2. package/lib/semantic-ui/dist/components/button.min.css +1 -1
  3. package/lib/semantic-ui/dist/components/card.css +2 -2
  4. package/lib/semantic-ui/dist/components/card.min.css +1 -1
  5. package/lib/semantic-ui/dist/components/dropdown.css +4 -4
  6. package/lib/semantic-ui/dist/components/dropdown.min.css +1 -1
  7. package/lib/semantic-ui/dist/components/form.css +4 -4
  8. package/lib/semantic-ui/dist/components/form.min.css +1 -1
  9. package/lib/semantic-ui/dist/components/grid.css +1 -1
  10. package/lib/semantic-ui/dist/components/grid.min.css +1 -1
  11. package/lib/semantic-ui/dist/components/header.css +18 -18
  12. package/lib/semantic-ui/dist/components/header.min.css +1 -1
  13. package/lib/semantic-ui/dist/components/icon.css +12 -12
  14. package/lib/semantic-ui/dist/components/icon.min.css +1 -1
  15. package/lib/semantic-ui/dist/components/input.css +11 -11
  16. package/lib/semantic-ui/dist/components/input.min.css +1 -1
  17. package/lib/semantic-ui/dist/components/label.css +54 -54
  18. package/lib/semantic-ui/dist/components/label.min.css +1 -1
  19. package/lib/semantic-ui/dist/components/loader.css +3 -3
  20. package/lib/semantic-ui/dist/components/loader.min.css +1 -1
  21. package/lib/semantic-ui/dist/components/menu.css +1 -1
  22. package/lib/semantic-ui/dist/components/menu.min.css +1 -1
  23. package/lib/semantic-ui/dist/components/message.css +2 -2
  24. package/lib/semantic-ui/dist/components/message.min.css +1 -1
  25. package/lib/semantic-ui/dist/components/popup.css +3 -3
  26. package/lib/semantic-ui/dist/components/popup.min.css +1 -1
  27. package/lib/semantic-ui/dist/components/search.css +2 -2
  28. package/lib/semantic-ui/dist/components/search.min.css +1 -1
  29. package/lib/semantic-ui/dist/components/segment.css +14 -14
  30. package/lib/semantic-ui/dist/components/segment.min.css +1 -1
  31. package/lib/semantic-ui/dist/components/tab.css +1 -1
  32. package/lib/semantic-ui/dist/components/tab.min.css +1 -1
  33. package/lib/semantic-ui/dist/components/table.css +1 -1
  34. package/lib/semantic-ui/dist/components/table.min.css +1 -1
  35. package/lib/semantic-ui/dist/less/colors.less +623 -0
  36. package/lib/semantic-ui/dist/less/default/reset.variables +3 -0
  37. package/lib/semantic-ui/dist/less/default/site.variables +1547 -0
  38. package/lib/semantic-ui/dist/less/default/variation.variables +796 -0
  39. package/lib/semantic-ui/dist/less/site/reset.variables +3 -0
  40. package/lib/semantic-ui/dist/less/site/site.variables +68 -0
  41. package/lib/semantic-ui/dist/less/site/variation.variables +792 -0
  42. package/lib/semantic-ui/dist/less/theme.less +22 -0
  43. package/lib/semantic-ui/dist/semantic-packed.css +149 -156
  44. package/lib/semantic-ui/dist/semantic.css +148 -148
  45. package/lib/semantic-ui/dist/semantic.full.css +505 -505
  46. package/lib/semantic-ui/dist/semantic.full.min.css +1 -1
  47. package/lib/semantic-ui/dist/semantic.min.css +17 -17
  48. package/lib/semantic-ui/types/fomantic-ui-accordion.d.ts +244 -0
  49. package/lib/semantic-ui/types/fomantic-ui-api.d.ts +561 -0
  50. package/lib/semantic-ui/types/fomantic-ui-calendar.d.ts +867 -0
  51. package/lib/semantic-ui/types/fomantic-ui-checkbox.d.ts +342 -0
  52. package/lib/semantic-ui/types/fomantic-ui-dimmer.d.ts +408 -0
  53. package/lib/semantic-ui/types/fomantic-ui-dropdown.d.ts +1221 -0
  54. package/lib/semantic-ui/types/fomantic-ui-embed.d.ts +343 -0
  55. package/lib/semantic-ui/types/fomantic-ui-flyout.d.ts +539 -0
  56. package/lib/semantic-ui/types/fomantic-ui-form.d.ts +759 -0
  57. package/lib/semantic-ui/types/fomantic-ui-modal.d.ts +567 -0
  58. package/lib/semantic-ui/types/fomantic-ui-nag.d.ts +270 -0
  59. package/lib/semantic-ui/types/fomantic-ui-popup.d.ts +549 -0
  60. package/lib/semantic-ui/types/fomantic-ui-progress.d.ts +465 -0
  61. package/lib/semantic-ui/types/fomantic-ui-rating.d.ts +187 -0
  62. package/lib/semantic-ui/types/fomantic-ui-search.d.ts +612 -0
  63. package/lib/semantic-ui/types/fomantic-ui-shape.d.ts +274 -0
  64. package/lib/semantic-ui/types/fomantic-ui-sidebar.d.ts +402 -0
  65. package/lib/semantic-ui/types/fomantic-ui-slider.d.ts +368 -0
  66. package/lib/semantic-ui/types/fomantic-ui-sticky.d.ts +215 -0
  67. package/lib/semantic-ui/types/fomantic-ui-tab.d.ts +361 -0
  68. package/lib/semantic-ui/types/fomantic-ui-toast.d.ts +526 -0
  69. package/lib/semantic-ui/types/fomantic-ui-transition.d.ts +389 -0
  70. package/lib/semantic-ui/types/fomantic-ui-visibility.d.ts +355 -0
  71. package/lib/semantic-ui/types/index.d.ts +63 -0
  72. package/package.json +4 -3
@@ -0,0 +1,612 @@
1
+ declare namespace FomanticUI {
2
+ interface Search {
3
+ settings: SearchSettings;
4
+
5
+ /**
6
+ * Search for value currently set in search input.
7
+ */
8
+ (behavior: 'query', callback?: () => void): JQuery;
9
+
10
+ /**
11
+ * Displays message in search results with text, using template matching type.
12
+ */
13
+ (behavior: 'display message', text: string, type?: string): JQuery;
14
+
15
+ /**
16
+ * Cancels current remote search query.
17
+ */
18
+ (behavior: 'cancel query'): JQuery;
19
+
20
+ /**
21
+ * Search local object for specified query and display results.
22
+ */
23
+ (behavior: 'search local', query: string): JQuery;
24
+
25
+ /**
26
+ * Whether has minimum characters.
27
+ */
28
+ (behavior: 'has minimum characters'): boolean;
29
+
30
+ /**
31
+ * Search remote endpoint for specified query and display results.
32
+ */
33
+ (behavior: 'search remote', query: string, callback?: () => void): JQuery;
34
+
35
+ /**
36
+ * Search object for specified query and return results.
37
+ */
38
+ (behavior: 'search object', query: string, object: string, searchFields: string): JQuery;
39
+
40
+ /**
41
+ * Whether search is currently focused.
42
+ */
43
+ (behavior: 'is focused'): boolean;
44
+
45
+ /**
46
+ * Whether search results are visible.
47
+ */
48
+ (behavior: 'is visible'): boolean;
49
+
50
+ /**
51
+ * Whether search results are empty.
52
+ */
53
+ (behavior: 'is empty'): boolean;
54
+
55
+ /**
56
+ * Returns current search value.
57
+ */
58
+ (behavior: 'get value'): string;
59
+
60
+ /**
61
+ * Returns JSON object matching searched title or id.
62
+ */
63
+ (behavior: 'get result', value: string): object;
64
+
65
+ /**
66
+ * Sets search input to value.
67
+ */
68
+ (behavior: 'set value', value: string): JQuery;
69
+
70
+ /**
71
+ * Reads cached results for query.
72
+ */
73
+ (behavior: 'read cache', query: string): JQuery;
74
+
75
+ /**
76
+ * Clears value from cache, if no parameter passed clears all cache.
77
+ */
78
+ (behavior: 'clear cache', query?: string): JQuery;
79
+
80
+ /**
81
+ * Writes cached results for query.
82
+ */
83
+ (behavior: 'write cache', query: string): JQuery;
84
+
85
+ /**
86
+ * Adds HTML to results and displays.
87
+ */
88
+ (behavior: 'add results', html: string): JQuery;
89
+
90
+ /**
91
+ * Shows results container.
92
+ */
93
+ (behavior: 'show results', callback?: () => void): JQuery;
94
+
95
+ /**
96
+ * Hide results container.
97
+ */
98
+ (behavior: 'hide results', callback?: () => void): JQuery;
99
+
100
+ /**
101
+ * Generates results using parser specified by 'settings.template'.
102
+ */
103
+ (behavior: 'generate results', response: object): JQuery;
104
+
105
+ /**
106
+ * Removes all events.
107
+ */
108
+ (behavior: 'destroy'): JQuery;
109
+
110
+ <K extends keyof SearchSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SearchSettings, keyof SearchSettings>>;
111
+ <K extends keyof SearchSettings>(behavior: 'setting', name: K, value: SearchSettings[K]): JQuery;
112
+ (behavior: 'setting', value: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
113
+ (settings?: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
114
+ }
115
+
116
+ /**
117
+ * @see {@link https://fomantic-ui.com/modules/search.html#/settings}
118
+ */
119
+ interface SearchSettings {
120
+ // region Search Settings
121
+
122
+ /**
123
+ * Settings for API call.
124
+ * @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
125
+ * @default {}
126
+ */
127
+ apiSettings: Partial<Pick<APISettings, keyof APISettings>> | JQueryAjaxSettings;
128
+
129
+ /**
130
+ * Minimum characters to query for results.
131
+ * @default 1
132
+ */
133
+ minCharacters: number;
134
+
135
+ /**
136
+ * Whether search should show results on focus (must also match min character length).
137
+ * @default true
138
+ */
139
+ searchOnFocus: boolean;
140
+
141
+ /**
142
+ * Named transition to use when animating menu in and out.
143
+ * Fade and slide down are available without including ui transitions.
144
+ * @see {@link https://fomantic-ui.com/modules/transition.html}
145
+ * @default 'fade'
146
+ */
147
+ transition: string;
148
+
149
+ /**
150
+ * Duration of animation events.
151
+ * @default 300
152
+ */
153
+ duration: number;
154
+
155
+ /**
156
+ * Maximum results to display when using local and simple search, maximum category count for category search.
157
+ * @default 7
158
+ */
159
+ maxResults: number;
160
+
161
+ /**
162
+ * Caches results locally to avoid requerying server.
163
+ * @default true
164
+ */
165
+ cache: boolean;
166
+
167
+ /**
168
+ * Specify a Javascript object which will be searched locally.
169
+ * @default false
170
+ */
171
+ source: boolean | object;
172
+
173
+ /**
174
+ * Whether the search should automatically select the first search result after searching.
175
+ * @default false
176
+ */
177
+ selectFirstResult: boolean;
178
+
179
+ /**
180
+ * Whether a "no results" message should be shown if no results are found.
181
+ * @default false
182
+ */
183
+ showNoResults: boolean;
184
+
185
+ /**
186
+ * Possible values
187
+ * * `exact` will force the exact search to be matched somewhere in the string.
188
+ * * `some` Will do the same as exact but supports multiple search values separated by whitespace. At least one word must match. (New in v2.9.1)
189
+ * * `all` is same as some but all words have to match in all given search fields of each record altogether. (New in v2.9.1)
190
+ * * `true` will use a fuzzy full text search.
191
+ * * `false` will only match to start of string.
192
+ * @default 'exact'
193
+ */
194
+ fullTextSearch: 'exact' | 'some' | 'all' | boolean;
195
+
196
+ /**
197
+ * List mapping display content to JSON property, either with API or 'source'.
198
+ * @default {}
199
+ */
200
+ fields: Search.FieldsSettings;
201
+
202
+ /**
203
+ * Specify object properties inside local source object which will be searched.
204
+ * @default ['title', 'description']
205
+ */
206
+ searchFields: string[];
207
+
208
+ /**
209
+ * Delay before hiding results after search blur.
210
+ * @default 0
211
+ */
212
+ hideDelay: number;
213
+
214
+ /**
215
+ * Delay before querying results on inputchange.
216
+ * @default 100
217
+ */
218
+ searchDelay: number;
219
+
220
+ /**
221
+ * Easing equation when using fallback Javascript animation.
222
+ * EaseOutExpo is included with search, for additional options you must include `easing equations`.
223
+ * @see {@link https://gsgd.co.uk/sandbox/jquery/easing/}
224
+ * @default 'easeOutExpo'
225
+ */
226
+ easing: string;
227
+
228
+ /**
229
+ * When activated, searches will also match results for base diacritic letters.
230
+ * For example when searching for 'a', it will also match 'á' or 'â' or 'å' and so on...
231
+ * It will also ignore diacritics for the searchterm, so if searching for 'ó', it will match 'ó', but also 'o', 'ô' or 'õ' and so on...
232
+ * @default false
233
+ */
234
+ ignoreDiacritics: boolean;
235
+
236
+ /**
237
+ * Whether to consider case sensitivity on local searching
238
+ * @default true
239
+ */
240
+ ignoreSearchCase: boolean;
241
+
242
+ /**
243
+ * Whether search result should highlight matching strings
244
+ * @default false
245
+ */
246
+ highlightMatches: boolean;
247
+
248
+ /**
249
+ * Template to use (specified in settings.templates)
250
+ * @default 'standard'
251
+ */
252
+ type: 'escape' | 'message' | 'category' | 'standard';
253
+
254
+ /**
255
+ * Field to display in standard results template
256
+ * @default ''
257
+ */
258
+ displayField: string;
259
+
260
+ /**
261
+ * Whether to add events to prompt automatically
262
+ * @default true
263
+ */
264
+ automatic: boolean;
265
+
266
+ // endregion
267
+
268
+ // region Callbacks
269
+
270
+ /**
271
+ * Callback on element selection by user.
272
+ * The first parameter includes the filtered response results for that element.
273
+ * The function should return 'false' to prevent default action (closing search results and selecting value).
274
+ */
275
+ onSelect(this: JQuery, result: object, response: object): any;
276
+
277
+ /**
278
+ * Callback after processing element template to add HTML to results.
279
+ * Function should return 'false' to prevent default actions.
280
+ */
281
+ onResultsAdd(this: JQuery, html: string): void | boolean;
282
+
283
+ /**
284
+ * Callback on search query.
285
+ */
286
+ onSearchQuery(this: JQuery, query: string): void;
287
+
288
+ /**
289
+ * Callback on server response.
290
+ */
291
+ onResults(this: JQuery, response: object): void;
292
+
293
+ /**
294
+ * Callback when results are opened.
295
+ */
296
+ onResultsOpen(this: JQuery): void;
297
+
298
+ /**
299
+ * Callback when results are closed.
300
+ */
301
+ onResultsClose(this: JQuery): void;
302
+
303
+ // endregion
304
+
305
+ // region Template Settings
306
+
307
+ templates: Search.TemplateSettings;
308
+
309
+ // endregion
310
+
311
+ // region DOM Settings
312
+
313
+ /**
314
+ * DOM Selectors used internally.
315
+ * Selectors used to find parts of a module.
316
+ */
317
+ selector: Search.SelectorSettings;
318
+
319
+ /**
320
+ * Regular expressions used for matching.
321
+ */
322
+ regExp: Search.RegExpSettings;
323
+
324
+ /**
325
+ * Class names used to determine element state.
326
+ */
327
+ className: Search.ClassNameSettings;
328
+
329
+ /**
330
+ * HTML5 metadata attributes used internally.
331
+ */
332
+ metadata: Search.MetadataSettings;
333
+
334
+ // endregion
335
+
336
+ // region Debug Settings
337
+
338
+ /**
339
+ * Name used in log statements
340
+ * @default 'Search'
341
+ */
342
+ name: string;
343
+
344
+ /**
345
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
346
+ * @default 'search'
347
+ */
348
+ namespace: string;
349
+
350
+ /**
351
+ * Silences all console output including error messages, regardless of other debug settings.
352
+ * @default false
353
+ */
354
+ silent: boolean;
355
+
356
+ /**
357
+ * Debug output to console
358
+ * @default false
359
+ */
360
+ debug: boolean;
361
+
362
+ /**
363
+ * Show console.table output with performance metrics
364
+ * @default true
365
+ */
366
+ performance: boolean;
367
+
368
+ /**
369
+ * Debug output includes all internal behaviors
370
+ * @default false
371
+ */
372
+ verbose: boolean;
373
+
374
+ error: Search.ErrorSettings;
375
+
376
+ // endregion
377
+ }
378
+
379
+ namespace Search {
380
+ type TemplateSettings = Partial<Pick<Settings.Templates, keyof Settings.Templates>>;
381
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
382
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
383
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
384
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
385
+ type FieldsSettings = Partial<Pick<Settings.Fields, keyof Settings.Fields>>;
386
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
387
+
388
+ namespace Settings {
389
+ interface Templates {
390
+ /**
391
+ * @default function(string, preserveHTML)
392
+ */
393
+ escape: (string: string, preserveHTML?: boolean) => string;
394
+
395
+ /**
396
+ * @default function(message, type, header)
397
+ */
398
+ message: (message: string, type?: string, header?: string) => string;
399
+
400
+ /**
401
+ * @default function(response, fields, preserveHTML)
402
+ */
403
+ category: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
404
+
405
+ /**
406
+ * @default function(response, fields, preserveHTML)
407
+ */
408
+ standard: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
409
+ }
410
+
411
+ interface Selectors {
412
+ /**
413
+ * @default '.prompt'
414
+ */
415
+ prompt: string;
416
+
417
+ /**
418
+ * @default '.search.button'
419
+ */
420
+ searchButton: string;
421
+
422
+ /**
423
+ * @default '.results'
424
+ */
425
+ results: string;
426
+
427
+ /**
428
+ * @default '.category'
429
+ */
430
+ category: string;
431
+
432
+ /**
433
+ * @default '.result'
434
+ */
435
+ result: string;
436
+ }
437
+
438
+ interface RegExps {
439
+ /**
440
+ * @default /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g
441
+ */
442
+ escape: RegExp;
443
+
444
+ /**
445
+ * @default '(?:\s|^)'
446
+ */
447
+ beginsWith: RegExp;
448
+ }
449
+
450
+ interface ClassNames {
451
+ /**
452
+ * @default 'active'
453
+ */
454
+ active: string;
455
+
456
+ /**
457
+ * @default 'empty'
458
+ */
459
+ empty: string;
460
+
461
+ /**
462
+ * @default 'focus'
463
+ */
464
+ focus: string;
465
+
466
+ /**
467
+ * @default 'loading'
468
+ */
469
+ loading: string;
470
+
471
+ /**
472
+ * @default 'down'
473
+ */
474
+ pressed: string;
475
+ }
476
+
477
+ interface Metadatas {
478
+ /**
479
+ * @default 'cache'
480
+ */
481
+ cache: string;
482
+
483
+ /**
484
+ * @default 'results'
485
+ */
486
+ results: string;
487
+ }
488
+
489
+ interface Fields {
490
+ /**
491
+ * Array of categories (category view)
492
+ * @default 'results'
493
+ */
494
+ categories: string;
495
+
496
+ /**
497
+ * Name of category (category view)
498
+ * @default 'name'
499
+ */
500
+ categoryName: string;
501
+
502
+ /**
503
+ * Array of results (category view)
504
+ * @default 'results'
505
+ */
506
+ categoryResults: string;
507
+
508
+ /**
509
+ * Sesult description
510
+ * @default ' description'
511
+ */
512
+ description: string;
513
+
514
+ /**
515
+ * Result image
516
+ * @default 'image'
517
+ */
518
+ image: string;
519
+
520
+ /**
521
+ * Result alt text for image
522
+ * @default 'alt'
523
+ */
524
+ alt: string;
525
+
526
+ /**
527
+ * Result price
528
+ * @default 'price'
529
+ */
530
+ price: string;
531
+
532
+ /**
533
+ * Array of results (standard)
534
+ * @default 'results'
535
+ */
536
+ results: string;
537
+
538
+ /**
539
+ * Result title
540
+ * @default 'title'
541
+ */
542
+ title: string;
543
+
544
+ /**
545
+ * Result url
546
+ * @default 'url'
547
+ */
548
+ url: string;
549
+
550
+ /**
551
+ * "view more" object name
552
+ * @default 'action'
553
+ */
554
+ action: string;
555
+
556
+ /**
557
+ * "view more" text
558
+ * @default 'text'
559
+ */
560
+ actionText: string;
561
+
562
+ /**
563
+ * "view more" url
564
+ * @default 'url'
565
+ */
566
+ actionURL: string;
567
+ }
568
+
569
+ interface Errors {
570
+ /**
571
+ * @default 'Cannot search. No source used, and Fomantic API module was not included'
572
+ */
573
+ source: string;
574
+
575
+ /**
576
+ * @default 'No Results'
577
+ */
578
+ noResultsHeader: string;
579
+
580
+ /**
581
+ * @default 'Your search returned no results'
582
+ */
583
+ noResults: string;
584
+
585
+ /**
586
+ * @default 'Error in debug logging, exiting.'
587
+ */
588
+ logging: string;
589
+
590
+ /**
591
+ * @default 'A valid template name was not specified.'
592
+ */
593
+ noTemplate: string;
594
+
595
+ /**
596
+ * @default 'There was an issue with querying the server.'
597
+ */
598
+ serverError: string;
599
+
600
+ /**
601
+ * @default 'Results must be an array to use maxResults setting'
602
+ */
603
+ maxResults: string;
604
+
605
+ /**
606
+ * @default 'The method you called is not defined.'
607
+ */
608
+ method: string;
609
+ }
610
+ }
611
+ }
612
+ }