domma-js 1.1.0 → 1.2.0
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/README.md +6 -0
- package/assets/types/catalogue.json +29 -29
- package/assets/types/generated/public/assets/icons/code.d.ts +236 -1
- package/assets/types/generated/src/auth.d.ts +38 -38
- package/assets/types/generated/src/avatar.d.ts +31 -31
- package/assets/types/generated/src/binding-source.d.ts +3 -3
- package/assets/types/generated/src/component-factory.d.ts +15 -15
- package/assets/types/generated/src/component.d.ts +4 -4
- package/assets/types/generated/src/components/back-to-top.d.ts +18 -18
- package/assets/types/generated/src/components/badge.d.ts +26 -26
- package/assets/types/generated/src/components/card.d.ts +30 -30
- package/assets/types/generated/src/components/command-palette.d.ts +69 -69
- package/assets/types/generated/src/components/dropzone.d.ts +54 -54
- package/assets/types/generated/src/components/focus-trap.d.ts +22 -22
- package/assets/types/generated/src/components/loader.d.ts +15 -15
- package/assets/types/generated/src/components/modal.d.ts +59 -59
- package/assets/types/generated/src/components/range-slider.d.ts +54 -54
- package/assets/types/generated/src/components/shared.d.ts +1 -1
- package/assets/types/generated/src/components/split-pane.d.ts +45 -45
- package/assets/types/generated/src/components/toast.d.ts +38 -38
- package/assets/types/generated/src/components/tooltip.d.ts +24 -24
- package/assets/types/generated/src/components/virtual-list.d.ts +61 -61
- package/assets/types/generated/src/config.d.ts +21 -21
- package/assets/types/generated/src/context-cursor.d.ts +6 -6
- package/assets/types/generated/src/context-menu.d.ts +72 -72
- package/assets/types/generated/src/dom.d.ts +12 -12
- package/assets/types/generated/src/effects.d.ts +154 -141
- package/assets/types/generated/src/elements.d.ts +644 -644
- package/assets/types/generated/src/flags.d.ts +38 -38
- package/assets/types/generated/src/forms.d.ts +100 -100
- package/assets/types/generated/src/globals.d.ts +6 -6
- package/assets/types/generated/src/http.d.ts +12 -12
- package/assets/types/generated/src/i18n.d.ts +8 -8
- package/assets/types/generated/src/icons.d.ts +13 -13
- package/assets/types/generated/src/index.d.ts +10 -10
- package/assets/types/generated/src/input-group.d.ts +21 -21
- package/assets/types/generated/src/models.d.ts +21 -21
- package/assets/types/generated/src/popover.d.ts +45 -45
- package/assets/types/generated/src/router.d.ts +30 -30
- package/assets/types/generated/src/sanitize.d.ts +13 -5
- package/assets/types/generated/src/schema-builder.d.ts +34 -34
- package/assets/types/generated/src/skeleton.d.ts +11 -11
- package/assets/types/generated/src/sortable.d.ts +46 -46
- package/assets/types/generated/src/tables.d.ts +75 -75
- package/assets/types/generated/src/theme.d.ts +8 -8
- package/assets/types/generated/src/treeview.d.ts +48 -48
- package/assets/types/generated/src/utils.d.ts +13 -13
- package/assets/types/generated/vendor/domma-reactive.d.ts +2 -2
- package/package.json +22 -16
- package/public/dist/bundles/domma-complete.css +53 -14
- package/public/dist/bundles/domma-data-focused.css +53 -14
- package/public/dist/bundles/domma-essentials.css +53 -14
- package/public/dist/bundles/domma-full.css +53 -14
- package/public/dist/bundles/domma-minimal.css +47 -8
- package/public/dist/domma-flags.esm.js +3 -3
- package/public/dist/domma-flags.min.js +3 -3
- package/public/dist/domma-syntax.min.js +3 -3
- package/public/dist/domma.css +42 -3
- package/public/dist/domma.esm.js +4 -4
- package/public/dist/domma.esm.js.map +1 -1
- package/public/dist/domma.min.js +4 -4
- package/public/dist/domma.min.js.map +1 -1
- package/public/dist/elements.css +3 -3
- package/public/dist/grid.css +3 -3
- package/public/dist/syntax.css +3 -3
- package/public/dist/themes/domma-themes.css +3 -3
|
@@ -58,47 +58,47 @@ export type SkeletonOptions = {
|
|
|
58
58
|
/**
|
|
59
59
|
* - Shape to draw (default 'text')
|
|
60
60
|
*/
|
|
61
|
-
type?: SkeletonType;
|
|
61
|
+
type?: SkeletonType | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* - Lines per paragraph, card or list item (default 3; list 2)
|
|
64
64
|
*/
|
|
65
|
-
lines?: number |
|
|
65
|
+
lines?: string | number | null | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* - Paragraphs, cards or list items (default 1; list 3)
|
|
68
68
|
*/
|
|
69
|
-
count?: number |
|
|
69
|
+
count?: string | number | null | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* - Table rows (default 5)
|
|
72
72
|
*/
|
|
73
|
-
rows?: number |
|
|
73
|
+
rows?: string | number | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* - Table columns (default 4)
|
|
76
76
|
*/
|
|
77
|
-
columns?: number |
|
|
77
|
+
columns?: string | number | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* - Table header row (default true)
|
|
80
80
|
*/
|
|
81
|
-
header?: boolean;
|
|
81
|
+
header?: boolean | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* - A circle at the start of each list item (default true)
|
|
84
84
|
*/
|
|
85
|
-
avatar?: boolean;
|
|
85
|
+
avatar?: boolean | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* - An image block at the top of each card (default true)
|
|
88
88
|
*/
|
|
89
|
-
image?: boolean;
|
|
89
|
+
image?: boolean | undefined;
|
|
90
90
|
/**
|
|
91
91
|
* - false = still tint, no sweep (default true)
|
|
92
92
|
*/
|
|
93
|
-
animate?: boolean;
|
|
93
|
+
animate?: boolean | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* - Markup for type 'custom', or a function returning it
|
|
96
96
|
*/
|
|
97
|
-
template?: string | ((options: SkeletonOptions) => string) | null;
|
|
97
|
+
template?: string | ((options: SkeletonOptions) => string) | null | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* - Screen-reader status text (default 'Loading...')
|
|
100
100
|
*/
|
|
101
|
-
label?: string;
|
|
101
|
+
label?: string | undefined;
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
104
|
* The handle E.skeleton() returns.
|
|
@@ -66,91 +66,91 @@ export type SortableOptions = {
|
|
|
66
66
|
/**
|
|
67
67
|
* - Selector for the sortable items; null = the container's direct children
|
|
68
68
|
*/
|
|
69
|
-
items?: string | null;
|
|
69
|
+
items?: string | null | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* - Selector inside an item that starts a drag; null = the whole item
|
|
72
72
|
*/
|
|
73
|
-
handle?: string | null;
|
|
73
|
+
handle?: string | null | undefined;
|
|
74
74
|
/**
|
|
75
75
|
* - Adds an "into" drop zone and switches to indicator mode (for trees)
|
|
76
76
|
*/
|
|
77
|
-
nest?: boolean;
|
|
77
|
+
nest?: boolean | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* - null = !nest. true = siblings slide aside while you drag; false = indicator mode
|
|
80
80
|
*/
|
|
81
|
-
live?: boolean | null;
|
|
81
|
+
live?: boolean | null | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* - 'y' for a column, 'x' for a row
|
|
84
84
|
*/
|
|
85
|
-
axis?: "x" | "y";
|
|
85
|
+
axis?: "x" | "y" | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* - Attribute that identifies an item across re-renders (default 'data-id')
|
|
88
88
|
*/
|
|
89
|
-
key?: string;
|
|
89
|
+
key?: string | undefined;
|
|
90
90
|
/**
|
|
91
91
|
* - Animation duration in ms; 0 turns it off. Reduced motion always does
|
|
92
92
|
*/
|
|
93
|
-
animation?: number;
|
|
93
|
+
animation?: number | undefined;
|
|
94
94
|
/**
|
|
95
95
|
* - CSS easing for every glide
|
|
96
96
|
*/
|
|
97
|
-
easing?: string;
|
|
97
|
+
easing?: string | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* - Pixels the pointer must travel before a press becomes a drag (default 4)
|
|
100
100
|
*/
|
|
101
|
-
threshold?: number;
|
|
101
|
+
threshold?: number | undefined;
|
|
102
102
|
/**
|
|
103
103
|
* - Ms a finger must rest on an item with no handle before it drags (default 220)
|
|
104
104
|
*/
|
|
105
|
-
touchDelay?: number;
|
|
105
|
+
touchDelay?: number | undefined;
|
|
106
106
|
/**
|
|
107
107
|
* - Share of an item's height, centred, that means "into" (default 0.5)
|
|
108
108
|
*/
|
|
109
|
-
nestZone?: number;
|
|
109
|
+
nestZone?: number | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* - Veto a drop. Live mode passes 'before' or 'after'
|
|
112
112
|
*/
|
|
113
|
-
accepts?: ((item: HTMLElement, target: HTMLElement, zone: SortableZone) => boolean) | null;
|
|
113
|
+
accepts?: ((item: HTMLElement, target: HTMLElement, zone: SortableZone) => boolean) | null | undefined;
|
|
114
114
|
/**
|
|
115
115
|
* - Start disabled
|
|
116
116
|
*/
|
|
117
|
-
disabled?: boolean;
|
|
117
|
+
disabled?: boolean | undefined;
|
|
118
118
|
/**
|
|
119
119
|
* - Alt+Arrow moves the focused item (live mode). Default true
|
|
120
120
|
*/
|
|
121
|
-
keyboard?: boolean;
|
|
121
|
+
keyboard?: boolean | undefined;
|
|
122
122
|
/**
|
|
123
123
|
* - Storage key (or true = the container's id): remember the order. Live mode
|
|
124
124
|
*/
|
|
125
|
-
persist?: string | boolean;
|
|
125
|
+
persist?: string | boolean | undefined;
|
|
126
126
|
/**
|
|
127
127
|
* - Scroll the nearest scrolling ancestor (or the page) near its edges. Default true
|
|
128
128
|
*/
|
|
129
|
-
autoScroll?: boolean;
|
|
129
|
+
autoScroll?: boolean | undefined;
|
|
130
130
|
/**
|
|
131
131
|
* - Where the dragged copy is appended; null = the container
|
|
132
132
|
*/
|
|
133
|
-
ghostParent?: HTMLElement | null;
|
|
134
|
-
onStart?: ((detail: SortableStartDetail) => void) | null;
|
|
135
|
-
onMove?: ((detail: SortableMoveDetail) => void) | null;
|
|
133
|
+
ghostParent?: HTMLElement | null | undefined;
|
|
134
|
+
onStart?: ((detail: SortableStartDetail) => void) | null | undefined;
|
|
135
|
+
onMove?: ((detail: SortableMoveDetail) => void) | null | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* - Live mode: the order changed
|
|
138
138
|
*/
|
|
139
|
-
onSort?: ((detail: SortableSortDetail) => void) | null;
|
|
139
|
+
onSort?: ((detail: SortableSortDetail) => void) | null | undefined;
|
|
140
140
|
/**
|
|
141
141
|
* - Indicator mode: update your data and re-render here. Return false (or a promise that rejects) to refuse; a returned promise is awaited before animating.
|
|
142
142
|
*/
|
|
143
|
-
onDrop?: ((detail: SortableDropDetail) => boolean | void | Promise<any>) | null;
|
|
143
|
+
onDrop?: ((detail: SortableDropDetail) => boolean | void | Promise<any>) | null | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* - Esc, a refused drop, or a drop over nothing
|
|
146
146
|
*/
|
|
147
147
|
onCancel?: ((detail: {
|
|
148
148
|
item: HTMLElement;
|
|
149
|
-
}) => void) | null;
|
|
149
|
+
}) => void) | null | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* - Every drag, keyboard move and cancel ends here
|
|
152
152
|
*/
|
|
153
|
-
onEnd?: ((detail: SortableEndDetail) => void) | null;
|
|
153
|
+
onEnd?: ((detail: SortableEndDetail) => void) | null | undefined;
|
|
154
154
|
};
|
|
155
155
|
export type SortableInstance = Sortable;
|
|
156
156
|
/**
|
|
@@ -227,38 +227,38 @@ declare class Sortable extends Component {
|
|
|
227
227
|
*/
|
|
228
228
|
constructor(selector: string | HTMLElement, options?: SortableOptions);
|
|
229
229
|
_drag: {
|
|
230
|
-
item:
|
|
230
|
+
item: any;
|
|
231
231
|
pointerId: any;
|
|
232
|
-
ghost:
|
|
233
|
-
rect:
|
|
232
|
+
ghost: any;
|
|
233
|
+
rect: any;
|
|
234
234
|
offsetX: number;
|
|
235
235
|
offsetY: number;
|
|
236
236
|
x: any;
|
|
237
237
|
y: any;
|
|
238
238
|
from: number;
|
|
239
|
-
previous: string[];
|
|
239
|
+
previous: (string | null)[];
|
|
240
240
|
origin: {
|
|
241
|
-
parent:
|
|
242
|
-
next:
|
|
241
|
+
parent: any;
|
|
242
|
+
next: any;
|
|
243
243
|
};
|
|
244
|
-
key: string;
|
|
245
|
-
target:
|
|
246
|
-
zone:
|
|
247
|
-
indicator:
|
|
248
|
-
scrollRaf:
|
|
249
|
-
};
|
|
244
|
+
key: string | null;
|
|
245
|
+
target: null;
|
|
246
|
+
zone: null;
|
|
247
|
+
indicator: null;
|
|
248
|
+
scrollRaf: null;
|
|
249
|
+
} | null;
|
|
250
250
|
_pending: {
|
|
251
251
|
item: Element;
|
|
252
252
|
pointerId: any;
|
|
253
253
|
startX: any;
|
|
254
254
|
startY: any;
|
|
255
255
|
ready: boolean;
|
|
256
|
-
timer:
|
|
257
|
-
};
|
|
258
|
-
_animating: WeakSet<object
|
|
259
|
-
_flips: WeakMap<object, any
|
|
260
|
-
_docHandlers: any[];
|
|
261
|
-
_observer: MutationObserver;
|
|
256
|
+
timer: null;
|
|
257
|
+
} | null;
|
|
258
|
+
_animating: WeakSet<object> | undefined;
|
|
259
|
+
_flips: WeakMap<object, any> | undefined;
|
|
260
|
+
_docHandlers: any[] | undefined;
|
|
261
|
+
_observer: MutationObserver | undefined;
|
|
262
262
|
/**
|
|
263
263
|
* The keys of the items, in their current order.
|
|
264
264
|
* @returns {(string|null)[]}
|
|
@@ -312,11 +312,11 @@ declare class Sortable extends Component {
|
|
|
312
312
|
_items(): any[];
|
|
313
313
|
/** The sortable container an element belongs to - a nested sortable claims its own. */
|
|
314
314
|
_ownerOf(el: any): any;
|
|
315
|
-
_itemFrom(node: any): Element;
|
|
316
|
-
_keyOf(el: any): string;
|
|
315
|
+
_itemFrom(node: any): Element | null;
|
|
316
|
+
_keyOf(el: any): string | null;
|
|
317
317
|
_byKey(key: any): any;
|
|
318
318
|
_markHandles(): void;
|
|
319
|
-
_storageKey(): string;
|
|
319
|
+
_storageKey(): string | null;
|
|
320
320
|
_duration(): number;
|
|
321
321
|
_onPointerDown(e: any): void;
|
|
322
322
|
_onPointerMove(e: any): void;
|
|
@@ -352,10 +352,10 @@ declare class Sortable extends Component {
|
|
|
352
352
|
_onKeyDown(e: any): void;
|
|
353
353
|
/** Tell screen readers where the item now sits. */
|
|
354
354
|
_announce(item: any): void;
|
|
355
|
-
_liveRegion: HTMLDivElement;
|
|
355
|
+
_liveRegion: HTMLDivElement | undefined;
|
|
356
356
|
/** Where every item is now, by element and by key. */
|
|
357
357
|
_snapshot({ withDragged }?: {
|
|
358
|
-
withDragged?: boolean;
|
|
358
|
+
withDragged?: boolean | undefined;
|
|
359
359
|
}): Map<any, any>;
|
|
360
360
|
/** Animate each item from its rect in `before` to where it is now. */
|
|
361
361
|
_playFlip(before: any): void;
|
|
@@ -191,11 +191,11 @@ export class TableInstance {
|
|
|
191
191
|
element: HTMLElement | null;
|
|
192
192
|
/** @type {TableOptions} */
|
|
193
193
|
options: TableOptions;
|
|
194
|
-
_originalData:
|
|
195
|
-
_data:
|
|
196
|
-
_filteredData:
|
|
194
|
+
_originalData: any[];
|
|
195
|
+
_data: any[];
|
|
196
|
+
_filteredData: any[];
|
|
197
197
|
_currentPage: number;
|
|
198
|
-
_pageSize: number;
|
|
198
|
+
_pageSize: number | undefined;
|
|
199
199
|
_sorts: any[];
|
|
200
200
|
_filters: any[];
|
|
201
201
|
_searchQuery: string;
|
|
@@ -203,7 +203,7 @@ export class TableInstance {
|
|
|
203
203
|
_editingCell: {
|
|
204
204
|
rowIndex: number;
|
|
205
205
|
column: string;
|
|
206
|
-
};
|
|
206
|
+
} | null;
|
|
207
207
|
_eventListeners: Map<any, any>;
|
|
208
208
|
_columnDropdownOpen: boolean;
|
|
209
209
|
_searchIsRegex: boolean;
|
|
@@ -325,7 +325,7 @@ export class TableInstance {
|
|
|
325
325
|
* @returns {this}
|
|
326
326
|
*/
|
|
327
327
|
filterBy(filterFn: (row: TableRow, index: number, rows: TableRow[]) => boolean): this;
|
|
328
|
-
_customFilter: (row: TableRow, index: number, rows: TableRow[]) => boolean;
|
|
328
|
+
_customFilter: ((row: TableRow, index: number, rows: TableRow[]) => boolean) | null | undefined;
|
|
329
329
|
/**
|
|
330
330
|
* Clear the column filters, the search and the custom filter.
|
|
331
331
|
* @returns {this}
|
|
@@ -624,35 +624,35 @@ export type ColumnDefinition = {
|
|
|
624
624
|
/**
|
|
625
625
|
* - Header text (defaults to the key)
|
|
626
626
|
*/
|
|
627
|
-
title?: string;
|
|
627
|
+
title?: string | undefined;
|
|
628
628
|
/**
|
|
629
629
|
* - false turns sorting off for this column (also off when `options.sortable` is false)
|
|
630
630
|
*/
|
|
631
|
-
sortable?: boolean;
|
|
631
|
+
sortable?: boolean | undefined;
|
|
632
632
|
/**
|
|
633
633
|
* - false marks the column as not filterable
|
|
634
634
|
*/
|
|
635
|
-
filterable?: boolean;
|
|
635
|
+
filterable?: boolean | undefined;
|
|
636
636
|
/**
|
|
637
637
|
* - Double-click to edit the cell (needs `options.editable`)
|
|
638
638
|
*/
|
|
639
|
-
editable?: boolean;
|
|
639
|
+
editable?: boolean | undefined;
|
|
640
640
|
/**
|
|
641
641
|
* - Column width; a number is pixels
|
|
642
642
|
*/
|
|
643
|
-
width?: string | number;
|
|
643
|
+
width?: string | number | undefined;
|
|
644
644
|
/**
|
|
645
645
|
* - Cell HTML (set as innerHTML)
|
|
646
646
|
*/
|
|
647
|
-
render?: (value: any, row: TableRow, index: number) => string;
|
|
647
|
+
render?: ((value: any, row: TableRow, index: number) => string) | undefined;
|
|
648
648
|
/**
|
|
649
649
|
* - Stored on the column for custom filter UIs
|
|
650
650
|
*/
|
|
651
|
-
filterOptions?: any[];
|
|
651
|
+
filterOptions?: any[] | undefined;
|
|
652
652
|
/**
|
|
653
653
|
* - false starts the column hidden
|
|
654
654
|
*/
|
|
655
|
-
visible?: boolean;
|
|
655
|
+
visible?: boolean | undefined;
|
|
656
656
|
};
|
|
657
657
|
/**
|
|
658
658
|
* A column after normalisation, as `getColumns()` returns it.
|
|
@@ -675,7 +675,7 @@ export type SortState = {
|
|
|
675
675
|
export type FilterState = {
|
|
676
676
|
column: string;
|
|
677
677
|
value: any;
|
|
678
|
-
operator?: FilterOperator;
|
|
678
|
+
operator?: FilterOperator | undefined;
|
|
679
679
|
};
|
|
680
680
|
export type PageInfo = {
|
|
681
681
|
/**
|
|
@@ -701,8 +701,8 @@ export type PageInfo = {
|
|
|
701
701
|
* Payload of `onSort`: `sort()` sends column + direction + sorts, `sortMultiple()` sends sorts only.
|
|
702
702
|
*/
|
|
703
703
|
export type TableSortEvent = {
|
|
704
|
-
column?: string;
|
|
705
|
-
direction?: SortDirection;
|
|
704
|
+
column?: string | undefined;
|
|
705
|
+
direction?: SortDirection | undefined;
|
|
706
706
|
sorts: SortState[];
|
|
707
707
|
};
|
|
708
708
|
/**
|
|
@@ -710,11 +710,11 @@ export type TableSortEvent = {
|
|
|
710
710
|
*/
|
|
711
711
|
export type TableFilterEvent = {
|
|
712
712
|
type: "search" | "column";
|
|
713
|
-
query?: string;
|
|
714
|
-
isRegex?: boolean;
|
|
715
|
-
column?: string;
|
|
713
|
+
query?: string | undefined;
|
|
714
|
+
isRegex?: boolean | undefined;
|
|
715
|
+
column?: string | undefined;
|
|
716
716
|
value?: any;
|
|
717
|
-
operator?: FilterOperator;
|
|
717
|
+
operator?: FilterOperator | undefined;
|
|
718
718
|
};
|
|
719
719
|
/**
|
|
720
720
|
* Payload of `onEdit`.
|
|
@@ -730,9 +730,9 @@ export type TableEditEvent = {
|
|
|
730
730
|
*/
|
|
731
731
|
export type TableExportEvent = {
|
|
732
732
|
format: ExportFormat | "clipboard";
|
|
733
|
-
filename?: string;
|
|
733
|
+
filename?: string | undefined;
|
|
734
734
|
rowCount: number;
|
|
735
|
-
selectedOnly?: boolean;
|
|
735
|
+
selectedOnly?: boolean | undefined;
|
|
736
736
|
};
|
|
737
737
|
/**
|
|
738
738
|
* What an event callback receives: sort -> TableSortEvent, filter -> TableFilterEvent,
|
|
@@ -744,158 +744,158 @@ export type TableEventCallback = (data: TableEventData) => void;
|
|
|
744
744
|
* CSS class names the table renders with.
|
|
745
745
|
*/
|
|
746
746
|
export type TableClasses = {
|
|
747
|
-
wrapper?: string;
|
|
748
|
-
table?: string;
|
|
749
|
-
header?: string;
|
|
750
|
-
body?: string;
|
|
751
|
-
row?: string;
|
|
752
|
-
cell?: string;
|
|
753
|
-
selected?: string;
|
|
754
|
-
sorted?: string;
|
|
755
|
-
sortAsc?: string;
|
|
756
|
-
sortDesc?: string;
|
|
757
|
-
pagination?: string;
|
|
758
|
-
search?: string;
|
|
747
|
+
wrapper?: string | undefined;
|
|
748
|
+
table?: string | undefined;
|
|
749
|
+
header?: string | undefined;
|
|
750
|
+
body?: string | undefined;
|
|
751
|
+
row?: string | undefined;
|
|
752
|
+
cell?: string | undefined;
|
|
753
|
+
selected?: string | undefined;
|
|
754
|
+
sorted?: string | undefined;
|
|
755
|
+
sortAsc?: string | undefined;
|
|
756
|
+
sortDesc?: string | undefined;
|
|
757
|
+
pagination?: string | undefined;
|
|
758
|
+
search?: string | undefined;
|
|
759
759
|
};
|
|
760
760
|
export type TableOptions = {
|
|
761
761
|
/**
|
|
762
762
|
* - Initial data
|
|
763
763
|
*/
|
|
764
|
-
data?: TableRow[];
|
|
764
|
+
data?: TableRow[] | undefined;
|
|
765
765
|
/**
|
|
766
766
|
* - Column definitions
|
|
767
767
|
*/
|
|
768
|
-
columns?:
|
|
768
|
+
columns?: (string | ColumnDefinition)[] | undefined;
|
|
769
769
|
/**
|
|
770
770
|
* - Row identity field for select / update / remove (default 'id')
|
|
771
771
|
*/
|
|
772
|
-
rowKey?: string;
|
|
772
|
+
rowKey?: string | undefined;
|
|
773
773
|
/**
|
|
774
774
|
* - Enable sorting (default true)
|
|
775
775
|
*/
|
|
776
|
-
sortable?: boolean;
|
|
776
|
+
sortable?: boolean | undefined;
|
|
777
777
|
/**
|
|
778
778
|
* - Allow sorting by several columns (default false)
|
|
779
779
|
*/
|
|
780
|
-
multiSort?: boolean;
|
|
780
|
+
multiSort?: boolean | undefined;
|
|
781
781
|
/**
|
|
782
782
|
* - Sort applied on first render
|
|
783
783
|
*/
|
|
784
|
-
defaultSort?: SortState | null;
|
|
784
|
+
defaultSort?: SortState | null | undefined;
|
|
785
785
|
/**
|
|
786
786
|
* - Enable filtering (default true)
|
|
787
787
|
*/
|
|
788
|
-
filterable?: boolean;
|
|
788
|
+
filterable?: boolean | undefined;
|
|
789
789
|
/**
|
|
790
790
|
* - Show the search box (default true)
|
|
791
791
|
*/
|
|
792
|
-
searchable?: boolean;
|
|
792
|
+
searchable?: boolean | undefined;
|
|
793
793
|
/**
|
|
794
794
|
* - Search box placeholder (default 'Search...')
|
|
795
795
|
*/
|
|
796
|
-
searchPlaceholder?: string;
|
|
796
|
+
searchPlaceholder?: string | undefined;
|
|
797
797
|
/**
|
|
798
798
|
* - Enable pagination (default true)
|
|
799
799
|
*/
|
|
800
|
-
pagination?: boolean;
|
|
800
|
+
pagination?: boolean | undefined;
|
|
801
801
|
/**
|
|
802
802
|
* - Rows per page (default 10)
|
|
803
803
|
*/
|
|
804
|
-
pageSize?: number;
|
|
804
|
+
pageSize?: number | undefined;
|
|
805
805
|
/**
|
|
806
806
|
* - Page size choices (default [10, 25, 50, 100])
|
|
807
807
|
*/
|
|
808
|
-
pageSizeOptions?: number[];
|
|
808
|
+
pageSizeOptions?: number[] | undefined;
|
|
809
809
|
/**
|
|
810
810
|
* - Enable row selection (default false)
|
|
811
811
|
*/
|
|
812
|
-
selectable?: boolean;
|
|
812
|
+
selectable?: boolean | undefined;
|
|
813
813
|
/**
|
|
814
814
|
* - default 'single'
|
|
815
815
|
*/
|
|
816
|
-
selectionMode?: SelectionMode;
|
|
816
|
+
selectionMode?: SelectionMode | undefined;
|
|
817
817
|
/**
|
|
818
818
|
* - Enable cell editing on editable columns (default false)
|
|
819
819
|
*/
|
|
820
|
-
editable?: boolean;
|
|
820
|
+
editable?: boolean | undefined;
|
|
821
821
|
/**
|
|
822
822
|
* - default 'cell'
|
|
823
823
|
*/
|
|
824
|
-
editMode?: string;
|
|
824
|
+
editMode?: string | undefined;
|
|
825
825
|
/**
|
|
826
826
|
* - default true
|
|
827
827
|
*/
|
|
828
|
-
resizable?: boolean;
|
|
828
|
+
resizable?: boolean | undefined;
|
|
829
829
|
/**
|
|
830
830
|
* - Skeleton rows until the first setData()/addRow(): true = min(pageSize, 5), or a row count
|
|
831
831
|
*/
|
|
832
|
-
loadingSkeleton?: boolean |
|
|
832
|
+
loadingSkeleton?: number | boolean | undefined;
|
|
833
833
|
/**
|
|
834
834
|
* - Screen-reader status while loading (default 'Loading...')
|
|
835
835
|
*/
|
|
836
|
-
loadingLabel?: string;
|
|
836
|
+
loadingLabel?: string | undefined;
|
|
837
837
|
/**
|
|
838
838
|
* - Striped rows (default true)
|
|
839
839
|
*/
|
|
840
|
-
striped?: boolean;
|
|
840
|
+
striped?: boolean | undefined;
|
|
841
841
|
/**
|
|
842
842
|
* - Row hover colour (default true)
|
|
843
843
|
*/
|
|
844
|
-
hover?: boolean;
|
|
844
|
+
hover?: boolean | undefined;
|
|
845
845
|
/**
|
|
846
846
|
* - default true
|
|
847
847
|
*/
|
|
848
|
-
bordered?: boolean;
|
|
848
|
+
bordered?: boolean | undefined;
|
|
849
849
|
/**
|
|
850
850
|
* - default true
|
|
851
851
|
*/
|
|
852
|
-
responsive?: boolean;
|
|
852
|
+
responsive?: boolean | undefined;
|
|
853
853
|
/**
|
|
854
854
|
* - Named variant (see TableInstance.stripeColors), hex/rgb/hsl or var()
|
|
855
855
|
*/
|
|
856
|
-
evenRowColor?: string | null;
|
|
856
|
+
evenRowColor?: string | null | undefined;
|
|
857
857
|
/**
|
|
858
858
|
* - Named variant or colour
|
|
859
859
|
*/
|
|
860
|
-
oddRowColor?: string | null;
|
|
860
|
+
oddRowColor?: string | null | undefined;
|
|
861
861
|
/**
|
|
862
862
|
* - Named variant (see TableInstance.hoverColors) or colour
|
|
863
863
|
*/
|
|
864
|
-
hoverColor?: string | null;
|
|
864
|
+
hoverColor?: string | null | undefined;
|
|
865
865
|
/**
|
|
866
866
|
* - CSS class names
|
|
867
867
|
*/
|
|
868
|
-
classes?: TableClasses;
|
|
868
|
+
classes?: TableClasses | undefined;
|
|
869
869
|
/**
|
|
870
870
|
* - Show the export panel (default false)
|
|
871
871
|
*/
|
|
872
|
-
exportPanel?: boolean;
|
|
872
|
+
exportPanel?: boolean | undefined;
|
|
873
873
|
/**
|
|
874
874
|
* - Export panel buttons (default ['copy', 'csv', 'excel', 'json'])
|
|
875
875
|
*/
|
|
876
|
-
exportOptions?: TableExportOption[];
|
|
876
|
+
exportOptions?: TableExportOption[] | undefined;
|
|
877
877
|
/**
|
|
878
878
|
* - Show the column visibility menu (default false)
|
|
879
879
|
*/
|
|
880
|
-
columnToggle?: boolean;
|
|
880
|
+
columnToggle?: boolean | undefined;
|
|
881
881
|
/**
|
|
882
882
|
* - Show the regex search toggle (default false)
|
|
883
883
|
*/
|
|
884
|
-
regexSearch?: boolean;
|
|
884
|
+
regexSearch?: boolean | undefined;
|
|
885
885
|
/**
|
|
886
886
|
* - Remember column visibility/width, sorting and page size (default false)
|
|
887
887
|
*/
|
|
888
|
-
persistSettings?: boolean;
|
|
888
|
+
persistSettings?: boolean | undefined;
|
|
889
889
|
/**
|
|
890
890
|
* - Storage key (defaults to `domma-table-<element id>`)
|
|
891
891
|
*/
|
|
892
|
-
storageKey?: string | null;
|
|
893
|
-
onSort?: ((event: TableSortEvent) => void) | null;
|
|
894
|
-
onFilter?: ((event: TableFilterEvent) => void) | null;
|
|
895
|
-
onPageChange?: ((info: PageInfo) => void) | null;
|
|
896
|
-
onSelect?: ((selected: TableRow[]) => void) | null;
|
|
897
|
-
onEdit?: ((event: TableEditEvent) => void) | null;
|
|
898
|
-
onRender?: ((table: TableInstance) => void) | null;
|
|
899
|
-
onExport?: ((event: TableExportEvent) => void) | null;
|
|
892
|
+
storageKey?: string | null | undefined;
|
|
893
|
+
onSort?: ((event: TableSortEvent) => void) | null | undefined;
|
|
894
|
+
onFilter?: ((event: TableFilterEvent) => void) | null | undefined;
|
|
895
|
+
onPageChange?: ((info: PageInfo) => void) | null | undefined;
|
|
896
|
+
onSelect?: ((selected: TableRow[]) => void) | null | undefined;
|
|
897
|
+
onEdit?: ((event: TableEditEvent) => void) | null | undefined;
|
|
898
|
+
onRender?: ((table: TableInstance) => void) | null | undefined;
|
|
899
|
+
onExport?: ((event: TableExportEvent) => void) | null | undefined;
|
|
900
900
|
};
|
|
901
901
|
export type Tables = typeof tables;
|
|
@@ -57,23 +57,23 @@ export type ThemeOptions = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Initial theme (e.g., 'ocean-dark', 'forest-light')
|
|
59
59
|
*/
|
|
60
|
-
theme?: ThemeName;
|
|
60
|
+
theme?: ThemeName | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* Respect system preference (maps to light/dark variants)
|
|
63
63
|
*/
|
|
64
|
-
autoDetect?: boolean;
|
|
64
|
+
autoDetect?: boolean | undefined;
|
|
65
65
|
/**
|
|
66
66
|
* Save to localStorage
|
|
67
67
|
*/
|
|
68
|
-
persist?: boolean;
|
|
68
|
+
persist?: boolean | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* Disable theming entirely (no classes applied)
|
|
71
71
|
*/
|
|
72
|
-
disabled?: boolean;
|
|
72
|
+
disabled?: boolean | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* Target element
|
|
75
75
|
*/
|
|
76
|
-
target?: HTMLElement |
|
|
76
|
+
target?: string | HTMLElement | undefined;
|
|
77
77
|
};
|
|
78
78
|
export type Theme = ThemeEngine;
|
|
79
79
|
declare const themeEngine: ThemeEngine;
|
|
@@ -124,9 +124,9 @@ declare const themeEngine: ThemeEngine;
|
|
|
124
124
|
declare class ThemeEngine {
|
|
125
125
|
_theme: string;
|
|
126
126
|
_listeners: any[];
|
|
127
|
-
_target: HTMLElement | Element;
|
|
127
|
+
_target: HTMLElement | Element | null;
|
|
128
128
|
_initialised: boolean;
|
|
129
|
-
_systemMediaQuery: MediaQueryList;
|
|
129
|
+
_systemMediaQuery: MediaQueryList | null;
|
|
130
130
|
_autoDetect: boolean;
|
|
131
131
|
_disabled: boolean;
|
|
132
132
|
/**
|
|
@@ -135,7 +135,7 @@ declare class ThemeEngine {
|
|
|
135
135
|
* @returns {this}
|
|
136
136
|
*/
|
|
137
137
|
init(options?: ThemeOptions): this;
|
|
138
|
-
_persist: boolean;
|
|
138
|
+
_persist: boolean | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* Get the current theme (full name, e.g., 'ocean-dark')
|
|
141
141
|
* @returns {ThemeName}
|