domma-js 1.1.0 → 1.1.1

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 (66) hide show
  1. package/README.md +6 -0
  2. package/assets/types/catalogue.json +29 -29
  3. package/assets/types/generated/public/assets/icons/code.d.ts +236 -1
  4. package/assets/types/generated/src/auth.d.ts +38 -38
  5. package/assets/types/generated/src/avatar.d.ts +31 -31
  6. package/assets/types/generated/src/binding-source.d.ts +3 -3
  7. package/assets/types/generated/src/component-factory.d.ts +15 -15
  8. package/assets/types/generated/src/component.d.ts +4 -4
  9. package/assets/types/generated/src/components/back-to-top.d.ts +18 -18
  10. package/assets/types/generated/src/components/badge.d.ts +26 -26
  11. package/assets/types/generated/src/components/card.d.ts +30 -30
  12. package/assets/types/generated/src/components/command-palette.d.ts +69 -69
  13. package/assets/types/generated/src/components/dropzone.d.ts +54 -54
  14. package/assets/types/generated/src/components/focus-trap.d.ts +22 -22
  15. package/assets/types/generated/src/components/loader.d.ts +15 -15
  16. package/assets/types/generated/src/components/modal.d.ts +59 -59
  17. package/assets/types/generated/src/components/range-slider.d.ts +54 -54
  18. package/assets/types/generated/src/components/shared.d.ts +1 -1
  19. package/assets/types/generated/src/components/split-pane.d.ts +45 -45
  20. package/assets/types/generated/src/components/toast.d.ts +38 -38
  21. package/assets/types/generated/src/components/tooltip.d.ts +24 -24
  22. package/assets/types/generated/src/components/virtual-list.d.ts +61 -61
  23. package/assets/types/generated/src/config.d.ts +21 -21
  24. package/assets/types/generated/src/context-cursor.d.ts +6 -6
  25. package/assets/types/generated/src/context-menu.d.ts +72 -72
  26. package/assets/types/generated/src/dom.d.ts +12 -12
  27. package/assets/types/generated/src/effects.d.ts +154 -141
  28. package/assets/types/generated/src/elements.d.ts +644 -644
  29. package/assets/types/generated/src/flags.d.ts +38 -38
  30. package/assets/types/generated/src/forms.d.ts +100 -100
  31. package/assets/types/generated/src/globals.d.ts +6 -6
  32. package/assets/types/generated/src/http.d.ts +12 -12
  33. package/assets/types/generated/src/i18n.d.ts +8 -8
  34. package/assets/types/generated/src/icons.d.ts +13 -13
  35. package/assets/types/generated/src/index.d.ts +10 -10
  36. package/assets/types/generated/src/input-group.d.ts +21 -21
  37. package/assets/types/generated/src/models.d.ts +21 -21
  38. package/assets/types/generated/src/popover.d.ts +45 -45
  39. package/assets/types/generated/src/router.d.ts +30 -30
  40. package/assets/types/generated/src/sanitize.d.ts +13 -5
  41. package/assets/types/generated/src/schema-builder.d.ts +34 -34
  42. package/assets/types/generated/src/skeleton.d.ts +11 -11
  43. package/assets/types/generated/src/sortable.d.ts +46 -46
  44. package/assets/types/generated/src/tables.d.ts +75 -75
  45. package/assets/types/generated/src/theme.d.ts +8 -8
  46. package/assets/types/generated/src/treeview.d.ts +48 -48
  47. package/assets/types/generated/src/utils.d.ts +13 -13
  48. package/assets/types/generated/vendor/domma-reactive.d.ts +2 -2
  49. package/package.json +22 -16
  50. package/public/dist/bundles/domma-complete.css +14 -14
  51. package/public/dist/bundles/domma-data-focused.css +14 -14
  52. package/public/dist/bundles/domma-essentials.css +14 -14
  53. package/public/dist/bundles/domma-full.css +14 -14
  54. package/public/dist/bundles/domma-minimal.css +8 -8
  55. package/public/dist/domma-flags.esm.js +3 -3
  56. package/public/dist/domma-flags.min.js +3 -3
  57. package/public/dist/domma-syntax.min.js +3 -3
  58. package/public/dist/domma.css +3 -3
  59. package/public/dist/domma.esm.js +4 -4
  60. package/public/dist/domma.esm.js.map +1 -1
  61. package/public/dist/domma.min.js +4 -4
  62. package/public/dist/domma.min.js.map +1 -1
  63. package/public/dist/elements.css +3 -3
  64. package/public/dist/grid.css +3 -3
  65. package/public/dist/syntax.css +3 -3
  66. package/public/dist/themes/domma-themes.css +3 -3
@@ -73,40 +73,40 @@ export class CommandPalette extends Component {
73
73
  _error: any;
74
74
  _timers: Set<any>;
75
75
  _known: Map<any, any>;
76
- _abort: AbortController;
76
+ _abort: AbortController | null;
77
77
  _sourceToken: number;
78
78
  _trap: FocusTrap;
79
79
  get _mac(): boolean;
80
80
  _build(): void;
81
- _idBase: string;
82
- _backdrop: HTMLDivElement;
83
- _panel: HTMLDivElement;
84
- _crumbs: HTMLDivElement;
85
- _back: HTMLButtonElement;
86
- _trail: HTMLOListElement;
87
- _input: HTMLInputElement;
88
- _spinner: HTMLSpanElement;
89
- _list: HTMLDivElement;
90
- _status: HTMLDivElement;
91
- _live: HTMLDivElement;
81
+ _idBase: string | undefined;
82
+ _backdrop: HTMLDivElement | undefined;
83
+ _panel: HTMLDivElement | undefined;
84
+ _crumbs: HTMLDivElement | undefined;
85
+ _back: HTMLButtonElement | undefined;
86
+ _trail: HTMLOListElement | undefined;
87
+ _input: HTMLInputElement | undefined;
88
+ _spinner: HTMLSpanElement | undefined;
89
+ _list: HTMLDivElement | undefined;
90
+ _status: HTMLDivElement | undefined;
91
+ _live: HTMLDivElement | undefined;
92
92
  _bind(): void;
93
- _downOnBackdrop: boolean;
94
- _hotkeyList: {
93
+ _downOnBackdrop: boolean | undefined;
94
+ _hotkeyList: ({
95
95
  key: string;
96
96
  mod: boolean;
97
97
  ctrl: boolean;
98
98
  meta: boolean;
99
99
  alt: boolean;
100
100
  shift: boolean;
101
- }[];
102
- _hotkeys(): {
101
+ } | null)[] | undefined;
102
+ _hotkeys(): ({
103
103
  key: string;
104
104
  mod: boolean;
105
105
  ctrl: boolean;
106
106
  meta: boolean;
107
107
  alt: boolean;
108
108
  shift: boolean;
109
- }[];
109
+ } | null)[];
110
110
  _later(fn: any, ms: any): number;
111
111
  _clearTimer(t: any): void;
112
112
  _duration(): number;
@@ -118,13 +118,13 @@ export class CommandPalette extends Component {
118
118
  open(query?: string): this;
119
119
  /** @returns {this} */
120
120
  close(): this;
121
- _hideTimer: number;
121
+ _hideTimer: number | null | undefined;
122
122
  /**
123
123
  * @overload
124
124
  * @param {string} [query]
125
125
  * @returns {this}
126
126
  */
127
- toggle(query?: string): this;
127
+ toggle(query?: string | undefined): this;
128
128
  /** @returns {boolean} */
129
129
  isOpen(): boolean;
130
130
  /**
@@ -133,7 +133,7 @@ export class CommandPalette extends Component {
133
133
  * @param {string} [query]
134
134
  * @returns {this}
135
135
  */
136
- show(query?: string): this;
136
+ show(query?: string | undefined): this;
137
137
  /**
138
138
  * Permanent alias of close(), looked up by name.
139
139
  * @overload
@@ -186,19 +186,19 @@ export class CommandPalette extends Component {
186
186
  * @returns {this}
187
187
  */
188
188
  clearRecent(): this;
189
- _destroyed: boolean;
189
+ _destroyed: boolean | undefined;
190
190
  _applyOptions(): void;
191
191
  _refresh(): void;
192
192
  _currentPage(): any;
193
193
  _usesSource(): boolean;
194
194
  _setQuery(value: any, opts?: {}): void;
195
- _debounceTimer: number;
195
+ _debounceTimer: number | null | undefined;
196
196
  _cancelSource(): void;
197
197
  _runSource(query: any): void;
198
198
  /** Every command reachable without a request: the top level and array children. */
199
199
  _findById(id: any, list?: any[], depth?: number): any;
200
200
  _remember(command: any): void;
201
- _saved(): any;
201
+ _saved(): {};
202
202
  /** A remembered command that is not in the list: asked of resolveRecent, else the saved link. */
203
203
  _restore(id: any): any;
204
204
  /** Group and order what is shown now. */
@@ -213,7 +213,7 @@ export class CommandPalette extends Component {
213
213
  _renderItem(command: any, match: any, index: any, mac: any): HTMLDivElement;
214
214
  _renderCrumbs(): void;
215
215
  _renderStatus(): void;
216
- _liveTimer: number;
216
+ _liveTimer: number | undefined;
217
217
  _onKeyDown(e: any): void;
218
218
  _choose(command: any, event: any): void;
219
219
  _enter(command: any): void;
@@ -231,117 +231,117 @@ export type PaletteSourceContext = {
231
231
  * One command in the palette.
232
232
  */
233
233
  export type PaletteCommand = {
234
- id?: string;
234
+ id?: string | undefined;
235
235
  title: string;
236
- subtitle?: string;
236
+ subtitle?: string | undefined;
237
237
  /**
238
238
  * Heading the command is listed under
239
239
  */
240
- group?: string;
240
+ group?: string | undefined;
241
241
  /**
242
242
  * Domma icon name
243
243
  */
244
- icon?: string;
244
+ icon?: string | undefined;
245
245
  /**
246
246
  * More words that find it
247
247
  */
248
- keywords?: string[];
248
+ keywords?: string[] | undefined;
249
249
  /**
250
250
  * Shown as a hint, e.g. 'mod+s' (mod = Cmd on a Mac, Ctrl elsewhere)
251
251
  */
252
- shortcut?: string;
252
+ shortcut?: string | undefined;
253
253
  /**
254
254
  * Followed when run (http(s), mailto, tel or relative only)
255
255
  */
256
- href?: string;
256
+ href?: string | undefined;
257
257
  /**
258
258
  * '_blank' opens href in a new tab
259
259
  */
260
- target?: string;
261
- action?: (command: PaletteCommand, palette: CommandPaletteInstance, event?: Event) => void;
262
- disabled?: boolean;
263
- hidden?: boolean;
260
+ target?: string | undefined;
261
+ action?: ((command: PaletteCommand, palette: CommandPaletteInstance, event?: Event) => void) | undefined;
262
+ disabled?: boolean | undefined;
263
+ hidden?: boolean | undefined;
264
264
  /**
265
265
  * Running it leaves the palette open
266
266
  */
267
- keepOpen?: boolean;
267
+ keepOpen?: boolean | undefined;
268
268
  /**
269
269
  * A nested page: a list, or a function returning one (called once on entering)
270
270
  */
271
- children?: PaletteCommand[] | ((command: PaletteCommand, ctx: PaletteSourceContext) => Promise<PaletteCommand[]> | PaletteCommand[]);
271
+ children?: PaletteCommand[] | ((command: PaletteCommand, ctx: PaletteSourceContext) => Promise<PaletteCommand[]> | PaletteCommand[]) | undefined;
272
272
  /**
273
273
  * Placeholder for the box while this command's page is open
274
274
  */
275
- placeholder?: string;
275
+ placeholder?: string | undefined;
276
276
  };
277
277
  export type CommandPaletteOptions = {
278
- commands?: PaletteCommand[];
278
+ commands?: PaletteCommand[] | undefined;
279
279
  /**
280
280
  * Search elsewhere: debounced, the previous request aborted through `signal`
281
281
  */
282
- source?: ((query: string, ctx: PaletteSourceContext) => Promise<PaletteCommand[]> | PaletteCommand[]) | null;
282
+ source?: ((query: string, ctx: PaletteSourceContext) => Promise<PaletteCommand[]> | PaletteCommand[]) | null | undefined;
283
283
  /**
284
284
  * ms (default 150)
285
285
  */
286
- debounce?: number;
286
+ debounce?: number | undefined;
287
287
  /**
288
288
  * 'mod+k' (default), several, or false
289
289
  */
290
- hotkey?: string | string[] | false;
291
- placeholder?: string;
290
+ hotkey?: string | false | string[] | undefined;
291
+ placeholder?: string | undefined;
292
292
  /**
293
293
  * Accessible name of the dialog and list (default 'Command palette')
294
294
  */
295
- label?: string;
296
- maxResults?: number;
295
+ label?: string | undefined;
296
+ maxResults?: number | undefined;
297
297
  /**
298
298
  * Storage (S) key for recent commands; null (default) = off
299
299
  */
300
- recentKey?: string | null;
301
- recentLimit?: number;
302
- recentLabel?: string;
300
+ recentKey?: string | null | undefined;
301
+ recentLimit?: number | undefined;
302
+ recentLabel?: string | undefined;
303
303
  /**
304
304
  * Finds a remembered command that is not in `commands` (one an async `children` or `source` gave) after a reload. Without it, such a command comes back only if it was a plain link (`href`, no `action`)
305
305
  */
306
- resolveRecent?: ((id: string) => PaletteCommand | null) | null;
306
+ resolveRecent?: ((id: string) => PaletteCommand | null) | null | undefined;
307
307
  /**
308
308
  * Heading for source results without their own group
309
309
  */
310
- sourceGroup?: string | null;
311
- emptyText?: string;
312
- loadingText?: string;
310
+ sourceGroup?: string | null | undefined;
311
+ emptyText?: string | undefined;
312
+ loadingText?: string | undefined;
313
313
  /**
314
314
  * While a nested page's async children load (default 'Loading…')
315
315
  */
316
- pageLoadingText?: string;
317
- errorText?: string;
318
- backLabel?: string;
316
+ pageLoadingText?: string | undefined;
317
+ errorText?: string | undefined;
318
+ backLabel?: string | undefined;
319
319
  /**
320
320
  * Key hints under the list (default true)
321
321
  */
322
- footer?: boolean;
323
- resultsText?: (count: number) => string;
322
+ footer?: boolean | undefined;
323
+ resultsText?: ((count: number) => string) | undefined;
324
324
  /**
325
325
  * Replaces the default navigation for href commands
326
326
  */
327
327
  navigate?: ((href: string, ctx: {
328
328
  newTab: boolean;
329
329
  command: PaletteCommand;
330
- }) => void) | null;
331
- animationDuration?: number;
332
- className?: string;
330
+ }) => void) | null | undefined;
331
+ animationDuration?: number | undefined;
332
+ className?: string | undefined;
333
333
  /**
334
334
  * Force Mac (true) or other (false) key names; default detects
335
335
  */
336
- mac?: boolean;
337
- onBeforeOpen?: ((palette: CommandPaletteInstance) => boolean | void) | null;
338
- onOpen?: ((palette: CommandPaletteInstance) => void) | null;
339
- onBeforeClose?: ((palette: CommandPaletteInstance) => boolean | void) | null;
340
- onClose?: ((palette: CommandPaletteInstance) => void) | null;
341
- onQuery?: ((query: string, palette: CommandPaletteInstance) => void) | null;
342
- onBeforeSelect?: ((command: PaletteCommand, palette: CommandPaletteInstance) => boolean | void) | null;
343
- onSelect?: ((command: PaletteCommand, palette: CommandPaletteInstance) => void) | null;
344
- onRun?: ((command: PaletteCommand, palette: CommandPaletteInstance) => void) | null;
336
+ mac?: boolean | undefined;
337
+ onBeforeOpen?: ((palette: CommandPaletteInstance) => boolean | void) | null | undefined;
338
+ onOpen?: ((palette: CommandPaletteInstance) => void) | null | undefined;
339
+ onBeforeClose?: ((palette: CommandPaletteInstance) => boolean | void) | null | undefined;
340
+ onClose?: ((palette: CommandPaletteInstance) => void) | null | undefined;
341
+ onQuery?: ((query: string, palette: CommandPaletteInstance) => void) | null | undefined;
342
+ onBeforeSelect?: ((command: PaletteCommand, palette: CommandPaletteInstance) => boolean | void) | null | undefined;
343
+ onSelect?: ((command: PaletteCommand, palette: CommandPaletteInstance) => void) | null | undefined;
344
+ onRun?: ((command: PaletteCommand, palette: CommandPaletteInstance) => void) | null | undefined;
345
345
  };
346
346
  export type CommandPaletteInstance = CommandPalette;
347
347
  /**
@@ -96,21 +96,21 @@ export class Dropzone extends Component {
96
96
  * @param {DropzoneOptions} [options]
97
97
  */
98
98
  constructor(element: string | Element | null, options?: DropzoneOptions);
99
- _entries: any[];
100
- _queue: any[];
101
- _active: number;
102
- _batch: boolean;
103
- _added: any[];
104
- _canSync: boolean;
99
+ _entries: any[] | undefined;
100
+ _queue: any[] | undefined;
101
+ _active: number | undefined;
102
+ _batch: boolean | undefined;
103
+ _added: any[] | undefined;
104
+ _canSync: boolean | undefined;
105
105
  _labels: any;
106
- _guarded: boolean;
106
+ _guarded: boolean | undefined;
107
107
  _setupZone(): void;
108
108
  /** The drop area (the element, or the one drawn after a file input given as the target). @type {HTMLElement} */
109
- zone: HTMLElement;
110
- _givenInput: HTMLElement;
111
- _restoreZone: {};
112
- _zoneClasses: string[];
113
- _isLabel: boolean;
109
+ zone: HTMLElement | undefined;
110
+ _givenInput: HTMLElement | null | undefined;
111
+ _restoreZone: {} | undefined;
112
+ _zoneClasses: string[] | undefined;
113
+ _isLabel: boolean | undefined;
114
114
  _findInput(): any;
115
115
  _setupInput(): void;
116
116
  _restoreInput: {
@@ -120,13 +120,13 @@ export class Dropzone extends Component {
120
120
  disabled: any;
121
121
  tabindex: any;
122
122
  accept: any;
123
- };
123
+ } | undefined;
124
124
  /** The real file input. @type {HTMLInputElement} */
125
- input: HTMLInputElement;
125
+ input: HTMLInputElement | undefined;
126
126
  _setupList(): void;
127
- _hintId: string;
128
- _live: HTMLDivElement;
129
- _list: HTMLUListElement;
127
+ _hintId: string | undefined;
128
+ _live: HTMLDivElement | undefined;
129
+ _list: HTMLUListElement | undefined;
130
130
  _hint(): string;
131
131
  _bind(): void;
132
132
  _timers: any;
@@ -140,12 +140,12 @@ export class Dropzone extends Component {
140
140
  type: string;
141
141
  status: string;
142
142
  progress: number;
143
- response: any;
144
- error: any;
143
+ response: null;
144
+ error: null;
145
145
  attempts: number;
146
- preview: any;
146
+ preview: null;
147
147
  };
148
- _rejectReason(entry: any, countSoFar: any): "size" | "type" | "count";
148
+ _rejectReason(entry: any, countSoFar: any): "size" | "type" | "count" | null;
149
149
  _rejectMessage(entry: any, reason: any): string;
150
150
  /**
151
151
  * Add files (a FileList, an array of File, or one File). Each passes the accept / size /
@@ -172,7 +172,7 @@ export class Dropzone extends Component {
172
172
  browse(): this;
173
173
  /** Keep the real input's FileList in step with the list (no upload), or empty (upload). */
174
174
  _syncInput(): void;
175
- _settingFiles: boolean;
175
+ _settingFiles: boolean | undefined;
176
176
  _announce(message: any): void;
177
177
  _preview(entry: any): void;
178
178
  _renderEntry(entry: any): void;
@@ -255,88 +255,88 @@ export type DropzoneUploadOptions = {
255
255
  /**
256
256
  * Default 'POST'
257
257
  */
258
- method?: string;
258
+ method?: string | undefined;
259
259
  /**
260
260
  * FormData field for the file. Default 'file'
261
261
  */
262
- field?: string;
263
- headers?: Record<string, string> | ((entry: DropzoneEntry) => Record<string, string>);
264
- withCredentials?: boolean;
262
+ field?: string | undefined;
263
+ headers?: Record<string, string> | ((entry: DropzoneEntry) => Record<string, string>) | undefined;
264
+ withCredentials?: boolean | undefined;
265
265
  /**
266
266
  * Files sent at once. Default 2
267
267
  */
268
- concurrency?: number;
268
+ concurrency?: number | undefined;
269
269
  /**
270
270
  * Extra FormData fields
271
271
  */
272
- data?: Record<string, string | Blob> | ((entry: DropzoneEntry) => Record<string, string | Blob>);
272
+ data?: Record<string, string | Blob> | ((entry: DropzoneEntry) => Record<string, string | Blob>) | undefined;
273
273
  /**
274
274
  * Make the request object (tests, pages without a server). Default: new XMLHttpRequest()
275
275
  */
276
- xhr?: (entry: DropzoneEntry) => XMLHttpRequest;
276
+ xhr?: ((entry: DropzoneEntry) => XMLHttpRequest) | undefined;
277
277
  };
278
278
  export type DropzoneOptions = {
279
279
  /**
280
280
  * Like the input's accept: '.pdf,image/*' or ['.pdf', 'image/*']. Default: the input's
281
281
  */
282
- accept?: string | string[] | null;
282
+ accept?: string | string[] | null | undefined;
283
283
  /**
284
284
  * Default: the input's `multiple`, or true when the component makes the input
285
285
  */
286
- multiple?: boolean | null;
287
- maxFiles?: number | null;
286
+ multiple?: boolean | null | undefined;
287
+ maxFiles?: number | null | undefined;
288
288
  /**
289
289
  * Bytes
290
290
  */
291
- maxSize?: number | null;
291
+ maxSize?: number | null | undefined;
292
292
  /**
293
293
  * Bytes
294
294
  */
295
- minSize?: number | null;
295
+ minSize?: number | null | undefined;
296
296
  /**
297
297
  * Image thumbnails. Default true
298
298
  */
299
- previews?: boolean;
299
+ previews?: boolean | undefined;
300
300
  /**
301
301
  * Form field name. Default: the input's
302
302
  */
303
- name?: string | null;
303
+ name?: string | null | undefined;
304
304
  /**
305
305
  * The file input, when it is not inside or next to the area
306
306
  */
307
- input?: string | HTMLInputElement | null;
307
+ input?: string | HTMLInputElement | null | undefined;
308
308
  /**
309
309
  * true = after the area (default), an element/selector to draw into, false = no list
310
310
  */
311
- list?: boolean | string | HTMLElement;
312
- upload?: DropzoneUploadOptions | null;
311
+ list?: string | boolean | HTMLElement | undefined;
312
+ upload?: DropzoneUploadOptions | null | undefined;
313
313
  /**
314
314
  * Default true
315
315
  */
316
- autoUpload?: boolean;
316
+ autoUpload?: boolean | undefined;
317
317
  /**
318
318
  * Automatic retries per file. Default 0
319
319
  */
320
- retry?: number;
320
+ retry?: number | undefined;
321
321
  /**
322
322
  * Text: prompt, hint, remove, retry, cancel, added, removed, type, size, small, count, uploading, done, failed, cancelled, required ({name}, {max}, {min}, {percent})
323
323
  */
324
- labels?: Record<string, string>;
325
- disabled?: boolean;
326
- className?: string;
324
+ labels?: Record<string, string> | undefined;
325
+ disabled?: boolean | undefined;
326
+ className?: string | undefined;
327
327
  /**
328
328
  * Return false to refuse the file
329
329
  */
330
- onBeforeAdd?: ((entry: DropzoneEntry) => boolean | void) | null;
331
- onAdd?: ((entry: DropzoneEntry) => void) | null;
332
- onReject?: ((entry: DropzoneEntry, reason: DropzoneRejectReason) => void) | null;
333
- onRemove?: ((entry: DropzoneEntry) => void) | null;
334
- onChange?: ((files: File[]) => void) | null;
335
- onUploadStart?: ((entry: DropzoneEntry) => void) | null;
336
- onProgress?: ((entry: DropzoneEntry, percent: number) => void) | null;
337
- onSuccess?: ((entry: DropzoneEntry, response: any) => void) | null;
338
- onError?: ((entry: DropzoneEntry, error: DropzoneUploadError) => void) | null;
339
- onComplete?: ((entries: DropzoneEntry[]) => void) | null;
330
+ onBeforeAdd?: ((entry: DropzoneEntry) => boolean | void) | null | undefined;
331
+ onAdd?: ((entry: DropzoneEntry) => void) | null | undefined;
332
+ onReject?: ((entry: DropzoneEntry, reason: DropzoneRejectReason) => void) | null | undefined;
333
+ onRemove?: ((entry: DropzoneEntry) => void) | null | undefined;
334
+ onChange?: ((files: File[]) => void) | null | undefined;
335
+ onUploadStart?: ((entry: DropzoneEntry) => void) | null | undefined;
336
+ onProgress?: ((entry: DropzoneEntry, percent: number) => void) | null | undefined;
337
+ onSuccess?: ((entry: DropzoneEntry, response: any) => void) | null | undefined;
338
+ onError?: ((entry: DropzoneEntry, error: DropzoneUploadError) => void) | null | undefined;
339
+ onComplete?: ((entries: DropzoneEntry[]) => void) | null | undefined;
340
340
  };
341
341
  export type DropzoneInstance = Dropzone;
342
342
  import Component from '../component.js';
@@ -61,15 +61,15 @@ export class FocusTrap extends Component {
61
61
  */
62
62
  constructor(containers: FocusTarget | Element | Array<FocusTarget | Element>, options?: FocusTrapOptions);
63
63
  _containers: HTMLElement[];
64
- _bodyAtStart: Set<Element>;
64
+ _bodyAtStart: Set<Element> | null;
65
65
  _floor: number;
66
66
  _pendingTab: {
67
67
  shift: any;
68
68
  fromInside: boolean;
69
- };
69
+ } | null;
70
70
  _active: boolean;
71
71
  _paused: boolean;
72
- _returnTo: Element;
72
+ _returnTo: Element | null;
73
73
  _lastFocused: any;
74
74
  _madeFocusable: any[];
75
75
  _inerted: any[];
@@ -133,7 +133,7 @@ export class FocusTrap extends Component {
133
133
  * @returns {HTMLElement[]}
134
134
  */
135
135
  tabbables(): HTMLElement[];
136
- _destroyed: boolean;
136
+ _destroyed: boolean | undefined;
137
137
  _contains(node: any): boolean;
138
138
  _eventInside(e: any): boolean;
139
139
  _bind(): void;
@@ -141,7 +141,7 @@ export class FocusTrap extends Component {
141
141
  /** A container that can hold focus itself, for when there is nothing tabbable. */
142
142
  _fallback(): any;
143
143
  _clearFocusable(): void;
144
- _firstTarget(): any;
144
+ _firstTarget(): HTMLElement;
145
145
  _focusInitial(initial: any): void;
146
146
  _focus(el: any, scroll?: boolean): void;
147
147
  /**
@@ -167,7 +167,7 @@ export class FocusTrap extends Component {
167
167
  * before - Shift+Tab to that element, Tab to the one after it.
168
168
  */
169
169
  _tabInLayer(e: any, layer: any, active: any): void;
170
- _scriptTurn: {};
170
+ _scriptTurn: {} | null | undefined;
171
171
  /**
172
172
  * `inert` on every sibling of the containers and of their ancestors, up to <body>, so
173
173
  * the rest of the page cannot be reached by anything - pointer, Tab or a screen
@@ -185,55 +185,55 @@ export type FocusTrapOptions = {
185
185
  /**
186
186
  * Where focus goes on activate: a selector, an element, a function returning one, or false to leave it. Default: focus already inside stays, else the first tabbable, else the container.
187
187
  */
188
- initialFocus?: FocusTarget | (() => HTMLElement | null) | false;
188
+ initialFocus?: false | FocusTarget | (() => HTMLElement | null) | undefined;
189
189
  /**
190
190
  * Where focus goes when nothing is tabbable (default: the first container, given tabindex="-1")
191
191
  */
192
- fallbackFocus?: FocusTarget | (() => HTMLElement | null);
192
+ fallbackFocus?: FocusTarget | (() => HTMLElement | null) | undefined;
193
193
  /**
194
194
  * true (default): back to what had focus before activate(); or an element / selector; false: nowhere
195
195
  */
196
- returnFocus?: boolean | FocusTarget;
196
+ returnFocus?: boolean | FocusTarget | undefined;
197
197
  /**
198
198
  * Escape deactivates (default false - the owning overlay decides)
199
199
  */
200
- escapeDeactivates?: boolean | ((e: KeyboardEvent) => boolean);
200
+ escapeDeactivates?: boolean | ((e: KeyboardEvent) => boolean) | undefined;
201
201
  /**
202
202
  * A press outside deactivates (default false)
203
203
  */
204
- clickOutsideDeactivates?: boolean | ((e: MouseEvent) => boolean);
204
+ clickOutsideDeactivates?: boolean | ((e: MouseEvent) => boolean) | undefined;
205
205
  /**
206
206
  * Let clicks outside through (default false: they are blocked)
207
207
  */
208
- allowOutsideClick?: boolean | ((e: MouseEvent) => boolean);
208
+ allowOutsideClick?: boolean | ((e: MouseEvent) => boolean) | undefined;
209
209
  /**
210
210
  * Let a click, key or input handler on something inside the trap move focus outside on purpose - e.g. "Insert" focusing the editor behind a slideover before closing it (default false; the overlays turn it on)
211
211
  */
212
- allowScriptFocus?: boolean;
212
+ allowScriptFocus?: boolean | undefined;
213
213
  /**
214
214
  * Let focus stay outside: true, 'layers' (floating layers such as toasts and popovers, never the page or a trap beneath), or a function (default false)
215
215
  */
216
- allowOutsideFocus?: boolean | "layers" | ((el: Element, e: Event | null) => boolean);
216
+ allowOutsideFocus?: boolean | "layers" | ((el: Element, e: Event | null) => boolean) | undefined;
217
217
  /**
218
218
  * false: keep the trap out of E.get(container) (default true)
219
219
  */
220
- register?: boolean;
220
+ register?: boolean | undefined;
221
221
  /**
222
222
  * Set `inert` on everything outside the containers while active (default false)
223
223
  */
224
- inert?: boolean;
224
+ inert?: boolean | undefined;
225
225
  /**
226
226
  * Walk open shadow roots (default true)
227
227
  */
228
- shadow?: boolean;
228
+ shadow?: boolean | undefined;
229
229
  /**
230
230
  * Focus without scrolling (default true)
231
231
  */
232
- preventScroll?: boolean;
233
- onActivate?: ((trap: FocusTrapInstance) => void) | null;
234
- onDeactivate?: ((trap: FocusTrapInstance) => void) | null;
235
- onPause?: ((trap: FocusTrapInstance) => void) | null;
236
- onUnpause?: ((trap: FocusTrapInstance) => void) | null;
232
+ preventScroll?: boolean | undefined;
233
+ onActivate?: ((trap: FocusTrapInstance) => void) | null | undefined;
234
+ onDeactivate?: ((trap: FocusTrapInstance) => void) | null | undefined;
235
+ onPause?: ((trap: FocusTrapInstance) => void) | null | undefined;
236
+ onUnpause?: ((trap: FocusTrapInstance) => void) | null | undefined;
237
237
  };
238
238
  export type FocusTrapInstance = FocusTrap;
239
239
  /**
@@ -25,8 +25,8 @@ export class Loader extends Component {
25
25
  visible: boolean;
26
26
  fullscreen: boolean;
27
27
  label: string;
28
- onShow: any;
29
- onHide: any;
28
+ onShow: null;
29
+ onHide: null;
30
30
  };
31
31
  /**
32
32
  * @param {import('./shared.js').ComponentTarget} selector - The container
@@ -35,9 +35,9 @@ export class Loader extends Component {
35
35
  constructor(selector: import("./shared.js").ComponentTarget, options?: LoaderOptions);
36
36
  /** The `.dm-loader` element. @type {HTMLDivElement} */
37
37
  indicator: HTMLDivElement;
38
- _visible: boolean;
38
+ _visible: boolean | undefined;
39
39
  _render(): void;
40
- _textEl: HTMLSpanElement;
40
+ _textEl: HTMLSpanElement | null | undefined;
41
41
  _setShown(shown: any): void;
42
42
  /** @returns {this} */
43
43
  show(): this;
@@ -87,47 +87,47 @@ export type LoaderOptions = {
87
87
  /**
88
88
  * - Animation
89
89
  */
90
- type?: LoaderType;
90
+ type?: LoaderType | undefined;
91
91
  /**
92
92
  * - Named size or px
93
93
  */
94
- size?: "small" | "sm" | "medium" | "md" | "large" | "lg" | number;
94
+ size?: number | "small" | "sm" | "md" | "lg" | "medium" | "large" | undefined;
95
95
  /**
96
96
  * - Theme colour name, 'white', 'dark', or any CSS colour
97
97
  */
98
- color?: string;
98
+ color?: string | undefined;
99
99
  /**
100
100
  * - Cover the container with a backdrop
101
101
  */
102
- overlay?: boolean;
102
+ overlay?: boolean | undefined;
103
103
  /**
104
104
  * - Text under the indicator (also its accessible name)
105
105
  */
106
- text?: string;
106
+ text?: string | undefined;
107
107
  /**
108
108
  * - Centre in the container
109
109
  */
110
- centered?: boolean;
110
+ centered?: boolean | undefined;
111
111
  /**
112
112
  * - Show at once
113
113
  */
114
- visible?: boolean;
114
+ visible?: boolean | undefined;
115
115
  /**
116
116
  * - (fullscreenLoader) the container is shown and hidden with it
117
117
  */
118
- fullscreen?: boolean;
118
+ fullscreen?: boolean | undefined;
119
119
  /**
120
120
  * - Accessible name when there is no text
121
121
  */
122
- label?: string;
122
+ label?: string | undefined;
123
123
  /**
124
124
  * - When the loader shows
125
125
  */
126
- onShow?: ((loader: LoaderInstance) => void) | null;
126
+ onShow?: ((loader: LoaderInstance) => void) | null | undefined;
127
127
  /**
128
128
  * - When the loader hides
129
129
  */
130
- onHide?: ((loader: LoaderInstance) => void) | null;
130
+ onHide?: ((loader: LoaderInstance) => void) | null | undefined;
131
131
  };
132
132
  export type LoaderInstance = Loader;
133
133
  import Component from '../component.js';