@ousi-ui/vue 0.3.1 → 0.4.1
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 +377 -46
- package/dist/index.mjs +9085 -7960
- package/package.json +5 -5
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;
|
|
@@ -560,16 +580,23 @@ required: boolean;
|
|
|
560
580
|
allowDuplicates: boolean;
|
|
561
581
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
562
582
|
|
|
563
|
-
declare const __VLS_component_55: DefineComponent<ContextMenuProps, {
|
|
583
|
+
declare const __VLS_component_55: DefineComponent<ContextMenuProps, {
|
|
584
|
+
show: typeof show;
|
|
585
|
+
hide: typeof hide;
|
|
586
|
+
isOpen: Ref<boolean, boolean>;
|
|
587
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
564
588
|
select: (key: string, item: ContextMenuItem) => any;
|
|
589
|
+
close: () => any;
|
|
590
|
+
open: () => any;
|
|
565
591
|
}, string, PublicProps, Readonly<ContextMenuProps> & Readonly<{
|
|
566
592
|
onSelect?: ((key: string, item: ContextMenuItem) => any) | undefined;
|
|
593
|
+
onClose?: (() => any) | undefined;
|
|
594
|
+
onOpen?: (() => any) | undefined;
|
|
567
595
|
}>, {
|
|
568
596
|
shadow: ContextMenuShadow;
|
|
569
597
|
disabled: boolean;
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}, any>;
|
|
598
|
+
submenuOffset: number;
|
|
599
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
573
600
|
|
|
574
601
|
declare const __VLS_component_56: DefineComponent<MarqueeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MarqueeProps> & Readonly<{}>, {
|
|
575
602
|
direction: MarqueeDirection;
|
|
@@ -1113,10 +1140,21 @@ declare function __VLS_template_44(): {
|
|
|
1113
1140
|
value: any;
|
|
1114
1141
|
column: TableColumn;
|
|
1115
1142
|
}) => any>> & {
|
|
1143
|
+
toolbar?(_: {
|
|
1144
|
+
hiddenColumns: Set<string>;
|
|
1145
|
+
toggleColumn: typeof toggleColumn;
|
|
1146
|
+
exportCsv: typeof exportCSV;
|
|
1147
|
+
}): any;
|
|
1116
1148
|
empty?(_: {}): any;
|
|
1149
|
+
'expanded-row'?(_: {
|
|
1150
|
+
row: Record<string, any>;
|
|
1151
|
+
close: () => void;
|
|
1152
|
+
}): any;
|
|
1117
1153
|
footer?(_: {}): any;
|
|
1118
1154
|
};
|
|
1119
|
-
refs: {
|
|
1155
|
+
refs: {
|
|
1156
|
+
tableRef: HTMLTableElement;
|
|
1157
|
+
};
|
|
1120
1158
|
rootEl: HTMLDivElement;
|
|
1121
1159
|
};
|
|
1122
1160
|
|
|
@@ -1314,10 +1352,11 @@ declare function __VLS_template_55(): {
|
|
|
1314
1352
|
attrs: Partial<{}>;
|
|
1315
1353
|
slots: {
|
|
1316
1354
|
default?(_: {}): any;
|
|
1355
|
+
icon?(_: {
|
|
1356
|
+
item: ContextMenuItem;
|
|
1357
|
+
}): any;
|
|
1317
1358
|
};
|
|
1318
|
-
refs: {
|
|
1319
|
-
menuRef: HTMLDivElement;
|
|
1320
|
-
};
|
|
1359
|
+
refs: {};
|
|
1321
1360
|
rootEl: any;
|
|
1322
1361
|
};
|
|
1323
1362
|
|
|
@@ -2093,6 +2132,12 @@ export declare const animatedNumberTheme = "inline-flex items-baseline tabular-n
|
|
|
2093
2132
|
|
|
2094
2133
|
export declare type AnimatedNumberTrend = 'auto' | 'up' | 'down';
|
|
2095
2134
|
|
|
2135
|
+
/**
|
|
2136
|
+
* Internal — applies initial values from the plugin install hook.
|
|
2137
|
+
* Public consumers should write via `useOusiConfig()` instead.
|
|
2138
|
+
*/
|
|
2139
|
+
export declare function applyOusiConfig(init: OusiConfigInit): void;
|
|
2140
|
+
|
|
2096
2141
|
export declare const aspectRatioInnerTheme = "absolute inset-0";
|
|
2097
2142
|
|
|
2098
2143
|
export declare interface AspectRatioProps {
|
|
@@ -2418,8 +2463,11 @@ export declare interface CalendarProps {
|
|
|
2418
2463
|
unavailableDates?: CalendarDate[];
|
|
2419
2464
|
/** Days with indicators (dots). */
|
|
2420
2465
|
indicatorDays?: number[];
|
|
2421
|
-
/** Locale for month/day names. */
|
|
2466
|
+
/** Locale for month/day names. Falls back to the global config (useOusiConfig). */
|
|
2422
2467
|
locale?: string;
|
|
2468
|
+
/** First day of the week — 0=Sunday, 1=Monday, ..., 6=Saturday. Falls back
|
|
2469
|
+
* to the global config, then to a locale-region heuristic. */
|
|
2470
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2423
2471
|
/** Show days from previous/next month. */
|
|
2424
2472
|
showOutsideDays?: boolean;
|
|
2425
2473
|
/** Enable year picker overlay. */
|
|
@@ -2772,6 +2820,10 @@ export declare const codeBlockToggleTheme: string;
|
|
|
2772
2820
|
|
|
2773
2821
|
export declare type CodeBlockVariant = 'primary' | 'secondary';
|
|
2774
2822
|
|
|
2823
|
+
declare function collapse(key: string): void;
|
|
2824
|
+
|
|
2825
|
+
declare function collapseAll(): void;
|
|
2826
|
+
|
|
2775
2827
|
export declare const collapsibleContentTheme = "overflow-hidden";
|
|
2776
2828
|
|
|
2777
2829
|
export declare interface CollapsibleEmits {
|
|
@@ -3007,36 +3059,82 @@ export declare interface ConfettiProps {
|
|
|
3007
3059
|
|
|
3008
3060
|
export declare const confettiTheme = "fixed inset-0 pointer-events-none z-[9999] overflow-hidden";
|
|
3009
3061
|
|
|
3062
|
+
export declare const contextMenuChevronTheme = "ml-auto size-3.5 text-ousi-muted shrink-0";
|
|
3063
|
+
|
|
3010
3064
|
export declare interface ContextMenuEmits {
|
|
3065
|
+
/** Fired when a leaf item is selected. */
|
|
3011
3066
|
'select': [key: string, item: ContextMenuItem];
|
|
3067
|
+
/** Fired when the menu opens. */
|
|
3068
|
+
'open': [];
|
|
3069
|
+
/** Fired when the menu closes. */
|
|
3070
|
+
'close': [];
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3073
|
+
/** Exposed imperative methods on OContextMenu (via template ref). */
|
|
3074
|
+
export declare interface ContextMenuExposed {
|
|
3075
|
+
/** Open the menu programmatically. Accepts a MouseEvent (uses clientX/clientY)
|
|
3076
|
+
* or a coordinate pair. Calling without args opens at (0, 0). */
|
|
3077
|
+
show: (input?: MouseEvent | {
|
|
3078
|
+
x: number;
|
|
3079
|
+
y: number;
|
|
3080
|
+
}) => void;
|
|
3081
|
+
/** Close the menu programmatically. */
|
|
3082
|
+
hide: () => void;
|
|
3083
|
+
/** Reactive open state. */
|
|
3084
|
+
isOpen: Ref<boolean>;
|
|
3012
3085
|
}
|
|
3013
3086
|
|
|
3087
|
+
/** Section heading — uppercase muted, non-interactive. */
|
|
3088
|
+
export declare const contextMenuHeadingTheme: string;
|
|
3089
|
+
|
|
3090
|
+
export declare const contextMenuIconTheme = "size-4 text-ousi-muted shrink-0";
|
|
3091
|
+
|
|
3014
3092
|
export declare interface ContextMenuItem {
|
|
3015
|
-
label
|
|
3016
|
-
key
|
|
3017
|
-
|
|
3093
|
+
/** Item key — emitted on `select`. Falls back to `label` if not provided. */
|
|
3094
|
+
key?: string;
|
|
3095
|
+
/** Visible label. Required unless `separator: true`. */
|
|
3096
|
+
label?: string;
|
|
3097
|
+
/** Icon — string (treated as a CSS class), a Vue component, or anything renderable.
|
|
3098
|
+
* For full control (e.g. Hugeicons array format), use the per-item `#icon` slot. */
|
|
3099
|
+
icon?: string | Component | any;
|
|
3100
|
+
/** Right-aligned keyboard shortcut hint (e.g. '⌘C'). Hidden when the item has children. */
|
|
3018
3101
|
shortcut?: string;
|
|
3102
|
+
/** Disable the item — not focusable, not selectable. */
|
|
3019
3103
|
disabled?: boolean;
|
|
3104
|
+
/** Render label in danger color. */
|
|
3020
3105
|
danger?: boolean;
|
|
3106
|
+
/** Render as a horizontal separator line. Other fields are ignored. */
|
|
3021
3107
|
separator?: boolean;
|
|
3108
|
+
/** Render as a section heading — uppercase muted text, non-interactive, skipped in keyboard nav. */
|
|
3109
|
+
heading?: boolean;
|
|
3110
|
+
/** Keep the menu open after selecting this item. Useful for toggles (column visibility, etc.). */
|
|
3111
|
+
keepOpen?: boolean;
|
|
3112
|
+
/** Nested submenu items. When present, the item opens a submenu instead of being selected. */
|
|
3113
|
+
children?: ContextMenuItem[];
|
|
3022
3114
|
}
|
|
3023
3115
|
|
|
3024
|
-
export declare const contextMenuItemTheme
|
|
3116
|
+
export declare const contextMenuItemTheme: string;
|
|
3025
3117
|
|
|
3026
3118
|
export declare interface ContextMenuProps {
|
|
3119
|
+
/** Items to render in the menu. */
|
|
3027
3120
|
items: ContextMenuItem[];
|
|
3121
|
+
/** Disable right-click activation on the trigger slot. */
|
|
3028
3122
|
disabled?: boolean;
|
|
3029
3123
|
/** Elevation shadow. Defaults to 'lg'. */
|
|
3030
3124
|
shadow?: ContextMenuShadow;
|
|
3125
|
+
/** Pixel gap between a parent item and its open submenu. Defaults to 4. */
|
|
3126
|
+
submenuOffset?: number;
|
|
3127
|
+
/** Additional CSS classes on the menu surface. */
|
|
3031
3128
|
class?: string;
|
|
3032
3129
|
}
|
|
3033
3130
|
|
|
3034
|
-
export declare const contextMenuSeparatorTheme = "my-1 h-px bg-ousi-border/
|
|
3131
|
+
export declare const contextMenuSeparatorTheme = "my-1 mx-1 h-px bg-ousi-border/40";
|
|
3035
3132
|
|
|
3036
|
-
declare type ContextMenuShadow = 'sm' | 'md' | 'lg' | 'xl';
|
|
3133
|
+
export declare type ContextMenuShadow = 'sm' | 'md' | 'lg' | 'xl';
|
|
3037
3134
|
|
|
3038
|
-
export declare const contextMenuShortcutTheme = "ml-auto text-xs text-ousi-muted";
|
|
3135
|
+
export declare const contextMenuShortcutTheme = "ml-auto text-xs text-ousi-muted tracking-wide";
|
|
3039
3136
|
|
|
3137
|
+
/** Menu surface — no border, just shadow on overlay bg (matches Popover styling). */
|
|
3040
3138
|
export declare const contextMenuTheme: (props?: ({
|
|
3041
3139
|
shadow?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3042
3140
|
} & ClassProp) | undefined) => string;
|
|
@@ -3065,6 +3163,10 @@ export declare interface DateFieldProps {
|
|
|
3065
3163
|
min?: DateFieldValue;
|
|
3066
3164
|
/** Maximum allowed date. */
|
|
3067
3165
|
max?: DateFieldValue;
|
|
3166
|
+
/** Visual variant. Defaults to 'primary'. */
|
|
3167
|
+
variant?: DateFieldVariant;
|
|
3168
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3169
|
+
size?: DateFieldSize;
|
|
3068
3170
|
/** Elevation shadow. Defaults to 'xs'. */
|
|
3069
3171
|
shadow?: DateFieldShadow;
|
|
3070
3172
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3085,13 +3187,19 @@ export declare function dateFieldSegmentTheme(focused: boolean): string;
|
|
|
3085
3187
|
|
|
3086
3188
|
declare type DateFieldShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3087
3189
|
|
|
3190
|
+
declare type DateFieldSize = 'sm' | 'md' | 'lg';
|
|
3191
|
+
|
|
3088
3192
|
export declare interface DateFieldValue {
|
|
3089
3193
|
year: number;
|
|
3090
3194
|
month: number;
|
|
3091
3195
|
day: number;
|
|
3092
3196
|
}
|
|
3093
3197
|
|
|
3198
|
+
declare type DateFieldVariant = 'primary' | 'secondary';
|
|
3199
|
+
|
|
3094
3200
|
export declare const dateFieldWrapperTheme: (props?: ({
|
|
3201
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
3202
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3095
3203
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3096
3204
|
animated?: boolean | null | undefined;
|
|
3097
3205
|
} & ClassProp) | undefined) => string;
|
|
@@ -3151,6 +3259,8 @@ export declare interface DatePickerProps {
|
|
|
3151
3259
|
required?: boolean;
|
|
3152
3260
|
/** Visual variant of the field. Defaults to 'primary'. */
|
|
3153
3261
|
variant?: 'primary' | 'secondary';
|
|
3262
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3263
|
+
size?: DatePickerSize;
|
|
3154
3264
|
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
3155
3265
|
shadow?: DatePickerShadow;
|
|
3156
3266
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3161,9 +3271,12 @@ export declare interface DatePickerProps {
|
|
|
3161
3271
|
|
|
3162
3272
|
declare type DatePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3163
3273
|
|
|
3274
|
+
declare type DatePickerSize = 'sm' | 'md' | 'lg';
|
|
3275
|
+
|
|
3164
3276
|
/** Trigger row — unified field container for segments + icon. Owns ALL field chrome. */
|
|
3165
3277
|
export declare const datePickerTriggerTheme: (props?: ({
|
|
3166
3278
|
variant?: "primary" | "secondary" | null | undefined;
|
|
3279
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3167
3280
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3168
3281
|
animated?: boolean | null | undefined;
|
|
3169
3282
|
} & ClassProp) | undefined) => string;
|
|
@@ -3231,6 +3344,8 @@ export declare interface DateRangePickerProps {
|
|
|
3231
3344
|
required?: boolean;
|
|
3232
3345
|
/** Visual variant of the field. Defaults to 'primary'. */
|
|
3233
3346
|
variant?: 'primary' | 'secondary';
|
|
3347
|
+
/** Size of the field. Defaults to 'md'. */
|
|
3348
|
+
size?: DateRangePickerSize;
|
|
3234
3349
|
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
3235
3350
|
shadow?: DateRangePickerShadow;
|
|
3236
3351
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -3244,9 +3359,12 @@ export declare const dateRangePickerSeparatorTheme = "px-1.5 text-ousi-field-pla
|
|
|
3244
3359
|
|
|
3245
3360
|
declare type DateRangePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
3246
3361
|
|
|
3362
|
+
declare type DateRangePickerSize = 'sm' | 'md' | 'lg';
|
|
3363
|
+
|
|
3247
3364
|
/** Trigger row — unified field for start segments + separator + end segments + icon. */
|
|
3248
3365
|
export declare const dateRangePickerTriggerTheme: (props?: ({
|
|
3249
3366
|
variant?: "primary" | "secondary" | null | undefined;
|
|
3367
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3250
3368
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
3251
3369
|
animated?: boolean | null | undefined;
|
|
3252
3370
|
} & ClassProp) | undefined) => string;
|
|
@@ -3472,6 +3590,15 @@ export declare interface ElasticSliderProps {
|
|
|
3472
3590
|
|
|
3473
3591
|
export declare type ElasticSliderSize = 'sm' | 'md' | 'lg';
|
|
3474
3592
|
|
|
3593
|
+
declare function expand(key: string): void;
|
|
3594
|
+
|
|
3595
|
+
declare function expandAll(): void;
|
|
3596
|
+
|
|
3597
|
+
declare function exportCSV(options?: {
|
|
3598
|
+
filename?: string;
|
|
3599
|
+
includeHidden?: boolean;
|
|
3600
|
+
}): void;
|
|
3601
|
+
|
|
3475
3602
|
export declare const fileUploadAreaTheme: (props?: ({
|
|
3476
3603
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3477
3604
|
active?: boolean | null | undefined;
|
|
@@ -3534,6 +3661,8 @@ export declare type FileUploadVariant = 'area' | 'inline';
|
|
|
3534
3661
|
|
|
3535
3662
|
declare function fire(): void;
|
|
3536
3663
|
|
|
3664
|
+
declare function focusKey(key: string): void;
|
|
3665
|
+
|
|
3537
3666
|
declare interface FormContext {
|
|
3538
3667
|
/** Server-side validation errors keyed by field name. */
|
|
3539
3668
|
validationErrors: Ref<Record<string, string | string[]>>;
|
|
@@ -3566,6 +3695,19 @@ export declare interface FormProps {
|
|
|
3566
3695
|
class?: string;
|
|
3567
3696
|
}
|
|
3568
3697
|
|
|
3698
|
+
/**
|
|
3699
|
+
* Derive the first day of the week from a BCP 47 locale tag. Uses the
|
|
3700
|
+
* experimental `Intl.Locale#getWeekInfo()` when available (Chromium-based
|
|
3701
|
+
* browsers), falling back to a CLDR-derived region map otherwise.
|
|
3702
|
+
*/
|
|
3703
|
+
export declare function getFirstDayOfWeekForLocale(locale: string): WeekDay;
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* Derive `hour12` for a locale via Intl. Returns the locale's natural choice
|
|
3707
|
+
* unless the config explicitly overrides it.
|
|
3708
|
+
*/
|
|
3709
|
+
export declare function getHour12ForLocale(locale: string): boolean;
|
|
3710
|
+
|
|
3569
3711
|
export declare type GradientTextPreset = 'aurora' | 'sunset' | 'ocean' | 'candy' | 'neon';
|
|
3570
3712
|
|
|
3571
3713
|
export declare interface GradientTextProps {
|
|
@@ -3580,6 +3722,8 @@ export declare interface GradientTextProps {
|
|
|
3580
3722
|
|
|
3581
3723
|
export declare const gradientTextTheme = "inline-block bg-clip-text text-transparent";
|
|
3582
3724
|
|
|
3725
|
+
declare function hide(): void;
|
|
3726
|
+
|
|
3583
3727
|
/** Divider line. */
|
|
3584
3728
|
export declare const imageCompareDividerTheme = "absolute z-20 bg-white/80 shadow-sm";
|
|
3585
3729
|
|
|
@@ -4282,10 +4426,11 @@ change: (value: DateFieldValue | null) => any;
|
|
|
4282
4426
|
onChange?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4283
4427
|
"onUpdate:modelValue"?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4284
4428
|
}>, {
|
|
4429
|
+
variant: DateFieldVariant;
|
|
4430
|
+
size: DateFieldSize;
|
|
4285
4431
|
shadow: DateFieldShadow;
|
|
4286
4432
|
disabled: boolean;
|
|
4287
4433
|
animated: boolean;
|
|
4288
|
-
locale: string;
|
|
4289
4434
|
granularity: DateFieldGranularity;
|
|
4290
4435
|
readOnly: boolean;
|
|
4291
4436
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -4298,13 +4443,13 @@ onChange?: ((value: DateFieldValue | null) => any) | undefined;
|
|
|
4298
4443
|
"onUpdate:modelValue"?: ((value: DateFieldValue | null) => any) | undefined;
|
|
4299
4444
|
}>, {
|
|
4300
4445
|
variant: "primary" | "secondary";
|
|
4446
|
+
size: DatePickerSize;
|
|
4301
4447
|
shadow: DatePickerShadow;
|
|
4302
4448
|
disabled: boolean;
|
|
4303
4449
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
4304
4450
|
animated: boolean;
|
|
4305
4451
|
required: boolean;
|
|
4306
4452
|
readonly: boolean;
|
|
4307
|
-
locale: string;
|
|
4308
4453
|
showOutsideDays: boolean;
|
|
4309
4454
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4310
4455
|
triggerRef: HTMLDivElement;
|
|
@@ -4319,13 +4464,13 @@ onChange?: ((value: DateRangeValue | null) => any) | undefined;
|
|
|
4319
4464
|
"onUpdate:modelValue"?: ((value: DateRangeValue | null) => any) | undefined;
|
|
4320
4465
|
}>, {
|
|
4321
4466
|
variant: "primary" | "secondary";
|
|
4467
|
+
size: DateRangePickerSize;
|
|
4322
4468
|
shadow: DateRangePickerShadow;
|
|
4323
4469
|
disabled: boolean;
|
|
4324
4470
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
4325
4471
|
animated: boolean;
|
|
4326
4472
|
required: boolean;
|
|
4327
4473
|
readonly: boolean;
|
|
4328
|
-
locale: string;
|
|
4329
4474
|
showOutsideDays: boolean;
|
|
4330
4475
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4331
4476
|
triggerRef: HTMLDivElement;
|
|
@@ -4474,7 +4619,6 @@ onChange?: ((range: DateRange | null) => any) | undefined;
|
|
|
4474
4619
|
"onUpdate:modelValue"?: ((range: DateRange | null) => any) | undefined;
|
|
4475
4620
|
}>, {
|
|
4476
4621
|
readonly: boolean;
|
|
4477
|
-
locale: string;
|
|
4478
4622
|
showOutsideDays: boolean;
|
|
4479
4623
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4480
4624
|
|
|
@@ -4578,12 +4722,13 @@ change: (value: TimeFieldValue | null) => any;
|
|
|
4578
4722
|
onChange?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4579
4723
|
"onUpdate:modelValue"?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4580
4724
|
}>, {
|
|
4725
|
+
variant: TimeFieldVariant;
|
|
4726
|
+
size: TimeFieldSize;
|
|
4581
4727
|
shadow: TimeFieldShadow;
|
|
4582
4728
|
disabled: boolean;
|
|
4583
4729
|
animated: boolean;
|
|
4584
4730
|
granularity: TimeFieldGranularity;
|
|
4585
4731
|
readOnly: boolean;
|
|
4586
|
-
hour12: boolean;
|
|
4587
4732
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
4588
4733
|
|
|
4589
4734
|
export declare const OTimeline: __VLS_WithTemplateSlots_47<typeof __VLS_component_47, __VLS_TemplateResult_47["slots"]>;
|
|
@@ -4598,6 +4743,7 @@ onChange?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
|
4598
4743
|
"onUpdate:modelValue"?: ((value: TimeFieldValue | null) => any) | undefined;
|
|
4599
4744
|
}>, {
|
|
4600
4745
|
variant: "primary" | "secondary";
|
|
4746
|
+
size: TimePickerSize;
|
|
4601
4747
|
shadow: TimePickerShadow;
|
|
4602
4748
|
disabled: boolean;
|
|
4603
4749
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
@@ -4605,7 +4751,6 @@ animated: boolean;
|
|
|
4605
4751
|
required: boolean;
|
|
4606
4752
|
readonly: boolean;
|
|
4607
4753
|
granularity: TimeFieldGranularity;
|
|
4608
|
-
hour12: boolean;
|
|
4609
4754
|
interval: TimePickerInterval;
|
|
4610
4755
|
showNow: boolean;
|
|
4611
4756
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -4627,17 +4772,36 @@ export declare interface OtpGroup {
|
|
|
4627
4772
|
|
|
4628
4773
|
export declare type OtpSlotType = 'digit' | 'alpha' | 'alphanumeric';
|
|
4629
4774
|
|
|
4630
|
-
export declare const OTreeView: DefineComponent<TreeViewProps, {
|
|
4775
|
+
export declare const OTreeView: DefineComponent<TreeViewProps, {
|
|
4776
|
+
expand: typeof expand;
|
|
4777
|
+
collapse: typeof collapse;
|
|
4778
|
+
expandAll: typeof expandAll;
|
|
4779
|
+
collapseAll: typeof collapseAll;
|
|
4780
|
+
focusKey: typeof focusKey;
|
|
4781
|
+
reload: typeof reload;
|
|
4782
|
+
expandedKeys: WritableComputedRef<Set<string>, Set<string>>;
|
|
4783
|
+
selectedKey: WritableComputedRef<string, string>;
|
|
4784
|
+
selectedKeys: WritableComputedRef<Set<string>, Set<string>>;
|
|
4785
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4631
4786
|
select: (key: string, node: TreeNode) => any;
|
|
4787
|
+
"update:selectedKeys": (keys: Set<string>) => any;
|
|
4632
4788
|
collapse: (key: string) => any;
|
|
4633
4789
|
expand: (key: string) => any;
|
|
4790
|
+
"update:selectedKey": (key: string) => any;
|
|
4791
|
+
"update:expandedKeys": (keys: Set<string>) => any;
|
|
4634
4792
|
}, string, PublicProps, Readonly<TreeViewProps> & Readonly<{
|
|
4635
4793
|
onSelect?: ((key: string, node: TreeNode) => any) | undefined;
|
|
4794
|
+
"onUpdate:selectedKeys"?: ((keys: Set<string>) => any) | undefined;
|
|
4636
4795
|
onCollapse?: ((key: string) => any) | undefined;
|
|
4637
4796
|
onExpand?: ((key: string) => any) | undefined;
|
|
4797
|
+
"onUpdate:selectedKey"?: ((key: string) => any) | undefined;
|
|
4798
|
+
"onUpdate:expandedKeys"?: ((keys: Set<string>) => any) | undefined;
|
|
4638
4799
|
}>, {
|
|
4639
|
-
|
|
4640
|
-
|
|
4800
|
+
selectionMode: TreeSelectionMode;
|
|
4801
|
+
expandOnLabelClick: boolean;
|
|
4802
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
4803
|
+
rootRef: HTMLDivElement;
|
|
4804
|
+
}, HTMLDivElement>;
|
|
4641
4805
|
|
|
4642
4806
|
export declare const OTypewriter: DefineComponent<TypewriterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TypewriterProps> & Readonly<{}>, {
|
|
4643
4807
|
delay: number;
|
|
@@ -4648,6 +4812,40 @@ deleteSpeed: number;
|
|
|
4648
4812
|
cursorChar: string;
|
|
4649
4813
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
4650
4814
|
|
|
4815
|
+
/**
|
|
4816
|
+
* Global Ousi UI configuration. Drives locale-aware behavior across date/time
|
|
4817
|
+
* components and other i18n-sensitive widgets. Singleton — module-level state,
|
|
4818
|
+
* shared across the entire app.
|
|
4819
|
+
*
|
|
4820
|
+
* Usage:
|
|
4821
|
+
*
|
|
4822
|
+
* const config = useOusiConfig()
|
|
4823
|
+
* config.locale.value = 'es-ES' // reactive: all date pickers re-render
|
|
4824
|
+
*
|
|
4825
|
+
* Or set the initial values via the plugin install:
|
|
4826
|
+
*
|
|
4827
|
+
* app.use(OusiUIPlugin, { locale: 'es-ES', hour12: false })
|
|
4828
|
+
*
|
|
4829
|
+
* Per-component `locale` props still override this config.
|
|
4830
|
+
*/
|
|
4831
|
+
export declare interface OusiConfig {
|
|
4832
|
+
/** BCP 47 locale tag — drives date/time format, AM/PM labels, weekday names. */
|
|
4833
|
+
locale: Ref<string>;
|
|
4834
|
+
/** Explicit override for 12-hour clock. When undefined, inferred from locale. */
|
|
4835
|
+
hour12: Ref<boolean | undefined>;
|
|
4836
|
+
/** First day of the week. 0 = Sunday, 1 = Monday. When undefined, inferred from locale. */
|
|
4837
|
+
firstDayOfWeek: Ref<WeekDay | undefined>;
|
|
4838
|
+
/** Text direction. Defaults to 'ltr'. */
|
|
4839
|
+
dir: Ref<'ltr' | 'rtl'>;
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
export declare interface OusiConfigInit {
|
|
4843
|
+
locale?: string;
|
|
4844
|
+
hour12?: boolean;
|
|
4845
|
+
firstDayOfWeek?: WeekDay;
|
|
4846
|
+
dir?: 'ltr' | 'rtl';
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4651
4849
|
export declare function OusiResolver(options?: OusiResolverOptions): {
|
|
4652
4850
|
type: "component";
|
|
4653
4851
|
resolve(name: string): {
|
|
@@ -4669,7 +4867,7 @@ export declare const OusiUIPlugin: {
|
|
|
4669
4867
|
install: typeof install;
|
|
4670
4868
|
};
|
|
4671
4869
|
|
|
4672
|
-
export declare interface OusiUIPluginOptions {
|
|
4870
|
+
export declare interface OusiUIPluginOptions extends OusiConfigInit {
|
|
4673
4871
|
/** Prefix for component registration. Defaults to 'O'. */
|
|
4674
4872
|
prefix?: string;
|
|
4675
4873
|
}
|
|
@@ -4909,8 +5107,11 @@ export declare interface RangeCalendarProps {
|
|
|
4909
5107
|
maxValue?: CalendarDate;
|
|
4910
5108
|
/** Dates not available. */
|
|
4911
5109
|
unavailableDates?: CalendarDate[];
|
|
4912
|
-
/** Locale for month/day names. */
|
|
5110
|
+
/** Locale for month/day names. Falls back to the global config (useOusiConfig). */
|
|
4913
5111
|
locale?: string;
|
|
5112
|
+
/** First day of the week — 0=Sunday..6=Saturday. Falls back to config, then
|
|
5113
|
+
* to a locale-region heuristic. */
|
|
5114
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4914
5115
|
/** Show adjacent month days. */
|
|
4915
5116
|
showOutsideDays?: boolean;
|
|
4916
5117
|
/** Prevent selection. */
|
|
@@ -4950,6 +5151,9 @@ export declare const ratingTheme: (props?: ({
|
|
|
4950
5151
|
shadow?: "none" | "sm" | "xs" | null | undefined;
|
|
4951
5152
|
} & ClassProp) | undefined) => string;
|
|
4952
5153
|
|
|
5154
|
+
/** Clear cached children for a node and re-fetch. */
|
|
5155
|
+
declare function reload(key: string): Promise<void>;
|
|
5156
|
+
|
|
4953
5157
|
export declare type ResizableDirection = 'horizontal' | 'vertical';
|
|
4954
5158
|
|
|
4955
5159
|
export declare interface ResizableEmits {
|
|
@@ -5089,6 +5293,11 @@ export declare const separatorTheme: (props?: ({
|
|
|
5089
5293
|
|
|
5090
5294
|
export declare type SeparatorVariant = 'default' | 'secondary' | 'tertiary';
|
|
5091
5295
|
|
|
5296
|
+
declare function show(input?: MouseEvent | {
|
|
5297
|
+
x: number;
|
|
5298
|
+
y: number;
|
|
5299
|
+
}): void;
|
|
5300
|
+
|
|
5092
5301
|
export declare type SkeletonAnimation = 'shimmer' | 'pulse' | 'none';
|
|
5093
5302
|
|
|
5094
5303
|
export declare const skeletonBaseTheme: (props?: ({
|
|
@@ -5346,6 +5555,7 @@ export declare const tableBodyTheme: string;
|
|
|
5346
5555
|
export declare const tableCellTheme: (props?: ({
|
|
5347
5556
|
variant?: "primary" | "secondary" | null | undefined;
|
|
5348
5557
|
selected?: boolean | null | undefined;
|
|
5558
|
+
density?: "normal" | "compact" | "relaxed" | null | undefined;
|
|
5349
5559
|
} & ClassProp) | undefined) => string;
|
|
5350
5560
|
|
|
5351
5561
|
export declare interface TableColumn {
|
|
@@ -5357,6 +5567,11 @@ export declare interface TableColumn {
|
|
|
5357
5567
|
maxWidth?: number;
|
|
5358
5568
|
resizable?: boolean;
|
|
5359
5569
|
align?: 'left' | 'center' | 'right';
|
|
5570
|
+
/** Pin this column to the left or right edge while the table scrolls
|
|
5571
|
+
* horizontally. Multiple columns can be pinned to the same side — they stack
|
|
5572
|
+
* with cumulative offsets. Sticky columns must have an explicit numeric
|
|
5573
|
+
* `width` for the offset math to work; otherwise 120px is assumed. */
|
|
5574
|
+
sticky?: 'left' | 'right';
|
|
5360
5575
|
}
|
|
5361
5576
|
|
|
5362
5577
|
export declare const tableColumnTheme: (props?: ({
|
|
@@ -5367,10 +5582,20 @@ export declare const tableColumnTheme: (props?: ({
|
|
|
5367
5582
|
|
|
5368
5583
|
export declare const tableContentTheme = "w-full border-separate border-spacing-0 text-sm";
|
|
5369
5584
|
|
|
5585
|
+
export declare type TableDensity = 'compact' | 'normal' | 'relaxed';
|
|
5586
|
+
|
|
5370
5587
|
export declare interface TableEmits {
|
|
5371
5588
|
'selectionChange': [keys: Set<string>];
|
|
5372
|
-
'sortChange': [descriptor: SortDescriptor];
|
|
5589
|
+
'sortChange': [descriptor: SortDescriptor | SortDescriptor[]];
|
|
5590
|
+
'expansionChange': [keys: Set<string>];
|
|
5591
|
+
'update:hiddenColumns': [keys: Set<string>];
|
|
5373
5592
|
'rowAction': [key: string];
|
|
5593
|
+
/** Fired on right-click over a data row. Receives the row data and the
|
|
5594
|
+
* native event — call `event.preventDefault()` to suppress the browser's
|
|
5595
|
+
* native menu and show your own. */
|
|
5596
|
+
'rowContextMenu': [row: Record<string, any>, event: MouseEvent];
|
|
5597
|
+
/** Fired on right-click over a column header. */
|
|
5598
|
+
'columnContextMenu': [column: TableColumn, event: MouseEvent];
|
|
5374
5599
|
}
|
|
5375
5600
|
|
|
5376
5601
|
export declare const tableEmptyTheme = "py-12 text-center text-sm text-ousi-muted";
|
|
@@ -5379,6 +5604,7 @@ export declare const tableFooterTheme = "flex items-center px-4 py-2.5";
|
|
|
5379
5604
|
|
|
5380
5605
|
export declare const tableHeaderTheme: (props?: ({
|
|
5381
5606
|
variant?: "primary" | "secondary" | null | undefined;
|
|
5607
|
+
sticky?: boolean | null | undefined;
|
|
5382
5608
|
} & ClassProp) | undefined) => string;
|
|
5383
5609
|
|
|
5384
5610
|
export declare interface TableProps {
|
|
@@ -5394,14 +5620,27 @@ export declare interface TableProps {
|
|
|
5394
5620
|
shadow?: TableShadow;
|
|
5395
5621
|
/** Selection mode. */
|
|
5396
5622
|
selectionMode?: SelectionMode_2;
|
|
5623
|
+
/** Show the checkbox column when `selectionMode='multiple'`. When false, the
|
|
5624
|
+
* checkbox column is hidden and clicking anywhere on a row toggles its
|
|
5625
|
+
* selection. The select-all header checkbox is also hidden. Defaults to true. */
|
|
5626
|
+
showSelectionColumn?: boolean;
|
|
5397
5627
|
/** Controlled selected row keys. */
|
|
5398
5628
|
selectedKeys?: Set<string>;
|
|
5399
5629
|
/** Default selected keys. */
|
|
5400
5630
|
defaultSelectedKeys?: Set<string>;
|
|
5401
|
-
/** Controlled sort state. */
|
|
5631
|
+
/** Controlled sort state (single column). */
|
|
5402
5632
|
sortDescriptor?: SortDescriptor;
|
|
5403
|
-
/** Default sort state. */
|
|
5633
|
+
/** Default sort state (single column). */
|
|
5404
5634
|
defaultSortDescriptor?: SortDescriptor;
|
|
5635
|
+
/** Controlled sort state (multi-column). Used when `multiSort` is true. */
|
|
5636
|
+
sortDescriptors?: SortDescriptor[];
|
|
5637
|
+
/** Default sort state (multi-column). Used when `multiSort` is true. */
|
|
5638
|
+
defaultSortDescriptors?: SortDescriptor[];
|
|
5639
|
+
/** Allow sorting by multiple columns. shift+click on a header adds a secondary sort. */
|
|
5640
|
+
multiSort?: boolean;
|
|
5641
|
+
/** Skip the client-side sort. Use when sorting happens server-side and `:rows`
|
|
5642
|
+
* is already sorted. The component still emits `sort-change`. Defaults to false. */
|
|
5643
|
+
manualSort?: boolean;
|
|
5405
5644
|
/** Keys of disabled rows. */
|
|
5406
5645
|
disabledKeys?: Set<string>;
|
|
5407
5646
|
/** Show loading skeleton. */
|
|
@@ -5412,8 +5651,22 @@ export declare interface TableProps {
|
|
|
5412
5651
|
emptyContent?: string;
|
|
5413
5652
|
/** Show the footer slot area. */
|
|
5414
5653
|
showFooter?: boolean;
|
|
5415
|
-
/** Enable column resizing. */
|
|
5654
|
+
/** Enable column resizing — mouse drag or keyboard ArrowLeft/Right on a focused resizer. */
|
|
5416
5655
|
allowsResizing?: boolean;
|
|
5656
|
+
/** Stick the header to the top while the body scrolls. */
|
|
5657
|
+
stickyHeader?: boolean;
|
|
5658
|
+
/** Row height density. Defaults to 'normal'. */
|
|
5659
|
+
density?: TableDensity;
|
|
5660
|
+
/** Controlled set of hidden column keys. */
|
|
5661
|
+
hiddenColumns?: Set<string>;
|
|
5662
|
+
/** Default hidden columns (uncontrolled). */
|
|
5663
|
+
defaultHiddenColumns?: Set<string>;
|
|
5664
|
+
/** Show an expand toggle column — pair with the `#expanded-row` slot. */
|
|
5665
|
+
expandable?: boolean;
|
|
5666
|
+
/** Controlled expanded row keys. */
|
|
5667
|
+
expandedKeys?: Set<string>;
|
|
5668
|
+
/** Default expanded row keys. */
|
|
5669
|
+
defaultExpandedKeys?: Set<string>;
|
|
5417
5670
|
/** Additional CSS classes. */
|
|
5418
5671
|
class?: string;
|
|
5419
5672
|
}
|
|
@@ -5426,11 +5679,14 @@ export declare const tableRootTheme: (props?: ({
|
|
|
5426
5679
|
export declare const tableRowTheme: (props?: ({
|
|
5427
5680
|
disabled?: boolean | null | undefined;
|
|
5428
5681
|
clickable?: boolean | null | undefined;
|
|
5682
|
+
selectable?: boolean | null | undefined;
|
|
5429
5683
|
} & ClassProp) | undefined) => string;
|
|
5430
5684
|
|
|
5431
|
-
export declare const tableScrollContainerTheme
|
|
5685
|
+
export declare const tableScrollContainerTheme: (props?: ({
|
|
5686
|
+
stickyHeader?: boolean | null | undefined;
|
|
5687
|
+
} & ClassProp) | undefined) => string;
|
|
5432
5688
|
|
|
5433
|
-
declare type TableShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5689
|
+
export declare type TableShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5434
5690
|
|
|
5435
5691
|
export declare type TableVariant = 'primary' | 'secondary';
|
|
5436
5692
|
|
|
@@ -5630,7 +5886,10 @@ export declare interface TimeFieldProps {
|
|
|
5630
5886
|
modelValue?: TimeFieldValue | null;
|
|
5631
5887
|
/** Default time value. */
|
|
5632
5888
|
defaultValue?: TimeFieldValue | null;
|
|
5633
|
-
/**
|
|
5889
|
+
/** Locale used to infer hour12 when not explicitly set. Falls back to the
|
|
5890
|
+
* global config (useOusiConfig). */
|
|
5891
|
+
locale?: string;
|
|
5892
|
+
/** 12-hour format with an AM/PM segment. When omitted, inferred from the locale. */
|
|
5634
5893
|
hour12?: boolean;
|
|
5635
5894
|
/** Granularity of the picker. */
|
|
5636
5895
|
granularity?: TimeFieldGranularity;
|
|
@@ -5638,6 +5897,10 @@ export declare interface TimeFieldProps {
|
|
|
5638
5897
|
min?: TimeFieldValue;
|
|
5639
5898
|
/** Maximum allowed time. */
|
|
5640
5899
|
max?: TimeFieldValue;
|
|
5900
|
+
/** Visual variant. Defaults to 'primary'. */
|
|
5901
|
+
variant?: TimeFieldVariant;
|
|
5902
|
+
/** Size of the field. Defaults to 'md'. */
|
|
5903
|
+
size?: TimeFieldSize;
|
|
5641
5904
|
/** Elevation shadow. Defaults to 'xs'. */
|
|
5642
5905
|
shadow?: TimeFieldShadow;
|
|
5643
5906
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -5654,12 +5917,16 @@ export declare interface TimeFieldProps {
|
|
|
5654
5917
|
|
|
5655
5918
|
declare type TimeFieldShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5656
5919
|
|
|
5920
|
+
declare type TimeFieldSize = 'sm' | 'md' | 'lg';
|
|
5921
|
+
|
|
5657
5922
|
export declare interface TimeFieldValue {
|
|
5658
5923
|
hour: number;
|
|
5659
5924
|
minute: number;
|
|
5660
5925
|
second?: number;
|
|
5661
5926
|
}
|
|
5662
5927
|
|
|
5928
|
+
declare type TimeFieldVariant = 'primary' | 'secondary';
|
|
5929
|
+
|
|
5663
5930
|
export declare type TimelineAlign = 'left' | 'right' | 'alternate';
|
|
5664
5931
|
|
|
5665
5932
|
/** Connector line between markers. */
|
|
@@ -5788,7 +6055,10 @@ export declare interface TimePickerProps {
|
|
|
5788
6055
|
description?: string;
|
|
5789
6056
|
/** Error message — replaces description when present. */
|
|
5790
6057
|
errorMessage?: string;
|
|
5791
|
-
/**
|
|
6058
|
+
/** Locale for AM/PM labels and clock conventions. Falls back to the global
|
|
6059
|
+
* config (useOusiConfig). */
|
|
6060
|
+
locale?: string;
|
|
6061
|
+
/** 12-hour format with an AM/PM column. When omitted, inferred from the locale. */
|
|
5792
6062
|
hour12?: boolean;
|
|
5793
6063
|
/** Granularity of the picker. Defaults to 'minute'. */
|
|
5794
6064
|
granularity?: TimeFieldGranularity;
|
|
@@ -5808,6 +6078,8 @@ export declare interface TimePickerProps {
|
|
|
5808
6078
|
required?: boolean;
|
|
5809
6079
|
/** Visual variant of the field. Defaults to 'primary'. */
|
|
5810
6080
|
variant?: 'primary' | 'secondary';
|
|
6081
|
+
/** Size of the field. Defaults to 'md'. */
|
|
6082
|
+
size?: TimePickerSize;
|
|
5811
6083
|
/** Elevation shadow on the trigger. Defaults to 'xs'. */
|
|
5812
6084
|
shadow?: TimePickerShadow;
|
|
5813
6085
|
/** Enable tactile press animation (scale on focus). Defaults to false. */
|
|
@@ -5820,9 +6092,12 @@ export declare interface TimePickerProps {
|
|
|
5820
6092
|
|
|
5821
6093
|
export declare type TimePickerShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
5822
6094
|
|
|
6095
|
+
declare type TimePickerSize = 'sm' | 'md' | 'lg';
|
|
6096
|
+
|
|
5823
6097
|
/** Trigger button — looks like a field, opens the wheels popover. */
|
|
5824
6098
|
export declare const timePickerTriggerTheme: (props?: ({
|
|
5825
6099
|
variant?: "primary" | "secondary" | null | undefined;
|
|
6100
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
5826
6101
|
shadow?: "none" | "sm" | "md" | "xs" | null | undefined;
|
|
5827
6102
|
animated?: boolean | null | undefined;
|
|
5828
6103
|
} & ClassProp) | undefined) => string;
|
|
@@ -5909,6 +6184,8 @@ declare function toggle(): void;
|
|
|
5909
6184
|
|
|
5910
6185
|
declare function toggle_2(): void;
|
|
5911
6186
|
|
|
6187
|
+
declare function toggleColumn(key: string): void;
|
|
6188
|
+
|
|
5912
6189
|
/** Plain tooltip config — static values, no refs/getters. */
|
|
5913
6190
|
export declare interface TooltipConfig {
|
|
5914
6191
|
content: string;
|
|
@@ -5965,32 +6242,78 @@ export declare const tooltipTriggerTheme: string;
|
|
|
5965
6242
|
export declare interface TreeNode {
|
|
5966
6243
|
key: string;
|
|
5967
6244
|
label: string;
|
|
6245
|
+
/** SVG path data ('d' attribute) or a custom string the #icon slot may interpret. */
|
|
5968
6246
|
icon?: string;
|
|
5969
6247
|
children?: TreeNode[];
|
|
6248
|
+
/** Signal that children are loaded async. The tree shows a chevron, and on
|
|
6249
|
+
* expand it calls the `loadChildren` prop. Children are cached after load. */
|
|
6250
|
+
isAsync?: boolean;
|
|
5970
6251
|
disabled?: boolean;
|
|
5971
6252
|
}
|
|
5972
6253
|
|
|
5973
|
-
export declare
|
|
6254
|
+
export declare type TreeSelectionMode = 'none' | 'single' | 'multiple';
|
|
5974
6255
|
|
|
5975
|
-
|
|
6256
|
+
/** Empty 16px spacer rendered for leaf nodes so labels align with their siblings. */
|
|
6257
|
+
export declare const treeViewChevronSpacerTheme = "size-4 shrink-0";
|
|
6258
|
+
|
|
6259
|
+
/** Chevron arrow on parent nodes. Rotates 90deg when expanded. */
|
|
6260
|
+
export declare const treeViewChevronTheme: string;
|
|
6261
|
+
|
|
6262
|
+
/** Vertical line + indentation for the children block. */
|
|
6263
|
+
export declare const treeViewChildrenTheme = "pl-4 ml-2 border-l border-ousi-border/30";
|
|
5976
6264
|
|
|
5977
6265
|
export declare interface TreeViewEmits {
|
|
6266
|
+
/** Selection changed (single-select). */
|
|
5978
6267
|
'select': [key: string, node: TreeNode];
|
|
6268
|
+
/** Node expanded. */
|
|
5979
6269
|
'expand': [key: string];
|
|
6270
|
+
/** Node collapsed. */
|
|
5980
6271
|
'collapse': [key: string];
|
|
6272
|
+
/** v-model:selectedKey (single-select). */
|
|
6273
|
+
'update:selectedKey': [key: string];
|
|
6274
|
+
/** v-model:selectedKeys (multi-select). */
|
|
6275
|
+
'update:selectedKeys': [keys: Set<string>];
|
|
6276
|
+
/** v-model:expandedKeys. */
|
|
6277
|
+
'update:expandedKeys': [keys: Set<string>];
|
|
5981
6278
|
}
|
|
5982
6279
|
|
|
5983
|
-
|
|
6280
|
+
/** Built-in icon rendering — uses the node.icon as an SVG path 'd' attribute. */
|
|
6281
|
+
export declare const treeViewIconTheme = "size-4 text-ousi-muted shrink-0";
|
|
6282
|
+
|
|
6283
|
+
/** A row in the tree — the chevron + checkbox + icon + label container. */
|
|
6284
|
+
export declare const treeViewNodeTheme: (props?: ({
|
|
6285
|
+
selected?: boolean | null | undefined;
|
|
6286
|
+
disabled?: boolean | null | undefined;
|
|
6287
|
+
} & ClassProp) | undefined) => string;
|
|
5984
6288
|
|
|
5985
6289
|
export declare interface TreeViewProps {
|
|
6290
|
+
/** Root nodes of the tree. */
|
|
5986
6291
|
nodes: TreeNode[];
|
|
5987
|
-
|
|
5988
|
-
|
|
6292
|
+
/** Selection mode. Default: 'none'. */
|
|
6293
|
+
selectionMode?: TreeSelectionMode;
|
|
6294
|
+
/** Controlled selected key (single-select shorthand). */
|
|
5989
6295
|
selectedKey?: string;
|
|
6296
|
+
/** Default selected key (uncontrolled, single-select). */
|
|
6297
|
+
defaultSelectedKey?: string;
|
|
6298
|
+
/** Controlled set of selected keys (multi-select). */
|
|
6299
|
+
selectedKeys?: Set<string>;
|
|
6300
|
+
/** Default selected keys (uncontrolled, multi-select). */
|
|
6301
|
+
defaultSelectedKeys?: Set<string>;
|
|
6302
|
+
/** Controlled set of expanded keys. */
|
|
6303
|
+
expandedKeys?: Set<string>;
|
|
6304
|
+
/** Default expanded keys (uncontrolled). */
|
|
6305
|
+
defaultExpandedKeys?: Set<string>;
|
|
6306
|
+
/** Also toggle expansion when the user clicks the label (not just the chevron). Default: false. */
|
|
6307
|
+
expandOnLabelClick?: boolean;
|
|
6308
|
+
/** Async loader for children. Called the first time a node with `isAsync: true`
|
|
6309
|
+
* is expanded. Returned children are cached until `reload(key)` is called.
|
|
6310
|
+
* Throw / reject to mark the node as failed — the user can retry by clicking. */
|
|
6311
|
+
loadChildren?: (node: TreeNode) => Promise<TreeNode[]>;
|
|
6312
|
+
/** Additional CSS classes. */
|
|
5990
6313
|
class?: string;
|
|
5991
6314
|
}
|
|
5992
6315
|
|
|
5993
|
-
export declare const treeViewTheme = "w-full text-sm";
|
|
6316
|
+
export declare const treeViewTheme = "w-full text-sm select-none";
|
|
5994
6317
|
|
|
5995
6318
|
declare function triggerClearOnError(): Promise<void>;
|
|
5996
6319
|
|
|
@@ -6013,6 +6336,12 @@ export declare const typewriterTheme = "inline";
|
|
|
6013
6336
|
|
|
6014
6337
|
export declare function useFormContext(): FormContext | undefined;
|
|
6015
6338
|
|
|
6339
|
+
/**
|
|
6340
|
+
* Access the global Ousi UI config. Returns refs that you can read or write
|
|
6341
|
+
* directly — changes propagate reactively to all components consuming them.
|
|
6342
|
+
*/
|
|
6343
|
+
export declare function useOusiConfig(): OusiConfig;
|
|
6344
|
+
|
|
6016
6345
|
/**
|
|
6017
6346
|
* Headless tooltip logic — floating-ui positioning, show/hide with delays,
|
|
6018
6347
|
* arrow placement, and enter-animation geometry. Consumed by both the
|
|
@@ -6069,4 +6398,6 @@ declare const vTooltip: ObjectDirective<HTMLElement, TooltipDirectiveBinding | u
|
|
|
6069
6398
|
export { vTooltip as tooltipDirective }
|
|
6070
6399
|
export { vTooltip }
|
|
6071
6400
|
|
|
6401
|
+
export declare type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
6402
|
+
|
|
6072
6403
|
export { }
|