@nexdom/uimed-vue 2.0.0-beta.2 → 2.0.0-beta.20
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/AGENTS.md +113 -12
- package/README.md +2 -2
- package/dist/components.d.ts +696 -77
- package/dist/components.js +1493 -311
- package/dist/composables.d.ts +130 -4
- package/dist/composables.js +55 -3
- package/dist/index.d.ts +3 -15
- package/dist/index.js +25 -13
- package/dist/locale-CM4o8cD_.js +12 -0
- package/dist/plugins.d.ts +5 -6
- package/dist/plugins.js +3 -3
- package/dist/styles/fonts/UnimedSlab-Regular.woff2 +0 -0
- package/dist/styles/fonts/fonts.css +4 -0
- package/dist/types-HPMP8IrV.d.ts +49 -0
- package/dist/unit-test.d.ts +2 -3
- package/dist/unit-test.js +3 -1
- package/dist/use-dialog-Ck2_ZW7T.js +124 -0
- package/package.json +7 -6
- package/dist/types-BPXXtbmW.d.ts +0 -5
- package/dist/use-toast-CACuYhK_.js +0 -53
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as ButtonProps } from "./types-HPMP8IrV.js";
|
|
2
2
|
import { RouteLocationRaw } from "vue-router";
|
|
3
3
|
//#region src/components/app-bar/types.d.ts
|
|
4
4
|
/**
|
|
@@ -43,9 +43,10 @@ interface AppBarNotification {
|
|
|
43
43
|
*/
|
|
44
44
|
read?: boolean;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Free text telling when the notification was generated, shown as is (e.g.
|
|
47
|
+
* `"10:30"`, `"Ontem"` or `"28/09/2026"`). Hidden when omitted or empty.
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
+
when?: string;
|
|
49
50
|
}
|
|
50
51
|
interface AppBarUserProps {
|
|
51
52
|
/**
|
|
@@ -144,6 +145,9 @@ type MainProps = {
|
|
|
144
145
|
dataTestid?: string;
|
|
145
146
|
/**
|
|
146
147
|
* URL to logo image.
|
|
148
|
+
*
|
|
149
|
+
* The logo is decorative (`alt=""`): screen readers identify the app by
|
|
150
|
+
* the app bar title (`appBar.title`).
|
|
147
151
|
*/
|
|
148
152
|
logo?: string;
|
|
149
153
|
/**
|
|
@@ -154,6 +158,13 @@ type MainProps = {
|
|
|
154
158
|
* Navigation menu properties.
|
|
155
159
|
*/
|
|
156
160
|
navigationMenu?: NavigationMenuProps;
|
|
161
|
+
/**
|
|
162
|
+
* Shows skeleton loaders in place of the user-related parts of the app bar
|
|
163
|
+
* and of the navigation menu items while their data is being loaded.
|
|
164
|
+
* The main content (default slot) isn't affected.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
loading?: boolean;
|
|
157
168
|
};
|
|
158
169
|
//#endregion
|
|
159
170
|
//#region src/components/main/main.vue.d.ts
|
|
@@ -171,8 +182,8 @@ type MainProps = {
|
|
|
171
182
|
*
|
|
172
183
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/main | Main Guide}
|
|
173
184
|
*/
|
|
174
|
-
declare const _default$
|
|
175
|
-
declare const __VLS_export$
|
|
185
|
+
declare const _default$11: typeof __VLS_export$16;
|
|
186
|
+
declare const __VLS_export$16: __VLS_WithSlots$10<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<MainProps & {
|
|
176
187
|
notificationsOpen?: boolean;
|
|
177
188
|
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
178
189
|
"update:notificationsOpen": (value: boolean) => any;
|
|
@@ -183,56 +194,12 @@ declare const __VLS_export$9: __VLS_WithSlots$7<import("vue", { with: { "resolut
|
|
|
183
194
|
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
184
195
|
default?: (props: {}) => any;
|
|
185
196
|
}>;
|
|
186
|
-
type __VLS_WithSlots$
|
|
197
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
187
198
|
new (): {
|
|
188
199
|
$slots: S;
|
|
189
200
|
};
|
|
190
201
|
};
|
|
191
202
|
//#endregion
|
|
192
|
-
//#region src/components/button/types.d.ts
|
|
193
|
-
type ButtonVariant = "primary" | "secondary" | "ghost";
|
|
194
|
-
/**
|
|
195
|
-
* Props exposed by the {@link Button} component.
|
|
196
|
-
*/
|
|
197
|
-
type ButtonProps = {
|
|
198
|
-
/**
|
|
199
|
-
* Applies a distinct style variation to the button.
|
|
200
|
-
* One of `primary`, `secondary`, or `ghost`.
|
|
201
|
-
* @default "primary"
|
|
202
|
-
*/
|
|
203
|
-
variant?: ButtonVariant;
|
|
204
|
-
/**
|
|
205
|
-
* Applies a distinct behavior to the button.
|
|
206
|
-
* One of `button` or `submit`.
|
|
207
|
-
* @default "button"
|
|
208
|
-
*/
|
|
209
|
-
type?: "submit" | "button";
|
|
210
|
-
/**
|
|
211
|
-
* Applies a color to the button.
|
|
212
|
-
* One of `primary`, `secondary`, `positive`, `informative`, `caution`, or `danger`.
|
|
213
|
-
* @default "primary"
|
|
214
|
-
*/
|
|
215
|
-
color?: ColorVariant;
|
|
216
|
-
/**
|
|
217
|
-
* Removes the ability to click or target the button.
|
|
218
|
-
* @default false
|
|
219
|
-
*/
|
|
220
|
-
disabled?: boolean;
|
|
221
|
-
/**
|
|
222
|
-
* Displays a loading indicator on the button, disabling interaction.
|
|
223
|
-
* @default false
|
|
224
|
-
*/
|
|
225
|
-
loading?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* Associated [form](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/form) id.
|
|
228
|
-
*/
|
|
229
|
-
form?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Component id to use on automated tests.
|
|
232
|
-
*/
|
|
233
|
-
dataTestid?: string;
|
|
234
|
-
};
|
|
235
|
-
//#endregion
|
|
236
203
|
//#region src/components/button/button.vue.d.ts
|
|
237
204
|
/**
|
|
238
205
|
* Button component to be used throughout the application.
|
|
@@ -248,15 +215,15 @@ type ButtonProps = {
|
|
|
248
215
|
*
|
|
249
216
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/button | Button Guide}
|
|
250
217
|
*/
|
|
251
|
-
declare const _default: typeof __VLS_export$
|
|
252
|
-
declare const __VLS_export$
|
|
218
|
+
declare const _default$1: typeof __VLS_export$15;
|
|
219
|
+
declare const __VLS_export$15: __VLS_WithSlots$9<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
253
220
|
click: (event: MouseEvent) => any;
|
|
254
221
|
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
255
222
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
256
223
|
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
257
224
|
default?: (props: {}) => any;
|
|
258
225
|
}>;
|
|
259
|
-
type __VLS_WithSlots$
|
|
226
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
260
227
|
new (): {
|
|
261
228
|
$slots: S;
|
|
262
229
|
};
|
|
@@ -326,6 +293,118 @@ type TextFieldProps = {
|
|
|
326
293
|
dataTestid?: string;
|
|
327
294
|
};
|
|
328
295
|
//#endregion
|
|
296
|
+
//#region src/components/inputs/autocomplete-field/types.d.ts
|
|
297
|
+
/**
|
|
298
|
+
* Autocomplete/Combobox item type that can be either a string or an object with label and value.
|
|
299
|
+
*/
|
|
300
|
+
type AutocompleteItem<T = string> = string | {
|
|
301
|
+
label: string;
|
|
302
|
+
value: T;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* Props exposed by the {@link AutocompleteField} component.
|
|
306
|
+
*/
|
|
307
|
+
type AutocompleteFieldProps<T = string, Multiple extends boolean = false> = {
|
|
308
|
+
/**
|
|
309
|
+
* Applies a distinct style variation to the field.
|
|
310
|
+
* One of `primary` or `secondary`.
|
|
311
|
+
* @default "primary"
|
|
312
|
+
*/
|
|
313
|
+
variant?: TextFieldVariant;
|
|
314
|
+
/**
|
|
315
|
+
* Removes the ability to click or target the field.
|
|
316
|
+
* @default false
|
|
317
|
+
*/
|
|
318
|
+
disabled?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Displays a loading indicator on the input.
|
|
321
|
+
* @default false
|
|
322
|
+
*/
|
|
323
|
+
loading?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* Displays clear action.
|
|
326
|
+
* @default false
|
|
327
|
+
*/
|
|
328
|
+
clearable?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Prevent value changes.
|
|
331
|
+
* @default false
|
|
332
|
+
*/
|
|
333
|
+
readonly?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Add rules to require field to be filled before form submission.
|
|
336
|
+
* @default false
|
|
337
|
+
*/
|
|
338
|
+
required?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Field label.
|
|
341
|
+
*/
|
|
342
|
+
label?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Field placeholder.
|
|
345
|
+
*/
|
|
346
|
+
placeholder?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Field message to show and direct user to fill field correctly.
|
|
349
|
+
*
|
|
350
|
+
* This message will be replaced when there's an error message to be shown.
|
|
351
|
+
*/
|
|
352
|
+
hint?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Component id to use on automated tests.
|
|
355
|
+
*/
|
|
356
|
+
dataTestid?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Used to prevent user from adding new values to the list.
|
|
359
|
+
* @default false
|
|
360
|
+
*/
|
|
361
|
+
strict?: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Allow selecting/typing more than one value.
|
|
364
|
+
*
|
|
365
|
+
* Passing the literal `true` narrows `modelValue` and `update:modelValue`
|
|
366
|
+
* to `T[]` instead of `T`.
|
|
367
|
+
* @default false
|
|
368
|
+
*/
|
|
369
|
+
multiple?: Multiple;
|
|
370
|
+
/**
|
|
371
|
+
* List of autocomplete items. Can be strings or objects with label and value.
|
|
372
|
+
* @default []
|
|
373
|
+
*/
|
|
374
|
+
items?: AutocompleteItem<T>[];
|
|
375
|
+
};
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/components/inputs/autocomplete-field/autocomplete-field.vue.d.ts
|
|
378
|
+
/**
|
|
379
|
+
* Select field component to be used throughout the application.
|
|
380
|
+
*
|
|
381
|
+
* @example
|
|
382
|
+
* ```vue
|
|
383
|
+
* <template>
|
|
384
|
+
* <u-autocomplete-field label="Country" :items="['Brazil', 'Argentina']" />
|
|
385
|
+
* </template>
|
|
386
|
+
* ```
|
|
387
|
+
*
|
|
388
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/autocomplete-field | AutocompleteField Guide}
|
|
389
|
+
*/
|
|
390
|
+
declare const _default: typeof __VLS_export$14;
|
|
391
|
+
declare const __VLS_export$14: <T = string, Multiple extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
392
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal$2<(AutocompleteFieldProps<T, Multiple> & {
|
|
393
|
+
modelValue?: Multiple extends true ? T[] : T;
|
|
394
|
+
}) & {
|
|
395
|
+
"onUpdate:modelValue"?: ((value: Multiple extends true ? T[] : T | undefined) => any) | undefined;
|
|
396
|
+
}> & (typeof globalThis extends {
|
|
397
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
398
|
+
} ? P : {});
|
|
399
|
+
expose: (exposed: {}) => void;
|
|
400
|
+
attrs: any;
|
|
401
|
+
slots: {};
|
|
402
|
+
emit: (event: "update:modelValue", value: Multiple extends true ? T[] : T | undefined) => void;
|
|
403
|
+
}>) => import("vue").VNode & {
|
|
404
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
405
|
+
};
|
|
406
|
+
type __VLS_PrettifyLocal$2<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
407
|
+
//#endregion
|
|
329
408
|
//#region src/components/inputs/text-field/text-field.vue.d.ts
|
|
330
409
|
/**
|
|
331
410
|
* Text field component to be used throughout the application.
|
|
@@ -339,8 +418,8 @@ type TextFieldProps = {
|
|
|
339
418
|
*
|
|
340
419
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/text-field | TextField Guide}
|
|
341
420
|
*/
|
|
342
|
-
declare const _default$
|
|
343
|
-
declare const __VLS_export$
|
|
421
|
+
declare const _default$16: typeof __VLS_export$13;
|
|
422
|
+
declare const __VLS_export$13: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<TextFieldProps & {
|
|
344
423
|
modelValue?: string;
|
|
345
424
|
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
346
425
|
"update:modelValue": (value: string) => any;
|
|
@@ -354,6 +433,183 @@ declare const __VLS_export$7: import("vue", { with: { "resolution-mode": "import
|
|
|
354
433
|
clearable: boolean;
|
|
355
434
|
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
356
435
|
//#endregion
|
|
436
|
+
//#region src/components/inputs/checkbox/types.d.ts
|
|
437
|
+
/**
|
|
438
|
+
* Props exposed by the {@link Checkbox} component.
|
|
439
|
+
*/
|
|
440
|
+
type CheckboxProps<T = boolean> = {
|
|
441
|
+
/**
|
|
442
|
+
* Field label.
|
|
443
|
+
*/
|
|
444
|
+
label?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Removes the ability to click or target the checkbox.
|
|
447
|
+
* @default false
|
|
448
|
+
*/
|
|
449
|
+
disabled?: boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Prevent value changes.
|
|
452
|
+
* @default false
|
|
453
|
+
*/
|
|
454
|
+
readonly?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Value applied to the model when the checkbox is checked.
|
|
457
|
+
* @default true
|
|
458
|
+
*/
|
|
459
|
+
trueValue?: T;
|
|
460
|
+
/**
|
|
461
|
+
* Value applied to the model when the checkbox is unchecked.
|
|
462
|
+
* @default false
|
|
463
|
+
*/
|
|
464
|
+
falseValue?: T;
|
|
465
|
+
/**
|
|
466
|
+
* Component id to use on automated tests.
|
|
467
|
+
*/
|
|
468
|
+
dataTestid?: string;
|
|
469
|
+
};
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/components/inputs/checkbox/checkbox.vue.d.ts
|
|
472
|
+
/**
|
|
473
|
+
* Checkbox component to be used throughout the application.
|
|
474
|
+
*
|
|
475
|
+
* @example
|
|
476
|
+
* ```vue
|
|
477
|
+
* <template>
|
|
478
|
+
* <u-checkbox label="Aceito os termos" />
|
|
479
|
+
* </template>
|
|
480
|
+
* ```
|
|
481
|
+
*
|
|
482
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/checkbox | Checkbox Guide}
|
|
483
|
+
*/
|
|
484
|
+
declare const _default$2: typeof __VLS_export$12;
|
|
485
|
+
declare const __VLS_export$12: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
486
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<(CheckboxProps<boolean | T> & {
|
|
487
|
+
modelValue?: T;
|
|
488
|
+
}) & {
|
|
489
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
490
|
+
}> & (typeof globalThis extends {
|
|
491
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
492
|
+
} ? P : {});
|
|
493
|
+
expose: (exposed: {}) => void;
|
|
494
|
+
attrs: any;
|
|
495
|
+
slots: {};
|
|
496
|
+
emit: (event: "update:modelValue", value: T) => void;
|
|
497
|
+
}>) => import("vue").VNode & {
|
|
498
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
499
|
+
};
|
|
500
|
+
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region src/components/inputs/date-time-field/types.d.ts
|
|
503
|
+
type DateTimeFieldVariant = TextFieldVariant;
|
|
504
|
+
type DateTimeFieldType = "date" | "time" | "datetime";
|
|
505
|
+
/**
|
|
506
|
+
* Props exposed by the {@link DateTimeField} component.
|
|
507
|
+
*/
|
|
508
|
+
type DateTimeFieldProps = {
|
|
509
|
+
/**
|
|
510
|
+
* Applies a distinct style variation to the field.
|
|
511
|
+
* One of `primary` or `secondary`.
|
|
512
|
+
* @default "primary"
|
|
513
|
+
*/
|
|
514
|
+
variant?: DateTimeFieldVariant;
|
|
515
|
+
/**
|
|
516
|
+
* Defines which pickers are available and the format of the value.
|
|
517
|
+
*
|
|
518
|
+
* - `date`: value formatted as `YYYY-MM-DD` (e.g. `2026-09-24`);
|
|
519
|
+
* - `time`: value formatted as `HH:mm`, 24h (e.g. `14:30`);
|
|
520
|
+
* - `datetime`: value formatted as `YYYY-MM-DDTHH:mm` (e.g. `2026-09-24T14:30`).
|
|
521
|
+
* @default "datetime"
|
|
522
|
+
*/
|
|
523
|
+
type?: DateTimeFieldType;
|
|
524
|
+
/**
|
|
525
|
+
* Minimum allowed value, in the same format as the value for the current `type`.
|
|
526
|
+
*
|
|
527
|
+
* Earlier options can't be picked, and an earlier value shows an error message.
|
|
528
|
+
* For `datetime`, the time limit only applies to the minimum's own date.
|
|
529
|
+
*/
|
|
530
|
+
min?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Maximum allowed value, in the same format as the value for the current `type`.
|
|
533
|
+
*
|
|
534
|
+
* Later options can't be picked, and a later value shows an error message.
|
|
535
|
+
* For `datetime`, the time limit only applies to the maximum's own date.
|
|
536
|
+
*/
|
|
537
|
+
max?: string;
|
|
538
|
+
/**
|
|
539
|
+
* Removes the ability to click or target the field.
|
|
540
|
+
* @default false
|
|
541
|
+
*/
|
|
542
|
+
disabled?: boolean;
|
|
543
|
+
/**
|
|
544
|
+
* Displays a loading indicator on the input.
|
|
545
|
+
* @default false
|
|
546
|
+
*/
|
|
547
|
+
loading?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Displays clear action, which is hidden while the field is `readonly`.
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
clearable?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Prevent value changes. The pickers won't open.
|
|
555
|
+
* @default false
|
|
556
|
+
*/
|
|
557
|
+
readonly?: boolean;
|
|
558
|
+
/**
|
|
559
|
+
* Add `rules` to require field to be filled before form submission.
|
|
560
|
+
* @default false
|
|
561
|
+
*/
|
|
562
|
+
required?: boolean;
|
|
563
|
+
/**
|
|
564
|
+
* Field label.
|
|
565
|
+
*/
|
|
566
|
+
label?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Field placeholder.
|
|
569
|
+
*/
|
|
570
|
+
placeholder?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Field message to show and direct user to fill field correctly.
|
|
573
|
+
*
|
|
574
|
+
* This message will be replaced when there's an error message to be shown.
|
|
575
|
+
*/
|
|
576
|
+
hint?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Component id to use on automated tests.
|
|
579
|
+
*/
|
|
580
|
+
dataTestid?: string;
|
|
581
|
+
};
|
|
582
|
+
//#endregion
|
|
583
|
+
//#region src/components/inputs/date-time-field/date-time-field.vue.d.ts
|
|
584
|
+
/**
|
|
585
|
+
* Date and/or time field component to be used throughout the application.
|
|
586
|
+
*
|
|
587
|
+
* Its value uses the native input formats: `YYYY-MM-DD` for `date`, `HH:mm`
|
|
588
|
+
* for `time` and `YYYY-MM-DDTHH:mm` for `datetime`.
|
|
589
|
+
*
|
|
590
|
+
* @example
|
|
591
|
+
* ```vue
|
|
592
|
+
* <template>
|
|
593
|
+
* <u-date-time-field v-model="birthDate" label="Data de nascimento" type="date" />
|
|
594
|
+
* <template>
|
|
595
|
+
* ```
|
|
596
|
+
*
|
|
597
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/date-time-field | DateTimeField Guide}
|
|
598
|
+
*/
|
|
599
|
+
declare const _default$7: typeof __VLS_export$11;
|
|
600
|
+
declare const __VLS_export$11: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<DateTimeFieldProps & {
|
|
601
|
+
modelValue?: string;
|
|
602
|
+
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
603
|
+
"update:modelValue": (value: string) => any;
|
|
604
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<DateTimeFieldProps & {
|
|
605
|
+
modelValue?: string;
|
|
606
|
+
}> & Readonly<{
|
|
607
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
608
|
+
}>, {
|
|
609
|
+
variant: DateTimeFieldVariant;
|
|
610
|
+
type: DateTimeFieldType;
|
|
611
|
+
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
612
|
+
//#endregion
|
|
357
613
|
//#region src/components/grid/container/types.d.ts
|
|
358
614
|
/**
|
|
359
615
|
* Props exposed by the {@link Container} component.
|
|
@@ -380,11 +636,11 @@ type ContainerProps = {
|
|
|
380
636
|
*
|
|
381
637
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Container Guide}
|
|
382
638
|
*/
|
|
383
|
-
declare const _default$
|
|
384
|
-
declare const __VLS_export$
|
|
639
|
+
declare const _default$4: typeof __VLS_export$10;
|
|
640
|
+
declare const __VLS_export$10: __VLS_WithSlots$8<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
385
641
|
default?: (props: {}) => any;
|
|
386
642
|
}>;
|
|
387
|
-
type __VLS_WithSlots$
|
|
643
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
388
644
|
new (): {
|
|
389
645
|
$slots: S;
|
|
390
646
|
};
|
|
@@ -395,11 +651,36 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
395
651
|
* Props exposed by the {@link Row} component.
|
|
396
652
|
*/
|
|
397
653
|
type RowProps = {
|
|
654
|
+
/**
|
|
655
|
+
* Vertical alignment of the row's columns, relative to the tallest column on the same line.
|
|
656
|
+
* Available options are:
|
|
657
|
+
* - `"start"`: aligns the columns to the top;
|
|
658
|
+
* - `"center"`: centers the columns vertically;
|
|
659
|
+
* - `"end"`: aligns the columns to the bottom;
|
|
660
|
+
* - `"stretch"`: stretches every column to the height of the tallest one.
|
|
661
|
+
*
|
|
662
|
+
* Use `"stretch"` to keep side by side columns at the same height, e.g. cards made of
|
|
663
|
+
* `USection`s with `fullHeight`.
|
|
664
|
+
*
|
|
665
|
+
* Columns sit side by side only from the `sm` breakpoint up. Below it, each column takes a
|
|
666
|
+
* whole line, so the alignment has no visible effect.
|
|
667
|
+
* @default "start"
|
|
668
|
+
*/
|
|
669
|
+
align?: RowAlign;
|
|
670
|
+
/**
|
|
671
|
+
* Renders the row as a list (`<ul>`), without the list's default indentation
|
|
672
|
+
* and bullets, so assistive technologies announce its columns as the items
|
|
673
|
+
* of a list. Use it for a grid of records that is, semantically, a list,
|
|
674
|
+
* like cards of patients, and set `listItem` on each of its `UColumn`s.
|
|
675
|
+
* @default false
|
|
676
|
+
*/
|
|
677
|
+
list?: boolean;
|
|
398
678
|
/**
|
|
399
679
|
* Component id to use on automated tests.
|
|
400
680
|
*/
|
|
401
681
|
dataTestid?: string;
|
|
402
682
|
};
|
|
683
|
+
type RowAlign = "start" | "center" | "end" | "stretch";
|
|
403
684
|
//#endregion
|
|
404
685
|
//#region src/components/grid/row/row.vue.d.ts
|
|
405
686
|
/**
|
|
@@ -409,7 +690,7 @@ type RowProps = {
|
|
|
409
690
|
* ```vue
|
|
410
691
|
* <template>
|
|
411
692
|
* <u-container>
|
|
412
|
-
*
|
|
693
|
+
* <u-row align="center">
|
|
413
694
|
* <!-- uimed-column -->
|
|
414
695
|
* </u-row>
|
|
415
696
|
* </u-container>
|
|
@@ -418,11 +699,13 @@ type RowProps = {
|
|
|
418
699
|
*
|
|
419
700
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Row Guide}
|
|
420
701
|
*/
|
|
421
|
-
declare const _default$
|
|
422
|
-
declare const __VLS_export$
|
|
702
|
+
declare const _default$12: typeof __VLS_export$9;
|
|
703
|
+
declare const __VLS_export$9: __VLS_WithSlots$7<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<RowProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<RowProps> & Readonly<{}>, {
|
|
704
|
+
align: RowAlign;
|
|
705
|
+
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
423
706
|
default?: (props: {}) => any;
|
|
424
707
|
}>;
|
|
425
|
-
type __VLS_WithSlots$
|
|
708
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
426
709
|
new (): {
|
|
427
710
|
$slots: S;
|
|
428
711
|
};
|
|
@@ -441,6 +724,13 @@ type ColumnProps = {
|
|
|
441
724
|
* @default "12"
|
|
442
725
|
*/
|
|
443
726
|
cols?: Cols;
|
|
727
|
+
/**
|
|
728
|
+
* Renders the column as an item of a list (`<li>`), without its bullet.
|
|
729
|
+
* Use it on every column of a `URow` with `list`, whose records are,
|
|
730
|
+
* semantically, the items of a list.
|
|
731
|
+
* @default false
|
|
732
|
+
*/
|
|
733
|
+
listItem?: boolean;
|
|
444
734
|
/**
|
|
445
735
|
* Component id to use on automated tests.
|
|
446
736
|
*/
|
|
@@ -467,13 +757,13 @@ type Cols = "auto" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10"
|
|
|
467
757
|
*
|
|
468
758
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/layout | Column Guide}
|
|
469
759
|
*/
|
|
470
|
-
declare const _default$
|
|
471
|
-
declare const __VLS_export$
|
|
760
|
+
declare const _default$3: typeof __VLS_export$8;
|
|
761
|
+
declare const __VLS_export$8: __VLS_WithSlots$6<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<ColumnProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<ColumnProps> & Readonly<{}>, {
|
|
472
762
|
cols: "12" | "auto" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11";
|
|
473
763
|
}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
474
764
|
default?: (props: {}) => any;
|
|
475
765
|
}>;
|
|
476
|
-
type __VLS_WithSlots$
|
|
766
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
477
767
|
new (): {
|
|
478
768
|
$slots: S;
|
|
479
769
|
};
|
|
@@ -510,15 +800,15 @@ type FormProps = {
|
|
|
510
800
|
*
|
|
511
801
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/form | Form Guide}
|
|
512
802
|
*/
|
|
513
|
-
declare const _default$
|
|
514
|
-
declare const __VLS_export$
|
|
803
|
+
declare const _default$10: typeof __VLS_export$7;
|
|
804
|
+
declare const __VLS_export$7: __VLS_WithSlots$5<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<FormProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
515
805
|
submit: (event: SubmitEvent) => any;
|
|
516
806
|
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<FormProps> & Readonly<{
|
|
517
807
|
onSubmit?: ((event: SubmitEvent) => any) | undefined;
|
|
518
808
|
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
519
809
|
default?: (props: {}) => any;
|
|
520
810
|
}>;
|
|
521
|
-
type __VLS_WithSlots$
|
|
811
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
522
812
|
new (): {
|
|
523
813
|
$slots: S;
|
|
524
814
|
};
|
|
@@ -540,11 +830,11 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
540
830
|
*
|
|
541
831
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/section | Section Guide}
|
|
542
832
|
*/
|
|
543
|
-
declare const _default$
|
|
544
|
-
declare const __VLS_export$
|
|
833
|
+
declare const _default$14: typeof __VLS_export$6;
|
|
834
|
+
declare const __VLS_export$6: __VLS_WithSlots$4<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>, {
|
|
545
835
|
default?: (props: {}) => any;
|
|
546
836
|
}>;
|
|
547
|
-
type __VLS_WithSlots$
|
|
837
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
548
838
|
new (): {
|
|
549
839
|
$slots: S;
|
|
550
840
|
};
|
|
@@ -552,6 +842,7 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
552
842
|
//#endregion
|
|
553
843
|
//#region src/components/sections/section/types.d.ts
|
|
554
844
|
type SectionVariant = "primary" | "secondary";
|
|
845
|
+
type SectionTextAlign = "start" | "center" | "end";
|
|
555
846
|
/**
|
|
556
847
|
* Props exposed by the {@link Section} component.
|
|
557
848
|
*/
|
|
@@ -570,6 +861,20 @@ type SectionProps = {
|
|
|
570
861
|
* Subtitle displayed below the title.
|
|
571
862
|
*/
|
|
572
863
|
subtitle?: string;
|
|
864
|
+
/**
|
|
865
|
+
* Horizontal alignment of the section's title, subtitle, content and actions.
|
|
866
|
+
* Available options are:
|
|
867
|
+
* - `"start"`: aligns the text to the start (left in left-to-right languages)
|
|
868
|
+
* and keeps the actions at the end;
|
|
869
|
+
* - `"center"`: centers the text and the actions;
|
|
870
|
+
* - `"end"`: aligns the text and the actions to the end.
|
|
871
|
+
*
|
|
872
|
+
* Uses `start`/`end` instead of `left`/`right`, so it follows the text
|
|
873
|
+
* direction in right-to-left languages. Nested components inherit the
|
|
874
|
+
* alignment, unless they define their own.
|
|
875
|
+
* @default "start"
|
|
876
|
+
*/
|
|
877
|
+
textAlign?: SectionTextAlign;
|
|
573
878
|
/**
|
|
574
879
|
* List of actions displayed at the bottom of the section, inside
|
|
575
880
|
* `v-card-actions`. When undefined or empty, no actions area is rendered.
|
|
@@ -582,6 +887,9 @@ type SectionProps = {
|
|
|
582
887
|
fullWidth?: boolean;
|
|
583
888
|
/**
|
|
584
889
|
* Makes the section occupy 100% of its parent's height.
|
|
890
|
+
*
|
|
891
|
+
* Inside a `URow`, set its `align` to `"stretch"` so the section takes the height of the
|
|
892
|
+
* tallest column on the same line.
|
|
585
893
|
* @default false
|
|
586
894
|
*/
|
|
587
895
|
fullHeight?: boolean;
|
|
@@ -626,11 +934,11 @@ interface SectionAction extends ButtonProps {
|
|
|
626
934
|
*
|
|
627
935
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/section | Section Guide}
|
|
628
936
|
*/
|
|
629
|
-
declare const _default$
|
|
630
|
-
declare const __VLS_export$
|
|
937
|
+
declare const _default$13: typeof __VLS_export$5;
|
|
938
|
+
declare const __VLS_export$5: __VLS_WithSlots$3<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<SectionProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<SectionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
631
939
|
default?: (props: {}) => any;
|
|
632
940
|
}>;
|
|
633
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
941
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
634
942
|
new (): {
|
|
635
943
|
$slots: S;
|
|
636
944
|
};
|
|
@@ -701,7 +1009,318 @@ type TableProps = {
|
|
|
701
1009
|
*
|
|
702
1010
|
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/table | Table Guide}
|
|
703
1011
|
*/
|
|
704
|
-
declare const _default$
|
|
705
|
-
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<TableProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
1012
|
+
declare const _default$15: typeof __VLS_export$4;
|
|
1013
|
+
declare const __VLS_export$4: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<TableProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<TableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/components/details/types.d.ts
|
|
1016
|
+
type DetailsVariant = "primary" | "secondary";
|
|
1017
|
+
/**
|
|
1018
|
+
* Props exposed by the {@link Details} component.
|
|
1019
|
+
*/
|
|
1020
|
+
type DetailsProps = {
|
|
1021
|
+
/**
|
|
1022
|
+
* Applies a distinct style variation to the details.
|
|
1023
|
+
* One of `primary` or `secondary`.
|
|
1024
|
+
* @default "primary"
|
|
1025
|
+
*/
|
|
1026
|
+
variant?: DetailsVariant;
|
|
1027
|
+
/**
|
|
1028
|
+
* Title displayed on the header, which expands or collapses the content
|
|
1029
|
+
* when clicked. The header stays clickable even without a title.
|
|
1030
|
+
*/
|
|
1031
|
+
title?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Shows a skeleton loader in place of the details while data is being
|
|
1034
|
+
* loaded.
|
|
1035
|
+
* @default false
|
|
1036
|
+
*/
|
|
1037
|
+
loading?: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* Component id to use on automated tests.
|
|
1040
|
+
*/
|
|
1041
|
+
dataTestid?: string;
|
|
1042
|
+
};
|
|
1043
|
+
//#endregion
|
|
1044
|
+
//#region src/components/details/details.vue.d.ts
|
|
1045
|
+
/**
|
|
1046
|
+
* Details component to show content that can be expanded or collapsed by
|
|
1047
|
+
* clicking on its title. Starts collapsed.
|
|
1048
|
+
*
|
|
1049
|
+
* @example
|
|
1050
|
+
* ```vue
|
|
1051
|
+
* <template>
|
|
1052
|
+
* <u-details title="Title">
|
|
1053
|
+
* Content
|
|
1054
|
+
* </u-details>
|
|
1055
|
+
* </template>
|
|
1056
|
+
* ```
|
|
1057
|
+
*
|
|
1058
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/details | Details Guide}
|
|
1059
|
+
*/
|
|
1060
|
+
declare const _default$8: typeof __VLS_export$3;
|
|
1061
|
+
declare const __VLS_export$3: __VLS_WithSlots$2<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<DetailsProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<DetailsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
1062
|
+
default?: (props: {}) => any;
|
|
1063
|
+
}>;
|
|
1064
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
1065
|
+
new (): {
|
|
1066
|
+
$slots: S;
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
//#endregion
|
|
1070
|
+
//#region src/components/data-sets/data-set/types.d.ts
|
|
1071
|
+
/**
|
|
1072
|
+
* Number of records shown side by side on each row of a {@link DataSet}.
|
|
1073
|
+
*/
|
|
1074
|
+
type DataSetColumns = 1 | 2 | 3 | 4 | 6;
|
|
1075
|
+
/**
|
|
1076
|
+
* Props exposed by the {@link DataSet} component.
|
|
1077
|
+
*/
|
|
1078
|
+
type DataSetProps<T extends object> = {
|
|
1079
|
+
/**
|
|
1080
|
+
* Records to be listed. Each record of the current page is passed, as is,
|
|
1081
|
+
* to the default slot.
|
|
1082
|
+
* @default []
|
|
1083
|
+
*/
|
|
1084
|
+
items?: T[];
|
|
1085
|
+
/**
|
|
1086
|
+
* Maximum number of records shown side by side on each row of the grid.
|
|
1087
|
+
* One of `1`, `2`, `3`, `4` or `6`.
|
|
1088
|
+
*
|
|
1089
|
+
* It's reduced to the largest of these values that keeps each record's card
|
|
1090
|
+
* at least 240px wide within the data set's own width, so narrow
|
|
1091
|
+
* containers, like dialogs or side panels, show fewer records per row, down
|
|
1092
|
+
* to a single one. On extra small screens, each record always takes the
|
|
1093
|
+
* full width.
|
|
1094
|
+
* @default 3
|
|
1095
|
+
*/
|
|
1096
|
+
columns?: DataSetColumns;
|
|
1097
|
+
/**
|
|
1098
|
+
* Maximum number of records shown per page. Page controls are only shown
|
|
1099
|
+
* when there's more than one page.
|
|
1100
|
+
* @default 10
|
|
1101
|
+
*/
|
|
1102
|
+
itemsPerPage?: number;
|
|
1103
|
+
/**
|
|
1104
|
+
* Shows a search field above the records, bound to `v-model:search`.
|
|
1105
|
+
* @default false
|
|
1106
|
+
*/
|
|
1107
|
+
searchable?: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Record properties considered by the search. When undefined or empty,
|
|
1110
|
+
* every property of the record is considered.
|
|
1111
|
+
*/
|
|
1112
|
+
searchKeys?: Array<Extract<keyof T, string>>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Message shown when there are no records to list, either because `items`
|
|
1115
|
+
* is empty or because no record matches the search.
|
|
1116
|
+
* @default "Nenhum registro encontrado."
|
|
1117
|
+
*/
|
|
1118
|
+
noDataText?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* Shows a skeleton loader in place of the records while data is being
|
|
1121
|
+
* loaded.
|
|
1122
|
+
* @default false
|
|
1123
|
+
*/
|
|
1124
|
+
loading?: boolean;
|
|
1125
|
+
/**
|
|
1126
|
+
* Component id to use on automated tests.
|
|
1127
|
+
*/
|
|
1128
|
+
dataTestid?: string;
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Slots exposed by the {@link DataSet} component.
|
|
1132
|
+
*/
|
|
1133
|
+
type DataSetSlots<T extends object> = {
|
|
1134
|
+
/**
|
|
1135
|
+
* Renders each record of the current page in its own grid column, usually
|
|
1136
|
+
* with `UDataSetItem`.
|
|
1137
|
+
* @param props.item The original record, from `items`.
|
|
1138
|
+
* @param props.index Position of the record inside the current page.
|
|
1139
|
+
*/
|
|
1140
|
+
default?: (props: {
|
|
1141
|
+
item: T;
|
|
1142
|
+
index: number;
|
|
1143
|
+
}) => unknown;
|
|
1144
|
+
};
|
|
1145
|
+
//#endregion
|
|
1146
|
+
//#region src/components/data-sets/data-set/data-set.vue.d.ts
|
|
1147
|
+
/**
|
|
1148
|
+
* Data set component to list records as a responsive grid of cards, with
|
|
1149
|
+
* client-side pagination and an optional search field. Each record of the
|
|
1150
|
+
* current page is rendered by the default slot, usually with `UDataSetItem`.
|
|
1151
|
+
*
|
|
1152
|
+
* @example
|
|
1153
|
+
* ```vue
|
|
1154
|
+
* <template>
|
|
1155
|
+
* <u-data-set :items="patients" :columns="4" searchable>
|
|
1156
|
+
* <template #default="{ item }">
|
|
1157
|
+
* <u-data-set-item :title="item.name" :subtitle="item.plan" />
|
|
1158
|
+
* </template>
|
|
1159
|
+
* </u-data-set>
|
|
1160
|
+
* </template>
|
|
1161
|
+
* ```
|
|
1162
|
+
*
|
|
1163
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/data-set | DataSet Guide}
|
|
1164
|
+
*/
|
|
1165
|
+
declare const _default$5: typeof __VLS_export$2;
|
|
1166
|
+
declare const __VLS_export$2: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1167
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(DataSetProps<T> & {
|
|
1168
|
+
page?: number;
|
|
1169
|
+
search?: string;
|
|
1170
|
+
}) & {
|
|
1171
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
1172
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
1173
|
+
}> & (typeof globalThis extends {
|
|
1174
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
1175
|
+
} ? P : {});
|
|
1176
|
+
expose: (exposed: {}) => void;
|
|
1177
|
+
attrs: any;
|
|
1178
|
+
slots: DataSetSlots<T>;
|
|
1179
|
+
emit: ((event: "update:page", value: number) => void) & ((event: "update:search", value: string) => void);
|
|
1180
|
+
}>) => import("vue").VNode & {
|
|
1181
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
1182
|
+
};
|
|
1183
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
1184
|
+
//#endregion
|
|
1185
|
+
//#region src/components/data-sets/data-set-item/types.d.ts
|
|
1186
|
+
/**
|
|
1187
|
+
* Props exposed by the {@link DataSetItem} component.
|
|
1188
|
+
*/
|
|
1189
|
+
type DataSetItemProps = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Title displayed at the top of the record's card.
|
|
1192
|
+
*/
|
|
1193
|
+
title?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* Short description displayed below the title.
|
|
1196
|
+
*/
|
|
1197
|
+
subtitle?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Applies a distinct style variation to the record's card, just like on
|
|
1200
|
+
* `USection`. One of `primary` or `secondary`.
|
|
1201
|
+
* @default "primary"
|
|
1202
|
+
*/
|
|
1203
|
+
variant?: SectionVariant;
|
|
1204
|
+
/**
|
|
1205
|
+
* Component id to use on automated tests.
|
|
1206
|
+
*/
|
|
1207
|
+
dataTestid?: string;
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
* Slots exposed by the {@link DataSetItem} component.
|
|
1211
|
+
*/
|
|
1212
|
+
type DataSetItemSlots = {
|
|
1213
|
+
/**
|
|
1214
|
+
* Details of the record, displayed below the title and subtitle, like a
|
|
1215
|
+
* vertical `UTable` with some of its fields.
|
|
1216
|
+
*/
|
|
1217
|
+
default?: () => unknown;
|
|
1218
|
+
};
|
|
1219
|
+
//#endregion
|
|
1220
|
+
//#region src/components/data-sets/data-set-item/data-set-item.vue.d.ts
|
|
1221
|
+
/**
|
|
1222
|
+
* Card of a single record listed by a {@link DataSet}, built on `USection`.
|
|
1223
|
+
* It fills the height of its grid column, so the cards of a row line up. Its
|
|
1224
|
+
* details, like a vertical `UTable`, go in the default slot.
|
|
1225
|
+
*
|
|
1226
|
+
* @example
|
|
1227
|
+
* ```vue
|
|
1228
|
+
* <template>
|
|
1229
|
+
* <u-data-set :items="patients">
|
|
1230
|
+
* <template #default="{ item }">
|
|
1231
|
+
* <u-data-set-item :title="item.name" subtitle="Beneficiário">
|
|
1232
|
+
* <u-table :headers="['Plano', 'Idade']" :items="[[item.plan, item.age]]" vertical />
|
|
1233
|
+
* </u-data-set-item>
|
|
1234
|
+
* </template>
|
|
1235
|
+
* </u-data-set>
|
|
1236
|
+
* </template>
|
|
1237
|
+
* ```
|
|
1238
|
+
*
|
|
1239
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/data-set | DataSet Guide}
|
|
1240
|
+
*/
|
|
1241
|
+
declare const _default$6: typeof __VLS_export$1;
|
|
1242
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<DataSetItemProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<DataSetItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, DataSetItemSlots>;
|
|
1243
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
1244
|
+
new (): {
|
|
1245
|
+
$slots: S;
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region src/components/dialogs/dialog/types.d.ts
|
|
1250
|
+
type DialogSize = "small" | "medium" | "large";
|
|
1251
|
+
/**
|
|
1252
|
+
* Props exposed by the {@link Dialog} component.
|
|
1253
|
+
*/
|
|
1254
|
+
type DialogProps = {
|
|
1255
|
+
/**
|
|
1256
|
+
* Plain text displayed as the dialog's title, in a single line. HTML isn't interpreted.
|
|
1257
|
+
* Also used as the dialog's accessible name. Without it, the content is the accessible name.
|
|
1258
|
+
*/
|
|
1259
|
+
title?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Buttons displayed at the bottom of the dialog, right-aligned, in the given order.
|
|
1262
|
+
* Place the main action last. When undefined or empty, no actions area is rendered.
|
|
1263
|
+
* Clicking an action doesn't close the dialog: set `v-model` to `false` in `onClick`.
|
|
1264
|
+
*/
|
|
1265
|
+
actions?: DialogButtonAction[];
|
|
1266
|
+
/**
|
|
1267
|
+
* Maximum width of the dialog.
|
|
1268
|
+
* One of `small` (400px), `medium` (560px), or `large` (800px).
|
|
1269
|
+
* @default "medium"
|
|
1270
|
+
*/
|
|
1271
|
+
size?: DialogSize;
|
|
1272
|
+
/**
|
|
1273
|
+
* Component id to use on automated tests.
|
|
1274
|
+
*/
|
|
1275
|
+
dataTestid?: string;
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* A single action rendered inside {@link Dialog}'s actions area. Same shape as `USection`'s
|
|
1279
|
+
* actions.
|
|
1280
|
+
*/
|
|
1281
|
+
interface DialogButtonAction extends ButtonProps {
|
|
1282
|
+
/**
|
|
1283
|
+
* Text displayed on the action button.
|
|
1284
|
+
*/
|
|
1285
|
+
label: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* Called when the action button is clicked. The dialog stays open.
|
|
1288
|
+
*/
|
|
1289
|
+
onClick?: (event: MouseEvent) => void;
|
|
1290
|
+
}
|
|
1291
|
+
//#endregion
|
|
1292
|
+
//#region src/components/dialogs/dialog/dialog.vue.d.ts
|
|
1293
|
+
/**
|
|
1294
|
+
* Dialog component to display content in a modal window, over the page, until it's closed.
|
|
1295
|
+
* Its title and actions stay in place while the content scrolls.
|
|
1296
|
+
*
|
|
1297
|
+
* @example
|
|
1298
|
+
* ```vue
|
|
1299
|
+
* <template>
|
|
1300
|
+
* <u-dialog v-model="open" title="Title" :actions="[{ label: 'Close', onClick: () => (open = false) }]">
|
|
1301
|
+
* Content
|
|
1302
|
+
* </u-dialog>
|
|
1303
|
+
* </template>
|
|
1304
|
+
* ```
|
|
1305
|
+
*
|
|
1306
|
+
* @see {@link https://nexdom-healthtech.github.io/uimed-vue/guide/components/dialog | Dialog Guide}
|
|
1307
|
+
*/
|
|
1308
|
+
declare const _default$9: typeof __VLS_export;
|
|
1309
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<DialogProps & {
|
|
1310
|
+
modelValue?: boolean;
|
|
1311
|
+
}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
|
|
1312
|
+
"update:modelValue": (value: boolean) => any;
|
|
1313
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<DialogProps & {
|
|
1314
|
+
modelValue?: boolean;
|
|
1315
|
+
}> & Readonly<{
|
|
1316
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1317
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>, {
|
|
1318
|
+
default?: (props: {}) => any;
|
|
1319
|
+
}>;
|
|
1320
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
1321
|
+
new (): {
|
|
1322
|
+
$slots: S;
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
706
1325
|
//#endregion
|
|
707
|
-
export {
|
|
1326
|
+
export { _default as UAutocompleteField, _default$1 as UButton, _default$2 as UCheckbox, _default$3 as UColumn, _default$4 as UContainer, _default$5 as UDataSet, _default$6 as UDataSetItem, _default$7 as UDateTimeField, _default$8 as UDetails, _default$9 as UDialog, _default$10 as UForm, _default$11 as UMain, _default$12 as URow, _default$13 as USection, _default$14 as USectionContent, _default$15 as UTable, _default$16 as UTextField };
|