@ousi-ui/vue 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.d.ts +404 -30
- package/dist/index.mjs +8124 -6551
- package/dist/vue.css +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { PublicProps } from 'vue';
|
|
|
19
19
|
import { Ref } from 'vue';
|
|
20
20
|
import { Strategy } from '@floating-ui/vue';
|
|
21
21
|
import { VNodeProps } from 'vue';
|
|
22
|
+
import { WritableComputedRef } from 'vue';
|
|
22
23
|
|
|
23
24
|
declare const __VLS_component: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
25
|
click: (event: MouseEvent) => any;
|
|
@@ -297,7 +298,6 @@ onChange?: ((date: CalendarDate | null) => any) | undefined;
|
|
|
297
298
|
}>, {
|
|
298
299
|
disabled: boolean;
|
|
299
300
|
readonly: boolean;
|
|
300
|
-
locale: string;
|
|
301
301
|
showOutsideDays: boolean;
|
|
302
302
|
showYearPicker: boolean;
|
|
303
303
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -382,25 +382,45 @@ showControls: boolean;
|
|
|
382
382
|
showSummary: boolean;
|
|
383
383
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
384
384
|
|
|
385
|
-
declare const __VLS_component_44: DefineComponent<TableProps, {
|
|
385
|
+
declare const __VLS_component_44: DefineComponent<TableProps, {
|
|
386
|
+
exportCSV: typeof exportCSV;
|
|
387
|
+
toggleColumn: typeof toggleColumn;
|
|
388
|
+
hiddenColumns: WritableComputedRef<Set<string>, Set<string>>;
|
|
389
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
386
390
|
selectionChange: (keys: Set<string>) => any;
|
|
387
|
-
sortChange: (descriptor: SortDescriptor) => any;
|
|
391
|
+
sortChange: (descriptor: SortDescriptor | SortDescriptor[]) => any;
|
|
392
|
+
expansionChange: (keys: Set<string>) => any;
|
|
393
|
+
"update:hiddenColumns": (keys: Set<string>) => any;
|
|
388
394
|
rowAction: (key: string) => any;
|
|
395
|
+
rowContextMenu: (row: Record<string, any>, event: MouseEvent) => any;
|
|
396
|
+
columnContextMenu: (column: TableColumn, event: MouseEvent) => any;
|
|
389
397
|
}, string, PublicProps, Readonly<TableProps> & Readonly<{
|
|
390
398
|
onSelectionChange?: ((keys: Set<string>) => any) | undefined;
|
|
391
|
-
onSortChange?: ((descriptor: SortDescriptor) => any) | undefined;
|
|
399
|
+
onSortChange?: ((descriptor: SortDescriptor | SortDescriptor[]) => any) | undefined;
|
|
400
|
+
onExpansionChange?: ((keys: Set<string>) => any) | undefined;
|
|
401
|
+
"onUpdate:hiddenColumns"?: ((keys: Set<string>) => any) | undefined;
|
|
392
402
|
onRowAction?: ((key: string) => any) | undefined;
|
|
403
|
+
onRowContextMenu?: ((row: Record<string, any>, event: MouseEvent) => any) | undefined;
|
|
404
|
+
onColumnContextMenu?: ((column: TableColumn, event: MouseEvent) => any) | undefined;
|
|
393
405
|
}>, {
|
|
394
406
|
variant: TableVariant;
|
|
395
407
|
shadow: TableShadow;
|
|
396
408
|
selectionMode: SelectionMode_2;
|
|
397
409
|
isLoading: boolean;
|
|
410
|
+
stickyHeader: boolean;
|
|
411
|
+
density: TableDensity;
|
|
398
412
|
rowKey: string;
|
|
413
|
+
showSelectionColumn: boolean;
|
|
414
|
+
multiSort: boolean;
|
|
415
|
+
manualSort: boolean;
|
|
399
416
|
loadingRows: number;
|
|
400
417
|
emptyContent: string;
|
|
401
418
|
showFooter: boolean;
|
|
402
419
|
allowsResizing: boolean;
|
|
403
|
-
|
|
420
|
+
expandable: boolean;
|
|
421
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
422
|
+
tableRef: HTMLTableElement;
|
|
423
|
+
}, HTMLDivElement>;
|
|
404
424
|
|
|
405
425
|
declare const __VLS_component_45: DefineComponent<ScrollShadowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ScrollShadowProps> & Readonly<{}>, {
|
|
406
426
|
size: number;
|
|
@@ -1113,10 +1133,21 @@ declare function __VLS_template_44(): {
|
|
|
1113
1133
|
value: any;
|
|
1114
1134
|
column: TableColumn;
|
|
1115
1135
|
}) => any>> & {
|
|
1136
|
+
toolbar?(_: {
|
|
1137
|
+
hiddenColumns: Set<string>;
|
|
1138
|
+
toggleColumn: typeof toggleColumn;
|
|
1139
|
+
exportCsv: typeof exportCSV;
|
|
1140
|
+
}): any;
|
|
1116
1141
|
empty?(_: {}): any;
|
|
1142
|
+
'expanded-row'?(_: {
|
|
1143
|
+
row: Record<string, any>;
|
|
1144
|
+
close: () => void;
|
|
1145
|
+
}): any;
|
|
1117
1146
|
footer?(_: {}): any;
|
|
1118
1147
|
};
|
|
1119
|
-
refs: {
|
|
1148
|
+
refs: {
|
|
1149
|
+
tableRef: HTMLTableElement;
|
|
1150
|
+
};
|
|
1120
1151
|
rootEl: HTMLDivElement;
|
|
1121
1152
|
};
|
|
1122
1153
|
|
|
@@ -2093,6 +2124,12 @@ export declare const animatedNumberTheme = "inline-flex items-baseline tabular-n
|
|
|
2093
2124
|
|
|
2094
2125
|
export declare type AnimatedNumberTrend = 'auto' | 'up' | 'down';
|
|
2095
2126
|
|
|
2127
|
+
/**
|
|
2128
|
+
* Internal — applies initial values from the plugin install hook.
|
|
2129
|
+
* Public consumers should write via `useOusiConfig()` instead.
|
|
2130
|
+
*/
|
|
2131
|
+
export declare function applyOusiConfig(init: OusiConfigInit): void;
|
|
2132
|
+
|
|
2096
2133
|
export declare const aspectRatioInnerTheme = "absolute inset-0";
|
|
2097
2134
|
|
|
2098
2135
|
export declare interface AspectRatioProps {
|
|
@@ -2418,8 +2455,11 @@ export declare interface CalendarProps {
|
|
|
2418
2455
|
unavailableDates?: CalendarDate[];
|
|
2419
2456
|
/** Days with indicators (dots). */
|
|
2420
2457
|
indicatorDays?: number[];
|
|
2421
|
-
/** Locale for month/day names. */
|
|
2458
|
+
/** Locale for month/day names. Falls back to the global config (useOusiConfig). */
|
|
2422
2459
|
locale?: string;
|
|
2460
|
+
/** First day of the week — 0=Sunday, 1=Monday, ..., 6=Saturday. Falls back
|
|
2461
|
+
* to the global config, then to a locale-region heuristic. */
|
|
2462
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2423
2463
|
/** Show days from previous/next month. */
|
|
2424
2464
|
showOutsideDays?: boolean;
|
|
2425
2465
|
/** Enable year picker overlay. */
|
|
@@ -2772,6 +2812,10 @@ export declare const codeBlockToggleTheme: string;
|
|
|
2772
2812
|
|
|
2773
2813
|
export declare type CodeBlockVariant = 'primary' | 'secondary';
|
|
2774
2814
|
|
|
2815
|
+
declare function collapse(key: string): void;
|
|
2816
|
+
|
|
2817
|
+
declare function collapseAll(): void;
|
|
2818
|
+
|
|
2775
2819
|
export declare const collapsibleContentTheme = "overflow-hidden";
|
|
2776
2820
|
|
|
2777
2821
|
export declare interface CollapsibleEmits {
|
|
@@ -3065,6 +3109,10 @@ export declare interface DateFieldProps {
|
|
|
3065
3109
|
min?: DateFieldValue;
|
|
3066
3110
|
/** Maximum allowed date. */
|
|
3067
3111
|
max?: DateFieldValue;
|
|
3112
|
+
/** Visual variant. Defaults to 'primary'. */
|
|
3113
|
+
variant?: DateFieldVariant;
|
|
3114
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3115
|
+
size?: DateFieldSize;
|
|
3068
3116
|
/** Elevation shadow. Defaults to 'xs'. */
|
|
3069
3117
|
shadow?: DateFieldShadow;
|
|
3070
3118
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3085,13 +3133,19 @@ export declare function dateFieldSegmentTheme(focused: boolean): string;
|
|
|
3085
3133
|
|
|
3086
3134
|
declare type DateFieldShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3087
3135
|
|
|
3136
|
+
declare type DateFieldSize = 'sm' | 'md' | 'lg';
|
|
3137
|
+
|
|
3088
3138
|
export declare interface DateFieldValue {
|
|
3089
3139
|
year: number;
|
|
3090
3140
|
month: number;
|
|
3091
3141
|
day: number;
|
|
3092
3142
|
}
|
|
3093
3143
|
|
|
3144
|
+
declare type DateFieldVariant = 'primary' | 'secondary';
|
|
3145
|
+
|
|
3094
3146
|
export declare const dateFieldWrapperTheme: (props?: ({
|
|
3147
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
3148
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3095
3149
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3096
3150
|
animated?: boolean | null | undefined;
|
|
3097
3151
|
} & ClassProp) | undefined) => string;
|
|
@@ -3151,6 +3205,8 @@ export declare interface DatePickerProps {
|
|
|
3151
3205
|
required?: boolean;
|
|
3152
3206
|
/** Visual variant of the field. Defaults to 'primary'. */
|
|
3153
3207
|
variant?: 'primary' | 'secondary';
|
|
3208
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3209
|
+
size?: DatePickerSize;
|
|
3154
3210
|
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
3155
3211
|
shadow?: DatePickerShadow;
|
|
3156
3212
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3161,9 +3217,12 @@ export declare interface DatePickerProps {
|
|
|
3161
3217
|
|
|
3162
3218
|
declare type DatePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3163
3219
|
|
|
3220
|
+
declare type DatePickerSize = 'sm' | 'md' | 'lg';
|
|
3221
|
+
|
|
3164
3222
|
/** Trigger row — unified field container for segments + icon. Owns ALL field chrome. */
|
|
3165
3223
|
export declare const datePickerTriggerTheme: (props?: ({
|
|
3166
3224
|
variant?: "primary" | "secondary" | null | undefined;
|
|
3225
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3167
3226
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3168
3227
|
animated?: boolean | null | undefined;
|
|
3169
3228
|
} & ClassProp) | undefined) => string;
|
|
@@ -3231,6 +3290,8 @@ export declare interface DateRangePickerProps {
|
|
|
3231
3290
|
required?: boolean;
|
|
3232
3291
|
/** Visual variant of the field. Defaults to 'primary'. */
|
|
3233
3292
|
variant?: 'primary' | 'secondary';
|
|
3293
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3294
|
+
size?: DateRangePickerSize;
|
|
3234
3295
|
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
3235
3296
|
shadow?: DateRangePickerShadow;
|
|
3236
3297
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3244,9 +3305,12 @@ export declare const dateRangePickerSeparatorTheme = "px-1.5 text-ousi-field-pla
|
|
|
3244
3305
|
|
|
3245
3306
|
declare type DateRangePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3246
3307
|
|
|
3308
|
+
declare type DateRangePickerSize = 'sm' | 'md' | 'lg';
|
|
3309
|
+
|
|
3247
3310
|
/** Trigger row — unified field for start segments + separator + end segments + icon. */
|
|
3248
3311
|
export declare const dateRangePickerTriggerTheme: (props?: ({
|
|
3249
3312
|
variant?: "primary" | "secondary" | null | undefined;
|
|
3313
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3250
3314
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3251
3315
|
animated?: boolean | null | undefined;
|
|
3252
3316
|
} & ClassProp) | undefined) => string;
|
|
@@ -3472,6 +3536,15 @@ export declare interface ElasticSliderProps {
|
|
|
3472
3536
|
|
|
3473
3537
|
export declare type ElasticSliderSize = 'sm' | 'md' | 'lg';
|
|
3474
3538
|
|
|
3539
|
+
declare function expand(key: string): void;
|
|
3540
|
+
|
|
3541
|
+
declare function expandAll(): void;
|
|
3542
|
+
|
|
3543
|
+
declare function exportCSV(options?: {
|
|
3544
|
+
filename?: string;
|
|
3545
|
+
includeHidden?: boolean;
|
|
3546
|
+
}): void;
|
|
3547
|
+
|
|
3475
3548
|
export declare const fileUploadAreaTheme: (props?: ({
|
|
3476
3549
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3477
3550
|
active?: boolean | null | undefined;
|
|
@@ -3534,6 +3607,8 @@ export declare type FileUploadVariant = 'area' | 'inline';
|
|
|
3534
3607
|
|
|
3535
3608
|
declare function fire(): void;
|
|
3536
3609
|
|
|
3610
|
+
declare function focusKey(key: string): void;
|
|
3611
|
+
|
|
3537
3612
|
declare interface FormContext {
|
|
3538
3613
|
/** Server-side validation errors keyed by field name. */
|
|
3539
3614
|
validationErrors: Ref<Record<string, string | string[]>>;
|
|
@@ -3566,6 +3641,19 @@ export declare interface FormProps {
|
|
|
3566
3641
|
class?: string;
|
|
3567
3642
|
}
|
|
3568
3643
|
|
|
3644
|
+
/**
|
|
3645
|
+
* Derive the first day of the week from a BCP 47 locale tag. Uses the
|
|
3646
|
+
* experimental `Intl.Locale#getWeekInfo()` when available (Chromium-based
|
|
3647
|
+
* browsers), falling back to a CLDR-derived region map otherwise.
|
|
3648
|
+
*/
|
|
3649
|
+
export declare function getFirstDayOfWeekForLocale(locale: string): WeekDay;
|
|
3650
|
+
|
|
3651
|
+
/**
|
|
3652
|
+
* Derive `hour12` for a locale via Intl. Returns the locale's natural choice
|
|
3653
|
+
* unless the config explicitly overrides it.
|
|
3654
|
+
*/
|
|
3655
|
+
export declare function getHour12ForLocale(locale: string): boolean;
|
|
3656
|
+
|
|
3569
3657
|
export declare type GradientTextPreset = 'aurora' | 'sunset' | 'ocean' | 'candy' | 'neon';
|
|
3570
3658
|
|
|
3571
3659
|
export declare interface GradientTextProps {
|
|
@@ -4282,10 +4370,11 @@ change: (value: DateFieldValue | null) => any;
|
|
|
4282
4370
|
onChange?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4283
4371
|
"onUpdate:modelValue"?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4284
4372
|
}>, {
|
|
4373
|
+
variant: DateFieldVariant;
|
|
4374
|
+
size: DateFieldSize;
|
|
4285
4375
|
shadow: DateFieldShadow;
|
|
4286
4376
|
disabled: boolean;
|
|
4287
4377
|
animated: boolean;
|
|
4288
|
-
locale: string;
|
|
4289
4378
|
granularity: DateFieldGranularity;
|
|
4290
4379
|
readOnly: boolean;
|
|
4291
4380
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -4298,13 +4387,13 @@ onChange?: ((value: DateFieldValue | null) => any) | undefined;
|
|
|
4298
4387
|
"onUpdate:modelValue"?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4299
4388
|
}>, {
|
|
4300
4389
|
variant: "primary" | "secondary";
|
|
4390
|
+
size: DatePickerSize;
|
|
4301
4391
|
shadow: DatePickerShadow;
|
|
4302
4392
|
disabled: boolean;
|
|
4303
4393
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
4304
4394
|
animated: boolean;
|
|
4305
4395
|
required: boolean;
|
|
4306
4396
|
readonly: boolean;
|
|
4307
|
-
locale: string;
|
|
4308
4397
|
showOutsideDays: boolean;
|
|
4309
4398
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4310
4399
|
triggerRef: HTMLDivElement;
|
|
@@ -4319,13 +4408,13 @@ onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
|
4319
4408
|
"onUpdate:modelValue"?: ((value: DateRangeValue | null) => any) | undefined;
|
|
4320
4409
|
}>, {
|
|
4321
4410
|
variant: "primary" | "secondary";
|
|
4411
|
+
size: DateRangePickerSize;
|
|
4322
4412
|
shadow: DateRangePickerShadow;
|
|
4323
4413
|
disabled: boolean;
|
|
4324
4414
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
4325
4415
|
animated: boolean;
|
|
4326
4416
|
required: boolean;
|
|
4327
4417
|
readonly: boolean;
|
|
4328
|
-
locale: string;
|
|
4329
4418
|
showOutsideDays: boolean;
|
|
4330
4419
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4331
4420
|
triggerRef: HTMLDivElement;
|
|
@@ -4474,7 +4563,6 @@ onChange?: ((range: DateRange | null) => any) | undefined;
|
|
|
4474
4563
|
"onUpdate:modelValue"?: ((range: DateRange | null) => any) | undefined;
|
|
4475
4564
|
}>, {
|
|
4476
4565
|
readonly: boolean;
|
|
4477
|
-
locale: string;
|
|
4478
4566
|
showOutsideDays: boolean;
|
|
4479
4567
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4480
4568
|
|
|
@@ -4578,18 +4666,42 @@ change: (value: TimeFieldValue | null) => any;
|
|
|
4578
4666
|
onChange?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4579
4667
|
"onUpdate:modelValue"?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4580
4668
|
}>, {
|
|
4669
|
+
variant: TimeFieldVariant;
|
|
4670
|
+
size: TimeFieldSize;
|
|
4581
4671
|
shadow: TimeFieldShadow;
|
|
4582
4672
|
disabled: boolean;
|
|
4583
4673
|
animated: boolean;
|
|
4584
4674
|
granularity: TimeFieldGranularity;
|
|
4585
4675
|
readOnly: boolean;
|
|
4586
|
-
hour12: boolean;
|
|
4587
4676
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4588
4677
|
|
|
4589
4678
|
export declare const OTimeline: __VLS_WithTemplateSlots_47<typeof __VLS_component_47, __VLS_TemplateResult_47["slots"]>;
|
|
4590
4679
|
|
|
4591
4680
|
export declare const OTimelineNav: __VLS_WithTemplateSlots_48<typeof __VLS_component_48, __VLS_TemplateResult_48["slots"]>;
|
|
4592
4681
|
|
|
4682
|
+
export declare const OTimePicker: DefineComponent<TimePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4683
|
+
change: (value: TimeFieldValue | null) => any;
|
|
4684
|
+
"update:modelValue": (value: TimeFieldValue | null) => any;
|
|
4685
|
+
}, string, PublicProps, Readonly<TimePickerProps> & Readonly<{
|
|
4686
|
+
onChange?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4687
|
+
"onUpdate:modelValue"?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4688
|
+
}>, {
|
|
4689
|
+
variant: "primary" | "secondary";
|
|
4690
|
+
size: TimePickerSize;
|
|
4691
|
+
shadow: TimePickerShadow;
|
|
4692
|
+
disabled: boolean;
|
|
4693
|
+
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
4694
|
+
animated: boolean;
|
|
4695
|
+
required: boolean;
|
|
4696
|
+
readonly: boolean;
|
|
4697
|
+
granularity: TimeFieldGranularity;
|
|
4698
|
+
interval: TimePickerInterval;
|
|
4699
|
+
showNow: boolean;
|
|
4700
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4701
|
+
triggerRef: HTMLButtonElement;
|
|
4702
|
+
popoverRef: HTMLDivElement;
|
|
4703
|
+
}, any>;
|
|
4704
|
+
|
|
4593
4705
|
export declare const OToastProvider: DefineComponent<ToastProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ToastProviderProps> & Readonly<{}>, {
|
|
4594
4706
|
shadow: ToastShadow;
|
|
4595
4707
|
placement: ToastPlacement;
|
|
@@ -4604,17 +4716,36 @@ export declare interface OtpGroup {
|
|
|
4604
4716
|
|
|
4605
4717
|
export declare type OtpSlotType = 'digit' | 'alpha' | 'alphanumeric';
|
|
4606
4718
|
|
|
4607
|
-
export declare const OTreeView: DefineComponent<TreeViewProps, {
|
|
4719
|
+
export declare const OTreeView: DefineComponent<TreeViewProps, {
|
|
4720
|
+
expand: typeof expand;
|
|
4721
|
+
collapse: typeof collapse;
|
|
4722
|
+
expandAll: typeof expandAll;
|
|
4723
|
+
collapseAll: typeof collapseAll;
|
|
4724
|
+
focusKey: typeof focusKey;
|
|
4725
|
+
reload: typeof reload;
|
|
4726
|
+
expandedKeys: WritableComputedRef<Set<string>, Set<string>>;
|
|
4727
|
+
selectedKey: WritableComputedRef<string, string>;
|
|
4728
|
+
selectedKeys: WritableComputedRef<Set<string>, Set<string>>;
|
|
4729
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4608
4730
|
select: (key: string, node: TreeNode) => any;
|
|
4731
|
+
"update:selectedKeys": (keys: Set<string>) => any;
|
|
4609
4732
|
collapse: (key: string) => any;
|
|
4610
4733
|
expand: (key: string) => any;
|
|
4734
|
+
"update:selectedKey": (key: string) => any;
|
|
4735
|
+
"update:expandedKeys": (keys: Set<string>) => any;
|
|
4611
4736
|
}, string, PublicProps, Readonly<TreeViewProps> & Readonly<{
|
|
4612
4737
|
onSelect?: ((key: string, node: TreeNode) => any) | undefined;
|
|
4738
|
+
"onUpdate:selectedKeys"?: ((keys: Set<string>) => any) | undefined;
|
|
4613
4739
|
onCollapse?: ((key: string) => any) | undefined;
|
|
4614
4740
|
onExpand?: ((key: string) => any) | undefined;
|
|
4741
|
+
"onUpdate:selectedKey"?: ((key: string) => any) | undefined;
|
|
4742
|
+
"onUpdate:expandedKeys"?: ((keys: Set<string>) => any) | undefined;
|
|
4615
4743
|
}>, {
|
|
4616
|
-
|
|
4617
|
-
|
|
4744
|
+
selectionMode: TreeSelectionMode;
|
|
4745
|
+
expandOnLabelClick: boolean;
|
|
4746
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4747
|
+
rootRef: HTMLDivElement;
|
|
4748
|
+
}, HTMLDivElement>;
|
|
4618
4749
|
|
|
4619
4750
|
export declare const OTypewriter: DefineComponent<TypewriterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TypewriterProps> & Readonly<{}>, {
|
|
4620
4751
|
delay: number;
|
|
@@ -4625,6 +4756,40 @@ deleteSpeed: number;
|
|
|
4625
4756
|
cursorChar: string;
|
|
4626
4757
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
4627
4758
|
|
|
4759
|
+
/**
|
|
4760
|
+
* Global Ousi UI configuration. Drives locale-aware behavior across date/time
|
|
4761
|
+
* components and other i18n-sensitive widgets. Singleton — module-level state,
|
|
4762
|
+
* shared across the entire app.
|
|
4763
|
+
*
|
|
4764
|
+
* Usage:
|
|
4765
|
+
*
|
|
4766
|
+
* const config = useOusiConfig()
|
|
4767
|
+
* config.locale.value = 'es-ES' // reactive: all date pickers re-render
|
|
4768
|
+
*
|
|
4769
|
+
* Or set the initial values via the plugin install:
|
|
4770
|
+
*
|
|
4771
|
+
* app.use(OusiUIPlugin, { locale: 'es-ES', hour12: false })
|
|
4772
|
+
*
|
|
4773
|
+
* Per-component `locale` props still override this config.
|
|
4774
|
+
*/
|
|
4775
|
+
export declare interface OusiConfig {
|
|
4776
|
+
/** BCP 47 locale tag — drives date/time format, AM/PM labels, weekday names. */
|
|
4777
|
+
locale: Ref<string>;
|
|
4778
|
+
/** Explicit override for 12-hour clock. When undefined, inferred from locale. */
|
|
4779
|
+
hour12: Ref<boolean | undefined>;
|
|
4780
|
+
/** First day of the week. 0 = Sunday, 1 = Monday. When undefined, inferred from locale. */
|
|
4781
|
+
firstDayOfWeek: Ref<WeekDay | undefined>;
|
|
4782
|
+
/** Text direction. Defaults to 'ltr'. */
|
|
4783
|
+
dir: Ref<'ltr' | 'rtl'>;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
export declare interface OusiConfigInit {
|
|
4787
|
+
locale?: string;
|
|
4788
|
+
hour12?: boolean;
|
|
4789
|
+
firstDayOfWeek?: WeekDay;
|
|
4790
|
+
dir?: 'ltr' | 'rtl';
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4628
4793
|
export declare function OusiResolver(options?: OusiResolverOptions): {
|
|
4629
4794
|
type: "component";
|
|
4630
4795
|
resolve(name: string): {
|
|
@@ -4646,7 +4811,7 @@ export declare const OusiUIPlugin: {
|
|
|
4646
4811
|
install: typeof install;
|
|
4647
4812
|
};
|
|
4648
4813
|
|
|
4649
|
-
export declare interface OusiUIPluginOptions {
|
|
4814
|
+
export declare interface OusiUIPluginOptions extends OusiConfigInit {
|
|
4650
4815
|
/** Prefix for component registration. Defaults to 'O'. */
|
|
4651
4816
|
prefix?: string;
|
|
4652
4817
|
}
|
|
@@ -4886,8 +5051,11 @@ export declare interface RangeCalendarProps {
|
|
|
4886
5051
|
maxValue?: CalendarDate;
|
|
4887
5052
|
/** Dates not available. */
|
|
4888
5053
|
unavailableDates?: CalendarDate[];
|
|
4889
|
-
/** Locale for month/day names. */
|
|
5054
|
+
/** Locale for month/day names. Falls back to the global config (useOusiConfig). */
|
|
4890
5055
|
locale?: string;
|
|
5056
|
+
/** First day of the week — 0=Sunday..6=Saturday. Falls back to config, then
|
|
5057
|
+
* to a locale-region heuristic. */
|
|
5058
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4891
5059
|
/** Show adjacent month days. */
|
|
4892
5060
|
showOutsideDays?: boolean;
|
|
4893
5061
|
/** Prevent selection. */
|
|
@@ -4927,6 +5095,9 @@ export declare const ratingTheme: (props?: ({
|
|
|
4927
5095
|
shadow?: "none" | "sm" | "xs" | null | undefined;
|
|
4928
5096
|
} & ClassProp) | undefined) => string;
|
|
4929
5097
|
|
|
5098
|
+
/** Clear cached children for a node and re-fetch. */
|
|
5099
|
+
declare function reload(key: string): Promise<void>;
|
|
5100
|
+
|
|
4930
5101
|
export declare type ResizableDirection = 'horizontal' | 'vertical';
|
|
4931
5102
|
|
|
4932
5103
|
export declare interface ResizableEmits {
|
|
@@ -5323,6 +5494,7 @@ export declare const tableBodyTheme: string;
|
|
|
5323
5494
|
export declare const tableCellTheme: (props?: ({
|
|
5324
5495
|
variant?: "primary" | "secondary" | null | undefined;
|
|
5325
5496
|
selected?: boolean | null | undefined;
|
|
5497
|
+
density?: "normal" | "compact" | "relaxed" | null | undefined;
|
|
5326
5498
|
} & ClassProp) | undefined) => string;
|
|
5327
5499
|
|
|
5328
5500
|
export declare interface TableColumn {
|
|
@@ -5334,6 +5506,11 @@ export declare interface TableColumn {
|
|
|
5334
5506
|
maxWidth?: number;
|
|
5335
5507
|
resizable?: boolean;
|
|
5336
5508
|
align?: 'left' | 'center' | 'right';
|
|
5509
|
+
/** Pin this column to the left or right edge while the table scrolls
|
|
5510
|
+
* horizontally. Multiple columns can be pinned to the same side — they stack
|
|
5511
|
+
* with cumulative offsets. Sticky columns must have an explicit numeric
|
|
5512
|
+
* `width` for the offset math to work; otherwise 120px is assumed. */
|
|
5513
|
+
sticky?: 'left' | 'right';
|
|
5337
5514
|
}
|
|
5338
5515
|
|
|
5339
5516
|
export declare const tableColumnTheme: (props?: ({
|
|
@@ -5344,10 +5521,20 @@ export declare const tableColumnTheme: (props?: ({
|
|
|
5344
5521
|
|
|
5345
5522
|
export declare const tableContentTheme = "w-full border-separate border-spacing-0 text-sm";
|
|
5346
5523
|
|
|
5524
|
+
export declare type TableDensity = 'compact' | 'normal' | 'relaxed';
|
|
5525
|
+
|
|
5347
5526
|
export declare interface TableEmits {
|
|
5348
5527
|
'selectionChange': [keys: Set<string>];
|
|
5349
|
-
'sortChange': [descriptor: SortDescriptor];
|
|
5528
|
+
'sortChange': [descriptor: SortDescriptor | SortDescriptor[]];
|
|
5529
|
+
'expansionChange': [keys: Set<string>];
|
|
5530
|
+
'update:hiddenColumns': [keys: Set<string>];
|
|
5350
5531
|
'rowAction': [key: string];
|
|
5532
|
+
/** Fired on right-click over a data row. Receives the row data and the
|
|
5533
|
+
* native event — call `event.preventDefault()` to suppress the browser's
|
|
5534
|
+
* native menu and show your own. */
|
|
5535
|
+
'rowContextMenu': [row: Record<string, any>, event: MouseEvent];
|
|
5536
|
+
/** Fired on right-click over a column header. */
|
|
5537
|
+
'columnContextMenu': [column: TableColumn, event: MouseEvent];
|
|
5351
5538
|
}
|
|
5352
5539
|
|
|
5353
5540
|
export declare const tableEmptyTheme = "py-12 text-center text-sm text-ousi-muted";
|
|
@@ -5356,6 +5543,7 @@ export declare const tableFooterTheme = "flex items-center px-4 py-2.5";
|
|
|
5356
5543
|
|
|
5357
5544
|
export declare const tableHeaderTheme: (props?: ({
|
|
5358
5545
|
variant?: "primary" | "secondary" | null | undefined;
|
|
5546
|
+
sticky?: boolean | null | undefined;
|
|
5359
5547
|
} & ClassProp) | undefined) => string;
|
|
5360
5548
|
|
|
5361
5549
|
export declare interface TableProps {
|
|
@@ -5371,14 +5559,27 @@ export declare interface TableProps {
|
|
|
5371
5559
|
shadow?: TableShadow;
|
|
5372
5560
|
/** Selection mode. */
|
|
5373
5561
|
selectionMode?: SelectionMode_2;
|
|
5562
|
+
/** Show the checkbox column when `selectionMode='multiple'`. When false, the
|
|
5563
|
+
* checkbox column is hidden and clicking anywhere on a row toggles its
|
|
5564
|
+
* selection. The select-all header checkbox is also hidden. Defaults to true. */
|
|
5565
|
+
showSelectionColumn?: boolean;
|
|
5374
5566
|
/** Controlled selected row keys. */
|
|
5375
5567
|
selectedKeys?: Set<string>;
|
|
5376
5568
|
/** Default selected keys. */
|
|
5377
5569
|
defaultSelectedKeys?: Set<string>;
|
|
5378
|
-
/** Controlled sort state. */
|
|
5570
|
+
/** Controlled sort state (single column). */
|
|
5379
5571
|
sortDescriptor?: SortDescriptor;
|
|
5380
|
-
/** Default sort state. */
|
|
5572
|
+
/** Default sort state (single column). */
|
|
5381
5573
|
defaultSortDescriptor?: SortDescriptor;
|
|
5574
|
+
/** Controlled sort state (multi-column). Used when `multiSort` is true. */
|
|
5575
|
+
sortDescriptors?: SortDescriptor[];
|
|
5576
|
+
/** Default sort state (multi-column). Used when `multiSort` is true. */
|
|
5577
|
+
defaultSortDescriptors?: SortDescriptor[];
|
|
5578
|
+
/** Allow sorting by multiple columns. shift+click on a header adds a secondary sort. */
|
|
5579
|
+
multiSort?: boolean;
|
|
5580
|
+
/** Skip the client-side sort. Use when sorting happens server-side and `:rows`
|
|
5581
|
+
* is already sorted. The component still emits `sort-change`. Defaults to false. */
|
|
5582
|
+
manualSort?: boolean;
|
|
5382
5583
|
/** Keys of disabled rows. */
|
|
5383
5584
|
disabledKeys?: Set<string>;
|
|
5384
5585
|
/** Show loading skeleton. */
|
|
@@ -5389,8 +5590,22 @@ export declare interface TableProps {
|
|
|
5389
5590
|
emptyContent?: string;
|
|
5390
5591
|
/** Show the footer slot area. */
|
|
5391
5592
|
showFooter?: boolean;
|
|
5392
|
-
/** Enable column resizing. */
|
|
5593
|
+
/** Enable column resizing — mouse drag or keyboard ArrowLeft/Right on a focused resizer. */
|
|
5393
5594
|
allowsResizing?: boolean;
|
|
5595
|
+
/** Stick the header to the top while the body scrolls. */
|
|
5596
|
+
stickyHeader?: boolean;
|
|
5597
|
+
/** Row height density. Defaults to 'normal'. */
|
|
5598
|
+
density?: TableDensity;
|
|
5599
|
+
/** Controlled set of hidden column keys. */
|
|
5600
|
+
hiddenColumns?: Set<string>;
|
|
5601
|
+
/** Default hidden columns (uncontrolled). */
|
|
5602
|
+
defaultHiddenColumns?: Set<string>;
|
|
5603
|
+
/** Show an expand toggle column — pair with the `#expanded-row` slot. */
|
|
5604
|
+
expandable?: boolean;
|
|
5605
|
+
/** Controlled expanded row keys. */
|
|
5606
|
+
expandedKeys?: Set<string>;
|
|
5607
|
+
/** Default expanded row keys. */
|
|
5608
|
+
defaultExpandedKeys?: Set<string>;
|
|
5394
5609
|
/** Additional CSS classes. */
|
|
5395
5610
|
class?: string;
|
|
5396
5611
|
}
|
|
@@ -5403,11 +5618,14 @@ export declare const tableRootTheme: (props?: ({
|
|
|
5403
5618
|
export declare const tableRowTheme: (props?: ({
|
|
5404
5619
|
disabled?: boolean | null | undefined;
|
|
5405
5620
|
clickable?: boolean | null | undefined;
|
|
5621
|
+
selectable?: boolean | null | undefined;
|
|
5406
5622
|
} & ClassProp) | undefined) => string;
|
|
5407
5623
|
|
|
5408
|
-
export declare const tableScrollContainerTheme
|
|
5624
|
+
export declare const tableScrollContainerTheme: (props?: ({
|
|
5625
|
+
stickyHeader?: boolean | null | undefined;
|
|
5626
|
+
} & ClassProp) | undefined) => string;
|
|
5409
5627
|
|
|
5410
|
-
declare type TableShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5628
|
+
export declare type TableShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5411
5629
|
|
|
5412
5630
|
export declare type TableVariant = 'primary' | 'secondary';
|
|
5413
5631
|
|
|
@@ -5607,7 +5825,10 @@ export declare interface TimeFieldProps {
|
|
|
5607
5825
|
modelValue?: TimeFieldValue | null;
|
|
5608
5826
|
/** Default time value. */
|
|
5609
5827
|
defaultValue?: TimeFieldValue | null;
|
|
5610
|
-
/**
|
|
5828
|
+
/** Locale used to infer hour12 when not explicitly set. Falls back to the
|
|
5829
|
+
* global config (useOusiConfig). */
|
|
5830
|
+
locale?: string;
|
|
5831
|
+
/** 12-hour format with an AM/PM segment. When omitted, inferred from the locale. */
|
|
5611
5832
|
hour12?: boolean;
|
|
5612
5833
|
/** Granularity of the picker. */
|
|
5613
5834
|
granularity?: TimeFieldGranularity;
|
|
@@ -5615,6 +5836,10 @@ export declare interface TimeFieldProps {
|
|
|
5615
5836
|
min?: TimeFieldValue;
|
|
5616
5837
|
/** Maximum allowed time. */
|
|
5617
5838
|
max?: TimeFieldValue;
|
|
5839
|
+
/** Visual variant. Defaults to 'primary'. */
|
|
5840
|
+
variant?: TimeFieldVariant;
|
|
5841
|
+
/** Size of the field. Defaults to 'md'. */
|
|
5842
|
+
size?: TimeFieldSize;
|
|
5618
5843
|
/** Elevation shadow. Defaults to 'xs'. */
|
|
5619
5844
|
shadow?: TimeFieldShadow;
|
|
5620
5845
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -5631,12 +5856,16 @@ export declare interface TimeFieldProps {
|
|
|
5631
5856
|
|
|
5632
5857
|
declare type TimeFieldShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5633
5858
|
|
|
5859
|
+
declare type TimeFieldSize = 'sm' | 'md' | 'lg';
|
|
5860
|
+
|
|
5634
5861
|
export declare interface TimeFieldValue {
|
|
5635
5862
|
hour: number;
|
|
5636
5863
|
minute: number;
|
|
5637
5864
|
second?: number;
|
|
5638
5865
|
}
|
|
5639
5866
|
|
|
5867
|
+
declare type TimeFieldVariant = 'primary' | 'secondary';
|
|
5868
|
+
|
|
5640
5869
|
export declare type TimelineAlign = 'left' | 'right' | 'alternate';
|
|
5641
5870
|
|
|
5642
5871
|
/** Connector line between markers. */
|
|
@@ -5733,6 +5962,95 @@ export declare const timelineTheme: (props?: ({
|
|
|
5733
5962
|
layout?: "vertical" | "horizontal" | null | undefined;
|
|
5734
5963
|
} & ClassProp) | undefined) => string;
|
|
5735
5964
|
|
|
5965
|
+
export declare const timePickerDescriptionTheme = "text-xs text-ousi-muted";
|
|
5966
|
+
|
|
5967
|
+
export declare interface TimePickerEmits {
|
|
5968
|
+
'update:modelValue': [value: TimeFieldValue | null];
|
|
5969
|
+
'change': [value: TimeFieldValue | null];
|
|
5970
|
+
}
|
|
5971
|
+
|
|
5972
|
+
export declare const timePickerErrorTheme = "text-xs text-ousi-danger";
|
|
5973
|
+
|
|
5974
|
+
export declare type TimePickerInterval = 1 | 5 | 10 | 15 | 30 | 60;
|
|
5975
|
+
|
|
5976
|
+
/** Label above the field. */
|
|
5977
|
+
export declare const timePickerLabelTheme: (props?: ({
|
|
5978
|
+
required?: boolean | null | undefined;
|
|
5979
|
+
disabled?: boolean | null | undefined;
|
|
5980
|
+
invalid?: boolean | null | undefined;
|
|
5981
|
+
} & ClassProp) | undefined) => string;
|
|
5982
|
+
|
|
5983
|
+
/** Floating popover that wraps the wheel columns. */
|
|
5984
|
+
export declare const timePickerPopoverTheme: string;
|
|
5985
|
+
|
|
5986
|
+
export declare interface TimePickerProps {
|
|
5987
|
+
/** Current time value (v-model). */
|
|
5988
|
+
modelValue?: TimeFieldValue | null;
|
|
5989
|
+
/** Default time value. */
|
|
5990
|
+
defaultValue?: TimeFieldValue | null;
|
|
5991
|
+
/** Label text. */
|
|
5992
|
+
label?: string;
|
|
5993
|
+
/** Description text below the field. */
|
|
5994
|
+
description?: string;
|
|
5995
|
+
/** Error message — replaces description when present. */
|
|
5996
|
+
errorMessage?: string;
|
|
5997
|
+
/** Locale for AM/PM labels and clock conventions. Falls back to the global
|
|
5998
|
+
* config (useOusiConfig). */
|
|
5999
|
+
locale?: string;
|
|
6000
|
+
/** 12-hour format with an AM/PM column. When omitted, inferred from the locale. */
|
|
6001
|
+
hour12?: boolean;
|
|
6002
|
+
/** Granularity of the picker. Defaults to 'minute'. */
|
|
6003
|
+
granularity?: TimeFieldGranularity;
|
|
6004
|
+
/** Step in minutes for the minute wheel. Defaults to 5. */
|
|
6005
|
+
interval?: TimePickerInterval;
|
|
6006
|
+
/** Minimum allowed time. */
|
|
6007
|
+
min?: TimeFieldValue;
|
|
6008
|
+
/** Maximum allowed time. */
|
|
6009
|
+
max?: TimeFieldValue;
|
|
6010
|
+
/** Popover placement relative to trigger. */
|
|
6011
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end';
|
|
6012
|
+
/** Disable the picker. */
|
|
6013
|
+
disabled?: boolean;
|
|
6014
|
+
/** Read-only mode. */
|
|
6015
|
+
readonly?: boolean;
|
|
6016
|
+
/** Mark as required (shows asterisk on label). */
|
|
6017
|
+
required?: boolean;
|
|
6018
|
+
/** Visual variant of the field. Defaults to 'primary'. */
|
|
6019
|
+
variant?: 'primary' | 'secondary';
|
|
6020
|
+
/** Size of the field. Defaults to 'md'. */
|
|
6021
|
+
size?: TimePickerSize;
|
|
6022
|
+
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
6023
|
+
shadow?: TimePickerShadow;
|
|
6024
|
+
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
6025
|
+
animated?: boolean;
|
|
6026
|
+
/** Show "Now" button in the popover. Defaults to true. */
|
|
6027
|
+
showNow?: boolean;
|
|
6028
|
+
/** Additional CSS classes. */
|
|
6029
|
+
class?: string;
|
|
6030
|
+
}
|
|
6031
|
+
|
|
6032
|
+
export declare type TimePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
6033
|
+
|
|
6034
|
+
declare type TimePickerSize = 'sm' | 'md' | 'lg';
|
|
6035
|
+
|
|
6036
|
+
/** Trigger button — looks like a field, opens the wheels popover. */
|
|
6037
|
+
export declare const timePickerTriggerTheme: (props?: ({
|
|
6038
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
6039
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6040
|
+
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
6041
|
+
animated?: boolean | null | undefined;
|
|
6042
|
+
} & ClassProp) | undefined) => string;
|
|
6043
|
+
|
|
6044
|
+
/** Each item inside a wheel. Base text is foreground; the wheel applies inline
|
|
6045
|
+
* scale + opacity per item based on distance from the center. */
|
|
6046
|
+
export declare const timePickerWheelItemTheme: (props?: ClassProp | undefined) => string;
|
|
6047
|
+
|
|
6048
|
+
/** A single scrollable wheel column. */
|
|
6049
|
+
export declare const timePickerWheelTheme: string;
|
|
6050
|
+
|
|
6051
|
+
/** Outer wrapper — stacks label, trigger, description/error vertically. */
|
|
6052
|
+
export declare const timePickerWrapperTheme = "flex w-full flex-col gap-1";
|
|
6053
|
+
|
|
5736
6054
|
export declare function toast(title: string, options?: ToastOptions): string;
|
|
5737
6055
|
|
|
5738
6056
|
export declare namespace toast {
|
|
@@ -5805,6 +6123,8 @@ declare function toggle(): void;
|
|
|
5805
6123
|
|
|
5806
6124
|
declare function toggle_2(): void;
|
|
5807
6125
|
|
|
6126
|
+
declare function toggleColumn(key: string): void;
|
|
6127
|
+
|
|
5808
6128
|
/** Plain tooltip config — static values, no refs/getters. */
|
|
5809
6129
|
export declare interface TooltipConfig {
|
|
5810
6130
|
content: string;
|
|
@@ -5861,32 +6181,78 @@ export declare const tooltipTriggerTheme: string;
|
|
|
5861
6181
|
export declare interface TreeNode {
|
|
5862
6182
|
key: string;
|
|
5863
6183
|
label: string;
|
|
6184
|
+
/** SVG path data ('d' attribute) or a custom string the #icon slot may interpret. */
|
|
5864
6185
|
icon?: string;
|
|
5865
6186
|
children?: TreeNode[];
|
|
6187
|
+
/** Signal that children are loaded async. The tree shows a chevron, and on
|
|
6188
|
+
* expand it calls the `loadChildren` prop. Children are cached after load. */
|
|
6189
|
+
isAsync?: boolean;
|
|
5866
6190
|
disabled?: boolean;
|
|
5867
6191
|
}
|
|
5868
6192
|
|
|
5869
|
-
export declare
|
|
6193
|
+
export declare type TreeSelectionMode = 'none' | 'single' | 'multiple';
|
|
6194
|
+
|
|
6195
|
+
/** Empty 16px spacer rendered for leaf nodes so labels align with their siblings. */
|
|
6196
|
+
export declare const treeViewChevronSpacerTheme = "size-4 shrink-0";
|
|
6197
|
+
|
|
6198
|
+
/** Chevron arrow on parent nodes. Rotates 90deg when expanded. */
|
|
6199
|
+
export declare const treeViewChevronTheme: string;
|
|
5870
6200
|
|
|
5871
|
-
|
|
6201
|
+
/** Vertical line + indentation for the children block. */
|
|
6202
|
+
export declare const treeViewChildrenTheme = "pl-4 ml-2 border-l border-ousi-border/30";
|
|
5872
6203
|
|
|
5873
6204
|
export declare interface TreeViewEmits {
|
|
6205
|
+
/** Selection changed (single-select). */
|
|
5874
6206
|
'select': [key: string, node: TreeNode];
|
|
6207
|
+
/** Node expanded. */
|
|
5875
6208
|
'expand': [key: string];
|
|
6209
|
+
/** Node collapsed. */
|
|
5876
6210
|
'collapse': [key: string];
|
|
6211
|
+
/** v-model:selectedKey (single-select). */
|
|
6212
|
+
'update:selectedKey': [key: string];
|
|
6213
|
+
/** v-model:selectedKeys (multi-select). */
|
|
6214
|
+
'update:selectedKeys': [keys: Set<string>];
|
|
6215
|
+
/** v-model:expandedKeys. */
|
|
6216
|
+
'update:expandedKeys': [keys: Set<string>];
|
|
5877
6217
|
}
|
|
5878
6218
|
|
|
5879
|
-
|
|
6219
|
+
/** Built-in icon rendering — uses the node.icon as an SVG path 'd' attribute. */
|
|
6220
|
+
export declare const treeViewIconTheme = "size-4 text-ousi-muted shrink-0";
|
|
6221
|
+
|
|
6222
|
+
/** A row in the tree — the chevron + checkbox + icon + label container. */
|
|
6223
|
+
export declare const treeViewNodeTheme: (props?: ({
|
|
6224
|
+
selected?: boolean | null | undefined;
|
|
6225
|
+
disabled?: boolean | null | undefined;
|
|
6226
|
+
} & ClassProp) | undefined) => string;
|
|
5880
6227
|
|
|
5881
6228
|
export declare interface TreeViewProps {
|
|
6229
|
+
/** Root nodes of the tree. */
|
|
5882
6230
|
nodes: TreeNode[];
|
|
5883
|
-
|
|
5884
|
-
|
|
6231
|
+
/** Selection mode. Default: 'none'. */
|
|
6232
|
+
selectionMode?: TreeSelectionMode;
|
|
6233
|
+
/** Controlled selected key (single-select shorthand). */
|
|
5885
6234
|
selectedKey?: string;
|
|
6235
|
+
/** Default selected key (uncontrolled, single-select). */
|
|
6236
|
+
defaultSelectedKey?: string;
|
|
6237
|
+
/** Controlled set of selected keys (multi-select). */
|
|
6238
|
+
selectedKeys?: Set<string>;
|
|
6239
|
+
/** Default selected keys (uncontrolled, multi-select). */
|
|
6240
|
+
defaultSelectedKeys?: Set<string>;
|
|
6241
|
+
/** Controlled set of expanded keys. */
|
|
6242
|
+
expandedKeys?: Set<string>;
|
|
6243
|
+
/** Default expanded keys (uncontrolled). */
|
|
6244
|
+
defaultExpandedKeys?: Set<string>;
|
|
6245
|
+
/** Also toggle expansion when the user clicks the label (not just the chevron). Default: false. */
|
|
6246
|
+
expandOnLabelClick?: boolean;
|
|
6247
|
+
/** Async loader for children. Called the first time a node with `isAsync: true`
|
|
6248
|
+
* is expanded. Returned children are cached until `reload(key)` is called.
|
|
6249
|
+
* Throw / reject to mark the node as failed — the user can retry by clicking. */
|
|
6250
|
+
loadChildren?: (node: TreeNode) => Promise<TreeNode[]>;
|
|
6251
|
+
/** Additional CSS classes. */
|
|
5886
6252
|
class?: string;
|
|
5887
6253
|
}
|
|
5888
6254
|
|
|
5889
|
-
export declare const treeViewTheme = "w-full text-sm";
|
|
6255
|
+
export declare const treeViewTheme = "w-full text-sm select-none";
|
|
5890
6256
|
|
|
5891
6257
|
declare function triggerClearOnError(): Promise<void>;
|
|
5892
6258
|
|
|
@@ -5909,6 +6275,12 @@ export declare const typewriterTheme = "inline";
|
|
|
5909
6275
|
|
|
5910
6276
|
export declare function useFormContext(): FormContext | undefined;
|
|
5911
6277
|
|
|
6278
|
+
/**
|
|
6279
|
+
* Access the global Ousi UI config. Returns refs that you can read or write
|
|
6280
|
+
* directly — changes propagate reactively to all components consuming them.
|
|
6281
|
+
*/
|
|
6282
|
+
export declare function useOusiConfig(): OusiConfig;
|
|
6283
|
+
|
|
5912
6284
|
/**
|
|
5913
6285
|
* Headless tooltip logic — floating-ui positioning, show/hide with delays,
|
|
5914
6286
|
* arrow placement, and enter-animation geometry. Consumed by both the
|
|
@@ -5965,4 +6337,6 @@ declare const vTooltip: ObjectDirective<HTMLElement, TooltipDirectiveBinding | u
|
|
|
5965
6337
|
export { vTooltip as tooltipDirective }
|
|
5966
6338
|
export { vTooltip }
|
|
5967
6339
|
|
|
6340
|
+
export declare type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
6341
|
+
|
|
5968
6342
|
export { }
|