@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,867 @@
1
+ declare namespace FomanticUI {
2
+ interface Calendar {
3
+ settings: CalendarSettings;
4
+
5
+ /**
6
+ * Refresh the calendar
7
+ */
8
+ (behavior: 'refresh'): JQuery;
9
+
10
+ /**
11
+ * Call the popup module (e.g. passing show will show the calendar popup)
12
+ */
13
+ (behavior: 'popup', arguments: any): JQuery;
14
+
15
+ /**
16
+ * Focus the calendar input
17
+ */
18
+ (behavior: 'focus'): JQuery;
19
+
20
+ /**
21
+ * Blur the calendar input
22
+ */
23
+ (behavior: 'blur'): JQuery;
24
+
25
+ /**
26
+ * Clear the selected date
27
+ */
28
+ (behavior: 'clear'): JQuery;
29
+
30
+ /**
31
+ * Get the selected date
32
+ */
33
+ (behavior: 'get date', format?: string): Date | string;
34
+
35
+ /**
36
+ * Set the selected date.
37
+ * Pass false to updateInput to disable updating the input.
38
+ * Pass false to fireChange to disable the onBeforeChange and onChange callbacks for this change
39
+ */
40
+ (behavior: 'set date', date: Date | string | null, updateInput?: boolean, fireChange?: boolean): JQuery;
41
+
42
+ /**
43
+ * Get the current selection mode (year, month, day, hour, minute)
44
+ */
45
+ (behavior: 'get mode'): 'year' | 'month' | 'day' | 'hour' | 'minute';
46
+
47
+ /**
48
+ * Set the current selection mode (year, month, day, hour, minute)
49
+ */
50
+ (behavior: 'set mode', mode: 'year' | 'month' | 'day' | 'hour' | 'minute'): JQuery;
51
+
52
+ /**
53
+ * Get the start date for range selection
54
+ */
55
+ (behavior: 'get startDate', format?: string): Date | string;
56
+
57
+ /**
58
+ * Set the start date for range selection
59
+ */
60
+ (behavior: 'set startDate', date: Date | string): JQuery;
61
+
62
+ /**
63
+ * Get the end date for range selection
64
+ */
65
+ (behavior: 'get endDate', format?: string): Date | string;
66
+
67
+ /**
68
+ * Set the end date for range selection
69
+ */
70
+ (behavior: 'set endDate', date: Date | string): JQuery;
71
+
72
+ /**
73
+ * Get the currently focused date
74
+ */
75
+ (behavior: 'get focusDate', format?: string): Date | string;
76
+
77
+ /**
78
+ * Set the currently focused date
79
+ */
80
+ (behavior: 'set focusDate', date: Date | string): JQuery;
81
+
82
+ /**
83
+ * Set the minimal selectable date
84
+ */
85
+ (behavior: 'set minDate', date: Date | string | null): JQuery;
86
+
87
+ /**
88
+ * Set the maximal selectable date
89
+ */
90
+ (behavior: 'set maxDate', date: Date | string | null): JQuery;
91
+
92
+ (behavior: 'destroy'): JQuery;
93
+
94
+ <K extends keyof CalendarSettings>(behavior: 'setting', name: K, value?: undefined): Partial<Pick<CalendarSettings, keyof CalendarSettings>>;
95
+ <K extends keyof CalendarSettings>(behavior: 'setting', name: K, value: CalendarSettings[K]): JQuery;
96
+ (behavior: 'setting', value: Partial<Pick<CalendarSettings, keyof CalendarSettings>>): JQuery;
97
+ (settings?: Partial<Pick<CalendarSettings, keyof CalendarSettings>>): JQuery;
98
+ }
99
+
100
+ /**
101
+ * @see {@link https://fomantic-ui.com/modules/calendar.html#/settings}
102
+ */
103
+ interface CalendarSettings {
104
+ // region Toast Settings
105
+
106
+ /**
107
+ * Picker type, can be 'datetime', 'date', 'time', 'month', or 'year'.
108
+ *
109
+ * @default 'datetime'
110
+ */
111
+ type: 'datetime' | 'date' | 'time' | 'month' | 'year';
112
+
113
+ /**
114
+ * Day for first day column (0 = Sunday).
115
+ *
116
+ * @default 0
117
+ */
118
+ firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
119
+
120
+ /**
121
+ * Add row(s) to shorter months to keep day calendar height consistent (6 rows).
122
+ *
123
+ * @default 'true'
124
+ */
125
+ constantHeight: boolean;
126
+
127
+ /**
128
+ * Show a 'today/now' button at the bottom of the calendar.
129
+ *
130
+ * @default false
131
+ */
132
+ today: boolean;
133
+
134
+ /**
135
+ * Close the popup after selecting a date/time.
136
+ *
137
+ * @default false
138
+ */
139
+ closable: true;
140
+
141
+ /**
142
+ * Month before day when parsing/converting date from/to text.
143
+ *
144
+ * @default true
145
+ */
146
+ monthFirst: boolean;
147
+
148
+ /**
149
+ * Set input to readonly on touch devices.
150
+ *
151
+ * @default true
152
+ */
153
+ touchReadonly: boolean;
154
+
155
+ /**
156
+ * Create the calendar inline instead of inside a popup.
157
+ *
158
+ * @default false
159
+ */
160
+ inline: boolean;
161
+
162
+ /**
163
+ * Display the week number on the left.
164
+ *
165
+ * @default false
166
+ */
167
+ showWeekNumbers: boolean;
168
+
169
+ /**
170
+ * Disable some days of the week from selection (0= Sunday, 1=Monday, ...).
171
+ *
172
+ * @default []
173
+ */
174
+ disabledDaysOfWeek: number[];
175
+
176
+ /**
177
+ * An array of Date-Objects or Objects with given message to show in a popup when hovering over the appropriate date '{date: Date, message: string}'.
178
+ *
179
+ * @default []
180
+ */
181
+ disabledDates: object[];
182
+
183
+ /**
184
+ * An array of Date-Objects to be enabled for selection. All other dates are disabled.
185
+ *
186
+ * @default []
187
+ */
188
+ enabledDates: object[];
189
+
190
+ /**
191
+ * An array of Date-Objects or Objects with given message to show in a popup when hovering over the appropriate date
192
+ * and an individual class for the cell '{date: Date, message: string, class: string}'.
193
+ *
194
+ * @default []
195
+ */
196
+ eventDates: object[];
197
+
198
+ /**
199
+ * Default class to be added to each cell of an eventDate date element when no specific class is given to the eventDate element.
200
+ *
201
+ * @default 'blue'
202
+ */
203
+ eventClass: string;
204
+
205
+ /**
206
+ * Choose when to show the popup (defaults to 'focus' for input, 'click' for others).
207
+ *
208
+ * @default null
209
+ */
210
+ on: null | 'focus' | 'click';
211
+
212
+ /**
213
+ * Date to display initially when no date is selected (null = now).
214
+ *
215
+ * @default null
216
+ */
217
+ initialDate: Date | string | null;
218
+
219
+ /**
220
+ * Display mode to start in, can be 'year', 'month', 'day', 'hour', 'minute' (false = 'day').
221
+ *
222
+ * @default false
223
+ */
224
+ startMode: false | 'year' | 'month' | 'day' | 'hour' | 'minute';
225
+
226
+ /**
227
+ * Minimum date/time that can be selected, dates/times before are disabled.
228
+ *
229
+ * @default null
230
+ */
231
+ minDate: null | Date;
232
+
233
+ /**
234
+ * Maximum date/time that can be selected, dates/times after are disabled.
235
+ *
236
+ * @default null
237
+ */
238
+ maxDate: null | Date;
239
+
240
+ /**
241
+ * Show am/pm in time mode.
242
+ *
243
+ * @default true
244
+ */
245
+ ampm: boolean;
246
+
247
+ /**
248
+ * Disable year selection mode.
249
+ *
250
+ * @default false
251
+ */
252
+ disableYear: boolean;
253
+
254
+ /**
255
+ * Disable month selection mode.
256
+ *
257
+ * @default false
258
+ */
259
+ disableMonth: boolean;
260
+
261
+ /**
262
+ * Disable minute selection mode.
263
+ *
264
+ * @default false
265
+ */
266
+ disableMinute: boolean;
267
+
268
+ /**
269
+ * Format the input text upon input blur and module creation.
270
+ *
271
+ * @default true
272
+ */
273
+ formatInput: boolean;
274
+
275
+ /**
276
+ * jQuery object or selector for another calendar that represents the start date of a date range.
277
+ *
278
+ * @default null
279
+ */
280
+ startCalendar: null | JQuery | string;
281
+
282
+ /**
283
+ * jQuery object or selector for another calendar that represents the end date of a date range.
284
+ *
285
+ * @default null
286
+ */
287
+ endCalendar: null | JQuery | string;
288
+
289
+ /**
290
+ * Show multiple months when in 'day' mode.
291
+ *
292
+ * @default 1
293
+ */
294
+ multiMonth: number;
295
+
296
+ /**
297
+ * Minimum time gap, can only be 5, 10, 15, 20, 30.
298
+ *
299
+ * @default 5
300
+ */
301
+ minTimeGap: 5 | 10 | 15 | 20 | 30;
302
+
303
+ /**
304
+ * Starting short year until 99 where it will be assumed to belong to the last century.
305
+ *
306
+ * @default 60
307
+ */
308
+ centuryBreak: number;
309
+
310
+ /**
311
+ * Century to be added to 2-digit years (00 to 'centuryBreak' -1).
312
+ *
313
+ * @default 2000
314
+ */
315
+ currentCentury: number;
316
+
317
+ /**
318
+ * Make adjacent days from previous and next month also selectable.
319
+ *
320
+ * @default false
321
+ */
322
+ selectAdjacentDays: boolean;
323
+
324
+ popupOptions: Calendar.PopupSettings;
325
+
326
+ text: Calendar.TextSettings;
327
+
328
+ formatter: Calendar.FormatterSettings;
329
+
330
+ /**
331
+ * Customizable methods to parse a given date
332
+ * Has to return a date object
333
+ */
334
+ parser: {
335
+ date: (text: string, settings: CalendarSettings) => Date;
336
+ }
337
+
338
+ /**
339
+ * DOM selector where the calendar popup should be attached to. By default (false) the calendar popup
340
+ * is attached as direct child of the triggering element.
341
+ *
342
+ * @default false
343
+ */
344
+ context: string | JQuery | false
345
+
346
+ // end region
347
+
348
+ // region Callbacks
349
+
350
+ /**
351
+ * Is called before a calendar date changes. 'return false;' will cancel the change.
352
+ * @since 2.8.0
353
+ */
354
+ onBeforeChange(this: JQuery, date?: Date, text?: string, mode?: string): void;
355
+
356
+ /**
357
+ * Is called after a calendar date has changed.
358
+ */
359
+ onChange(this: JQuery, date?: Date): void;
360
+
361
+ /**
362
+ * Is called before a calendar is shown. 'return false;' will prevent the calendar to be shown.
363
+ */
364
+ onShow(this: JQuery): void;
365
+
366
+ /**
367
+ * Is called when the calendar is shown.
368
+ */
369
+ onVisible(this: JQuery): void;
370
+
371
+ /**
372
+ * Is called before a calendar is hidden. 'return false;' will prevent the calendar to be hidden.
373
+ */
374
+ onHide(this: JQuery): void;
375
+
376
+ /**
377
+ * Is called when the calendar is hidden.
378
+ */
379
+ onHidden(this: JQuery): void;
380
+
381
+ /**
382
+ * Is called when a cell of the calendar is selected providing its value and current mode.
383
+ * 'return false;' will prevent the selection.
384
+ */
385
+ onSelect(this: JQuery, date?: Date, mode?: string): void;
386
+
387
+ // endregion
388
+
389
+ // region DOM Settings
390
+
391
+ /**
392
+ * DOM Selectors used internally.
393
+ * If the calendars parent node matches the append selector, the calendar is appended to the input field instead of prepended.
394
+ */
395
+ selector: Calendar.SelectorSettings;
396
+
397
+ /**
398
+ * Class names used to attach style to state.
399
+ */
400
+ className: Calendar.ClassNameSettings;
401
+
402
+ /**
403
+ * Icon names used internally.
404
+ */
405
+ regExp: Calendar.RegExpSettings;
406
+
407
+ metadata: Calendar.MetadataSettings;
408
+
409
+ // endregion
410
+
411
+ // region Debug Settings
412
+
413
+ /**
414
+ * Name used in log statements
415
+ * @default 'Calendar'
416
+ */
417
+ name: string;
418
+
419
+ /**
420
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
421
+ * @default 'calendar'
422
+ */
423
+ namespace: string;
424
+
425
+ /**
426
+ * Silences all console output including error messages, regardless of other debug settings.
427
+ * @default false
428
+ */
429
+ silent: boolean;
430
+
431
+ /**
432
+ * Debug output to console
433
+ * @default false
434
+ */
435
+ debug: boolean;
436
+
437
+ /**
438
+ * Show console.table output with performance metrics
439
+ * @default true
440
+ */
441
+ performance: boolean;
442
+
443
+ /**
444
+ * Debug output includes all internal behaviors
445
+ * @default false
446
+ */
447
+ verbose: boolean;
448
+
449
+ error: Calendar.ErrorSettings;
450
+
451
+ // endregion
452
+ }
453
+
454
+ namespace Calendar {
455
+ type PopupSettings = Partial<Pick<Settings.Popup, keyof Settings.Popup>>;
456
+ type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
457
+ type FormatterSettings = Partial<Pick<Settings.Formatters, keyof Settings.Formatters>>;
458
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
459
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
460
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
461
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
462
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
463
+
464
+ namespace Settings {
465
+ interface Popup {
466
+ /**
467
+ * @default 'bottom left'
468
+ */
469
+ position: string;
470
+
471
+ /**
472
+ * @default 'bottom left'
473
+ */
474
+ lastResort: string;
475
+
476
+ /**
477
+ * @default 'opposite'
478
+ */
479
+ prefer: string;
480
+
481
+ /**
482
+ * @default false
483
+ */
484
+ hideOnScroll: boolean;
485
+ }
486
+
487
+ interface Texts {
488
+ /**
489
+ * @default ['S', 'M', 'T', 'W', 'T', 'F', 'S']
490
+ */
491
+ days: string[];
492
+
493
+ /**
494
+ * @default ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
495
+ */
496
+ dayNamesShort: string[];
497
+
498
+ /**
499
+ * @default ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
500
+ */
501
+ dayNames: string[];
502
+
503
+ /**
504
+ * @default ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
505
+ */
506
+ months: string[];
507
+
508
+ /**
509
+ * @default ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
510
+ */
511
+ monthsShort: string[];
512
+
513
+ /**
514
+ * @default 'Today'
515
+ */
516
+ today: string;
517
+
518
+ /**
519
+ * @default 'Now'
520
+ */
521
+ now: string;
522
+
523
+ /**
524
+ * @default 'AM'
525
+ */
526
+ am: string;
527
+
528
+ /**
529
+ * @default 'PM'
530
+ */
531
+ pm: string;
532
+
533
+ /**
534
+ * @default 'Week'
535
+ */
536
+ weekNo: string;
537
+ }
538
+
539
+ interface Formatters {
540
+ /**
541
+ *
542
+ */
543
+ yearHeader(date: Date, settings?: CalendarSettings): string;
544
+
545
+ /**
546
+ * @default 'YYYY'
547
+ */
548
+ monthHeader: string;
549
+
550
+ /**
551
+ * @default 'MMMM YYYY'
552
+ */
553
+ dayHeader: string;
554
+
555
+ /**
556
+ * @default 'MMMM D, YYYY'
557
+ */
558
+ hourHeader: string;
559
+
560
+ /**
561
+ * @default 'MMMM D, YYYY'
562
+ */
563
+ minuteHeader: string;
564
+
565
+ /**
566
+ * @default 'MMMM D, YYYY'
567
+ */
568
+ dayColumnHeader(day: number, settings: CalendarSettings): string;
569
+
570
+ /**
571
+ * @default 'MMMM D, YYYY h:mm A'
572
+ */
573
+ datetime: string;
574
+
575
+ /**
576
+ * @default 'MMMM D, YYYY'
577
+ */
578
+ date: string;
579
+
580
+ /**
581
+ * @default 'h:mm A'
582
+ */
583
+ time: string;
584
+
585
+ /**
586
+ * @default 'h:mm A'
587
+ */
588
+ cellTime: string;
589
+
590
+ /**
591
+ * @default 'MMMM YYYY'
592
+ */
593
+ month: string;
594
+
595
+ /**
596
+ * @default 'YYYY'
597
+ */
598
+ year: string;
599
+
600
+ /**
601
+ *
602
+ */
603
+ today(settings: CalendarSettings): string;
604
+
605
+ /**
606
+ *
607
+ */
608
+ cell(cell: string, date: Date, cellOptions: any): any
609
+ }
610
+
611
+ interface Selectors {
612
+ /**
613
+ * @default '.ui.popup'
614
+ */
615
+ popup: string;
616
+
617
+ /**
618
+ * @default 'input'
619
+ */
620
+ input: string;
621
+
622
+ /**
623
+ * @default 'input'
624
+ */
625
+ activator: string;
626
+
627
+ /**
628
+ * @default '.inline.field,.inline.fields'
629
+ */
630
+ append: string;
631
+ }
632
+
633
+ interface ClassNames {
634
+ /**
635
+ * @default 'calendar'
636
+ */
637
+ calendar: string;
638
+
639
+ /**
640
+ * @default 'active'
641
+ */
642
+ active: string;
643
+
644
+ /**
645
+ * @default 'ui popup'
646
+ */
647
+ popup: string;
648
+
649
+ /**
650
+ * @default 'ui equal width grid'
651
+ */
652
+ grid: string;
653
+
654
+ /**
655
+ * @default 'column'
656
+ */
657
+ column: string;
658
+
659
+ /**
660
+ * @default 'ui celled center aligned unstackable table'
661
+ */
662
+ table: string;
663
+
664
+ /**
665
+ * @default 'inverted'
666
+ */
667
+ inverted: string;
668
+
669
+ /**
670
+ * @default 'prev link'
671
+ */
672
+ prev: string;
673
+
674
+ /**
675
+ * @default 'next link'
676
+ */
677
+ next: string;
678
+
679
+ /**
680
+ * @default 'chevron left icon'
681
+ */
682
+ prevIcon: string;
683
+
684
+ /**
685
+ * @default 'chevron right icon'
686
+ */
687
+ nextIcon: string;
688
+
689
+ /**
690
+ * @default 'link'
691
+ */
692
+ link: string;
693
+
694
+ /**
695
+ * @default 'link'
696
+ */
697
+ cell: string;
698
+
699
+ /**
700
+ * @default 'disabled'
701
+ */
702
+ disabledCell: string;
703
+
704
+ /**
705
+ * @default 'disabled'
706
+ */
707
+ weekCell: string;
708
+
709
+ /**
710
+ * @default 'adjacent'
711
+ */
712
+ adjacentCell: string;
713
+
714
+ /**
715
+ * @default 'active'
716
+ */
717
+ activeCell: string;
718
+
719
+ /**
720
+ * @default 'range'
721
+ */
722
+ rangeCell: string;
723
+
724
+ /**
725
+ * @default 'focus'
726
+ */
727
+ focusCell: string;
728
+
729
+ /**
730
+ * @default 'today'
731
+ */
732
+ todayCell: string;
733
+
734
+ /**
735
+ * @default 'today link'
736
+ */
737
+ today: string;
738
+
739
+ /**
740
+ * @default 'disabled'
741
+ */
742
+ disabled: string;
743
+ }
744
+
745
+ interface RegExps {
746
+ /**
747
+ * @default /[^A-Za-z\u00C0-\u024F]+/g
748
+ */
749
+ dateWords: RegExp;
750
+
751
+ /**
752
+ * @default /[^\d:]+/g
753
+ */
754
+ dateNumbers: RegExp;
755
+
756
+ /**
757
+ * @default /d{1,4}|D{1,2}|M{1,4}|YY(?:YY)?|([Hhmsw])\1?|[ASYa]|"[^"]*"|'[^']*'/g
758
+ */
759
+ token: RegExp;
760
+ }
761
+
762
+ interface Metadatas {
763
+ /**
764
+ * @default 'date'
765
+ */
766
+ date: string;
767
+
768
+ /**
769
+ * @default 'focusDate'
770
+ */
771
+ focusDate: string;
772
+
773
+ /**
774
+ * @default 'startDate'
775
+ */
776
+ startDate: string;
777
+
778
+ /**
779
+ * @default 'endDate'
780
+ */
781
+ endDate: string;
782
+
783
+ /**
784
+ * @default 'minDate'
785
+ */
786
+ minDate: string;
787
+
788
+ /**
789
+ * @default 'maxDate'
790
+ */
791
+ maxDate: string;
792
+
793
+ /**
794
+ * @default 'mode'
795
+ */
796
+ mode: string;
797
+
798
+ /**
799
+ * @default 'type'
800
+ */
801
+ type: string;
802
+
803
+ /**
804
+ * @default 'monthOffset'
805
+ */
806
+ monthOffset: string;
807
+
808
+ /**
809
+ * @default 'message'
810
+ */
811
+ message: string;
812
+
813
+ /**
814
+ * @default 'class'
815
+ */
816
+ class: string;
817
+
818
+ /**
819
+ * @default 'inverted'
820
+ */
821
+ inverted: string;
822
+
823
+ /**
824
+ * @default 'variation'
825
+ */
826
+ variation: string;
827
+
828
+ /**
829
+ * @default 'position'
830
+ */
831
+ position: string;
832
+
833
+ /**
834
+ * @default 'month'
835
+ */
836
+ month: string;
837
+
838
+ /**
839
+ * @default 'year'
840
+ */
841
+ year: string;
842
+
843
+ /**
844
+ * @default 'hours'
845
+ */
846
+ hours: string;
847
+
848
+ /**
849
+ * @default 'days'
850
+ */
851
+ days: string;
852
+ }
853
+
854
+ interface Errors {
855
+ /**
856
+ * @default 'UI Popup, a required component is not included in this page.'
857
+ */
858
+ popup: string;
859
+
860
+ /**
861
+ * @default 'The method you called is not defined.'
862
+ */
863
+ method: string;
864
+ }
865
+ }
866
+ }
867
+ }