@squirkle-ui/map 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/styles.css +80 -0
- package/dist/types/SqMap.vue.d.ts +535 -0
- package/dist/types/adapters.d.ts +44 -0
- package/dist/types/cluster.d.ts +40 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/markers.d.ts +26 -0
- package/dist/vue2/index.cjs +459 -0
- package/dist/vue2/index.cjs.map +1 -0
- package/dist/vue2/index.mjs +437 -0
- package/dist/vue2/index.mjs.map +1 -0
- package/dist/vue3/index.cjs +522 -0
- package/dist/vue3/index.cjs.map +1 -0
- package/dist/vue3/index.mjs +500 -0
- package/dist/vue3/index.mjs.map +1 -0
- package/dist/vue3/styles.css +80 -0
- package/package.json +75 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 KheangLov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @squirkle-ui/map
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vector (MapLibre) and raster (Leaflet) squircle maps with custom markers and clustering for Squirkle UI.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i @squirkle-ui/map @squirkle-ui/ui maplibre-gl
|
|
7
|
+
```
|
|
8
|
+
```ts
|
|
9
|
+
import { SqMap } from '@squirkle-ui/map' // Vue 3
|
|
10
|
+
// import { SqMap } from '@squirkle-ui/map/vue2' // Vue 2.7
|
|
11
|
+
import '@squirkle-ui/map/styles.css'
|
|
12
|
+
```
|
|
13
|
+
Peer dependencies: `vue`, `@squirkle-ui/ui`, and `maplibre-gl` (vector, default) or `leaflet` (`engine="raster"`).
|
|
14
|
+
|
|
15
|
+
MapLibre loads a worker file that bundlers don't copy on their own. In Vite apps, register it once:
|
|
16
|
+
```ts
|
|
17
|
+
import { setMapWorkerUrl } from '@squirkle-ui/map'
|
|
18
|
+
import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?url'
|
|
19
|
+
setMapWorkerUrl(workerUrl)
|
|
20
|
+
```
|
|
21
|
+
The Nuxt module does this automatically.
|
|
22
|
+
|
|
23
|
+
Part of [Squirkle UI](https://github.com/KheangLov/squirkle-ui) · MIT License
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
.sq-map { position: relative; overflow: hidden; isolation: isolate;
|
|
3
|
+
}
|
|
4
|
+
/* Two classes: MapLibre's lazily loaded CSS sets `.maplibregl-map { position: relative }` and would collapse the canvas to 0 px. */
|
|
5
|
+
.sq-map .sq-map__canvas { position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: var(--sq-surface-variant); font: inherit;
|
|
6
|
+
}
|
|
7
|
+
.sq-map__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1;
|
|
8
|
+
}
|
|
9
|
+
.sq-map__controls { position: absolute; top: var(--sq-space-3); right: var(--sq-space-3); z-index: 500; display: flex; flex-direction: column; gap: 6px;
|
|
10
|
+
}
|
|
11
|
+
.sq-map__templates { display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* markers */
|
|
15
|
+
.sq-map-marker { --sq-pin: var(--sq-primary); --sq-pin-size: 30px; position: relative; cursor: pointer; outline: none; transition: transform var(--sq-duration-fast) var(--sq-ease-spring);
|
|
16
|
+
}
|
|
17
|
+
.sq-map-marker:hover, .sq-map-marker:focus-visible { transform: scale(1.12); z-index: 2;
|
|
18
|
+
}
|
|
19
|
+
.sq-map-marker__body { display: flex; align-items: center; justify-content: center; width: var(--sq-pin-size); height: var(--sq-pin-size); background: var(--sq-pin); color: #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 0.28), inset 0 0 0 2px rgb(255 255 255 / 0.92);
|
|
20
|
+
}
|
|
21
|
+
.sq-map-marker__content { display: flex; align-items: center; justify-content: center; font: 700 calc(var(--sq-pin-size) * 0.38) / 1 var(--sq-font);
|
|
22
|
+
}
|
|
23
|
+
.sq-map-marker__content svg { width: calc(var(--sq-pin-size) * 0.52); height: calc(var(--sq-pin-size) * 0.52); fill: currentColor;
|
|
24
|
+
}
|
|
25
|
+
.sq-map-marker__content--empty::after { content: ''; display: block; width: 30%; height: 30%; min-width: 8px; min-height: 8px; border-radius: 30%; background: #fff;
|
|
26
|
+
}
|
|
27
|
+
.sq-map-marker--pin .sq-map-marker__body { border-radius: 38% 38% 38% 10%; transform: rotate(-45deg); margin-bottom: calc(var(--sq-pin-size) * 0.2);
|
|
28
|
+
}
|
|
29
|
+
.sq-map-marker--pin .sq-map-marker__content { transform: rotate(45deg);
|
|
30
|
+
}
|
|
31
|
+
.sq-map-marker--squircle .sq-map-marker__body { border-radius: 32%;
|
|
32
|
+
}
|
|
33
|
+
.sq-map-marker--avatar .sq-map-marker__body { border-radius: 34%; overflow: hidden; padding: 2px; background: #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 0.28), 0 0 0 2px var(--sq-pin);
|
|
34
|
+
}
|
|
35
|
+
.sq-map-marker--avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 30%;
|
|
36
|
+
}
|
|
37
|
+
.sq-map-marker--dot .sq-map-marker__body { width: calc(var(--sq-pin-size) * 0.5); height: calc(var(--sq-pin-size) * 0.5); border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 7px color-mix(in srgb, var(--sq-pin) 28%, transparent), 0 2px 6px rgb(0 0 0 / 0.3);
|
|
38
|
+
}
|
|
39
|
+
@supports (corner-shape: squircle) {
|
|
40
|
+
.sq-map-marker--pin .sq-map-marker__body { border-radius: 58% 58% 58% 14%; corner-shape: squircle;
|
|
41
|
+
}
|
|
42
|
+
.sq-map-marker--squircle .sq-map-marker__body, .sq-map-marker--avatar .sq-map-marker__body, .sq-map-marker--avatar img, .sq-map-cluster { corner-shape: squircle;
|
|
43
|
+
}
|
|
44
|
+
.sq-map-marker--squircle .sq-map-marker__body, .sq-map-marker--avatar .sq-map-marker__body { border-radius: 50%;
|
|
45
|
+
}
|
|
46
|
+
.sq-map-marker--avatar img { border-radius: 46%;
|
|
47
|
+
}
|
|
48
|
+
.sq-map-cluster { border-radius: 50%;
|
|
49
|
+
}
|
|
50
|
+
.sq-map__canvas { corner-shape: inherit;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.sq-map-cluster { --sq-cluster-size: 40px; display: flex; align-items: center; justify-content: center; width: var(--sq-cluster-size); height: var(--sq-cluster-size); border-radius: 34%; background: var(--sq-pin); color: #fff; font: 700 13px/1 var(--sq-font); cursor: pointer; outline: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--sq-pin) 26%, transparent), 0 4px 12px rgb(0 0 0 / 0.25); transition: transform var(--sq-duration-fast) var(--sq-ease-spring);
|
|
54
|
+
}
|
|
55
|
+
.sq-map-cluster:hover, .sq-map-cluster:focus-visible { transform: scale(1.1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Leaflet marker anchoring (MapLibre anchors natively) */
|
|
59
|
+
.sq-map__marker-wrap { background: none; border: 0;
|
|
60
|
+
}
|
|
61
|
+
.sq-map__anchor { position: absolute; left: 0; top: 0;
|
|
62
|
+
}
|
|
63
|
+
.sq-map__anchor--center { transform: translate(-50%, -50%);
|
|
64
|
+
}
|
|
65
|
+
.sq-map__anchor--bottom { transform: translate(-50%, -100%);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* popups (both engines) */
|
|
69
|
+
.sq-map .maplibregl-popup-content, .sq-map .leaflet-popup-content-wrapper { border-radius: var(--sq-radius-lg); background: var(--sq-surface-raised); color: var(--sq-on-surface); box-shadow: var(--sq-elevation-3); padding: 10px 14px; font: var(--sq-text-sm) / 1.5 var(--sq-font);
|
|
70
|
+
}
|
|
71
|
+
.sq-map .leaflet-popup-content { margin: 0;
|
|
72
|
+
}
|
|
73
|
+
.sq-map .maplibregl-popup-tip { border-top-color: var(--sq-surface-raised) !important; border-bottom-color: var(--sq-surface-raised) !important;
|
|
74
|
+
}
|
|
75
|
+
.sq-map .leaflet-popup-tip { background: var(--sq-surface-raised);
|
|
76
|
+
}
|
|
77
|
+
.sq-map .maplibregl-ctrl-attrib, .sq-map .leaflet-control-attribution { border-radius: var(--sq-radius-sm); font-size: 10px; background: color-mix(in srgb, var(--sq-surface) 82%, transparent); color: var(--sq-muted);
|
|
78
|
+
}
|
|
79
|
+
.sq-map .maplibregl-ctrl-attrib a, .sq-map .leaflet-control-attribution a { color: var(--sq-primary);
|
|
80
|
+
}
|
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { radiusValue } from '@squirkle-ui/ui';
|
|
3
|
+
import { type LatLng, type MapAdapter } from './adapters';
|
|
4
|
+
import { type MapMarker } from './markers';
|
|
5
|
+
import { type ClusterOptions } from './cluster';
|
|
6
|
+
/**
|
|
7
|
+
* Squircle map. `engine="vector"` (default) renders vector tiles with MapLibre GL; `engine="raster"` uses Leaflet.
|
|
8
|
+
* Both are optional peer dependencies loaded on mount, so the component is SSR-safe.
|
|
9
|
+
* Markers: shapes pin / dot / squircle / avatar, icons, labels, or a `#marker` slot. `cluster` groups dense markers.
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
engine: {
|
|
15
|
+
type: PropType<"vector" | "raster">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** Vector style: `auto` (follows light/dark), a preset name (positron, voyager, dark-matter, liberty, bright, openfreemap-dark, fiord), a style URL or a style object. */
|
|
19
|
+
mapStyle: {
|
|
20
|
+
type: PropType<string | object>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
center: {
|
|
24
|
+
type: PropType<LatLng>;
|
|
25
|
+
default: () => number[];
|
|
26
|
+
};
|
|
27
|
+
zoom: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
markers: {
|
|
32
|
+
type: PropType<MapMarker[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
/** Defaults merged into every marker (shape, color, size, icon…). */
|
|
36
|
+
markerDefaults: {
|
|
37
|
+
type: PropType<Partial<MapMarker>>;
|
|
38
|
+
default: () => {};
|
|
39
|
+
};
|
|
40
|
+
cluster: {
|
|
41
|
+
type: PropType<boolean | ClusterOptions>;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
clusterColor: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/** Raster engine tile template. */
|
|
49
|
+
tileUrl: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
attribution: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
height: {
|
|
58
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
rounded: {
|
|
62
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
fitMarkers: BooleanConstructor;
|
|
66
|
+
scrollWheelZoom: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
label: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
}>, {
|
|
75
|
+
el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
76
|
+
adapter: import("vue").ShallowRef<MapAdapter | null, MapAdapter | null>;
|
|
77
|
+
ready: import("vue").Ref<boolean, boolean>;
|
|
78
|
+
keyOf: (m: MapMarker, i: number) => string;
|
|
79
|
+
fit: () => void | undefined;
|
|
80
|
+
toUnit: (v: string | number | undefined | null, unit?: string) => string | undefined;
|
|
81
|
+
radiusValue: typeof radiusValue;
|
|
82
|
+
has: (n: string) => boolean;
|
|
83
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "error" | "update:center" | "update:zoom" | "marker-click" | "cluster-click" | "ready")[], "click" | "error" | "update:center" | "update:zoom" | "marker-click" | "cluster-click" | "ready", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
engine: {
|
|
85
|
+
type: PropType<"vector" | "raster">;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
/** Vector style: `auto` (follows light/dark), a preset name (positron, voyager, dark-matter, liberty, bright, openfreemap-dark, fiord), a style URL or a style object. */
|
|
89
|
+
mapStyle: {
|
|
90
|
+
type: PropType<string | object>;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
center: {
|
|
94
|
+
type: PropType<LatLng>;
|
|
95
|
+
default: () => number[];
|
|
96
|
+
};
|
|
97
|
+
zoom: {
|
|
98
|
+
type: NumberConstructor;
|
|
99
|
+
default: number;
|
|
100
|
+
};
|
|
101
|
+
markers: {
|
|
102
|
+
type: PropType<MapMarker[]>;
|
|
103
|
+
default: () => never[];
|
|
104
|
+
};
|
|
105
|
+
/** Defaults merged into every marker (shape, color, size, icon…). */
|
|
106
|
+
markerDefaults: {
|
|
107
|
+
type: PropType<Partial<MapMarker>>;
|
|
108
|
+
default: () => {};
|
|
109
|
+
};
|
|
110
|
+
cluster: {
|
|
111
|
+
type: PropType<boolean | ClusterOptions>;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
clusterColor: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
/** Raster engine tile template. */
|
|
119
|
+
tileUrl: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
attribution: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
height: {
|
|
128
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
129
|
+
default: number;
|
|
130
|
+
};
|
|
131
|
+
rounded: {
|
|
132
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
fitMarkers: BooleanConstructor;
|
|
136
|
+
scrollWheelZoom: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
label: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
}>> & Readonly<{
|
|
145
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
"onUpdate:center"?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
"onUpdate:zoom"?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
"onMarker-click"?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
"onCluster-click"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
}>, {
|
|
153
|
+
cluster: boolean | ClusterOptions;
|
|
154
|
+
center: LatLng;
|
|
155
|
+
engine: "vector" | "raster";
|
|
156
|
+
zoom: number;
|
|
157
|
+
scrollWheelZoom: boolean;
|
|
158
|
+
attribution: string;
|
|
159
|
+
label: string;
|
|
160
|
+
rounded: string | number;
|
|
161
|
+
fitMarkers: boolean;
|
|
162
|
+
mapStyle: string | object;
|
|
163
|
+
markers: MapMarker[];
|
|
164
|
+
markerDefaults: Partial<MapMarker>;
|
|
165
|
+
clusterColor: string;
|
|
166
|
+
tileUrl: string;
|
|
167
|
+
height: string | number;
|
|
168
|
+
}, {}, {
|
|
169
|
+
SqBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
170
|
+
text: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
variant: {
|
|
175
|
+
type: PropType<import("@squirkle-ui/ui").Variant>;
|
|
176
|
+
default: import("@squirkle-ui/ui").Variant;
|
|
177
|
+
};
|
|
178
|
+
color: {
|
|
179
|
+
default: string;
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
};
|
|
182
|
+
size: {
|
|
183
|
+
type: PropType<import("@squirkle-ui/ui").Size>;
|
|
184
|
+
default: string;
|
|
185
|
+
};
|
|
186
|
+
rounded: {
|
|
187
|
+
type: PropType<import("@squirkle-ui/ui").Rounded>;
|
|
188
|
+
default: undefined;
|
|
189
|
+
};
|
|
190
|
+
icon: {
|
|
191
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
192
|
+
default: undefined;
|
|
193
|
+
};
|
|
194
|
+
prependIcon: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
default: undefined;
|
|
197
|
+
};
|
|
198
|
+
appendIcon: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
202
|
+
block: BooleanConstructor;
|
|
203
|
+
loading: BooleanConstructor;
|
|
204
|
+
disabled: BooleanConstructor;
|
|
205
|
+
active: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: undefined;
|
|
208
|
+
};
|
|
209
|
+
elevation: {
|
|
210
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
211
|
+
default: undefined;
|
|
212
|
+
};
|
|
213
|
+
href: {
|
|
214
|
+
type: StringConstructor;
|
|
215
|
+
default: undefined;
|
|
216
|
+
};
|
|
217
|
+
to: {
|
|
218
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
219
|
+
default: undefined;
|
|
220
|
+
};
|
|
221
|
+
type: {
|
|
222
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
value: {
|
|
226
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
227
|
+
default: undefined;
|
|
228
|
+
};
|
|
229
|
+
}>, {
|
|
230
|
+
tag: import("vue").ComputedRef<"button" | "router-link" | "a">;
|
|
231
|
+
style: import("vue").ComputedRef<{
|
|
232
|
+
"--sq-shadow"?: undefined;
|
|
233
|
+
"--sq-shadow-filter"?: undefined;
|
|
234
|
+
"--sq-r": string;
|
|
235
|
+
} | {
|
|
236
|
+
"--sq-shadow": string;
|
|
237
|
+
"--sq-shadow-filter": string;
|
|
238
|
+
"--sq-r": string;
|
|
239
|
+
}>;
|
|
240
|
+
classes: import("vue").ComputedRef<(string | {
|
|
241
|
+
"sq-btn--icon": boolean;
|
|
242
|
+
"sq-btn--block": boolean;
|
|
243
|
+
"sq-btn--loading": boolean;
|
|
244
|
+
"sq-btn--active": boolean;
|
|
245
|
+
"sq-disabled": boolean;
|
|
246
|
+
})[]>;
|
|
247
|
+
iconName: import("vue").ComputedRef<string | undefined>;
|
|
248
|
+
isActive: import("vue").ComputedRef<boolean>;
|
|
249
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
|
250
|
+
toggleable: boolean;
|
|
251
|
+
onClick: (e: MouseEvent) => void;
|
|
252
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
253
|
+
text: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
default: undefined;
|
|
256
|
+
};
|
|
257
|
+
variant: {
|
|
258
|
+
type: PropType<import("@squirkle-ui/ui").Variant>;
|
|
259
|
+
default: import("@squirkle-ui/ui").Variant;
|
|
260
|
+
};
|
|
261
|
+
color: {
|
|
262
|
+
default: string;
|
|
263
|
+
type: StringConstructor;
|
|
264
|
+
};
|
|
265
|
+
size: {
|
|
266
|
+
type: PropType<import("@squirkle-ui/ui").Size>;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
269
|
+
rounded: {
|
|
270
|
+
type: PropType<import("@squirkle-ui/ui").Rounded>;
|
|
271
|
+
default: undefined;
|
|
272
|
+
};
|
|
273
|
+
icon: {
|
|
274
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
275
|
+
default: undefined;
|
|
276
|
+
};
|
|
277
|
+
prependIcon: {
|
|
278
|
+
type: StringConstructor;
|
|
279
|
+
default: undefined;
|
|
280
|
+
};
|
|
281
|
+
appendIcon: {
|
|
282
|
+
type: StringConstructor;
|
|
283
|
+
default: undefined;
|
|
284
|
+
};
|
|
285
|
+
block: BooleanConstructor;
|
|
286
|
+
loading: BooleanConstructor;
|
|
287
|
+
disabled: BooleanConstructor;
|
|
288
|
+
active: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: undefined;
|
|
291
|
+
};
|
|
292
|
+
elevation: {
|
|
293
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
294
|
+
default: undefined;
|
|
295
|
+
};
|
|
296
|
+
href: {
|
|
297
|
+
type: StringConstructor;
|
|
298
|
+
default: undefined;
|
|
299
|
+
};
|
|
300
|
+
to: {
|
|
301
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
302
|
+
default: undefined;
|
|
303
|
+
};
|
|
304
|
+
type: {
|
|
305
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
306
|
+
default: string;
|
|
307
|
+
};
|
|
308
|
+
value: {
|
|
309
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
310
|
+
default: undefined;
|
|
311
|
+
};
|
|
312
|
+
}>> & Readonly<{
|
|
313
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
314
|
+
}>, {
|
|
315
|
+
loading: boolean;
|
|
316
|
+
icon: string | boolean;
|
|
317
|
+
type: "button" | "submit" | "reset";
|
|
318
|
+
active: boolean;
|
|
319
|
+
text: string;
|
|
320
|
+
size: import("@squirkle-ui/ui").Size;
|
|
321
|
+
color: string;
|
|
322
|
+
rounded: import("@squirkle-ui/ui").Rounded;
|
|
323
|
+
block: boolean;
|
|
324
|
+
disabled: boolean;
|
|
325
|
+
variant: import("@squirkle-ui/ui").Variant;
|
|
326
|
+
prependIcon: string;
|
|
327
|
+
appendIcon: string;
|
|
328
|
+
elevation: string | number;
|
|
329
|
+
href: string;
|
|
330
|
+
to: string | Record<string, any>;
|
|
331
|
+
value: string | number | boolean | Record<string, any>;
|
|
332
|
+
}, {}, {
|
|
333
|
+
SqShape: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
334
|
+
watchKey: {
|
|
335
|
+
type: (ObjectConstructor | BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
336
|
+
default: undefined;
|
|
337
|
+
};
|
|
338
|
+
clip: BooleanConstructor;
|
|
339
|
+
}>, {
|
|
340
|
+
active: import("vue").Ref<boolean, boolean>;
|
|
341
|
+
w: import("vue").Ref<number, number>;
|
|
342
|
+
h: import("vue").Ref<number, number>;
|
|
343
|
+
bw: import("vue").Ref<number, number>;
|
|
344
|
+
d: import("vue").ComputedRef<string>;
|
|
345
|
+
strokeD: import("vue").ComputedRef<string>;
|
|
346
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
347
|
+
watchKey: {
|
|
348
|
+
type: (ObjectConstructor | BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
349
|
+
default: undefined;
|
|
350
|
+
};
|
|
351
|
+
clip: BooleanConstructor;
|
|
352
|
+
}>> & Readonly<{}>, {
|
|
353
|
+
clip: boolean;
|
|
354
|
+
watchKey: string | number | boolean | unknown[] | Record<string, any>;
|
|
355
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
356
|
+
SqIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
357
|
+
icon: {
|
|
358
|
+
type: StringConstructor;
|
|
359
|
+
default: undefined;
|
|
360
|
+
};
|
|
361
|
+
size: {
|
|
362
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
color: {
|
|
366
|
+
type: StringConstructor;
|
|
367
|
+
default: undefined;
|
|
368
|
+
};
|
|
369
|
+
label: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
default: undefined;
|
|
372
|
+
};
|
|
373
|
+
clickable: BooleanConstructor;
|
|
374
|
+
}>, {
|
|
375
|
+
resolved: import("vue").ComputedRef<import("@squirkle-ui/ui/dist/types/icons").ResolvedIcon>;
|
|
376
|
+
style: import("vue").ComputedRef<{
|
|
377
|
+
"--sq-icon-size": string;
|
|
378
|
+
color: string | undefined;
|
|
379
|
+
}>;
|
|
380
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
381
|
+
icon: {
|
|
382
|
+
type: StringConstructor;
|
|
383
|
+
default: undefined;
|
|
384
|
+
};
|
|
385
|
+
size: {
|
|
386
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
387
|
+
default: string;
|
|
388
|
+
};
|
|
389
|
+
color: {
|
|
390
|
+
type: StringConstructor;
|
|
391
|
+
default: undefined;
|
|
392
|
+
};
|
|
393
|
+
label: {
|
|
394
|
+
type: StringConstructor;
|
|
395
|
+
default: undefined;
|
|
396
|
+
};
|
|
397
|
+
clickable: BooleanConstructor;
|
|
398
|
+
}>> & Readonly<{}>, {
|
|
399
|
+
label: string;
|
|
400
|
+
icon: string;
|
|
401
|
+
clickable: boolean;
|
|
402
|
+
size: string | number;
|
|
403
|
+
color: string;
|
|
404
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
405
|
+
SqProgressCircular: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
406
|
+
modelValue: {
|
|
407
|
+
type: NumberConstructor;
|
|
408
|
+
default: number;
|
|
409
|
+
};
|
|
410
|
+
indeterminate: BooleanConstructor;
|
|
411
|
+
size: {
|
|
412
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
413
|
+
default: number;
|
|
414
|
+
};
|
|
415
|
+
width: {
|
|
416
|
+
type: NumberConstructor;
|
|
417
|
+
default: number;
|
|
418
|
+
};
|
|
419
|
+
color: {
|
|
420
|
+
type: StringConstructor;
|
|
421
|
+
default: string;
|
|
422
|
+
};
|
|
423
|
+
}>, {
|
|
424
|
+
r: import("vue").ComputedRef<number>;
|
|
425
|
+
circ: import("vue").ComputedRef<number>;
|
|
426
|
+
offset: import("vue").ComputedRef<number>;
|
|
427
|
+
style: import("vue").ComputedRef<{
|
|
428
|
+
width: string | undefined;
|
|
429
|
+
height: string | undefined;
|
|
430
|
+
color: string | undefined;
|
|
431
|
+
}>;
|
|
432
|
+
has: (n: string) => boolean;
|
|
433
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
434
|
+
modelValue: {
|
|
435
|
+
type: NumberConstructor;
|
|
436
|
+
default: number;
|
|
437
|
+
};
|
|
438
|
+
indeterminate: BooleanConstructor;
|
|
439
|
+
size: {
|
|
440
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
441
|
+
default: number;
|
|
442
|
+
};
|
|
443
|
+
width: {
|
|
444
|
+
type: NumberConstructor;
|
|
445
|
+
default: number;
|
|
446
|
+
};
|
|
447
|
+
color: {
|
|
448
|
+
type: StringConstructor;
|
|
449
|
+
default: string;
|
|
450
|
+
};
|
|
451
|
+
}>> & Readonly<{}>, {
|
|
452
|
+
width: number;
|
|
453
|
+
size: string | number;
|
|
454
|
+
color: string;
|
|
455
|
+
indeterminate: boolean;
|
|
456
|
+
modelValue: number;
|
|
457
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
458
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
459
|
+
SqProgressCircular: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
460
|
+
modelValue: {
|
|
461
|
+
type: NumberConstructor;
|
|
462
|
+
default: number;
|
|
463
|
+
};
|
|
464
|
+
indeterminate: BooleanConstructor;
|
|
465
|
+
size: {
|
|
466
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
467
|
+
default: number;
|
|
468
|
+
};
|
|
469
|
+
width: {
|
|
470
|
+
type: NumberConstructor;
|
|
471
|
+
default: number;
|
|
472
|
+
};
|
|
473
|
+
color: {
|
|
474
|
+
type: StringConstructor;
|
|
475
|
+
default: string;
|
|
476
|
+
};
|
|
477
|
+
}>, {
|
|
478
|
+
r: import("vue").ComputedRef<number>;
|
|
479
|
+
circ: import("vue").ComputedRef<number>;
|
|
480
|
+
offset: import("vue").ComputedRef<number>;
|
|
481
|
+
style: import("vue").ComputedRef<{
|
|
482
|
+
width: string | undefined;
|
|
483
|
+
height: string | undefined;
|
|
484
|
+
color: string | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
has: (n: string) => boolean;
|
|
487
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
488
|
+
modelValue: {
|
|
489
|
+
type: NumberConstructor;
|
|
490
|
+
default: number;
|
|
491
|
+
};
|
|
492
|
+
indeterminate: BooleanConstructor;
|
|
493
|
+
size: {
|
|
494
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
495
|
+
default: number;
|
|
496
|
+
};
|
|
497
|
+
width: {
|
|
498
|
+
type: NumberConstructor;
|
|
499
|
+
default: number;
|
|
500
|
+
};
|
|
501
|
+
color: {
|
|
502
|
+
type: StringConstructor;
|
|
503
|
+
default: string;
|
|
504
|
+
};
|
|
505
|
+
}>> & Readonly<{}>, {
|
|
506
|
+
width: number;
|
|
507
|
+
size: string | number;
|
|
508
|
+
color: string;
|
|
509
|
+
indeterminate: boolean;
|
|
510
|
+
modelValue: number;
|
|
511
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
512
|
+
SqShape: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
513
|
+
watchKey: {
|
|
514
|
+
type: (ObjectConstructor | BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
515
|
+
default: undefined;
|
|
516
|
+
};
|
|
517
|
+
clip: BooleanConstructor;
|
|
518
|
+
}>, {
|
|
519
|
+
active: import("vue").Ref<boolean, boolean>;
|
|
520
|
+
w: import("vue").Ref<number, number>;
|
|
521
|
+
h: import("vue").Ref<number, number>;
|
|
522
|
+
bw: import("vue").Ref<number, number>;
|
|
523
|
+
d: import("vue").ComputedRef<string>;
|
|
524
|
+
strokeD: import("vue").ComputedRef<string>;
|
|
525
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
526
|
+
watchKey: {
|
|
527
|
+
type: (ObjectConstructor | BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
528
|
+
default: undefined;
|
|
529
|
+
};
|
|
530
|
+
clip: BooleanConstructor;
|
|
531
|
+
}>> & Readonly<{}>, {
|
|
532
|
+
clip: boolean;
|
|
533
|
+
watchKey: string | number | boolean | unknown[] | Record<string, any>;
|
|
534
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
535
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|