@aerogel/core 0.0.0-next.a56c0f4966eb71571173f8502f3f36d357ceebc7 → 0.0.0-next.b18f4e0acd39431045c2f444c711303890143193
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 +593 -122
- package/dist/aerogel-core.esm.js +1 -1
- package/dist/aerogel-core.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/bootstrap/bootstrap.test.ts +3 -3
- package/src/bootstrap/index.ts +13 -3
- package/src/bootstrap/options.ts +3 -0
- package/src/components/AGAppLayout.vue +3 -2
- package/src/components/AGAppOverlays.vue +5 -1
- package/src/components/forms/AGCheckbox.vue +7 -1
- package/src/components/forms/AGInput.vue +8 -6
- package/src/components/forms/AGSelect.story.vue +21 -3
- package/src/components/forms/AGSelect.vue +10 -3
- package/src/components/headless/forms/AGHeadlessInput.ts +21 -1
- package/src/components/headless/forms/AGHeadlessInput.vue +4 -1
- package/src/components/headless/forms/AGHeadlessInputLabel.vue +8 -2
- package/src/components/headless/forms/AGHeadlessSelect.ts +21 -22
- package/src/components/headless/forms/AGHeadlessSelect.vue +24 -24
- package/src/components/headless/forms/AGHeadlessSelectLabel.vue +4 -1
- package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
- package/src/components/headless/modals/AGHeadlessModal.ts +27 -0
- package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
- package/src/components/headless/modals/index.ts +4 -6
- package/src/components/headless/snackbars/index.ts +23 -8
- package/src/components/lib/AGMeasured.vue +15 -0
- package/src/components/lib/index.ts +1 -0
- package/src/components/modals/AGAlertModal.ts +15 -0
- package/src/components/modals/AGAlertModal.vue +3 -14
- package/src/components/modals/AGConfirmModal.ts +27 -0
- package/src/components/modals/AGConfirmModal.vue +7 -11
- package/src/components/modals/AGErrorReportModal.ts +27 -1
- package/src/components/modals/AGErrorReportModal.vue +7 -15
- package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
- package/src/components/modals/AGLoadingModal.ts +23 -0
- package/src/components/modals/AGLoadingModal.vue +3 -7
- package/src/components/modals/AGModal.ts +2 -2
- package/src/components/modals/AGModal.vue +14 -12
- package/src/components/modals/AGPromptModal.ts +30 -0
- package/src/components/modals/AGPromptModal.vue +34 -0
- package/src/components/modals/index.ts +13 -19
- package/src/components/snackbars/AGSnackbar.vue +2 -8
- package/src/components/utils.ts +10 -0
- package/src/directives/index.ts +3 -1
- package/src/directives/measure.ts +12 -0
- package/src/errors/Errors.ts +11 -6
- package/src/errors/index.ts +1 -1
- package/src/forms/Form.ts +1 -0
- package/src/services/App.state.ts +0 -1
- package/src/services/App.ts +20 -2
- package/src/services/Service.ts +22 -12
- package/src/services/index.ts +1 -1
- package/src/ui/UI.ts +92 -11
- package/src/ui/index.ts +8 -3
- package/src/utils/composition/events.ts +1 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/tailwindcss.test.ts +26 -0
- package/src/utils/tailwindcss.ts +7 -0
- package/src/utils/vue.ts +10 -1
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
|
|
2
|
-
import { AllowedComponentProps } from 'vue';
|
|
3
2
|
import type { App as App_2 } from 'vue';
|
|
4
3
|
import type { Component } from 'vue';
|
|
5
|
-
import { ComponentCustomProps } from 'vue';
|
|
6
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
7
|
-
import
|
|
5
|
+
import { ComputedRef } from 'vue';
|
|
8
6
|
import { Constructor } from '@noeldemartin/utils';
|
|
9
7
|
import type { DeepReadonly } from 'vue';
|
|
10
8
|
import { DefineComponent } from 'vue';
|
|
@@ -15,18 +13,22 @@ import type { GetClosureArgs } from '@noeldemartin/utils';
|
|
|
15
13
|
import type { InjectionKey } from 'vue';
|
|
16
14
|
import type { JSError } from '@noeldemartin/utils';
|
|
17
15
|
import { MagicObject } from '@noeldemartin/utils';
|
|
16
|
+
import type { MaybeRef } from 'vue';
|
|
18
17
|
import type { ObjectValues } from '@noeldemartin/utils';
|
|
18
|
+
import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
|
|
19
19
|
import { PromisedValue } from '@noeldemartin/utils';
|
|
20
20
|
import { PropType } from 'vue';
|
|
21
|
-
import
|
|
21
|
+
import { PublicProps } from 'vue';
|
|
22
|
+
import { Ref } from 'vue';
|
|
22
23
|
import { RendererElement } from 'vue';
|
|
23
24
|
import { RendererNode } from 'vue';
|
|
24
25
|
import type { UnwrapNestedRefs } from 'vue';
|
|
25
26
|
import { VNode } from 'vue';
|
|
26
|
-
import {
|
|
27
|
+
import type { Writable } from '@noeldemartin/utils';
|
|
27
28
|
|
|
28
|
-
declare interface AerogelOptions {
|
|
29
|
+
export declare interface AerogelOptions {
|
|
29
30
|
plugins?: Plugin_2[];
|
|
31
|
+
install?(app: App_2): void | Promise<void>;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export declare const AGAlertModal: DefineComponent< {
|
|
@@ -44,7 +46,7 @@ required: true;
|
|
|
44
46
|
};
|
|
45
47
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
46
48
|
[key: string]: any;
|
|
47
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
49
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
48
50
|
title: {
|
|
49
51
|
type?: PropType<string | null> | undefined;
|
|
50
52
|
validator?(value: unknown): boolean;
|
|
@@ -61,13 +63,15 @@ required: true;
|
|
|
61
63
|
title: string | null;
|
|
62
64
|
}, {}>;
|
|
63
65
|
|
|
66
|
+
export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
|
|
67
|
+
|
|
64
68
|
export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
65
69
|
[key: string]: any;
|
|
66
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
70
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
67
71
|
|
|
68
72
|
export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
69
73
|
[key: string]: any;
|
|
70
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
74
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
71
75
|
|
|
72
76
|
export declare const AGButton: DefineComponent< {
|
|
73
77
|
color: {
|
|
@@ -78,7 +82,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
|
|
|
78
82
|
};
|
|
79
83
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
80
84
|
[key: string]: any;
|
|
81
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
85
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
82
86
|
color: {
|
|
83
87
|
type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
|
|
84
88
|
validator?(value: unknown): boolean;
|
|
@@ -98,14 +102,16 @@ default: string | (() => string | null) | null;
|
|
|
98
102
|
};
|
|
99
103
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
100
104
|
[key: string]: any;
|
|
101
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
105
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
102
106
|
name: {
|
|
103
107
|
type?: PropType<string | null> | undefined;
|
|
104
108
|
validator?(value: unknown): boolean;
|
|
105
109
|
} & {
|
|
106
110
|
default: string | (() => string | null) | null;
|
|
107
111
|
};
|
|
108
|
-
}
|
|
112
|
+
}>> & {
|
|
113
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
}, {
|
|
109
115
|
name: string | null;
|
|
110
116
|
}, {}>;
|
|
111
117
|
|
|
@@ -122,9 +128,21 @@ validator?(value: unknown): boolean;
|
|
|
122
128
|
} & {
|
|
123
129
|
required: true;
|
|
124
130
|
};
|
|
131
|
+
acceptText: {
|
|
132
|
+
type?: PropType<string | null> | undefined;
|
|
133
|
+
validator?(value: unknown): boolean;
|
|
134
|
+
} & {
|
|
135
|
+
default: string | (() => string | null) | null;
|
|
136
|
+
};
|
|
137
|
+
cancelText: {
|
|
138
|
+
type?: PropType<string | null> | undefined;
|
|
139
|
+
validator?(value: unknown): boolean;
|
|
140
|
+
} & {
|
|
141
|
+
default: string | (() => string | null) | null;
|
|
142
|
+
};
|
|
125
143
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
126
144
|
[key: string]: any;
|
|
127
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
145
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
128
146
|
title: {
|
|
129
147
|
type?: PropType<string | null> | undefined;
|
|
130
148
|
validator?(value: unknown): boolean;
|
|
@@ -137,10 +155,26 @@ validator?(value: unknown): boolean;
|
|
|
137
155
|
} & {
|
|
138
156
|
required: true;
|
|
139
157
|
};
|
|
158
|
+
acceptText: {
|
|
159
|
+
type?: PropType<string | null> | undefined;
|
|
160
|
+
validator?(value: unknown): boolean;
|
|
161
|
+
} & {
|
|
162
|
+
default: string | (() => string | null) | null;
|
|
163
|
+
};
|
|
164
|
+
cancelText: {
|
|
165
|
+
type?: PropType<string | null> | undefined;
|
|
166
|
+
validator?(value: unknown): boolean;
|
|
167
|
+
} & {
|
|
168
|
+
default: string | (() => string | null) | null;
|
|
169
|
+
};
|
|
140
170
|
}>>, {
|
|
141
171
|
title: string | null;
|
|
172
|
+
acceptText: string | null;
|
|
173
|
+
cancelText: string | null;
|
|
142
174
|
}, {}>;
|
|
143
175
|
|
|
176
|
+
export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
|
|
177
|
+
|
|
144
178
|
export declare const AGErrorMessage: DefineComponent< {
|
|
145
179
|
error: {
|
|
146
180
|
type?: PropType<unknown> | undefined;
|
|
@@ -150,7 +184,7 @@ required: true;
|
|
|
150
184
|
};
|
|
151
185
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
152
186
|
[key: string]: any;
|
|
153
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
187
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
154
188
|
error: {
|
|
155
189
|
type?: PropType<unknown> | undefined;
|
|
156
190
|
validator?(value: unknown): boolean;
|
|
@@ -168,7 +202,7 @@ required: true;
|
|
|
168
202
|
};
|
|
169
203
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
170
204
|
[key: string]: any;
|
|
171
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
205
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
172
206
|
report: {
|
|
173
207
|
type?: PropType<ErrorReport> | undefined;
|
|
174
208
|
validator?(value: unknown): boolean;
|
|
@@ -177,6 +211,8 @@ required: true;
|
|
|
177
211
|
};
|
|
178
212
|
}>>, {}, {}>;
|
|
179
213
|
|
|
214
|
+
export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
|
|
215
|
+
|
|
180
216
|
export declare const AGErrorReportModalTitle: DefineComponent< {
|
|
181
217
|
report: {
|
|
182
218
|
type?: PropType<ErrorReport> | undefined;
|
|
@@ -198,7 +234,7 @@ default: number | (() => number | null) | null;
|
|
|
198
234
|
};
|
|
199
235
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
200
236
|
[key: string]: any;
|
|
201
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
237
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
202
238
|
report: {
|
|
203
239
|
type?: PropType<ErrorReport> | undefined;
|
|
204
240
|
validator?(value: unknown): boolean;
|
|
@@ -231,7 +267,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
|
|
|
231
267
|
};
|
|
232
268
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
233
269
|
[key: string]: any;
|
|
234
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit",
|
|
270
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
|
|
235
271
|
form: {
|
|
236
272
|
type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
|
|
237
273
|
validator?(value: unknown): boolean;
|
|
@@ -283,7 +319,7 @@ default: boolean | (() => boolean) | null;
|
|
|
283
319
|
};
|
|
284
320
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
285
321
|
[key: string]: any;
|
|
286
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
322
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
287
323
|
href: {
|
|
288
324
|
type?: PropType<string | null> | undefined;
|
|
289
325
|
validator?(value: unknown): boolean;
|
|
@@ -330,18 +366,24 @@ submit: boolean;
|
|
|
330
366
|
}, {}>;
|
|
331
367
|
|
|
332
368
|
export declare const AGHeadlessInput: DefineComponent< {
|
|
333
|
-
|
|
334
|
-
type?: PropType<string> | undefined;
|
|
369
|
+
name: {
|
|
370
|
+
type?: PropType<string | null> | undefined;
|
|
335
371
|
validator?(value: unknown): boolean;
|
|
336
372
|
} & {
|
|
337
|
-
default: string | (() => string) | null;
|
|
373
|
+
default: string | (() => string | null) | null;
|
|
338
374
|
};
|
|
339
|
-
|
|
375
|
+
label: {
|
|
340
376
|
type?: PropType<string | null> | undefined;
|
|
341
377
|
validator?(value: unknown): boolean;
|
|
342
378
|
} & {
|
|
343
379
|
default: string | (() => string | null) | null;
|
|
344
380
|
};
|
|
381
|
+
as: {
|
|
382
|
+
type?: PropType<string> | undefined;
|
|
383
|
+
validator?(value: unknown): boolean;
|
|
384
|
+
} & {
|
|
385
|
+
default: string | (() => string) | null;
|
|
386
|
+
};
|
|
345
387
|
modelValue: {
|
|
346
388
|
type?: PropType<string | number | boolean | null> | undefined;
|
|
347
389
|
validator?(value: unknown): boolean;
|
|
@@ -350,19 +392,25 @@ default: string | number | boolean | (() => string | number | boolean | null) |
|
|
|
350
392
|
};
|
|
351
393
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
352
394
|
[key: string]: any;
|
|
353
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue",
|
|
354
|
-
|
|
355
|
-
type?: PropType<string> | undefined;
|
|
395
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
396
|
+
name: {
|
|
397
|
+
type?: PropType<string | null> | undefined;
|
|
356
398
|
validator?(value: unknown): boolean;
|
|
357
399
|
} & {
|
|
358
|
-
default: string | (() => string) | null;
|
|
400
|
+
default: string | (() => string | null) | null;
|
|
359
401
|
};
|
|
360
|
-
|
|
402
|
+
label: {
|
|
361
403
|
type?: PropType<string | null> | undefined;
|
|
362
404
|
validator?(value: unknown): boolean;
|
|
363
405
|
} & {
|
|
364
406
|
default: string | (() => string | null) | null;
|
|
365
407
|
};
|
|
408
|
+
as: {
|
|
409
|
+
type?: PropType<string> | undefined;
|
|
410
|
+
validator?(value: unknown): boolean;
|
|
411
|
+
} & {
|
|
412
|
+
default: string | (() => string) | null;
|
|
413
|
+
};
|
|
366
414
|
modelValue: {
|
|
367
415
|
type?: PropType<string | number | boolean | null> | undefined;
|
|
368
416
|
validator?(value: unknown): boolean;
|
|
@@ -373,13 +421,14 @@ default: string | number | boolean | (() => string | number | boolean | null) |
|
|
|
373
421
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
374
422
|
}, {
|
|
375
423
|
as: string;
|
|
376
|
-
name: string | null;
|
|
377
424
|
modelValue: string | number | boolean | null;
|
|
425
|
+
name: string | null;
|
|
426
|
+
label: string | null;
|
|
378
427
|
}, {}>;
|
|
379
428
|
|
|
380
429
|
export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
381
430
|
[key: string]: any;
|
|
382
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
431
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
383
432
|
|
|
384
433
|
export declare const AGHeadlessInputInput: DefineComponent< {
|
|
385
434
|
type: {
|
|
@@ -390,7 +439,7 @@ default: string | (() => string) | null;
|
|
|
390
439
|
};
|
|
391
440
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
392
441
|
[key: string]: any;
|
|
393
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
442
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
394
443
|
type: {
|
|
395
444
|
type?: PropType<string> | undefined;
|
|
396
445
|
validator?(value: unknown): boolean;
|
|
@@ -403,7 +452,7 @@ type: string;
|
|
|
403
452
|
|
|
404
453
|
export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
405
454
|
[key: string]: any;
|
|
406
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
455
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
407
456
|
|
|
408
457
|
export declare const AGHeadlessModal: DefineComponent< {
|
|
409
458
|
cancellable: {
|
|
@@ -412,22 +461,35 @@ validator?(value: unknown): boolean;
|
|
|
412
461
|
} & {
|
|
413
462
|
default: boolean | (() => boolean) | null;
|
|
414
463
|
};
|
|
464
|
+
title: {
|
|
465
|
+
type?: PropType<string | null> | undefined;
|
|
466
|
+
validator?(value: unknown): boolean;
|
|
467
|
+
} & {
|
|
468
|
+
default: string | (() => string | null) | null;
|
|
469
|
+
};
|
|
415
470
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
416
471
|
[key: string]: any;
|
|
417
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
472
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
418
473
|
cancellable: {
|
|
419
474
|
type?: PropType<boolean> | undefined;
|
|
420
475
|
validator?(value: unknown): boolean;
|
|
421
476
|
} & {
|
|
422
477
|
default: boolean | (() => boolean) | null;
|
|
423
478
|
};
|
|
479
|
+
title: {
|
|
480
|
+
type?: PropType<string | null> | undefined;
|
|
481
|
+
validator?(value: unknown): boolean;
|
|
482
|
+
} & {
|
|
483
|
+
default: string | (() => string | null) | null;
|
|
484
|
+
};
|
|
424
485
|
}>>, {
|
|
425
486
|
cancellable: boolean;
|
|
487
|
+
title: string | null;
|
|
426
488
|
}, {}>;
|
|
427
489
|
|
|
428
490
|
export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
429
491
|
[key: string]: any;
|
|
430
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
492
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
431
493
|
|
|
432
494
|
export declare const AGHeadlessModalTitle: DefineComponent< {
|
|
433
495
|
as: {
|
|
@@ -438,7 +500,7 @@ default: string | (() => string) | null;
|
|
|
438
500
|
};
|
|
439
501
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
440
502
|
[key: string]: any;
|
|
441
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
503
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
442
504
|
as: {
|
|
443
505
|
type?: PropType<string> | undefined;
|
|
444
506
|
validator?(value: unknown): boolean;
|
|
@@ -450,11 +512,11 @@ as: string;
|
|
|
450
512
|
}, {}>;
|
|
451
513
|
|
|
452
514
|
export declare const AGHeadlessSelect: DefineComponent< {
|
|
453
|
-
|
|
454
|
-
type?: PropType<
|
|
515
|
+
name: {
|
|
516
|
+
type?: PropType<string | null> | undefined;
|
|
455
517
|
validator?(value: unknown): boolean;
|
|
456
518
|
} & {
|
|
457
|
-
|
|
519
|
+
default: string | (() => string | null) | null;
|
|
458
520
|
};
|
|
459
521
|
label: {
|
|
460
522
|
type?: PropType<string | null> | undefined;
|
|
@@ -462,32 +524,38 @@ validator?(value: unknown): boolean;
|
|
|
462
524
|
} & {
|
|
463
525
|
default: string | (() => string | null) | null;
|
|
464
526
|
};
|
|
527
|
+
options: {
|
|
528
|
+
type?: PropType<FormFieldValue[]> | undefined;
|
|
529
|
+
validator?(value: unknown): boolean;
|
|
530
|
+
} & {
|
|
531
|
+
required: true;
|
|
532
|
+
};
|
|
465
533
|
noSelectionText: {
|
|
466
534
|
type?: PropType<string | null> | undefined;
|
|
467
535
|
validator?(value: unknown): boolean;
|
|
468
536
|
} & {
|
|
469
537
|
default: string | (() => string | null) | null;
|
|
470
538
|
};
|
|
471
|
-
|
|
472
|
-
type?: PropType<string | null> | undefined;
|
|
539
|
+
optionsText: {
|
|
540
|
+
type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
|
|
473
541
|
validator?(value: unknown): boolean;
|
|
474
542
|
} & {
|
|
475
|
-
default: string | (() => string | null) | null;
|
|
543
|
+
default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
|
|
476
544
|
};
|
|
477
545
|
modelValue: {
|
|
478
|
-
type?: PropType<
|
|
546
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
479
547
|
validator?(value: unknown): boolean;
|
|
480
548
|
} & {
|
|
481
|
-
default:
|
|
549
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
482
550
|
};
|
|
483
551
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
484
552
|
[key: string]: any;
|
|
485
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"
|
|
486
|
-
|
|
487
|
-
type?: PropType<
|
|
553
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
554
|
+
name: {
|
|
555
|
+
type?: PropType<string | null> | undefined;
|
|
488
556
|
validator?(value: unknown): boolean;
|
|
489
557
|
} & {
|
|
490
|
-
|
|
558
|
+
default: string | (() => string | null) | null;
|
|
491
559
|
};
|
|
492
560
|
label: {
|
|
493
561
|
type?: PropType<string | null> | undefined;
|
|
@@ -495,31 +563,38 @@ validator?(value: unknown): boolean;
|
|
|
495
563
|
} & {
|
|
496
564
|
default: string | (() => string | null) | null;
|
|
497
565
|
};
|
|
566
|
+
options: {
|
|
567
|
+
type?: PropType<FormFieldValue[]> | undefined;
|
|
568
|
+
validator?(value: unknown): boolean;
|
|
569
|
+
} & {
|
|
570
|
+
required: true;
|
|
571
|
+
};
|
|
498
572
|
noSelectionText: {
|
|
499
573
|
type?: PropType<string | null> | undefined;
|
|
500
574
|
validator?(value: unknown): boolean;
|
|
501
575
|
} & {
|
|
502
576
|
default: string | (() => string | null) | null;
|
|
503
577
|
};
|
|
504
|
-
|
|
505
|
-
type?: PropType<string | null> | undefined;
|
|
578
|
+
optionsText: {
|
|
579
|
+
type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
|
|
506
580
|
validator?(value: unknown): boolean;
|
|
507
581
|
} & {
|
|
508
|
-
default: string | (() => string | null) | null;
|
|
582
|
+
default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
|
|
509
583
|
};
|
|
510
584
|
modelValue: {
|
|
511
|
-
type?: PropType<
|
|
585
|
+
type?: PropType<FormFieldValue | null> | undefined;
|
|
512
586
|
validator?(value: unknown): boolean;
|
|
513
587
|
} & {
|
|
514
|
-
default:
|
|
588
|
+
default: FormFieldValue | (() => FormFieldValue | null) | null;
|
|
515
589
|
};
|
|
516
590
|
}>> & {
|
|
517
591
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
518
592
|
}, {
|
|
593
|
+
modelValue: FormFieldValue | null;
|
|
519
594
|
name: string | null;
|
|
520
|
-
modelValue: IAGSelectOptionValue;
|
|
521
595
|
label: string | null;
|
|
522
596
|
noSelectionText: string | null;
|
|
597
|
+
optionsText: string | ((option: FormFieldValue) => string) | null;
|
|
523
598
|
}, {}>;
|
|
524
599
|
|
|
525
600
|
export declare const AGHeadlessSelectButton: DefineComponent< {
|
|
@@ -531,7 +606,7 @@ default: string | (() => string | null) | null;
|
|
|
531
606
|
};
|
|
532
607
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
533
608
|
[key: string]: any;
|
|
534
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
609
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
535
610
|
textClass: {
|
|
536
611
|
type?: PropType<string | null> | undefined;
|
|
537
612
|
validator?(value: unknown): boolean;
|
|
@@ -544,15 +619,15 @@ textClass: string | null;
|
|
|
544
619
|
|
|
545
620
|
export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
546
621
|
[key: string]: any;
|
|
547
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
622
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
548
623
|
|
|
549
624
|
export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
550
625
|
[key: string]: any;
|
|
551
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
626
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
552
627
|
|
|
553
628
|
export declare const AGHeadlessSelectOption: DefineComponent< {
|
|
554
629
|
value: {
|
|
555
|
-
type?: PropType<
|
|
630
|
+
type?: PropType<FormFieldValue> | undefined;
|
|
556
631
|
validator?(value: unknown): boolean;
|
|
557
632
|
} & {
|
|
558
633
|
required: true;
|
|
@@ -583,9 +658,9 @@ default: string | (() => string | null) | null;
|
|
|
583
658
|
};
|
|
584
659
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
585
660
|
[key: string]: any;
|
|
586
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
661
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
587
662
|
value: {
|
|
588
|
-
type?: PropType<
|
|
663
|
+
type?: PropType<FormFieldValue> | undefined;
|
|
589
664
|
validator?(value: unknown): boolean;
|
|
590
665
|
} & {
|
|
591
666
|
required: true;
|
|
@@ -625,7 +700,7 @@ export { AGHeadlessSelectOptions }
|
|
|
625
700
|
|
|
626
701
|
export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
627
702
|
[key: string]: any;
|
|
628
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
703
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
629
704
|
|
|
630
705
|
export declare const AGInput: DefineComponent< {
|
|
631
706
|
name: {
|
|
@@ -634,22 +709,35 @@ validator?(value: unknown): boolean;
|
|
|
634
709
|
} & {
|
|
635
710
|
default: string | (() => string | null) | null;
|
|
636
711
|
};
|
|
712
|
+
label: {
|
|
713
|
+
type?: PropType<string | null> | undefined;
|
|
714
|
+
validator?(value: unknown): boolean;
|
|
715
|
+
} & {
|
|
716
|
+
default: string | (() => string | null) | null;
|
|
717
|
+
};
|
|
637
718
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
638
719
|
[key: string]: any;
|
|
639
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
720
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
640
721
|
name: {
|
|
641
722
|
type?: PropType<string | null> | undefined;
|
|
642
723
|
validator?(value: unknown): boolean;
|
|
643
724
|
} & {
|
|
644
725
|
default: string | (() => string | null) | null;
|
|
645
726
|
};
|
|
727
|
+
label: {
|
|
728
|
+
type?: PropType<string | null> | undefined;
|
|
729
|
+
validator?(value: unknown): boolean;
|
|
730
|
+
} & {
|
|
731
|
+
default: string | (() => string | null) | null;
|
|
732
|
+
};
|
|
646
733
|
}>>, {
|
|
647
734
|
name: string | null;
|
|
735
|
+
label: string | null;
|
|
648
736
|
}, {}>;
|
|
649
737
|
|
|
650
738
|
export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
651
739
|
[key: string]: any;
|
|
652
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
740
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
653
741
|
|
|
654
742
|
export declare const AGLoadingModal: DefineComponent< {
|
|
655
743
|
message: {
|
|
@@ -660,7 +748,7 @@ default: string | (() => string | null) | null;
|
|
|
660
748
|
};
|
|
661
749
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
662
750
|
[key: string]: any;
|
|
663
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
751
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
664
752
|
message: {
|
|
665
753
|
type?: PropType<string | null> | undefined;
|
|
666
754
|
validator?(value: unknown): boolean;
|
|
@@ -671,6 +759,8 @@ default: string | (() => string | null) | null;
|
|
|
671
759
|
message: string | null;
|
|
672
760
|
}, {}>;
|
|
673
761
|
|
|
762
|
+
export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
|
|
763
|
+
|
|
674
764
|
export declare const AGMarkdown: DefineComponent< {
|
|
675
765
|
as: {
|
|
676
766
|
type?: PropType<string | null> | undefined;
|
|
@@ -704,7 +794,7 @@ default: string | (() => string | null) | null;
|
|
|
704
794
|
};
|
|
705
795
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
706
796
|
[key: string]: any;
|
|
707
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
797
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
708
798
|
as: {
|
|
709
799
|
type?: PropType<string | null> | undefined;
|
|
710
800
|
validator?(value: unknown): boolean;
|
|
@@ -743,6 +833,26 @@ langParams: Record<string, unknown> | null;
|
|
|
743
833
|
text: string | null;
|
|
744
834
|
}, {}>;
|
|
745
835
|
|
|
836
|
+
export declare const AGMeasured: DefineComponent< {
|
|
837
|
+
as: {
|
|
838
|
+
type?: PropType<string> | undefined;
|
|
839
|
+
validator?(value: unknown): boolean;
|
|
840
|
+
} & {
|
|
841
|
+
default: string | (() => string) | null;
|
|
842
|
+
};
|
|
843
|
+
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
844
|
+
[key: string]: any;
|
|
845
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
846
|
+
as: {
|
|
847
|
+
type?: PropType<string> | undefined;
|
|
848
|
+
validator?(value: unknown): boolean;
|
|
849
|
+
} & {
|
|
850
|
+
default: string | (() => string) | null;
|
|
851
|
+
};
|
|
852
|
+
}>>, {
|
|
853
|
+
as: string;
|
|
854
|
+
}, {}>;
|
|
855
|
+
|
|
746
856
|
export declare const AGModal: DefineComponent< {
|
|
747
857
|
cancellable: {
|
|
748
858
|
type?: PropType<boolean> | undefined;
|
|
@@ -750,17 +860,30 @@ validator?(value: unknown): boolean;
|
|
|
750
860
|
} & {
|
|
751
861
|
default: boolean | (() => boolean) | null;
|
|
752
862
|
};
|
|
863
|
+
title: {
|
|
864
|
+
type?: PropType<string | null> | undefined;
|
|
865
|
+
validator?(value: unknown): boolean;
|
|
866
|
+
} & {
|
|
867
|
+
default: string | (() => string | null) | null;
|
|
868
|
+
};
|
|
753
869
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
754
870
|
[key: string]: any;
|
|
755
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
871
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
756
872
|
cancellable: {
|
|
757
873
|
type?: PropType<boolean> | undefined;
|
|
758
874
|
validator?(value: unknown): boolean;
|
|
759
875
|
} & {
|
|
760
876
|
default: boolean | (() => boolean) | null;
|
|
761
877
|
};
|
|
878
|
+
title: {
|
|
879
|
+
type?: PropType<string | null> | undefined;
|
|
880
|
+
validator?(value: unknown): boolean;
|
|
881
|
+
} & {
|
|
882
|
+
default: string | (() => string | null) | null;
|
|
883
|
+
};
|
|
762
884
|
}>>, {
|
|
763
885
|
cancellable: boolean;
|
|
886
|
+
title: string | null;
|
|
764
887
|
}, {}>;
|
|
765
888
|
|
|
766
889
|
export declare const AGModalContext: DefineComponent< {
|
|
@@ -778,7 +901,7 @@ required: true;
|
|
|
778
901
|
};
|
|
779
902
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
780
903
|
[key: string]: any;
|
|
781
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
904
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
782
905
|
modal: {
|
|
783
906
|
type?: PropType<Modal<unknown>> | undefined;
|
|
784
907
|
validator?(value: unknown): boolean;
|
|
@@ -795,11 +918,17 @@ required: true;
|
|
|
795
918
|
|
|
796
919
|
export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
797
920
|
[key: string]: any;
|
|
798
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
921
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
799
922
|
|
|
800
|
-
export declare const
|
|
801
|
-
|
|
802
|
-
type?: PropType<
|
|
923
|
+
export declare const AGPromptModal: DefineComponent< {
|
|
924
|
+
title: {
|
|
925
|
+
type?: PropType<string | null> | undefined;
|
|
926
|
+
validator?(value: unknown): boolean;
|
|
927
|
+
} & {
|
|
928
|
+
default: string | (() => string | null) | null;
|
|
929
|
+
};
|
|
930
|
+
message: {
|
|
931
|
+
type?: PropType<string> | undefined;
|
|
803
932
|
validator?(value: unknown): boolean;
|
|
804
933
|
} & {
|
|
805
934
|
required: true;
|
|
@@ -810,7 +939,25 @@ validator?(value: unknown): boolean;
|
|
|
810
939
|
} & {
|
|
811
940
|
default: string | (() => string | null) | null;
|
|
812
941
|
};
|
|
813
|
-
|
|
942
|
+
defaultValue: {
|
|
943
|
+
type?: PropType<string | null> | undefined;
|
|
944
|
+
validator?(value: unknown): boolean;
|
|
945
|
+
} & {
|
|
946
|
+
default: string | (() => string | null) | null;
|
|
947
|
+
};
|
|
948
|
+
placeholder: {
|
|
949
|
+
type?: PropType<string | null> | undefined;
|
|
950
|
+
validator?(value: unknown): boolean;
|
|
951
|
+
} & {
|
|
952
|
+
default: string | (() => string | null) | null;
|
|
953
|
+
};
|
|
954
|
+
acceptText: {
|
|
955
|
+
type?: PropType<string | null> | undefined;
|
|
956
|
+
validator?(value: unknown): boolean;
|
|
957
|
+
} & {
|
|
958
|
+
default: string | (() => string | null) | null;
|
|
959
|
+
};
|
|
960
|
+
cancelText: {
|
|
814
961
|
type?: PropType<string | null> | undefined;
|
|
815
962
|
validator?(value: unknown): boolean;
|
|
816
963
|
} & {
|
|
@@ -818,28 +965,131 @@ default: string | (() => string | null) | null;
|
|
|
818
965
|
};
|
|
819
966
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
820
967
|
[key: string]: any;
|
|
821
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
968
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
969
|
+
title: {
|
|
970
|
+
type?: PropType<string | null> | undefined;
|
|
971
|
+
validator?(value: unknown): boolean;
|
|
972
|
+
} & {
|
|
973
|
+
default: string | (() => string | null) | null;
|
|
974
|
+
};
|
|
975
|
+
message: {
|
|
976
|
+
type?: PropType<string> | undefined;
|
|
977
|
+
validator?(value: unknown): boolean;
|
|
978
|
+
} & {
|
|
979
|
+
required: true;
|
|
980
|
+
};
|
|
981
|
+
label: {
|
|
982
|
+
type?: PropType<string | null> | undefined;
|
|
983
|
+
validator?(value: unknown): boolean;
|
|
984
|
+
} & {
|
|
985
|
+
default: string | (() => string | null) | null;
|
|
986
|
+
};
|
|
987
|
+
defaultValue: {
|
|
988
|
+
type?: PropType<string | null> | undefined;
|
|
989
|
+
validator?(value: unknown): boolean;
|
|
990
|
+
} & {
|
|
991
|
+
default: string | (() => string | null) | null;
|
|
992
|
+
};
|
|
993
|
+
placeholder: {
|
|
994
|
+
type?: PropType<string | null> | undefined;
|
|
995
|
+
validator?(value: unknown): boolean;
|
|
996
|
+
} & {
|
|
997
|
+
default: string | (() => string | null) | null;
|
|
998
|
+
};
|
|
999
|
+
acceptText: {
|
|
1000
|
+
type?: PropType<string | null> | undefined;
|
|
1001
|
+
validator?(value: unknown): boolean;
|
|
1002
|
+
} & {
|
|
1003
|
+
default: string | (() => string | null) | null;
|
|
1004
|
+
};
|
|
1005
|
+
cancelText: {
|
|
1006
|
+
type?: PropType<string | null> | undefined;
|
|
1007
|
+
validator?(value: unknown): boolean;
|
|
1008
|
+
} & {
|
|
1009
|
+
default: string | (() => string | null) | null;
|
|
1010
|
+
};
|
|
1011
|
+
}>>, {
|
|
1012
|
+
title: string | null;
|
|
1013
|
+
label: string | null;
|
|
1014
|
+
defaultValue: string | null;
|
|
1015
|
+
placeholder: string | null;
|
|
1016
|
+
acceptText: string | null;
|
|
1017
|
+
cancelText: string | null;
|
|
1018
|
+
}, {}>;
|
|
1019
|
+
|
|
1020
|
+
export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
|
|
1021
|
+
|
|
1022
|
+
export declare const AGSelect: DefineComponent< {
|
|
1023
|
+
name: {
|
|
1024
|
+
type?: PropType<string | null> | undefined;
|
|
1025
|
+
validator?(value: unknown): boolean;
|
|
1026
|
+
} & {
|
|
1027
|
+
default: string | (() => string | null) | null;
|
|
1028
|
+
};
|
|
1029
|
+
label: {
|
|
1030
|
+
type?: PropType<string | null> | undefined;
|
|
1031
|
+
validator?(value: unknown): boolean;
|
|
1032
|
+
} & {
|
|
1033
|
+
default: string | (() => string | null) | null;
|
|
1034
|
+
};
|
|
822
1035
|
options: {
|
|
823
|
-
type?: PropType<
|
|
1036
|
+
type?: PropType<FormFieldValue[]> | undefined;
|
|
824
1037
|
validator?(value: unknown): boolean;
|
|
825
1038
|
} & {
|
|
826
1039
|
required: true;
|
|
827
1040
|
};
|
|
1041
|
+
noSelectionText: {
|
|
1042
|
+
type?: PropType<string | null> | undefined;
|
|
1043
|
+
validator?(value: unknown): boolean;
|
|
1044
|
+
} & {
|
|
1045
|
+
default: string | (() => string | null) | null;
|
|
1046
|
+
};
|
|
1047
|
+
optionsText: {
|
|
1048
|
+
type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
|
|
1049
|
+
validator?(value: unknown): boolean;
|
|
1050
|
+
} & {
|
|
1051
|
+
default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
|
|
1052
|
+
};
|
|
1053
|
+
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
1054
|
+
[key: string]: any;
|
|
1055
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
1056
|
+
name: {
|
|
1057
|
+
type?: PropType<string | null> | undefined;
|
|
1058
|
+
validator?(value: unknown): boolean;
|
|
1059
|
+
} & {
|
|
1060
|
+
default: string | (() => string | null) | null;
|
|
1061
|
+
};
|
|
828
1062
|
label: {
|
|
829
1063
|
type?: PropType<string | null> | undefined;
|
|
830
1064
|
validator?(value: unknown): boolean;
|
|
831
1065
|
} & {
|
|
832
1066
|
default: string | (() => string | null) | null;
|
|
833
1067
|
};
|
|
1068
|
+
options: {
|
|
1069
|
+
type?: PropType<FormFieldValue[]> | undefined;
|
|
1070
|
+
validator?(value: unknown): boolean;
|
|
1071
|
+
} & {
|
|
1072
|
+
required: true;
|
|
1073
|
+
};
|
|
834
1074
|
noSelectionText: {
|
|
835
1075
|
type?: PropType<string | null> | undefined;
|
|
836
1076
|
validator?(value: unknown): boolean;
|
|
837
1077
|
} & {
|
|
838
1078
|
default: string | (() => string | null) | null;
|
|
839
1079
|
};
|
|
840
|
-
|
|
1080
|
+
optionsText: {
|
|
1081
|
+
type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
|
|
1082
|
+
validator?(value: unknown): boolean;
|
|
1083
|
+
} & {
|
|
1084
|
+
default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
|
|
1085
|
+
};
|
|
1086
|
+
}>> & {
|
|
1087
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1088
|
+
}, {
|
|
1089
|
+
name: string | null;
|
|
841
1090
|
label: string | null;
|
|
842
1091
|
noSelectionText: string | null;
|
|
1092
|
+
optionsText: string | ((option: FormFieldValue) => string) | null;
|
|
843
1093
|
}, {}>;
|
|
844
1094
|
|
|
845
1095
|
export declare const AGSnackbar: DefineComponent< {
|
|
@@ -869,7 +1119,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
|
|
|
869
1119
|
};
|
|
870
1120
|
}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
871
1121
|
[key: string]: any;
|
|
872
|
-
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
1122
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
873
1123
|
id: {
|
|
874
1124
|
type?: PropType<string> | undefined;
|
|
875
1125
|
validator?(value: unknown): boolean;
|
|
@@ -899,13 +1149,35 @@ actions: SnackbarAction[];
|
|
|
899
1149
|
color: "secondary" | "danger";
|
|
900
1150
|
}, {}>;
|
|
901
1151
|
|
|
1152
|
+
export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
|
|
1153
|
+
|
|
902
1154
|
export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
|
|
903
1155
|
[key: string]: any;
|
|
904
|
-
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
1156
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
|
|
1157
|
+
|
|
1158
|
+
export declare const alertModalProps: {
|
|
1159
|
+
title: {
|
|
1160
|
+
type?: PropType<string | null> | undefined;
|
|
1161
|
+
validator?(value: unknown): boolean;
|
|
1162
|
+
} & {
|
|
1163
|
+
default: string | (() => string | null) | null;
|
|
1164
|
+
};
|
|
1165
|
+
message: {
|
|
1166
|
+
type?: PropType<string> | undefined;
|
|
1167
|
+
validator?(value: unknown): boolean;
|
|
1168
|
+
} & {
|
|
1169
|
+
required: true;
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
905
1172
|
|
|
906
1173
|
export declare const App: Facade<AppService, Constructor<AppService>>;
|
|
907
1174
|
|
|
908
1175
|
export declare class AppService extends _default_2 {
|
|
1176
|
+
readonly ready: PromisedValue<void>;
|
|
1177
|
+
readonly mounted: PromisedValue<void>;
|
|
1178
|
+
isReady(): boolean;
|
|
1179
|
+
isMounted(): boolean;
|
|
1180
|
+
whenReady<T>(callback: () => T): Promise<T>;
|
|
909
1181
|
reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
|
|
910
1182
|
plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
|
|
911
1183
|
protected boot(): Promise<void>;
|
|
@@ -924,7 +1196,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
|
|
|
924
1196
|
|
|
925
1197
|
export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
|
|
926
1198
|
|
|
927
|
-
export declare function
|
|
1199
|
+
export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
|
|
1200
|
+
|
|
1201
|
+
export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
|
|
928
1202
|
|
|
929
1203
|
export declare type Color = (typeof Colors)[keyof typeof Colors];
|
|
930
1204
|
|
|
@@ -939,64 +1213,95 @@ export declare type ComponentProps = Record<string, unknown>;
|
|
|
939
1213
|
|
|
940
1214
|
export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
|
|
941
1215
|
|
|
1216
|
+
export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
|
|
1217
|
+
|
|
942
1218
|
export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
|
|
943
|
-
[K in keyof TComputedState]: (state: TState) => TComputedState[K];
|
|
1219
|
+
[K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
|
|
944
1220
|
} & ThisType<{
|
|
945
1221
|
readonly [K in keyof TComputedState]: TComputedState[K];
|
|
946
1222
|
}>;
|
|
947
1223
|
|
|
948
|
-
declare const
|
|
1224
|
+
export declare const confirmModalProps: {
|
|
1225
|
+
title: {
|
|
1226
|
+
type?: PropType<string | null> | undefined;
|
|
1227
|
+
validator?(value: unknown): boolean;
|
|
1228
|
+
} & {
|
|
1229
|
+
default: string | (() => string | null) | null;
|
|
1230
|
+
};
|
|
1231
|
+
message: {
|
|
1232
|
+
type?: PropType<string> | undefined;
|
|
1233
|
+
validator?(value: unknown): boolean;
|
|
1234
|
+
} & {
|
|
1235
|
+
required: true;
|
|
1236
|
+
};
|
|
1237
|
+
acceptText: {
|
|
1238
|
+
type?: PropType<string | null> | undefined;
|
|
1239
|
+
validator?(value: unknown): boolean;
|
|
1240
|
+
} & {
|
|
1241
|
+
default: string | (() => string | null) | null;
|
|
1242
|
+
};
|
|
1243
|
+
cancelText: {
|
|
1244
|
+
type?: PropType<string | null> | undefined;
|
|
1245
|
+
validator?(value: unknown): boolean;
|
|
1246
|
+
} & {
|
|
1247
|
+
default: string | (() => string | null) | null;
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
export declare interface ConfirmOptions {
|
|
1252
|
+
acceptText?: string;
|
|
1253
|
+
cancelText?: string;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
declare const _default: Constructor<UnrefServiceState< {
|
|
949
1257
|
logs: ErrorReportLog[];
|
|
950
1258
|
startupErrors: ErrorReport[];
|
|
951
|
-
}
|
|
1259
|
+
}>> & Constructor< {
|
|
952
1260
|
hasErrors: boolean;
|
|
953
1261
|
hasNewErrors: boolean;
|
|
954
1262
|
hasStartupErrors: boolean;
|
|
955
|
-
}> & Constructor<Service< {
|
|
1263
|
+
}> & Constructor<Service<UnrefServiceState< {
|
|
956
1264
|
logs: ErrorReportLog[];
|
|
957
1265
|
startupErrors: ErrorReport[];
|
|
958
|
-
}
|
|
1266
|
+
}>, {
|
|
959
1267
|
hasErrors: boolean;
|
|
960
1268
|
hasNewErrors: boolean;
|
|
961
1269
|
hasStartupErrors: boolean;
|
|
962
|
-
}, Partial<{
|
|
1270
|
+
}, Partial<UnrefServiceState< {
|
|
963
1271
|
logs: ErrorReportLog[];
|
|
964
1272
|
startupErrors: ErrorReport[];
|
|
965
|
-
}
|
|
1273
|
+
}>>>>;
|
|
966
1274
|
|
|
967
|
-
declare const _default_2: Constructor< {
|
|
1275
|
+
declare const _default_2: Constructor<UnrefServiceState< {
|
|
968
1276
|
plugins: Record<string, Plugin_2>;
|
|
969
1277
|
environment: string;
|
|
970
1278
|
sourceUrl: string | undefined;
|
|
971
|
-
|
|
972
|
-
}> & Constructor< {
|
|
1279
|
+
}>> & Constructor< {
|
|
973
1280
|
development: boolean;
|
|
974
1281
|
testing: boolean;
|
|
975
|
-
}> & Constructor<Service< {
|
|
1282
|
+
}> & Constructor<Service<UnrefServiceState< {
|
|
976
1283
|
plugins: Record<string, Plugin_2>;
|
|
977
1284
|
environment: string;
|
|
978
1285
|
sourceUrl: string | undefined;
|
|
979
|
-
|
|
980
|
-
}, {
|
|
1286
|
+
}>, {
|
|
981
1287
|
development: boolean;
|
|
982
1288
|
testing: boolean;
|
|
983
|
-
}, Partial<{
|
|
1289
|
+
}, Partial<UnrefServiceState< {
|
|
984
1290
|
plugins: Record<string, Plugin_2>;
|
|
985
1291
|
environment: string;
|
|
986
1292
|
sourceUrl: string | undefined;
|
|
987
|
-
|
|
988
|
-
}>>>;
|
|
1293
|
+
}>>>>;
|
|
989
1294
|
|
|
990
|
-
declare const _default_3: Constructor< {
|
|
1295
|
+
declare const _default_3: Constructor<UnrefServiceState< {
|
|
991
1296
|
modals: Modal<unknown>[];
|
|
992
1297
|
snackbars: Snackbar[];
|
|
993
|
-
}
|
|
1298
|
+
}>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
|
|
994
1299
|
modals: Modal<unknown>[];
|
|
995
1300
|
snackbars: Snackbar[];
|
|
996
|
-
}
|
|
1301
|
+
}>, {}, Partial<UnrefServiceState< {
|
|
997
1302
|
modals: Modal<unknown>[];
|
|
998
1303
|
snackbars: Snackbar[];
|
|
999
|
-
}
|
|
1304
|
+
}>>>>;
|
|
1000
1305
|
|
|
1001
1306
|
export declare type DefaultServices = typeof defaultServices;
|
|
1002
1307
|
|
|
@@ -1017,7 +1322,7 @@ export declare function defineServiceState<State extends ServiceState = ServiceS
|
|
|
1017
1322
|
persist?: (keyof State)[];
|
|
1018
1323
|
computed?: ComputedStateDefinition<State, ComputedState>;
|
|
1019
1324
|
serialize?: (state: Partial<State>) => Partial<State>;
|
|
1020
|
-
}): Constructor<State
|
|
1325
|
+
}): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
|
|
1021
1326
|
|
|
1022
1327
|
export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
|
|
1023
1328
|
|
|
@@ -1097,7 +1402,11 @@ export declare type EventWithPayload = {
|
|
|
1097
1402
|
[K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
|
|
1098
1403
|
}[keyof EventsPayload];
|
|
1099
1404
|
|
|
1100
|
-
export declare function
|
|
1405
|
+
export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
|
|
1406
|
+
|
|
1407
|
+
export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
|
|
1408
|
+
|
|
1409
|
+
export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
|
|
1101
1410
|
|
|
1102
1411
|
declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
|
|
1103
1412
|
errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
|
|
@@ -1151,6 +1460,8 @@ export declare const FormFieldTypes: {
|
|
|
1151
1460
|
readonly Object: "object";
|
|
1152
1461
|
};
|
|
1153
1462
|
|
|
1463
|
+
export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
|
|
1464
|
+
|
|
1154
1465
|
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;
|
|
1155
1466
|
|
|
1156
1467
|
export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
|
|
@@ -1163,6 +1474,8 @@ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
|
|
|
1163
1474
|
|
|
1164
1475
|
export declare interface IAGHeadlessInput {
|
|
1165
1476
|
id: string;
|
|
1477
|
+
name: ComputedRef<string | null>;
|
|
1478
|
+
label: ComputedRef<string | null>;
|
|
1166
1479
|
value: ComputedRef<string | number | boolean | null>;
|
|
1167
1480
|
errors: DeepReadonly<Ref<string[] | null>>;
|
|
1168
1481
|
update(value: string | number | boolean | null): void;
|
|
@@ -1171,15 +1484,20 @@ export declare interface IAGHeadlessInput {
|
|
|
1171
1484
|
export declare interface IAGHeadlessModal extends IAGModal {
|
|
1172
1485
|
}
|
|
1173
1486
|
|
|
1487
|
+
export declare interface IAGHeadlessModalDefaultSlotProps {
|
|
1488
|
+
close(result?: unknown): Promise<void>;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1174
1491
|
export declare interface IAGHeadlessSelect {
|
|
1175
1492
|
id: string;
|
|
1176
1493
|
label: ComputedRef<string | null>;
|
|
1177
1494
|
noSelectionText: ComputedRef<string>;
|
|
1178
1495
|
buttonText: ComputedRef<string>;
|
|
1179
|
-
|
|
1180
|
-
|
|
1496
|
+
renderText: ComputedRef<(value: FormFieldValue) => string>;
|
|
1497
|
+
selectedOption: ComputedRef<FormFieldValue | null>;
|
|
1498
|
+
options: ComputedRef<FormFieldValue[]>;
|
|
1181
1499
|
errors: DeepReadonly<Ref<string[] | null>>;
|
|
1182
|
-
update(value:
|
|
1500
|
+
update(value: FormFieldValue): void;
|
|
1183
1501
|
}
|
|
1184
1502
|
|
|
1185
1503
|
export declare type IAGHeadlessSelectOptionSlotProps = {
|
|
@@ -1189,7 +1507,7 @@ export declare type IAGHeadlessSelectOptionSlotProps = {
|
|
|
1189
1507
|
|
|
1190
1508
|
export declare interface IAGModal {
|
|
1191
1509
|
cancellable: Ref<boolean>;
|
|
1192
|
-
close(): Promise<void>;
|
|
1510
|
+
close(result?: unknown): Promise<void>;
|
|
1193
1511
|
}
|
|
1194
1512
|
|
|
1195
1513
|
export declare interface IAGModalContext {
|
|
@@ -1197,23 +1515,31 @@ export declare interface IAGModalContext {
|
|
|
1197
1515
|
childIndex: Ref<number>;
|
|
1198
1516
|
}
|
|
1199
1517
|
|
|
1200
|
-
export declare interface
|
|
1518
|
+
export declare interface IAGModalDefaultSlotProps {
|
|
1201
1519
|
close(result?: unknown): Promise<void>;
|
|
1202
1520
|
}
|
|
1203
1521
|
|
|
1204
|
-
export declare interface IAGSelectOption {
|
|
1205
|
-
value: string | number | boolean | object | null;
|
|
1206
|
-
text: string;
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
export declare type IAGSelectOptionValue = string | number | boolean | object | null;
|
|
1210
|
-
|
|
1211
1522
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
1212
1523
|
|
|
1213
1524
|
export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
|
|
1214
1525
|
|
|
1215
1526
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1216
1527
|
|
|
1528
|
+
export declare const inputProps: {
|
|
1529
|
+
name: {
|
|
1530
|
+
type?: PropType<string | null> | undefined;
|
|
1531
|
+
validator?(value: unknown): boolean;
|
|
1532
|
+
} & {
|
|
1533
|
+
default: string | (() => string | null) | null;
|
|
1534
|
+
};
|
|
1535
|
+
label: {
|
|
1536
|
+
type?: PropType<string | null> | undefined;
|
|
1537
|
+
validator?(value: unknown): boolean;
|
|
1538
|
+
} & {
|
|
1539
|
+
default: string | (() => string | null) | null;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1217
1543
|
export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
|
|
1218
1544
|
|
|
1219
1545
|
export declare const Lang: Facade<LangService, Constructor<LangService>>;
|
|
@@ -1233,6 +1559,15 @@ declare class LangService extends Service {
|
|
|
1233
1559
|
|
|
1234
1560
|
export declare type LangServices = typeof services_2;
|
|
1235
1561
|
|
|
1562
|
+
export declare const loadingModalProps: {
|
|
1563
|
+
message: {
|
|
1564
|
+
type?: PropType<string | null> | undefined;
|
|
1565
|
+
validator?(value: unknown): boolean;
|
|
1566
|
+
} & {
|
|
1567
|
+
default: string | (() => string | null) | null;
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
|
|
1236
1571
|
export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
|
|
1237
1572
|
|
|
1238
1573
|
declare interface Modal<T = unknown> {
|
|
@@ -1248,6 +1583,21 @@ declare interface ModalComponent<Properties extends Record<string, unknown> = Re
|
|
|
1248
1583
|
|
|
1249
1584
|
declare type ModalProperties<TComponent> = TComponent extends ModalComponent<infer TProperties, unknown> ? TProperties : never;
|
|
1250
1585
|
|
|
1586
|
+
export declare const modalProps: {
|
|
1587
|
+
cancellable: {
|
|
1588
|
+
type?: PropType<boolean> | undefined;
|
|
1589
|
+
validator?(value: unknown): boolean;
|
|
1590
|
+
} & {
|
|
1591
|
+
default: boolean | (() => boolean) | null;
|
|
1592
|
+
};
|
|
1593
|
+
title: {
|
|
1594
|
+
type?: PropType<string | null> | undefined;
|
|
1595
|
+
validator?(value: unknown): boolean;
|
|
1596
|
+
} & {
|
|
1597
|
+
default: string | (() => string | null) | null;
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1251
1601
|
declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
|
|
1252
1602
|
|
|
1253
1603
|
export declare function numberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number>;
|
|
@@ -1272,6 +1622,61 @@ declare interface Plugin_2 {
|
|
|
1272
1622
|
}
|
|
1273
1623
|
export { Plugin_2 as Plugin }
|
|
1274
1624
|
|
|
1625
|
+
export declare const promptModalProps: {
|
|
1626
|
+
title: {
|
|
1627
|
+
type?: PropType<string | null> | undefined;
|
|
1628
|
+
validator?(value: unknown): boolean;
|
|
1629
|
+
} & {
|
|
1630
|
+
default: string | (() => string | null) | null;
|
|
1631
|
+
};
|
|
1632
|
+
message: {
|
|
1633
|
+
type?: PropType<string> | undefined;
|
|
1634
|
+
validator?(value: unknown): boolean;
|
|
1635
|
+
} & {
|
|
1636
|
+
required: true;
|
|
1637
|
+
};
|
|
1638
|
+
label: {
|
|
1639
|
+
type?: PropType<string | null> | undefined;
|
|
1640
|
+
validator?(value: unknown): boolean;
|
|
1641
|
+
} & {
|
|
1642
|
+
default: string | (() => string | null) | null;
|
|
1643
|
+
};
|
|
1644
|
+
defaultValue: {
|
|
1645
|
+
type?: PropType<string | null> | undefined;
|
|
1646
|
+
validator?(value: unknown): boolean;
|
|
1647
|
+
} & {
|
|
1648
|
+
default: string | (() => string | null) | null;
|
|
1649
|
+
};
|
|
1650
|
+
placeholder: {
|
|
1651
|
+
type?: PropType<string | null> | undefined;
|
|
1652
|
+
validator?(value: unknown): boolean;
|
|
1653
|
+
} & {
|
|
1654
|
+
default: string | (() => string | null) | null;
|
|
1655
|
+
};
|
|
1656
|
+
acceptText: {
|
|
1657
|
+
type?: PropType<string | null> | undefined;
|
|
1658
|
+
validator?(value: unknown): boolean;
|
|
1659
|
+
} & {
|
|
1660
|
+
default: string | (() => string | null) | null;
|
|
1661
|
+
};
|
|
1662
|
+
cancelText: {
|
|
1663
|
+
type?: PropType<string | null> | undefined;
|
|
1664
|
+
validator?(value: unknown): boolean;
|
|
1665
|
+
} & {
|
|
1666
|
+
default: string | (() => string | null) | null;
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1670
|
+
export declare interface PromptOptions {
|
|
1671
|
+
label?: string;
|
|
1672
|
+
defaultValue?: string;
|
|
1673
|
+
placeholder?: string;
|
|
1674
|
+
acceptText?: string;
|
|
1675
|
+
cancelText?: string;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
export declare function removeInteractiveClasses(classes: string): string;
|
|
1679
|
+
|
|
1275
1680
|
export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
|
|
1276
1681
|
|
|
1277
1682
|
export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
|
|
@@ -1294,12 +1699,14 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
|
|
|
1294
1699
|
|
|
1295
1700
|
export declare function requiredStringProp(): RequiredProp<string>;
|
|
1296
1701
|
|
|
1702
|
+
export declare const selectEmits: readonly ["update:modelValue"];
|
|
1703
|
+
|
|
1297
1704
|
export declare const selectProps: {
|
|
1298
|
-
|
|
1299
|
-
type?: PropType<
|
|
1705
|
+
name: {
|
|
1706
|
+
type?: PropType<string | null> | undefined;
|
|
1300
1707
|
validator?(value: unknown): boolean;
|
|
1301
1708
|
} & {
|
|
1302
|
-
|
|
1709
|
+
default: string | (() => string | null) | null;
|
|
1303
1710
|
};
|
|
1304
1711
|
label: {
|
|
1305
1712
|
type?: PropType<string | null> | undefined;
|
|
@@ -1307,12 +1714,24 @@ export declare const selectProps: {
|
|
|
1307
1714
|
} & {
|
|
1308
1715
|
default: string | (() => string | null) | null;
|
|
1309
1716
|
};
|
|
1717
|
+
options: {
|
|
1718
|
+
type?: PropType<FormFieldValue[]> | undefined;
|
|
1719
|
+
validator?(value: unknown): boolean;
|
|
1720
|
+
} & {
|
|
1721
|
+
required: true;
|
|
1722
|
+
};
|
|
1310
1723
|
noSelectionText: {
|
|
1311
1724
|
type?: PropType<string | null> | undefined;
|
|
1312
1725
|
validator?(value: unknown): boolean;
|
|
1313
1726
|
} & {
|
|
1314
1727
|
default: string | (() => string | null) | null;
|
|
1315
1728
|
};
|
|
1729
|
+
optionsText: {
|
|
1730
|
+
type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
|
|
1731
|
+
validator?(value: unknown): boolean;
|
|
1732
|
+
} & {
|
|
1733
|
+
default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
|
|
1734
|
+
};
|
|
1316
1735
|
};
|
|
1317
1736
|
|
|
1318
1737
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
|
|
@@ -1339,7 +1758,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
|
|
|
1339
1758
|
protected serializePersistedState(state: Partial<State>): Partial<State>;
|
|
1340
1759
|
protected frameworkBoot(): Promise<void>;
|
|
1341
1760
|
protected boot(): Promise<void>;
|
|
1342
|
-
protected
|
|
1761
|
+
protected initializePersistedState(): void;
|
|
1343
1762
|
}
|
|
1344
1763
|
|
|
1345
1764
|
export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
|
|
@@ -1361,7 +1780,7 @@ declare const services_3: {
|
|
|
1361
1780
|
|
|
1362
1781
|
export declare type ServiceState = Record<string, any>;
|
|
1363
1782
|
|
|
1364
|
-
declare interface ShowSnackbarOptions {
|
|
1783
|
+
export declare interface ShowSnackbarOptions {
|
|
1365
1784
|
component?: Component;
|
|
1366
1785
|
color?: SnackbarColor;
|
|
1367
1786
|
actions?: SnackbarAction[];
|
|
@@ -1437,17 +1856,21 @@ export declare const UIComponents: {
|
|
|
1437
1856
|
readonly ConfirmModal: "confirm-modal";
|
|
1438
1857
|
readonly ErrorReportModal: "error-report-modal";
|
|
1439
1858
|
readonly LoadingModal: "loading-modal";
|
|
1859
|
+
readonly PromptModal: "prompt-modal";
|
|
1440
1860
|
readonly Snackbar: "snackbar";
|
|
1861
|
+
readonly StartupCrash: "startup-crash";
|
|
1441
1862
|
};
|
|
1442
1863
|
|
|
1443
|
-
declare class UIService extends _default_3 {
|
|
1864
|
+
export declare class UIService extends _default_3 {
|
|
1444
1865
|
private modalCallbacks;
|
|
1445
1866
|
private components;
|
|
1446
1867
|
requireComponent(name: UIComponent): Component;
|
|
1447
1868
|
alert(message: string): void;
|
|
1448
1869
|
alert(title: string, message: string): void;
|
|
1449
|
-
confirm(message: string): Promise<boolean>;
|
|
1450
|
-
confirm(title: string, message: string): Promise<boolean>;
|
|
1870
|
+
confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
|
|
1871
|
+
confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
|
|
1872
|
+
prompt(message: string, options?: PromptOptions): Promise<string | null>;
|
|
1873
|
+
prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
|
|
1451
1874
|
loading<T>(operation: Promise<T>): Promise<T>;
|
|
1452
1875
|
loading<T>(message: string, operation: Promise<T>): Promise<T>;
|
|
1453
1876
|
showSnackbar(message: string, options?: ShowSnackbarOptions): void;
|
|
@@ -1464,20 +1887,68 @@ export declare type UIServices = typeof services_3;
|
|
|
1464
1887
|
|
|
1465
1888
|
export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
|
|
1466
1889
|
|
|
1890
|
+
export declare type UnrefServiceState<State extends ServiceState> = {
|
|
1891
|
+
[K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
|
|
1892
|
+
};
|
|
1893
|
+
|
|
1894
|
+
export declare function useAlertModalProps(): typeof alertModalProps;
|
|
1895
|
+
|
|
1896
|
+
export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
|
|
1897
|
+
renderedAcceptText: ComputedRef<string>;
|
|
1898
|
+
renderedCancelText: ComputedRef<string>;
|
|
1899
|
+
};
|
|
1900
|
+
|
|
1901
|
+
export declare function useConfirmModalProps(): typeof confirmModalProps;
|
|
1902
|
+
|
|
1903
|
+
export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
|
|
1904
|
+
activeReportIndex: Ref<number>;
|
|
1905
|
+
details: ComputedRef<string>;
|
|
1906
|
+
nextReportText: string;
|
|
1907
|
+
previousReportText: string;
|
|
1908
|
+
report: ComputedRef<ErrorReport>;
|
|
1909
|
+
};
|
|
1910
|
+
|
|
1467
1911
|
export declare function useErrorReportModalProps(): typeof errorReportModalProps;
|
|
1468
1912
|
|
|
1469
1913
|
export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
|
|
1470
1914
|
|
|
1471
1915
|
export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
|
|
1472
1916
|
|
|
1917
|
+
export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
|
|
1918
|
+
|
|
1473
1919
|
export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
|
|
1474
1920
|
|
|
1475
1921
|
export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
|
|
1476
1922
|
|
|
1477
1923
|
export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
|
|
1478
1924
|
|
|
1925
|
+
export declare function useInputProps(): typeof inputProps;
|
|
1926
|
+
|
|
1927
|
+
export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
|
|
1928
|
+
renderedMessage: ComputedRef<string>;
|
|
1929
|
+
};
|
|
1930
|
+
|
|
1931
|
+
export declare function useLoadingModalProps(): typeof loadingModalProps;
|
|
1932
|
+
|
|
1933
|
+
export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
|
|
1934
|
+
|
|
1935
|
+
export declare function useModalProps(): typeof modalProps;
|
|
1936
|
+
|
|
1937
|
+
export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
|
|
1938
|
+
renderedAcceptText: ComputedRef<string>;
|
|
1939
|
+
renderedCancelText: ComputedRef<string>;
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
export declare function usePromptModalProps(): typeof promptModalProps;
|
|
1943
|
+
|
|
1944
|
+
export declare function useSelectEmits(): Writable<typeof selectEmits>;
|
|
1945
|
+
|
|
1479
1946
|
export declare function useSelectProps(): typeof selectProps;
|
|
1480
1947
|
|
|
1948
|
+
export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
|
|
1949
|
+
activate: (action: SnackbarAction) => void;
|
|
1950
|
+
};
|
|
1951
|
+
|
|
1481
1952
|
export declare function useSnackbarProps(): typeof snackbarProps;
|
|
1482
1953
|
|
|
1483
1954
|
export { }
|
|
@@ -1486,11 +1957,11 @@ export { }
|
|
|
1486
1957
|
'application-mounted': void;
|
|
1487
1958
|
}
|
|
1488
1959
|
|
|
1489
|
-
interface AerogelOptions {
|
|
1960
|
+
export interface AerogelOptions {
|
|
1490
1961
|
directives?: Record<string, Directive>;
|
|
1491
1962
|
}
|
|
1492
1963
|
|
|
1493
|
-
interface AerogelOptions {
|
|
1964
|
+
export interface AerogelOptions {
|
|
1494
1965
|
handleError?(error: ErrorSource): boolean;
|
|
1495
1966
|
}
|
|
1496
1967
|
|
|
@@ -1504,7 +1975,7 @@ declare module '@vue/runtime-core' {
|
|
|
1504
1975
|
}
|
|
1505
1976
|
}
|
|
1506
1977
|
|
|
1507
|
-
interface AerogelOptions {
|
|
1978
|
+
export interface AerogelOptions {
|
|
1508
1979
|
services?: Record<string, Service>;
|
|
1509
1980
|
}
|
|
1510
1981
|
|
|
@@ -1520,7 +1991,7 @@ declare module '@vue/runtime-core' {
|
|
|
1520
1991
|
'show-modal': { id: string };
|
|
1521
1992
|
}
|
|
1522
1993
|
|
|
1523
|
-
interface AerogelOptions {
|
|
1994
|
+
export interface AerogelOptions {
|
|
1524
1995
|
components?: Partial<Record<UIComponent, Component>>;
|
|
1525
1996
|
}
|
|
1526
1997
|
|