@optionfactory/fml 8.0.3 → 9.0.0-rc10

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 (50) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +87 -0
  3. package/dist/client-errors.iife.js +30 -9
  4. package/dist/client-errors.iife.js.map +1 -1
  5. package/dist/client-errors.iife.min.js +1 -1
  6. package/dist/client-errors.iife.min.js.map +1 -1
  7. package/dist/custom-elements.json +1622 -415
  8. package/dist/fml.css +21 -10
  9. package/dist/fml.css.map +1 -1
  10. package/dist/fml.d.mts +3 -1322
  11. package/dist/fml.iife.js +5767 -2313
  12. package/dist/fml.iife.js.map +1 -1
  13. package/dist/fml.iife.min.js +1 -1
  14. package/dist/fml.iife.min.js.map +1 -1
  15. package/dist/fml.min.mjs +1 -1
  16. package/dist/fml.min.mjs.map +1 -1
  17. package/dist/fml.mjs +6 -8737
  18. package/dist/fml.mjs.map +1 -1
  19. package/dist/ftl.d.mts +430 -92
  20. package/dist/ftl.iife.js +1314 -809
  21. package/dist/ftl.iife.js.map +1 -1
  22. package/dist/ftl.iife.min.js +1 -1
  23. package/dist/ftl.iife.min.js.map +1 -1
  24. package/dist/ftl.min.mjs +1 -1
  25. package/dist/ftl.min.mjs.map +1 -1
  26. package/dist/ftl.mjs +1313 -810
  27. package/dist/ftl.mjs.map +1 -1
  28. package/dist/ful.css +21 -10
  29. package/dist/ful.css.map +1 -1
  30. package/dist/ful.d.mts +973 -252
  31. package/dist/ful.iife.js +4176 -1416
  32. package/dist/ful.iife.js.map +1 -1
  33. package/dist/ful.iife.min.js +1 -1
  34. package/dist/ful.iife.min.js.map +1 -1
  35. package/dist/ful.min.mjs +1 -1
  36. package/dist/ful.min.mjs.map +1 -1
  37. package/dist/ful.mjs +4163 -1416
  38. package/dist/ful.mjs.map +1 -1
  39. package/dist/httpc.d.mts +114 -19
  40. package/dist/httpc.iife.js +253 -83
  41. package/dist/httpc.iife.js.map +1 -1
  42. package/dist/httpc.iife.min.js +1 -1
  43. package/dist/httpc.iife.min.js.map +1 -1
  44. package/dist/httpc.min.mjs +1 -1
  45. package/dist/httpc.min.mjs.map +1 -1
  46. package/dist/httpc.mjs +250 -84
  47. package/dist/httpc.mjs.map +1 -1
  48. package/dist/vscode.html-custom-data.json +660 -58
  49. package/dist/web-types.json +1577 -354
  50. package/package.json +16 -8
package/dist/fml.d.mts CHANGED
@@ -1,1324 +1,5 @@
1
- declare class Expressions {
2
- #private;
3
- static MODE_EXPRESSION: symbol;
4
- static MODE_TEMPLATED: symbol;
5
- /**
6
- * Parses an expression.
7
- * @param {string} expression
8
- * @param {(typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED)?} [mode]
9
- * @returns the ast
10
- */
11
- static parse(expression: string, mode?: (typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED) | null): any;
12
- /**
13
- * Evaluates an expression.
14
- * @param {{[k: string]: any } | null | undefined } modules
15
- * @param {any[]} dataStack
16
- * @param {any} ast
17
- * @param {(typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED)?} [mode]
18
- * @returns the result
19
- */
20
- static evaluate(modules: {
21
- [k: string]: any;
22
- } | null | undefined, dataStack: any[], ast: any, mode?: (typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED) | null): any;
23
- /**
24
- * Parses and evaluates an expression.
25
- * @param {{ [x: string]: any; } | null | undefined} modules
26
- * @param {any[]} dataStack
27
- * @param {string} expression
28
- * @param {(typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED)?} [mode]
29
- * @returns the result
30
- */
31
- static interpret(modules: {
32
- [x: string]: any;
33
- } | null | undefined, dataStack: any[], expression: string, mode?: (typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED) | null): any;
34
- }
35
- declare class ExpressionEvaluator {
36
- #private;
37
- constructor(modules: any, dataStack: any);
38
- withModule(name: any, value: any): ExpressionEvaluator;
39
- withOverlay(...data: any[]): ExpressionEvaluator;
40
- evaluate(expression: any, mode: any): any;
41
- evaluateExpression(expression: any): any;
42
- evaluateTemplated(expression: any): any;
43
- }
44
- declare class Fragments {
45
- /**
46
- * Creates a DocumentFragment from an string.
47
- * @param {...string} html
48
- * @returns {DocumentFragment} the fragment
49
- */
50
- static fromHtml(...html: string[]): DocumentFragment;
51
- /**
52
- * Creates a string representation (HTML) of a DocumentFragment.
53
- * @param {DocumentFragment} fragment
54
- * @returns {string} the html
55
- */
56
- static toHtml(fragment: DocumentFragment): string;
57
- /**
58
- * Checks if a fragment contains only blank text nodes
59
- * @param {DocumentFragment} fragment
60
- * @returns {boolean} true if the fragment is blank
61
- */
62
- static isBlank(fragment: DocumentFragment): boolean;
63
- /**
64
- * Creates a DocumentFragment from nodes.
65
- * @param {...Node} nodes
66
- * @returns {DocumentFragment} the fragment
67
- */
68
- static from(...nodes: Node[]): DocumentFragment;
69
- /**
70
- * Creates a DocumentFragment from childNodes of an element.
71
- * @param {Node} el
72
- * @returns {DocumentFragment} the fragment
73
- */
74
- static fromChildNodes(el: Node): DocumentFragment;
75
- }
76
- declare class Attributes {
77
- static id: number;
78
- /**
79
- * Creates a unique id with the given prefix.
80
- * @param {string} prefix
81
- * @returns
82
- */
83
- static uid(prefix: string): string;
84
- /**
85
- * Sets an attribute if not present.
86
- * @param {Element} el
87
- * @param {string} k
88
- * @param {string} v
89
- * @returns
90
- */
91
- static defaultValue(el: Element, k: string, v: string): string | null;
92
- /**
93
- * Forwards prefixed attributes from an element to another (removing the prefix).
94
- * @param {string} prefix
95
- * @param {Element} from
96
- * @param {Element} to
97
- */
98
- static forward(prefix: string, from: Element, to: Element): void;
99
- /**
100
- * Changes the presence of an attribute.
101
- * @param {Element} el
102
- * @param {string} attr
103
- * @param {boolean} value
104
- */
105
- static toggle(el: Element, attr: string, value: boolean): void;
106
- /**
107
- * Changes the presence of an attribute based on its current state.
108
- * @param {Element} el
109
- * @param {string} attr
110
- */
111
- static flip(el: Element, attr: string): void;
112
- /**
113
- * Sets the value of an attribute. nullish values remove the attribute.
114
- * @param {Element} el
115
- * @param {string} attr
116
- * @param {string | null | undefined} value
117
- */
118
- static set(el: Element, attr: string, value: string | null | undefined): void;
119
- }
120
- declare class LightSlots {
121
- /**
122
- * Extracts light slots from an element. For non default slots in a template tag, the content is extracted.
123
- * @param {Element} el
124
- * @returns the slots
125
- */
126
- static from(el: Element): {
127
- default: DocumentFragment;
128
- };
129
- static slotFromNode(el: any): any;
130
- }
131
- declare class Nodes {
132
- /**
133
- * Checks if an element is already parsed.
134
- * @param {Element} el
135
- * @returns
136
- */
137
- static isParsed(el: Element): boolean;
138
- static waitParsed(el: any): Promise<any>;
139
- /**
140
- * Returns the first child of the element element (if exists) matching the selector.
141
- * @param {Element} el
142
- * @param {string} selector
143
- * @returns
144
- */
145
- static queryChildren(el: Element, selector: string): Element | null;
146
- /**
147
- * Returns all children of the element matching the selector.
148
- * @param {Element} el
149
- * @param {string} selector
150
- * @returns
151
- */
152
- static queryChildrenAll(el: Element, selector: string): Element[];
153
- }
154
- declare class Template {
155
- #private;
156
- /**
157
- * Creates a template from a string.
158
- * @param {string} html
159
- * @param {{ [k: string] : any }?} [modules]
160
- * @param {...*} data
161
- * @returns the template
162
- */
163
- static fromHtml(html: string, modules?: {
164
- [k: string]: any;
165
- } | null, ...data: any[]): Template;
166
- /**
167
- * Creates a template from the content of the first template element matching the selector.
168
- * @param {string} selector for an HTMLTemplateElement
169
- * @param {{ [k: string] : any }?} [modules]
170
- * @param {...*} data
171
- * @returns the template
172
- */
173
- static fromSelector(selector: string, modules?: {
174
- [k: string]: any;
175
- } | null, ...data: any[]): Template;
176
- /**
177
- * Creates a template from the content of an HTMLTemplateElement.
178
- * @param {HTMLTemplateElement} templateEl
179
- * @param {{ [k: string] : any }?} [modules]
180
- * @param {...*} data
181
- * @returns the template
182
- */
183
- static fromTemplate(templateEl: HTMLTemplateElement, modules?: {
184
- [k: string]: any;
185
- } | null, ...data: any[]): Template;
186
- /**
187
- * Creates a template from a DocumentFragment.
188
- * @param {DocumentFragment} fragment
189
- * @param { { [k: string] : any }? } [modules]
190
- * @param {...*} data
191
- * @returns the template
192
- */
193
- static fromFragment(fragment: DocumentFragment, modules?: {
194
- [k: string]: any;
195
- } | null, ...data: any[]): Template;
196
- /**
197
- * Creates a template.
198
- * @param {DocumentFragment} fragment
199
- * @param {{ [x: string]: any; } | null | undefined} modules
200
- * @param {any[]} dataStack
201
- */
202
- constructor(fragment: DocumentFragment, modules: {
203
- [x: string]: any;
204
- } | null | undefined, dataStack: any[]);
205
- /**
206
- * Creates a new Template replacing the modules and dataStack from a context.
207
- * @param {{modules: { [x: string]: any; } | null | undefined, data: any[]}} context
208
- */
209
- withContext({ modules, data }: {
210
- modules: {
211
- [x: string]: any;
212
- } | null | undefined;
213
- data: any[];
214
- }): Template;
215
- /**
216
- * Creates a new Template replacing the modules and dataStack from a registry.
217
- * @param any registry
218
- */
219
- withContextFrom(registry: any): Template;
220
- /**
221
- * Creates a new Template replacing the fragment.
222
- * @param {DocumentFragment} fragment
223
- */
224
- withFragment(fragment: DocumentFragment): Template;
225
- /**
226
- * Creates a new Template with a new module added.
227
- * @param {string?} name
228
- * @param {{[k: string]: any}} value
229
- */
230
- withModule(name: string | null, value: {
231
- [k: string]: any;
232
- }): Template;
233
- /**
234
- * Creates a new Template replacing the modules.
235
- * @param {{ [x: string]: any; }?} modules
236
- */
237
- withModules(modules: {
238
- [x: string]: any;
239
- } | null): Template;
240
- /**
241
- * Creates a new Template replacing the data stack.
242
- * @param {any[]} dataStack the dataStack
243
- */
244
- withData(dataStack: any[]): Template;
245
- /**
246
- * Creates a new Template with new a data overlay added to the stack.
247
- * @param {...*} data
248
- */
249
- withOverlay(...data: any[]): Template;
250
- /**
251
- * Evaluates an expression using the configured modules and data.
252
- * @param {string} expression
253
- * @param {(typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED)?} [mode]
254
- * @param {...*} data
255
- * @returns the evaluated expression result
256
- */
257
- evaluate(expression: string, mode?: (typeof Expressions.MODE_EXPRESSION | typeof Expressions.MODE_TEMPLATED) | null, ...data: any[]): any;
258
- /**
259
- * Returns an expression evaluator with bound modules and dataStack.
260
- */
261
- evaluator(): ExpressionEvaluator;
262
- /**
263
- * Renders the template.
264
- * @returns a DocumentFragment
265
- */
266
- render(): DocumentFragment;
267
- /**
268
- * Renders this template on the Element (replacing children).
269
- * @param {Element} el
270
- */
271
- renderTo(el: Element): void;
272
- /**
273
- * Renders this template appending the resulting fragment to the Element.
274
- * @param {Element} el
275
- */
276
- appendTo(el: Element): void;
277
- /**
278
- * Renders this template appending the resulting fragment to the first Element maching the selector, if exists.
279
- * @param {string} selector
280
- */
281
- renderToSelector(selector: string): void;
282
- /**
283
- * Renders this template appending the resulting fragment to the Element maching the selector, if exists.
284
- * @param {string} selector
285
- */
286
- appendToSelector(selector: string): void;
287
- }
288
- declare class RenderError extends Error {
289
- #private;
290
- node: any;
291
- constructor(message: any, nodeOrFragment: any, cause: any);
292
- static stringify(nodeOrFragment: any): string;
293
- }
294
- declare class Registry {
295
- #private;
296
- defineElement(tag: any, klass: any): this;
297
- defineModule(name: any, value: any): this;
298
- defineModules(ms: any): this;
299
- defineComponent(name: any, value: any): this;
300
- defineData(...data: any[]): this;
301
- defineOverlay(...data: any[]): this;
302
- defineMapper(k: any, v: any): this;
303
- plugin(p: any): this;
304
- configure(): this;
305
- get upgrades(): MapIterator<[any, any]>;
306
- context(): {
307
- modules: any;
308
- data: any[];
309
- };
310
- evaluator(): ExpressionEvaluator;
311
- component(name: any): any;
312
- }
313
- declare const registry: Registry;
314
- declare class Templates {
315
- static fromHtml(html: any): Template;
316
- static fromSelector(selector: any): Template;
317
- static fromTemplate(templateEl: any): Template;
318
- static fromFragment(fragment: any): Template;
319
- }
320
- declare class Rendering {
321
- static waitFor(el: any): Promise<void>;
322
- static waitForChildren(el: any): Promise<void>;
323
- }
324
- export type Mapper = {
325
- unmarshal: (val: string | null | undefined, name: string, el: Element) => any;
326
- marshal: (val: any, name: string, el: Element) => string | null;
327
- };
328
- /**
329
- * An attribute Mapper.
330
- *
331
- * @typedef {object} Mapper
332
- * @property {(val: string|null|undefined, name: string, el: Element) => any} unmarshal
333
- * @property {(val: any, name: string, el: Element) => string|null} marshal
334
- */
335
- declare class ParsedElement extends HTMLElement {
336
- #private;
337
- static BITS: {
338
- enqueue: (el: any) => void;
339
- SLOTS: boolean;
340
- OBSERVED: never[];
341
- /** @type {Record<string, Mapper>} */
342
- ATTR_TO_MAPPER: Record<string, Mapper>;
343
- TEMPLATES: {};
344
- };
345
- static get observedAttributes(): never[];
346
- unmarshal(attr: any, str: any): any;
347
- marshal(attr: any, value: any): string | null;
348
- /**
349
- * @param {string} [name] - The name of the template target, defaults to 'default'
350
- */
351
- template(name?: string): any;
352
- connectedCallback(): void;
353
- attributeChangedCallback(attr: any, oldValue: any, newValue: any): void;
354
- /**
355
- * The disabled protocol follows the semantics of a native form control:
356
- *
357
- * - the `disabled` attribute on the host is the field's own claim, and nothing
358
- * but its author ever writes or removes it, in markup or through the property.
359
- * The framework never claims on the form's behalf, so there is nothing to
360
- * unclaim and nothing to lose: a field declared disabled inside a disabled
361
- * `<fieldset>` stays disabled when the fieldset comes back, exactly like a
362
- * native input keeps its attribute.
363
- * - the effective state is the claim OR a disabled fieldset ancestry, which the
364
- * platform maintains on its own: `:disabled` matches both, a disabled field is
365
- * left out of the submitted values, and the inner native controls are reached
366
- * by the ancestry as descendants of the fieldset.
367
- * - the `disabled` property reflects the claim only, like a native input's: a
368
- * field disabled by its ancestry reads `false` while `matches(':disabled')`
369
- * tells the effective state. Un-claiming inside a disabled fieldset cannot
370
- * enable the field.
371
- * - the inner controls mirror the claim and nothing else: the ancestry state is
372
- * never written anywhere, so it can never go stale, and the browser composes
373
- * the two on its own when it disables and re-enables a fieldset's descendants.
374
- *
375
- * Because of this, formDisabledCallback carries nothing the framework needs to
376
- * apply, and the protocol does not define it.
377
- */
378
- upgrade(): Promise<void>;
379
- render(c: any): void;
380
- reflect(fn: any): void;
381
- reflectTo(attr: any, value: any): void;
382
- }
383
- export type Problem = {
384
- type: string;
385
- context: string | null;
386
- reason: string;
387
- details: any | null;
388
- };
389
- /**
390
- * @typedef {{ type: string; context: string?; reason: string; details: any?; }} Problem
391
- */
392
- declare class Failure extends Error {
393
- problems: Problem[];
394
- /**
395
- *
396
- * @param {string} message
397
- * @param {Problem[]} problems
398
- * @param {*} cause
399
- */
400
- constructor(message: string, problems: Problem[], cause: any);
401
- dropping(prefix: any): Failure;
402
- static dropProblemsContext(problems: any, prefix: any): any;
403
- }
404
- declare class Base64 {
405
- static encode(arrayBuffer: any, dialect: any): string;
406
- static decode(str: any, dialect: any): ArrayBuffer;
407
- }
408
- declare namespace Base64 {
409
- var STANDARD: string;
410
- var URL_SAFE: string;
411
- }
412
- declare class Hex {
413
- static decode(hex: any): Uint8Array<ArrayBuffer>;
414
- static encode(bytes: any, upper: any): string;
415
- }
416
- declare class MediaType {
417
- #private;
418
- constructor(type: any, subtype: any);
419
- get normalized(): string;
420
- get type(): any;
421
- get subtype(): any;
422
- /**
423
- *
424
- * @param {string|null|undefined} v
425
- * @returns
426
- */
427
- static parse(v: string | null | undefined): MediaType;
428
- }
429
- export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
430
- export type HttpInterceptor = {
431
- intercept: (url: URL, init: RequestInit | undefined, chain: HttpInterceptorChain) => Promise<Response>;
432
- };
433
- /**
434
- * @typedef {Int8Array| Uint8Array| Uint8ClampedArray| Int16Array| Uint16Array| Int32Array| Uint32Array| Float32Array| Float64Array| BigInt64Array| BigUint64Array} TypedArray
435
- */
436
- /**
437
- * @typedef {object} HttpInterceptor
438
- * @property {(url: URL, init: RequestInit|undefined, chain: HttpInterceptorChain) => Promise<Response>} intercept
439
- */
440
- declare class HttpClientError extends Failure {
441
- status: number;
442
- /**
443
- * @param {string} message
444
- * @param {number} status
445
- * @param {{ type: string; context: string?; reason: string; details: any?; }[]} problems
446
- * @param {Error|undefined} [cause]
447
- */
448
- constructor(message: string, status: number, problems: {
449
- type: string;
450
- context: string | null;
451
- reason: string;
452
- details: any | null;
453
- }[], cause?: Error | undefined);
454
- dropping(prefix: any): HttpClientError;
455
- /**
456
- *
457
- * @param {string} type
458
- * @param {any} cause
459
- * @returns
460
- */
461
- static of(type: string, cause: any): HttpClientError;
462
- /**
463
- * Creates an HttpClientError from a Response.
464
- * @param {Response} response
465
- * @returns an HttpClientError
466
- */
467
- static fromResponse(response: Response): Promise<HttpClientError>;
468
- }
469
- declare class HttpClientBuilder {
470
- #private;
471
- constructor();
472
- withCsrfToken(): this;
473
- withRedirectOnUnauthorized(redirectUri: any): this;
474
- /**
475
- * @param {...HttpInterceptor} interceptors
476
- */
477
- withInterceptors(...interceptors: HttpInterceptor[]): this;
478
- build(): HttpClient;
479
- }
480
- declare class HttpInterceptorChain {
481
- #private;
482
- /**
483
- *
484
- * @param {HttpInterceptor[]} interceptors
485
- * @param {number} current
486
- */
487
- constructor(interceptors: HttpInterceptor[], current: number);
488
- /**
489
- *
490
- * @param {URL} url
491
- * @param {RequestInit} request
492
- * @returns {Promise<Response>} the response
493
- */
494
- proceed(url: URL, request: RequestInit): Promise<Response>;
495
- }
496
- declare class HttpClient {
497
- #private;
498
- /**
499
- * Creates a builder for an HttpClient.
500
- * @returns {HttpClientBuilder} the client builder
501
- */
502
- static builder(): HttpClientBuilder;
503
- /**
504
- * Creates an HttpClient.
505
- * @param {HttpInterceptor[]|undefined} interceptors - a list of interceptors to be registered for every request performed by the created client.
506
- */
507
- constructor(interceptors: HttpInterceptor[] | undefined);
508
- /**
509
- * Performs an HTTP exchange.
510
- * @async
511
- * @param {string} uri - the (possibly relative) request url
512
- * @param {RequestInit|undefined} options - fetch options
513
- * @param {HttpInterceptor[]|undefined} interceptors - the HttpInterceptors to be registered for this exchange.
514
- * @returns {Promise<Response>} the response
515
- */
516
- exchange(uri: string, options: RequestInit | undefined, interceptors: HttpInterceptor[] | undefined): Promise<Response>;
517
- /**
518
- * Creates a request builder.
519
- * @param {string} method - the HTTP method to be used
520
- * @param {string} uri - the (possibly relative) request url
521
- * @returns {HttpRequestBuilder} the request builder
522
- */
523
- request(method: string, uri: string): HttpRequestBuilder;
524
- /**
525
- * Creates a request builder.
526
- * @param {string} uri - the (possibly relative) request url
527
- * @returns {HttpRequestBuilder} the request builder
528
- */
529
- get(uri: string): HttpRequestBuilder;
530
- /**
531
- * Creates a request builder.
532
- * @param {string} uri - the (possibly relative) request url
533
- * @returns {HttpRequestBuilder} the request builder
534
- */
535
- head(uri: string): HttpRequestBuilder;
536
- /**
537
- * Creates a request builder.
538
- * @param {string} uri - the (possibly relative) request url
539
- * @returns {HttpRequestBuilder} the request builder
540
- */
541
- post(uri: string): HttpRequestBuilder;
542
- /**
543
- * Creates a request builder.
544
- * @param {string} uri - the (possibly relative) request url
545
- * @returns {HttpRequestBuilder} the request builder
546
- */
547
- put(uri: string): HttpRequestBuilder;
548
- /**
549
- * Creates a request builder.
550
- * @param {string} uri - the (possibly relative) request url
551
- * @returns {HttpRequestBuilder} the request builder
552
- */
553
- patch(uri: string): HttpRequestBuilder;
554
- /**
555
- * Creates a request builder.
556
- * @param {string} uri - the (possibly relative) request url
557
- * @returns {HttpRequestBuilder} the request builder
558
- */
559
- delete(uri: string): HttpRequestBuilder;
560
- }
561
- declare class HttpRequestBuilder {
562
- #private;
563
- /**
564
- * Creates an HttpRequestBuilder.
565
- * @param {HttpClient} client
566
- * @param {string} method - the HTTP method to be used
567
- * @param {string} uri - the (possibly relative) request url
568
- * @returns {HttpRequestBuilder} the builder
569
- */
570
- static create(client: HttpClient, method: string, uri: string): HttpRequestBuilder;
571
- /**
572
- * Creates an HttpRequestBuilder.
573
- * @param {HttpClient} client
574
- * @param {string} method - the HTTP method to be used
575
- * @param {string} uri - the (possibly relative) request url
576
- * @param {URLSearchParams} params
577
- * @param {Headers} headers
578
- * @param {any} body
579
- * @param {Omit<RequestInit,"headers"|"method"|"body">} options
580
- * @param {HttpInterceptor[]} interceptors
581
- */
582
- constructor(client: HttpClient, method: string, uri: string, params: URLSearchParams, headers: Headers, body: any, options: Omit<RequestInit, "headers" | "method" | "body">, interceptors: HttpInterceptor[]);
583
- /**
584
- * Add all passed headers to the request, overriding existing ones if that key already exists. Null and undefined values cause the key to be removed.
585
- * @param {HeadersInit|Record<string,string|null|undefined>} hs
586
- * @returns {HttpRequestBuilder} this builder
587
- */
588
- headers(hs: HeadersInit | Record<string, string | null | undefined>): HttpRequestBuilder;
589
- /**
590
- * Adds an header to the request, overriding it if it already exists. Null and undefined values cause the key to be removed
591
- * @param {string} k
592
- * @param {string} v
593
- * @returns {HttpRequestBuilder} this builder
594
- */
595
- header(k: string, v: string): HttpRequestBuilder;
596
- /**
597
- * Add all query parameters to the request, overriding existing ones if that key already exists. Null and undefined values cause the key to be removed
598
- * @param {URLSearchParams|Record<string,string|null|undefined>|string[][]|string} ps
599
- * @returns {HttpRequestBuilder} this builder
600
- */
601
- params(ps: URLSearchParams | Record<string, string | null | undefined> | string[][] | string): HttpRequestBuilder;
602
- /**
603
- * Adds a query parameter to the request, overriding it if it already exists. Empty vs, or a single null or undefined value cause the key to be removed.
604
- * @param {string} k
605
- * @param {...string} vs
606
- * @returns {HttpRequestBuilder} this builder
607
- */
608
- param(k: string, ...vs: string[]): HttpRequestBuilder;
609
- /**
610
- * Sets the request body.
611
- * `Content-Type: multipart/form-data` header is automatically added by fetch when data is a FormData instance if not explicitly set.
612
- * `Content-Type: application/x-www-form-urlencoded` header is automatically added by fetch when data is an URLSearchParams instance if not explicitly set.
613
- * `Content-Type: text/plain` header is automatically added by fetch when data is a string instance if not explicitly set.
614
- * @param {string|ArrayBuffer|Blob|DataView|File|FormData|TypedArray|URLSearchParams|ReadableStream} data
615
- * @returns {HttpRequestBuilder} this builder
616
- */
617
- body(data: string | ArrayBuffer | Blob | DataView | File | FormData | TypedArray | URLSearchParams | ReadableStream): HttpRequestBuilder;
618
- /**
619
- * Sets the request body that will be serialized as json. Calling this method adds the `Content-Type application/json` header for the request.
620
- * @param {any} body - the body to be serialized as json
621
- * @returns {HttpRequestBuilder} this builder
622
- */
623
- json(body: any): HttpRequestBuilder;
624
- /**
625
- * Sets the request body as a FormData configured using the callback.
626
- * `Content-Type: multipart/form-data` header is automatically added by fetch if not explicitly set.
627
- * @param {(c: HttpMultipartRequestCustomizer) => void} callback
628
- */
629
- multipart(callback: (c: HttpMultipartRequestCustomizer) => void): this;
630
- /**
631
- * Sets a fetch options for the request.
632
- * @param {Omit<RequestInit,"headers"|"method"|"body">} kvs
633
- * @returns {HttpRequestBuilder} this builder
634
- */
635
- options(kvs: Omit<RequestInit, "headers" | "method" | "body">): HttpRequestBuilder;
636
- /**
637
- * Sets a fetch option for the request.
638
- * @param {keyof Omit<RequestInit,"headers"|"method"|"body">} k
639
- * @param {*} v
640
- * @returns {HttpRequestBuilder} this builder
641
- */
642
- option(k: keyof Omit<RequestInit, "headers" | "method" | "body">, v: any): HttpRequestBuilder;
643
- /**
644
- * Adds interceptors to the request.
645
- * @param {[HttpInterceptor]} is - the interceptor to be regisered
646
- * @returns {HttpRequestBuilder} this builder
647
- */
648
- interceptors(is: [HttpInterceptor]): HttpRequestBuilder;
649
- /**
650
- * Adds an interceptor to the request.
651
- * @param {HttpInterceptor} i - the interceptor to be regisered
652
- * @returns {HttpRequestBuilder} this builder
653
- */
654
- interceptor(i: HttpInterceptor): HttpRequestBuilder;
655
- /**
656
- * Performs an HTTP exchange using the configured client, request and interceptors.
657
- * @returns {Promise<Response>} the response
658
- */
659
- exchange(): Promise<Response>;
660
- /**
661
- * Performs an HTTP exchange using the configured client request, and interceptos throwing a failure when response status is not in the 200-299 range.
662
- * @returns {Promise<Response>} the response
663
- */
664
- fetch(): Promise<Response>;
665
- /**
666
- * Performs an HTTP exchange using the configured client request, and interceptos throwing a failure when response status is not in the 200-299 range.
667
- * @returns {Promise<string>} the response body, as text
668
- */
669
- fetchText(): Promise<string>;
670
- /**
671
- * Performs an HTTP exchange using the configured client request, and interceptos throwing a failure when response status is not in the 200-299 range.
672
- * @returns {Promise<any>} the response body, deserialized as JSON
673
- */
674
- fetchJson(): Promise<any>;
675
- /**
676
- * Performs an HTTP exchange using the configured client request, and interceptos throwing a failure when response status is not in the 200-299 range.
677
- * @returns {Promise<Blob>} the response body, as a Blob
678
- */
679
- fetchBlob(): Promise<Blob>;
680
- /**
681
- * Performs an HTTP exchange using the configured client request, and interceptos throwing a failure when response status is not in the 200-299 range.
682
- * @returns {Promise<ArrayBuffer>} the response body, as an ArrayBuffer
683
- */
684
- fetchArrayBuffer(): Promise<ArrayBuffer>;
685
- }
686
- declare class HttpMultipartRequestCustomizer {
687
- #private;
688
- /**
689
- *
690
- * @param {FormData} formData
691
- */
692
- constructor(formData: FormData);
693
- /**
694
- * Appends a value to the FormData.
695
- * @param {string} name
696
- * @param {*} value
697
- * @returns this builder
698
- */
699
- field(name: string, value: any): this;
700
- /**
701
- * Appends a Blob to the FormData.
702
- * If `filename` is omitted, FormData defaults are applied:
703
- * The default filename for Blob objects is "blob";
704
- * The default filename for File objects is the file's filename.
705
- * @param {string} name
706
- * @param {Blob} value
707
- * @param {string|undefined} filename
708
- * @returns this builder
709
- */
710
- blob(name: string, value: Blob, filename: string | undefined): this;
711
- /**
712
- * Appends multiple Blobs to the FormData with the same name.
713
- * The default filename for Blob objects is "blob";
714
- * The default filename for File objects is the file's filename.
715
- * @param {string} name
716
- * @param {Blob[]} values
717
- * @returns this builder
718
- */
719
- blobs(name: string, values: Blob[]): this;
720
- /**
721
- * Appends a JSON serialized blob to the FormData.
722
- * @param {string} name
723
- * @param {any} value
724
- * @param {string|undefined} filename
725
- * @returns this builder
726
- */
727
- json(name: string, value: any, filename: string | undefined): this;
728
- }
729
- declare class LocalStorage extends Storage {
730
- static save(k: any, v: any): void;
731
- static load(k: any): any;
732
- static remove(k: any): void;
733
- static pop(k: any): any;
734
- }
735
- declare class SessionStorage extends Storage {
736
- static save(k: any, v: any): void;
737
- static load(k: any): any;
738
- static remove(k: any): void;
739
- static pop(k: any): any;
740
- }
741
- declare class VersionedLocalStorage {
742
- static save(key: any, revision: any, data: any): void;
743
- static load(key: any, revision: any): any;
744
- }
745
- declare class VersionedSessionStorage {
746
- static save(key: any, revision: any, data: any): void;
747
- static load(key: any, revision: any): any;
748
- }
749
- export type AsyncExtension = {
750
- promises: Promise<any>[];
751
- };
752
- export type AsyncEvent = Event & {
753
- async?: AsyncExtension;
754
- };
755
- /**
756
- * @typedef {Object} AsyncExtension
757
- * @property {Promise<any>[]} promises
758
- * @typedef {Event & { async?: AsyncExtension }} AsyncEvent
759
- */
760
- declare class AsyncEvents {
761
- /**
762
- * Dispatches an event and handles asynchronous resolution based on the execution mode.
763
- * @param {HTMLElement} el - The target element dispatching the event.
764
- * @param {AsyncEvent} evt - The event instance.
765
- * @param {{mode?: 'broadcast' | 'pipeline' | 'delegate'}} [options] - Configuration options (defaults to 'broadcast').
766
- * @returns {Promise<any>} Resolves with an array of values for broadcasts, a single value for pipelines/delegates, or undefined.
767
- */
768
- static fireAsync(el: HTMLElement, evt: AsyncEvent, options?: {
769
- mode?: 'broadcast' | 'pipeline' | 'delegate';
770
- }): Promise<any>;
771
- /**
772
- * Registers an asynchronous event listener wrapper.
773
- * @param {HTMLElement} el - The target element.
774
- * @param {string} type - The event name/type.
775
- * @param {Function} fn - The async listener middleware function returning the execution result.
776
- * @param {AddEventListenerOptions} [options] - Native addEventListener options.
777
- * @returns {EventListener} The underlying proxy listener function needed for cleanup via asyncOff.
778
- */
779
- static asyncOn(el: HTMLElement, type: string, fn: Function, options?: AddEventListenerOptions): EventListener;
780
- /**
781
- * Unregisters an asynchronous event listener proxy.
782
- * @param {HTMLElement} el - The target element.
783
- * @param {string} type - The event name/type.
784
- * @param {EventListener} listener - The proxy listener instance previously returned by asyncOn.
785
- * @param {EventListenerOptions} [options] - Native removeEventListener options.
786
- */
787
- static asyncOff(el: HTMLElement, type: string, listener: EventListener, options?: EventListenerOptions): void;
788
- /**
789
- * Mixes the asynchronous execution engine extensions into target class prototypes.
790
- * @param {...Function} classes - The target class constructors to decorate.
791
- */
792
- static mixInto(...classes: Function[]): void;
793
- }
794
- declare class Timing {
795
- static sleep(ms: any): Promise<any>;
796
- static DEBOUNCE_DEFAULT: number;
797
- static DEBOUNCE_IMMEDIATE: number;
798
- /**
799
- * Executes only after a period of inactivity (pause in events).
800
- * Respond to the "end" of a series of events.
801
- * @param {*} timeoutMs
802
- * @param {*} func
803
- * @param {*} [options]
804
- * @returns {[function, function]}
805
- */
806
- static debounce(timeoutMs: any, func: any, options?: any): [Function, Function];
807
- static THROTTLE_DEFAULT: number;
808
- static THROTTLE_NO_LEADING: number;
809
- static THROTTLE_NO_TRAILING: number;
810
- /**
811
- * Executes at most once per specified time interval, regardless of ongoing events.
812
- * @param {*} timeoutMs
813
- * @param {*} func
814
- * @param {*} [options]
815
- * @returns {[function, function]}
816
- */
817
- static throttle(timeoutMs: any, func: any, options?: any): [Function, Function];
818
- }
819
- declare class Bindings {
820
- /**
821
- * @param {{ [x: string]: any; }} obj
822
- * @param {string} prefix
823
- * @param {Set<String>} stops
824
- * @return {{ [x: string]: any; }}
825
- */
826
- static flatten(obj: {
827
- [x: string]: any;
828
- }, prefix: string, stops: Set<string>): {
829
- [x: string]: any;
830
- };
831
- /**
832
- * @param {any} result
833
- * @param {string} path
834
- * @param {any} value
835
- */
836
- static providePath(result: any, path: string, value: any): any;
837
- /**
838
- *
839
- * @param {Element & {dataset?: any} & {checked?: boolean} & {value?: any}} el
840
- * @returns
841
- */
842
- static extract(el: Element & {
843
- dataset?: any;
844
- } & {
845
- checked?: boolean;
846
- } & {
847
- value?: any;
848
- }): any;
849
- /**
850
- *
851
- * @param {HTMLFormElement} form
852
- * @param {HTMLElement} [submitter]
853
- * @returns
854
- */
855
- static extractFrom(form: HTMLFormElement, submitter?: HTMLElement): {};
856
- /**
857
- *
858
- * @param {Element & {dataset?: any} & {checked?: boolean} & {value?: any}} el
859
- * @returns
860
- */
861
- static mutate(el: Element & {
862
- dataset?: any;
863
- } & {
864
- checked?: boolean;
865
- } & {
866
- value?: any;
867
- }, raw: any): void;
868
- static mutateIn(form: any, values: any): void;
869
- static errors(form: any, es: any, scrollOnError: any): void;
870
- }
871
- declare class RemoteJsonFormLoader {
872
- #private;
873
- constructor(http: any, url: any, method: any, requestMapper: any, responseMapper: any);
874
- prepare(values: any, form: any): any;
875
- submit(values: any, form: any): Promise<any>;
876
- transform(response: any, form: any): any;
877
- }
878
- declare class LocalFormLoader {
879
- #private;
880
- constructor(requestMapper: any, responseMapper: any);
881
- prepare(values: any, form: any): Promise<any>;
882
- submit(values: any, form: any, response: any): Promise<any>;
883
- transform(response: any, form: any): Promise<any>;
884
- }
885
- declare class FormLoader {
886
- static create(el: any, conf: any): LocalFormLoader | RemoteJsonFormLoader;
887
- }
888
- declare class Form extends ParsedElement {
889
- #private;
890
- form: any;
891
- render(): void;
892
- /**
893
- *
894
- * @param {HTMLElement} [submitter]
895
- * @returns
896
- */
897
- submit(submitter?: HTMLElement): Promise<void>;
898
- reset(): void;
899
- spinner(spin: any): void;
900
- set values(vs: {});
901
- get values(): {};
902
- set errors(es: any);
903
- }
904
- declare class Input extends ParsedElement {
905
- internals: ElementInternals;
906
- static observed: string[];
907
- static slots: boolean;
908
- static template: string;
909
- static formAssociated: boolean;
910
- _input: any;
911
- _fieldError: any;
912
- constructor();
913
- _type(): string;
914
- _fragment(type: any, slots: any): any;
915
- render({ slots, observed, disabled, skipObservedSetup }: {
916
- disabled: any;
917
- observed: any;
918
- skipObservedSetup: any;
919
- slots: any;
920
- }): void;
921
- get value(): any;
922
- set value(value: any);
923
- get readonly(): any;
924
- set readonly(v: any);
925
- get disabled(): boolean;
926
- set disabled(d: boolean);
927
- get required(): boolean;
928
- set required(d: boolean);
929
- get placeholder(): any;
930
- set placeholder(d: any);
931
- focus(options: any): void;
932
- setCustomValidity(error: any): void;
933
- formResetCallback(): void;
934
- }
935
- declare class LocalDate extends ParsedElement {
936
- render(): void;
937
- }
938
- declare class Instant extends ParsedElement {
939
- render(): void;
940
- static isoToLocal(iso: any): string;
941
- }
942
- declare class InputLocalDate extends Input {
943
- #private;
944
- static observed: string[];
945
- _type(): string;
946
- render(conf: any): void;
947
- get min(): any;
948
- set min(v: any);
949
- get max(): any;
950
- set max(v: any);
951
- get step(): any;
952
- set step(v: any);
953
- }
954
- declare class InputLocalTime extends InputLocalDate {
955
- #private;
956
- _type(): string;
957
- get min(): any;
958
- set min(v: any);
959
- get max(): any;
960
- set max(v: any);
961
- }
962
- declare class InputInstant extends Input {
963
- static observed: string[];
964
- _type(): string;
965
- render(conf: any): void;
966
- get value(): string | null;
967
- set value(v: string | null);
968
- get min(): string | null;
969
- set min(v: string | null);
970
- get max(): string | null;
971
- set max(v: string | null);
972
- get step(): any;
973
- set step(v: any);
974
- }
975
- declare class InputFile extends Input {
976
- #private;
977
- static l10n: {
978
- en: {
979
- dropzonelabel: string;
980
- unacceptablefiletype: string;
981
- maxfilesizeexceeded: string;
982
- maxtotalsizeexceeded: string;
983
- maxfilesexceeded: string;
984
- };
985
- it: {
986
- dropzonelabel: string;
987
- unacceptablefiletype: string;
988
- maxfilesizeexceeded: string;
989
- maxtotalsizeexceeded: string;
990
- maxfilesexceeded: string;
991
- };
992
- es: {
993
- dropzonelabel: string;
994
- unacceptablefiletype: string;
995
- maxfilesizeexceeded: string;
996
- maxtotalsizeexceeded: string;
997
- maxfilesexceeded: string;
998
- };
999
- fr: {
1000
- dropzonelabel: string;
1001
- unacceptablefiletype: string;
1002
- maxfilesizeexceeded: string;
1003
- maxtotalsizeexceeded: string;
1004
- maxfilesexceeded: string;
1005
- };
1006
- };
1007
- static observed: string[];
1008
- _type(): string;
1009
- static template: string;
1010
- static templates: {
1011
- items: string;
1012
- warning: string;
1013
- };
1014
- render(conf: any): void;
1015
- warning(key: any, args: any): void;
1016
- get accept(): any;
1017
- set accept(vs: any);
1018
- get multiple(): any;
1019
- set multiple(v: any);
1020
- get files(): any;
1021
- set files(vs: any);
1022
- get file(): any;
1023
- set file(v: any);
1024
- get value(): any;
1025
- set value(v: any);
1026
- get totalsize(): any;
1027
- get maxfiles(): any;
1028
- set maxfiles(v: any);
1029
- get maxfilesize(): any;
1030
- set maxfilesize(v: any);
1031
- get maxtotalsize(): any;
1032
- set maxtotalsize(v: any);
1033
- get itemlist(): any;
1034
- set itemlist(v: any);
1035
- get dropzone(): any;
1036
- set dropzone(v: any);
1037
- }
1038
- declare class RemoteLoader {
1039
- #private;
1040
- constructor({ http, url, method, responseMapper, prefetch, revision }: {
1041
- http: any;
1042
- method: any;
1043
- prefetch: any;
1044
- responseMapper: any;
1045
- revision: any;
1046
- url: any;
1047
- });
1048
- prefetch(): Promise<void>;
1049
- exact(...keys: any[]): Promise<any>;
1050
- load(needle: any): Promise<any>;
1051
- reconfigureUrl(url: any): Promise<void>;
1052
- }
1053
- declare class PartialRemoteLoader {
1054
- #private;
1055
- constructor({ http, url, method, responseMapper }: {
1056
- http: any;
1057
- method: any;
1058
- responseMapper: any;
1059
- url: any;
1060
- });
1061
- exact(...keys: any[]): Promise<any>;
1062
- load(needle: any): Promise<any>;
1063
- }
1064
- declare class InMemoryLoader {
1065
- #private;
1066
- constructor(data: any);
1067
- update(data: any): void;
1068
- exact(...keys: any[]): any;
1069
- load(needle: any): any;
1070
- }
1071
- declare class SelectLoader {
1072
- #private;
1073
- static create(el: any, conf: any): InMemoryLoader | PartialRemoteLoader | RemoteLoader;
1074
- }
1075
- declare class Dropdown extends ParsedElement {
1076
- #private;
1077
- static slots: boolean;
1078
- static template: string;
1079
- static templates: {
1080
- options: string;
1081
- };
1082
- render({ slots }: {
1083
- slots: any;
1084
- }): void;
1085
- acceptSelection(): void;
1086
- update(values: any): void;
1087
- hide(): void;
1088
- get shown(): boolean;
1089
- show(loader: any): Promise<void>;
1090
- moveOrShow(forward: any, loader: any): Promise<void>;
1091
- }
1092
- declare class Select extends ParsedElement {
1093
- #private;
1094
- static observed: string[];
1095
- static slots: boolean;
1096
- static template: string;
1097
- static templates: {
1098
- items: string;
1099
- };
1100
- static formAssociated: boolean;
1101
- internals: ElementInternals;
1102
- constructor();
1103
- render({ slots, observed, disabled }: {
1104
- disabled: any;
1105
- observed: any;
1106
- slots: any;
1107
- }): Promise<void>;
1108
- withLoader(fn: any): Promise<any>;
1109
- set value(vs: any);
1110
- get value(): any;
1111
- get entry(): [any, any][] | [any, any];
1112
- get disabled(): boolean;
1113
- set disabled(d: boolean);
1114
- get readonly(): any;
1115
- set readonly(v: any);
1116
- get required(): boolean;
1117
- set required(d: boolean);
1118
- get itemlist(): any;
1119
- set itemlist(v: any);
1120
- focus(options: any): void;
1121
- setCustomValidity(error: any): void;
1122
- }
1123
- declare class RadioGroup extends ParsedElement {
1124
- #private;
1125
- internals: ElementInternals;
1126
- static observed: string[];
1127
- static slots: boolean;
1128
- static template: string;
1129
- static formAssociated: boolean;
1130
- constructor();
1131
- render({ slots, observed, disabled }: {
1132
- disabled: any;
1133
- observed: any;
1134
- slots: any;
1135
- }): void;
1136
- get value(): string | boolean | null;
1137
- set value(value: string | boolean | null);
1138
- get readonly(): any;
1139
- set readonly(v: any);
1140
- get disabled(): boolean;
1141
- set disabled(d: boolean);
1142
- get required(): boolean;
1143
- set required(d: boolean);
1144
- focus(options: any): void;
1145
- setCustomValidity(error: any): void;
1146
- }
1147
- declare class Checkbox extends ParsedElement {
1148
- #private;
1149
- internals: ElementInternals;
1150
- static observed: string[];
1151
- static slots: boolean;
1152
- static template: string;
1153
- static formAssociated: boolean;
1154
- constructor();
1155
- render({ slots, observed, disabled }: {
1156
- disabled: any;
1157
- observed: any;
1158
- slots: any;
1159
- }): void;
1160
- get value(): any;
1161
- set value(value: any);
1162
- get readonly(): any;
1163
- set readonly(v: any);
1164
- get disabled(): boolean;
1165
- set disabled(d: boolean);
1166
- get required(): boolean;
1167
- set required(d: boolean);
1168
- focus(options: any): void;
1169
- setCustomValidity(error: any): void;
1170
- }
1171
- declare class Spinner extends ParsedElement {
1172
- static slots: boolean;
1173
- static template: string;
1174
- render({ slots }: {
1175
- slots: any;
1176
- }): void;
1177
- }
1178
- declare class SortButton extends ParsedElement {
1179
- #private;
1180
- static observed: string[];
1181
- render({ observed }: {
1182
- observed: any;
1183
- }): void;
1184
- get order(): any;
1185
- set order(value: any);
1186
- }
1187
- declare class Pagination extends ParsedElement {
1188
- #private;
1189
- static observed: string[];
1190
- static l10n: {
1191
- en: {
1192
- showing: string;
1193
- navigation: string;
1194
- previous: string;
1195
- next: string;
1196
- };
1197
- it: {
1198
- showing: string;
1199
- navigation: string;
1200
- previous: string;
1201
- next: string;
1202
- };
1203
- es: {
1204
- showing: string;
1205
- navigation: string;
1206
- previous: string;
1207
- next: string;
1208
- };
1209
- fr: {
1210
- showing: string;
1211
- navigation: string;
1212
- previous: string;
1213
- next: string;
1214
- };
1215
- };
1216
- static config: {
1217
- prevIcon: string;
1218
- nextIcon: string;
1219
- reloadIcon: string;
1220
- };
1221
- static template: string;
1222
- render({ observed }: {
1223
- observed: any;
1224
- }): void;
1225
- update(current: any, total: any): void;
1226
- get total(): number;
1227
- set total(value: number);
1228
- get current(): number;
1229
- set current(value: number);
1230
- }
1231
- declare class TableSchemaParser {
1232
- static parse(nodeOrFragment: any, template: any): {
1233
- headersTemplate: any;
1234
- rowsTemplate: any;
1235
- sort: {
1236
- sorter: string | null;
1237
- order: string | null;
1238
- };
1239
- length: number;
1240
- };
1241
- }
1242
- declare class Table extends ParsedElement {
1243
- #private;
1244
- static slots: boolean;
1245
- static l10n: {
1246
- en: {
1247
- initial: string;
1248
- error: string;
1249
- nodata: string;
1250
- };
1251
- it: {
1252
- initial: string;
1253
- error: string;
1254
- nodata: string;
1255
- };
1256
- es: {
1257
- initial: string;
1258
- error: string;
1259
- nodata: string;
1260
- };
1261
- fr: {
1262
- initial: string;
1263
- error: string;
1264
- nodata: string;
1265
- };
1266
- };
1267
- static config: {
1268
- searchIcon: string;
1269
- };
1270
- static template: string;
1271
- static templates: {
1272
- row: string;
1273
- };
1274
- render({ slots, observed }: {
1275
- observed: any;
1276
- slots: any;
1277
- }): Promise<void>;
1278
- reload(): Promise<void>;
1279
- load(pageRequest: any, sortRequest: any, filterRequest: any): Promise<void>;
1280
- withLoader(fn: any): Promise<any>;
1281
- resetWithFilter(filterRequest: any): Promise<void>;
1282
- }
1283
- declare class InstantFilter extends Input {
1284
- #private;
1285
- static observed: string[];
1286
- static template: string;
1287
- render(conf: any): void;
1288
- get value(): any[] | undefined;
1289
- set value(v: any[] | undefined);
1290
- get readonly(): any;
1291
- set readonly(v: any);
1292
- get disabled(): boolean;
1293
- set disabled(d: boolean);
1294
- }
1295
- declare class LocalDateFilter extends Input {
1296
- #private;
1297
- static observed: string[];
1298
- static template: string;
1299
- render(conf: any): void;
1300
- get value(): any[] | undefined;
1301
- set value(v: any[] | undefined);
1302
- get readonly(): any;
1303
- set readonly(v: any);
1304
- get disabled(): boolean;
1305
- set disabled(d: boolean);
1306
- }
1307
- declare class TextFilter extends Input {
1308
- #private;
1309
- static observed: string[];
1310
- static template: string;
1311
- render(conf: any): void;
1312
- get value(): any[] | undefined;
1313
- set value(v: any[] | undefined);
1314
- }
1315
- declare class LocalizationModule {
1316
- static t(k: any, ...args: any[]): any;
1317
- static tl(k: any, args?: any[]): any;
1318
- }
1319
- declare class Plugin {
1320
- configure(registry: any): void;
1321
- }
1322
- export { AsyncEvents, Attributes, Base64, Bindings, Checkbox, Dropdown, ExpressionEvaluator, Expressions, Failure, Form, FormLoader, Fragments, Hex, HttpClient, HttpClientError, Input, InputFile, InputInstant, InputLocalDate, InputLocalTime, Instant, InstantFilter, LightSlots, LocalDate, LocalDateFilter, LocalStorage, LocalizationModule, MediaType, Nodes, Pagination, ParsedElement, Plugin, RadioGroup, Registry, RenderError, Rendering, Select, SelectLoader, SessionStorage, SortButton, Spinner, Table, TableSchemaParser, Template, Templates, TextFilter, Timing, VersionedLocalStorage, VersionedSessionStorage, registry };
1
+ export * from './ftl.mjs';
2
+ export * from './httpc.mjs';
3
+ export * from './ful.mjs';
1323
4
 
1324
5
  export as namespace fml;