@stachelock/ui 0.6.15 → 0.6.16
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/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
- package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
- package/dist/charts/BaseChart.js +76 -56
- package/dist/charts/chartTheme.js +199 -60
- package/dist/charts/index.js +30 -27
- package/dist/components/Button.js +109 -89
- package/dist/composables/index.js +41 -32
- package/dist/composables/useMap.js +1 -1
- package/dist/index.js +2304 -1560
- package/dist/layouts/DashboardLayout.js +218 -2
- package/dist/layouts/NavigationItem.js +1 -1
- package/dist/maps/UiMap.js +167 -150
- package/dist/maps/UiMapAll.js +1 -1
- package/dist/maps/UiMapMarker.js +227 -118
- package/dist/maps/index.js +1 -1
- package/dist/src/components/UiProgressBar.d.ts +1 -1
- package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
- package/dist/src/components/charts/chartTheme.d.ts +53 -0
- package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/inputs/DatepickerInput.d.ts +3 -3
- package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
- package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
- package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
- package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
- package/dist/src/components/layouts/index.d.ts +2 -0
- package/dist/src/components/maps/UiMap.d.ts +13 -2
- package/dist/src/components/maps/UiMapAll.d.ts +13 -0
- package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
- package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
- package/dist/src/components/modals/index.d.ts +1 -0
- package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
- package/dist/src/components/palettes/index.d.ts +1 -0
- package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
- package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
- package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
- package/dist/src/components/wrappers/index.d.ts +3 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/useScreenSize.d.ts +131 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/layouts.d.ts +42 -0
- package/dist/src/types/palettes.d.ts +134 -0
- package/dist/src/views/components/index.d.ts +2 -0
- package/dist/src/views/index.d.ts +5 -1
- package/dist/src/views/layouts/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/useMap-CM59TKX6.js +318 -0
- package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
- package/dist/wrappers/index.js +10 -6
- package/package.json +1 -1
- package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
- package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
- package/dist/useMap-BGg0H582.js +0 -297
|
@@ -25,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
25
25
|
padded: boolean;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
27
27
|
header?(_: {}): any;
|
|
28
|
+
"header-right"?(_: {}): any;
|
|
28
29
|
default?(_: {}): any;
|
|
29
30
|
}>;
|
|
30
31
|
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface DetailPanelProps {
|
|
2
|
+
/** Minimum height of the panel */
|
|
3
|
+
minHeight?: string;
|
|
4
|
+
/** Maximum height of the panel */
|
|
5
|
+
maxHeight?: string;
|
|
6
|
+
/** Show loading state */
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
/** Show empty state */
|
|
9
|
+
empty?: boolean;
|
|
10
|
+
/** Title for empty state */
|
|
11
|
+
emptyTitle?: string;
|
|
12
|
+
/** Description for empty state */
|
|
13
|
+
emptyDescription?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DetailPanelProps>, {
|
|
16
|
+
minHeight: string;
|
|
17
|
+
maxHeight: string;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
empty: boolean;
|
|
20
|
+
emptyTitle: string;
|
|
21
|
+
emptyDescription: string;
|
|
22
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DetailPanelProps>, {
|
|
23
|
+
minHeight: string;
|
|
24
|
+
maxHeight: string;
|
|
25
|
+
loading: boolean;
|
|
26
|
+
empty: boolean;
|
|
27
|
+
emptyTitle: string;
|
|
28
|
+
emptyDescription: string;
|
|
29
|
+
}>>> & Readonly<{}>, {
|
|
30
|
+
loading: boolean;
|
|
31
|
+
empty: boolean;
|
|
32
|
+
maxHeight: string;
|
|
33
|
+
minHeight: string;
|
|
34
|
+
emptyTitle: string;
|
|
35
|
+
emptyDescription: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
37
|
+
header?(_: {}): any;
|
|
38
|
+
loading?(_: {}): any;
|
|
39
|
+
empty?(_: {}): any;
|
|
40
|
+
default?(_: {}): any;
|
|
41
|
+
footer?(_: {}): any;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} & {};
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export type RightPanelSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type MobileBreakpoint = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface SplitPanelLayoutProps {
|
|
4
|
+
/** Controls visibility of the right panel */
|
|
5
|
+
showRightPanel?: boolean;
|
|
6
|
+
/** Width of the right panel */
|
|
7
|
+
rightPanelSize?: RightPanelSize;
|
|
8
|
+
/** Minimum height of the layout container */
|
|
9
|
+
minHeight?: string;
|
|
10
|
+
/** Maximum height of the layout container */
|
|
11
|
+
maxHeight?: string;
|
|
12
|
+
/** Breakpoint for mobile slide-over behavior */
|
|
13
|
+
mobileBreakpoint?: MobileBreakpoint;
|
|
14
|
+
/** Title for mobile slide-over */
|
|
15
|
+
slideOverTitle?: string;
|
|
16
|
+
/** Show back button in right panel footer */
|
|
17
|
+
showBackButton?: boolean;
|
|
18
|
+
/** Apply rounded corners */
|
|
19
|
+
rounded?: boolean;
|
|
20
|
+
/** Apply shadow */
|
|
21
|
+
shadow?: boolean;
|
|
22
|
+
/** Apply ring border */
|
|
23
|
+
ring?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SplitPanelLayoutProps>, {
|
|
26
|
+
showRightPanel: boolean;
|
|
27
|
+
rightPanelSize: string;
|
|
28
|
+
minHeight: string;
|
|
29
|
+
maxHeight: string;
|
|
30
|
+
mobileBreakpoint: string;
|
|
31
|
+
slideOverTitle: string;
|
|
32
|
+
showBackButton: boolean;
|
|
33
|
+
rounded: boolean;
|
|
34
|
+
shadow: boolean;
|
|
35
|
+
ring: boolean;
|
|
36
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
back: () => void;
|
|
38
|
+
"close-right": () => void;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SplitPanelLayoutProps>, {
|
|
40
|
+
showRightPanel: boolean;
|
|
41
|
+
rightPanelSize: string;
|
|
42
|
+
minHeight: string;
|
|
43
|
+
maxHeight: string;
|
|
44
|
+
mobileBreakpoint: string;
|
|
45
|
+
slideOverTitle: string;
|
|
46
|
+
showBackButton: boolean;
|
|
47
|
+
rounded: boolean;
|
|
48
|
+
shadow: boolean;
|
|
49
|
+
ring: boolean;
|
|
50
|
+
}>>> & Readonly<{
|
|
51
|
+
onBack?: (() => any) | undefined;
|
|
52
|
+
"onClose-right"?: (() => any) | undefined;
|
|
53
|
+
}>, {
|
|
54
|
+
rounded: boolean;
|
|
55
|
+
ring: boolean;
|
|
56
|
+
shadow: boolean;
|
|
57
|
+
maxHeight: string;
|
|
58
|
+
minHeight: string;
|
|
59
|
+
showRightPanel: boolean;
|
|
60
|
+
rightPanelSize: RightPanelSize;
|
|
61
|
+
mobileBreakpoint: MobileBreakpoint;
|
|
62
|
+
slideOverTitle: string;
|
|
63
|
+
showBackButton: boolean;
|
|
64
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
65
|
+
"left-header"?(_: {}): any;
|
|
66
|
+
left?(_: {}): any;
|
|
67
|
+
"left-footer"?(_: {}): any;
|
|
68
|
+
"right-header"?(_: {}): any;
|
|
69
|
+
right?(_: {}): any;
|
|
70
|
+
"right-footer"?(_: {}): any;
|
|
71
|
+
"right-actions"?(_: {}): any;
|
|
72
|
+
"mobile-header"?(_: {}): any;
|
|
73
|
+
}>;
|
|
74
|
+
export default _default;
|
|
75
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
76
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
77
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
78
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
79
|
+
} : {
|
|
80
|
+
type: import('vue').PropType<T[K]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
type __VLS_WithDefaults<P, D> = {
|
|
85
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
86
|
+
default: D[K];
|
|
87
|
+
}> : P[K];
|
|
88
|
+
};
|
|
89
|
+
type __VLS_Prettify<T> = {
|
|
90
|
+
[K in keyof T]: T[K];
|
|
91
|
+
} & {};
|
|
92
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
93
|
+
new (): {
|
|
94
|
+
$slots: S;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -12,3 +12,5 @@ export { default as ShowcaseCard } from './ShowcaseCard';
|
|
|
12
12
|
export { default as ShowcaseLayout } from './ShowcaseLayout';
|
|
13
13
|
export { default as SidebarLayout } from './SidebarLayout';
|
|
14
14
|
export { default as StateDisplay } from './StateDisplay';
|
|
15
|
+
export { default as DetailPanel } from './UiDetailPanel';
|
|
16
|
+
export { default as SplitPanelLayout } from './UiSplitPanelLayout';
|
|
@@ -3,11 +3,16 @@ import { LatLngLiteral, LatLngBoundsLiteral, MapTheme, MapTypeId, GestureHandlin
|
|
|
3
3
|
import { MapStyles } from '../../utils/mapThemes';
|
|
4
4
|
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
-
/** Unique map ID */
|
|
6
|
+
/** Unique map ID (HTML element ID) */
|
|
7
7
|
id: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
default: () => string;
|
|
10
10
|
};
|
|
11
|
+
/** Google Cloud Map ID (required for Advanced Markers) */
|
|
12
|
+
googleMapId: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
11
16
|
/** Google Maps API key (optional if provided via plugin) */
|
|
12
17
|
apiKey: {
|
|
13
18
|
type: StringConstructor;
|
|
@@ -281,11 +286,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
281
286
|
"update:center": (center: LatLngLiteral) => void;
|
|
282
287
|
"update:zoom": (zoom: number) => void;
|
|
283
288
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
284
|
-
/** Unique map ID */
|
|
289
|
+
/** Unique map ID (HTML element ID) */
|
|
285
290
|
id: {
|
|
286
291
|
type: StringConstructor;
|
|
287
292
|
default: () => string;
|
|
288
293
|
};
|
|
294
|
+
/** Google Cloud Map ID (required for Advanced Markers) */
|
|
295
|
+
googleMapId: {
|
|
296
|
+
type: StringConstructor;
|
|
297
|
+
default: string;
|
|
298
|
+
};
|
|
289
299
|
/** Google Maps API key (optional if provided via plugin) */
|
|
290
300
|
apiKey: {
|
|
291
301
|
type: StringConstructor;
|
|
@@ -571,6 +581,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
571
581
|
styles: MapStyles;
|
|
572
582
|
tilt: number;
|
|
573
583
|
zoomControl: boolean;
|
|
584
|
+
googleMapId: string;
|
|
574
585
|
autoTheme: boolean;
|
|
575
586
|
lightTheme: MapTheme;
|
|
576
587
|
darkTheme: MapTheme;
|
|
@@ -2,6 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { LatLngLiteral, MapMarker, MapCluster, MapTheme, MapMarkerIcon, ClusteringOptions, CoordinateExtractor } from '../../types/maps';
|
|
3
3
|
|
|
4
4
|
declare function closeInfoWindow(): void;
|
|
5
|
+
declare function _getClusterIcon(cluster: MapCluster): MapMarkerIcon;
|
|
5
6
|
declare function zoomIn(): void;
|
|
6
7
|
declare function zoomOut(): void;
|
|
7
8
|
declare function fitToAllMarkers(): void;
|
|
@@ -11,6 +12,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
11
12
|
type: StringConstructor;
|
|
12
13
|
default: string;
|
|
13
14
|
};
|
|
15
|
+
/** Google Cloud Map ID (required for Advanced Markers) */
|
|
16
|
+
googleMapId: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
14
20
|
/** Array of markers or data objects */
|
|
15
21
|
items: {
|
|
16
22
|
type: PropType<MapMarker<unknown>[] | Record<string, unknown>[]>;
|
|
@@ -309,6 +315,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
309
315
|
getMarkers: () => MapMarker<unknown>[];
|
|
310
316
|
getVisibleMarkers: () => MapMarker<unknown>[];
|
|
311
317
|
getClusters: () => MapCluster<unknown>[];
|
|
318
|
+
getClusterIcon: typeof _getClusterIcon;
|
|
312
319
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
313
320
|
"marker-click": (payload: {
|
|
314
321
|
marker: MapMarker<unknown>;
|
|
@@ -339,6 +346,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
339
346
|
type: StringConstructor;
|
|
340
347
|
default: string;
|
|
341
348
|
};
|
|
349
|
+
/** Google Cloud Map ID (required for Advanced Markers) */
|
|
350
|
+
googleMapId: {
|
|
351
|
+
type: StringConstructor;
|
|
352
|
+
default: string;
|
|
353
|
+
};
|
|
342
354
|
/** Array of markers or data objects */
|
|
343
355
|
items: {
|
|
344
356
|
type: PropType<MapMarker<unknown>[] | Record<string, unknown>[]>;
|
|
@@ -537,6 +549,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
537
549
|
height: string;
|
|
538
550
|
apiKey: string;
|
|
539
551
|
zoom: number;
|
|
552
|
+
googleMapId: string;
|
|
540
553
|
autoTheme: boolean;
|
|
541
554
|
showDefaultZoomControls: boolean;
|
|
542
555
|
controlsPosition: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { LatLngLiteral, MapMarker, MapMarkerIcon, MapMarkerLabel } from '../../types/maps';
|
|
3
3
|
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
/** Geographic position */
|
|
6
6
|
position: {
|
|
7
7
|
type: PropType<LatLngLiteral>;
|
|
@@ -72,6 +72,26 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: boolean;
|
|
74
74
|
};
|
|
75
|
+
/** Use legacy Marker instead of AdvancedMarker (no Map ID required) */
|
|
76
|
+
legacy: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
/** Whether this marker represents a cluster */
|
|
81
|
+
cluster: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
/** Number of items in the cluster (required when cluster=true) */
|
|
86
|
+
clusterSize: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
/** Custom cluster color */
|
|
91
|
+
clusterColor: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
75
95
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
96
|
click: (payload: {
|
|
77
97
|
marker: MapMarker<unknown>;
|
|
@@ -170,6 +190,26 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
170
190
|
type: BooleanConstructor;
|
|
171
191
|
default: boolean;
|
|
172
192
|
};
|
|
193
|
+
/** Use legacy Marker instead of AdvancedMarker (no Map ID required) */
|
|
194
|
+
legacy: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
/** Whether this marker represents a cluster */
|
|
199
|
+
cluster: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
/** Number of items in the cluster (required when cluster=true) */
|
|
204
|
+
clusterSize: {
|
|
205
|
+
type: NumberConstructor;
|
|
206
|
+
default: number;
|
|
207
|
+
};
|
|
208
|
+
/** Custom cluster color */
|
|
209
|
+
clusterColor: {
|
|
210
|
+
type: StringConstructor;
|
|
211
|
+
default: undefined;
|
|
212
|
+
};
|
|
173
213
|
}>> & Readonly<{
|
|
174
214
|
onClick?: ((payload: {
|
|
175
215
|
marker: MapMarker<unknown>;
|
|
@@ -202,21 +242,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
202
242
|
size: "sm" | "md" | "lg";
|
|
203
243
|
data: Record<string, any>;
|
|
204
244
|
title: string;
|
|
205
|
-
color: string;
|
|
206
245
|
animation: "DROP" | "BOUNCE";
|
|
207
246
|
id: string | number;
|
|
247
|
+
color: string;
|
|
208
248
|
icon: MapMarkerIcon;
|
|
209
249
|
zIndex: number;
|
|
210
250
|
ready: boolean;
|
|
211
251
|
draggable: boolean;
|
|
212
252
|
visible: boolean;
|
|
213
253
|
pin: boolean;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
254
|
+
legacy: boolean;
|
|
255
|
+
cluster: boolean;
|
|
256
|
+
clusterSize: number;
|
|
257
|
+
clusterColor: string;
|
|
258
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
217
259
|
export default _default;
|
|
218
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
219
|
-
new (): {
|
|
220
|
-
$slots: S;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type SlideOverPosition = 'left' | 'right';
|
|
4
|
+
export type SlideOverSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
position: {
|
|
11
|
+
type: PropType<SlideOverPosition>;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (value: string) => boolean;
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
type: PropType<SlideOverSize>;
|
|
17
|
+
default: string;
|
|
18
|
+
validator: (value: string) => boolean;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
showBackdrop: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
preventAutoClose: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
compact: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
showCloseButton: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>, {
|
|
41
|
+
close: () => void;
|
|
42
|
+
contentRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
43
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
+
"update:modelValue": (value: boolean) => void;
|
|
45
|
+
close: () => void;
|
|
46
|
+
"close-requested": () => void;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
+
modelValue: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
position: {
|
|
53
|
+
type: PropType<SlideOverPosition>;
|
|
54
|
+
default: string;
|
|
55
|
+
validator: (value: string) => boolean;
|
|
56
|
+
};
|
|
57
|
+
size: {
|
|
58
|
+
type: PropType<SlideOverSize>;
|
|
59
|
+
default: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
61
|
+
};
|
|
62
|
+
title: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
showBackdrop: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
preventAutoClose: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
compact: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
showCloseButton: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
onClose?: (() => any) | undefined;
|
|
84
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
85
|
+
"onClose-requested"?: (() => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
compact: boolean;
|
|
88
|
+
size: SlideOverSize;
|
|
89
|
+
title: string;
|
|
90
|
+
position: SlideOverPosition;
|
|
91
|
+
showCloseButton: boolean;
|
|
92
|
+
showBackdrop: boolean;
|
|
93
|
+
preventAutoClose: boolean;
|
|
94
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
95
|
+
header?(_: {}): any;
|
|
96
|
+
default?(_: {}): any;
|
|
97
|
+
footer?(_: {}): any;
|
|
98
|
+
}>;
|
|
99
|
+
export default _default;
|
|
100
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
101
|
+
new (): {
|
|
102
|
+
$slots: S;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { PropType, Component } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface CommandPaletteCommand {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: Component;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface CommandPaletteCategory {
|
|
12
|
+
id: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
icon?: Component;
|
|
15
|
+
}
|
|
16
|
+
export interface CommandPaletteItem {
|
|
17
|
+
id?: string | number;
|
|
18
|
+
name?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
avatar?: string;
|
|
22
|
+
initials?: string;
|
|
23
|
+
icon?: Component;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
items: {
|
|
32
|
+
type: PropType<CommandPaletteItem[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
commands: {
|
|
36
|
+
type: PropType<CommandPaletteCommand[]>;
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
categories: {
|
|
40
|
+
type: PropType<CommandPaletteCategory[]>;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
placeholder: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
loading: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
showSearch: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
emptyText: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
activeCategory: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
itemsLabel: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
itemKey: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
}>, {
|
|
72
|
+
focus: () => void | undefined;
|
|
73
|
+
blur: () => void | undefined;
|
|
74
|
+
searchInputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
75
|
+
contentRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
76
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
|
+
"update:modelValue": (value: string) => void;
|
|
78
|
+
select: (item: CommandPaletteItem) => void;
|
|
79
|
+
command: (command: CommandPaletteCommand) => void;
|
|
80
|
+
"category-change": (categoryId: string) => void;
|
|
81
|
+
search: (query: string) => void;
|
|
82
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
83
|
+
modelValue: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
items: {
|
|
88
|
+
type: PropType<CommandPaletteItem[]>;
|
|
89
|
+
default: () => never[];
|
|
90
|
+
};
|
|
91
|
+
commands: {
|
|
92
|
+
type: PropType<CommandPaletteCommand[]>;
|
|
93
|
+
default: () => never[];
|
|
94
|
+
};
|
|
95
|
+
categories: {
|
|
96
|
+
type: PropType<CommandPaletteCategory[]>;
|
|
97
|
+
default: () => never[];
|
|
98
|
+
};
|
|
99
|
+
placeholder: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
loading: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
showSearch: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
emptyText: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
activeCategory: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
itemsLabel: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
itemKey: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
}>> & Readonly<{
|
|
128
|
+
onSelect?: ((item: CommandPaletteItem) => any) | undefined;
|
|
129
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
130
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
131
|
+
onCommand?: ((command: CommandPaletteCommand) => any) | undefined;
|
|
132
|
+
"onCategory-change"?: ((categoryId: string) => any) | undefined;
|
|
133
|
+
}>, {
|
|
134
|
+
placeholder: string;
|
|
135
|
+
loading: boolean;
|
|
136
|
+
modelValue: string;
|
|
137
|
+
items: CommandPaletteItem[];
|
|
138
|
+
itemKey: string;
|
|
139
|
+
commands: CommandPaletteCommand[];
|
|
140
|
+
categories: CommandPaletteCategory[];
|
|
141
|
+
showSearch: boolean;
|
|
142
|
+
emptyText: string;
|
|
143
|
+
activeCategory: string;
|
|
144
|
+
itemsLabel: string;
|
|
145
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
146
|
+
header?(_: {}): any;
|
|
147
|
+
"search-right"?(_: {}): any;
|
|
148
|
+
loading?(_: {}): any;
|
|
149
|
+
command?(_: {
|
|
150
|
+
command: CommandPaletteCommand;
|
|
151
|
+
active: boolean;
|
|
152
|
+
}): any;
|
|
153
|
+
item?(_: {
|
|
154
|
+
item: CommandPaletteItem;
|
|
155
|
+
active: boolean;
|
|
156
|
+
index: number;
|
|
157
|
+
}): any;
|
|
158
|
+
empty?(_: {}): any;
|
|
159
|
+
footer?(_: {}): any;
|
|
160
|
+
}>;
|
|
161
|
+
export default _default;
|
|
162
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
163
|
+
new (): {
|
|
164
|
+
$slots: S;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CommandPalette } from './UiCommandPalette';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ScreenSize } from '../../composables/useScreenSize';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* BreakpointWrapper provides screen size context to child components via Vue's provide/inject.
|
|
6
|
+
*
|
|
7
|
+
* Child components can use `useScreenSizeContext()` to access the current breakpoint
|
|
8
|
+
* and render responsive content accordingly.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```vue
|
|
12
|
+
* <BreakpointWrapper size="md">
|
|
13
|
+
* <ResponsiveComponent />
|
|
14
|
+
* </BreakpointWrapper>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
|
+
/**
|
|
19
|
+
* The screen size to provide to child components
|
|
20
|
+
*/
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<ScreenSize>;
|
|
23
|
+
required: true;
|
|
24
|
+
validator: (value: string) => boolean;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
/**
|
|
28
|
+
* The screen size to provide to child components
|
|
29
|
+
*/
|
|
30
|
+
size: {
|
|
31
|
+
type: PropType<ScreenSize>;
|
|
32
|
+
required: true;
|
|
33
|
+
validator: (value: string) => boolean;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default _default;
|