@leavepulse/ui 0.31.1 → 0.33.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/assets/{LpDropzone-DVDC-ABU.css → LpDropzone-BBoWvi-J.css} +12 -12
- package/dist/assets/{LpImageEditor-DqP5JKCy.css → LpImageEditor-BsSwej47.css} +6 -6
- package/dist/chunks/{LpAddressInput-BDkp3-Bp.js → LpAddressInput-C35TsJXt.js} +19 -14
- package/dist/chunks/{LpAppShell-Chz8Vbtu.js → LpAppShell-lVvpENMH.js} +18 -13
- package/dist/chunks/{LpBreadcrumbs-5uvViCXi.js → LpBreadcrumbs-p4jHe_V-.js} +9 -7
- package/dist/chunks/{LpCalendar-B7ZL0ty3.js → LpCalendar-B7Ko5RdR.js} +12 -7
- package/dist/chunks/{LpCard-D0M2ZCnB.js → LpCard-1SeUYPBT.js} +36 -9
- package/dist/chunks/{LpCheckbox-BO0zuuPh.js → LpCheckbox-CVccKYaH.js} +9 -4
- package/dist/chunks/{LpCodeBlock-BWX1KZwk.js → LpCodeBlock-Bo0B4TFR.js} +37 -32
- package/dist/chunks/{LpDatePicker-dY2q4dr4.js → LpDatePicker-6JFXllj5.js} +1 -1
- package/dist/chunks/{LpDisclosure-B4kVAWfg.js → LpDisclosure-y7wDBgLa.js} +11 -6
- package/dist/chunks/{LpEmptyState-BV3q7Qyi.js → LpEmptyState-Dsdqz1Wj.js} +13 -5
- package/dist/chunks/{LpFileTree-DfFqY__1.js → LpFileTree-C-NFRT0H.js} +19 -14
- package/dist/chunks/{LpFileTreeNode-COchUMNn.js → LpFileTreeNode-DNJUJiiB.js} +13 -6
- package/dist/chunks/{LpFormField-fV_2ZdCk.js → LpFormField-CazBc2-a.js} +14 -9
- package/dist/chunks/{LpInput-Bt4J71xn.js → LpInput-9EXWUM9B.js} +1 -1
- package/dist/chunks/{LpLightbox-Ci35Y_xP.js → LpLightbox-oLqyjOln.js} +30 -7
- package/dist/chunks/{LpLink-BHZ1CLlF.js → LpLink-DCND-zyu.js} +16 -9
- package/dist/chunks/{LpLogViewer-TSRyt3t9.js → LpLogViewer-y53ZqSVq.js} +20 -10
- package/dist/chunks/{LpMapPicker-CXvoTrAe.js → LpMapPicker-ul4oYno6.js} +14 -9
- package/dist/chunks/LpMediaGallery-Cid7PGYx.js +214 -0
- package/dist/chunks/{LpNotificationBell-gdvQY89m.js → LpNotificationBell-lHePf89W.js} +1 -1
- package/dist/chunks/{LpNumberField-NPE8Bumx.js → LpNumberField-CWuX08iX.js} +12 -5
- package/dist/chunks/{LpOtpInput-DqaT0Z75.js → LpOtpInput-y2v-pmiN.js} +11 -6
- package/dist/chunks/{LpPagination-CeGuNe_q.js → LpPagination-5FxjmmB5.js} +21 -19
- package/dist/chunks/{LpPasswordInput-BqMAc5HA.js → LpPasswordInput--sjYCkLS.js} +1 -1
- package/dist/chunks/{LpPhoneInput-NXXjciJJ.js → LpPhoneInput-BDSKVl_z.js} +16 -9
- package/dist/chunks/{LpPie-BL1vTDSM.js → LpPie-c2-q4DJu.js} +14 -8
- package/dist/chunks/{LpRadio-CL-pI0_O.js → LpRadio-B5AfqTpZ.js} +13 -5
- package/dist/chunks/{LpRadioGroup-B4yDTmi6.js → LpRadioGroup-xPIuVDO_.js} +12 -5
- package/dist/chunks/{LpSegmented-BmpanyAo.js → LpSegmented-fV0Sk92p.js} +16 -6
- package/dist/chunks/{LpSidebar-BiWM_lDB.js → LpSidebar-DcYavim2.js} +2 -2
- package/dist/chunks/{LpSidebarNav-CsgeuGAu.js → LpSidebarNav-CqwvT4H8.js} +21 -16
- package/dist/chunks/{LpSlider-B1SF3pRV.js → LpSlider-BwNIBkAK.js} +12 -5
- package/dist/chunks/{LpStat-CDanpzU0.js → LpStat-CQaW8R--.js} +23 -18
- package/dist/chunks/{LpStepper-Wtl-6nUh.js → LpStepper-Bk-XaQYU.js} +15 -10
- package/dist/chunks/{LpSwitch-v6fnccSM.js → LpSwitch-xgnRU2k0.js} +12 -5
- package/dist/chunks/{LpTextarea-BMIOfw5l.js → LpTextarea-t7F6gv8E.js} +1 -1
- package/dist/chunks/{LpUptimeBar-DcQ8HikG.js → LpUptimeBar-DvAMno0S.js} +26 -21
- package/dist/component-names.d.ts +1 -1
- package/dist/components/LpAddressInput.vue.d.ts +34 -17
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAppShell.vue.d.ts +65 -31
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpBreadcrumbs.vue.d.ts +12 -6
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpCalendar.vue.d.ts +15 -6
- package/dist/components/LpCalendar.vue.js +1 -1
- package/dist/components/LpCard.vue.d.ts +26 -0
- package/dist/components/LpCard.vue.js +1 -1
- package/dist/components/LpChart.vue.d.ts +54 -12
- package/dist/components/LpChart.vue.js +15 -9
- package/dist/components/LpCheckbox.vue.d.ts +16 -12
- package/dist/components/LpCheckbox.vue.js +1 -1
- package/dist/components/LpCodeBlock.vue.d.ts +25 -6
- package/dist/components/LpCodeBlock.vue.js +1 -1
- package/dist/components/LpDatePicker.vue.js +1 -1
- package/dist/components/LpDisclosure.vue.d.ts +24 -14
- package/dist/components/LpDisclosure.vue.js +1 -1
- package/dist/components/LpDropzone.vue.d.ts +38 -14
- package/dist/components/LpDropzone.vue.js +17 -11
- package/dist/components/LpEmptyState.vue.d.ts +15 -10
- package/dist/components/LpEmptyState.vue.js +1 -1
- package/dist/components/LpFileTree.vue.d.ts +51 -31
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.d.ts +31 -16
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpFormField.vue.d.ts +14 -13
- package/dist/components/LpFormField.vue.js +1 -1
- package/dist/components/LpImageEditor.vue.d.ts +33 -10
- package/dist/components/LpImageEditor.vue.js +13 -7
- package/dist/components/LpInput.vue.js +1 -1
- package/dist/components/LpLightbox.vue.js +1 -1
- package/dist/components/LpLink.vue.d.ts +46 -11
- package/dist/components/LpLink.vue.js +1 -1
- package/dist/components/LpLogViewer.vue.d.ts +63 -6
- package/dist/components/LpLogViewer.vue.js +1 -1
- package/dist/components/LpMapPicker.vue.d.ts +25 -10
- package/dist/components/LpMapPicker.vue.js +1 -1
- package/dist/components/LpMediaGallery.vue.d.ts +80 -0
- package/dist/components/LpMediaGallery.vue.js +4 -0
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpNumberField.vue.d.ts +12 -6
- package/dist/components/LpNumberField.vue.js +1 -1
- package/dist/components/LpOtpInput.vue.d.ts +18 -6
- package/dist/components/LpOtpInput.vue.js +1 -1
- package/dist/components/LpPagination.vue.d.ts +16 -6
- package/dist/components/LpPagination.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpPhoneInput.vue.d.ts +18 -6
- package/dist/components/LpPhoneInput.vue.js +1 -1
- package/dist/components/LpPie.vue.d.ts +96 -34
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpRadio.vue.d.ts +10 -10
- package/dist/components/LpRadio.vue.js +1 -1
- package/dist/components/LpRadioGroup.vue.d.ts +12 -12
- package/dist/components/LpRadioGroup.vue.js +1 -1
- package/dist/components/LpSegmented.vue.d.ts +12 -6
- package/dist/components/LpSegmented.vue.js +1 -1
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.d.ts +28 -17
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpSlider.vue.d.ts +13 -6
- package/dist/components/LpSlider.vue.js +1 -1
- package/dist/components/LpStat.vue.d.ts +35 -11
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpStepper.vue.d.ts +17 -5
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpSwitch.vue.d.ts +8 -6
- package/dist/components/LpSwitch.vue.js +1 -1
- package/dist/components/LpTable.vue.js +1 -1
- package/dist/components/LpTextarea.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.d.ts +21 -5
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/components/lightbox.d.ts +10 -0
- package/dist/composables/useMergedClass.d.ts +20 -0
- package/dist/composables/useMergedClass.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +95 -89
- package/package.json +1 -3
- package/src/component-names.ts +1 -0
- package/src/components/LpAddressInput.vue +16 -1
- package/src/components/LpAppShell.vue +16 -1
- package/src/components/LpBreadcrumbs.vue +16 -1
- package/src/components/LpCalendar.vue +15 -1
- package/src/components/LpCard.vue +50 -5
- package/src/components/LpChart.vue +16 -1
- package/src/components/LpCheckbox.vue +16 -1
- package/src/components/LpCodeBlock.vue +16 -1
- package/src/components/LpDisclosure.vue +15 -1
- package/src/components/LpDropzone.vue +21 -6
- package/src/components/LpEmptyState.vue +21 -3
- package/src/components/LpFileTree.vue +16 -1
- package/src/components/LpFileTreeNode.vue +15 -1
- package/src/components/LpFormField.vue +16 -1
- package/src/components/LpImageEditor.vue +16 -1
- package/src/components/LpLightbox.vue +68 -3
- package/src/components/LpLink.vue +25 -9
- package/src/components/LpLogViewer.vue +20 -2
- package/src/components/LpMapPicker.vue +15 -1
- package/src/components/LpMediaGallery.vue +365 -0
- package/src/components/LpNumberField.vue +15 -1
- package/src/components/LpOtpInput.vue +15 -1
- package/src/components/LpPagination.vue +16 -1
- package/src/components/LpPhoneInput.vue +23 -8
- package/src/components/LpPie.vue +16 -1
- package/src/components/LpRadio.vue +20 -3
- package/src/components/LpRadioGroup.vue +15 -1
- package/src/components/LpSegmented.vue +21 -2
- package/src/components/LpSidebarNav.vue +16 -1
- package/src/components/LpSlider.vue +15 -1
- package/src/components/LpStat.vue +16 -1
- package/src/components/LpStepper.vue +16 -1
- package/src/components/LpSwitch.vue +15 -1
- package/src/components/LpUptimeBar.vue +16 -1
- package/src/components/lightbox.ts +10 -0
- package/src/composables/useMergedClass.ts +30 -0
- package/src/index.ts +2 -0
- package/src/tokens/tokens.css +29 -0
|
@@ -9,7 +9,9 @@ export interface LogLine {
|
|
|
9
9
|
/** Short origin tag (service / module), rendered as a dim chip. */
|
|
10
10
|
source?: string;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
13
15
|
lines: LogLine[];
|
|
14
16
|
/** Show the timestamp column. */
|
|
15
17
|
showTime?: boolean;
|
|
@@ -67,14 +69,71 @@ type __VLS_Props = {
|
|
|
67
69
|
* so a duplicate level word / timestamp doesn't repeat in the message body.
|
|
68
70
|
*/
|
|
69
71
|
parse?: boolean;
|
|
70
|
-
}
|
|
71
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
72
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
72
73
|
filter: (by: {
|
|
73
74
|
source?: string;
|
|
74
75
|
level?: LogLevel;
|
|
75
76
|
}) => any;
|
|
76
77
|
"reach-top": () => any;
|
|
77
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
78
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
79
|
+
lines: LogLine[];
|
|
80
|
+
/** Show the timestamp column. */
|
|
81
|
+
showTime?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Show the per-line level chip (INFO/WARN/…). On by default. Turn off for
|
|
84
|
+
* raw streams (e.g. docker logs) where most lines have no real level and a
|
|
85
|
+
* blanket "INFO" chip is just noise — the tonal level RAIL still renders, so
|
|
86
|
+
* errors/warnings stay visually distinct.
|
|
87
|
+
*/
|
|
88
|
+
showLevel?: boolean;
|
|
89
|
+
/** Show 1-based gutter line numbers. */
|
|
90
|
+
lineNumbers?: boolean;
|
|
91
|
+
/** Wrap long lines instead of scrolling horizontally. */
|
|
92
|
+
wrap?: boolean;
|
|
93
|
+
/** Case-insensitive substring to highlight in message bodies. */
|
|
94
|
+
highlight?: string;
|
|
95
|
+
/** When set with `highlight`, hide every line that doesn't match. */
|
|
96
|
+
filterMatches?: boolean;
|
|
97
|
+
/** Collapse consecutive identical lines into one, badged with a ×N count. */
|
|
98
|
+
compact?: boolean;
|
|
99
|
+
/** Pin to the bottom as new lines arrive (until the user scrolls up). */
|
|
100
|
+
tail?: boolean;
|
|
101
|
+
/** Fixed height. Anything CSS-valid; defaults to a comfortable terminal. */
|
|
102
|
+
height?: string;
|
|
103
|
+
emptyLabel?: string;
|
|
104
|
+
/** Shown while the stream is held. Defaulted in English; apps with i18n
|
|
105
|
+
* pass their own. */
|
|
106
|
+
frozenLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* When true, a "loading older…" row is shown pinned at the top — set it while
|
|
109
|
+
* fetching a previous page in response to `reach-top`, clear it when done.
|
|
110
|
+
*/
|
|
111
|
+
loadingOlder?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* When true, the viewer emits `reach-top` as the user scrolls near the top so
|
|
114
|
+
* the consumer can prepend older history (infinite scroll-back). The viewer
|
|
115
|
+
* preserves the scroll position across a prepend so the view doesn't jump.
|
|
116
|
+
*/
|
|
117
|
+
loadOlder?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Right-click row menu: built-in copy actions (+ "filter by" when the line
|
|
120
|
+
* has a source/level). Set false to disable; the row keeps the native menu.
|
|
121
|
+
*/
|
|
122
|
+
rowMenu?: boolean;
|
|
123
|
+
/** Extra menu items per line, appended below the built-ins with a divider. */
|
|
124
|
+
extraRowItems?: (line: LogLine, index: number) => ContextMenuItemDef[];
|
|
125
|
+
/**
|
|
126
|
+
* Recognise common log formats inside each `message` and lift the level,
|
|
127
|
+
* timestamp and [source] out of the text into the dedicated columns. When a
|
|
128
|
+
* line already carries an explicit `level`/`time`/`source`, those win and
|
|
129
|
+
* the message is left untouched. Off by default (raw). Handles e.g.:
|
|
130
|
+
* "2025-01-02T03:04:05.123Z INFO [auth] user logged in"
|
|
131
|
+
* "[2025-01-02 03:04:05] WARN: disk almost full"
|
|
132
|
+
* "ERROR something broke"
|
|
133
|
+
* so a duplicate level word / timestamp doesn't repeat in the message body.
|
|
134
|
+
*/
|
|
135
|
+
parse?: boolean;
|
|
136
|
+
}> & Readonly<{
|
|
78
137
|
onFilter?: ((by: {
|
|
79
138
|
source?: string;
|
|
80
139
|
level?: LogLevel;
|
|
@@ -92,5 +151,3 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
92
151
|
rowMenu: boolean;
|
|
93
152
|
parse: boolean;
|
|
94
153
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
95
|
-
declare const _default: typeof __VLS_export;
|
|
96
|
-
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { LatLon, TileSource } from './address';
|
|
2
|
-
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
3
5
|
/** Picked point. Bind with v-model; undefined leaves the map unpinned. */
|
|
4
6
|
modelValue?: LatLon;
|
|
5
7
|
/** Tile server. Defaults to OpenStreetMap; swap for your own. */
|
|
@@ -17,17 +19,32 @@ type __VLS_Props = {
|
|
|
17
19
|
zoomOutLabel?: string;
|
|
18
20
|
locateLabel?: string;
|
|
19
21
|
recentreLabel?: string;
|
|
20
|
-
}
|
|
21
|
-
declare function recentre(): void;
|
|
22
|
-
declare function locate(): void;
|
|
23
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
22
|
+
}, {
|
|
24
23
|
zoomIn: () => void;
|
|
25
24
|
zoomOut: () => void;
|
|
26
|
-
recentre:
|
|
27
|
-
locate:
|
|
25
|
+
recentre: () => void;
|
|
26
|
+
locate: () => void;
|
|
28
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
29
28
|
"update:modelValue": (value: LatLon) => any;
|
|
30
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
30
|
+
/** Picked point. Bind with v-model; undefined leaves the map unpinned. */
|
|
31
|
+
modelValue?: LatLon;
|
|
32
|
+
/** Tile server. Defaults to OpenStreetMap; swap for your own. */
|
|
33
|
+
tiles?: TileSource;
|
|
34
|
+
/** Zoom used on first paint, and when a point arrives from outside. */
|
|
35
|
+
zoom?: number;
|
|
36
|
+
/** Where to look when there is no point yet. */
|
|
37
|
+
center?: LatLon;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/** Any CSS length. */
|
|
40
|
+
height?: string;
|
|
41
|
+
/** Offer the "use my location" control (needs a secure context). */
|
|
42
|
+
locatable?: boolean;
|
|
43
|
+
zoomInLabel?: string;
|
|
44
|
+
zoomOutLabel?: string;
|
|
45
|
+
locateLabel?: string;
|
|
46
|
+
recentreLabel?: string;
|
|
47
|
+
}> & Readonly<{
|
|
31
48
|
"onUpdate:modelValue"?: ((value: LatLon) => any) | undefined;
|
|
32
49
|
}>, {
|
|
33
50
|
center: LatLon;
|
|
@@ -40,5 +57,3 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
|
40
57
|
locateLabel: string;
|
|
41
58
|
recentreLabel: string;
|
|
42
59
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
-
declare const _default: typeof __VLS_export;
|
|
44
|
-
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { LightboxItem } from './lightbox';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Images in the set. The same shape LpLightbox takes. */
|
|
4
|
+
items: LightboxItem[];
|
|
5
|
+
/**
|
|
6
|
+
* Thumbnails per row. A number is that many at every width; an object is
|
|
7
|
+
* per breakpoint, e.g. `{ base: 2, md: 3, lg: 4 }`.
|
|
8
|
+
*/
|
|
9
|
+
columns?: number | {
|
|
10
|
+
base?: number;
|
|
11
|
+
sm?: number;
|
|
12
|
+
md?: number;
|
|
13
|
+
lg?: number;
|
|
14
|
+
xl?: number;
|
|
15
|
+
};
|
|
16
|
+
/** Space between thumbnails, as a Tailwind gap step. */
|
|
17
|
+
gap?: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4;
|
|
18
|
+
/** Shape of each cell. `auto` lets the image decide its own height. */
|
|
19
|
+
aspect?: "square" | "video" | "auto";
|
|
20
|
+
/**
|
|
21
|
+
* Show at most this many, with the remainder as a "+N" badge over the last
|
|
22
|
+
* visible one — the usual treatment for a set too big for the space it has.
|
|
23
|
+
* Clicking the badge opens the lightbox at the first hidden image, because
|
|
24
|
+
* that is the one the count is about.
|
|
25
|
+
*/
|
|
26
|
+
max?: number;
|
|
27
|
+
/** Open the lightbox on click. Off makes the grid a pure display. */
|
|
28
|
+
openable?: boolean;
|
|
29
|
+
/** Passed through to the lightbox. */
|
|
30
|
+
downloadable?: boolean;
|
|
31
|
+
/** Passed through to the lightbox. */
|
|
32
|
+
rotatable?: boolean;
|
|
33
|
+
/** Accessible name for the grid. */
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Slots = {
|
|
37
|
+
/** Replace a cell's contents. Gets the item and its index. */
|
|
38
|
+
item(props: {
|
|
39
|
+
item: LightboxItem;
|
|
40
|
+
index: number;
|
|
41
|
+
}): unknown;
|
|
42
|
+
/** Shown instead of the grid when `items` is empty. */
|
|
43
|
+
empty(): unknown;
|
|
44
|
+
};
|
|
45
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
|
|
46
|
+
/** Open the lightbox at an index — for a "view all" button outside the grid. */
|
|
47
|
+
openAt: (i: number) => void;
|
|
48
|
+
/** Uncover every spoiler in the set. */
|
|
49
|
+
revealAll: () => void;
|
|
50
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
51
|
+
select: (item: LightboxItem, index: number) => any;
|
|
52
|
+
"update:open": (value: boolean) => any;
|
|
53
|
+
reveal: (item: LightboxItem) => any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
55
|
+
onSelect?: ((item: LightboxItem, index: number) => any) | undefined;
|
|
56
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
57
|
+
onReveal?: ((item: LightboxItem) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
columns: number | {
|
|
60
|
+
base?: number;
|
|
61
|
+
sm?: number;
|
|
62
|
+
md?: number;
|
|
63
|
+
lg?: number;
|
|
64
|
+
xl?: number;
|
|
65
|
+
};
|
|
66
|
+
gap: 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4;
|
|
67
|
+
ariaLabel: string;
|
|
68
|
+
aspect: "square" | "video" | "auto";
|
|
69
|
+
rotatable: boolean;
|
|
70
|
+
downloadable: boolean;
|
|
71
|
+
openable: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
73
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
74
|
+
declare const _default: typeof __VLS_export;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
2
4
|
modelValue?: number | null;
|
|
3
5
|
min?: number;
|
|
4
6
|
max?: number;
|
|
5
7
|
step?: number;
|
|
6
8
|
disabled?: boolean;
|
|
7
9
|
unit?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
11
|
"update:modelValue": (value: number | null) => any;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
13
|
+
modelValue?: number | null;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
step?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
unit?: string;
|
|
19
|
+
}> & Readonly<{
|
|
12
20
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
13
21
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
-
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
2
4
|
/** The code as one string, e.g. "123456". Bind with v-model. */
|
|
3
5
|
modelValue?: string;
|
|
4
6
|
/** Number of cells. */
|
|
@@ -11,11 +13,23 @@ type __VLS_Props = {
|
|
|
11
13
|
/** Error state — tints the cells red (e.g. wrong code). */
|
|
12
14
|
invalid?: boolean;
|
|
13
15
|
size?: "sm" | "md" | "lg";
|
|
14
|
-
}
|
|
15
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
16
17
|
"update:modelValue": (value: string) => any;
|
|
17
18
|
complete: (value: string) => any;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
20
|
+
/** The code as one string, e.g. "123456". Bind with v-model. */
|
|
21
|
+
modelValue?: string;
|
|
22
|
+
/** Number of cells. */
|
|
23
|
+
length?: number;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Mask entered characters (•) — for sensitive codes. */
|
|
26
|
+
mask?: boolean;
|
|
27
|
+
/** Allow letters too (backup codes). Default: digits only (TOTP). */
|
|
28
|
+
alphanumeric?: boolean;
|
|
29
|
+
/** Error state — tints the cells red (e.g. wrong code). */
|
|
30
|
+
invalid?: boolean;
|
|
31
|
+
size?: "sm" | "md" | "lg";
|
|
32
|
+
}> & Readonly<{
|
|
19
33
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
20
34
|
onComplete?: ((value: string) => any) | undefined;
|
|
21
35
|
}>, {
|
|
@@ -23,5 +37,3 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
23
37
|
length: number;
|
|
24
38
|
alphanumeric: boolean;
|
|
25
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
-
declare const _default: typeof __VLS_export;
|
|
27
|
-
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
2
4
|
/** Current page, 1-based (v-model:page). */
|
|
3
5
|
page?: number;
|
|
4
6
|
/** Total item count — used with pageSize to derive the page count. */
|
|
@@ -9,11 +11,21 @@ type __VLS_Props = {
|
|
|
9
11
|
/** Pages shown on each side of the current one in the inner run. */
|
|
10
12
|
siblings?: number;
|
|
11
13
|
disabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
15
|
change: (value: number) => any;
|
|
15
16
|
"update:page": (value: number) => any;
|
|
16
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
18
|
+
/** Current page, 1-based (v-model:page). */
|
|
19
|
+
page?: number;
|
|
20
|
+
/** Total item count — used with pageSize to derive the page count. */
|
|
21
|
+
total?: number;
|
|
22
|
+
pageSize?: number;
|
|
23
|
+
/** Direct page count; wins over total/pageSize when given. */
|
|
24
|
+
pageCount?: number;
|
|
25
|
+
/** Pages shown on each side of the current one in the inner run. */
|
|
26
|
+
siblings?: number;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
}> & Readonly<{
|
|
17
29
|
onChange?: ((value: number) => any) | undefined;
|
|
18
30
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
19
31
|
}>, {
|
|
@@ -21,5 +33,3 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
21
33
|
pageSize: number;
|
|
22
34
|
siblings: number;
|
|
23
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const _default: typeof __VLS_export;
|
|
25
|
-
export default _default;
|
|
@@ -7,7 +7,9 @@ export interface PhoneDetail {
|
|
|
7
7
|
/** National part (digits after the dial code). */
|
|
8
8
|
number: string;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
11
13
|
/** Full phone string, e.g. "+380501234567". Bind with v-model. */
|
|
12
14
|
modelValue?: string;
|
|
13
15
|
/** Restrict the country list (ISO2 codes). Omit for all countries. */
|
|
@@ -20,11 +22,23 @@ type __VLS_Props = {
|
|
|
20
22
|
size?: "sm" | "md" | "lg";
|
|
21
23
|
emptyText?: string;
|
|
22
24
|
searchPlaceholder?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
26
|
change: (detail: PhoneDetail) => any;
|
|
26
27
|
"update:modelValue": (value: string) => any;
|
|
27
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
29
|
+
/** Full phone string, e.g. "+380501234567". Bind with v-model. */
|
|
30
|
+
modelValue?: string;
|
|
31
|
+
/** Restrict the country list (ISO2 codes). Omit for all countries. */
|
|
32
|
+
only?: string[];
|
|
33
|
+
/** Default country (ISO2) used when the field is empty. */
|
|
34
|
+
defaultCountry?: string;
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
invalid?: boolean;
|
|
38
|
+
size?: "sm" | "md" | "lg";
|
|
39
|
+
emptyText?: string;
|
|
40
|
+
searchPlaceholder?: string;
|
|
41
|
+
}> & Readonly<{
|
|
28
42
|
onChange?: ((detail: PhoneDetail) => any) | undefined;
|
|
29
43
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
44
|
}>, {
|
|
@@ -33,5 +47,3 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
33
47
|
emptyText: string;
|
|
34
48
|
searchPlaceholder: string;
|
|
35
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
-
declare const _default: typeof __VLS_export;
|
|
37
|
-
export default _default;
|
|
@@ -7,7 +7,9 @@ export interface SliceEvent {
|
|
|
7
7
|
value: number;
|
|
8
8
|
isOther: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
11
13
|
slices: PieSlice[];
|
|
12
14
|
type?: "pie" | "donut";
|
|
13
15
|
/** Outer diameter in px. */
|
|
@@ -73,38 +75,77 @@ type __VLS_Props = {
|
|
|
73
75
|
*/
|
|
74
76
|
menuItems?: (slice: SliceEvent, selection: SliceEvent[]) => ContextMenuItemDef[];
|
|
75
77
|
emptyLabel?: string;
|
|
76
|
-
}
|
|
77
|
-
declare var __VLS_40: {
|
|
78
|
-
total: number;
|
|
79
|
-
active: {
|
|
80
|
-
d: string;
|
|
81
|
-
lift: string;
|
|
82
|
-
label: string;
|
|
83
|
-
value: number;
|
|
84
|
-
color: string;
|
|
85
|
-
fraction: number;
|
|
86
|
-
isOther: boolean;
|
|
87
|
-
count: number;
|
|
88
|
-
} | null;
|
|
89
|
-
selection: {
|
|
90
|
-
d: string;
|
|
91
|
-
lift: string;
|
|
92
|
-
label: string;
|
|
93
|
-
value: number;
|
|
94
|
-
color: string;
|
|
95
|
-
fraction: number;
|
|
96
|
-
isOther: boolean;
|
|
97
|
-
count: number;
|
|
98
|
-
}[];
|
|
99
|
-
};
|
|
100
|
-
type __VLS_Slots = {} & {
|
|
101
|
-
center?: (props: typeof __VLS_40) => any;
|
|
102
|
-
};
|
|
103
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
78
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
104
79
|
sliceClick: (payload: SliceEvent) => any;
|
|
105
80
|
selectionChange: (payload: SliceEvent[]) => any;
|
|
106
81
|
sliceContextMenu: (payload: SliceEvent) => any;
|
|
107
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
82
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
83
|
+
slices: PieSlice[];
|
|
84
|
+
type?: "pie" | "donut";
|
|
85
|
+
/** Outer diameter in px. */
|
|
86
|
+
size?: number;
|
|
87
|
+
/** Donut only: hole diameter as a fraction of the outer radius (0–1). */
|
|
88
|
+
innerRatio?: number;
|
|
89
|
+
title?: string;
|
|
90
|
+
subtitle?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Keep the largest N-1 slices and sum the rest into "Other". `0` disables
|
|
93
|
+
* the fold and draws every slice — for a caller that knows its data is
|
|
94
|
+
* already few, or that would rather show a crowded circle than a bucket.
|
|
95
|
+
*/
|
|
96
|
+
maxSlices?: number;
|
|
97
|
+
/** Label for the folded remainder. */
|
|
98
|
+
otherLabel?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Draw the slices largest-first instead of in the order given. Ranking
|
|
101
|
+
* always decides which slices survive `maxSlices`; this decides whether it
|
|
102
|
+
* also reorders them.
|
|
103
|
+
*/
|
|
104
|
+
sortBySize?: boolean;
|
|
105
|
+
/** Appended to values in the legend and tooltip, e.g. " GB". */
|
|
106
|
+
unit?: string;
|
|
107
|
+
/** Custom value formatter; overrides the compact 1.2k default. */
|
|
108
|
+
formatValue?: (v: number) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Name the slices with leader lines around the circle instead of a legend
|
|
111
|
+
* beside it. Better when the labels are long and self-explanatory (versions,
|
|
112
|
+
* hostnames) and the reader wants share-per-name without cross-referencing a
|
|
113
|
+
* colour; the legend stays better for short, repeated categories.
|
|
114
|
+
*/
|
|
115
|
+
labels?: boolean;
|
|
116
|
+
/** Callout width reserved for text on each side, in px. */
|
|
117
|
+
labelWidth?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Defaults to true, except in `labels` mode — callouts already name every
|
|
120
|
+
* slice, and a legend beside them says the same thing twice. Set it
|
|
121
|
+
* explicitly to have both.
|
|
122
|
+
*/
|
|
123
|
+
showLegend?: boolean;
|
|
124
|
+
/** Print each slice's percentage next to its legend entry. */
|
|
125
|
+
showPercent?: boolean;
|
|
126
|
+
/** Donut only: print the total in the hole. Ignored when #center is used. */
|
|
127
|
+
showTotal?: boolean;
|
|
128
|
+
/** Gap between slices in degrees — reads as separate parts, not one disc. */
|
|
129
|
+
padAngle?: number;
|
|
130
|
+
/** Corner radius of each slice in px. 0 for hard edges. */
|
|
131
|
+
cornerRadius?: number;
|
|
132
|
+
/** How far the hovered slice lifts out of the circle, in px. */
|
|
133
|
+
hoverOffset?: number;
|
|
134
|
+
/**
|
|
135
|
+
* Sweep the circle open, clockwise from twelve, when it first comes into
|
|
136
|
+
* view. Turn it off where several are drawn at once and the sweeps would
|
|
137
|
+
* compete rather than read as one arrival.
|
|
138
|
+
*/
|
|
139
|
+
animate?: boolean;
|
|
140
|
+
/** Sweep time in ms. */
|
|
141
|
+
duration?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Right-click menu, built from the slice that was hit and the whole current
|
|
144
|
+
* selection — so an action can apply to one slice or to all the picked ones.
|
|
145
|
+
*/
|
|
146
|
+
menuItems?: (slice: SliceEvent, selection: SliceEvent[]) => ContextMenuItemDef[];
|
|
147
|
+
emptyLabel?: string;
|
|
148
|
+
}> & Readonly<{
|
|
108
149
|
onSliceClick?: ((payload: SliceEvent) => any) | undefined;
|
|
109
150
|
onSelectionChange?: ((payload: SliceEvent[]) => any) | undefined;
|
|
110
151
|
onSliceContextMenu?: ((payload: SliceEvent) => any) | undefined;
|
|
@@ -123,10 +164,31 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
123
164
|
padAngle: number;
|
|
124
165
|
cornerRadius: number;
|
|
125
166
|
hoverOffset: number;
|
|
126
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
167
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
168
|
+
center?: (props: {
|
|
169
|
+
total: number;
|
|
170
|
+
active: {
|
|
171
|
+
d: string;
|
|
172
|
+
lift: string;
|
|
173
|
+
label: string;
|
|
174
|
+
value: number;
|
|
175
|
+
color: string;
|
|
176
|
+
fraction: number;
|
|
177
|
+
isOther: boolean;
|
|
178
|
+
count: number;
|
|
179
|
+
} | null;
|
|
180
|
+
selection: {
|
|
181
|
+
d: string;
|
|
182
|
+
lift: string;
|
|
183
|
+
label: string;
|
|
184
|
+
value: number;
|
|
185
|
+
color: string;
|
|
186
|
+
fraction: number;
|
|
187
|
+
isOther: boolean;
|
|
188
|
+
count: number;
|
|
189
|
+
}[];
|
|
190
|
+
}) => any;
|
|
191
|
+
}>;
|
|
130
192
|
type __VLS_WithSlots<T, S> = T & {
|
|
131
193
|
new (): {
|
|
132
194
|
$slots: S;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
2
4
|
value: string;
|
|
3
5
|
label?: string;
|
|
4
6
|
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
|
-
export default _default;
|
|
7
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
+
value: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?: (props: {}) => any;
|
|
13
|
+
}>;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
16
16
|
$slots: S;
|