@robot-admin/naive-ui-components 0.11.4 → 0.11.5
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/CHANGELOG.md +6 -0
- package/README.md +35 -0
- package/README_EN.md +34 -0
- package/SECURITY.md +1 -0
- package/dist/C_Map.cjs +1 -1
- package/dist/C_Map.css +8 -8
- package/dist/C_Map.d.cts +2 -2
- package/dist/C_Map.d.ts +2 -2
- package/dist/C_Map.js +1 -1
- package/dist/C_Map2.cjs +1 -1
- package/dist/C_Map2.js +1 -1
- package/dist/C_Table.d.ts +1 -0
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +3 -3
- package/dist/constants4.d.ts +3 -3
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/images/layers-2x.png +0 -0
- package/dist/images/layers.png +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index10.vue.d.ts +2 -2
- package/dist/index11.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index12.vue.d.ts +1 -1
- package/dist/index13.vue.d.cts +1 -1
- package/dist/index14.vue.d.ts +6 -6
- package/dist/index15.vue.d.cts +6 -6
- package/dist/index16.vue.d.ts +1 -1
- package/dist/index17.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +2 -2
- package/dist/index18.vue.d.cts +2 -2
- package/dist/index19.vue.d.cts +2 -2
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +1 -1
- package/dist/index2.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index24.vue.d.cts +2 -2
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +3 -3
- package/dist/index4.vue.d.ts +3 -3
- package/dist/index7.vue.d.ts +4 -4
- package/dist/index8.vue.d.cts +4 -4
- package/dist/mapUtils.d.cts +135 -0
- package/dist/mapUtils.d.ts +135 -0
- package/dist/style.css +8 -8
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCropperCore.d.cts +7 -7
- package/dist/useCropperCore.d.ts +7 -7
- package/dist/useDraggableLayout.d.cts +3 -3
- package/dist/useDraggableLayout.d.ts +3 -3
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +3 -3
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSearchState.d.cts +6 -6
- package/dist/useSearchState.d.ts +6 -6
- package/dist/useSignatureHistory.d.cts +2 -2
- package/dist/useSignatureHistory.d.ts +2 -2
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/useTimeSelection.d.cts +2 -2
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.cts +7 -7
- package/dist/useTreeOperations.d.ts +7 -7
- package/dist/verification.d.cts +5 -5
- package/dist/verification.d.ts +5 -5
- package/package.json +2 -1
- package/dist/data.d.cts +0 -67
- package/dist/data.d.ts +0 -67
package/dist/index8.vue.d.cts
CHANGED
|
@@ -86,32 +86,32 @@ type __VLS_Slots = {} & {
|
|
|
86
86
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
87
87
|
scrollToBottom: () => void;
|
|
88
88
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
89
|
-
"load-more": () => any;
|
|
90
89
|
send: (content: string) => any;
|
|
91
90
|
"select-contact": (id: string) => any;
|
|
91
|
+
"load-more": () => any;
|
|
92
92
|
"image-preview": (url: string) => any;
|
|
93
93
|
"file-click": (msg: ChatMessage) => any;
|
|
94
94
|
"file-upload": () => any;
|
|
95
95
|
"emoji-click": () => any;
|
|
96
96
|
resend: (msg: ChatMessage) => any;
|
|
97
97
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
98
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
99
98
|
onSend?: ((content: string) => any) | undefined;
|
|
100
99
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
100
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
101
101
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
102
102
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
103
103
|
"onFile-upload"?: (() => any) | undefined;
|
|
104
104
|
"onEmoji-click"?: (() => any) | undefined;
|
|
105
105
|
onResend?: ((msg: ChatMessage) => any) | undefined;
|
|
106
106
|
}>, {
|
|
107
|
-
title: string;
|
|
108
107
|
placeholder: string;
|
|
109
|
-
|
|
108
|
+
title: string;
|
|
110
109
|
showContacts: boolean;
|
|
111
110
|
showTimestamp: boolean;
|
|
112
111
|
showSendBtn: boolean;
|
|
113
112
|
loadingHistory: boolean;
|
|
114
113
|
contacts: ChatContact[];
|
|
114
|
+
messages: ChatMessage[];
|
|
115
115
|
currentContactId: string;
|
|
116
116
|
selfAvatar: string;
|
|
117
117
|
selfName: string;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { LeafletMouseEvent, Map, TileLayerOptions } from "leaflet";
|
|
3
|
+
|
|
4
|
+
//#region src/components/C_Map/types.d.ts
|
|
5
|
+
type MapType = 'osm' | 'amap';
|
|
6
|
+
type MapCoordinate = [latitude: number, longitude: number];
|
|
7
|
+
type AMapPosition = [longitude: number, latitude: number];
|
|
8
|
+
interface MapMarker {
|
|
9
|
+
id?: string | number;
|
|
10
|
+
lat: number;
|
|
11
|
+
lng: number;
|
|
12
|
+
popup?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
interface MapTileConfig extends TileLayerOptions {
|
|
16
|
+
url?: string;
|
|
17
|
+
}
|
|
18
|
+
interface MapFitOptions {
|
|
19
|
+
maxZoom?: number;
|
|
20
|
+
padding?: [horizontal: number, vertical: number];
|
|
21
|
+
}
|
|
22
|
+
interface AMapMarkerEvent {
|
|
23
|
+
lnglat?: unknown;
|
|
24
|
+
originalEvent?: Event;
|
|
25
|
+
target?: unknown;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
interface AMapMarkerInstance {
|
|
29
|
+
getPosition(): unknown;
|
|
30
|
+
on(event: 'click', handler: (event: AMapMarkerEvent) => void): void;
|
|
31
|
+
setMap(map: AMapMapInstance | null): void;
|
|
32
|
+
}
|
|
33
|
+
interface AMapInfoWindowInstance {
|
|
34
|
+
close?(): void;
|
|
35
|
+
open(map: AMapMapInstance, position: unknown): void;
|
|
36
|
+
}
|
|
37
|
+
interface AMapMapInstance {
|
|
38
|
+
destroy(): void;
|
|
39
|
+
resize?(): void;
|
|
40
|
+
setCenter(center: AMapPosition): void;
|
|
41
|
+
setFitView?(overlays?: AMapMarkerInstance[], immediately?: boolean, avoid?: [number, number, number, number], maxZoom?: number): void;
|
|
42
|
+
setZoom(zoom: number): void;
|
|
43
|
+
}
|
|
44
|
+
interface AMapApi {
|
|
45
|
+
Map: new (container: HTMLElement, options: Record<string, unknown>) => AMapMapInstance;
|
|
46
|
+
Marker: new (options: Record<string, unknown>) => AMapMarkerInstance;
|
|
47
|
+
InfoWindow: new (options: Record<string, unknown>) => AMapInfoWindowInstance;
|
|
48
|
+
Pixel: new (x: number, y: number) => unknown;
|
|
49
|
+
}
|
|
50
|
+
type MapInstance = Map | AMapMapInstance;
|
|
51
|
+
type MapMarkerEvent = LeafletMouseEvent | AMapMarkerEvent | null;
|
|
52
|
+
interface MapProps {
|
|
53
|
+
/** 地图区域的无障碍名称。 */
|
|
54
|
+
ariaLabel?: string;
|
|
55
|
+
height?: string;
|
|
56
|
+
center?: MapCoordinate;
|
|
57
|
+
zoom?: number;
|
|
58
|
+
markers?: MapMarker[];
|
|
59
|
+
mapType?: MapType;
|
|
60
|
+
amapKey?: string;
|
|
61
|
+
amapLoadTimeout?: number;
|
|
62
|
+
amapOptions?: Record<string, unknown>;
|
|
63
|
+
tileConfig?: MapTileConfig;
|
|
64
|
+
zoomControl?: boolean;
|
|
65
|
+
preferCanvas?: boolean;
|
|
66
|
+
fitMarkersOnInit?: boolean;
|
|
67
|
+
}
|
|
68
|
+
type MapConfig = MapProps;
|
|
69
|
+
interface MapExpose {
|
|
70
|
+
fitToMarkers(options?: MapFitOptions): boolean;
|
|
71
|
+
getMap(): MapInstance | null;
|
|
72
|
+
refresh(): void;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/C_Map/index.vue.d.ts
|
|
76
|
+
declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
77
|
+
error: (error: Error) => any;
|
|
78
|
+
ready: (map: MapInstance) => any;
|
|
79
|
+
markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
|
|
80
|
+
}, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
|
|
81
|
+
onError?: ((error: Error) => any) | undefined;
|
|
82
|
+
onReady?: ((map: MapInstance) => any) | undefined;
|
|
83
|
+
onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
height: string;
|
|
86
|
+
center: MapCoordinate;
|
|
87
|
+
zoom: number;
|
|
88
|
+
ariaLabel: string;
|
|
89
|
+
mapType: MapType;
|
|
90
|
+
markers: MapMarker[];
|
|
91
|
+
amapKey: string;
|
|
92
|
+
amapLoadTimeout: number;
|
|
93
|
+
amapOptions: Record<string, unknown>;
|
|
94
|
+
tileConfig: MapTileConfig;
|
|
95
|
+
zoomControl: boolean;
|
|
96
|
+
preferCanvas: boolean;
|
|
97
|
+
fitMarkersOnInit: boolean;
|
|
98
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
99
|
+
declare const _default: typeof __VLS_export;
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/C_Map/data.d.ts
|
|
102
|
+
declare const MAP_TYPES: readonly [{
|
|
103
|
+
readonly label: "OpenStreetMap";
|
|
104
|
+
readonly value: "osm";
|
|
105
|
+
}, {
|
|
106
|
+
readonly label: "高德地图";
|
|
107
|
+
readonly value: "amap";
|
|
108
|
+
}];
|
|
109
|
+
declare const DEFAULT_MAP_CONFIG: Required<Pick<MapConfig, 'height' | 'center' | 'zoom' | 'mapType'>>;
|
|
110
|
+
declare const OSM_TILE_CONFIG: {
|
|
111
|
+
readonly url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
112
|
+
readonly attribution: "© OpenStreetMap contributors";
|
|
113
|
+
readonly maxZoom: 19;
|
|
114
|
+
readonly minZoom: 1;
|
|
115
|
+
readonly tileSize: 256;
|
|
116
|
+
readonly detectRetina: true;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/C_Map/mapUtils.d.ts
|
|
120
|
+
interface ResolvedTileConfig {
|
|
121
|
+
options: TileLayerOptions;
|
|
122
|
+
url: string;
|
|
123
|
+
}
|
|
124
|
+
/** 判断纬度、经度是否处于合法范围。 */
|
|
125
|
+
declare function isValidMapCoordinate(coordinate: MapCoordinate | readonly number[] | null | undefined): coordinate is MapCoordinate;
|
|
126
|
+
/** 将统一的 [纬度, 经度] 转为高德地图要求的 [经度, 纬度]。 */
|
|
127
|
+
declare function toAMapPosition(coordinate: MapCoordinate): AMapPosition;
|
|
128
|
+
/** 过滤非法标记,防止地图 SDK 因异常坐标中断整个渲染。 */
|
|
129
|
+
declare function getValidMapMarkers(markers: readonly MapMarker[]): MapMarker[];
|
|
130
|
+
/** 将缩放值限制在当前瓦片图层允许的范围内。 */
|
|
131
|
+
declare function normalizeMapZoom(zoom: number, minZoom?: 1, maxZoom?: 19): number;
|
|
132
|
+
/** 合并默认瓦片配置,并将 URL 与 Leaflet options 分离。 */
|
|
133
|
+
declare function resolveTileConfig(config?: MapTileConfig): ResolvedTileConfig;
|
|
134
|
+
//#endregion
|
|
135
|
+
export { MapType as C, MapTileConfig as S, MapFitOptions as _, toAMapPosition as a, MapMarkerEvent as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapExpose as g, MapCoordinate as h, resolveTileConfig as i, _default as l, MapConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapInstance as v, MapProps as x, MapMarker as y };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { LeafletMouseEvent, Map, TileLayerOptions } from "leaflet";
|
|
3
|
+
|
|
4
|
+
//#region src/components/C_Map/types.d.ts
|
|
5
|
+
type MapType = 'osm' | 'amap';
|
|
6
|
+
type MapCoordinate = [latitude: number, longitude: number];
|
|
7
|
+
type AMapPosition = [longitude: number, latitude: number];
|
|
8
|
+
interface MapMarker {
|
|
9
|
+
id?: string | number;
|
|
10
|
+
lat: number;
|
|
11
|
+
lng: number;
|
|
12
|
+
popup?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
interface MapTileConfig extends TileLayerOptions {
|
|
16
|
+
url?: string;
|
|
17
|
+
}
|
|
18
|
+
interface MapFitOptions {
|
|
19
|
+
maxZoom?: number;
|
|
20
|
+
padding?: [horizontal: number, vertical: number];
|
|
21
|
+
}
|
|
22
|
+
interface AMapMarkerEvent {
|
|
23
|
+
lnglat?: unknown;
|
|
24
|
+
originalEvent?: Event;
|
|
25
|
+
target?: unknown;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
interface AMapMarkerInstance {
|
|
29
|
+
getPosition(): unknown;
|
|
30
|
+
on(event: 'click', handler: (event: AMapMarkerEvent) => void): void;
|
|
31
|
+
setMap(map: AMapMapInstance | null): void;
|
|
32
|
+
}
|
|
33
|
+
interface AMapInfoWindowInstance {
|
|
34
|
+
close?(): void;
|
|
35
|
+
open(map: AMapMapInstance, position: unknown): void;
|
|
36
|
+
}
|
|
37
|
+
interface AMapMapInstance {
|
|
38
|
+
destroy(): void;
|
|
39
|
+
resize?(): void;
|
|
40
|
+
setCenter(center: AMapPosition): void;
|
|
41
|
+
setFitView?(overlays?: AMapMarkerInstance[], immediately?: boolean, avoid?: [number, number, number, number], maxZoom?: number): void;
|
|
42
|
+
setZoom(zoom: number): void;
|
|
43
|
+
}
|
|
44
|
+
interface AMapApi {
|
|
45
|
+
Map: new (container: HTMLElement, options: Record<string, unknown>) => AMapMapInstance;
|
|
46
|
+
Marker: new (options: Record<string, unknown>) => AMapMarkerInstance;
|
|
47
|
+
InfoWindow: new (options: Record<string, unknown>) => AMapInfoWindowInstance;
|
|
48
|
+
Pixel: new (x: number, y: number) => unknown;
|
|
49
|
+
}
|
|
50
|
+
type MapInstance = Map | AMapMapInstance;
|
|
51
|
+
type MapMarkerEvent = LeafletMouseEvent | AMapMarkerEvent | null;
|
|
52
|
+
interface MapProps {
|
|
53
|
+
/** 地图区域的无障碍名称。 */
|
|
54
|
+
ariaLabel?: string;
|
|
55
|
+
height?: string;
|
|
56
|
+
center?: MapCoordinate;
|
|
57
|
+
zoom?: number;
|
|
58
|
+
markers?: MapMarker[];
|
|
59
|
+
mapType?: MapType;
|
|
60
|
+
amapKey?: string;
|
|
61
|
+
amapLoadTimeout?: number;
|
|
62
|
+
amapOptions?: Record<string, unknown>;
|
|
63
|
+
tileConfig?: MapTileConfig;
|
|
64
|
+
zoomControl?: boolean;
|
|
65
|
+
preferCanvas?: boolean;
|
|
66
|
+
fitMarkersOnInit?: boolean;
|
|
67
|
+
}
|
|
68
|
+
type MapConfig = MapProps;
|
|
69
|
+
interface MapExpose {
|
|
70
|
+
fitToMarkers(options?: MapFitOptions): boolean;
|
|
71
|
+
getMap(): MapInstance | null;
|
|
72
|
+
refresh(): void;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/C_Map/index.vue.d.ts
|
|
76
|
+
declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
77
|
+
error: (error: Error) => any;
|
|
78
|
+
ready: (map: MapInstance) => any;
|
|
79
|
+
markerClick: (marker: MapMarker, event: MapMarkerEvent) => any;
|
|
80
|
+
}, string, vue.PublicProps, Readonly<MapProps> & Readonly<{
|
|
81
|
+
onError?: ((error: Error) => any) | undefined;
|
|
82
|
+
onReady?: ((map: MapInstance) => any) | undefined;
|
|
83
|
+
onMarkerClick?: ((marker: MapMarker, event: MapMarkerEvent) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
height: string;
|
|
86
|
+
center: MapCoordinate;
|
|
87
|
+
zoom: number;
|
|
88
|
+
ariaLabel: string;
|
|
89
|
+
mapType: MapType;
|
|
90
|
+
markers: MapMarker[];
|
|
91
|
+
amapKey: string;
|
|
92
|
+
amapLoadTimeout: number;
|
|
93
|
+
amapOptions: Record<string, unknown>;
|
|
94
|
+
tileConfig: MapTileConfig;
|
|
95
|
+
zoomControl: boolean;
|
|
96
|
+
preferCanvas: boolean;
|
|
97
|
+
fitMarkersOnInit: boolean;
|
|
98
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
99
|
+
declare const _default: typeof __VLS_export;
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/C_Map/data.d.ts
|
|
102
|
+
declare const MAP_TYPES: readonly [{
|
|
103
|
+
readonly label: "OpenStreetMap";
|
|
104
|
+
readonly value: "osm";
|
|
105
|
+
}, {
|
|
106
|
+
readonly label: "高德地图";
|
|
107
|
+
readonly value: "amap";
|
|
108
|
+
}];
|
|
109
|
+
declare const DEFAULT_MAP_CONFIG: Required<Pick<MapConfig, 'height' | 'center' | 'zoom' | 'mapType'>>;
|
|
110
|
+
declare const OSM_TILE_CONFIG: {
|
|
111
|
+
readonly url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
|
|
112
|
+
readonly attribution: "© OpenStreetMap contributors";
|
|
113
|
+
readonly maxZoom: 19;
|
|
114
|
+
readonly minZoom: 1;
|
|
115
|
+
readonly tileSize: 256;
|
|
116
|
+
readonly detectRetina: true;
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/C_Map/mapUtils.d.ts
|
|
120
|
+
interface ResolvedTileConfig {
|
|
121
|
+
options: TileLayerOptions;
|
|
122
|
+
url: string;
|
|
123
|
+
}
|
|
124
|
+
/** 判断纬度、经度是否处于合法范围。 */
|
|
125
|
+
declare function isValidMapCoordinate(coordinate: MapCoordinate | readonly number[] | null | undefined): coordinate is MapCoordinate;
|
|
126
|
+
/** 将统一的 [纬度, 经度] 转为高德地图要求的 [经度, 纬度]。 */
|
|
127
|
+
declare function toAMapPosition(coordinate: MapCoordinate): AMapPosition;
|
|
128
|
+
/** 过滤非法标记,防止地图 SDK 因异常坐标中断整个渲染。 */
|
|
129
|
+
declare function getValidMapMarkers(markers: readonly MapMarker[]): MapMarker[];
|
|
130
|
+
/** 将缩放值限制在当前瓦片图层允许的范围内。 */
|
|
131
|
+
declare function normalizeMapZoom(zoom: number, minZoom?: 1, maxZoom?: 19): number;
|
|
132
|
+
/** 合并默认瓦片配置,并将 URL 与 Leaflet options 分离。 */
|
|
133
|
+
declare function resolveTileConfig(config?: MapTileConfig): ResolvedTileConfig;
|
|
134
|
+
//#endregion
|
|
135
|
+
export { MapType as C, MapTileConfig as S, MapFitOptions as _, toAMapPosition as a, MapMarkerEvent as b, OSM_TILE_CONFIG as c, AMapMapInstance as d, AMapMarkerEvent as f, MapExpose as g, MapCoordinate as h, resolveTileConfig as i, _default as l, MapConfig as m, isValidMapCoordinate as n, DEFAULT_MAP_CONFIG as o, AMapPosition as p, normalizeMapZoom as r, MAP_TYPES as s, getValidMapMarkers as t, AMapApi as u, MapInstance as v, MapProps as x, MapMarker as y };
|
package/dist/style.css
CHANGED
|
@@ -8105,21 +8105,21 @@ to {
|
|
|
8105
8105
|
|
|
8106
8106
|
|
|
8107
8107
|
/* --- C_Map --- */
|
|
8108
|
-
/* unplugin-vue-components disabled */.c-map[data-v-
|
|
8108
|
+
/* unplugin-vue-components disabled */.c-map[data-v-5e6d0330] {
|
|
8109
8109
|
position: relative;
|
|
8110
8110
|
width: 100%;
|
|
8111
8111
|
min-height: 300px;
|
|
8112
|
-
background: #
|
|
8113
|
-
border-radius: 4px;
|
|
8112
|
+
background: var(--c-bg-surface, #fff);
|
|
8113
|
+
border-radius: var(--c-radius-sm, 4px);
|
|
8114
8114
|
overflow: hidden;
|
|
8115
8115
|
}
|
|
8116
|
-
.c-map .map-container[data-v-
|
|
8116
|
+
.c-map .map-container[data-v-5e6d0330] {
|
|
8117
8117
|
width: 100%;
|
|
8118
8118
|
height: 100%;
|
|
8119
|
-
border-radius:
|
|
8119
|
+
border-radius: inherit;
|
|
8120
8120
|
overflow: hidden;
|
|
8121
8121
|
}
|
|
8122
|
-
.c-map .map-loading[data-v-
|
|
8122
|
+
.c-map .map-loading[data-v-5e6d0330] {
|
|
8123
8123
|
position: absolute;
|
|
8124
8124
|
top: 0;
|
|
8125
8125
|
left: 0;
|
|
@@ -8128,8 +8128,8 @@ to {
|
|
|
8128
8128
|
display: flex;
|
|
8129
8129
|
align-items: center;
|
|
8130
8130
|
justify-content: center;
|
|
8131
|
-
background:
|
|
8132
|
-
border-radius:
|
|
8131
|
+
background: color-mix(in srgb, var(--c-bg-surface, #fff) 90%, transparent);
|
|
8132
|
+
border-radius: inherit;
|
|
8133
8133
|
z-index: 1000;
|
|
8134
8134
|
}
|
|
8135
8135
|
|
|
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
67
67
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
69
|
editable: boolean;
|
|
70
|
-
initialView: CalendarViewType;
|
|
71
70
|
events: CalendarEvent[];
|
|
71
|
+
initialView: CalendarViewType;
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
74
74
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -67,8 +67,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
|
|
|
67
67
|
"onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
69
|
editable: boolean;
|
|
70
|
-
initialView: CalendarViewType;
|
|
71
70
|
events: CalendarEvent[];
|
|
71
|
+
initialView: CalendarViewType;
|
|
72
72
|
showAddDialog: boolean;
|
|
73
73
|
showEditDialog: boolean;
|
|
74
74
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -52,29 +52,29 @@ interface ImageCropperEmits {
|
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
error: (error: Event) => any;
|
|
55
|
+
crop: (result: any) => any;
|
|
55
56
|
ready: () => any;
|
|
56
|
-
cancel: () => any;
|
|
57
57
|
confirm: (result: any) => any;
|
|
58
|
-
|
|
58
|
+
cancel: () => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Event) => any) | undefined;
|
|
61
|
+
onCrop?: ((result: any) => any) | undefined;
|
|
61
62
|
onReady?: (() => any) | undefined;
|
|
62
|
-
onCancel?: (() => any) | undefined;
|
|
63
63
|
onConfirm?: ((result: any) => any) | undefined;
|
|
64
|
-
|
|
64
|
+
onCancel?: (() => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
showToolbar: boolean;
|
|
69
|
-
showPreview: boolean;
|
|
70
|
-
modal: boolean;
|
|
71
68
|
src: string;
|
|
72
69
|
aspectRatio: number;
|
|
73
70
|
outputFormat: CropOutputFormat;
|
|
74
71
|
outputQuality: number;
|
|
75
72
|
maxOutputWidth: number;
|
|
76
73
|
maxOutputHeight: number;
|
|
74
|
+
showPreview: boolean;
|
|
75
|
+
showToolbar: boolean;
|
|
77
76
|
circular: boolean;
|
|
77
|
+
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
package/dist/useCropperCore.d.ts
CHANGED
|
@@ -52,29 +52,29 @@ interface ImageCropperEmits {
|
|
|
52
52
|
//#region src/components/C_ImageCropper/index.vue.d.ts
|
|
53
53
|
declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
54
54
|
error: (error: Event) => any;
|
|
55
|
+
crop: (result: any) => any;
|
|
55
56
|
ready: () => any;
|
|
56
|
-
cancel: () => any;
|
|
57
57
|
confirm: (result: any) => any;
|
|
58
|
-
|
|
58
|
+
cancel: () => any;
|
|
59
59
|
}, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
|
|
60
60
|
onError?: ((error: Event) => any) | undefined;
|
|
61
|
+
onCrop?: ((result: any) => any) | undefined;
|
|
61
62
|
onReady?: (() => any) | undefined;
|
|
62
|
-
onCancel?: (() => any) | undefined;
|
|
63
63
|
onConfirm?: ((result: any) => any) | undefined;
|
|
64
|
-
|
|
64
|
+
onCancel?: (() => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
disabled: boolean;
|
|
67
67
|
height: string | number;
|
|
68
|
-
showToolbar: boolean;
|
|
69
|
-
showPreview: boolean;
|
|
70
|
-
modal: boolean;
|
|
71
68
|
src: string;
|
|
72
69
|
aspectRatio: number;
|
|
73
70
|
outputFormat: CropOutputFormat;
|
|
74
71
|
outputQuality: number;
|
|
75
72
|
maxOutputWidth: number;
|
|
76
73
|
maxOutputHeight: number;
|
|
74
|
+
showPreview: boolean;
|
|
75
|
+
showToolbar: boolean;
|
|
77
76
|
circular: boolean;
|
|
77
|
+
modal: boolean;
|
|
78
78
|
modalTitle: string;
|
|
79
79
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
80
80
|
declare const _default: typeof __VLS_export;
|
|
@@ -116,12 +116,13 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
116
116
|
"onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
|
-
sort: boolean;
|
|
120
119
|
modelValue: DraggableItem[];
|
|
120
|
+
sort: boolean;
|
|
121
121
|
disabled: boolean;
|
|
122
|
+
delay: number;
|
|
123
|
+
direction: "vertical" | "horizontal";
|
|
122
124
|
group: string | GroupOptions;
|
|
123
125
|
animation: number;
|
|
124
|
-
delay: number;
|
|
125
126
|
handle: string;
|
|
126
127
|
showHandle: boolean;
|
|
127
128
|
ghostClass: string;
|
|
@@ -134,7 +135,6 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
134
135
|
emptyText: string;
|
|
135
136
|
swapThreshold: number;
|
|
136
137
|
invertSwap: boolean;
|
|
137
|
-
direction: "vertical" | "horizontal";
|
|
138
138
|
layout: LayoutMode;
|
|
139
139
|
gridColumns: number;
|
|
140
140
|
gridRows: number;
|
|
@@ -116,12 +116,13 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
116
116
|
"onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
|
|
117
117
|
"onList-change"?: ((list: DraggableItem[]) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
|
-
sort: boolean;
|
|
120
119
|
modelValue: DraggableItem[];
|
|
120
|
+
sort: boolean;
|
|
121
121
|
disabled: boolean;
|
|
122
|
+
delay: number;
|
|
123
|
+
direction: "vertical" | "horizontal";
|
|
122
124
|
group: string | GroupOptions;
|
|
123
125
|
animation: number;
|
|
124
|
-
delay: number;
|
|
125
126
|
handle: string;
|
|
126
127
|
showHandle: boolean;
|
|
127
128
|
ghostClass: string;
|
|
@@ -134,7 +135,6 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
|
|
|
134
135
|
emptyText: string;
|
|
135
136
|
swapThreshold: number;
|
|
136
137
|
invertSwap: boolean;
|
|
137
|
-
direction: "vertical" | "horizontal";
|
|
138
138
|
layout: LayoutMode;
|
|
139
139
|
gridColumns: number;
|
|
140
140
|
gridRows: number;
|
|
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
51
51
|
openDialog: () => Promise<void>;
|
|
52
52
|
closeDialog: () => void;
|
|
53
53
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
54
|
-
emptyText: string;
|
|
55
54
|
placeholder: string;
|
|
55
|
+
emptyText: string;
|
|
56
56
|
resultGroupTitle: string;
|
|
57
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
@@ -51,8 +51,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
51
51
|
openDialog: () => Promise<void>;
|
|
52
52
|
closeDialog: () => void;
|
|
53
53
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
54
|
-
emptyText: string;
|
|
55
54
|
placeholder: string;
|
|
55
|
+
emptyText: string;
|
|
56
56
|
resultGroupTitle: string;
|
|
57
57
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
@@ -79,19 +79,19 @@ type __VLS_Slots = {} & {
|
|
|
79
79
|
footer?: (props: typeof __VLS_5) => any;
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
82
|
"load-more": () => any;
|
|
83
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
87
|
"onLoad-more"?: (() => any) | undefined;
|
|
88
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
89
89
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
|
-
gap: number;
|
|
93
92
|
loading: boolean;
|
|
94
93
|
columns: number;
|
|
94
|
+
gap: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
infinite: boolean;
|
|
97
97
|
skeleton: boolean;
|
|
@@ -79,19 +79,19 @@ type __VLS_Slots = {} & {
|
|
|
79
79
|
footer?: (props: typeof __VLS_5) => any;
|
|
80
80
|
};
|
|
81
81
|
declare const __VLS_base: vue.DefineComponent<WaterFallProps, WaterFallExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
82
|
-
"item-click": (item: WaterFallItem, index: number) => any;
|
|
83
82
|
"load-more": () => any;
|
|
83
|
+
"item-click": (item: WaterFallItem, index: number) => any;
|
|
84
84
|
"image-loaded": (item: WaterFallItem) => any;
|
|
85
85
|
"image-error": (item: WaterFallItem) => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<WaterFallProps> & Readonly<{
|
|
87
|
-
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
88
87
|
"onLoad-more"?: (() => any) | undefined;
|
|
88
|
+
"onItem-click"?: ((item: WaterFallItem, index: number) => any) | undefined;
|
|
89
89
|
"onImage-loaded"?: ((item: WaterFallItem) => any) | undefined;
|
|
90
90
|
"onImage-error"?: ((item: WaterFallItem) => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
|
-
gap: number;
|
|
93
92
|
loading: boolean;
|
|
94
93
|
columns: number;
|
|
94
|
+
gap: number;
|
|
95
95
|
lazy: boolean;
|
|
96
96
|
infinite: boolean;
|
|
97
97
|
skeleton: boolean;
|
package/dist/useQRCode.d.cts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
53
|
label: string;
|
|
55
|
-
|
|
54
|
+
size: number;
|
|
56
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
58
|
+
showLabel: boolean;
|
|
59
|
+
margin: number;
|
|
57
60
|
bgColor: string;
|
|
58
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
|
-
margin: number;
|
|
60
62
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
|
-
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -50,16 +50,16 @@ declare const __VLS_export: vue.DefineComponent<Props, QRCodeExpose, {}, {}, {},
|
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
51
|
onError?: ((error: Error) => any) | undefined;
|
|
52
52
|
}>, {
|
|
53
|
-
size: number;
|
|
54
53
|
label: string;
|
|
55
|
-
|
|
54
|
+
size: number;
|
|
56
55
|
color: string;
|
|
56
|
+
mode: RenderMode;
|
|
57
|
+
showBorder: boolean;
|
|
58
|
+
showLabel: boolean;
|
|
59
|
+
margin: number;
|
|
57
60
|
bgColor: string;
|
|
58
61
|
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
59
|
-
margin: number;
|
|
60
62
|
logo: LogoOptions;
|
|
61
|
-
showBorder: boolean;
|
|
62
|
-
showLabel: boolean;
|
|
63
63
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
//#endregion
|
|
@@ -163,7 +163,6 @@ declare function useSearchState(emits: {
|
|
|
163
163
|
attrs?: Record<string, unknown> | undefined;
|
|
164
164
|
rules?: {
|
|
165
165
|
type?: async_validator0.RuleType | undefined;
|
|
166
|
-
required?: boolean | undefined;
|
|
167
166
|
options?: {
|
|
168
167
|
suppressWarning?: boolean | undefined;
|
|
169
168
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -220,8 +219,9 @@ declare function useSearchState(emits: {
|
|
|
220
219
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
221
220
|
} | undefined;
|
|
222
221
|
pattern?: (RegExp | string) | undefined;
|
|
223
|
-
|
|
222
|
+
required?: boolean | undefined;
|
|
224
223
|
max?: number | undefined;
|
|
224
|
+
min?: number | undefined;
|
|
225
225
|
len?: number | undefined;
|
|
226
226
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
227
227
|
whitespace?: boolean | undefined;
|
|
@@ -394,7 +394,6 @@ declare function useSearchState(emits: {
|
|
|
394
394
|
attrs?: Record<string, unknown> | undefined;
|
|
395
395
|
rules?: {
|
|
396
396
|
type?: async_validator0.RuleType | undefined;
|
|
397
|
-
required?: boolean | undefined;
|
|
398
397
|
options?: {
|
|
399
398
|
suppressWarning?: boolean | undefined;
|
|
400
399
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -451,8 +450,9 @@ declare function useSearchState(emits: {
|
|
|
451
450
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
452
451
|
} | undefined;
|
|
453
452
|
pattern?: (RegExp | string) | undefined;
|
|
454
|
-
|
|
453
|
+
required?: boolean | undefined;
|
|
455
454
|
max?: number | undefined;
|
|
455
|
+
min?: number | undefined;
|
|
456
456
|
len?: number | undefined;
|
|
457
457
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
458
458
|
whitespace?: boolean | undefined;
|
|
@@ -637,7 +637,6 @@ declare function useSearchState(emits: {
|
|
|
637
637
|
attrs?: Record<string, unknown> | undefined;
|
|
638
638
|
rules?: {
|
|
639
639
|
type?: async_validator0.RuleType | undefined;
|
|
640
|
-
required?: boolean | undefined;
|
|
641
640
|
options?: {
|
|
642
641
|
suppressWarning?: boolean | undefined;
|
|
643
642
|
suppressValidatorError?: boolean | undefined;
|
|
@@ -694,8 +693,9 @@ declare function useSearchState(emits: {
|
|
|
694
693
|
error?: ((rule: async_validator0.InternalRuleItem, message: string) => async_validator0.ValidateError) | undefined;
|
|
695
694
|
} | undefined;
|
|
696
695
|
pattern?: (RegExp | string) | undefined;
|
|
697
|
-
|
|
696
|
+
required?: boolean | undefined;
|
|
698
697
|
max?: number | undefined;
|
|
698
|
+
min?: number | undefined;
|
|
699
699
|
len?: number | undefined;
|
|
700
700
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
701
701
|
whitespace?: boolean | undefined;
|