fomantic-ui 2.9.3-beta.46 → 2.9.3-beta.47
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.
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -1
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +53 -53
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +1 -1
- package/types/fomantic-ui-accordion.d.ts +166 -172
- package/types/fomantic-ui-api.d.ts +418 -470
- package/types/fomantic-ui-calendar.d.ts +425 -479
- package/types/fomantic-ui-checkbox.d.ts +148 -194
- package/types/fomantic-ui-dimmer.d.ts +188 -265
- package/types/fomantic-ui-dropdown.d.ts +447 -666
- package/types/fomantic-ui-embed.d.ts +243 -289
- package/types/fomantic-ui-flyout.d.ts +259 -292
- package/types/fomantic-ui-form.d.ts +478 -607
- package/types/fomantic-ui-modal.d.ts +389 -471
- package/types/fomantic-ui-nag.d.ts +228 -277
- package/types/fomantic-ui-popup.d.ts +438 -534
- package/types/fomantic-ui-progress.d.ts +278 -352
- package/types/fomantic-ui-rating.d.ts +137 -168
- package/types/fomantic-ui-search.d.ts +359 -453
- package/types/fomantic-ui-shape.d.ts +152 -194
- package/types/fomantic-ui-sidebar.d.ts +315 -391
- package/types/fomantic-ui-slider.d.ts +259 -322
- package/types/fomantic-ui-sticky.d.ts +198 -244
- package/types/fomantic-ui-tab.d.ts +284 -350
- package/types/fomantic-ui-tests.ts +4 -2
- package/types/fomantic-ui-toast.d.ts +318 -424
- package/types/fomantic-ui-transition.d.ts +223 -273
- package/types/fomantic-ui-visibility.d.ts +286 -353
- package/types/index.d.ts +0 -1
@@ -91,412 +91,359 @@ declare namespace FomanticUI {
|
|
91
91
|
|
92
92
|
(behavior: 'destroy'): JQuery;
|
93
93
|
|
94
|
-
<K extends keyof CalendarSettings>(behavior: 'setting', name: K, value?: undefined): CalendarSettings
|
95
|
-
<K extends keyof CalendarSettings>(behavior: 'setting', name: K, value: CalendarSettings
|
96
|
-
(behavior: 'setting', value: CalendarSettings): JQuery;
|
97
|
-
(settings?: CalendarSettings): JQuery;
|
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
98
|
}
|
99
99
|
|
100
100
|
/**
|
101
101
|
* @see {@link https://fomantic-ui.com/modules/calendar.html#/settings}
|
102
102
|
*/
|
103
|
-
|
104
|
-
|
105
|
-
namespace CalendarSettings {
|
106
|
-
type Param = (
|
107
|
-
| Pick<_Impl, 'type'>
|
108
|
-
| Pick<_Impl, 'firstDayOfWeek'>
|
109
|
-
| Pick<_Impl, 'constantHeight'>
|
110
|
-
| Pick<_Impl, 'today'>
|
111
|
-
| Pick<_Impl, 'closable'>
|
112
|
-
| Pick<_Impl, 'monthFirst'>
|
113
|
-
| Pick<_Impl, 'touchReadonly'>
|
114
|
-
| Pick<_Impl, 'inline'>
|
115
|
-
| Pick<_Impl, 'showWeekNumbers'>
|
116
|
-
| Pick<_Impl, 'disabledDaysOfWeek'>
|
117
|
-
| Pick<_Impl, 'disabledDates'>
|
118
|
-
| Pick<_Impl, 'enabledDates'>
|
119
|
-
| Pick<_Impl, 'eventDates'>
|
120
|
-
| Pick<_Impl, 'eventClass'>
|
121
|
-
| Pick<_Impl, 'on'>
|
122
|
-
| Pick<_Impl, 'initialDate'>
|
123
|
-
| Pick<_Impl, 'startMode'>
|
124
|
-
| Pick<_Impl, 'minDate'>
|
125
|
-
| Pick<_Impl, 'maxDate'>
|
126
|
-
| Pick<_Impl, 'ampm'>
|
127
|
-
| Pick<_Impl, 'disableYear'>
|
128
|
-
| Pick<_Impl, 'disableMonth'>
|
129
|
-
| Pick<_Impl, 'disableMinute'>
|
130
|
-
| Pick<_Impl, 'formatInput'>
|
131
|
-
| Pick<_Impl, 'startCalendar'>
|
132
|
-
| Pick<_Impl, 'endCalendar'>
|
133
|
-
| Pick<_Impl, 'multiMonth'>
|
134
|
-
| Pick<_Impl, 'minTimeGap'>
|
135
|
-
| Pick<_Impl, 'centuryBreak'>
|
136
|
-
| Pick<_Impl, 'currentCentury'>
|
137
|
-
| Pick<_Impl, 'selectAdjacentDays'>
|
138
|
-
| Pick<_Impl, 'popupOptions'>
|
139
|
-
| Pick<_Impl, 'onBeforeChange'>
|
140
|
-
| Pick<_Impl, 'onChange'>
|
141
|
-
| Pick<_Impl, 'onShow'>
|
142
|
-
| Pick<_Impl, 'onVisible'>
|
143
|
-
| Pick<_Impl, 'onHide'>
|
144
|
-
| Pick<_Impl, 'onHidden'>
|
145
|
-
| Pick<_Impl, 'onSelect'>
|
146
|
-
| Pick<_Impl, 'selector'>
|
147
|
-
| Pick<_Impl, 'className'>
|
148
|
-
| Pick<_Impl, 'regExp'>
|
149
|
-
| Pick<_Impl, 'name'>
|
150
|
-
| Pick<_Impl, 'namespace'>
|
151
|
-
| Pick<_Impl, 'silent'>
|
152
|
-
| Pick<_Impl, 'debug'>
|
153
|
-
| Pick<_Impl, 'performance'>
|
154
|
-
| Pick<_Impl, 'verbose'>
|
155
|
-
| Pick<_Impl, 'error'>
|
156
|
-
) &
|
157
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
158
|
-
|
159
|
-
interface _Impl {
|
160
|
-
// region Toast Settings
|
161
|
-
|
162
|
-
/**
|
163
|
-
* Picker type, can be 'datetime', 'date', 'time', 'month', or 'year'.
|
164
|
-
*
|
165
|
-
* @default 'datetime'
|
166
|
-
*/
|
167
|
-
type: 'datetime' | 'date' | 'time' | 'month' | 'year';
|
168
|
-
|
169
|
-
/**
|
170
|
-
* Day for first day column (0 = Sunday).
|
171
|
-
*
|
172
|
-
* @default 0
|
173
|
-
*/
|
174
|
-
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
175
|
-
|
176
|
-
/**
|
177
|
-
* Add row(s) to shorter months to keep day calendar height consistent (6 rows).
|
178
|
-
*
|
179
|
-
* @default 'true'
|
180
|
-
*/
|
181
|
-
constantHeight: boolean;
|
182
|
-
|
183
|
-
/**
|
184
|
-
* Show a 'today/now' button at the bottom of the calendar.
|
185
|
-
*
|
186
|
-
* @default false
|
187
|
-
*/
|
188
|
-
today: boolean;
|
189
|
-
|
190
|
-
/**
|
191
|
-
* Close the popup after selecting a date/time.
|
192
|
-
*
|
193
|
-
* @default false
|
194
|
-
*/
|
195
|
-
closable: true;
|
196
|
-
|
197
|
-
/**
|
198
|
-
* Month before day when parsing/converting date from/to text.
|
199
|
-
*
|
200
|
-
* @default true
|
201
|
-
*/
|
202
|
-
monthFirst: boolean;
|
203
|
-
|
204
|
-
/**
|
205
|
-
* Set input to readonly on touch devices.
|
206
|
-
*
|
207
|
-
* @default true
|
208
|
-
*/
|
209
|
-
touchReadonly: boolean;
|
210
|
-
|
211
|
-
/**
|
212
|
-
* Create the calendar inline instead of inside a popup.
|
213
|
-
*
|
214
|
-
* @default false
|
215
|
-
*/
|
216
|
-
inline: boolean;
|
217
|
-
|
218
|
-
/**
|
219
|
-
* Display the week number on the left.
|
220
|
-
*
|
221
|
-
* @default false
|
222
|
-
*/
|
223
|
-
showWeekNumbers: boolean;
|
224
|
-
|
225
|
-
/**
|
226
|
-
* Disable some days of the week from selection (0= Sunday, 1=Monday, ...).
|
227
|
-
*
|
228
|
-
* @default []
|
229
|
-
*/
|
230
|
-
disabledDaysOfWeek: number[];
|
231
|
-
|
232
|
-
/**
|
233
|
-
* 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}'.
|
234
|
-
*
|
235
|
-
* @default []
|
236
|
-
*/
|
237
|
-
disabledDates: object[];
|
238
|
-
|
239
|
-
/**
|
240
|
-
* An array of Date-Objects to be enabled for selection. All other dates are disabled.
|
241
|
-
*
|
242
|
-
* @default []
|
243
|
-
*/
|
244
|
-
enabledDates: object[];
|
245
|
-
|
246
|
-
/**
|
247
|
-
* An array of Date-Objects or Objects with given message to show in a popup when hovering over the appropriate date
|
248
|
-
* and an individual class for the cell '{date: Date, message: string, class: string}'.
|
249
|
-
*
|
250
|
-
* @default []
|
251
|
-
*/
|
252
|
-
eventDates: object[];
|
253
|
-
|
254
|
-
/**
|
255
|
-
* Default class to be added to each cell of an eventDate date element when no specific class is given to the eventDate element.
|
256
|
-
*
|
257
|
-
* @default 'blue'
|
258
|
-
*/
|
259
|
-
eventClass: string;
|
260
|
-
|
261
|
-
/**
|
262
|
-
* Choose when to show the popup (defaults to 'focus' for input, 'click' for others).
|
263
|
-
*
|
264
|
-
* @default null
|
265
|
-
*/
|
266
|
-
on: null | 'focus' | 'click';
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Date to display initially when no date is selected (null = now).
|
270
|
-
*
|
271
|
-
* @default null
|
272
|
-
*/
|
273
|
-
initialDate: null | Date;
|
274
|
-
|
275
|
-
/**
|
276
|
-
* Display mode to start in, can be 'year', 'month', 'day', 'hour', 'minute' (false = 'day').
|
277
|
-
*
|
278
|
-
* @default false
|
279
|
-
*/
|
280
|
-
startMode: false | 'year' | 'month' | 'day' | 'hour' | 'minute';
|
281
|
-
|
282
|
-
/**
|
283
|
-
* Minimum date/time that can be selected, dates/times before are disabled.
|
284
|
-
*
|
285
|
-
* @default null
|
286
|
-
*/
|
287
|
-
minDate: null | Date;
|
288
|
-
|
289
|
-
/**
|
290
|
-
* Maximum date/time that can be selected, dates/times after are disabled.
|
291
|
-
*
|
292
|
-
* @default null
|
293
|
-
*/
|
294
|
-
maxDate: null | Date;
|
295
|
-
|
296
|
-
/**
|
297
|
-
* Show am/pm in time mode.
|
298
|
-
*
|
299
|
-
* @default true
|
300
|
-
*/
|
301
|
-
ampm: boolean;
|
302
|
-
|
303
|
-
/**
|
304
|
-
* Disable year selection mode.
|
305
|
-
*
|
306
|
-
* @default false
|
307
|
-
*/
|
308
|
-
disableYear: boolean;
|
309
|
-
|
310
|
-
/**
|
311
|
-
* Disable month selection mode.
|
312
|
-
*
|
313
|
-
* @default false
|
314
|
-
*/
|
315
|
-
disableMonth: boolean;
|
316
|
-
|
317
|
-
/**
|
318
|
-
* Disable minute selection mode.
|
319
|
-
*
|
320
|
-
* @default false
|
321
|
-
*/
|
322
|
-
disableMinute: boolean;
|
323
|
-
|
324
|
-
/**
|
325
|
-
* Format the input text upon input blur and module creation.
|
326
|
-
*
|
327
|
-
* @default true
|
328
|
-
*/
|
329
|
-
formatInput: boolean;
|
330
|
-
|
331
|
-
/**
|
332
|
-
* jQuery object or selector for another calendar that represents the start date of a date range.
|
333
|
-
*
|
334
|
-
* @default null
|
335
|
-
*/
|
336
|
-
startCalendar: null | JQuery | string;
|
337
|
-
|
338
|
-
/**
|
339
|
-
* jQuery object or selector for another calendar that represents the end date of a date range.
|
340
|
-
*
|
341
|
-
* @default null
|
342
|
-
*/
|
343
|
-
endCalendar: null | JQuery | string;
|
344
|
-
|
345
|
-
/**
|
346
|
-
* Show multiple months when in 'day' mode.
|
347
|
-
*
|
348
|
-
* @default 1
|
349
|
-
*/
|
350
|
-
multiMonth: number;
|
351
|
-
|
352
|
-
/**
|
353
|
-
* Minimum time gap, can only be 5, 10, 15, 20, 30.
|
354
|
-
*
|
355
|
-
* @default 5
|
356
|
-
*/
|
357
|
-
minTimeGap: 5 | 10 | 15 | 20 | 30;
|
358
|
-
|
359
|
-
/**
|
360
|
-
* Starting short year until 99 where it will be assumed to belong to the last century.
|
361
|
-
*
|
362
|
-
* @default 60
|
363
|
-
*/
|
364
|
-
centuryBreak: number;
|
365
|
-
|
366
|
-
/**
|
367
|
-
* Century to be added to 2-digit years (00 to 'centuryBreak' -1).
|
368
|
-
*
|
369
|
-
* @default 2000
|
370
|
-
*/
|
371
|
-
currentCentury: number;
|
372
|
-
|
373
|
-
/**
|
374
|
-
* Make adjacent days from previous and next month also selectable.
|
375
|
-
*
|
376
|
-
* @default false
|
377
|
-
*/
|
378
|
-
selectAdjacentDays: 5 | 10 | 15 | 20 | 30;
|
379
|
-
|
380
|
-
popupOptions: Calendar.PopupSettings;
|
381
|
-
|
382
|
-
text: Calendar.TextSettings;
|
383
|
-
|
384
|
-
// endregion
|
385
|
-
|
386
|
-
// region Callbacks
|
387
|
-
|
388
|
-
/**
|
389
|
-
* Is called before a calendar date changes. 'return false;' will cancel the change.
|
390
|
-
* @since 2.8.0
|
391
|
-
*/
|
392
|
-
onBeforeChange(this: JQuery): void;
|
393
|
-
|
394
|
-
/**
|
395
|
-
* Is called after a calendar date has changed.
|
396
|
-
*/
|
397
|
-
onChange(this: JQuery): void;
|
398
|
-
|
399
|
-
/**
|
400
|
-
* Is called before a calendar is shown. 'return false;' will prevent the calendar to be shown.
|
401
|
-
*/
|
402
|
-
onShow(this: JQuery): void;
|
403
|
-
|
404
|
-
/**
|
405
|
-
* Is called when the calendar is shown.
|
406
|
-
*/
|
407
|
-
onVisible(this: JQuery): void;
|
408
|
-
|
409
|
-
/**
|
410
|
-
* Is called before a calendar is hidden. 'return false;' will prevent the calendar to be hidden.
|
411
|
-
*/
|
412
|
-
onHide(this: JQuery): void;
|
413
|
-
|
414
|
-
/**
|
415
|
-
* Is called when the calendar is hidden.
|
416
|
-
*/
|
417
|
-
onHidden(this: JQuery): void;
|
418
|
-
|
419
|
-
/**
|
420
|
-
* Is called when a cell of the calendar is selected providing its value and current mode.
|
421
|
-
* 'return false;' will prevent the selection.
|
422
|
-
*/
|
423
|
-
onSelect(this: JQuery, date: Date, mode: string): void;
|
424
|
-
|
425
|
-
// endregion
|
426
|
-
|
427
|
-
// region DOM Settings
|
428
|
-
|
429
|
-
/**
|
430
|
-
* DOM Selectors used internally.
|
431
|
-
* If the calendars parent node matches the append selector, the calendar is appended to the input field instead of prepended.
|
432
|
-
*/
|
433
|
-
selector: Calendar.SelectorSettings;
|
434
|
-
|
435
|
-
/**
|
436
|
-
* Class names used to attach style to state.
|
437
|
-
*/
|
438
|
-
className: Calendar.ClassNameSettings;
|
439
|
-
|
440
|
-
/**
|
441
|
-
* Icon names used internally.
|
442
|
-
*/
|
443
|
-
regExp: Calendar.RegExpSettings;
|
444
|
-
|
445
|
-
metadata: Calendar.MetadataSettings;
|
446
|
-
|
447
|
-
// endregion
|
448
|
-
|
449
|
-
// region Debug Settings
|
450
|
-
|
451
|
-
/**
|
452
|
-
* Name used in log statements
|
453
|
-
*/
|
454
|
-
name: string;
|
455
|
-
|
456
|
-
/**
|
457
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
458
|
-
*/
|
459
|
-
namespace: string;
|
460
|
-
|
461
|
-
/**
|
462
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
463
|
-
*/
|
464
|
-
silent: boolean;
|
103
|
+
interface CalendarSettings {
|
104
|
+
// region Toast Settings
|
465
105
|
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
106
|
+
/**
|
107
|
+
* Picker type, can be 'datetime', 'date', 'time', 'month', or 'year'.
|
108
|
+
*
|
109
|
+
* @default 'datetime'
|
110
|
+
*/
|
111
|
+
type: 'datetime' | 'date' | 'time' | 'month' | 'year';
|
470
112
|
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
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;
|
475
126
|
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
127
|
+
/**
|
128
|
+
* Show a 'today/now' button at the bottom of the calendar.
|
129
|
+
*
|
130
|
+
* @default false
|
131
|
+
*/
|
132
|
+
today: boolean;
|
480
133
|
|
481
|
-
|
134
|
+
/**
|
135
|
+
* Close the popup after selecting a date/time.
|
136
|
+
*
|
137
|
+
* @default false
|
138
|
+
*/
|
139
|
+
closable: true;
|
482
140
|
|
483
|
-
|
484
|
-
|
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: null | Date;
|
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: 5 | 10 | 15 | 20 | 30;
|
323
|
+
|
324
|
+
popupOptions: Calendar.PopupSettings;
|
325
|
+
|
326
|
+
text: Calendar.TextSettings;
|
327
|
+
|
328
|
+
// endregion
|
329
|
+
|
330
|
+
// region Callbacks
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Is called before a calendar date changes. 'return false;' will cancel the change.
|
334
|
+
* @since 2.8.0
|
335
|
+
*/
|
336
|
+
onBeforeChange(this: JQuery): void;
|
337
|
+
|
338
|
+
/**
|
339
|
+
* Is called after a calendar date has changed.
|
340
|
+
*/
|
341
|
+
onChange(this: JQuery): void;
|
342
|
+
|
343
|
+
/**
|
344
|
+
* Is called before a calendar is shown. 'return false;' will prevent the calendar to be shown.
|
345
|
+
*/
|
346
|
+
onShow(this: JQuery): void;
|
347
|
+
|
348
|
+
/**
|
349
|
+
* Is called when the calendar is shown.
|
350
|
+
*/
|
351
|
+
onVisible(this: JQuery): void;
|
352
|
+
|
353
|
+
/**
|
354
|
+
* Is called before a calendar is hidden. 'return false;' will prevent the calendar to be hidden.
|
355
|
+
*/
|
356
|
+
onHide(this: JQuery): void;
|
357
|
+
|
358
|
+
/**
|
359
|
+
* Is called when the calendar is hidden.
|
360
|
+
*/
|
361
|
+
onHidden(this: JQuery): void;
|
362
|
+
|
363
|
+
/**
|
364
|
+
* Is called when a cell of the calendar is selected providing its value and current mode.
|
365
|
+
* 'return false;' will prevent the selection.
|
366
|
+
*/
|
367
|
+
onSelect(this: JQuery, date: Date, mode: string): void;
|
368
|
+
|
369
|
+
// endregion
|
370
|
+
|
371
|
+
// region DOM Settings
|
372
|
+
|
373
|
+
/**
|
374
|
+
* DOM Selectors used internally.
|
375
|
+
* If the calendars parent node matches the append selector, the calendar is appended to the input field instead of prepended.
|
376
|
+
*/
|
377
|
+
selector: Calendar.SelectorSettings;
|
378
|
+
|
379
|
+
/**
|
380
|
+
* Class names used to attach style to state.
|
381
|
+
*/
|
382
|
+
className: Calendar.ClassNameSettings;
|
383
|
+
|
384
|
+
/**
|
385
|
+
* Icon names used internally.
|
386
|
+
*/
|
387
|
+
regExp: Calendar.RegExpSettings;
|
388
|
+
|
389
|
+
metadata: Calendar.MetadataSettings;
|
390
|
+
|
391
|
+
// endregion
|
392
|
+
|
393
|
+
// region Debug Settings
|
394
|
+
|
395
|
+
/**
|
396
|
+
* Name used in log statements
|
397
|
+
* @default 'Calendar'
|
398
|
+
*/
|
399
|
+
name: string;
|
400
|
+
|
401
|
+
/**
|
402
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
403
|
+
* @default 'calendar'
|
404
|
+
*/
|
405
|
+
namespace: string;
|
406
|
+
|
407
|
+
/**
|
408
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
409
|
+
* @default false
|
410
|
+
*/
|
411
|
+
silent: boolean;
|
412
|
+
|
413
|
+
/**
|
414
|
+
* Debug output to console
|
415
|
+
* @default false
|
416
|
+
*/
|
417
|
+
debug: boolean;
|
418
|
+
|
419
|
+
/**
|
420
|
+
* Show console.table output with performance metrics
|
421
|
+
* @default true
|
422
|
+
*/
|
423
|
+
performance: boolean;
|
424
|
+
|
425
|
+
/**
|
426
|
+
* Debug output includes all internal behaviors
|
427
|
+
* @default false
|
428
|
+
*/
|
429
|
+
verbose: boolean;
|
430
|
+
|
431
|
+
error: Calendar.ErrorSettings;
|
432
|
+
|
433
|
+
// endregion
|
485
434
|
}
|
486
435
|
|
487
436
|
namespace Calendar {
|
488
|
-
type PopupSettings =
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
| Pick<_Impl, 'hideOnScroll'>
|
496
|
-
) &
|
497
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
437
|
+
type PopupSettings = Partial<Pick<Settings.Popup, keyof Settings.Popup>>;
|
438
|
+
type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
|
439
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
440
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
441
|
+
type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
|
442
|
+
type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
|
443
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
498
444
|
|
499
|
-
|
445
|
+
namespace Settings {
|
446
|
+
interface Popup {
|
500
447
|
/**
|
501
448
|
* @default 'bottom left'
|
502
449
|
*/
|
@@ -517,23 +464,8 @@ declare namespace FomanticUI {
|
|
517
464
|
*/
|
518
465
|
hideOnScroll: boolean;
|
519
466
|
}
|
520
|
-
}
|
521
|
-
|
522
|
-
type TextSettings = TextSettings.Param;
|
523
467
|
|
524
|
-
|
525
|
-
type Param = (
|
526
|
-
| Pick<_Impl, 'days'>
|
527
|
-
| Pick<_Impl, 'months'>
|
528
|
-
| Pick<_Impl, 'monthsShort'>
|
529
|
-
| Pick<_Impl, 'today'>
|
530
|
-
| Pick<_Impl, 'now'>
|
531
|
-
| Pick<_Impl, 'am'>
|
532
|
-
| Pick<_Impl, 'pm'>
|
533
|
-
) &
|
534
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
535
|
-
|
536
|
-
interface _Impl {
|
468
|
+
interface Texts {
|
537
469
|
/**
|
538
470
|
* @default ['S', 'M', 'T', 'W', 'T', 'F', 'S']
|
539
471
|
*/
|
@@ -567,22 +499,15 @@ declare namespace FomanticUI {
|
|
567
499
|
/**
|
568
500
|
* @default 'PM'
|
569
501
|
*/
|
570
|
-
pm:
|
571
|
-
}
|
572
|
-
}
|
502
|
+
pm: string;
|
573
503
|
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
| Pick<_Impl, 'input'>
|
580
|
-
| Pick<_Impl, 'activator'>
|
581
|
-
| Pick<_Impl, 'append'>
|
582
|
-
) &
|
583
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
504
|
+
/**
|
505
|
+
* @default 'Week'
|
506
|
+
*/
|
507
|
+
weekNo: string;
|
508
|
+
}
|
584
509
|
|
585
|
-
interface
|
510
|
+
interface Selectors {
|
586
511
|
/**
|
587
512
|
* @default '.ui.popup'
|
588
513
|
*/
|
@@ -603,36 +528,8 @@ declare namespace FomanticUI {
|
|
603
528
|
*/
|
604
529
|
append: string;
|
605
530
|
}
|
606
|
-
}
|
607
531
|
|
608
|
-
|
609
|
-
|
610
|
-
namespace ClassNameSettings {
|
611
|
-
type Param = (
|
612
|
-
| Pick<_Impl, 'calendar'>
|
613
|
-
| Pick<_Impl, 'active'>
|
614
|
-
| Pick<_Impl, 'popup'>
|
615
|
-
| Pick<_Impl, 'grid'>
|
616
|
-
| Pick<_Impl, 'column'>
|
617
|
-
| Pick<_Impl, 'table'>
|
618
|
-
| Pick<_Impl, 'prev'>
|
619
|
-
| Pick<_Impl, 'next'>
|
620
|
-
| Pick<_Impl, 'prevIcon'>
|
621
|
-
| Pick<_Impl, 'nextIcon'>
|
622
|
-
| Pick<_Impl, 'link'>
|
623
|
-
| Pick<_Impl, 'cell'>
|
624
|
-
| Pick<_Impl, 'disabledCell'>
|
625
|
-
| Pick<_Impl, 'weekCell'>
|
626
|
-
| Pick<_Impl, 'adjacentCell'>
|
627
|
-
| Pick<_Impl, 'activeCell'>
|
628
|
-
| Pick<_Impl, 'rangeCell'>
|
629
|
-
| Pick<_Impl, 'focusCell'>
|
630
|
-
| Pick<_Impl, 'todayCell'>
|
631
|
-
| Pick<_Impl, 'today'>
|
632
|
-
) &
|
633
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
634
|
-
|
635
|
-
interface _Impl {
|
532
|
+
interface ClassNames {
|
636
533
|
/**
|
637
534
|
* @default 'calendar'
|
638
535
|
*/
|
@@ -663,6 +560,11 @@ declare namespace FomanticUI {
|
|
663
560
|
*/
|
664
561
|
table: string;
|
665
562
|
|
563
|
+
/**
|
564
|
+
* @default 'inverted'
|
565
|
+
*/
|
566
|
+
inverted: string;
|
567
|
+
|
666
568
|
/**
|
667
569
|
* @default 'prev link'
|
668
570
|
*/
|
@@ -732,15 +634,14 @@ declare namespace FomanticUI {
|
|
732
634
|
* @default 'today link'
|
733
635
|
*/
|
734
636
|
today: string;
|
735
|
-
}
|
736
|
-
}
|
737
637
|
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
638
|
+
/**
|
639
|
+
* @default 'disabled'
|
640
|
+
*/
|
641
|
+
disabled: string;
|
642
|
+
}
|
742
643
|
|
743
|
-
interface
|
644
|
+
interface RegExps {
|
744
645
|
/**
|
745
646
|
* @default /[^A-Za-z\u00C0-\u024F]+/g
|
746
647
|
*/
|
@@ -750,23 +651,14 @@ declare namespace FomanticUI {
|
|
750
651
|
* @default /[^\d:]+/g
|
751
652
|
*/
|
752
653
|
dateNumbers: RegExp;
|
753
|
-
}
|
754
|
-
}
|
755
654
|
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
| Pick<_Impl, 'focusDate'>
|
762
|
-
| Pick<_Impl, 'startDate'>
|
763
|
-
| Pick<_Impl, 'endDate'>
|
764
|
-
| Pick<_Impl, 'mode'>
|
765
|
-
| Pick<_Impl, 'monthOffset'>
|
766
|
-
) &
|
767
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
655
|
+
/**
|
656
|
+
* @default /d{1,4}|D{1,2}|M{1,4}|YY(?:YY)?|([Hhmsw])\1?|[ASYa]|"[^"]*"|'[^']*'/g
|
657
|
+
*/
|
658
|
+
token: RegExp;
|
659
|
+
}
|
768
660
|
|
769
|
-
interface
|
661
|
+
interface Metadatas {
|
770
662
|
/**
|
771
663
|
* @default 'date'
|
772
664
|
*/
|
@@ -787,24 +679,78 @@ declare namespace FomanticUI {
|
|
787
679
|
*/
|
788
680
|
endDate: string;
|
789
681
|
|
682
|
+
/**
|
683
|
+
* @default 'minDate'
|
684
|
+
*/
|
685
|
+
minDate: string;
|
686
|
+
|
687
|
+
/**
|
688
|
+
* @default 'maxDate'
|
689
|
+
*/
|
690
|
+
maxDate: string;
|
691
|
+
|
790
692
|
/**
|
791
693
|
* @default 'mode'
|
792
694
|
*/
|
793
695
|
mode: string;
|
794
696
|
|
697
|
+
/**
|
698
|
+
* @default 'type'
|
699
|
+
*/
|
700
|
+
type: string;
|
701
|
+
|
795
702
|
/**
|
796
703
|
* @default 'monthOffset'
|
797
704
|
*/
|
798
705
|
monthOffset: string;
|
799
|
-
}
|
800
|
-
}
|
801
706
|
|
802
|
-
|
707
|
+
/**
|
708
|
+
* @default 'message'
|
709
|
+
*/
|
710
|
+
message: string;
|
711
|
+
|
712
|
+
/**
|
713
|
+
* @default 'class'
|
714
|
+
*/
|
715
|
+
class: string;
|
716
|
+
|
717
|
+
/**
|
718
|
+
* @default 'inverted'
|
719
|
+
*/
|
720
|
+
inverted: string;
|
721
|
+
|
722
|
+
/**
|
723
|
+
* @default 'variation'
|
724
|
+
*/
|
725
|
+
variation: string;
|
726
|
+
|
727
|
+
/**
|
728
|
+
* @default 'position'
|
729
|
+
*/
|
730
|
+
position: string;
|
731
|
+
|
732
|
+
/**
|
733
|
+
* @default 'month'
|
734
|
+
*/
|
735
|
+
month: string;
|
736
|
+
|
737
|
+
/**
|
738
|
+
* @default 'year'
|
739
|
+
*/
|
740
|
+
year: string;
|
803
741
|
|
804
|
-
|
805
|
-
|
742
|
+
/**
|
743
|
+
* @default 'hours'
|
744
|
+
*/
|
745
|
+
hours: string;
|
746
|
+
|
747
|
+
/**
|
748
|
+
* @default 'days'
|
749
|
+
*/
|
750
|
+
days: string;
|
751
|
+
}
|
806
752
|
|
807
|
-
interface
|
753
|
+
interface Errors {
|
808
754
|
/**
|
809
755
|
* @default 'UI Popup, a required component is not included in this page.'
|
810
756
|
*/
|