@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,759 @@
1
+ declare namespace FomanticUI {
2
+ interface Form {
3
+ settings: FormSettings;
4
+
5
+ /**
6
+ * Submits selected form.
7
+ */
8
+ (behavior: 'submit'): void;
9
+
10
+ /**
11
+ * Returns 'true'/'false' whether a form passes its validation rules.
12
+ */
13
+ (behavior: 'is valid'): boolean;
14
+
15
+ /**
16
+ * Adds rule to existing rules for field, also aliased as 'add field'.
17
+ */
18
+ (behavior: 'add rule', field: string, rules: string | string[] | FormField[]): void;
19
+
20
+ /**
21
+ * Adds field object to existing fields.
22
+ */
23
+ (behavior: 'add field', name: string, rules: string | string[] | FormRule[]): void;
24
+
25
+ /**
26
+ * Adds fields object to existing fields.
27
+ */
28
+ (behavior: 'add fields', fields: object[]): void;
29
+
30
+ /**
31
+ * Removes specific rule from field leaving other rules.
32
+ */
33
+ (behavior: 'remove rule', field: string, rules?: object[]): void;
34
+
35
+ /**
36
+ * Remove all validation for a field.
37
+ */
38
+ (behavior: 'remove field', field: string): void;
39
+
40
+ /**
41
+ * Remove all validation for an array of fields.
42
+ */
43
+ (behavior: 'remove fields', field: string[]): void;
44
+
45
+ /**
46
+ * Returns 'true'/'false' whether a field passes its validation rules.
47
+ * If you add 'true' as the second parameter, any failed rule will update the UI.
48
+ */
49
+ (behavior: 'is valid', fieldName: string, showErrors: boolean): boolean;
50
+
51
+ /**
52
+ * Validates form, updates UI, and calls 'onSuccess' or 'onFailure'.
53
+ */
54
+ (behavior: 'validate form'): boolean;
55
+
56
+ /**
57
+ * Validates field, updates UI, and calls 'onSuccess' or 'onFailure'.
58
+ */
59
+ (behavior: 'validate field', fieldName: string): void;
60
+
61
+ /**
62
+ * Returns element with matching name, id, or data-validate metadata to identifier.
63
+ */
64
+ (behavior: 'get field', identifier: string, strict?: boolean, ignoreMissing?: boolean): string;
65
+
66
+ /**
67
+ * Returns value of element with id.
68
+ */
69
+ (behavior: 'get value', identifier: string): string;
70
+
71
+ /**
72
+ * Returns object of element values that match array of identifiers.
73
+ * If no IDS are passed will return all fields.
74
+ */
75
+ (behavior: 'get values', identifiers?: string[]): Record<string, string>;
76
+
77
+ /**
78
+ * Sets value of element with id.
79
+ */
80
+ (behavior: 'set value', identifier: string, value: string): void;
81
+
82
+ /**
83
+ * Sets key/value pairs from passed values object to matching identifiers.
84
+ */
85
+ (behavior: 'set values', values: object[]): JQuery;
86
+
87
+ /**
88
+ * Returns validation rules for a given jQuery-referenced input field.
89
+ */
90
+ (behavior: 'get validation', element: JQuery): object;
91
+
92
+ /**
93
+ * Returns whether a field exists.
94
+ */
95
+ (behavior: 'has field', identifier: string, ignoreMissing?: boolean): boolean;
96
+
97
+ /**
98
+ * Manually add errors to form, given an array errors.
99
+ */
100
+ (behavior: 'add errors', errors: object[]): void;
101
+
102
+ /**
103
+ * Removes all current errors from the error message box.
104
+ */
105
+ (behavior: 'remove errors'): void;
106
+
107
+ /**
108
+ * Adds a custom user prompt for a given element with identifier.
109
+ */
110
+ (behavior: 'add prompt', identifier: string, errors: string | object[]): void;
111
+
112
+ /**
113
+ * Empty all fields and remove possible errors.
114
+ */
115
+ (behavior: 'clear'): JQuery;
116
+
117
+ /**
118
+ * Set all fields to their initial value and remove possible errors.
119
+ */
120
+ (behavior: 'reset'): JQuery;
121
+
122
+ /**
123
+ * Set fields actual values as default values.
124
+ */
125
+ (behavior: 'set defaults'): void;
126
+
127
+ /**
128
+ * Returns 'true'/'false' whether a form is dirty.
129
+ */
130
+ (behavior: 'is dirty'): boolean;
131
+
132
+ /**
133
+ * Returns 'true'/'false' whether a form is clean.
134
+ */
135
+ (behavior: 'is clean'): boolean;
136
+
137
+ /**
138
+ * Return elements which have been modified since form state was changed to 'dirty'.
139
+ */
140
+ (behavior: 'get dirty fields'): string[];
141
+
142
+ /**
143
+ * Set the state of the form to 'clean' and set new values as default.
144
+ */
145
+ (behavior: 'set as clean'): JQuery;
146
+
147
+ /**
148
+ * Automatically adds the "notEmpty" rule or automatically checks a checkbox for all fields with classname or attribute 'required'.
149
+ */
150
+ (behavior: 'set auto check'): void;
151
+
152
+ /**
153
+ * Set or unset matching fields as optional.
154
+ */
155
+ (behavior: 'set optional', identifier: string, bool: boolean): void;
156
+
157
+ /**
158
+ * Destroys instance and removes all events.
159
+ */
160
+ (behavior: 'destroy'): JQuery;
161
+ <K extends keyof FormSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<FormSettings, keyof FormSettings>>;
162
+ <K extends keyof FormSettings>(behavior: 'setting', name: K, value: FormSettings[K]): JQuery;
163
+ (behavior: 'setting', value: Partial<Pick<FormSettings, keyof FormSettings>>): JQuery;
164
+ (settings?: Partial<Pick<FormSettings, keyof FormSettings>>): JQuery;
165
+ }
166
+
167
+ type FormFields = Record<string, FormField | string[] | string | object>;
168
+
169
+ interface FormRule {
170
+ type: string;
171
+ prompt?: string | ((value: string) => void);
172
+ value?: string | RegExp;
173
+ }
174
+
175
+ interface FormField {
176
+ identifier?: string;
177
+ depends?: string;
178
+ optional?: boolean;
179
+ rules: FormRule[];
180
+ }
181
+
182
+ /**
183
+ * @see {@link https://fomantic-ui.com/behaviors/form.html#/settings}
184
+ */
185
+ interface FormSettings {
186
+ // region Form Settings
187
+
188
+ /**
189
+ * Adds keyboard shortcuts for enter and escape keys to submit form and blur fields respectively.
190
+ * @default false
191
+ */
192
+ fields: false | FormFields;
193
+
194
+ /**
195
+ * Adds keyboard shortcuts for enter and escape keys to submit form and blur fields respectively.
196
+ * @default true
197
+ */
198
+ keyboardShortcuts: boolean;
199
+
200
+ /**
201
+ * Event used to trigger validation.
202
+ * Can be either 'submit', 'blur' or 'change'.
203
+ * @default 'submit'
204
+ */
205
+ on: 'submit' | 'blur' | 'change';
206
+
207
+ /**
208
+ * If set to true will revalidate fields with errors on input change.
209
+ * @default true
210
+ */
211
+ revalidate: boolean;
212
+
213
+ /**
214
+ * Delay from last typed letter to validate a field when using 'on: change' or when revalidating a field.
215
+ * @default true
216
+ */
217
+ delay: boolean;
218
+
219
+ /**
220
+ * Adds inline error on field validation error.
221
+ * @default false
222
+ */
223
+ inline: boolean;
224
+
225
+ /**
226
+ * Whether or not the form should trim the value before validating.
227
+ * @default false
228
+ */
229
+ shouldTrim: boolean;
230
+
231
+ /**
232
+ * Define how calendar values will be returned.
233
+ * Can be either 'date', 'input' or 'formatter'.
234
+ * @default 'date'
235
+ */
236
+ dateHandling: 'date' | 'input' | 'formatter';
237
+
238
+ /**
239
+ * Named transition to use when animating validation errors.
240
+ * Fade and slide down are available without including 'ui transitions'.
241
+ * @see {@link https://fomantic-ui.com/modules/transition.html}
242
+ * @default 'scale'
243
+ */
244
+ transition: string;
245
+
246
+ /**
247
+ * Animation speed for inline prompt.
248
+ * @default 150
249
+ */
250
+ duration: number;
251
+
252
+ /**
253
+ * Prevent user from leaving the page if the form has a 'dirty' state by displaying a prompt.
254
+ * @default false
255
+ */
256
+ preventLeaving: boolean;
257
+
258
+ /**
259
+ * Whether fields with classname or attribute 'required' should automatically add the "notEmpty" rule or automatically checks checkbox fields.
260
+ * @default false
261
+ */
262
+ autoCheckRequired: boolean;
263
+
264
+ /**
265
+ * Whether, on an invalid form validation, it should automatically focus either the first error field ('true') or a specific dom node (Use a unique selector string such as '.ui.error.message' or '#myelement') or nothing ('false').
266
+ * @default false
267
+ */
268
+ errorFocus: boolean | string;
269
+
270
+ /**
271
+ *
272
+ * @default 0
273
+ */
274
+ errorLimit: number;
275
+
276
+ /**
277
+ *
278
+ * @default false
279
+ */
280
+ noNativeValidation: boolean;
281
+
282
+ // endregion
283
+
284
+ // region Form Prompts
285
+
286
+ text: Form.TextSettings;
287
+
288
+ prompt: Form.PromptSettings;
289
+
290
+ // endregion
291
+
292
+ // region Formatters
293
+
294
+ formatter: Form.FormatterSettings;
295
+
296
+ // endregion
297
+
298
+ // region Formatters
299
+
300
+ rules: Form.RulesSettings;
301
+
302
+ // endregion
303
+
304
+ // region Callbacks
305
+
306
+ /**
307
+ * Callback on each valid field.
308
+ */
309
+ onValid(this: JQuery): void;
310
+
311
+ /**
312
+ * Callback on each invalid field.
313
+ */
314
+ onInvalid(this: JQuery, fieldErrors: string | string[]): void;
315
+
316
+ /**
317
+ * Callback if a form is all valid.
318
+ */
319
+ onSuccess(this: JQuery, event: Event, fields: {[key: string]: any}): void;
320
+
321
+ /**
322
+ * Callback if any form field is invalid.
323
+ */
324
+ onFailure(this: JQuery, formErrors: {[key: string]: any}, fields: {[key: string]: any}): void;
325
+
326
+ /**
327
+ * Callback if form state is modified to 'dirty'.
328
+ * Triggered when at least on field has been modified.
329
+ */
330
+ onDirty(this: JQuery): void;
331
+
332
+ /**
333
+ * Callback if form state is modified to 'clean'.
334
+ * Triggered when all fields are set to default values.
335
+ */
336
+ onClean(this: JQuery): void;
337
+
338
+ // endregion
339
+
340
+ // region DOM Settings
341
+
342
+ /**
343
+ * DOM Selectors used internally.
344
+ * Selectors used to find parts of a module.
345
+ */
346
+ selector: Form.SelectorSettings;
347
+
348
+ /**
349
+ * Class names used to determine element state.
350
+ */
351
+ metadata: Form.MetadataSettings;
352
+
353
+ /**
354
+ * Class names used to determine element state.
355
+ */
356
+ className: Form.ClassNameSettings;
357
+
358
+ // endregion
359
+
360
+ // region Debug Settings
361
+
362
+ /**
363
+ * Name used in log statements
364
+ * @default 'Form'
365
+ */
366
+ name: string;
367
+
368
+ /**
369
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
370
+ * @default 'form'
371
+ */
372
+ namespace: string;
373
+
374
+ /**
375
+ * Silences all console output including error messages, regardless of other debug settings.
376
+ * @default false
377
+ */
378
+ silent: boolean;
379
+
380
+ /**
381
+ * Debug output to console
382
+ * @default false
383
+ */
384
+ debug: boolean;
385
+
386
+ /**
387
+ * Show console.table output with performance metrics
388
+ * @default true
389
+ */
390
+ performance: boolean;
391
+
392
+ /**
393
+ * Debug output includes all internal behaviors
394
+ * @default false
395
+ */
396
+ verbose: boolean;
397
+
398
+ errors: Form.ErrorSettings;
399
+
400
+ // endregion
401
+ }
402
+
403
+ namespace Form {
404
+ type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
405
+ type PromptSettings = Partial<Pick<Settings.Prompts, keyof Settings.Prompts>> & {[key: string]: string | undefined};
406
+ type FormatterSettings = Partial<Pick<Settings.Formatters, keyof Settings.Formatters>>;
407
+ type RulesSettings = Partial<Pick<Settings.Rules, keyof Settings.Rules>> & {[key: string]: (value?: any, identifier?: string, module?: any) => boolean};
408
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
409
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
410
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
411
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
412
+
413
+ namespace Settings {
414
+ interface Texts {
415
+ /**
416
+ * @default 'Please enter a valid value'
417
+ */
418
+ unspecifiedRule: string;
419
+
420
+ /**
421
+ * @default 'This field'
422
+ */
423
+ unspecifiedField: string;
424
+
425
+ /**
426
+ * @default 'There are unsaved changes on this page which will be discarded if you continue.'
427
+ */
428
+ leavingMessage: string;
429
+ }
430
+
431
+ interface Prompts {
432
+ /**
433
+ * @default '{name} must be in a range from {min} to {max}'
434
+ */
435
+ range: string;
436
+
437
+ /**
438
+ * @default '{name} must have a maximum value of {ruleValue}'
439
+ */
440
+ maxValue: string;
441
+
442
+ /**
443
+ * @default '{name} must have a minimum value of {ruleValue}'
444
+ */
445
+ minValue: string;
446
+
447
+ /**
448
+ * @default '{name} must have a value'
449
+ * @deprecated Use notEmpty instead
450
+ */
451
+ empty: string;
452
+
453
+ /**
454
+ * @default '{name} must have a value'
455
+ */
456
+ notEmpty: string;
457
+
458
+ /**
459
+ * @default '{name} must be checked'
460
+ */
461
+ checked: string;
462
+
463
+ /**
464
+ * @default '{name} must be a valid e-mail'
465
+ */
466
+ email: string;
467
+
468
+ /**
469
+ * @default '{name} must be a valid url'
470
+ */
471
+ url: string;
472
+
473
+ /**
474
+ * @default '{name} is not formatted correctly'
475
+ */
476
+ regExp: string;
477
+
478
+ /**
479
+ * @default '{name} must be an integer'
480
+ */
481
+ integer: string;
482
+
483
+ /**
484
+ * @default '{name} must be a decimal number'
485
+ */
486
+ decimal: string;
487
+
488
+ /**
489
+ * @default '{name} must be set to a number'
490
+ */
491
+ number: string;
492
+
493
+ /**
494
+ * @default "{name} must be '{ruleValue}'"
495
+ */
496
+ is: string;
497
+
498
+ /**
499
+ * @default "{name} must be exactly '{ruleValue}'"
500
+ */
501
+ isExactly: string;
502
+
503
+ /**
504
+ * @default "{name} cannot be set to '{ruleValue}'"
505
+ */
506
+ not: string;
507
+
508
+ /**
509
+ * @default "{name} cannot be set to exactly '{ruleValue}'"
510
+ */
511
+ notExactly: string;
512
+
513
+ /**
514
+ * @default "{name} cannot contain '{ruleValue}'"
515
+ */
516
+ contain: string;
517
+
518
+ /**
519
+ * @default "{name} cannot contain exactly '{ruleValue}'"
520
+ */
521
+ containExactly: string;
522
+
523
+ /**
524
+ * @default "{name} must contain '{ruleValue}'"
525
+ */
526
+ doesntContain: string;
527
+
528
+ /**
529
+ * @default "{name} must contain exactly '{ruleValue}'"
530
+ */
531
+ doesntContainExactly: string;
532
+
533
+ /**
534
+ * @default '{name} must be at least {ruleValue} characters'
535
+ */
536
+ minLength: string;
537
+
538
+ /**
539
+ * @default '{name} must be exactly {ruleValue} characters'
540
+ */
541
+ exactLength: string;
542
+
543
+ /**
544
+ * @default '{name} cannot be longer than {ruleValue} characters'
545
+ */
546
+ maxLength: string;
547
+
548
+ /**
549
+ * @default '{name} must match {ruleValue} field'
550
+ */
551
+ match: string;
552
+
553
+ /**
554
+ * @default '{name} must have a different value than {ruleValue} field'
555
+ */
556
+ different: string;
557
+
558
+ /**
559
+ * @default '{name} must be a valid credit card number'
560
+ */
561
+ creditCard: string;
562
+
563
+ /**
564
+ * @default '{name} must have at least {ruleValue} choices'
565
+ */
566
+ minCount: string;
567
+
568
+ /**
569
+ * @default '{name} must have exactly {ruleValue} choices'
570
+ */
571
+ exactCount: string;
572
+
573
+ /**
574
+ * @default '{name} must have {ruleValue} or less choices'
575
+ */
576
+ maxCount: string;
577
+ }
578
+
579
+ interface Formatters {
580
+ date(date: string): string;
581
+ datetime(date: string): string;
582
+ time(date: string): string;
583
+ month(date: string): string;
584
+ year(date: string): string;
585
+ }
586
+
587
+ interface Rules {
588
+ empty(value: unknown): boolean;
589
+ notEmpty(value: unknown): boolean;
590
+ checked(): boolean;
591
+ email(value: unknown): boolean;
592
+ url(value: unknown): boolean;
593
+ regExp(value: unknown, regExp: RegExp): boolean;
594
+ minValue(value: unknown, range: string): boolean;
595
+ maxValue(value: unknown, range: string): boolean;
596
+ integer(value: unknown, range: string): boolean;
597
+ range(value: unknown, range: string, regExp: RegExp, testLength: boolean): boolean;
598
+ decimal(value: unknown, range: string): boolean;
599
+ number(value: unknown, range: string): boolean;
600
+ is(value: unknown, text: string): boolean;
601
+ isExactly(value: unknown, text: string): boolean;
602
+ not(value: unknown, notValue: unknown): boolean;
603
+ notExactly(value: unknown, notValue: unknown): boolean;
604
+ contains(value: unknown, text: string): boolean;
605
+ containsExactly(value: unknown, text: string): boolean;
606
+ doesntContain(value: unknown, text: string): boolean;
607
+ doesntContainExactly(value: unknown, text: string): boolean;
608
+ minLength(value: unknown, minLength: number): boolean;
609
+ exactLength(value: unknown, requiredLength: number): boolean;
610
+ maxLength(value: unknown, maxLength: number): boolean;
611
+ size(value: unknown, range: string): boolean;
612
+ match(value: unknown, identifier: string, module: unknown): boolean;
613
+ different(value: unknown, identifier: string, module: unknown): boolean;
614
+ creditCard(cardNumber: unknown, cardTypes: string): boolean;
615
+ minCount(value: unknown, minCount: number): boolean;
616
+ exactCount(value: unknown, exactCount: number): boolean;
617
+ maxCount(value: unknown, maxCount: number): boolean;
618
+ }
619
+
620
+ interface Selectors {
621
+ /**
622
+ * @default 'input[type="checkbox"], input[type="radio"]'
623
+ */
624
+ checkbox: string;
625
+
626
+ /**
627
+ * @default '.clear'
628
+ */
629
+ clear: string;
630
+
631
+ /**
632
+ * @default 'input, textarea, select'
633
+ */
634
+ field: string;
635
+
636
+ /**
637
+ * @default '.field'
638
+ */
639
+ group: string;
640
+
641
+ /**
642
+ * @default 'input'
643
+ */
644
+ input: string;
645
+
646
+ /**
647
+ * @default '.error.message'
648
+ */
649
+ message: string;
650
+
651
+ /**
652
+ * @default '.prompt.label'
653
+ */
654
+ prompt: string;
655
+
656
+ /**
657
+ * @default 'input[type="radio"]'
658
+ */
659
+ radio: string;
660
+
661
+ /**
662
+ * @default '.reset:not([type="reset"])'
663
+ */
664
+ reset: string;
665
+
666
+ /**
667
+ * @default '.submit:not([type="submit"])'
668
+ */
669
+ submit: string;
670
+
671
+ /**
672
+ * @default '.ui.checkbox'
673
+ */
674
+ uiCheckbox: string;
675
+
676
+ /**
677
+ * @default '.ui.dropdown'
678
+ */
679
+ uiDropdown: string;
680
+
681
+ /**
682
+ * @default '.ui.calendar'
683
+ */
684
+ uiCalendar: string;
685
+ }
686
+
687
+ interface Metadatas {
688
+ /**
689
+ * @default 'default'
690
+ */
691
+ defaultValue: string;
692
+
693
+ /**
694
+ * @default 'validate'
695
+ */
696
+ validate: string;
697
+
698
+ /**
699
+ * @default 'isDirty'
700
+ */
701
+ isDirty: string;
702
+ }
703
+
704
+ interface ClassNames {
705
+ /**
706
+ * @default 'error'
707
+ */
708
+ error: string;
709
+
710
+ /**
711
+ * @default 'ui basic red pointing prompt label'
712
+ */
713
+ label: string;
714
+
715
+ /**
716
+ * @default 'down'
717
+ */
718
+ pressed: string;
719
+
720
+ /**
721
+ * @default 'success'
722
+ */
723
+ success: string;
724
+ }
725
+
726
+ interface Errors {
727
+ /**
728
+ * @default 'You must specify a string identifier for each field'
729
+ */
730
+ identifier: string;
731
+
732
+ /**
733
+ * @default 'The method you called is not defined'
734
+ */
735
+ method: string;
736
+
737
+ /**
738
+ * @default 'There is no rule matching the one you specified'
739
+ */
740
+ noRule: string;
741
+
742
+ /**
743
+ * @default 'Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically.'
744
+ */
745
+ oldSyntax: string;
746
+
747
+ /**
748
+ * @default 'Field identifier {identifier} not found'
749
+ */
750
+ noField: string;
751
+
752
+ /**
753
+ * @default 'This module requires ui {element}'
754
+ */
755
+ noElement: string;
756
+ }
757
+ }
758
+ }
759
+ }