@optionfactory/fml 8.0.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/LICENSE.md +21 -0
- package/README.md +22 -0
- package/dist/client-errors.iife.js +109 -0
- package/dist/client-errors.iife.js.map +1 -0
- package/dist/client-errors.iife.min.js +2 -0
- package/dist/client-errors.iife.min.js.map +1 -0
- package/dist/fml.css +2 -0
- package/dist/fml.css.map +1 -0
- package/dist/fml.d.mts +1241 -0
- package/dist/fml.iife.js +8340 -0
- package/dist/fml.iife.js.map +1 -0
- package/dist/fml.iife.min.js +2 -0
- package/dist/fml.iife.min.js.map +1 -0
- package/dist/fml.min.mjs +2 -0
- package/dist/fml.min.mjs.map +1 -0
- package/dist/fml.mjs +8284 -0
- package/dist/fml.mjs.map +1 -0
- package/dist/ftl.d.mts +361 -0
- package/dist/ftl.iife.js +4719 -0
- package/dist/ftl.iife.js.map +1 -0
- package/dist/ftl.iife.min.js +2 -0
- package/dist/ftl.iife.min.js.map +1 -0
- package/dist/ftl.min.mjs +2 -0
- package/dist/ftl.min.mjs.map +1 -0
- package/dist/ftl.mjs +4700 -0
- package/dist/ftl.mjs.map +1 -0
- package/dist/ful.css +2 -0
- package/dist/ful.css.map +1 -0
- package/dist/ful.d.mts +581 -0
- package/dist/ful.iife.js +2814 -0
- package/dist/ful.iife.js.map +1 -0
- package/dist/ful.iife.min.js +2 -0
- package/dist/ful.iife.min.js.map +1 -0
- package/dist/ful.min.mjs +2 -0
- package/dist/ful.min.mjs.map +1 -0
- package/dist/ful.mjs +2780 -0
- package/dist/ful.mjs.map +1 -0
- package/dist/httpc.d.mts +306 -0
- package/dist/httpc.iife.js +755 -0
- package/dist/httpc.iife.js.map +1 -0
- package/dist/httpc.iife.min.js +2 -0
- package/dist/httpc.iife.min.js.map +1 -0
- package/dist/httpc.min.mjs +2 -0
- package/dist/httpc.min.mjs.map +1 -0
- package/dist/httpc.mjs +743 -0
- package/dist/httpc.mjs.map +1 -0
- package/package.json +72 -0
package/dist/ful.d.mts
ADDED
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import { ParsedElement } from './ftl.mjs';
|
|
2
|
+
declare class LocalStorage extends Storage {
|
|
3
|
+
static save(k: any, v: any): void;
|
|
4
|
+
static load(k: any): any;
|
|
5
|
+
static remove(k: any): void;
|
|
6
|
+
static pop(k: any): any;
|
|
7
|
+
}
|
|
8
|
+
declare class SessionStorage extends Storage {
|
|
9
|
+
static save(k: any, v: any): void;
|
|
10
|
+
static load(k: any): any;
|
|
11
|
+
static remove(k: any): void;
|
|
12
|
+
static pop(k: any): any;
|
|
13
|
+
}
|
|
14
|
+
declare class VersionedLocalStorage {
|
|
15
|
+
static save(key: any, revision: any, data: any): void;
|
|
16
|
+
static load(key: any, revision: any): any;
|
|
17
|
+
}
|
|
18
|
+
declare class VersionedSessionStorage {
|
|
19
|
+
static save(key: any, revision: any, data: any): void;
|
|
20
|
+
static load(key: any, revision: any): any;
|
|
21
|
+
}
|
|
22
|
+
export type AsyncExtension = {
|
|
23
|
+
promises: Promise<any>[];
|
|
24
|
+
};
|
|
25
|
+
export type AsyncEvent = Event & {
|
|
26
|
+
async?: AsyncExtension;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {Object} AsyncExtension
|
|
30
|
+
* @property {Promise<any>[]} promises
|
|
31
|
+
* @typedef {Event & { async?: AsyncExtension }} AsyncEvent
|
|
32
|
+
*/
|
|
33
|
+
declare class AsyncEvents {
|
|
34
|
+
/**
|
|
35
|
+
* Dispatches an event and handles asynchronous resolution based on the execution mode.
|
|
36
|
+
* @param {HTMLElement} el - The target element dispatching the event.
|
|
37
|
+
* @param {AsyncEvent} evt - The event instance.
|
|
38
|
+
* @param {{mode?: 'broadcast' | 'pipeline' | 'delegate'}} [options] - Configuration options (defaults to 'broadcast').
|
|
39
|
+
* @returns {Promise<any>} Resolves with an array of values for broadcasts, a single value for pipelines/delegates, or undefined.
|
|
40
|
+
*/
|
|
41
|
+
static fireAsync(el: HTMLElement, evt: AsyncEvent, options?: {
|
|
42
|
+
mode?: 'broadcast' | 'pipeline' | 'delegate';
|
|
43
|
+
}): Promise<any>;
|
|
44
|
+
/**
|
|
45
|
+
* Registers an asynchronous event listener wrapper.
|
|
46
|
+
* @param {HTMLElement} el - The target element.
|
|
47
|
+
* @param {string} type - The event name/type.
|
|
48
|
+
* @param {Function} fn - The async listener middleware function returning the execution result.
|
|
49
|
+
* @param {AddEventListenerOptions} [options] - Native addEventListener options.
|
|
50
|
+
* @returns {EventListener} The underlying proxy listener function needed for cleanup via asyncOff.
|
|
51
|
+
*/
|
|
52
|
+
static asyncOn(el: HTMLElement, type: string, fn: Function, options?: AddEventListenerOptions): EventListener;
|
|
53
|
+
/**
|
|
54
|
+
* Unregisters an asynchronous event listener proxy.
|
|
55
|
+
* @param {HTMLElement} el - The target element.
|
|
56
|
+
* @param {string} type - The event name/type.
|
|
57
|
+
* @param {EventListener} listener - The proxy listener instance previously returned by asyncOn.
|
|
58
|
+
* @param {EventListenerOptions} [options] - Native removeEventListener options.
|
|
59
|
+
*/
|
|
60
|
+
static asyncOff(el: HTMLElement, type: string, listener: EventListener, options?: EventListenerOptions): void;
|
|
61
|
+
/**
|
|
62
|
+
* Mixes the asynchronous execution engine extensions into target class prototypes.
|
|
63
|
+
* @param {...Function} classes - The target class constructors to decorate.
|
|
64
|
+
*/
|
|
65
|
+
static mixInto(...classes: Function[]): void;
|
|
66
|
+
}
|
|
67
|
+
declare class Timing {
|
|
68
|
+
static sleep(ms: any): Promise<any>;
|
|
69
|
+
static DEBOUNCE_DEFAULT: number;
|
|
70
|
+
static DEBOUNCE_IMMEDIATE: number;
|
|
71
|
+
/**
|
|
72
|
+
* Executes only after a period of inactivity (pause in events).
|
|
73
|
+
* Respond to the "end" of a series of events.
|
|
74
|
+
* @param {*} timeoutMs
|
|
75
|
+
* @param {*} func
|
|
76
|
+
* @param {*} [options]
|
|
77
|
+
* @returns {[function, function]}
|
|
78
|
+
*/
|
|
79
|
+
static debounce(timeoutMs: any, func: any, options?: any): [Function, Function];
|
|
80
|
+
static THROTTLE_DEFAULT: number;
|
|
81
|
+
static THROTTLE_NO_LEADING: number;
|
|
82
|
+
static THROTTLE_NO_TRAILING: number;
|
|
83
|
+
/**
|
|
84
|
+
* Executes at most once per specified time interval, regardless of ongoing events.
|
|
85
|
+
* @param {*} timeoutMs
|
|
86
|
+
* @param {*} func
|
|
87
|
+
* @param {*} [options]
|
|
88
|
+
* @returns {[function, function]}
|
|
89
|
+
*/
|
|
90
|
+
static throttle(timeoutMs: any, func: any, options?: any): [Function, Function];
|
|
91
|
+
}
|
|
92
|
+
declare class Bindings {
|
|
93
|
+
/**
|
|
94
|
+
* @param {{ [x: string]: any; }} obj
|
|
95
|
+
* @param {string} prefix
|
|
96
|
+
* @param {Set<String>} stops
|
|
97
|
+
* @return {{ [x: string]: any; }}
|
|
98
|
+
*/
|
|
99
|
+
static flatten(obj: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
}, prefix: string, stops: Set<string>): {
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @param {any} result
|
|
106
|
+
* @param {string} path
|
|
107
|
+
* @param {any} value
|
|
108
|
+
*/
|
|
109
|
+
static providePath(result: any, path: string, value: any): any;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @param {Element & {dataset?: any} & {checked?: boolean} & {value?: any}} el
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
static extract(el: Element & {
|
|
116
|
+
dataset?: any;
|
|
117
|
+
} & {
|
|
118
|
+
checked?: boolean;
|
|
119
|
+
} & {
|
|
120
|
+
value?: any;
|
|
121
|
+
}): any;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @param {HTMLFormElement} form
|
|
125
|
+
* @param {HTMLElement} [submitter]
|
|
126
|
+
* @returns
|
|
127
|
+
*/
|
|
128
|
+
static extractFrom(form: HTMLFormElement, submitter?: HTMLElement): {};
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @param {Element & {checked?: boolean} & {value?: any}} el
|
|
132
|
+
* @returns
|
|
133
|
+
*/
|
|
134
|
+
static mutate(el: Element & {
|
|
135
|
+
checked?: boolean;
|
|
136
|
+
} & {
|
|
137
|
+
value?: any;
|
|
138
|
+
}, raw: any): void;
|
|
139
|
+
static mutateIn(form: any, values: any): void;
|
|
140
|
+
static errors(form: any, es: any, scrollOnError: any): void;
|
|
141
|
+
}
|
|
142
|
+
declare class RemoteJsonFormLoader {
|
|
143
|
+
#private;
|
|
144
|
+
constructor(http: any, url: any, method: any, requestMapper: any, responseMapper: any);
|
|
145
|
+
prepare(values: any, form: any): any;
|
|
146
|
+
submit(values: any, form: any): Promise<any>;
|
|
147
|
+
transform(response: any, form: any): any;
|
|
148
|
+
}
|
|
149
|
+
declare class LocalFormLoader {
|
|
150
|
+
#private;
|
|
151
|
+
constructor(requestMapper: any, responseMapper: any);
|
|
152
|
+
prepare(values: any, form: any): Promise<any>;
|
|
153
|
+
submit(values: any, form: any, response: any): Promise<any>;
|
|
154
|
+
transform(response: any, form: any): Promise<any>;
|
|
155
|
+
}
|
|
156
|
+
declare class FormLoader {
|
|
157
|
+
static create(el: any, conf: any): LocalFormLoader | RemoteJsonFormLoader;
|
|
158
|
+
}
|
|
159
|
+
declare class Form extends ParsedElement {
|
|
160
|
+
form: any;
|
|
161
|
+
render(): void;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @param {HTMLElement} [submitter]
|
|
165
|
+
* @returns
|
|
166
|
+
*/
|
|
167
|
+
submit(submitter?: HTMLElement): Promise<void>;
|
|
168
|
+
reset(): void;
|
|
169
|
+
spinner(spin: any): void;
|
|
170
|
+
set values(vs: {});
|
|
171
|
+
get values(): {};
|
|
172
|
+
set errors(es: any);
|
|
173
|
+
}
|
|
174
|
+
declare class Input extends ParsedElement {
|
|
175
|
+
internals: ElementInternals;
|
|
176
|
+
static observed: string[];
|
|
177
|
+
static slots: boolean;
|
|
178
|
+
static template: string;
|
|
179
|
+
static formAssociated: boolean;
|
|
180
|
+
_input: any;
|
|
181
|
+
_fieldError: any;
|
|
182
|
+
constructor();
|
|
183
|
+
_type(): string;
|
|
184
|
+
_fragment(type: any, slots: any): any;
|
|
185
|
+
render({ slots, observed, disabled, skipObservedSetup }: {
|
|
186
|
+
disabled: any;
|
|
187
|
+
observed: any;
|
|
188
|
+
skipObservedSetup: any;
|
|
189
|
+
slots: any;
|
|
190
|
+
}): void;
|
|
191
|
+
get value(): any;
|
|
192
|
+
set value(value: any);
|
|
193
|
+
get readonly(): any;
|
|
194
|
+
set readonly(v: any);
|
|
195
|
+
get disabled(): any;
|
|
196
|
+
set disabled(d: any);
|
|
197
|
+
get required(): boolean;
|
|
198
|
+
set required(d: boolean);
|
|
199
|
+
focus(options: any): void;
|
|
200
|
+
setCustomValidity(error: any): void;
|
|
201
|
+
formResetCallback(): void;
|
|
202
|
+
}
|
|
203
|
+
declare class LocalDate extends ParsedElement {
|
|
204
|
+
render(): void;
|
|
205
|
+
}
|
|
206
|
+
declare class Instant extends ParsedElement {
|
|
207
|
+
render(): void;
|
|
208
|
+
static isoToLocal(iso: any): string;
|
|
209
|
+
}
|
|
210
|
+
declare class InputLocalDate extends Input {
|
|
211
|
+
#private;
|
|
212
|
+
static observed: string[];
|
|
213
|
+
_type(): string;
|
|
214
|
+
render(conf: any): void;
|
|
215
|
+
get min(): any;
|
|
216
|
+
set min(v: any);
|
|
217
|
+
get max(): any;
|
|
218
|
+
set max(v: any);
|
|
219
|
+
get step(): any;
|
|
220
|
+
set step(v: any);
|
|
221
|
+
}
|
|
222
|
+
declare class InputLocalTime extends InputLocalDate {
|
|
223
|
+
_type(): string;
|
|
224
|
+
}
|
|
225
|
+
declare class InputInstant extends Input {
|
|
226
|
+
static observed: string[];
|
|
227
|
+
_type(): string;
|
|
228
|
+
render(conf: any): void;
|
|
229
|
+
get value(): string | null;
|
|
230
|
+
set value(v: string | null);
|
|
231
|
+
get min(): string | null;
|
|
232
|
+
set min(v: string | null);
|
|
233
|
+
get max(): string | null;
|
|
234
|
+
set max(v: string | null);
|
|
235
|
+
get step(): any;
|
|
236
|
+
set step(v: any);
|
|
237
|
+
}
|
|
238
|
+
declare class InputFile extends Input {
|
|
239
|
+
#private;
|
|
240
|
+
static l10n: {
|
|
241
|
+
en: {
|
|
242
|
+
dropzonelabel: string;
|
|
243
|
+
unaccepptablefiletype: string;
|
|
244
|
+
maxfilesizeexceeded: string;
|
|
245
|
+
maxtotalsizeexceeded: string;
|
|
246
|
+
maxfilesexceeded: string;
|
|
247
|
+
};
|
|
248
|
+
it: {
|
|
249
|
+
dropzonelabel: string;
|
|
250
|
+
unaccepptablefiletype: string;
|
|
251
|
+
maxfilesizeexceeded: string;
|
|
252
|
+
maxtotalsizeexceeded: string;
|
|
253
|
+
maxfilesexceeded: string;
|
|
254
|
+
};
|
|
255
|
+
es: {
|
|
256
|
+
dropzonelabel: string;
|
|
257
|
+
unaccepptablefiletype: string;
|
|
258
|
+
maxfilesizeexceeded: string;
|
|
259
|
+
maxtotalsizeexceeded: string;
|
|
260
|
+
maxfilesexceeded: string;
|
|
261
|
+
};
|
|
262
|
+
fr: {
|
|
263
|
+
dropzonelabel: string;
|
|
264
|
+
unaccepptablefiletype: string;
|
|
265
|
+
maxfilesizeexceeded: string;
|
|
266
|
+
maxtotalsizeexceeded: string;
|
|
267
|
+
maxfilesexceeded: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
static observed: string[];
|
|
271
|
+
_type(): string;
|
|
272
|
+
static template: string;
|
|
273
|
+
static templates: {
|
|
274
|
+
items: string;
|
|
275
|
+
warning: string;
|
|
276
|
+
};
|
|
277
|
+
render(conf: any): void;
|
|
278
|
+
warning(key: any, args: any): void;
|
|
279
|
+
get accept(): any;
|
|
280
|
+
set accept(vs: any);
|
|
281
|
+
get multiple(): any;
|
|
282
|
+
set multiple(v: any);
|
|
283
|
+
get files(): any;
|
|
284
|
+
set files(vs: any);
|
|
285
|
+
get file(): any;
|
|
286
|
+
set file(v: any);
|
|
287
|
+
get value(): any;
|
|
288
|
+
set value(v: any);
|
|
289
|
+
get totalsize(): any;
|
|
290
|
+
get maxfiles(): any;
|
|
291
|
+
set maxfiles(v: any);
|
|
292
|
+
get maxfilesize(): any;
|
|
293
|
+
set maxfilesize(v: any);
|
|
294
|
+
get maxtotalsize(): any;
|
|
295
|
+
set maxtotalsize(v: any);
|
|
296
|
+
get itemlist(): any;
|
|
297
|
+
set itemlist(v: any);
|
|
298
|
+
get dropzone(): any;
|
|
299
|
+
set dropzone(v: any);
|
|
300
|
+
}
|
|
301
|
+
declare class RemoteLoader {
|
|
302
|
+
#private;
|
|
303
|
+
constructor({ http, url, method, responseMapper, prefetch, revision }: {
|
|
304
|
+
http: any;
|
|
305
|
+
method: any;
|
|
306
|
+
prefetch: any;
|
|
307
|
+
responseMapper: any;
|
|
308
|
+
revision: any;
|
|
309
|
+
url: any;
|
|
310
|
+
});
|
|
311
|
+
prefetch(): Promise<void>;
|
|
312
|
+
exact(...keys: any[]): Promise<any>;
|
|
313
|
+
load(needle: any): Promise<any>;
|
|
314
|
+
reconfigureUrl(url: any): Promise<void>;
|
|
315
|
+
}
|
|
316
|
+
declare class PartialRemoteLoader {
|
|
317
|
+
#private;
|
|
318
|
+
constructor({ http, url, method, responseMapper }: {
|
|
319
|
+
http: any;
|
|
320
|
+
method: any;
|
|
321
|
+
responseMapper: any;
|
|
322
|
+
url: any;
|
|
323
|
+
});
|
|
324
|
+
exact(...keys: any[]): Promise<any>;
|
|
325
|
+
load(needle: any): Promise<any>;
|
|
326
|
+
}
|
|
327
|
+
declare class InMemoryLoader {
|
|
328
|
+
#private;
|
|
329
|
+
constructor(data: any);
|
|
330
|
+
update(data: any): void;
|
|
331
|
+
exact(...keys: any[]): any;
|
|
332
|
+
load(needle: any): any;
|
|
333
|
+
}
|
|
334
|
+
declare class SelectLoader {
|
|
335
|
+
#private;
|
|
336
|
+
static create(el: any, conf: any): InMemoryLoader | PartialRemoteLoader | RemoteLoader;
|
|
337
|
+
}
|
|
338
|
+
declare class Dropdown extends ParsedElement {
|
|
339
|
+
#private;
|
|
340
|
+
static slots: boolean;
|
|
341
|
+
static template: string;
|
|
342
|
+
static templates: {
|
|
343
|
+
options: string;
|
|
344
|
+
};
|
|
345
|
+
render({ slots }: {
|
|
346
|
+
slots: any;
|
|
347
|
+
}): void;
|
|
348
|
+
acceptSelection(): void;
|
|
349
|
+
update(values: any): void;
|
|
350
|
+
hide(): void;
|
|
351
|
+
get shown(): boolean;
|
|
352
|
+
show(loader: any): Promise<void>;
|
|
353
|
+
moveOrShow(forward: any, loader: any): Promise<void>;
|
|
354
|
+
}
|
|
355
|
+
declare class Select extends ParsedElement {
|
|
356
|
+
#private;
|
|
357
|
+
static observed: string[];
|
|
358
|
+
static slots: boolean;
|
|
359
|
+
static template: string;
|
|
360
|
+
static templates: {
|
|
361
|
+
items: string;
|
|
362
|
+
};
|
|
363
|
+
static formAssociated: boolean;
|
|
364
|
+
internals: ElementInternals;
|
|
365
|
+
constructor();
|
|
366
|
+
render({ slots, observed, disabled }: {
|
|
367
|
+
disabled: any;
|
|
368
|
+
observed: any;
|
|
369
|
+
slots: any;
|
|
370
|
+
}): Promise<void>;
|
|
371
|
+
withLoader(fn: any): Promise<any>;
|
|
372
|
+
set value(vs: any);
|
|
373
|
+
get value(): any;
|
|
374
|
+
get entry(): [any, any][] | [any, any];
|
|
375
|
+
get disabled(): any;
|
|
376
|
+
set disabled(d: any);
|
|
377
|
+
get readonly(): any;
|
|
378
|
+
set readonly(v: any);
|
|
379
|
+
get required(): boolean;
|
|
380
|
+
set required(d: boolean);
|
|
381
|
+
get itemlist(): any;
|
|
382
|
+
set itemlist(v: any);
|
|
383
|
+
focus(options: any): void;
|
|
384
|
+
setCustomValidity(error: any): void;
|
|
385
|
+
}
|
|
386
|
+
declare class RadioGroup extends ParsedElement {
|
|
387
|
+
#private;
|
|
388
|
+
internals: ElementInternals;
|
|
389
|
+
static observed: string[];
|
|
390
|
+
static slots: boolean;
|
|
391
|
+
static template: string;
|
|
392
|
+
static formAssociated: boolean;
|
|
393
|
+
constructor();
|
|
394
|
+
render({ slots, observed, disabled }: {
|
|
395
|
+
disabled: any;
|
|
396
|
+
observed: any;
|
|
397
|
+
slots: any;
|
|
398
|
+
}): void;
|
|
399
|
+
get value(): string | boolean | null;
|
|
400
|
+
set value(value: string | boolean | null);
|
|
401
|
+
get readonly(): any;
|
|
402
|
+
set readonly(v: any);
|
|
403
|
+
get disabled(): any;
|
|
404
|
+
set disabled(d: any);
|
|
405
|
+
get required(): boolean;
|
|
406
|
+
set required(d: boolean);
|
|
407
|
+
focus(options: any): void;
|
|
408
|
+
setCustomValidity(error: any): void;
|
|
409
|
+
}
|
|
410
|
+
declare class Checkbox extends ParsedElement {
|
|
411
|
+
#private;
|
|
412
|
+
internals: ElementInternals;
|
|
413
|
+
static observed: string[];
|
|
414
|
+
static slots: boolean;
|
|
415
|
+
static template: string;
|
|
416
|
+
static formAssociated: boolean;
|
|
417
|
+
constructor();
|
|
418
|
+
render({ slots, observed, disabled }: {
|
|
419
|
+
disabled: any;
|
|
420
|
+
observed: any;
|
|
421
|
+
slots: any;
|
|
422
|
+
}): void;
|
|
423
|
+
get value(): any;
|
|
424
|
+
set value(value: any);
|
|
425
|
+
get readonly(): any;
|
|
426
|
+
set readonly(v: any);
|
|
427
|
+
get disabled(): any;
|
|
428
|
+
set disabled(d: any);
|
|
429
|
+
get required(): boolean;
|
|
430
|
+
set required(d: boolean);
|
|
431
|
+
focus(options: any): void;
|
|
432
|
+
setCustomValidity(error: any): void;
|
|
433
|
+
}
|
|
434
|
+
declare class Spinner extends ParsedElement {
|
|
435
|
+
static slots: boolean;
|
|
436
|
+
static template: string;
|
|
437
|
+
render({ slots }: {
|
|
438
|
+
slots: any;
|
|
439
|
+
}): void;
|
|
440
|
+
}
|
|
441
|
+
declare class SortButton extends ParsedElement {
|
|
442
|
+
#private;
|
|
443
|
+
static observed: string[];
|
|
444
|
+
render(): void;
|
|
445
|
+
get order(): any;
|
|
446
|
+
set order(value: any);
|
|
447
|
+
}
|
|
448
|
+
declare class Pagination extends ParsedElement {
|
|
449
|
+
#private;
|
|
450
|
+
static observed: string[];
|
|
451
|
+
static l10n: {
|
|
452
|
+
en: {
|
|
453
|
+
showing: string;
|
|
454
|
+
navigation: string;
|
|
455
|
+
previous: string;
|
|
456
|
+
next: string;
|
|
457
|
+
};
|
|
458
|
+
it: {
|
|
459
|
+
showing: string;
|
|
460
|
+
navigation: string;
|
|
461
|
+
previous: string;
|
|
462
|
+
next: string;
|
|
463
|
+
};
|
|
464
|
+
es: {
|
|
465
|
+
showing: string;
|
|
466
|
+
navigation: string;
|
|
467
|
+
previous: string;
|
|
468
|
+
next: string;
|
|
469
|
+
};
|
|
470
|
+
fr: {
|
|
471
|
+
showing: string;
|
|
472
|
+
navigation: string;
|
|
473
|
+
previous: string;
|
|
474
|
+
next: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
static config: {
|
|
478
|
+
prevIcon: string;
|
|
479
|
+
nextIcon: string;
|
|
480
|
+
reloadIcon: string;
|
|
481
|
+
};
|
|
482
|
+
static template: string;
|
|
483
|
+
render({ observed }: {
|
|
484
|
+
observed: any;
|
|
485
|
+
}): void;
|
|
486
|
+
update(current: any, total: any): void;
|
|
487
|
+
get total(): number;
|
|
488
|
+
set total(value: number);
|
|
489
|
+
get current(): number;
|
|
490
|
+
set current(value: number);
|
|
491
|
+
}
|
|
492
|
+
declare class TableSchemaParser {
|
|
493
|
+
static parse(nodeOrFragment: any, template: any): {
|
|
494
|
+
headersTemplate: any;
|
|
495
|
+
rowsTemplate: any;
|
|
496
|
+
sort: {
|
|
497
|
+
sorter: string | null;
|
|
498
|
+
order: string | null;
|
|
499
|
+
};
|
|
500
|
+
length: number;
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
declare class Table extends ParsedElement {
|
|
504
|
+
#private;
|
|
505
|
+
static slots: boolean;
|
|
506
|
+
static l10n: {
|
|
507
|
+
en: {
|
|
508
|
+
initial: string;
|
|
509
|
+
error: string;
|
|
510
|
+
nodata: string;
|
|
511
|
+
};
|
|
512
|
+
it: {
|
|
513
|
+
initial: string;
|
|
514
|
+
error: string;
|
|
515
|
+
nodata: string;
|
|
516
|
+
};
|
|
517
|
+
es: {
|
|
518
|
+
initial: string;
|
|
519
|
+
error: string;
|
|
520
|
+
nodata: string;
|
|
521
|
+
};
|
|
522
|
+
fr: {
|
|
523
|
+
initial: string;
|
|
524
|
+
error: string;
|
|
525
|
+
nodata: string;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
static config: {
|
|
529
|
+
searchIcon: string;
|
|
530
|
+
};
|
|
531
|
+
static template: string;
|
|
532
|
+
static templates: {
|
|
533
|
+
row: string;
|
|
534
|
+
};
|
|
535
|
+
render({ slots, observed }: {
|
|
536
|
+
observed: any;
|
|
537
|
+
slots: any;
|
|
538
|
+
}): Promise<void>;
|
|
539
|
+
reload(): Promise<void>;
|
|
540
|
+
load(pageRequest: any, sortRequest: any, filterRequest: any): Promise<void>;
|
|
541
|
+
withLoader(fn: any): Promise<any>;
|
|
542
|
+
resetWithFilter(filterRequest: any): Promise<void>;
|
|
543
|
+
}
|
|
544
|
+
declare class InstantFilter extends Input {
|
|
545
|
+
#private;
|
|
546
|
+
static observed: string[];
|
|
547
|
+
static template: string;
|
|
548
|
+
render(conf: any): void;
|
|
549
|
+
get value(): any[] | undefined;
|
|
550
|
+
set value(v: any[] | undefined);
|
|
551
|
+
set readonly(v: any);
|
|
552
|
+
set disabled(d: any);
|
|
553
|
+
}
|
|
554
|
+
declare class LocalDateFilter extends Input {
|
|
555
|
+
#private;
|
|
556
|
+
static observed: string[];
|
|
557
|
+
static template: string;
|
|
558
|
+
render(conf: any): void;
|
|
559
|
+
get value(): any[] | undefined;
|
|
560
|
+
set value(v: any[] | undefined);
|
|
561
|
+
set readonly(v: any);
|
|
562
|
+
set disabled(d: any);
|
|
563
|
+
}
|
|
564
|
+
declare class TextFilter extends Input {
|
|
565
|
+
#private;
|
|
566
|
+
static observed: string[];
|
|
567
|
+
static template: string;
|
|
568
|
+
render(conf: any): void;
|
|
569
|
+
get value(): any[] | undefined;
|
|
570
|
+
set value(v: any[] | undefined);
|
|
571
|
+
}
|
|
572
|
+
declare class LocalizationModule {
|
|
573
|
+
static t(k: any, ...args: any[]): any;
|
|
574
|
+
static tl(k: any, args?: any[]): any;
|
|
575
|
+
}
|
|
576
|
+
declare class Plugin {
|
|
577
|
+
configure(registry: any): void;
|
|
578
|
+
}
|
|
579
|
+
export { AsyncEvents, Bindings, Checkbox, Dropdown, Form, FormLoader, Input, InputFile, InputInstant, InputLocalDate, InputLocalTime, Instant, InstantFilter, LocalDate, LocalDateFilter, LocalStorage, LocalizationModule, Pagination, Plugin, RadioGroup, Select, SelectLoader, SessionStorage, SortButton, Spinner, Table, TableSchemaParser, TextFilter, Timing, VersionedLocalStorage, VersionedSessionStorage };
|
|
580
|
+
|
|
581
|
+
export as namespace ful;
|