@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,274 @@
1
+ declare namespace FomanticUI {
2
+ interface Shape {
3
+ settings: ShapeSettings;
4
+
5
+ /**
6
+ * Flips the shape upward.
7
+ */
8
+ (behavior: 'flip up'): JQuery;
9
+
10
+ /**
11
+ * Flips the shape downward.
12
+ */
13
+ (behavior: 'flip down'): JQuery;
14
+
15
+ /**
16
+ * Flips the shape right.
17
+ */
18
+ (behavior: 'flip right'): JQuery;
19
+
20
+ /**
21
+ * Flips the shape left.
22
+ */
23
+ (behavior: 'flip left'): JQuery;
24
+
25
+ /**
26
+ * Flips the shape over clock-wise.
27
+ */
28
+ (behavior: 'flip over'): JQuery;
29
+
30
+ /**
31
+ * Flips the shape over counter-clockwise.
32
+ */
33
+ (behavior: 'flip back'): JQuery;
34
+
35
+ /**
36
+ * Set the next side to a specific selector.
37
+ */
38
+ (behavior: 'set next side', selector: string): JQuery;
39
+
40
+ /**
41
+ * Returns whether shape is currently animating.
42
+ */
43
+ (behavior: 'is animating'): boolean;
44
+
45
+ /**
46
+ * Removes all inline styles.
47
+ */
48
+ (behavior: 'reset'): JQuery;
49
+
50
+ /**
51
+ * Queues an animation after current animation.
52
+ */
53
+ (behavior: 'queue', animation: string): JQuery;
54
+
55
+ /**
56
+ * Forces a reflow on element.
57
+ */
58
+ (behavior: 'repaint', animation: string): JQuery;
59
+
60
+ /**
61
+ * Set the next side to next sibling to active element.
62
+ */
63
+ (behavior: 'set default side'): JQuery;
64
+
65
+ /**
66
+ * Sets shape to the content size of the next side.
67
+ */
68
+ (behavior: 'set stage size'): JQuery;
69
+
70
+ /**
71
+ * Refreshes the selector cache for element sides.
72
+ */
73
+ (behavior: 'refresh'): JQuery;
74
+
75
+ /**
76
+ * Returns translation for next side staged below.
77
+ */
78
+ (behavior: 'get transform down'): object;
79
+
80
+ /**
81
+ * Returns translation for next side staged left.
82
+ */
83
+ (behavior: 'get transform left'): object;
84
+
85
+ /**
86
+ * Returns translation for next side staged right.
87
+ */
88
+ (behavior: 'get transform right'): object;
89
+
90
+ /**
91
+ * Returns translation for next side staged up.
92
+ */
93
+ (behavior: 'get transform up'): object;
94
+
95
+ /**
96
+ * Returns translation for next side staged down.
97
+ */
98
+ (behavior: 'get transform down'): object;
99
+
100
+ /**
101
+ * Destroys instance and removes all events.
102
+ */
103
+ (behavior: 'destroy'): JQuery;
104
+
105
+ <K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ShapeSettings, keyof ShapeSettings>>;
106
+ <K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings[K]): JQuery;
107
+ (behavior: 'setting', value: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
108
+ (settings?: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
109
+ }
110
+
111
+ /**
112
+ * @see {@link https://fomantic-ui.com/modules/shape.html#/settings}
113
+ */
114
+ interface ShapeSettings {
115
+ // region Shape Settings
116
+
117
+ /**
118
+ * Duration of side change animation.
119
+ * @default false
120
+ */
121
+ duration: false | string;
122
+
123
+ /**
124
+ * Width during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
125
+ * @default 'initial'
126
+ */
127
+ width: 'auto' | 'initial' | 'next' | number;
128
+
129
+ /**
130
+ * Height during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
131
+ * @default 'initial'
132
+ */
133
+ height: 'auto' | 'initial' | 'next' | number;
134
+
135
+ /**
136
+ * Fudge factor in pixels when swapping from 2d to 3d (can be useful to correct rounding errors).
137
+ * @default 0
138
+ */
139
+ jitter: number;
140
+
141
+ /**
142
+ * Allow animation to same side.
143
+ * @default false
144
+ */
145
+ allowRepeats: boolean;
146
+
147
+ // endregion
148
+
149
+ // region Callbacks
150
+
151
+ /**
152
+ * Is called before side change.
153
+ */
154
+ onBeforeChange(this: JQuery): void;
155
+
156
+ /**
157
+ * Is called after visible side change.
158
+ */
159
+ onChange(this: JQuery): void;
160
+
161
+ // endregion
162
+
163
+ // region DOM Settings
164
+
165
+ /**
166
+ * DOM Selectors used internally.
167
+ * Selectors used to find parts of a module.
168
+ */
169
+ selector: Shape.SelectorSettings;
170
+
171
+ /**
172
+ * Class names used to determine element state.
173
+ */
174
+ className: Shape.ClassNameSettings;
175
+
176
+ // endregion
177
+
178
+ // region Debug Settings
179
+
180
+ /**
181
+ * Name used in log statements
182
+ * @default 'Shape'
183
+ */
184
+ name: string;
185
+
186
+ /**
187
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
188
+ * @default 'shape'
189
+ */
190
+ namespace: string;
191
+
192
+ /**
193
+ * Silences all console output including error messages, regardless of other debug settings.
194
+ * @default false
195
+ */
196
+ silent: boolean;
197
+
198
+ /**
199
+ * Debug output to console
200
+ * @default false
201
+ */
202
+ debug: boolean;
203
+
204
+ /**
205
+ * Show console.table output with performance metrics
206
+ * @default true
207
+ */
208
+ performance: boolean;
209
+
210
+ /**
211
+ * Debug output includes all internal behaviors
212
+ * @default false
213
+ */
214
+ verbose: boolean;
215
+
216
+ error: Shape.ErrorSettings;
217
+
218
+ // endregion
219
+ }
220
+
221
+ namespace Shape {
222
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
223
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
224
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
225
+
226
+ namespace Settings {
227
+ interface Selectors {
228
+ /**
229
+ * @default '.sides'
230
+ */
231
+ sides: string;
232
+
233
+ /**
234
+ * @default '.side'
235
+ */
236
+ side: string;
237
+ }
238
+
239
+ interface ClassNames {
240
+ /**
241
+ * @default 'animating'
242
+ */
243
+ animating: string;
244
+
245
+ /**
246
+ * @default 'hidden'
247
+ */
248
+ hidden: string;
249
+
250
+ /**
251
+ * @default 'loading'
252
+ */
253
+ loading: string;
254
+
255
+ /**
256
+ * @default 'active'
257
+ */
258
+ active: string;
259
+ }
260
+
261
+ interface Errors {
262
+ /**
263
+ * @default 'You tried to switch to a side that does not exist.'
264
+ */
265
+ side: string;
266
+
267
+ /**
268
+ * @default 'The method you called is not defined'
269
+ */
270
+ method: string;
271
+ }
272
+ }
273
+ }
274
+ }
@@ -0,0 +1,402 @@
1
+ declare namespace FomanticUI {
2
+ interface Sidebar {
3
+ settings: SidebarSettings;
4
+
5
+ /**
6
+ * Attaches sidebar action to given selector.
7
+ * Default event if none specified is 'toggle'.
8
+ */
9
+ (behavior: 'attach events', selector: string, event: string): JQuery;
10
+
11
+ /**
12
+ * Shows sidebar.
13
+ */
14
+ (behavior: 'show'): JQuery;
15
+
16
+ /**
17
+ * Hides sidebar.
18
+ */
19
+ (behavior: 'hide'): JQuery;
20
+
21
+ /**
22
+ * Toggles visibility of sidebar.
23
+ */
24
+ (behavior: 'toggle'): JQuery;
25
+
26
+ /**
27
+ * Returns whether sidebar is visible.
28
+ */
29
+ (behavior: 'is visible'): boolean;
30
+
31
+ /**
32
+ * Returns whether sidebar is hidden.
33
+ */
34
+ (behavior: 'is hidden'): boolean;
35
+
36
+ /**
37
+ * Pushes page content to be visible alongside sidebar.
38
+ */
39
+ (behavior: 'push page'): JQuery;
40
+
41
+ /**
42
+ * Returns direction of current sidebar.
43
+ */
44
+ (behavior: 'get direction'): string;
45
+
46
+ /**
47
+ * Returns page content to original position.
48
+ */
49
+ (behavior: 'pull page'): JQuery;
50
+
51
+ /**
52
+ * Adds stylesheet to page head to trigger sidebar animations.
53
+ */
54
+ (behavior: 'add body CSS'): JQuery;
55
+
56
+ /**
57
+ * Removes any inline stylesheets for sidebar animation.
58
+ */
59
+ (behavior: 'remove body CSS'): JQuery;
60
+
61
+ /**
62
+ * Returns vendor prefixed transition end event.
63
+ */
64
+ (behavior: 'get transition event'): string;
65
+
66
+ /**
67
+ * Destroys instance and removes all events.
68
+ */
69
+ (behavior: 'destroy'): JQuery;
70
+
71
+ <K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SidebarSettings, keyof SidebarSettings>>;
72
+ <K extends keyof SidebarSettings>(behavior: 'setting', name: K, value: SidebarSettings[K]): JQuery;
73
+ (behavior: 'setting', value: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
74
+ (settings?: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
75
+ }
76
+
77
+ /**
78
+ * @see {@link https://fomantic-ui.com/modules/sidebar.html#/settings}
79
+ */
80
+ interface SidebarSettings {
81
+ // region Sidebar Settings
82
+
83
+ /**
84
+ * Context which sidebar will appear inside.
85
+ * @default 'body'
86
+ */
87
+ context: string | JQuery;
88
+
89
+ /**
90
+ * Whether multiple sidebars can be open at once.
91
+ * @default false
92
+ */
93
+ exclusive: boolean;
94
+
95
+ /**
96
+ * Whether sidebar can be closed by clicking on page.
97
+ * @default true
98
+ */
99
+ closable: boolean;
100
+
101
+ /**
102
+ * Whether to dim page contents when sidebar is visible.
103
+ * @default true
104
+ */
105
+ dimPage: boolean;
106
+
107
+ /**
108
+ * Whether dimmer should blur background.
109
+ * @default false
110
+ */
111
+ blurring: boolean;
112
+
113
+ /**
114
+ * Whether to lock page scroll when sidebar is visible.
115
+ * @default false
116
+ */
117
+ scrollLock: boolean;
118
+
119
+ /**
120
+ * Whether to return to original scroll position when sidebar is hidden, automatically occurs with 'transition: scale'.
121
+ * @default false
122
+ */
123
+ returnScroll: boolean;
124
+
125
+ /**
126
+ * When sidebar is initialized without the proper HTML, using this option will defer creation of DOM to use 'requestAnimationFrame'.
127
+ * @default false
128
+ */
129
+ delaySetup: boolean;
130
+
131
+ // endregion
132
+
133
+ // region Animation Settings
134
+
135
+ /**
136
+ * Named transition to use when animating sidebar.
137
+ * Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
138
+ * @default 'auto'
139
+ */
140
+ transition: string;
141
+
142
+ /**
143
+ * Named transition to use when animating when detecting mobile device.
144
+ * Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
145
+ * @default 'auto'
146
+ */
147
+ mobileTransition: string;
148
+
149
+ /**
150
+ * Default transitions for each direction and screen size, used with 'transition: auto'.
151
+ * @default {}
152
+ */
153
+ defaultTransition: object;
154
+
155
+ // endregion
156
+
157
+ // region Callbacks
158
+
159
+ /**
160
+ * Is called when a sidebar has finished animating in.
161
+ */
162
+ onVisible(this: JQuery): void;
163
+
164
+ /**
165
+ * Is called when a sidebar begins animating in.
166
+ * Returning 'false' from this callback will cancel the sidebar from showing.
167
+ */
168
+ onShow(this: JQuery): boolean;
169
+
170
+ /**
171
+ * Is called when a sidebar begins to hide or show.
172
+ */
173
+ onChange(this: JQuery): void;
174
+
175
+ /**
176
+ * Is called before a sidebar begins to animate out.
177
+ * Returning 'false' from this callback will cancel the sidebar from hiding.
178
+ */
179
+ onHide(this: JQuery): boolean;
180
+
181
+ /**
182
+ * Is called after a sidebar has finished animating out.
183
+ */
184
+ onHidden(this: JQuery): void;
185
+
186
+ // endregion
187
+
188
+ // region DOM Settings
189
+
190
+ /**
191
+ * DOM Selectors used internally.
192
+ * Selectors used to find parts of a module.
193
+ */
194
+ selector: Sidebar.SelectorSettings;
195
+
196
+ /**
197
+ * Regular expressions used in the module.
198
+ */
199
+ regExp: Sidebar.RegExpSettings;
200
+
201
+ /**
202
+ * Class names used to determine element state.
203
+ */
204
+ className: Sidebar.ClassNameSettings;
205
+
206
+ // endregion
207
+
208
+ // region Debug Settings
209
+
210
+ /**
211
+ * Name used in log statements
212
+ * @default 'Sidebar'
213
+ */
214
+ name: string;
215
+
216
+ /**
217
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
218
+ * @default 'sidebar'
219
+ */
220
+ namespace: string;
221
+
222
+ /**
223
+ * Silences all console output including error messages, regardless of other debug settings.
224
+ * @default false
225
+ */
226
+ silent: boolean;
227
+
228
+ /**
229
+ * Debug output to console
230
+ * @default false
231
+ */
232
+ debug: boolean;
233
+
234
+ /**
235
+ * Show console.table output with performance metrics
236
+ * @default true
237
+ */
238
+ performance: boolean;
239
+
240
+ /**
241
+ * Debug output includes all internal behaviors
242
+ * @default false
243
+ */
244
+ verbose: boolean;
245
+
246
+ error: Sidebar.ErrorSettings;
247
+
248
+ // endregion
249
+ }
250
+
251
+ namespace Sidebar {
252
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
253
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
254
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
255
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
256
+
257
+ namespace Settings {
258
+ interface Selectors {
259
+ /**
260
+ * @default '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close'
261
+ */
262
+ bodyFixed: string;
263
+
264
+ /**
265
+ * @default '.fixed'
266
+ */
267
+ fixed: string;
268
+
269
+ /**
270
+ * @default 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed'
271
+ */
272
+ omitted: string;
273
+
274
+ /**
275
+ * @default '.pusher'
276
+ */
277
+ pusher: string;
278
+
279
+ /**
280
+ * @default '.ui.sidebar'
281
+ */
282
+ sidebar: string;
283
+ }
284
+
285
+ interface RegExps {
286
+ /**
287
+ * @default /(iPad|iPhone|iPod)/g
288
+ */
289
+ ios: RegExp;
290
+
291
+ /**
292
+ * @default /(CriOS)/g
293
+ */
294
+ mobileChrome: RegExp;
295
+
296
+ /**
297
+ * @default /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g
298
+ */
299
+ mobile: RegExp;
300
+ }
301
+
302
+ interface ClassNames {
303
+ /**
304
+ * @default 'active'
305
+ */
306
+ active: string;
307
+
308
+ /**
309
+ * @default 'animating'
310
+ */
311
+ animating: string;
312
+
313
+ /**
314
+ * @default 'blurring'
315
+ */
316
+ blurring: string;
317
+
318
+ /**
319
+ * @default 'closing'
320
+ */
321
+ closing: string;
322
+
323
+ /**
324
+ * @default 'dimmed'
325
+ */
326
+ dimmed: string;
327
+
328
+ /**
329
+ * @default 'ios'
330
+ */
331
+ ios: string;
332
+
333
+ /**
334
+ * @default 'locked'
335
+ */
336
+ locked: string;
337
+
338
+ /**
339
+ * @default 'pushable'
340
+ */
341
+ pushable: string;
342
+
343
+ /**
344
+ * @default 'pushed'
345
+ */
346
+ pushed: string;
347
+
348
+ /**
349
+ * @default 'right'
350
+ */
351
+ right: string;
352
+
353
+ /**
354
+ * @default 'top'
355
+ */
356
+ top: string;
357
+
358
+ /**
359
+ * @default 'left'
360
+ */
361
+ left: string;
362
+
363
+ /**
364
+ * @default 'bottom'
365
+ */
366
+ bottom: string;
367
+
368
+ /**
369
+ * @default 'visible'
370
+ */
371
+ visible: string;
372
+ }
373
+
374
+ interface Errors {
375
+ /**
376
+ * @default 'The method you called is not defined.'
377
+ */
378
+ method: string;
379
+
380
+ /**
381
+ * @default 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element'
382
+ */
383
+ pusher: string;
384
+
385
+ /**
386
+ * @default 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag'
387
+ */
388
+ movedSidebar: string;
389
+
390
+ /**
391
+ * @default 'The overlay setting is no longer supported, use animation: overlay'
392
+ */
393
+ overlay: string;
394
+
395
+ /**
396
+ * @default 'There were no elements that matched the specified selector'
397
+ */
398
+ notFound: string;
399
+ }
400
+ }
401
+ }
402
+ }