@leavepulse/ui 0.31.1 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{LpDropzone-DVDC-ABU.css → LpDropzone-BBoWvi-J.css} +12 -12
- package/dist/assets/{LpImageEditor-DqP5JKCy.css → LpImageEditor-BsSwej47.css} +6 -6
- package/dist/chunks/{LpAddressInput-BDkp3-Bp.js → LpAddressInput-C35TsJXt.js} +19 -14
- package/dist/chunks/{LpAppShell-Chz8Vbtu.js → LpAppShell-lVvpENMH.js} +18 -13
- package/dist/chunks/{LpBreadcrumbs-5uvViCXi.js → LpBreadcrumbs-p4jHe_V-.js} +9 -7
- package/dist/chunks/{LpCalendar-B7ZL0ty3.js → LpCalendar-B7Ko5RdR.js} +12 -7
- package/dist/chunks/{LpCard-D0M2ZCnB.js → LpCard-1SeUYPBT.js} +36 -9
- package/dist/chunks/{LpCheckbox-BO0zuuPh.js → LpCheckbox-CVccKYaH.js} +9 -4
- package/dist/chunks/{LpCodeBlock-BWX1KZwk.js → LpCodeBlock-Bo0B4TFR.js} +37 -32
- package/dist/chunks/{LpDatePicker-dY2q4dr4.js → LpDatePicker-6JFXllj5.js} +1 -1
- package/dist/chunks/{LpDisclosure-B4kVAWfg.js → LpDisclosure-y7wDBgLa.js} +11 -6
- package/dist/chunks/{LpEmptyState-BV3q7Qyi.js → LpEmptyState-Dsdqz1Wj.js} +13 -5
- package/dist/chunks/{LpFileTree-DfFqY__1.js → LpFileTree-C-NFRT0H.js} +19 -14
- package/dist/chunks/{LpFileTreeNode-COchUMNn.js → LpFileTreeNode-DNJUJiiB.js} +13 -6
- package/dist/chunks/{LpFormField-fV_2ZdCk.js → LpFormField-CazBc2-a.js} +14 -9
- package/dist/chunks/{LpInput-Bt4J71xn.js → LpInput-9EXWUM9B.js} +1 -1
- package/dist/chunks/{LpLightbox-Ci35Y_xP.js → LpLightbox-Cixfxezw.js} +29 -6
- package/dist/chunks/{LpLink-BHZ1CLlF.js → LpLink-DCND-zyu.js} +16 -9
- package/dist/chunks/{LpLogViewer-TSRyt3t9.js → LpLogViewer-y53ZqSVq.js} +20 -10
- package/dist/chunks/{LpMapPicker-CXvoTrAe.js → LpMapPicker-ul4oYno6.js} +14 -9
- package/dist/chunks/LpMediaGallery-t1z3bQcY.js +187 -0
- package/dist/chunks/{LpNotificationBell-gdvQY89m.js → LpNotificationBell-lHePf89W.js} +1 -1
- package/dist/chunks/{LpNumberField-NPE8Bumx.js → LpNumberField-CWuX08iX.js} +12 -5
- package/dist/chunks/{LpOtpInput-DqaT0Z75.js → LpOtpInput-y2v-pmiN.js} +11 -6
- package/dist/chunks/{LpPagination-CeGuNe_q.js → LpPagination-5FxjmmB5.js} +21 -19
- package/dist/chunks/{LpPasswordInput-BqMAc5HA.js → LpPasswordInput--sjYCkLS.js} +1 -1
- package/dist/chunks/{LpPhoneInput-NXXjciJJ.js → LpPhoneInput-BDSKVl_z.js} +16 -9
- package/dist/chunks/{LpPie-BL1vTDSM.js → LpPie-c2-q4DJu.js} +14 -8
- package/dist/chunks/{LpRadio-CL-pI0_O.js → LpRadio-B5AfqTpZ.js} +13 -5
- package/dist/chunks/{LpRadioGroup-B4yDTmi6.js → LpRadioGroup-xPIuVDO_.js} +12 -5
- package/dist/chunks/{LpSegmented-BmpanyAo.js → LpSegmented-fV0Sk92p.js} +16 -6
- package/dist/chunks/{LpSidebar-BiWM_lDB.js → LpSidebar-DcYavim2.js} +2 -2
- package/dist/chunks/{LpSidebarNav-CsgeuGAu.js → LpSidebarNav-CqwvT4H8.js} +21 -16
- package/dist/chunks/{LpSlider-B1SF3pRV.js → LpSlider-BwNIBkAK.js} +12 -5
- package/dist/chunks/{LpStat-CDanpzU0.js → LpStat-CQaW8R--.js} +23 -18
- package/dist/chunks/{LpStepper-Wtl-6nUh.js → LpStepper-Bk-XaQYU.js} +15 -10
- package/dist/chunks/{LpSwitch-v6fnccSM.js → LpSwitch-xgnRU2k0.js} +12 -5
- package/dist/chunks/{LpTextarea-BMIOfw5l.js → LpTextarea-t7F6gv8E.js} +1 -1
- package/dist/chunks/{LpUptimeBar-DcQ8HikG.js → LpUptimeBar-DvAMno0S.js} +26 -21
- package/dist/component-names.d.ts +1 -1
- package/dist/components/LpAddressInput.vue.d.ts +34 -17
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAppShell.vue.d.ts +65 -31
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpBreadcrumbs.vue.d.ts +12 -6
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpCalendar.vue.d.ts +15 -6
- package/dist/components/LpCalendar.vue.js +1 -1
- package/dist/components/LpCard.vue.d.ts +26 -0
- package/dist/components/LpCard.vue.js +1 -1
- package/dist/components/LpChart.vue.d.ts +54 -12
- package/dist/components/LpChart.vue.js +15 -9
- package/dist/components/LpCheckbox.vue.d.ts +16 -12
- package/dist/components/LpCheckbox.vue.js +1 -1
- package/dist/components/LpCodeBlock.vue.d.ts +25 -6
- package/dist/components/LpCodeBlock.vue.js +1 -1
- package/dist/components/LpDatePicker.vue.js +1 -1
- package/dist/components/LpDisclosure.vue.d.ts +24 -14
- package/dist/components/LpDisclosure.vue.js +1 -1
- package/dist/components/LpDropzone.vue.d.ts +38 -14
- package/dist/components/LpDropzone.vue.js +17 -11
- package/dist/components/LpEmptyState.vue.d.ts +15 -10
- package/dist/components/LpEmptyState.vue.js +1 -1
- package/dist/components/LpFileTree.vue.d.ts +51 -31
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.d.ts +31 -16
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpFormField.vue.d.ts +14 -13
- package/dist/components/LpFormField.vue.js +1 -1
- package/dist/components/LpImageEditor.vue.d.ts +33 -10
- package/dist/components/LpImageEditor.vue.js +13 -7
- package/dist/components/LpInput.vue.js +1 -1
- package/dist/components/LpLightbox.vue.js +1 -1
- package/dist/components/LpLink.vue.d.ts +46 -11
- package/dist/components/LpLink.vue.js +1 -1
- package/dist/components/LpLogViewer.vue.d.ts +63 -6
- package/dist/components/LpLogViewer.vue.js +1 -1
- package/dist/components/LpMapPicker.vue.d.ts +25 -10
- package/dist/components/LpMapPicker.vue.js +1 -1
- package/dist/components/LpMediaGallery.vue.d.ts +76 -0
- package/dist/components/LpMediaGallery.vue.js +4 -0
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpNumberField.vue.d.ts +12 -6
- package/dist/components/LpNumberField.vue.js +1 -1
- package/dist/components/LpOtpInput.vue.d.ts +18 -6
- package/dist/components/LpOtpInput.vue.js +1 -1
- package/dist/components/LpPagination.vue.d.ts +16 -6
- package/dist/components/LpPagination.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpPhoneInput.vue.d.ts +18 -6
- package/dist/components/LpPhoneInput.vue.js +1 -1
- package/dist/components/LpPie.vue.d.ts +96 -34
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpRadio.vue.d.ts +10 -10
- package/dist/components/LpRadio.vue.js +1 -1
- package/dist/components/LpRadioGroup.vue.d.ts +12 -12
- package/dist/components/LpRadioGroup.vue.js +1 -1
- package/dist/components/LpSegmented.vue.d.ts +12 -6
- package/dist/components/LpSegmented.vue.js +1 -1
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.d.ts +28 -17
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpSlider.vue.d.ts +13 -6
- package/dist/components/LpSlider.vue.js +1 -1
- package/dist/components/LpStat.vue.d.ts +35 -11
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpStepper.vue.d.ts +17 -5
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpSwitch.vue.d.ts +8 -6
- package/dist/components/LpSwitch.vue.js +1 -1
- package/dist/components/LpTable.vue.js +1 -1
- package/dist/components/LpTextarea.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.d.ts +21 -5
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/composables/useMergedClass.d.ts +20 -0
- package/dist/composables/useMergedClass.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +95 -89
- package/package.json +1 -3
- package/src/component-names.ts +1 -0
- package/src/components/LpAddressInput.vue +16 -1
- package/src/components/LpAppShell.vue +16 -1
- package/src/components/LpBreadcrumbs.vue +16 -1
- package/src/components/LpCalendar.vue +15 -1
- package/src/components/LpCard.vue +50 -5
- package/src/components/LpChart.vue +16 -1
- package/src/components/LpCheckbox.vue +16 -1
- package/src/components/LpCodeBlock.vue +16 -1
- package/src/components/LpDisclosure.vue +15 -1
- package/src/components/LpDropzone.vue +21 -6
- package/src/components/LpEmptyState.vue +21 -3
- package/src/components/LpFileTree.vue +16 -1
- package/src/components/LpFileTreeNode.vue +15 -1
- package/src/components/LpFormField.vue +16 -1
- package/src/components/LpImageEditor.vue +16 -1
- package/src/components/LpLightbox.vue +54 -2
- package/src/components/LpLink.vue +25 -9
- package/src/components/LpLogViewer.vue +20 -2
- package/src/components/LpMapPicker.vue +15 -1
- package/src/components/LpMediaGallery.vue +280 -0
- package/src/components/LpNumberField.vue +15 -1
- package/src/components/LpOtpInput.vue +15 -1
- package/src/components/LpPagination.vue +16 -1
- package/src/components/LpPhoneInput.vue +23 -8
- package/src/components/LpPie.vue +16 -1
- package/src/components/LpRadio.vue +20 -3
- package/src/components/LpRadioGroup.vue +15 -1
- package/src/components/LpSegmented.vue +21 -2
- package/src/components/LpSidebarNav.vue +16 -1
- package/src/components/LpSlider.vue +15 -1
- package/src/components/LpStat.vue +16 -1
- package/src/components/LpStepper.vue +16 -1
- package/src/components/LpSwitch.vue +15 -1
- package/src/components/LpUptimeBar.vue +16 -1
- package/src/composables/useMergedClass.ts +30 -0
- package/src/index.ts +2 -0
- package/src/tokens/tokens.css +29 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, useId, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, normalizeClass, renderSlot, createCommentVNode, createBlock, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { _ as _sfc_main$3 } from "./LpDrawer-DAJN5rGK.js";
|
|
3
|
-
import { _ as _sfc_main$1 } from "./LpInput-
|
|
4
|
-
import { _ as _sfc_main$2 } from "./LpSidebarNav-
|
|
3
|
+
import { _ as _sfc_main$1 } from "./LpInput-9EXWUM9B.js";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./LpSidebarNav-CqwvT4H8.js";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "mt-2 flex shrink-0 flex-col gap-2"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, createBlock, withCtx,
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, createCommentVNode, Fragment, renderList, createBlock, withCtx, toDisplayString, createVNode, normalizeClass, createTextVNode, resolveDynamicComponent, renderSlot } from "vue";
|
|
2
2
|
import { Motion } from "motion-v";
|
|
3
3
|
import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "reka-ui";
|
|
4
4
|
import { usePillTransition } from "../composables/usePillTransition.js";
|
|
@@ -6,22 +6,21 @@ import { _ as _sfc_main$3 } from "./LpBadge-Fe0D1bYx.js";
|
|
|
6
6
|
import { _ as _sfc_main$4 } from "./LpContextMenu-B6WBLleS.js";
|
|
7
7
|
import { _ as _sfc_main$2 } from "./LpIcon-CCnX5_2j.js";
|
|
8
8
|
import { _ as _sfc_main$1 } from "./LpScrollArea-D8xyKXcF.js";
|
|
9
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
9
10
|
const _hoisted_1 = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "flex min-h-0 flex-1 flex-col gap-4"
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_2 = {
|
|
14
11
|
key: 0,
|
|
15
12
|
class: "flex items-center gap-3 px-1"
|
|
16
13
|
};
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
14
|
+
const _hoisted_2 = { class: "space-y-1" };
|
|
15
|
+
const _hoisted_3 = { class: "min-w-0 flex-1 truncate text-left" };
|
|
16
|
+
const _hoisted_4 = {
|
|
20
17
|
key: 1,
|
|
21
18
|
class: "px-2 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted"
|
|
22
19
|
};
|
|
23
|
-
const
|
|
20
|
+
const _hoisted_5 = { class: "relative z-10 min-w-0 flex-1 truncate text-left" };
|
|
21
|
+
const __default__ = { inheritAttrs: false };
|
|
24
22
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
|
+
...__default__,
|
|
25
24
|
__name: "LpSidebarNav",
|
|
26
25
|
props: {
|
|
27
26
|
groups: {},
|
|
@@ -51,16 +50,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
50
|
return !foldedKeys.value.has(sectionKey(section));
|
|
52
51
|
}
|
|
53
52
|
const pillTransition = usePillTransition();
|
|
53
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
54
|
+
"flex min-h-0 flex-1 flex-col gap-4"
|
|
55
|
+
);
|
|
54
56
|
return (_ctx, _cache) => {
|
|
55
|
-
return __props.loading ? (openBlock(), createElementBlock("div",
|
|
56
|
-
|
|
57
|
+
return __props.loading ? (openBlock(), createElementBlock("div", mergeProps({
|
|
58
|
+
key: 0,
|
|
59
|
+
class: unref(rootClass)
|
|
60
|
+
}, unref(rest)), [
|
|
61
|
+
__props.skeletonHeader ? (openBlock(), createElementBlock("div", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
57
62
|
createElementVNode("div", { class: "size-10 shrink-0 animate-pulse rounded-pill bg-surface-soft" }, null, -1),
|
|
58
63
|
createElementVNode("div", { class: "flex-1 space-y-2" }, [
|
|
59
64
|
createElementVNode("div", { class: "h-3.5 w-24 animate-pulse rounded bg-surface-soft" }),
|
|
60
65
|
createElementVNode("div", { class: "h-3 w-16 animate-pulse rounded bg-surface-soft/60" })
|
|
61
66
|
], -1)
|
|
62
67
|
])])) : createCommentVNode("", true),
|
|
63
|
-
createElementVNode("div",
|
|
68
|
+
createElementVNode("div", _hoisted_2, [
|
|
64
69
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.skeletonRows, (n) => {
|
|
65
70
|
return openBlock(), createElementBlock("div", {
|
|
66
71
|
key: n,
|
|
@@ -68,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
73
|
});
|
|
69
74
|
}), 128))
|
|
70
75
|
])
|
|
71
|
-
])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
76
|
+
], 16)) : (openBlock(), createBlock(_sfc_main$1, {
|
|
72
77
|
key: 1,
|
|
73
78
|
class: "min-h-0 flex-1",
|
|
74
79
|
"content-class": "flex min-h-full flex-col gap-4"
|
|
@@ -95,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
100
|
size: 14,
|
|
96
101
|
class: "shrink-0"
|
|
97
102
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
98
|
-
createElementVNode("span",
|
|
103
|
+
createElementVNode("span", _hoisted_3, toDisplayString(section.title), 1),
|
|
99
104
|
createVNode(_sfc_main$3, {
|
|
100
105
|
tone: "neutral",
|
|
101
106
|
class: normalizeClass(["shrink-0 transition-opacity duration-[var(--duration-fast)] motion-reduce:transition-none", isOpen(section) ? "opacity-0" : "opacity-100"]),
|
|
@@ -113,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
118
|
})
|
|
114
119
|
]),
|
|
115
120
|
_: 2
|
|
116
|
-
}, 1024)) : section.title ? (openBlock(), createElementBlock("p",
|
|
121
|
+
}, 1024)) : section.title ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(section.title), 1)) : createCommentVNode("", true),
|
|
117
122
|
createVNode(unref(CollapsibleContent), { class: "flex flex-col gap-0.5 overflow-hidden data-[state=open]:animate-[collapsible-down_260ms_var(--ease-emphasized)] data-[state=closed]:animate-[collapsible-up_200ms_var(--ease-emphasized)] motion-reduce:animate-none" }, {
|
|
118
123
|
default: withCtx(() => [
|
|
119
124
|
(openBlock(true), createElementBlock(Fragment, null, renderList(section.items, (item) => {
|
|
@@ -148,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
153
|
size: 17,
|
|
149
154
|
class: normalizeClass(["relative z-10 shrink-0 transition-colors", __props.itemActive(item) ? "text-brand" : ""])
|
|
150
155
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
151
|
-
createElementVNode("span",
|
|
156
|
+
createElementVNode("span", _hoisted_5, toDisplayString(item.label), 1),
|
|
152
157
|
item.badge != null ? (openBlock(), createBlock(_sfc_main$3, {
|
|
153
158
|
key: 1,
|
|
154
159
|
tone: __props.itemActive(item) ? "brand" : "neutral",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
2
2
|
import { SliderRoot, SliderTrack, SliderRange, SliderThumb } from "reka-ui";
|
|
3
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
4
|
+
const __default__ = { inheritAttrs: false };
|
|
3
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
...__default__,
|
|
4
7
|
__name: "LpSlider",
|
|
5
8
|
props: {
|
|
6
9
|
modelValue: { default: 0 },
|
|
@@ -20,17 +23,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
23
|
function onCommit(v) {
|
|
21
24
|
if (v && v.length) emit("change", v[0]);
|
|
22
25
|
}
|
|
26
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
27
|
+
"relative flex h-5 w-full touch-none select-none items-center data-[disabled]:opacity-55"
|
|
28
|
+
);
|
|
23
29
|
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createBlock(unref(SliderRoot), {
|
|
30
|
+
return openBlock(), createBlock(unref(SliderRoot), mergeProps({
|
|
25
31
|
"model-value": [props.modelValue],
|
|
26
32
|
min: __props.min,
|
|
27
33
|
max: __props.max,
|
|
28
34
|
step: __props.step,
|
|
29
35
|
disabled: __props.disabled,
|
|
30
|
-
class:
|
|
36
|
+
class: unref(rootClass)
|
|
37
|
+
}, unref(rest), {
|
|
31
38
|
"onUpdate:modelValue": onUpdate,
|
|
32
39
|
onValueCommit: onCommit
|
|
33
|
-
}, {
|
|
40
|
+
}), {
|
|
34
41
|
default: withCtx(() => [
|
|
35
42
|
createVNode(unref(SliderTrack), { class: "relative h-1.5 grow overflow-hidden rounded-pill bg-surface-soft" }, {
|
|
36
43
|
default: withCtx(() => [
|
|
@@ -44,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
44
51
|
}, null, 8, ["aria-label"])
|
|
45
52
|
]),
|
|
46
53
|
_: 1
|
|
47
|
-
},
|
|
54
|
+
}, 16, ["model-value", "min", "max", "step", "disabled", "class"]);
|
|
48
55
|
};
|
|
49
56
|
}
|
|
50
57
|
});
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, createBlock, toDisplayString, Fragment, createTextVNode, normalizeClass, createVNode, renderSlot } from "vue";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, createCommentVNode, createBlock, toDisplayString, Fragment, createTextVNode, normalizeClass, createVNode, renderSlot } from "vue";
|
|
2
2
|
import { _ as _sfc_main$1 } from "./LpIcon-CCnX5_2j.js";
|
|
3
3
|
import { _ as _sfc_main$2 } from "./LpNumberFlow-amWYaeuA.js";
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
5
|
+
const _hoisted_1 = { class: "flex items-center gap-2" };
|
|
6
|
+
const _hoisted_2 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "size-1.5 rounded-full bg-action"
|
|
9
9
|
};
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
const _hoisted_3 = { class: "text-[11px] font-semibold uppercase tracking-[0.08em] text-muted" };
|
|
11
|
+
const _hoisted_4 = { class: "flex items-baseline gap-2" };
|
|
12
|
+
const _hoisted_5 = { class: "font-mono text-3xl font-medium tracking-tight text-ink" };
|
|
13
|
+
const _hoisted_6 = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "ml-3 self-center"
|
|
16
16
|
};
|
|
17
|
-
const
|
|
17
|
+
const _hoisted_7 = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "text-sm text-muted"
|
|
20
20
|
};
|
|
21
|
+
const __default__ = { inheritAttrs: false };
|
|
21
22
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
|
+
...__default__,
|
|
22
24
|
__name: "LpStat",
|
|
23
25
|
props: {
|
|
24
26
|
label: {},
|
|
@@ -68,20 +70,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
70
|
const [, fraction] = String(props.delta).split(".");
|
|
69
71
|
return Math.min(fraction?.length ?? 0, 4);
|
|
70
72
|
});
|
|
73
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
74
|
+
"flex flex-col gap-2"
|
|
75
|
+
);
|
|
71
76
|
return (_ctx, _cache) => {
|
|
72
|
-
return openBlock(), createElementBlock("div",
|
|
73
|
-
createElementVNode("div",
|
|
74
|
-
__props.online ? (openBlock(), createElementBlock("span",
|
|
77
|
+
return openBlock(), createElementBlock("div", mergeProps({ class: unref(rootClass) }, unref(rest)), [
|
|
78
|
+
createElementVNode("div", _hoisted_1, [
|
|
79
|
+
__props.online ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("", true),
|
|
75
80
|
__props.icon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
76
81
|
key: 1,
|
|
77
82
|
name: __props.icon,
|
|
78
83
|
size: 14,
|
|
79
84
|
class: "text-muted"
|
|
80
85
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
81
|
-
createElementVNode("span",
|
|
86
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.label), 1)
|
|
82
87
|
]),
|
|
83
|
-
createElementVNode("div",
|
|
84
|
-
createElementVNode("span",
|
|
88
|
+
createElementVNode("div", _hoisted_4, [
|
|
89
|
+
createElementVNode("span", _hoisted_5, [
|
|
85
90
|
typeof __props.value === "number" ? (openBlock(), createBlock(_sfc_main$2, {
|
|
86
91
|
key: 0,
|
|
87
92
|
value: __props.value,
|
|
@@ -112,12 +117,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
117
|
createTextVNode(toDisplayString(deltaText.value), 1)
|
|
113
118
|
], 64))
|
|
114
119
|
], 2)) : createCommentVNode("", true),
|
|
115
|
-
_ctx.$slots.trend ? (openBlock(), createElementBlock("span",
|
|
120
|
+
_ctx.$slots.trend ? (openBlock(), createElementBlock("span", _hoisted_6, [
|
|
116
121
|
renderSlot(_ctx.$slots, "trend")
|
|
117
122
|
])) : createCommentVNode("", true)
|
|
118
123
|
]),
|
|
119
|
-
__props.hint ? (openBlock(), createElementBlock("span",
|
|
120
|
-
]);
|
|
124
|
+
__props.hint ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
125
|
+
], 16);
|
|
121
126
|
};
|
|
122
127
|
}
|
|
123
128
|
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, createBlock, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createElementVNode, normalizeClass, createBlock, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { _ as _sfc_main$1 } from "./LpIcon-CCnX5_2j.js";
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
4
|
+
const _hoisted_1 = ["aria-current"];
|
|
5
|
+
const _hoisted_2 = { class: "flex items-center gap-2" };
|
|
6
|
+
const _hoisted_3 = { class: "sr-only" };
|
|
7
|
+
const __default__ = { inheritAttrs: false };
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
...__default__,
|
|
8
10
|
__name: "LpStepper",
|
|
9
11
|
props: {
|
|
10
12
|
steps: {},
|
|
@@ -24,15 +26,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
26
|
function isCurrent(i) {
|
|
25
27
|
return i === currentIndex.value;
|
|
26
28
|
}
|
|
29
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
30
|
+
"flex items-center gap-2"
|
|
31
|
+
);
|
|
27
32
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("ol",
|
|
33
|
+
return openBlock(), createElementBlock("ol", mergeProps({ class: unref(rootClass) }, unref(rest)), [
|
|
29
34
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step, i) => {
|
|
30
35
|
return openBlock(), createElementBlock("li", {
|
|
31
36
|
key: step.key ?? i,
|
|
32
37
|
class: "flex flex-1 items-center gap-2 last:flex-none",
|
|
33
38
|
"aria-current": isCurrent(i) ? "step" : void 0
|
|
34
39
|
}, [
|
|
35
|
-
createElementVNode("div",
|
|
40
|
+
createElementVNode("div", _hoisted_2, [
|
|
36
41
|
createElementVNode("span", {
|
|
37
42
|
class: normalizeClass(["flex size-7 shrink-0 items-center justify-center rounded-pill border text-xs font-semibold transition-colors", isCompleted(step, i) ? "border-transparent bg-brand text-ink-inverse" : isCurrent(i) ? "border-brand text-brand" : "border-line text-muted"])
|
|
38
43
|
}, [
|
|
@@ -52,16 +57,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
57
|
class: normalizeClass(["text-sm", isCompleted(step, i) || isCurrent(i) ? "text-ink" : "text-muted"])
|
|
53
58
|
}, [
|
|
54
59
|
createTextVNode(toDisplayString(step.label) + " ", 1),
|
|
55
|
-
createElementVNode("span",
|
|
60
|
+
createElementVNode("span", _hoisted_3, toDisplayString(isCompleted(step, i) ? "(completed)" : isCurrent(i) ? "(current step)" : ""), 1)
|
|
56
61
|
], 2)
|
|
57
62
|
]),
|
|
58
63
|
i < __props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
59
64
|
key: 0,
|
|
60
65
|
class: normalizeClass(["h-px flex-1", isCompleted(step, i) ? "bg-brand" : "bg-line"])
|
|
61
66
|
}, null, 2)) : createCommentVNode("", true)
|
|
62
|
-
], 8,
|
|
67
|
+
], 8, _hoisted_1);
|
|
63
68
|
}), 128))
|
|
64
|
-
]);
|
|
69
|
+
], 16);
|
|
65
70
|
};
|
|
66
71
|
}
|
|
67
72
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, withCtx, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
|
|
2
2
|
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
3
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
4
|
+
const __default__ = { inheritAttrs: false };
|
|
3
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
...__default__,
|
|
4
7
|
__name: "LpSwitch",
|
|
5
8
|
props: {
|
|
6
9
|
modelValue: { type: Boolean },
|
|
@@ -8,18 +11,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
11
|
},
|
|
9
12
|
emits: ["update:modelValue"],
|
|
10
13
|
setup(__props) {
|
|
14
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
15
|
+
"group inline-flex h-5 w-9 shrink-0 items-center rounded-pill border border-line bg-surface-soft px-0.5 outline-none transition-colors duration-[var(--duration-fast)] focus-visible:ring-2 focus-visible:ring-ring data-[state=checked]:border-transparent data-[state=checked]:bg-brand disabled:cursor-not-allowed disabled:opacity-55"
|
|
16
|
+
);
|
|
11
17
|
return (_ctx, _cache) => {
|
|
12
|
-
return openBlock(), createBlock(unref(SwitchRoot), {
|
|
18
|
+
return openBlock(), createBlock(unref(SwitchRoot), mergeProps({
|
|
13
19
|
"model-value": __props.modelValue,
|
|
14
20
|
disabled: __props.disabled,
|
|
15
|
-
class:
|
|
21
|
+
class: unref(rootClass)
|
|
22
|
+
}, unref(rest), {
|
|
16
23
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => _ctx.$emit("update:modelValue", v))
|
|
17
|
-
}, {
|
|
24
|
+
}), {
|
|
18
25
|
default: withCtx(() => [
|
|
19
26
|
createVNode(unref(SwitchThumb), { class: "h-3.5 w-3.5 rounded-full bg-ink shadow transition-[translate,width,background-color] duration-[var(--duration-fast)] ease-[var(--ease-emphasized)] group-active:w-5 group-data-[state=checked]:translate-x-4 group-data-[state=checked]:bg-ink-inverse group-data-[state=checked]:group-active:-translate-x-1 motion-reduce:group-active:w-3.5" })
|
|
20
27
|
]),
|
|
21
28
|
_: 1
|
|
22
|
-
},
|
|
29
|
+
}, 16, ["model-value", "disabled", "class"]);
|
|
23
30
|
};
|
|
24
31
|
}
|
|
25
32
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./LpFormField-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./LpFormField-CazBc2-a.js";
|
|
3
3
|
const _hoisted_1 = ["value", "placeholder", "rows", "disabled", "required"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "LpTextarea",
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createVNode, withCtx, Fragment, renderList, normalizeStyle, createBlock, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, openBlock, createElementBlock, mergeProps, unref, createElementVNode, toDisplayString, createCommentVNode, createVNode, withCtx, Fragment, renderList, normalizeStyle, createBlock, createTextVNode } from "vue";
|
|
2
2
|
import { _ as _sfc_main$3 } from "./LpNumberFlow-amWYaeuA.js";
|
|
3
3
|
import { _ as _sfc_main$2 } from "./LpRollingText-CM5gkSeF.js";
|
|
4
4
|
import { _ as _sfc_main$1 } from "./LpTooltip-hCLPAqMG.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
6
|
+
import '../assets/LpUptimeBar-B98o9krI.css';const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "text-xs"
|
|
9
9
|
};
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const _hoisted_2 = { class: "font-medium text-ink" };
|
|
11
|
+
const _hoisted_3 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex items-center gap-1.5"
|
|
14
14
|
};
|
|
15
|
-
const
|
|
16
|
-
const
|
|
15
|
+
const _hoisted_4 = ["aria-label", "onPointerenter"];
|
|
16
|
+
const _hoisted_5 = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex items-center gap-2 text-xs text-muted"
|
|
19
19
|
};
|
|
20
|
-
const
|
|
21
|
-
const
|
|
20
|
+
const _hoisted_6 = { class: "shrink-0" };
|
|
21
|
+
const _hoisted_7 = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "shrink-0 text-muted-strong"
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const
|
|
25
|
+
const _hoisted_8 = { class: "shrink-0" };
|
|
26
|
+
const __default__ = { inheritAttrs: false };
|
|
27
27
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
|
+
...__default__,
|
|
28
29
|
__name: "LpUptimeBar",
|
|
29
30
|
props: {
|
|
30
31
|
segments: {},
|
|
@@ -58,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
58
59
|
const up = tracked.filter((s) => s.status === "operational" || s.status === "maintenance").length;
|
|
59
60
|
return up / tracked.length * 100;
|
|
60
61
|
});
|
|
62
|
+
const MARK_WIDTH = 0.64;
|
|
61
63
|
const hovered = ref(null);
|
|
62
64
|
const tip = computed(() => {
|
|
63
65
|
const i = hovered.value;
|
|
@@ -72,10 +74,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
74
|
const trimmed = Number(v.toFixed(2));
|
|
73
75
|
return Number.isInteger(trimmed) ? 0 : String(trimmed).split(".")[1].length;
|
|
74
76
|
});
|
|
77
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs(
|
|
78
|
+
"flex flex-col gap-1.5"
|
|
79
|
+
);
|
|
75
80
|
return (_ctx, _cache) => {
|
|
76
|
-
return openBlock(), createElementBlock("div",
|
|
77
|
-
__props.title ? (openBlock(), createElementBlock("div",
|
|
78
|
-
createElementVNode("span",
|
|
81
|
+
return openBlock(), createElementBlock("div", mergeProps({ class: unref(rootClass) }, unref(rest)), [
|
|
82
|
+
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
83
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.title), 1)
|
|
79
84
|
])) : createCommentVNode("", true),
|
|
80
85
|
createVNode(_sfc_main$1, {
|
|
81
86
|
delay: 80,
|
|
@@ -84,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
89
|
disabled: hovered.value === null
|
|
85
90
|
}, {
|
|
86
91
|
content: withCtx(() => [
|
|
87
|
-
tip.value ? (openBlock(), createElementBlock("span",
|
|
92
|
+
tip.value ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
88
93
|
createElementVNode("span", {
|
|
89
94
|
class: "size-1.5 shrink-0 rounded-full",
|
|
90
95
|
style: normalizeStyle({ backgroundColor: colorFor(tip.value.status) })
|
|
@@ -120,16 +125,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
125
|
scale: hovered.value === i ? `${MARK_WIDTH} 1.12` : void 0
|
|
121
126
|
})
|
|
122
127
|
}, null, 4)
|
|
123
|
-
], 40,
|
|
128
|
+
], 40, _hoisted_4);
|
|
124
129
|
}), 128))
|
|
125
130
|
], 32)
|
|
126
131
|
]),
|
|
127
132
|
_: 1
|
|
128
133
|
}, 8, ["disabled"]),
|
|
129
|
-
__props.startLabel || __props.endLabel || __props.showUptime ? (openBlock(), createElementBlock("div",
|
|
130
|
-
createElementVNode("span",
|
|
134
|
+
__props.startLabel || __props.endLabel || __props.showUptime ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
135
|
+
createElementVNode("span", _hoisted_6, toDisplayString(__props.startLabel), 1),
|
|
131
136
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
|
|
132
|
-
__props.showUptime ? (openBlock(), createElementBlock("span",
|
|
137
|
+
__props.showUptime ? (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
133
138
|
uptimePct.value != null ? (openBlock(), createBlock(_sfc_main$3, {
|
|
134
139
|
key: 0,
|
|
135
140
|
value: uptimePct.value,
|
|
@@ -141,9 +146,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
146
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "text-muted" }, " uptime", -1))
|
|
142
147
|
])) : createCommentVNode("", true),
|
|
143
148
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
|
|
144
|
-
createElementVNode("span",
|
|
149
|
+
createElementVNode("span", _hoisted_8, toDisplayString(__props.endLabel), 1)
|
|
145
150
|
])) : createCommentVNode("", true)
|
|
146
|
-
]);
|
|
151
|
+
], 16);
|
|
147
152
|
};
|
|
148
153
|
}
|
|
149
154
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const COMPONENT_NAMES: readonly ["LayoutCanvas", "LayoutNode", "LpActionBar", "LpAddressInput", "LpAlert", "LpAppShell", "LpAutocomplete", "LpAvatar", "LpBadge", "LpBreadcrumbs", "LpButton", "LpCalendar", "LpCard", "LpChart", "LpCheckbox", "LpCodeBlock", "LpColorPicker", "LpCommandPalette", "LpConfirmDialog", "LpContextMenu", "LpDatePicker", "LpDisclosure", "LpDivider", "LpDrawer", "LpDropdownMenu", "LpDropzone", "LpEmptyState", "LpFileTree", "LpFileTreeNode", "LpFormField", "LpIcon", "LpImageEditor", "LpInfraNode", "LpInput", "LpLaneNode", "LpLightbox", "LpLink", "LpLogViewer", "LpMapPicker", "LpModal", "LpNotificationBell", "LpNumberField", "LpNumberFlow", "LpOtpInput", "LpPagination", "LpPasswordInput", "LpPhoneInput", "LpPie", "LpPopover", "LpProgress", "LpRadio", "LpRadioGroup", "LpRollingText", "LpScrollArea", "LpSection", "LpSegmented", "LpSelect", "LpServiceNode", "LpShift", "LpShortcutsDialog", "LpSidebar", "LpSidebarNav", "LpSkeleton", "LpSlider", "LpSparkline", "LpStat", "LpStepper", "LpSwitch", "LpTable", "LpTableOfContents", "LpTabs", "LpTextarea", "LpThemeSwitcher", "LpTilt", "LpToaster", "LpTooltip", "LpTopologyCanvas", "LpUptimeBar", "LpWaypointEdge"];
|
|
1
|
+
export declare const COMPONENT_NAMES: readonly ["LayoutCanvas", "LayoutNode", "LpActionBar", "LpAddressInput", "LpAlert", "LpAppShell", "LpAutocomplete", "LpAvatar", "LpBadge", "LpBreadcrumbs", "LpButton", "LpCalendar", "LpCard", "LpChart", "LpCheckbox", "LpCodeBlock", "LpColorPicker", "LpCommandPalette", "LpConfirmDialog", "LpContextMenu", "LpDatePicker", "LpDisclosure", "LpDivider", "LpDrawer", "LpDropdownMenu", "LpDropzone", "LpEmptyState", "LpFileTree", "LpFileTreeNode", "LpFormField", "LpIcon", "LpImageEditor", "LpInfraNode", "LpInput", "LpLaneNode", "LpLightbox", "LpLink", "LpLogViewer", "LpMapPicker", "LpMediaGallery", "LpModal", "LpNotificationBell", "LpNumberField", "LpNumberFlow", "LpOtpInput", "LpPagination", "LpPasswordInput", "LpPhoneInput", "LpPie", "LpPopover", "LpProgress", "LpRadio", "LpRadioGroup", "LpRollingText", "LpScrollArea", "LpSection", "LpSegmented", "LpSelect", "LpServiceNode", "LpShift", "LpShortcutsDialog", "LpSidebar", "LpSidebarNav", "LpSkeleton", "LpSlider", "LpSparkline", "LpStat", "LpStepper", "LpSwitch", "LpTable", "LpTableOfContents", "LpTabs", "LpTextarea", "LpThemeSwitcher", "LpTilt", "LpToaster", "LpTooltip", "LpTopologyCanvas", "LpUptimeBar", "LpWaypointEdge"];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AddressLabels, AddressValue, GeocodeProvider, LatLon, TileSource } from './address';
|
|
2
|
-
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
3
5
|
/** The address. Bind with v-model. */
|
|
4
6
|
modelValue?: AddressValue;
|
|
5
7
|
/** Geocoder for suggestions and for the map's reverse lookup. */
|
|
@@ -21,20 +23,32 @@ type __VLS_Props = {
|
|
|
21
23
|
/** Hide the map button when picking a point makes no sense. */
|
|
22
24
|
hideMap?: boolean;
|
|
23
25
|
labels?: Partial<AddressLabels>;
|
|
24
|
-
}
|
|
25
|
-
declare function onPick(next: LatLon): Promise<void>;
|
|
26
|
-
declare var __VLS_88: {
|
|
27
|
-
point: LatLon | undefined;
|
|
28
|
-
setPoint: typeof onPick;
|
|
29
|
-
tiles: TileSource;
|
|
30
|
-
};
|
|
31
|
-
type __VLS_Slots = {} & {
|
|
32
|
-
map?: (props: typeof __VLS_88) => any;
|
|
33
|
-
};
|
|
34
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
35
27
|
"update:modelValue": (value: AddressValue) => any;
|
|
36
28
|
pick: (value: LatLon) => any;
|
|
37
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
30
|
+
/** The address. Bind with v-model. */
|
|
31
|
+
modelValue?: AddressValue;
|
|
32
|
+
/** Geocoder for suggestions and for the map's reverse lookup. */
|
|
33
|
+
provider?: GeocodeProvider;
|
|
34
|
+
/** Tile server handed to the built-in picker. */
|
|
35
|
+
tiles?: TileSource;
|
|
36
|
+
/** Restrict the country list (ISO2). Omit for every country. */
|
|
37
|
+
only?: string[];
|
|
38
|
+
/** Show the "apartment, suite" line. */
|
|
39
|
+
secondLine?: boolean;
|
|
40
|
+
/** Suggestions start after this many characters. */
|
|
41
|
+
minChars?: number;
|
|
42
|
+
/** Debounce before a suggestion request goes out. */
|
|
43
|
+
debounce?: number;
|
|
44
|
+
/** Accept-Language for the geocoder. */
|
|
45
|
+
language?: string;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
size?: "sm" | "md" | "lg";
|
|
48
|
+
/** Hide the map button when picking a point makes no sense. */
|
|
49
|
+
hideMap?: boolean;
|
|
50
|
+
labels?: Partial<AddressLabels>;
|
|
51
|
+
}> & Readonly<{
|
|
38
52
|
"onUpdate:modelValue"?: ((value: AddressValue) => any) | undefined;
|
|
39
53
|
onPick?: ((value: LatLon) => any) | undefined;
|
|
40
54
|
}>, {
|
|
@@ -42,10 +56,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
42
56
|
minChars: number;
|
|
43
57
|
tiles: TileSource;
|
|
44
58
|
debounce: number;
|
|
45
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
60
|
+
map?: (props: {
|
|
61
|
+
point: LatLon | undefined;
|
|
62
|
+
setPoint: (next: LatLon) => Promise<void>;
|
|
63
|
+
tiles: TileSource;
|
|
64
|
+
}) => any;
|
|
65
|
+
}>;
|
|
49
66
|
type __VLS_WithSlots<T, S> = T & {
|
|
50
67
|
new (): {
|
|
51
68
|
$slots: S;
|