@aerogel/core 0.0.0-next.8e6b2bcc764fa682decbb41aa6848c77a744dec3 → 0.0.0-next.906ec80f260b7e5cb54a0c97bd4905bdaf4bf916
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/dist/aerogel-core.cjs.js +1 -1
- package/dist/aerogel-core.cjs.js.map +1 -1
- package/dist/aerogel-core.d.ts +653 -91
- package/dist/aerogel-core.esm.js +1 -1
- package/dist/aerogel-core.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/bootstrap/bootstrap.test.ts +0 -1
- package/src/bootstrap/index.ts +12 -2
- package/src/components/AGAppSnackbars.vue +1 -1
- package/src/components/composition.ts +23 -0
- package/src/components/forms/AGForm.vue +9 -10
- package/src/components/forms/AGInput.vue +2 -0
- package/src/components/headless/forms/AGHeadlessButton.ts +3 -0
- package/src/components/headless/forms/AGHeadlessButton.vue +15 -4
- package/src/components/headless/forms/AGHeadlessInput.ts +10 -4
- package/src/components/headless/forms/AGHeadlessInput.vue +18 -5
- package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
- package/src/components/headless/forms/AGHeadlessInputInput.vue +42 -5
- package/src/components/headless/forms/AGHeadlessInputTextArea.vue +43 -0
- package/src/components/headless/forms/composition.ts +10 -0
- package/src/components/headless/forms/index.ts +4 -0
- package/src/components/headless/modals/AGHeadlessModal.ts +3 -1
- package/src/components/headless/modals/AGHeadlessModal.vue +10 -4
- package/src/components/headless/modals/AGHeadlessModalPanel.vue +10 -6
- package/src/components/headless/modals/AGHeadlessModalTitle.vue +14 -4
- package/src/components/index.ts +2 -0
- package/src/components/interfaces.ts +24 -0
- package/src/components/lib/AGMarkdown.vue +22 -4
- package/src/components/lib/AGMeasured.vue +1 -0
- package/src/components/lib/AGProgressBar.vue +55 -0
- package/src/components/lib/index.ts +1 -0
- package/src/components/modals/AGAlertModal.ts +5 -2
- package/src/components/modals/AGConfirmModal.ts +18 -3
- package/src/components/modals/AGConfirmModal.vue +3 -3
- package/src/components/modals/AGErrorReportModal.ts +5 -2
- package/src/components/modals/AGLoadingModal.ts +10 -4
- package/src/components/modals/AGModal.ts +1 -0
- package/src/components/modals/AGModalContext.vue +14 -4
- package/src/components/modals/AGPromptModal.ts +14 -3
- package/src/components/modals/AGPromptModal.vue +2 -2
- package/src/directives/measure.ts +24 -5
- package/src/errors/JobCancelledError.ts +3 -0
- package/src/errors/index.ts +2 -0
- package/src/errors/utils.ts +16 -0
- package/src/forms/Form.test.ts +28 -0
- package/src/forms/Form.ts +65 -8
- package/src/forms/index.ts +3 -1
- package/src/forms/utils.ts +34 -3
- package/src/forms/validation.ts +19 -0
- package/src/jobs/Job.ts +144 -2
- package/src/jobs/index.ts +4 -1
- package/src/jobs/listeners.ts +3 -0
- package/src/jobs/status.ts +4 -0
- package/src/lang/DefaultLangProvider.ts +43 -0
- package/src/lang/Lang.state.ts +11 -0
- package/src/lang/Lang.ts +48 -21
- package/src/services/App.state.ts +22 -0
- package/src/services/App.ts +8 -0
- package/src/services/Cache.ts +43 -0
- package/src/services/Events.ts +13 -3
- package/src/services/Service.ts +116 -45
- package/src/services/Storage.ts +20 -0
- package/src/services/index.ts +9 -2
- package/src/services/utils.ts +18 -0
- package/src/testing/setup.ts +27 -0
- package/src/ui/UI.state.ts +7 -0
- package/src/ui/UI.ts +145 -44
- package/src/ui/index.ts +1 -0
- package/src/ui/utils.ts +16 -0
- package/src/utils/composition/persistent.test.ts +33 -0
- package/src/utils/composition/persistent.ts +11 -0
- package/src/utils/composition/state.test.ts +47 -0
- package/src/utils/composition/state.ts +24 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/markdown.test.ts +50 -0
- package/src/utils/markdown.ts +17 -2
- package/src/utils/vue.ts +15 -3
- package/vite.config.ts +4 -1
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { App as App_2 } from 'vue';
|
|
|
3
3
|
import type { Component } from 'vue';
|
|
4
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
5
|
import { ComputedRef } from 'vue';
|
|
6
|
-
import { Constructor } from '@noeldemartin/utils';
|
|
6
|
+
import type { Constructor } from '@noeldemartin/utils';
|
|
7
7
|
import type { DeepReadonly } from 'vue';
|
|
8
8
|
import { DefineComponent } from 'vue';
|
|
9
9
|
import type { DefineStoreOptions } from 'pinia';
|
|
@@ -13,12 +13,16 @@ import { Facade } from '@noeldemartin/utils';
|
|
|
13
13
|
import type { GetClosureArgs } from '@noeldemartin/utils';
|
|
14
14
|
import type { _GettersTree } from 'pinia';
|
|
15
15
|
import type { InjectionKey } from 'vue';
|
|
16
|
-
import
|
|
16
|
+
import { JSError } from '@noeldemartin/utils';
|
|
17
|
+
import type { Listeners } from '@noeldemartin/utils';
|
|
18
|
+
import { ListenersManager } from '@noeldemartin/utils';
|
|
17
19
|
import { MagicObject } from '@noeldemartin/utils';
|
|
18
20
|
import type { MaybeRef } from 'vue';
|
|
19
21
|
import type { ObjectValues } from '@noeldemartin/utils';
|
|
22
|
+
import type { ObjectWithout } from '@noeldemartin/utils';
|
|
20
23
|
import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
|
|
21
24
|
import type { Pinia } from 'pinia';
|
|
25
|
+
import type { Pretty } from '@noeldemartin/utils';
|
|
22
26
|
import { PromisedValue } from '@noeldemartin/utils';
|
|
23
27
|
import { PropType } from 'vue';
|
|
24
28
|
import { PublicProps } from 'vue';
|
|
@@ -27,10 +31,19 @@ import { RendererElement } from 'vue';
|
|
|
27
31
|
import { RendererNode } from 'vue';
|
|
28
32
|
import type { StateTree } from 'pinia';
|
|
29
33
|
import type { Store } from 'pinia';
|
|
34
|
+
import type { SubPartial } from '@noeldemartin/utils';
|
|
30
35
|
import type { UnwrapNestedRefs } from 'vue';
|
|
31
36
|
import { VNode } from 'vue';
|
|
32
37
|
import type { Writable } from '@noeldemartin/utils';
|
|
33
38
|
|
|
39
|
+
export declare interface __SetsElement {
|
|
40
|
+
__setElement(element?: HTMLElement): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare type AcceptRefs<T> = {
|
|
44
|
+
[K in keyof T]: T[K] | RefUnion<T[K]>;
|
|
45
|
+
};
|
|
46
|
+
|
|
34
47
|
export declare type AerogelGlobalEvents = Partial<{
|
|
35
48
|
[Event in EventWithoutPayload]: () => unknown;
|
|
36
49
|
}> & Partial<{
|
|
@@ -78,7 +91,7 @@ required: true;
|
|
|
78
91
|
title: string | null;
|
|
79
92
|
}, {}>;
|
|
80
93
|
|
|
81
|
-
export declare type AGAlertModalProps =
|
|
94
|
+
export declare type AGAlertModalProps = Pretty<AcceptRefs<ObjectWithout<ExtractPropTypes<typeof alertModalProps>, null | undefined>>>;
|
|
82
95
|
|
|
83
96
|
export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
84
97
|
[key: string]: any;
|
|
@@ -149,12 +162,42 @@ validator?(value: unknown): boolean;
|
|
|
149
162
|
} & {
|
|
150
163
|
default: string | (() => string | null) | null;
|
|
151
164
|
};
|
|
165
|
+
acceptColor: {
|
|
166
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
167
|
+
validator?(value: unknown): boolean;
|
|
168
|
+
} & {
|
|
169
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
170
|
+
};
|
|
152
171
|
cancelText: {
|
|
153
172
|
type?: PropType<string | null> | undefined;
|
|
154
173
|
validator?(value: unknown): boolean;
|
|
155
174
|
} & {
|
|
156
175
|
default: string | (() => string | null) | null;
|
|
157
176
|
};
|
|
177
|
+
cancelColor: {
|
|
178
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
179
|
+
validator?(value: unknown): boolean;
|
|
180
|
+
} & {
|
|
181
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
182
|
+
};
|
|
183
|
+
checkboxes: {
|
|
184
|
+
type?: PropType<ConfirmCheckboxes | null> | undefined;
|
|
185
|
+
validator?(value: unknown): boolean;
|
|
186
|
+
} & {
|
|
187
|
+
default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
|
|
188
|
+
};
|
|
189
|
+
actions: {
|
|
190
|
+
type?: PropType<Record<string, () => unknown> | null> | undefined;
|
|
191
|
+
validator?(value: unknown): boolean;
|
|
192
|
+
} & {
|
|
193
|
+
default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
|
|
194
|
+
};
|
|
195
|
+
required: {
|
|
196
|
+
type?: PropType<boolean> | undefined;
|
|
197
|
+
validator?(value: unknown): boolean;
|
|
198
|
+
} & {
|
|
199
|
+
default: boolean | (() => boolean) | null;
|
|
200
|
+
};
|
|
158
201
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
159
202
|
[key: string]: any;
|
|
160
203
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -176,19 +219,54 @@ validator?(value: unknown): boolean;
|
|
|
176
219
|
} & {
|
|
177
220
|
default: string | (() => string | null) | null;
|
|
178
221
|
};
|
|
222
|
+
acceptColor: {
|
|
223
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
224
|
+
validator?(value: unknown): boolean;
|
|
225
|
+
} & {
|
|
226
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
227
|
+
};
|
|
179
228
|
cancelText: {
|
|
180
229
|
type?: PropType<string | null> | undefined;
|
|
181
230
|
validator?(value: unknown): boolean;
|
|
182
231
|
} & {
|
|
183
232
|
default: string | (() => string | null) | null;
|
|
184
233
|
};
|
|
234
|
+
cancelColor: {
|
|
235
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
236
|
+
validator?(value: unknown): boolean;
|
|
237
|
+
} & {
|
|
238
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
239
|
+
};
|
|
240
|
+
checkboxes: {
|
|
241
|
+
type?: PropType<ConfirmCheckboxes | null> | undefined;
|
|
242
|
+
validator?(value: unknown): boolean;
|
|
243
|
+
} & {
|
|
244
|
+
default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
|
|
245
|
+
};
|
|
246
|
+
actions: {
|
|
247
|
+
type?: PropType<Record<string, () => unknown> | null> | undefined;
|
|
248
|
+
validator?(value: unknown): boolean;
|
|
249
|
+
} & {
|
|
250
|
+
default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
|
|
251
|
+
};
|
|
252
|
+
required: {
|
|
253
|
+
type?: PropType<boolean> | undefined;
|
|
254
|
+
validator?(value: unknown): boolean;
|
|
255
|
+
} & {
|
|
256
|
+
default: boolean | (() => boolean) | null;
|
|
257
|
+
};
|
|
185
258
|
}>>, {
|
|
186
259
|
title: string | null;
|
|
187
260
|
acceptText: string | null;
|
|
261
|
+
acceptColor: "primary" | "secondary" | "danger" | "clear";
|
|
188
262
|
cancelText: string | null;
|
|
263
|
+
cancelColor: "primary" | "secondary" | "danger" | "clear";
|
|
264
|
+
checkboxes: ConfirmCheckboxes | null;
|
|
265
|
+
actions: Record<string, () => unknown> | null;
|
|
266
|
+
required: boolean;
|
|
189
267
|
}, {}>;
|
|
190
268
|
|
|
191
|
-
export declare type AGConfirmModalProps =
|
|
269
|
+
export declare type AGConfirmModalProps = Pretty<AcceptRefs<SubPartial<ObjectWithout<ExtractPropTypes<typeof confirmModalProps>, null | undefined>, 'acceptColor' | 'cancelColor'>>>;
|
|
192
270
|
|
|
193
271
|
export declare const AGErrorMessage: DefineComponent< {
|
|
194
272
|
error: {
|
|
@@ -226,7 +304,7 @@ required: true;
|
|
|
226
304
|
};
|
|
227
305
|
}>>, {}, {}>;
|
|
228
306
|
|
|
229
|
-
export declare type AGErrorReportModalProps =
|
|
307
|
+
export declare type AGErrorReportModalProps = Pretty<AcceptRefs<ObjectWithout<ExtractPropTypes<typeof errorReportModalProps>, null | undefined>>>;
|
|
230
308
|
|
|
231
309
|
export declare const AGErrorReportModalTitle: DefineComponent< {
|
|
232
310
|
report: {
|
|
@@ -296,6 +374,12 @@ form: Form<FormFieldDefinitions> | null;
|
|
|
296
374
|
}, {}>;
|
|
297
375
|
|
|
298
376
|
export declare const AGHeadlessButton: DefineComponent< {
|
|
377
|
+
as: {
|
|
378
|
+
type?: PropType<Object | null> | undefined;
|
|
379
|
+
validator?(value: unknown): boolean;
|
|
380
|
+
} & {
|
|
381
|
+
default: Object | (() => Object | null) | null;
|
|
382
|
+
};
|
|
299
383
|
href: {
|
|
300
384
|
type?: PropType<string | null> | undefined;
|
|
301
385
|
validator?(value: unknown): boolean;
|
|
@@ -335,6 +419,12 @@ default: boolean | (() => boolean) | null;
|
|
|
335
419
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
336
420
|
[key: string]: any;
|
|
337
421
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
422
|
+
as: {
|
|
423
|
+
type?: PropType<Object | null> | undefined;
|
|
424
|
+
validator?(value: unknown): boolean;
|
|
425
|
+
} & {
|
|
426
|
+
default: Object | (() => Object | null) | null;
|
|
427
|
+
};
|
|
338
428
|
href: {
|
|
339
429
|
type?: PropType<string | null> | undefined;
|
|
340
430
|
validator?(value: unknown): boolean;
|
|
@@ -372,6 +462,7 @@ validator?(value: unknown): boolean;
|
|
|
372
462
|
default: boolean | (() => boolean) | null;
|
|
373
463
|
};
|
|
374
464
|
}>>, {
|
|
465
|
+
as: Object | null;
|
|
375
466
|
href: string | null;
|
|
376
467
|
url: string | null;
|
|
377
468
|
route: string | null;
|
|
@@ -393,17 +484,23 @@ validator?(value: unknown): boolean;
|
|
|
393
484
|
} & {
|
|
394
485
|
default: string | (() => string | null) | null;
|
|
395
486
|
};
|
|
396
|
-
|
|
397
|
-
type?: PropType<string> | undefined;
|
|
487
|
+
description: {
|
|
488
|
+
type?: PropType<string | null> | undefined;
|
|
398
489
|
validator?(value: unknown): boolean;
|
|
399
490
|
} & {
|
|
400
|
-
default: string | (() => string) | null;
|
|
491
|
+
default: string | (() => string | null) | null;
|
|
401
492
|
};
|
|
402
493
|
modelValue: {
|
|
403
|
-
type?: PropType<
|
|
494
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
495
|
+
validator?(value: unknown): boolean;
|
|
496
|
+
} & {
|
|
497
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
498
|
+
};
|
|
499
|
+
as: {
|
|
500
|
+
type?: PropType<string> | undefined;
|
|
404
501
|
validator?(value: unknown): boolean;
|
|
405
502
|
} & {
|
|
406
|
-
default: string |
|
|
503
|
+
default: string | (() => string) | null;
|
|
407
504
|
};
|
|
408
505
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
409
506
|
[key: string]: any;
|
|
@@ -420,27 +517,38 @@ validator?(value: unknown): boolean;
|
|
|
420
517
|
} & {
|
|
421
518
|
default: string | (() => string | null) | null;
|
|
422
519
|
};
|
|
423
|
-
|
|
424
|
-
type?: PropType<string> | undefined;
|
|
520
|
+
description: {
|
|
521
|
+
type?: PropType<string | null> | undefined;
|
|
425
522
|
validator?(value: unknown): boolean;
|
|
426
523
|
} & {
|
|
427
|
-
default: string | (() => string) | null;
|
|
524
|
+
default: string | (() => string | null) | null;
|
|
428
525
|
};
|
|
429
526
|
modelValue: {
|
|
430
|
-
type?: PropType<
|
|
527
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
528
|
+
validator?(value: unknown): boolean;
|
|
529
|
+
} & {
|
|
530
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
531
|
+
};
|
|
532
|
+
as: {
|
|
533
|
+
type?: PropType<string> | undefined;
|
|
431
534
|
validator?(value: unknown): boolean;
|
|
432
535
|
} & {
|
|
433
|
-
default: string |
|
|
536
|
+
default: string | (() => string) | null;
|
|
434
537
|
};
|
|
435
538
|
}>> & {
|
|
436
539
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
437
540
|
}, {
|
|
438
541
|
as: string;
|
|
439
|
-
modelValue: string | number | boolean | null;
|
|
440
542
|
name: string | null;
|
|
441
543
|
label: string | null;
|
|
544
|
+
description: string | null;
|
|
545
|
+
modelValue: FormFieldValue | null;
|
|
442
546
|
}, {}>;
|
|
443
547
|
|
|
548
|
+
export declare const AGHeadlessInputDescription: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
549
|
+
[key: string]: any;
|
|
550
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
551
|
+
|
|
444
552
|
export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
445
553
|
[key: string]: any;
|
|
446
554
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
@@ -469,6 +577,10 @@ export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _
|
|
|
469
577
|
[key: string]: any;
|
|
470
578
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
471
579
|
|
|
580
|
+
export declare const AGHeadlessInputTextArea: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
581
|
+
[key: string]: any;
|
|
582
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
583
|
+
|
|
472
584
|
export declare const AGHeadlessModal: DefineComponent< {
|
|
473
585
|
cancellable: {
|
|
474
586
|
type?: PropType<boolean> | undefined;
|
|
@@ -476,6 +588,12 @@ validator?(value: unknown): boolean;
|
|
|
476
588
|
} & {
|
|
477
589
|
default: boolean | (() => boolean) | null;
|
|
478
590
|
};
|
|
591
|
+
inline: {
|
|
592
|
+
type?: PropType<boolean> | undefined;
|
|
593
|
+
validator?(value: unknown): boolean;
|
|
594
|
+
} & {
|
|
595
|
+
default: boolean | (() => boolean) | null;
|
|
596
|
+
};
|
|
479
597
|
title: {
|
|
480
598
|
type?: PropType<string | null> | undefined;
|
|
481
599
|
validator?(value: unknown): boolean;
|
|
@@ -491,6 +609,12 @@ validator?(value: unknown): boolean;
|
|
|
491
609
|
} & {
|
|
492
610
|
default: boolean | (() => boolean) | null;
|
|
493
611
|
};
|
|
612
|
+
inline: {
|
|
613
|
+
type?: PropType<boolean> | undefined;
|
|
614
|
+
validator?(value: unknown): boolean;
|
|
615
|
+
} & {
|
|
616
|
+
default: boolean | (() => boolean) | null;
|
|
617
|
+
};
|
|
494
618
|
title: {
|
|
495
619
|
type?: PropType<string | null> | undefined;
|
|
496
620
|
validator?(value: unknown): boolean;
|
|
@@ -499,6 +623,7 @@ default: string | (() => string | null) | null;
|
|
|
499
623
|
};
|
|
500
624
|
}>>, {
|
|
501
625
|
cancellable: boolean;
|
|
626
|
+
inline: boolean;
|
|
502
627
|
title: string | null;
|
|
503
628
|
}, {}>;
|
|
504
629
|
|
|
@@ -730,6 +855,18 @@ validator?(value: unknown): boolean;
|
|
|
730
855
|
} & {
|
|
731
856
|
default: string | (() => string | null) | null;
|
|
732
857
|
};
|
|
858
|
+
description: {
|
|
859
|
+
type?: PropType<string | null> | undefined;
|
|
860
|
+
validator?(value: unknown): boolean;
|
|
861
|
+
} & {
|
|
862
|
+
default: string | (() => string | null) | null;
|
|
863
|
+
};
|
|
864
|
+
modelValue: {
|
|
865
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
866
|
+
validator?(value: unknown): boolean;
|
|
867
|
+
} & {
|
|
868
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
869
|
+
};
|
|
733
870
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
734
871
|
[key: string]: any;
|
|
735
872
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -745,9 +882,23 @@ validator?(value: unknown): boolean;
|
|
|
745
882
|
} & {
|
|
746
883
|
default: string | (() => string | null) | null;
|
|
747
884
|
};
|
|
885
|
+
description: {
|
|
886
|
+
type?: PropType<string | null> | undefined;
|
|
887
|
+
validator?(value: unknown): boolean;
|
|
888
|
+
} & {
|
|
889
|
+
default: string | (() => string | null) | null;
|
|
890
|
+
};
|
|
891
|
+
modelValue: {
|
|
892
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
893
|
+
validator?(value: unknown): boolean;
|
|
894
|
+
} & {
|
|
895
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
896
|
+
};
|
|
748
897
|
}>>, {
|
|
749
898
|
name: string | null;
|
|
750
899
|
label: string | null;
|
|
900
|
+
description: string | null;
|
|
901
|
+
modelValue: FormFieldValue | null;
|
|
751
902
|
}, {}>;
|
|
752
903
|
|
|
753
904
|
export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
@@ -755,26 +906,52 @@ export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) =>
|
|
|
755
906
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
756
907
|
|
|
757
908
|
export declare const AGLoadingModal: DefineComponent< {
|
|
909
|
+
title: {
|
|
910
|
+
type?: PropType<string | null> | undefined;
|
|
911
|
+
validator?(value: unknown): boolean;
|
|
912
|
+
} & {
|
|
913
|
+
default: string | (() => string | null) | null;
|
|
914
|
+
};
|
|
758
915
|
message: {
|
|
759
916
|
type?: PropType<string | null> | undefined;
|
|
760
917
|
validator?(value: unknown): boolean;
|
|
761
918
|
} & {
|
|
762
919
|
default: string | (() => string | null) | null;
|
|
763
920
|
};
|
|
921
|
+
progress: {
|
|
922
|
+
type?: PropType<number | null> | undefined;
|
|
923
|
+
validator?(value: unknown): boolean;
|
|
924
|
+
} & {
|
|
925
|
+
default: number | (() => number | null) | null;
|
|
926
|
+
};
|
|
764
927
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
765
928
|
[key: string]: any;
|
|
766
929
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
930
|
+
title: {
|
|
931
|
+
type?: PropType<string | null> | undefined;
|
|
932
|
+
validator?(value: unknown): boolean;
|
|
933
|
+
} & {
|
|
934
|
+
default: string | (() => string | null) | null;
|
|
935
|
+
};
|
|
767
936
|
message: {
|
|
768
937
|
type?: PropType<string | null> | undefined;
|
|
769
938
|
validator?(value: unknown): boolean;
|
|
770
939
|
} & {
|
|
771
940
|
default: string | (() => string | null) | null;
|
|
772
941
|
};
|
|
942
|
+
progress: {
|
|
943
|
+
type?: PropType<number | null> | undefined;
|
|
944
|
+
validator?(value: unknown): boolean;
|
|
945
|
+
} & {
|
|
946
|
+
default: number | (() => number | null) | null;
|
|
947
|
+
};
|
|
773
948
|
}>>, {
|
|
949
|
+
title: string | null;
|
|
774
950
|
message: string | null;
|
|
951
|
+
progress: number | null;
|
|
775
952
|
}, {}>;
|
|
776
953
|
|
|
777
|
-
export declare type AGLoadingModalProps =
|
|
954
|
+
export declare type AGLoadingModalProps = AcceptRefs<ObjectWithout<ExtractPropTypes<typeof loadingModalProps>, null | undefined>>;
|
|
778
955
|
|
|
779
956
|
export declare const AGMarkdown: DefineComponent< {
|
|
780
957
|
as: {
|
|
@@ -796,10 +973,10 @@ validator?(value: unknown): boolean;
|
|
|
796
973
|
default: string | (() => string | null) | null;
|
|
797
974
|
};
|
|
798
975
|
langParams: {
|
|
799
|
-
type?: PropType<Record<string, unknown> | null> | undefined;
|
|
976
|
+
type?: PropType<number | Record<string, unknown> | null> | undefined;
|
|
800
977
|
validator?(value: unknown): boolean;
|
|
801
978
|
} & {
|
|
802
|
-
default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
|
|
979
|
+
default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
|
|
803
980
|
};
|
|
804
981
|
text: {
|
|
805
982
|
type?: PropType<string | null> | undefined;
|
|
@@ -807,6 +984,12 @@ validator?(value: unknown): boolean;
|
|
|
807
984
|
} & {
|
|
808
985
|
default: string | (() => string | null) | null;
|
|
809
986
|
};
|
|
987
|
+
actions: {
|
|
988
|
+
type?: PropType<Record<string, () => unknown> | null> | undefined;
|
|
989
|
+
validator?(value: unknown): boolean;
|
|
990
|
+
} & {
|
|
991
|
+
default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
|
|
992
|
+
};
|
|
810
993
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
811
994
|
[key: string]: any;
|
|
812
995
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -829,10 +1012,10 @@ validator?(value: unknown): boolean;
|
|
|
829
1012
|
default: string | (() => string | null) | null;
|
|
830
1013
|
};
|
|
831
1014
|
langParams: {
|
|
832
|
-
type?: PropType<Record<string, unknown> | null> | undefined;
|
|
1015
|
+
type?: PropType<number | Record<string, unknown> | null> | undefined;
|
|
833
1016
|
validator?(value: unknown): boolean;
|
|
834
1017
|
} & {
|
|
835
|
-
default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
|
|
1018
|
+
default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
|
|
836
1019
|
};
|
|
837
1020
|
text: {
|
|
838
1021
|
type?: PropType<string | null> | undefined;
|
|
@@ -840,12 +1023,19 @@ validator?(value: unknown): boolean;
|
|
|
840
1023
|
} & {
|
|
841
1024
|
default: string | (() => string | null) | null;
|
|
842
1025
|
};
|
|
1026
|
+
actions: {
|
|
1027
|
+
type?: PropType<Record<string, () => unknown> | null> | undefined;
|
|
1028
|
+
validator?(value: unknown): boolean;
|
|
1029
|
+
} & {
|
|
1030
|
+
default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
|
|
1031
|
+
};
|
|
843
1032
|
}>>, {
|
|
844
1033
|
as: string | null;
|
|
845
1034
|
inline: boolean;
|
|
846
1035
|
langKey: string | null;
|
|
847
|
-
langParams: Record<string, unknown> | null;
|
|
1036
|
+
langParams: number | Record<string, unknown> | null;
|
|
848
1037
|
text: string | null;
|
|
1038
|
+
actions: Record<string, () => unknown> | null;
|
|
849
1039
|
}, {}>;
|
|
850
1040
|
|
|
851
1041
|
export declare const AGMeasured: DefineComponent< {
|
|
@@ -875,6 +1065,12 @@ validator?(value: unknown): boolean;
|
|
|
875
1065
|
} & {
|
|
876
1066
|
default: boolean | (() => boolean) | null;
|
|
877
1067
|
};
|
|
1068
|
+
inline: {
|
|
1069
|
+
type?: PropType<boolean> | undefined;
|
|
1070
|
+
validator?(value: unknown): boolean;
|
|
1071
|
+
} & {
|
|
1072
|
+
default: boolean | (() => boolean) | null;
|
|
1073
|
+
};
|
|
878
1074
|
title: {
|
|
879
1075
|
type?: PropType<string | null> | undefined;
|
|
880
1076
|
validator?(value: unknown): boolean;
|
|
@@ -890,6 +1086,12 @@ validator?(value: unknown): boolean;
|
|
|
890
1086
|
} & {
|
|
891
1087
|
default: boolean | (() => boolean) | null;
|
|
892
1088
|
};
|
|
1089
|
+
inline: {
|
|
1090
|
+
type?: PropType<boolean> | undefined;
|
|
1091
|
+
validator?(value: unknown): boolean;
|
|
1092
|
+
} & {
|
|
1093
|
+
default: boolean | (() => boolean) | null;
|
|
1094
|
+
};
|
|
893
1095
|
title: {
|
|
894
1096
|
type?: PropType<string | null> | undefined;
|
|
895
1097
|
validator?(value: unknown): boolean;
|
|
@@ -898,6 +1100,7 @@ default: string | (() => string | null) | null;
|
|
|
898
1100
|
};
|
|
899
1101
|
}>>, {
|
|
900
1102
|
cancellable: boolean;
|
|
1103
|
+
inline: boolean;
|
|
901
1104
|
title: string | null;
|
|
902
1105
|
}, {}>;
|
|
903
1106
|
|
|
@@ -912,7 +1115,7 @@ childIndex: {
|
|
|
912
1115
|
type?: PropType<number> | undefined;
|
|
913
1116
|
validator?(value: unknown): boolean;
|
|
914
1117
|
} & {
|
|
915
|
-
|
|
1118
|
+
default: number | (() => number) | null;
|
|
916
1119
|
};
|
|
917
1120
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
918
1121
|
[key: string]: any;
|
|
@@ -927,14 +1130,62 @@ childIndex: {
|
|
|
927
1130
|
type?: PropType<number> | undefined;
|
|
928
1131
|
validator?(value: unknown): boolean;
|
|
929
1132
|
} & {
|
|
930
|
-
|
|
1133
|
+
default: number | (() => number) | null;
|
|
931
1134
|
};
|
|
932
|
-
}>>, {
|
|
1135
|
+
}>>, {
|
|
1136
|
+
childIndex: number;
|
|
1137
|
+
}, {}>;
|
|
933
1138
|
|
|
934
1139
|
export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
935
1140
|
[key: string]: any;
|
|
936
1141
|
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
937
1142
|
|
|
1143
|
+
export declare const AGProgressBar: DefineComponent< {
|
|
1144
|
+
progress: {
|
|
1145
|
+
type?: PropType<number | null> | undefined;
|
|
1146
|
+
validator?(value: unknown): boolean;
|
|
1147
|
+
} & {
|
|
1148
|
+
default: number | (() => number | null) | null;
|
|
1149
|
+
};
|
|
1150
|
+
barClass: {
|
|
1151
|
+
type?: PropType<string> | undefined;
|
|
1152
|
+
validator?(value: unknown): boolean;
|
|
1153
|
+
} & {
|
|
1154
|
+
default: string | (() => string) | null;
|
|
1155
|
+
};
|
|
1156
|
+
job: {
|
|
1157
|
+
type?: PropType<Job<JobListener, JobStatus, JobStatus> | null> | undefined;
|
|
1158
|
+
validator?(value: unknown): boolean;
|
|
1159
|
+
} & {
|
|
1160
|
+
default: Job<JobListener, JobStatus, JobStatus> | (() => Job<JobListener, JobStatus, JobStatus> | null) | null;
|
|
1161
|
+
};
|
|
1162
|
+
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
1163
|
+
[key: string]: any;
|
|
1164
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1165
|
+
progress: {
|
|
1166
|
+
type?: PropType<number | null> | undefined;
|
|
1167
|
+
validator?(value: unknown): boolean;
|
|
1168
|
+
} & {
|
|
1169
|
+
default: number | (() => number | null) | null;
|
|
1170
|
+
};
|
|
1171
|
+
barClass: {
|
|
1172
|
+
type?: PropType<string> | undefined;
|
|
1173
|
+
validator?(value: unknown): boolean;
|
|
1174
|
+
} & {
|
|
1175
|
+
default: string | (() => string) | null;
|
|
1176
|
+
};
|
|
1177
|
+
job: {
|
|
1178
|
+
type?: PropType<Job<JobListener, JobStatus, JobStatus> | null> | undefined;
|
|
1179
|
+
validator?(value: unknown): boolean;
|
|
1180
|
+
} & {
|
|
1181
|
+
default: Job<JobListener, JobStatus, JobStatus> | (() => Job<JobListener, JobStatus, JobStatus> | null) | null;
|
|
1182
|
+
};
|
|
1183
|
+
}>>, {
|
|
1184
|
+
progress: number | null;
|
|
1185
|
+
barClass: string;
|
|
1186
|
+
job: Job<JobListener, JobStatus, JobStatus> | null;
|
|
1187
|
+
}, {}>;
|
|
1188
|
+
|
|
938
1189
|
export declare const AGPromptModal: DefineComponent< {
|
|
939
1190
|
title: {
|
|
940
1191
|
type?: PropType<string | null> | undefined;
|
|
@@ -972,12 +1223,24 @@ validator?(value: unknown): boolean;
|
|
|
972
1223
|
} & {
|
|
973
1224
|
default: string | (() => string | null) | null;
|
|
974
1225
|
};
|
|
1226
|
+
acceptColor: {
|
|
1227
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1228
|
+
validator?(value: unknown): boolean;
|
|
1229
|
+
} & {
|
|
1230
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1231
|
+
};
|
|
975
1232
|
cancelText: {
|
|
976
1233
|
type?: PropType<string | null> | undefined;
|
|
977
1234
|
validator?(value: unknown): boolean;
|
|
978
1235
|
} & {
|
|
979
1236
|
default: string | (() => string | null) | null;
|
|
980
1237
|
};
|
|
1238
|
+
cancelColor: {
|
|
1239
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1240
|
+
validator?(value: unknown): boolean;
|
|
1241
|
+
} & {
|
|
1242
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1243
|
+
};
|
|
981
1244
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
982
1245
|
[key: string]: any;
|
|
983
1246
|
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -1017,22 +1280,36 @@ validator?(value: unknown): boolean;
|
|
|
1017
1280
|
} & {
|
|
1018
1281
|
default: string | (() => string | null) | null;
|
|
1019
1282
|
};
|
|
1283
|
+
acceptColor: {
|
|
1284
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1285
|
+
validator?(value: unknown): boolean;
|
|
1286
|
+
} & {
|
|
1287
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1288
|
+
};
|
|
1020
1289
|
cancelText: {
|
|
1021
1290
|
type?: PropType<string | null> | undefined;
|
|
1022
1291
|
validator?(value: unknown): boolean;
|
|
1023
1292
|
} & {
|
|
1024
1293
|
default: string | (() => string | null) | null;
|
|
1025
1294
|
};
|
|
1295
|
+
cancelColor: {
|
|
1296
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1297
|
+
validator?(value: unknown): boolean;
|
|
1298
|
+
} & {
|
|
1299
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1300
|
+
};
|
|
1026
1301
|
}>>, {
|
|
1027
1302
|
title: string | null;
|
|
1028
1303
|
label: string | null;
|
|
1029
1304
|
defaultValue: string | null;
|
|
1030
1305
|
placeholder: string | null;
|
|
1031
1306
|
acceptText: string | null;
|
|
1307
|
+
acceptColor: "primary" | "secondary" | "danger" | "clear";
|
|
1032
1308
|
cancelText: string | null;
|
|
1309
|
+
cancelColor: "primary" | "secondary" | "danger" | "clear";
|
|
1033
1310
|
}, {}>;
|
|
1034
1311
|
|
|
1035
|
-
export declare type AGPromptModalProps =
|
|
1312
|
+
export declare type AGPromptModalProps = Pretty<AcceptRefs<SubPartial<ObjectWithout<ExtractPropTypes<typeof promptModalProps>, null | undefined>, 'acceptColor' | 'cancelColor'>>>;
|
|
1036
1313
|
|
|
1037
1314
|
export declare const AGSelect: DefineComponent< {
|
|
1038
1315
|
name: {
|
|
@@ -1187,7 +1464,8 @@ export declare const alertModalProps: {
|
|
|
1187
1464
|
|
|
1188
1465
|
export declare const App: Facade<AppService, AppService>;
|
|
1189
1466
|
|
|
1190
|
-
export declare class AppService extends
|
|
1467
|
+
export declare class AppService extends _default_3 {
|
|
1468
|
+
readonly name: string;
|
|
1191
1469
|
readonly ready: PromisedValue<void>;
|
|
1192
1470
|
readonly mounted: PromisedValue<void>;
|
|
1193
1471
|
isReady(): boolean;
|
|
@@ -1195,6 +1473,7 @@ export declare class AppService extends _default_2 {
|
|
|
1195
1473
|
whenReady<T>(callback: () => T): Promise<T>;
|
|
1196
1474
|
reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
|
|
1197
1475
|
plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
|
|
1476
|
+
service<T extends keyof Services>(name: T): Services[T] | null;
|
|
1198
1477
|
protected boot(): Promise<void>;
|
|
1199
1478
|
}
|
|
1200
1479
|
|
|
@@ -1205,7 +1484,9 @@ declare type BaseProp<T> = {
|
|
|
1205
1484
|
validator?(value: unknown): boolean;
|
|
1206
1485
|
};
|
|
1207
1486
|
|
|
1208
|
-
export declare function booleanInput(defaultValue?: boolean
|
|
1487
|
+
export declare function booleanInput(defaultValue?: boolean, options?: {
|
|
1488
|
+
rules?: string;
|
|
1489
|
+
}): FormFieldDefinition<typeof FormFieldTypes.Boolean>;
|
|
1209
1490
|
|
|
1210
1491
|
export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolean>;
|
|
1211
1492
|
|
|
@@ -1215,6 +1496,17 @@ export declare function bootstrap(rootComponent: Component, options?: AerogelOpt
|
|
|
1215
1496
|
|
|
1216
1497
|
export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
|
|
1217
1498
|
|
|
1499
|
+
declare const Cache_2: Facade<CacheService, CacheService>;
|
|
1500
|
+
export { Cache_2 as Cache }
|
|
1501
|
+
|
|
1502
|
+
export declare class CacheService extends Service {
|
|
1503
|
+
private cache?;
|
|
1504
|
+
get(url: string): Promise<Response | null>;
|
|
1505
|
+
store(url: string, response: Response): Promise<void>;
|
|
1506
|
+
replace(url: string, response: Response): Promise<void>;
|
|
1507
|
+
protected open(): Promise<Cache>;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1218
1510
|
export declare type Color = (typeof Colors)[keyof typeof Colors];
|
|
1219
1511
|
|
|
1220
1512
|
export declare const Colors: {
|
|
@@ -1231,11 +1523,17 @@ export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
|
|
|
1231
1523
|
export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
|
|
1232
1524
|
|
|
1233
1525
|
export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
|
|
1234
|
-
[K in keyof TComputedState]: (state:
|
|
1526
|
+
[K in keyof TComputedState]: (state: Unref<TState>) => TComputedState[K];
|
|
1235
1527
|
} & ThisType<{
|
|
1236
1528
|
readonly [K in keyof TComputedState]: TComputedState[K];
|
|
1237
1529
|
}>;
|
|
1238
1530
|
|
|
1531
|
+
export declare type ConfirmCheckboxes = Record<string, {
|
|
1532
|
+
label: string;
|
|
1533
|
+
default?: boolean;
|
|
1534
|
+
required?: boolean;
|
|
1535
|
+
}>;
|
|
1536
|
+
|
|
1239
1537
|
export declare const confirmModalProps: {
|
|
1240
1538
|
title: {
|
|
1241
1539
|
type?: PropType<string | null> | undefined;
|
|
@@ -1255,94 +1553,148 @@ export declare const confirmModalProps: {
|
|
|
1255
1553
|
} & {
|
|
1256
1554
|
default: string | (() => string | null) | null;
|
|
1257
1555
|
};
|
|
1556
|
+
acceptColor: {
|
|
1557
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1558
|
+
validator?(value: unknown): boolean;
|
|
1559
|
+
} & {
|
|
1560
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1561
|
+
};
|
|
1258
1562
|
cancelText: {
|
|
1259
1563
|
type?: PropType<string | null> | undefined;
|
|
1260
1564
|
validator?(value: unknown): boolean;
|
|
1261
1565
|
} & {
|
|
1262
1566
|
default: string | (() => string | null) | null;
|
|
1263
1567
|
};
|
|
1568
|
+
cancelColor: {
|
|
1569
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
1570
|
+
validator?(value: unknown): boolean;
|
|
1571
|
+
} & {
|
|
1572
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
1573
|
+
};
|
|
1574
|
+
checkboxes: {
|
|
1575
|
+
type?: PropType<ConfirmCheckboxes | null> | undefined;
|
|
1576
|
+
validator?(value: unknown): boolean;
|
|
1577
|
+
} & {
|
|
1578
|
+
default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
|
|
1579
|
+
};
|
|
1580
|
+
actions: {
|
|
1581
|
+
type?: PropType<Record<string, () => unknown> | null> | undefined;
|
|
1582
|
+
validator?(value: unknown): boolean;
|
|
1583
|
+
} & {
|
|
1584
|
+
default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
|
|
1585
|
+
};
|
|
1586
|
+
required: {
|
|
1587
|
+
type?: PropType<boolean> | undefined;
|
|
1588
|
+
validator?(value: unknown): boolean;
|
|
1589
|
+
} & {
|
|
1590
|
+
default: boolean | (() => boolean) | null;
|
|
1591
|
+
};
|
|
1264
1592
|
};
|
|
1265
1593
|
|
|
1266
|
-
export declare
|
|
1594
|
+
export declare type ConfirmOptions = AcceptRefs<{
|
|
1267
1595
|
acceptText?: string;
|
|
1596
|
+
acceptColor?: Color;
|
|
1268
1597
|
cancelText?: string;
|
|
1598
|
+
cancelColor?: Color;
|
|
1599
|
+
actions?: Record<string, () => unknown>;
|
|
1600
|
+
required?: boolean;
|
|
1601
|
+
}>;
|
|
1602
|
+
|
|
1603
|
+
export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmCheckboxes = ConfirmCheckboxes> extends ConfirmOptions {
|
|
1604
|
+
checkboxes?: T;
|
|
1269
1605
|
}
|
|
1270
1606
|
|
|
1271
|
-
declare
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
hasNewErrors: boolean;
|
|
1277
|
-
hasStartupErrors: boolean;
|
|
1278
|
-
}> & Constructor<Service<UnrefServiceState< {
|
|
1607
|
+
export declare function dateInput(defaultValue?: Date, options?: {
|
|
1608
|
+
rules?: string;
|
|
1609
|
+
}): FormFieldDefinition<typeof FormFieldTypes.Date>;
|
|
1610
|
+
|
|
1611
|
+
declare const _default: ServiceWithState< {
|
|
1279
1612
|
logs: ErrorReportLog[];
|
|
1280
1613
|
startupErrors: ErrorReport[];
|
|
1281
|
-
}
|
|
1614
|
+
}, {
|
|
1282
1615
|
hasErrors: boolean;
|
|
1283
1616
|
hasNewErrors: boolean;
|
|
1284
1617
|
hasStartupErrors: boolean;
|
|
1285
|
-
}, Partial<
|
|
1618
|
+
}, Partial<{
|
|
1286
1619
|
logs: ErrorReportLog[];
|
|
1287
1620
|
startupErrors: ErrorReport[];
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
declare const _default_2:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1621
|
+
}>>;
|
|
1622
|
+
|
|
1623
|
+
declare const _default_2: ServiceWithState< {
|
|
1624
|
+
locale: string | null;
|
|
1625
|
+
locales: string[];
|
|
1626
|
+
fallbackLocale: string;
|
|
1627
|
+
}, {}, Partial<{
|
|
1628
|
+
locale: string | null;
|
|
1629
|
+
locales: string[];
|
|
1630
|
+
fallbackLocale: string;
|
|
1631
|
+
}>>;
|
|
1632
|
+
|
|
1633
|
+
declare const _default_3: ServiceWithState< {
|
|
1298
1634
|
plugins: Record<string, Plugin_2>;
|
|
1635
|
+
instance: App_2<any> | null;
|
|
1299
1636
|
environment: string;
|
|
1637
|
+
version: string;
|
|
1300
1638
|
sourceUrl: string | undefined;
|
|
1301
|
-
}
|
|
1639
|
+
}, {
|
|
1302
1640
|
development: boolean;
|
|
1641
|
+
staging: boolean;
|
|
1303
1642
|
testing: boolean;
|
|
1304
|
-
|
|
1643
|
+
versionName: string;
|
|
1644
|
+
versionUrl: string;
|
|
1645
|
+
}, Partial<{
|
|
1305
1646
|
plugins: Record<string, Plugin_2>;
|
|
1647
|
+
instance: App_2<any> | null;
|
|
1306
1648
|
environment: string;
|
|
1649
|
+
version: string;
|
|
1307
1650
|
sourceUrl: string | undefined;
|
|
1308
|
-
}
|
|
1651
|
+
}>>;
|
|
1309
1652
|
|
|
1310
|
-
declare const
|
|
1311
|
-
modals: Modal<unknown>[];
|
|
1312
|
-
snackbars: Snackbar[];
|
|
1313
|
-
}>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
|
|
1653
|
+
declare const _default_4: ServiceWithState< {
|
|
1314
1654
|
modals: Modal<unknown>[];
|
|
1315
1655
|
snackbars: Snackbar[];
|
|
1316
|
-
|
|
1656
|
+
layout: Layout;
|
|
1657
|
+
}, {
|
|
1658
|
+
mobile: boolean;
|
|
1659
|
+
desktop: boolean;
|
|
1660
|
+
}, Partial<{
|
|
1317
1661
|
modals: Modal<unknown>[];
|
|
1318
1662
|
snackbars: Snackbar[];
|
|
1319
|
-
|
|
1663
|
+
layout: Layout;
|
|
1664
|
+
}>>;
|
|
1320
1665
|
|
|
1321
1666
|
export declare type DefaultServices = typeof defaultServices;
|
|
1322
1667
|
|
|
1323
1668
|
declare const defaultServices: {
|
|
1324
1669
|
$app: Facade<AppService, AppService>;
|
|
1325
1670
|
$events: Facade<EventsService, EventsService>;
|
|
1671
|
+
$storage: Facade<StorageService, StorageService>;
|
|
1326
1672
|
};
|
|
1327
1673
|
|
|
1328
1674
|
export declare type DefaultServiceState = any;
|
|
1329
1675
|
|
|
1330
1676
|
export declare function defineDirective(directive: Directive): Directive;
|
|
1331
1677
|
|
|
1678
|
+
export declare function defineFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
|
|
1679
|
+
|
|
1332
1680
|
export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
|
|
1333
1681
|
|
|
1334
|
-
export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}
|
|
1682
|
+
export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>>(options: {
|
|
1335
1683
|
name: string;
|
|
1336
1684
|
initialState: State | (() => State);
|
|
1337
1685
|
persist?: (keyof State)[];
|
|
1686
|
+
watch?: StateWatchers<Service, State>;
|
|
1338
1687
|
computed?: ComputedStateDefinition<State, ComputedState>;
|
|
1339
|
-
serialize?: (state: Partial<State>) =>
|
|
1340
|
-
|
|
1688
|
+
serialize?: (state: Partial<State>) => ServiceStorage;
|
|
1689
|
+
restore?: (state: ServiceStorage) => Partial<State>;
|
|
1690
|
+
}): ServiceWithState<State, ComputedState, ServiceStorage>;
|
|
1341
1691
|
|
|
1342
1692
|
export declare function defineServiceStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(name: Id, options: Omit<DefineStoreOptions<Id, S, G, A>, 'id'>): Store<Id, S, G, A>;
|
|
1343
1693
|
|
|
1344
1694
|
export declare function dispatch(job: Job): Promise<void>;
|
|
1345
1695
|
|
|
1696
|
+
export declare function elementRef(): Ref<HTMLElement | undefined>;
|
|
1697
|
+
|
|
1346
1698
|
export declare interface ElementSize {
|
|
1347
1699
|
width: number;
|
|
1348
1700
|
height: number;
|
|
@@ -1352,6 +1704,8 @@ export declare function enumProp<Enum extends Record<string, unknown>>(enumerati
|
|
|
1352
1704
|
|
|
1353
1705
|
export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
1354
1706
|
|
|
1707
|
+
declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
|
|
1708
|
+
|
|
1355
1709
|
export declare interface ErrorReport {
|
|
1356
1710
|
title: string;
|
|
1357
1711
|
description?: string;
|
|
@@ -1399,7 +1753,7 @@ declare type EventListener_2<T = unknown> = (payload: T) => unknown;
|
|
|
1399
1753
|
export { EventListener_2 as EventListener }
|
|
1400
1754
|
|
|
1401
1755
|
declare interface EventListenerOptions_2 {
|
|
1402
|
-
priority:
|
|
1756
|
+
priority: EventListenerPriority;
|
|
1403
1757
|
}
|
|
1404
1758
|
export { EventListenerOptions_2 as EventListenerOptions }
|
|
1405
1759
|
|
|
@@ -1409,6 +1763,8 @@ export declare const EventListenerPriorities: {
|
|
|
1409
1763
|
readonly High: 256;
|
|
1410
1764
|
};
|
|
1411
1765
|
|
|
1766
|
+
export declare type EventListenerPriority = (typeof EventListenerPriorities)[keyof typeof EventListenerPriorities];
|
|
1767
|
+
|
|
1412
1768
|
export declare const Events: Facade<EventsService, EventsService>;
|
|
1413
1769
|
|
|
1414
1770
|
export declare interface EventsPayload {
|
|
@@ -1421,10 +1777,13 @@ export declare class EventsService extends Service {
|
|
|
1421
1777
|
emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
|
|
1422
1778
|
emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
|
|
1423
1779
|
on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
|
|
1780
|
+
on<Event extends EventWithoutPayload>(event: Event, priority: EventListenerPriority, listener: () => unknown): () => void;
|
|
1424
1781
|
on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
|
|
1425
1782
|
on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
|
|
1783
|
+
on<Event extends EventWithPayload>(event: Event, priority: EventListenerPriority, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
|
|
1426
1784
|
on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
|
|
1427
1785
|
on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
|
|
1786
|
+
on<Event extends string>(event: UnknownEvent<Event>, priority: EventListenerPriority, listener: EventListener_2): () => void;
|
|
1428
1787
|
on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
|
|
1429
1788
|
once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
|
|
1430
1789
|
once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
|
|
@@ -1450,23 +1809,33 @@ export declare function extractModalProps<T extends ExtractPropTypes<typeof moda
|
|
|
1450
1809
|
|
|
1451
1810
|
export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
|
|
1452
1811
|
|
|
1453
|
-
declare
|
|
1812
|
+
export declare type FocusFormListener = (input: string) => unknown;
|
|
1813
|
+
|
|
1814
|
+
export declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
|
|
1454
1815
|
errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
|
|
1455
1816
|
private _fields;
|
|
1456
1817
|
private _data;
|
|
1457
1818
|
private _submitted;
|
|
1458
1819
|
private _errors;
|
|
1820
|
+
private _listeners;
|
|
1459
1821
|
constructor(fields: Fields);
|
|
1460
1822
|
get valid(): boolean;
|
|
1461
1823
|
get submitted(): boolean;
|
|
1462
1824
|
setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
|
|
1463
1825
|
getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
|
|
1826
|
+
getFieldRules<T extends keyof Fields>(field: T): string[];
|
|
1827
|
+
data(): FormData_2<Fields>;
|
|
1464
1828
|
validate(): boolean;
|
|
1465
1829
|
reset(options?: {
|
|
1466
1830
|
keepData?: boolean;
|
|
1467
1831
|
keepErrors?: boolean;
|
|
1468
1832
|
}): void;
|
|
1469
1833
|
submit(): boolean;
|
|
1834
|
+
on(event: 'focus', listener: FocusFormListener): () => void;
|
|
1835
|
+
on(event: 'submit', listener: SubmitFormListener): () => void;
|
|
1836
|
+
off(event: 'focus', listener: FocusFormListener): void;
|
|
1837
|
+
off(event: 'submit', listener: SubmitFormListener): void;
|
|
1838
|
+
focus(input: string): Promise<void>;
|
|
1470
1839
|
protected __get(property: string): unknown;
|
|
1471
1840
|
protected __set(property: string, value: unknown): void;
|
|
1472
1841
|
private getFieldErrors;
|
|
@@ -1487,6 +1856,7 @@ export declare type FormErrors<T> = {
|
|
|
1487
1856
|
|
|
1488
1857
|
export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string> {
|
|
1489
1858
|
type: TType;
|
|
1859
|
+
trim?: boolean;
|
|
1490
1860
|
default?: GetFormFieldValue<TType>;
|
|
1491
1861
|
rules?: TRules;
|
|
1492
1862
|
}
|
|
@@ -1500,16 +1870,29 @@ export declare const FormFieldTypes: {
|
|
|
1500
1870
|
readonly Number: "number";
|
|
1501
1871
|
readonly Boolean: "boolean";
|
|
1502
1872
|
readonly Object: "object";
|
|
1873
|
+
readonly Date: "date";
|
|
1503
1874
|
};
|
|
1504
1875
|
|
|
1876
|
+
export declare type FormFieldValidator<T = unknown> = (value: T) => string | string[] | undefined;
|
|
1877
|
+
|
|
1505
1878
|
export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
|
|
1506
1879
|
|
|
1880
|
+
export declare function getCurrentLayout(): Layout;
|
|
1881
|
+
|
|
1882
|
+
export declare function getElement(value: unknown): HTMLElement | undefined;
|
|
1883
|
+
|
|
1507
1884
|
export declare function getErrorMessage(error: ErrorSource): string;
|
|
1508
1885
|
|
|
1509
|
-
export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : TType extends typeof FormFieldTypes.Object ? object : never;
|
|
1886
|
+
export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : TType extends typeof FormFieldTypes.Object ? object : TType extends typeof FormFieldTypes.Date ? Date : never;
|
|
1510
1887
|
|
|
1511
1888
|
export declare function getPiniaStore(): Pinia;
|
|
1512
1889
|
|
|
1890
|
+
export declare interface HasElement {
|
|
1891
|
+
$el: Readonly<Ref<HTMLElement | undefined>>;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
export declare function hasElement(value: unknown): value is UnwrapNestedRefs<HasElement>;
|
|
1895
|
+
|
|
1513
1896
|
export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
|
|
1514
1897
|
id: string;
|
|
1515
1898
|
description: string;
|
|
@@ -1518,13 +1901,18 @@ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
|
|
|
1518
1901
|
handler?(): void;
|
|
1519
1902
|
}
|
|
1520
1903
|
|
|
1521
|
-
export declare interface
|
|
1904
|
+
export declare interface IAGHeadlessButton extends HasElement {
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
export declare interface IAGHeadlessInput extends HasElement {
|
|
1522
1908
|
id: string;
|
|
1523
1909
|
name: ComputedRef<string | null>;
|
|
1524
1910
|
label: ComputedRef<string | null>;
|
|
1525
|
-
|
|
1911
|
+
description: ComputedRef<string | boolean | null>;
|
|
1912
|
+
value: ComputedRef<FormFieldValue | null>;
|
|
1913
|
+
required: ComputedRef<boolean | null>;
|
|
1526
1914
|
errors: DeepReadonly<Ref<string[] | null>>;
|
|
1527
|
-
update(value:
|
|
1915
|
+
update(value: FormFieldValue | null): void;
|
|
1528
1916
|
}
|
|
1529
1917
|
|
|
1530
1918
|
export declare interface IAGHeadlessModal extends IAGModal {
|
|
@@ -1552,6 +1940,7 @@ export declare type IAGHeadlessSelectOptionSlotProps = {
|
|
|
1552
1940
|
};
|
|
1553
1941
|
|
|
1554
1942
|
export declare interface IAGModal {
|
|
1943
|
+
inline: Ref<boolean>;
|
|
1555
1944
|
cancellable: Ref<boolean>;
|
|
1556
1945
|
close(result?: unknown): Promise<void>;
|
|
1557
1946
|
}
|
|
@@ -1584,44 +1973,127 @@ export declare const inputProps: {
|
|
|
1584
1973
|
} & {
|
|
1585
1974
|
default: string | (() => string | null) | null;
|
|
1586
1975
|
};
|
|
1976
|
+
description: {
|
|
1977
|
+
type?: PropType<string | null> | undefined;
|
|
1978
|
+
validator?(value: unknown): boolean;
|
|
1979
|
+
} & {
|
|
1980
|
+
default: string | (() => string | null) | null;
|
|
1981
|
+
};
|
|
1982
|
+
modelValue: {
|
|
1983
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
1984
|
+
validator?(value: unknown): boolean;
|
|
1985
|
+
} & {
|
|
1986
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
1987
|
+
};
|
|
1587
1988
|
};
|
|
1588
1989
|
|
|
1589
1990
|
export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
|
|
1590
1991
|
|
|
1591
|
-
export declare abstract class Job {
|
|
1592
|
-
|
|
1992
|
+
export declare abstract class Job<Listener extends JobListener = JobListener, Status extends JobStatus = JobStatus, SerializedStatus extends JobStatus = JobStatus> {
|
|
1993
|
+
protected status: Status;
|
|
1994
|
+
protected _listeners: ListenersManager<JobListener>;
|
|
1995
|
+
protected _progress?: number;
|
|
1996
|
+
protected _cancelled?: PromisedValue<void>;
|
|
1997
|
+
protected _started: PromisedValue<void>;
|
|
1998
|
+
protected _completed: PromisedValue<void>;
|
|
1999
|
+
constructor();
|
|
2000
|
+
start(): Promise<void>;
|
|
2001
|
+
cancel(): Promise<void>;
|
|
2002
|
+
serialize(): SerializedStatus;
|
|
2003
|
+
get listeners(): Listeners<Listener>;
|
|
2004
|
+
get progress(): number;
|
|
2005
|
+
get cancelled(): boolean;
|
|
2006
|
+
get started(): Promise<void>;
|
|
2007
|
+
get completed(): Promise<void>;
|
|
2008
|
+
protected abstract run(): Promise<void>;
|
|
2009
|
+
protected getInitialStatus(): Status;
|
|
2010
|
+
protected beforeStart(): void;
|
|
2011
|
+
protected assertNotCancelled(): void;
|
|
2012
|
+
protected calculateCurrentProgress(status?: JobStatus): number;
|
|
2013
|
+
protected updateProgress(update?: (status: Status) => unknown): Promise<void>;
|
|
2014
|
+
protected serializeStatus(status: Status): SerializedStatus;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
export declare class JobCancelledError extends JSError {
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
export declare interface JobListener {
|
|
2021
|
+
onUpdated?(progress: number): unknown;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
export declare interface JobStatus {
|
|
2025
|
+
completed: boolean;
|
|
2026
|
+
children?: JobStatus[];
|
|
1593
2027
|
}
|
|
1594
2028
|
|
|
1595
2029
|
export declare const Lang: Facade<LangService, LangService>;
|
|
1596
2030
|
|
|
1597
2031
|
export declare interface LangProvider {
|
|
1598
|
-
|
|
1599
|
-
|
|
2032
|
+
getLocale(): string;
|
|
2033
|
+
setLocale(locale: string): Promise<void>;
|
|
2034
|
+
getFallbackLocale(): string;
|
|
2035
|
+
setFallbackLocale(fallbackLocale: string): Promise<void>;
|
|
2036
|
+
getLocales(): string[];
|
|
2037
|
+
translate(key: string, parameters?: Record<string, unknown> | number): string;
|
|
2038
|
+
translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
|
|
1600
2039
|
}
|
|
1601
2040
|
|
|
1602
|
-
declare class LangService extends
|
|
2041
|
+
declare class LangService extends _default_2 {
|
|
1603
2042
|
private provider;
|
|
1604
2043
|
constructor();
|
|
1605
|
-
setProvider(provider: LangProvider): void
|
|
1606
|
-
translate(key: string, parameters?: Record<string, unknown>): string;
|
|
1607
|
-
translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
|
|
2044
|
+
setProvider(provider: LangProvider): Promise<void>;
|
|
2045
|
+
translate(key: string, parameters?: Record<string, unknown> | number): string;
|
|
2046
|
+
translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
|
|
2047
|
+
getBrowserLocale(): string;
|
|
2048
|
+
protected boot(): Promise<void>;
|
|
1608
2049
|
}
|
|
1609
2050
|
|
|
1610
2051
|
export declare type LangServices = typeof services_2;
|
|
1611
2052
|
|
|
2053
|
+
export declare type Layout = (typeof Layouts)[keyof typeof Layouts];
|
|
2054
|
+
|
|
2055
|
+
export declare const Layouts: {
|
|
2056
|
+
readonly Mobile: "mobile";
|
|
2057
|
+
readonly Desktop: "desktop";
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
export declare function listenerProp<T extends Function = Function>(): OptionalProp<T | null>;
|
|
2061
|
+
|
|
1612
2062
|
export declare const loadingModalProps: {
|
|
2063
|
+
title: {
|
|
2064
|
+
type?: PropType<string | null> | undefined;
|
|
2065
|
+
validator?(value: unknown): boolean;
|
|
2066
|
+
} & {
|
|
2067
|
+
default: string | (() => string | null) | null;
|
|
2068
|
+
};
|
|
1613
2069
|
message: {
|
|
1614
2070
|
type?: PropType<string | null> | undefined;
|
|
1615
2071
|
validator?(value: unknown): boolean;
|
|
1616
2072
|
} & {
|
|
1617
2073
|
default: string | (() => string | null) | null;
|
|
1618
2074
|
};
|
|
2075
|
+
progress: {
|
|
2076
|
+
type?: PropType<number | null> | undefined;
|
|
2077
|
+
validator?(value: unknown): boolean;
|
|
2078
|
+
} & {
|
|
2079
|
+
default: number | (() => number | null) | null;
|
|
2080
|
+
};
|
|
1619
2081
|
};
|
|
1620
2082
|
|
|
2083
|
+
export declare type LoadingOptions = AcceptRefs<{
|
|
2084
|
+
title?: string;
|
|
2085
|
+
message?: string;
|
|
2086
|
+
progress?: number;
|
|
2087
|
+
}>;
|
|
2088
|
+
|
|
1621
2089
|
export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
|
|
1622
2090
|
|
|
1623
2091
|
export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
|
|
1624
2092
|
|
|
2093
|
+
export declare function mixedProp<T>(type: PropType<T>, defaultValue: T): OptionalProp<T>;
|
|
2094
|
+
|
|
2095
|
+
export declare const MOBILE_BREAKPOINT = 768;
|
|
2096
|
+
|
|
1625
2097
|
declare interface Modal<T = unknown> {
|
|
1626
2098
|
id: string;
|
|
1627
2099
|
properties: Record<string, unknown>;
|
|
@@ -1642,6 +2114,12 @@ export declare const modalProps: {
|
|
|
1642
2114
|
} & {
|
|
1643
2115
|
default: boolean | (() => boolean) | null;
|
|
1644
2116
|
};
|
|
2117
|
+
inline: {
|
|
2118
|
+
type?: PropType<boolean> | undefined;
|
|
2119
|
+
validator?(value: unknown): boolean;
|
|
2120
|
+
} & {
|
|
2121
|
+
default: boolean | (() => boolean) | null;
|
|
2122
|
+
};
|
|
1645
2123
|
title: {
|
|
1646
2124
|
type?: PropType<string | null> | undefined;
|
|
1647
2125
|
validator?(value: unknown): boolean;
|
|
@@ -1652,7 +2130,9 @@ export declare const modalProps: {
|
|
|
1652
2130
|
|
|
1653
2131
|
declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
|
|
1654
2132
|
|
|
1655
|
-
export declare function numberInput(defaultValue?: number
|
|
2133
|
+
export declare function numberInput(defaultValue?: number, options?: {
|
|
2134
|
+
rules?: string;
|
|
2135
|
+
}): FormFieldDefinition<typeof FormFieldTypes.Number>;
|
|
1656
2136
|
|
|
1657
2137
|
export declare function numberProp(): OptionalProp<number | null>;
|
|
1658
2138
|
|
|
@@ -1664,10 +2144,16 @@ export declare function objectProp<T>(defaultValue: () => T): OptionalProp<T>;
|
|
|
1664
2144
|
|
|
1665
2145
|
export declare function onCleanMounted(operation: () => Function): void;
|
|
1666
2146
|
|
|
2147
|
+
export declare function onFormFocus(input: {
|
|
2148
|
+
name: string | null;
|
|
2149
|
+
}, listener: () => unknown): void;
|
|
2150
|
+
|
|
1667
2151
|
declare type OptionalProp<T> = BaseProp<T> & {
|
|
1668
2152
|
default: T | (() => T) | null;
|
|
1669
2153
|
};
|
|
1670
2154
|
|
|
2155
|
+
export declare function persistent<T extends object>(name: string, defaults: T): UnwrapNestedRefs<T>;
|
|
2156
|
+
|
|
1671
2157
|
declare interface Plugin_2 {
|
|
1672
2158
|
name?: string;
|
|
1673
2159
|
install(app: App_2, options: AerogelOptions): void | Promise<void>;
|
|
@@ -1711,28 +2197,57 @@ export declare const promptModalProps: {
|
|
|
1711
2197
|
} & {
|
|
1712
2198
|
default: string | (() => string | null) | null;
|
|
1713
2199
|
};
|
|
2200
|
+
acceptColor: {
|
|
2201
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
2202
|
+
validator?(value: unknown): boolean;
|
|
2203
|
+
} & {
|
|
2204
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
2205
|
+
};
|
|
1714
2206
|
cancelText: {
|
|
1715
2207
|
type?: PropType<string | null> | undefined;
|
|
1716
2208
|
validator?(value: unknown): boolean;
|
|
1717
2209
|
} & {
|
|
1718
2210
|
default: string | (() => string | null) | null;
|
|
1719
2211
|
};
|
|
2212
|
+
cancelColor: {
|
|
2213
|
+
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
2214
|
+
validator?(value: unknown): boolean;
|
|
2215
|
+
} & {
|
|
2216
|
+
default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
|
|
2217
|
+
};
|
|
1720
2218
|
};
|
|
1721
2219
|
|
|
1722
|
-
export declare
|
|
2220
|
+
export declare type PromptOptions = AcceptRefs<{
|
|
1723
2221
|
label?: string;
|
|
1724
2222
|
defaultValue?: string;
|
|
1725
2223
|
placeholder?: string;
|
|
1726
2224
|
acceptText?: string;
|
|
2225
|
+
acceptColor?: Color;
|
|
1727
2226
|
cancelText?: string;
|
|
1728
|
-
|
|
2227
|
+
cancelColor?: Color;
|
|
2228
|
+
trim?: boolean;
|
|
2229
|
+
}>;
|
|
2230
|
+
|
|
2231
|
+
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2232
|
+
|
|
2233
|
+
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
1729
2234
|
|
|
1730
2235
|
export declare function removeInteractiveClasses(classes: string): string;
|
|
1731
2236
|
|
|
2237
|
+
export declare function renderMarkdown(markdown: string): string;
|
|
2238
|
+
|
|
2239
|
+
export declare type Replace<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>> = {
|
|
2240
|
+
[K in keyof TOriginal]: TReplacements extends Record<K, infer Replacement> ? Replacement : TOriginal[K];
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
export declare function replaceExisting<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>>(original: TOriginal, replacements: TReplacements): Replace<TOriginal, TReplacements>;
|
|
2244
|
+
|
|
1732
2245
|
export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
|
|
1733
2246
|
|
|
1734
2247
|
export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
|
|
1735
2248
|
|
|
2249
|
+
export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
|
|
2250
|
+
|
|
1736
2251
|
export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
|
|
1737
2252
|
|
|
1738
2253
|
export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
|
|
@@ -1753,6 +2268,8 @@ export declare function requiredStringProp(): RequiredProp<string>;
|
|
|
1753
2268
|
|
|
1754
2269
|
export declare function resetPiniaStore(): Pinia;
|
|
1755
2270
|
|
|
2271
|
+
export declare function safeHtml(html: string): string;
|
|
2272
|
+
|
|
1756
2273
|
export declare const selectEmits: readonly ["update:modelValue"];
|
|
1757
2274
|
|
|
1758
2275
|
export declare const selectProps: {
|
|
@@ -1788,14 +2305,17 @@ export declare const selectProps: {
|
|
|
1788
2305
|
};
|
|
1789
2306
|
};
|
|
1790
2307
|
|
|
1791
|
-
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage
|
|
2308
|
+
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
1792
2309
|
static persist: string[];
|
|
1793
2310
|
protected _name: string;
|
|
1794
2311
|
private _booted;
|
|
1795
2312
|
private _computedStateKeys;
|
|
2313
|
+
private _watchers;
|
|
1796
2314
|
private _store;
|
|
1797
2315
|
constructor();
|
|
1798
2316
|
get booted(): PromisedValue<void>;
|
|
2317
|
+
static<T extends typeof Service>(): T;
|
|
2318
|
+
static<T extends typeof Service, K extends keyof T>(property: K): T[K];
|
|
1799
2319
|
launch(): Promise<void>;
|
|
1800
2320
|
hasPersistedState(): boolean;
|
|
1801
2321
|
hasState<P extends keyof State>(property: P): boolean;
|
|
@@ -1803,17 +2323,27 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
|
|
|
1803
2323
|
getState<P extends keyof State>(property: P): State[P];
|
|
1804
2324
|
setState<P extends keyof State>(property: P, value: State[P]): void;
|
|
1805
2325
|
setState(state: Partial<State>): void;
|
|
2326
|
+
updatePersistedState<T extends keyof State>(key: T): void;
|
|
2327
|
+
updatePersistedState<T extends keyof State>(keys: T[]): void;
|
|
1806
2328
|
protected __get(property: string): unknown;
|
|
1807
2329
|
protected __set(property: string, value: unknown): void;
|
|
1808
|
-
protected onStateUpdated(
|
|
2330
|
+
protected onStateUpdated(update: Partial<State>, old: Partial<State>): void;
|
|
2331
|
+
protected onPersistentStateUpdated(persisted: Partial<State>): void;
|
|
1809
2332
|
protected usesStore(): boolean;
|
|
1810
2333
|
protected getName(): string | null;
|
|
1811
2334
|
protected getInitialState(): State;
|
|
1812
2335
|
protected getComputedStateDefinition(): ComputedStateDefinition<State, ComputedState>;
|
|
1813
|
-
protected
|
|
2336
|
+
protected getStateWatchers(): StateWatchers<Service, State>;
|
|
2337
|
+
protected serializePersistedState(state: Partial<State>): ServiceStorage;
|
|
2338
|
+
protected deserializePersistedState(state: ServiceStorage): Partial<State>;
|
|
1814
2339
|
protected frameworkBoot(): Promise<void>;
|
|
1815
2340
|
protected boot(): Promise<void>;
|
|
1816
|
-
protected
|
|
2341
|
+
protected restorePersistedState(): void;
|
|
2342
|
+
protected requireStore(): Store<string, State, ComputedState, {}>;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
export declare class ServiceBootError extends JSError {
|
|
2346
|
+
constructor(serviceNamespace: string, cause: unknown);
|
|
1817
2347
|
}
|
|
1818
2348
|
|
|
1819
2349
|
export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
|
|
@@ -1835,6 +2365,8 @@ declare const services_3: {
|
|
|
1835
2365
|
|
|
1836
2366
|
export declare type ServiceState = Record<string, any>;
|
|
1837
2367
|
|
|
2368
|
+
export declare type ServiceWithState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> = Constructor<Unref<State>> & Constructor<ComputedState> & Constructor<Service<Unref<State>, ComputedState, Unref<ServiceStorage>>>;
|
|
2369
|
+
|
|
1838
2370
|
export declare interface ShowSnackbarOptions {
|
|
1839
2371
|
component?: Component;
|
|
1840
2372
|
color?: SnackbarColor;
|
|
@@ -1889,15 +2421,30 @@ export declare const snackbarProps: {
|
|
|
1889
2421
|
};
|
|
1890
2422
|
};
|
|
1891
2423
|
|
|
1892
|
-
export declare
|
|
2424
|
+
export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
|
|
2425
|
+
[K in keyof TState]?: (this: TService, value: TState[K], oldValue: TState[K]) => unknown;
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
declare const Storage_2: Facade<StorageService, StorageService>;
|
|
2429
|
+
export { Storage_2 as Storage }
|
|
2430
|
+
|
|
2431
|
+
declare class StorageService extends Service {
|
|
2432
|
+
purge(): Promise<void>;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
export declare function stringInput(defaultValue?: string, options?: {
|
|
2436
|
+
rules?: string;
|
|
2437
|
+
}): FormFieldDefinition<typeof FormFieldTypes.String>;
|
|
1893
2438
|
|
|
1894
2439
|
export declare function stringProp(): OptionalProp<string | null>;
|
|
1895
2440
|
|
|
1896
2441
|
export declare function stringProp(defaultValue: string): OptionalProp<string>;
|
|
1897
2442
|
|
|
1898
|
-
export declare
|
|
2443
|
+
export declare type SubmitFormListener = () => unknown;
|
|
2444
|
+
|
|
2445
|
+
export declare const translate: (key: string, parameters?: number | Record<string, unknown> | undefined) => string;
|
|
1899
2446
|
|
|
1900
|
-
export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: Record<string, unknown>) => string;
|
|
2447
|
+
export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: number | Record<string, unknown>) => string;
|
|
1901
2448
|
|
|
1902
2449
|
export declare const UI: Facade<UIService, UIService>;
|
|
1903
2450
|
|
|
@@ -1913,7 +2460,7 @@ export declare const UIComponents: {
|
|
|
1913
2460
|
readonly StartupCrash: "startup-crash";
|
|
1914
2461
|
};
|
|
1915
2462
|
|
|
1916
|
-
export declare class UIService extends
|
|
2463
|
+
export declare class UIService extends _default_4 {
|
|
1917
2464
|
private modalCallbacks;
|
|
1918
2465
|
private components;
|
|
1919
2466
|
requireComponent(name: UIComponent): Component;
|
|
@@ -1921,26 +2468,32 @@ export declare class UIService extends _default_3 {
|
|
|
1921
2468
|
alert(title: string, message: string): void;
|
|
1922
2469
|
confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
|
|
1923
2470
|
confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
|
|
2471
|
+
confirm<T extends ConfirmCheckboxes>(message: string, options?: ConfirmOptionsWithCheckboxes<T>): Promise<[boolean, Record<keyof T, boolean>]>;
|
|
2472
|
+
confirm<T extends ConfirmCheckboxes>(title: string, message: string, options?: ConfirmOptionsWithCheckboxes<T>): Promise<[boolean, Record<keyof T, boolean>]>;
|
|
1924
2473
|
prompt(message: string, options?: PromptOptions): Promise<string | null>;
|
|
1925
2474
|
prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
|
|
1926
|
-
loading<T>(operation: Promise<T>): Promise<T>;
|
|
1927
|
-
loading<T>(message: string, operation: Promise<T>): Promise<T>;
|
|
2475
|
+
loading<T>(operation: Promise<T> | (() => T)): Promise<T>;
|
|
2476
|
+
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2477
|
+
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
1928
2478
|
showSnackbar(message: string, options?: ShowSnackbarOptions): void;
|
|
1929
2479
|
hideSnackbar(id: string): void;
|
|
1930
2480
|
registerComponent(name: UIComponent, component: Component): void;
|
|
1931
2481
|
openModal<TModalComponent extends ModalComponent>(component: TModalComponent, properties?: ModalProperties<TModalComponent>): Promise<Modal<ModalResult<TModalComponent>>>;
|
|
1932
2482
|
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2483
|
+
closeAllModals(): Promise<void>;
|
|
1933
2484
|
protected boot(): Promise<void>;
|
|
2485
|
+
private removeModal;
|
|
1934
2486
|
private watchModalEvents;
|
|
1935
2487
|
private watchMountedEvent;
|
|
2488
|
+
private watchViewportBreakpoints;
|
|
1936
2489
|
}
|
|
1937
2490
|
|
|
1938
2491
|
export declare type UIServices = typeof services_3;
|
|
1939
2492
|
|
|
1940
2493
|
export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
|
|
1941
2494
|
|
|
1942
|
-
export declare type
|
|
1943
|
-
[K in keyof
|
|
2495
|
+
export declare type Unref<T> = {
|
|
2496
|
+
[K in keyof T]: T[K] extends MaybeRef<infer Value> ? Value : T[K];
|
|
1944
2497
|
};
|
|
1945
2498
|
|
|
1946
2499
|
export declare function useAlertModalProps(): typeof alertModalProps;
|
|
@@ -1978,6 +2531,7 @@ export declare function useInputProps(): typeof inputProps;
|
|
|
1978
2531
|
|
|
1979
2532
|
export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
|
|
1980
2533
|
renderedMessage: ComputedRef<string>;
|
|
2534
|
+
showProgress: ComputedRef<boolean>;
|
|
1981
2535
|
};
|
|
1982
2536
|
|
|
1983
2537
|
export declare function useLoadingModalProps(): typeof loadingModalProps;
|
|
@@ -2003,6 +2557,10 @@ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps
|
|
|
2003
2557
|
|
|
2004
2558
|
export declare function useSnackbarProps(): typeof snackbarProps;
|
|
2005
2559
|
|
|
2560
|
+
export declare function validate(value: unknown, rule: string): string[];
|
|
2561
|
+
|
|
2562
|
+
export declare const validators: Record<string, FormFieldValidator>;
|
|
2563
|
+
|
|
2006
2564
|
export { }
|
|
2007
2565
|
|
|
2008
2566
|
export interface EventsPayload {
|
|
@@ -2037,6 +2595,10 @@ declare global {
|
|
|
2037
2595
|
var __aerogelEvents__: AerogelGlobalEvents | undefined;
|
|
2038
2596
|
}
|
|
2039
2597
|
|
|
2598
|
+
export interface EventsPayload {
|
|
2599
|
+
'purge-storage': void;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2040
2602
|
export interface AerogelOptions {
|
|
2041
2603
|
services?: Record<string, Service>;
|
|
2042
2604
|
}
|