@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,567 @@
1
+ declare namespace FomanticUI {
2
+ interface Modal {
3
+ settings: ModalSettings;
4
+
5
+ /**
6
+ * Shows the modal.
7
+ */
8
+ (behavior: 'show', callback?: () => void): JQuery;
9
+
10
+ /**
11
+ * Hides the modal.
12
+ */
13
+ (behavior: 'hide', callback?: () => void): JQuery;
14
+
15
+ /**
16
+ * Toggles the modal.
17
+ */
18
+ (behavior: 'toggle'): JQuery;
19
+
20
+ /**
21
+ * Refreshes centering of modal on page.
22
+ */
23
+ (behavior: 'refresh'): JQuery;
24
+
25
+ /**
26
+ * Shows associated page dimmer.
27
+ */
28
+ (behavior: 'show dimmer'): JQuery;
29
+
30
+ /**
31
+ * Hides associated page dimmer.
32
+ */
33
+ (behavior: 'hide dimmer'): JQuery;
34
+
35
+ /**
36
+ * Hides all modals not selected modal in a dimmer.
37
+ */
38
+ (behavior: 'hide others'): JQuery;
39
+
40
+ /**
41
+ * Hides all visible modals in the same dimmer.
42
+ */
43
+ (behavior: 'hide all'): JQuery;
44
+
45
+ /**
46
+ * Caches current modal size.
47
+ */
48
+ (behavior: 'cache sizes'): JQuery;
49
+
50
+ /**
51
+ * Returns whether the modal can fit on the page.
52
+ */
53
+ (behavior: 'can fit'): boolean;
54
+
55
+ /**
56
+ * Returns whether the modal is active.
57
+ */
58
+ (behavior: 'is active'): boolean;
59
+
60
+ /**
61
+ * Sets modal to active.
62
+ */
63
+ (behavior: 'set active'): JQuery;
64
+
65
+ /**
66
+ * Templates handling
67
+ */
68
+ (behavior: keyof Modal.TemplatesSettings, ...args: any): Partial<Pick<ModalSettings, keyof ModalSettings>>;
69
+
70
+ (behavior: 'destroy'): JQuery;
71
+ <K extends keyof ModalSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ModalSettings, keyof ModalSettings>>;
72
+ <K extends keyof ModalSettings>(behavior: 'setting', name: K, value: ModalSettings[K]): JQuery;
73
+ (behavior: 'setting', value: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
74
+ (settings?: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
75
+ }
76
+
77
+ /**
78
+ * @see {@link https://fomantic-ui.com/modules/modal.html#/settings}
79
+ */
80
+ interface ModalSettings {
81
+ // region Accordion Settings
82
+
83
+ /**
84
+ * If set to 'false' will prevent the modal from being moved to inside the dimmer.
85
+ * @default true
86
+ */
87
+ detachable: boolean;
88
+
89
+ /**
90
+ * Auto will automatically use flex in browsers that support absolutely positioned elements inside flex containers.
91
+ * Setting to 'true'/'false' will force this setting for all browsers.
92
+ * @default 'auto'
93
+ */
94
+ useFlex: 'auto' | boolean;
95
+
96
+ /**
97
+ * When 'true', the first form input inside the modal will receive focus when shown.
98
+ * Set this to 'false' to prevent this behavior.
99
+ * @default true
100
+ */
101
+ autofocus: boolean;
102
+
103
+ /**
104
+ * When 'false', the last focused element, before the modal was shown, will not get refocused again when the modal hides.
105
+ * This could prevent unwanted scrolling behaviors after closing a modal.
106
+ * @default true
107
+ */
108
+ restoreFocus: boolean;
109
+
110
+ /**
111
+ * When 'true', immediately shows the modal at instantiation time.
112
+ * @default false
113
+ */
114
+ autoShow: boolean;
115
+
116
+ /**
117
+ * Whether any change in modal DOM should automatically refresh cached positions.
118
+ * @default false
119
+ */
120
+ observeChanges: boolean;
121
+
122
+ /**
123
+ * If set to 'true' will not close other visible modals when opening a new one.
124
+ * @default false
125
+ */
126
+ allowMultiple: boolean;
127
+
128
+ /**
129
+ * If inverted dimmer should be used.
130
+ * @default false
131
+ */
132
+ inverted: boolean;
133
+
134
+ /**
135
+ * If dimmer should blur background.
136
+ * @default false
137
+ */
138
+ blurring: boolean;
139
+
140
+ /**
141
+ * If modal should be center aligned.
142
+ * @default true
143
+ */
144
+ centered: boolean;
145
+
146
+ /**
147
+ * Whether to automatically bind keyboard shortcuts.
148
+ * This will close the modal when the 'ESC-Key' is pressed.
149
+ * @default true
150
+ */
151
+ keyboardShortcuts: boolean;
152
+
153
+ /**
154
+ * A vertical offset to allow for content outside of modal, for example a close button, to be centered.
155
+ * @default 0
156
+ */
157
+ offset: number;
158
+
159
+ /**
160
+ * Selector or jquery object specifying the area to dim.
161
+ * @default 'body'
162
+ */
163
+ context: string | JQuery;
164
+
165
+ /**
166
+ * Setting to 'false' will not allow you to close the modal by clicking on the dimmer.
167
+ * @default true
168
+ */
169
+ closable: boolean;
170
+
171
+ /**
172
+ * Custom settings to extend UI dimmer.
173
+ */
174
+ dimmerSettings: Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
175
+
176
+ /**
177
+ * Custom settings to extend UI dimmer.
178
+ * @default 'scale'
179
+ */
180
+ transition: string | Modal.TransitionSettings;
181
+
182
+ /**
183
+ * Duration of animation.
184
+ * The value will be ignored when individual hide/show duration values are provided via the 'transition' setting.
185
+ * @default 400
186
+ */
187
+ duration: number;
188
+
189
+ /**
190
+ * Whether additional animations should queue.
191
+ * @default false
192
+ */
193
+ queue: boolean;
194
+
195
+ /**
196
+ * Used internally to determine if the webkit custom scrollbar was clicked to prevent hiding the dimmer.
197
+ * This should be set to the same (numeric) value as defined for '@customScrollbarWidth' in 'site.less' in case you are using a different theme.
198
+ * @default 10
199
+ */
200
+ scrollbarWidth: number;
201
+
202
+ // dynamic content
203
+
204
+ /**
205
+ * Title of dynamicly created modal.
206
+ * @default ''
207
+ */
208
+ title: string;
209
+
210
+ /**
211
+ * HTML content of dynamicly created modal.
212
+ * @default ''
213
+ */
214
+ content: string;
215
+
216
+ /**
217
+ * CSS classname(s) of dynamicly created modal.
218
+ * @default ''
219
+ */
220
+ class: string;
221
+
222
+ /**
223
+ * CSS classname(s) of dynamicly created modal's title.
224
+ * @default ''
225
+ */
226
+ classTitle: string;
227
+
228
+ /**
229
+ * CSS classname(s) of dynamicly created modal's content.
230
+ * @default ''
231
+ */
232
+ classContent: string;
233
+
234
+ /**
235
+ * CSS classname(s) of dynamicly created modal's actions.
236
+ * @default ''
237
+ */
238
+ classActions: string;
239
+
240
+ /**
241
+ * Determine if a close icon shoud be displayed on dynamicly created modal.
242
+ * @default false
243
+ */
244
+ closeIcon: boolean;
245
+
246
+ /**
247
+ *
248
+ * @default false
249
+ */
250
+ actions: any;
251
+
252
+ /**
253
+ *
254
+ * @default true
255
+ */
256
+ preserveHTML: boolean;
257
+
258
+ // endregion
259
+
260
+ // region Callbacks
261
+
262
+ /**
263
+ * Is called when a modal starts to show.
264
+ * If the function returns 'false', the modal will not be shown.
265
+ */
266
+ onShow(this: JQuery): void;
267
+
268
+ /**
269
+ * Is called after a modal has finished showing animating.
270
+ */
271
+ onVisible(this: JQuery): void;
272
+
273
+ /**
274
+ * Is called after a modal starts to hide.
275
+ * If the function returns 'false', the modal will not hide.
276
+ */
277
+ onHide(this: JQuery, $element: JQuery): void;
278
+
279
+ /**
280
+ * Is called after a modal has finished hiding animation.
281
+ */
282
+ onHidden(this: JQuery): void;
283
+
284
+ /**
285
+ * Is called after a positive, approve or ok button is pressed.
286
+ * If the function returns 'false', the modal will not hide.
287
+ */
288
+ onApprove(this: JQuery, $element: JQuery): void;
289
+
290
+ /**
291
+ * Is called after a negative, deny or cancel button is pressed. If the function returns 'false' the modal will not hide.
292
+ */
293
+ onDeny(this: JQuery, $element: JQuery): void;
294
+
295
+ // endregion
296
+
297
+ // region DOM Settings
298
+
299
+ /**
300
+ * DOM Selectors used internally.
301
+ * Selectors used to find parts of a module.
302
+ */
303
+ selector: Modal.SelectorSettings;
304
+
305
+ /**
306
+ * Class names used to determine element state.
307
+ */
308
+ className: Modal.ClassNameSettings;
309
+
310
+ // endregion
311
+
312
+ // region Config Template Settings
313
+
314
+ templates: Modal.TemplatesSettings;
315
+
316
+ // endregion
317
+
318
+ // region Debug Settings
319
+
320
+ /**
321
+ * Name used in log statements
322
+ * @default 'Modal'
323
+ */
324
+ name: string;
325
+
326
+ /**
327
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
328
+ * @default 'modal'
329
+ */
330
+ namespace: string;
331
+
332
+ /**
333
+ * Silences all console output including error messages, regardless of other debug settings.
334
+ * @default false
335
+ */
336
+ silent: boolean;
337
+
338
+ /**
339
+ * Debug output to console
340
+ * @default false
341
+ */
342
+ debug: boolean;
343
+
344
+ /**
345
+ * Show console.table output with performance metrics
346
+ * @default true
347
+ */
348
+ performance: boolean;
349
+
350
+ /**
351
+ * Debug output includes all internal behaviors
352
+ * @default false
353
+ */
354
+ verbose: boolean;
355
+
356
+ error: Modal.ErrorSettings;
357
+
358
+ // endregion
359
+ }
360
+
361
+ namespace Modal {
362
+ type TransitionSettings = Partial<Pick<Settings.Transition, keyof Settings.Transition>>;
363
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
364
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
365
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
366
+ type TemplatesSettings = Partial<Pick<Settings.Templates, keyof Settings.Templates>> & {[key: string]: (...args: any) => Partial<Pick<ModalSettings, keyof ModalSettings>>};
367
+
368
+ namespace Settings {
369
+ interface Transition {
370
+
371
+ /**
372
+ * Named animation show event to used.
373
+ * Must be defined in CSS.
374
+ */
375
+ showMethod: string;
376
+
377
+ /**
378
+ * Duration of the CSS show transition animation
379
+ */
380
+ showDuration: number;
381
+
382
+ /**
383
+ * Named animation hide event to used.
384
+ * Must be defined in CSS.
385
+ */
386
+ hideMethod: string;
387
+
388
+ /**
389
+ * Duration of the CSS hide transition animation
390
+ */
391
+ hideDuration: number;
392
+ }
393
+
394
+ interface Selectors {
395
+ /**
396
+ * @default '> .header'
397
+ */
398
+ title: string;
399
+
400
+ /**
401
+ * @default '> .content'
402
+ */
403
+ content: string;
404
+
405
+ /**
406
+ * @default '> .actions'
407
+ */
408
+ actions: string;
409
+
410
+ /**
411
+ * @default '> .close'
412
+ */
413
+ close: string;
414
+
415
+ /**
416
+ * @default '.actions .positive, .actions .approve, .actions .ok'
417
+ */
418
+ approve: string;
419
+
420
+ /**
421
+ * @default '.actions .negative, .actions .deny, .actions .cancel'
422
+ */
423
+ deny: string;
424
+
425
+ /**
426
+ * @default '> .ui.dimmer'
427
+ */
428
+ dimmer: string;
429
+
430
+ /**
431
+ * @default '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close'
432
+ */
433
+ bodyFixed: string;
434
+
435
+ /**
436
+ * @default '.ui.input > input'
437
+ */
438
+ prompt: string;
439
+ }
440
+
441
+ interface ClassNames {
442
+ /**
443
+ * @default 'active'
444
+ */
445
+ active: string;
446
+
447
+ /**
448
+ * @default 'animating'
449
+ */
450
+ animating: string;
451
+
452
+ /**
453
+ * @default 'blurring'
454
+ */
455
+ blurring: string;
456
+
457
+ /**
458
+ * @default 'inverted'
459
+ */
460
+ inverted: string;
461
+
462
+ /**
463
+ * @default 'legacy'
464
+ */
465
+ legacy: string;
466
+
467
+ /**
468
+ * @default 'loading'
469
+ */
470
+ loading: string;
471
+
472
+ /**
473
+ * @default 'scrolling'
474
+ */
475
+ scrolling: string;
476
+
477
+ /**
478
+ * @default 'undetached'
479
+ */
480
+ undetached: string;
481
+
482
+ /**
483
+ * @default 'front'
484
+ */
485
+ front: string;
486
+
487
+ /**
488
+ * @default 'close icon'
489
+ */
490
+ close: string;
491
+
492
+ /**
493
+ * @default 'ui button'
494
+ */
495
+ button: string;
496
+
497
+ /**
498
+ * @default 'ui modal'
499
+ */
500
+ modal: string;
501
+
502
+ /**
503
+ * @default 'header'
504
+ */
505
+ title: string;
506
+
507
+ /**
508
+ * @default 'content'
509
+ */
510
+ content: string;
511
+
512
+ /**
513
+ * @default 'actions'
514
+ */
515
+ actions: string;
516
+
517
+ /**
518
+ * @default 'ui tiny modal'
519
+ */
520
+ template: string;
521
+
522
+ /**
523
+ * @default 'positive'
524
+ */
525
+ ok: string;
526
+
527
+ /**
528
+ * @default 'negative'
529
+ */
530
+ cancel: string;
531
+
532
+ /**
533
+ * @default 'ui fluid input'
534
+ */
535
+ prompt: string;
536
+
537
+ /**
538
+ * @default 'ui inverted dimmer'
539
+ */
540
+ innerDimmer: string;
541
+ }
542
+
543
+ interface Errors {
544
+ /**
545
+ * @default 'UI Dimmer, a required component is not included in this page'
546
+ */
547
+ dimmer: string;
548
+
549
+ /**
550
+ * @default 'The method you called is not defined.'
551
+ */
552
+ method: string;
553
+
554
+ /**
555
+ * @default 'The element you specified could not be found'
556
+ */
557
+ notFound: string;
558
+ }
559
+
560
+ interface Templates {
561
+ alert(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
562
+ confirm(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
563
+ prompt(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
564
+ }
565
+ }
566
+ }
567
+ }