@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,355 @@
1
+ declare namespace FomanticUI {
2
+ interface Visibility {
3
+ settings: VisibilitySettings;
4
+
5
+ /**
6
+ * Disable callbacks temporarily.
7
+ * This is useful if you need to adjust scroll position and do not want to trigger callbacks during the position change.
8
+ */
9
+ (behavior: 'disable callbacks'): JQuery;
10
+
11
+ /**
12
+ * Re-enable callbacks.
13
+ */
14
+ (behavior: 'enable callbacks'): JQuery;
15
+
16
+ /**
17
+ * Returns whether element is on screen.
18
+ */
19
+ (behavior: 'is on screen'): boolean;
20
+
21
+ /**
22
+ * Returns whether element is off screen.
23
+ */
24
+ (behavior: 'is off screen'): boolean;
25
+
26
+ /**
27
+ * Returns number of pixels passed in current element from top of element.
28
+ */
29
+ (behavior: 'get pixels passed'): number;
30
+
31
+ /**
32
+ * Returns element calculations as object.
33
+ */
34
+ (behavior: 'get element calculations'): object;
35
+
36
+ /**
37
+ * Returns screen calculations as object.
38
+ */
39
+ (behavior: 'get screen calculations'): object;
40
+
41
+ /**
42
+ * Returns screen size as object.
43
+ */
44
+ (behavior: 'get screen size'): object;
45
+
46
+ (behavior: 'destroy'): JQuery;
47
+ <K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>;
48
+ <K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value: VisibilitySettings[K]): JQuery;
49
+ (behavior: 'setting', value: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
50
+ (settings?: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
51
+ }
52
+
53
+ /**
54
+ * @see {@link https://fomantic-ui.com/behaviors/visibility.html#/settings}
55
+ */
56
+ interface VisibilitySettings {
57
+ // region Visibility Settings
58
+
59
+ /**
60
+ * When set to 'false' a callback will occur each time an element passes the threshold for a condition.
61
+ * @default true
62
+ */
63
+ once: boolean;
64
+
65
+ /**
66
+ * When set to 'true' a callback will occur anytime an element passes a condition not just immediately after the threshold is met.
67
+ * @default false
68
+ */
69
+ continuous: boolean;
70
+
71
+ /**
72
+ * Set to 'image' to load images when on screen. Set to 'fixed' to add class name 'fixed' when passed.
73
+ * @default false
74
+ */
75
+ type: false | 'image' | 'fixed';
76
+
77
+ /**
78
+ * Whether visibility conditions should be checked immediately on init.
79
+ * @default true
80
+ */
81
+ initialCheck: boolean;
82
+
83
+ /**
84
+ * The scroll context visibility should use.
85
+ * @default window
86
+ */
87
+ context: Window | string | JQuery;
88
+
89
+ /**
90
+ * Whether visibility conditions should be checked on window load.
91
+ * This ensures that after images load content positions will be updated correctly.
92
+ * @default true
93
+ */
94
+ refreshOnLoad: boolean;
95
+
96
+ /**
97
+ * Whether visibility conditions should be checked on window resize.
98
+ * Useful when content resizes causes continuous changes in position.
99
+ * @default true
100
+ */
101
+ refreshOnResize: boolean;
102
+
103
+ /**
104
+ * Whether visibility conditions should be checked on calls to refresh.
105
+ * These calls can be triggered from either resize, load or manually calling.
106
+ * @default true
107
+ */
108
+ checkOnRefresh: boolean;
109
+
110
+ /**
111
+ * Specify a z-index when using type: 'fixed'.
112
+ * @default 10
113
+ */
114
+ zIndex: number;
115
+
116
+ /**
117
+ * Value that context 'scrollTop' should be adjusted in pixels.
118
+ * Useful for making content appear below content fixed to the page.
119
+ * @default 0
120
+ */
121
+ offset: number;
122
+
123
+ /**
124
+ * Whether element calculations should include its margin.
125
+ * @default false
126
+ */
127
+ includeMargin: boolean;
128
+
129
+ /**
130
+ * When set to an 'integer', scroll position will be debounced using this ms value.
131
+ * 'false' will debounce with requestAnimationFrame.
132
+ * @default false
133
+ */
134
+ throttle: boolean | number;
135
+
136
+ /**
137
+ * Whether to automatically refresh content when changes are made to the element's DOM subtree.
138
+ * @default true
139
+ */
140
+ observeChanges: boolean;
141
+
142
+ /**
143
+ * When using type: image allows you to specify transition when showing a loaded image.
144
+ * @default false
145
+ */
146
+ transition: false | string;
147
+
148
+ /**
149
+ * When using type: image allows you to specify transition duration.
150
+ * @default 1000
151
+ */
152
+ duration: number;
153
+
154
+ // endregion
155
+
156
+ // region Callbacks
157
+
158
+ /**
159
+ * Any part of element is in current scroll viewport.
160
+ */
161
+ onOnScreen(this: JQuery): void;
162
+
163
+ /**
164
+ * No part of element is in current scroll viewport.
165
+ */
166
+ onOffScreen(this: JQuery): void;
167
+
168
+ /**
169
+ * No part of element is in current scroll viewport.
170
+ */
171
+ onOffScreen(this: JQuery): void;
172
+
173
+ /**
174
+ * Element's top edge has passed bottom of screen.
175
+ */
176
+ onTopVisible(this: JQuery): void;
177
+
178
+ /**
179
+ * Element's top edge has passed top of the screen.
180
+ */
181
+ onTopPassed(this: JQuery): void;
182
+
183
+ /**
184
+ * Element's bottom edge has passed bottom of screen.
185
+ */
186
+ onBottomVisible(this: JQuery): void;
187
+
188
+ /**
189
+ * Any part of an element is visible on screen.
190
+ */
191
+ onPassing(this: JQuery): void;
192
+
193
+ /**
194
+ * Element's bottom edge has passed top of screen.
195
+ */
196
+ onBottomPassed(this: JQuery): void;
197
+
198
+ /**
199
+ * Element's top edge has not passed bottom of screen.
200
+ */
201
+ onTopVisibleReverse(this: JQuery): void;
202
+
203
+ /**
204
+ * Element's top edge has not passed top of the screen.
205
+ */
206
+ onTopPassedReverse(this: JQuery): void;
207
+
208
+ /**
209
+ * Element's bottom edge has not passed bottom of screen.
210
+ */
211
+ onBottomVisibleReverse(this: JQuery): void;
212
+
213
+ /**
214
+ * Element's top has not passed top of screen but bottom has.
215
+ */
216
+ onPassingReverse(this: JQuery): void;
217
+
218
+ /**
219
+ * Element's bottom edge has not passed top of screen.
220
+ */
221
+ onBottomPassedReverse(this: JQuery): void;
222
+
223
+ /**
224
+ * Occurs after an image has completed loading.
225
+ */
226
+ onLoad(this: JQuery): void;
227
+
228
+ /**
229
+ * Occurs after all 'img' initialized at the same time have loaded.
230
+ */
231
+ onAllLoaded(this: JQuery): void;
232
+
233
+ /**
234
+ * Occurs after element has been assigned position fixed.
235
+ */
236
+ onFixed(this: JQuery): void;
237
+
238
+ /**
239
+ * Occurs after element has been removed from fixed position.
240
+ */
241
+ onUnfixed(this: JQuery): void;
242
+
243
+ /**
244
+ * Occurs each time an elements calculations are updated.
245
+ */
246
+ onUpdate(this: JQuery, calculations: object): void;
247
+
248
+ /**
249
+ * Occurs whenever element's visibility is refreshed.
250
+ */
251
+ onRefresh(this: JQuery, calculations: object): void;
252
+
253
+ // endregion
254
+
255
+ // region DOM Settings
256
+
257
+ /**
258
+ * Metadata used internally.
259
+ */
260
+ metadata: Visibility.MetadataSettings;
261
+
262
+ /**
263
+ * Class names used to determine element state.
264
+ */
265
+ className: Visibility.ClassNameSettings;
266
+
267
+ // endregion
268
+
269
+ // region Debug Settings
270
+
271
+ /**
272
+ * Name used in log statements
273
+ * @default 'Visibility'
274
+ */
275
+ name: string;
276
+
277
+ /**
278
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
279
+ * @default 'visibility'
280
+ */
281
+ namespace: string;
282
+
283
+ /**
284
+ * Silences all console output including error messages, regardless of other debug settings.
285
+ * @default false
286
+ */
287
+ silent: boolean;
288
+
289
+ /**
290
+ * Debug output to console
291
+ * @default false
292
+ */
293
+ debug: boolean;
294
+
295
+ /**
296
+ * Show console.table output with performance metrics
297
+ * @default true
298
+ */
299
+ performance: boolean;
300
+
301
+ /**
302
+ * Debug output includes all internal behaviors
303
+ * @default false
304
+ */
305
+ verbose: boolean;
306
+
307
+ error: Visibility.ErrorSettings;
308
+
309
+ // endregion
310
+ }
311
+
312
+ namespace Visibility {
313
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
314
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
315
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
316
+
317
+ namespace Settings {
318
+ interface Metadatas {
319
+ /**
320
+ * @default 'src'
321
+ */
322
+ src: string;
323
+ }
324
+
325
+ interface ClassNames {
326
+ /**
327
+ * @default 'fixed'
328
+ */
329
+ fixed: string;
330
+
331
+ /**
332
+ * @default 'constraint'
333
+ */
334
+ placeholder: string;
335
+
336
+ /**
337
+ * @default 'visible'
338
+ */
339
+ visible: string;
340
+ }
341
+
342
+ interface Errors {
343
+ /**
344
+ * @default 'The method you called is not defined.'
345
+ */
346
+ method: string;
347
+
348
+ /**
349
+ * @default 'Element is hidden, you must call refresh after element becomes visible'
350
+ */
351
+ visible: string;
352
+ }
353
+ }
354
+ }
355
+ }
@@ -0,0 +1,63 @@
1
+ // Type definitions for fomantic-ui 2.9
2
+ // Project: https://github.com/fomantic/Fomantic-UI
3
+ // Definitions by: Fomantic Team <https://github.com/fomantic>
4
+
5
+ /// <reference types="jquery" />
6
+
7
+ /// <reference path="fomantic-ui-accordion.d.ts" />
8
+ /// <reference path="fomantic-ui-api.d.ts" />
9
+ /// <reference path="fomantic-ui-calendar.d.ts" />
10
+ /// <reference path="fomantic-ui-checkbox.d.ts" />
11
+ /// <reference path="fomantic-ui-dimmer.d.ts" />
12
+ /// <reference path="fomantic-ui-dimmer.d.ts" />
13
+ /// <reference path="fomantic-ui-dropdown.d.ts" />
14
+ /// <reference path="fomantic-ui-embed.d.ts" />
15
+ /// <reference path="fomantic-ui-flyout.d.ts" />
16
+ /// <reference path="fomantic-ui-form.d.ts" />
17
+ /// <reference path="fomantic-ui-modal.d.ts" />
18
+ /// <reference path="fomantic-ui-nag.d.ts" />
19
+ /// <reference path="fomantic-ui-popup.d.ts" />
20
+ /// <reference path="fomantic-ui-progress.d.ts" />
21
+ /// <reference path="fomantic-ui-rating.d.ts" />
22
+ /// <reference path="fomantic-ui-search.d.ts" />
23
+ /// <reference path="fomantic-ui-shape.d.ts" />
24
+ /// <reference path="fomantic-ui-sidebar.d.ts" />
25
+ /// <reference path="fomantic-ui-slider.d.ts" />
26
+ /// <reference path="fomantic-ui-sticky.d.ts" />
27
+ /// <reference path="fomantic-ui-tab.d.ts" />
28
+ /// <reference path="fomantic-ui-toast.d.ts" />
29
+ /// <reference path="fomantic-ui-transition.d.ts" />
30
+ /// <reference path="fomantic-ui-visibility.d.ts" />
31
+
32
+ interface JQuery {
33
+ accordion: FomanticUI.Accordion;
34
+ api: FomanticUI.API;
35
+ calendar: FomanticUI.Calendar;
36
+ checkbox: FomanticUI.Checkbox;
37
+ dimmer: FomanticUI.Dimmer;
38
+ dropdown: FomanticUI.Dropdown;
39
+ embed: FomanticUI.Embed;
40
+ flyout: FomanticUI.Flyout;
41
+ form: FomanticUI.Form;
42
+ modal: FomanticUI.Modal;
43
+ nag: FomanticUI.Nag;
44
+ popup: FomanticUI.Popup;
45
+ progress: FomanticUI.Progress;
46
+ rating: FomanticUI.Rating;
47
+ search: FomanticUI.Search;
48
+ shape: FomanticUI.Shape;
49
+ sidebar: FomanticUI.Sidebar;
50
+ slider: FomanticUI.Slider;
51
+ sticky: FomanticUI.Sticky;
52
+ tab: FomanticUI.Tab;
53
+ toast: FomanticUI.Toast;
54
+ transition: FomanticUI.Transition;
55
+ visibility: FomanticUI.Visibility;
56
+ }
57
+
58
+ interface JQueryStatic {
59
+ api: FomanticUI.API;
60
+ flyout: FomanticUI.Flyout;
61
+ modal: FomanticUI.Modal;
62
+ toast: FomanticUI.Toast;
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northdata/fomantic-ui",
3
- "version": "2.9.400",
3
+ "version": "2.9.402",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "npm run clean && npm run build-dev && npm run build-prod",
@@ -10,9 +10,10 @@
10
10
  "clean": "gulp clean"
11
11
  },
12
12
  "files": [
13
- "lib/semantic-ui/dist"
13
+ "lib/semantic-ui/dist",
14
+ "lib/semantic-ui/types/*.d.ts"
14
15
  ],
15
- "types": "./lib/semantic-ui/types/index.d.ts",
16
+ "types": "lib/semantic-ui/types/index.d.ts",
16
17
  "repository": {
17
18
  "type": "git",
18
19
  "url": "git://github.com/northdata/fomantic-ui.git"