@ousi-ui/vue 0.7.2 → 0.7.4
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 -3
- package/dist/index.d.ts +41 -7
- package/dist/index.mjs +9792 -9608
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -176,6 +176,7 @@ overflow: "scroll" | "menu";
|
|
|
176
176
|
contained: boolean;
|
|
177
177
|
hideBorder: boolean;
|
|
178
178
|
scrollFade: boolean;
|
|
179
|
+
scrollArrows: boolean;
|
|
179
180
|
showSeparator: boolean;
|
|
180
181
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
181
182
|
rootRef: HTMLDivElement;
|
|
@@ -822,6 +823,7 @@ showFooter: boolean;
|
|
|
822
823
|
allowsResizing: boolean;
|
|
823
824
|
expandable: boolean;
|
|
824
825
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
826
|
+
scrollRef: HTMLDivElement;
|
|
825
827
|
tableRef: HTMLTableElement;
|
|
826
828
|
}, HTMLDivElement>;
|
|
827
829
|
|
|
@@ -1742,6 +1744,7 @@ declare function __VLS_template_59(): {
|
|
|
1742
1744
|
footer?(_: {}): any;
|
|
1743
1745
|
};
|
|
1744
1746
|
refs: {
|
|
1747
|
+
scrollRef: HTMLDivElement;
|
|
1745
1748
|
tableRef: HTMLTableElement;
|
|
1746
1749
|
};
|
|
1747
1750
|
rootEl: HTMLDivElement;
|
|
@@ -3405,7 +3408,7 @@ export declare const calendarHeaderCellTheme: string;
|
|
|
3405
3408
|
|
|
3406
3409
|
export declare const calendarHeaderTheme = "flex items-center gap-1 pb-3";
|
|
3407
3410
|
|
|
3408
|
-
export declare const calendarHeadingTheme = "flex-1 text-center text-sm font-semibold text-ousi-foreground";
|
|
3411
|
+
export declare const calendarHeadingTheme = "flex-1 whitespace-nowrap text-center text-sm font-semibold text-ousi-foreground";
|
|
3409
3412
|
|
|
3410
3413
|
export declare const calendarNavButtonTheme: string;
|
|
3411
3414
|
|
|
@@ -3894,6 +3897,9 @@ export declare interface ColorPickerProps {
|
|
|
3894
3897
|
defaultValue?: ColorPickerValue;
|
|
3895
3898
|
/** Label shown next to the trigger swatch. */
|
|
3896
3899
|
label?: string;
|
|
3900
|
+
/** Without a label, show the hex value next to the trigger swatch. Turn it off when the hex
|
|
3901
|
+
* is already shown elsewhere (an editable hex field beside the picker). Defaults to `true`. */
|
|
3902
|
+
showValue?: boolean;
|
|
3897
3903
|
/** Show alpha slider. */
|
|
3898
3904
|
showAlpha?: boolean;
|
|
3899
3905
|
/** Show hex input field. */
|
|
@@ -4467,7 +4473,7 @@ export declare interface DialogEmits {
|
|
|
4467
4473
|
'close': [];
|
|
4468
4474
|
}
|
|
4469
4475
|
|
|
4470
|
-
export declare const dialogFooterTheme = "mt-6 flex flex-row items-center justify-end gap-2 first:mt-0";
|
|
4476
|
+
export declare const dialogFooterTheme = "mt-6 flex flex-row flex-wrap items-center justify-end gap-2 first:mt-0";
|
|
4471
4477
|
|
|
4472
4478
|
export declare const dialogHeaderTheme = "flex flex-col gap-1";
|
|
4473
4479
|
|
|
@@ -5677,6 +5683,7 @@ grid: boolean;
|
|
|
5677
5683
|
pulse: boolean;
|
|
5678
5684
|
formatValue: (v: number) => string;
|
|
5679
5685
|
series: ChartSeries[];
|
|
5686
|
+
showValue: boolean;
|
|
5680
5687
|
theme: "light" | "dark";
|
|
5681
5688
|
badge: boolean;
|
|
5682
5689
|
badgeVariant: "default" | "minimal";
|
|
@@ -5684,7 +5691,6 @@ badgeTail: boolean;
|
|
|
5684
5691
|
momentum: boolean | ChartMomentum;
|
|
5685
5692
|
scrub: boolean;
|
|
5686
5693
|
exaggerate: boolean;
|
|
5687
|
-
showValue: boolean;
|
|
5688
5694
|
valueMomentumColor: boolean;
|
|
5689
5695
|
degen: boolean | ChartDegenOptions;
|
|
5690
5696
|
window: number;
|
|
@@ -5871,6 +5877,7 @@ onChange?: ((value: ColorPickerValue) => any) | undefined;
|
|
|
5871
5877
|
}>, {
|
|
5872
5878
|
disabled: boolean;
|
|
5873
5879
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end";
|
|
5880
|
+
showValue: boolean;
|
|
5874
5881
|
showAlpha: boolean;
|
|
5875
5882
|
showHexInput: boolean;
|
|
5876
5883
|
showSwatches: boolean;
|
|
@@ -6431,6 +6438,10 @@ export declare interface OusiMessages {
|
|
|
6431
6438
|
notifications: string;
|
|
6432
6439
|
breadcrumb: string;
|
|
6433
6440
|
pagination: string;
|
|
6441
|
+
/** `{page}` and `{total}` are replaced. */
|
|
6442
|
+
pageOf: string;
|
|
6443
|
+
/** `{page}` is replaced. */
|
|
6444
|
+
goToPage: string;
|
|
6434
6445
|
previousPage: string;
|
|
6435
6446
|
nextPage: string;
|
|
6436
6447
|
previous: string;
|
|
@@ -6450,6 +6461,8 @@ export declare interface OusiMessages {
|
|
|
6450
6461
|
monthPlaceholder: string;
|
|
6451
6462
|
dayPlaceholder: string;
|
|
6452
6463
|
dateRangePicker: string;
|
|
6464
|
+
rangeStartPart: string;
|
|
6465
|
+
rangeEndPart: string;
|
|
6453
6466
|
dateRangeCalendar: string;
|
|
6454
6467
|
timePicker: string;
|
|
6455
6468
|
timeField: string;
|
|
@@ -6591,7 +6604,8 @@ export declare const paginationTheme = "flex w-full flex-col items-center justif
|
|
|
6591
6604
|
|
|
6592
6605
|
export declare function parseDateValue(input: string, pattern: string): DateFieldValue | null;
|
|
6593
6606
|
|
|
6594
|
-
|
|
6607
|
+
/** Segments of a display pattern; placeholders come from the locale messages (`aaaa` in Spanish). */
|
|
6608
|
+
export declare function patternToSegments(pattern: string, placeholders?: SegmentPlaceholders): Segment[];
|
|
6595
6609
|
|
|
6596
6610
|
export declare const popoverDialogTheme = "p-4 outline-none";
|
|
6597
6611
|
|
|
@@ -6619,6 +6633,9 @@ export declare interface PopoverProps {
|
|
|
6619
6633
|
shadow?: PopoverShadow;
|
|
6620
6634
|
/** Additional CSS classes on the panel. */
|
|
6621
6635
|
class?: string;
|
|
6636
|
+
/** Classes on the element that wraps the trigger, an `inline-flex` box by default. Pass
|
|
6637
|
+
* `flex min-w-0 flex-1` to let a full-width trigger fill and shrink inside a flex row. */
|
|
6638
|
+
triggerClass?: string;
|
|
6622
6639
|
}
|
|
6623
6640
|
|
|
6624
6641
|
declare type PopoverShadow = 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -7107,6 +7124,12 @@ export declare interface SegmentedGaugeSlots {
|
|
|
7107
7124
|
}) => unknown;
|
|
7108
7125
|
}
|
|
7109
7126
|
|
|
7127
|
+
declare interface SegmentPlaceholders {
|
|
7128
|
+
year: string;
|
|
7129
|
+
month: string;
|
|
7130
|
+
day: string;
|
|
7131
|
+
}
|
|
7132
|
+
|
|
7110
7133
|
declare type SegmentType = 'year' | 'month' | 'day' | 'literal';
|
|
7111
7134
|
|
|
7112
7135
|
export declare interface SelectEmits {
|
|
@@ -7630,6 +7653,11 @@ export declare const tableScrollContainerTheme: (props?: ({
|
|
|
7630
7653
|
stickyHeader?: boolean | null | undefined;
|
|
7631
7654
|
} & ClassProp) | undefined) => string;
|
|
7632
7655
|
|
|
7656
|
+
/** Shadow over the side of the scroll area that still hides columns. */
|
|
7657
|
+
export declare const tableScrollEdgeTheme: (props?: ({
|
|
7658
|
+
side?: "start" | "end" | null | undefined;
|
|
7659
|
+
} & ClassProp) | undefined) => string;
|
|
7660
|
+
|
|
7633
7661
|
export declare type TableShadow = 'none' | 'xs' | 'sm' | 'md';
|
|
7634
7662
|
|
|
7635
7663
|
export declare type TableVariant = 'primary' | 'secondary';
|
|
@@ -7670,16 +7698,20 @@ export declare interface TabsProps {
|
|
|
7670
7698
|
/** Stretch horizontal tabs to share the full width. Defaults to `false`: each tab is as wide
|
|
7671
7699
|
* as its label, and a secondary list scrolls when the tabs overflow. */
|
|
7672
7700
|
fullWidth?: boolean;
|
|
7673
|
-
/** What horizontal tabs do when they don't fit: 'scroll' sideways (default)
|
|
7674
|
-
* ones that don't fit under a "More" menu.
|
|
7701
|
+
/** What horizontal tabs do when they don't fit: 'scroll' sideways (default), with an arrow on
|
|
7702
|
+
* each side that still has tabs, or collect the ones that don't fit under a "More" menu.
|
|
7703
|
+
* 'menu' has no effect with `fullWidth`. */
|
|
7675
7704
|
overflow?: 'scroll' | 'menu';
|
|
7676
7705
|
/** Fill the width of the parent without making the parent wider. Use it inside grid cells, cards
|
|
7677
7706
|
* in a flex row and other flex/grid children, where a long list of tabs would otherwise stretch
|
|
7678
7707
|
* its column. Needs a parent with a defined width. Defaults to `false`. */
|
|
7679
7708
|
contained?: boolean;
|
|
7680
7709
|
/** Fade the edge(s) of a horizontal list that still has tabs beyond it, like OScrollShadow.
|
|
7681
|
-
* Only applies while the tabs scroll. Defaults to `true`. */
|
|
7710
|
+
* Only applies while the tabs scroll and `scrollArrows` is off. Defaults to `true`. */
|
|
7682
7711
|
scrollFade?: boolean;
|
|
7712
|
+
/** Show an arrow on each edge of a scrolling horizontal list that still has tabs beyond it;
|
|
7713
|
+
* a click scrolls that way. Defaults to `true`. */
|
|
7714
|
+
scrollArrows?: boolean;
|
|
7683
7715
|
/** Hide the secondary variant's track border (the long underline / left rail).
|
|
7684
7716
|
* Has no effect on `primary`. The active-tab indicator is unaffected. Defaults to `false`. */
|
|
7685
7717
|
hideBorder?: boolean;
|
|
@@ -8384,6 +8416,8 @@ export declare function useOusiMessages(): ComputedRef<OusiMessages>;
|
|
|
8384
8416
|
export declare function useScrollFade(el: Ref<HTMLElement | null>, opts: ScrollFadeOptions): {
|
|
8385
8417
|
maskStyle: ComputedRef<Record<string, string>>;
|
|
8386
8418
|
update: () => void;
|
|
8419
|
+
start: Ref<boolean, boolean>;
|
|
8420
|
+
end: Ref<boolean, boolean>;
|
|
8387
8421
|
};
|
|
8388
8422
|
|
|
8389
8423
|
/**
|