@leavepulse/ui 0.70.0 → 0.70.1
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/README.md +12 -0
- package/dist/assets/LpRepeater-C1Cw27hj.css +21 -0
- package/dist/assets/{LpRollingText-BGnE6q9j.css → LpRollingText-dyOXedGO.css} +7 -0
- package/dist/chunks/{ContextMenuItems-B5uE8Znw.js → ContextMenuItems-6kxEivBI.js} +10 -4
- package/dist/chunks/{LpAddressInput-CNnLTDZg.js → LpAddressInput-Chv_Xf8q.js} +1 -1
- package/dist/chunks/{LpAppShell-CEUAB8kK.js → LpAppShell-BiWByLmt.js} +1 -1
- package/dist/chunks/{LpBadge-HOEPBYmi.js → LpBadge-BBq1Er9T.js} +1 -1
- package/dist/chunks/{LpBreadcrumbs-DYoPc3P4.js → LpBreadcrumbs-JKEi_yFF.js} +1 -1
- package/dist/chunks/{LpCodeDisplay-CIKKT2iW.js → LpCodeDisplay-CbJMs-IK.js} +2 -2
- package/dist/chunks/{LpColorPicker-DFugXNUi.js → LpColorPicker-B7HSIFmn.js} +2 -2
- package/dist/chunks/{LpContextMenu-COwOwRgI.js → LpContextMenu-Cj96ENDC.js} +5 -4
- package/dist/chunks/{LpCountdown-Dtq1ihlJ.js → LpCountdown-BQnmB4gq.js} +1 -1
- package/dist/chunks/{LpDataList-B-5nHfNw.js → LpDataList-CHNYQw7h.js} +4 -3
- package/dist/chunks/{LpDatePicker-BUe1VUC0.js → LpDatePicker-ac1_6o5P.js} +4 -3
- package/dist/chunks/{LpDateRangePicker-C_k65vGR.js → LpDateRangePicker-B15gYrZJ.js} +4 -3
- package/dist/chunks/{LpDropdownMenu-CRgrhdAH.js → LpDropdownMenu-R4aYVtVV.js} +5 -2
- package/dist/chunks/{LpEditable-DTqLt2lT.js → LpEditable-Ws3DNQHn.js} +5 -3
- package/dist/chunks/{LpFileTree-DMISXVHC.js → LpFileTree-DDNg34tJ.js} +1 -1
- package/dist/chunks/{LpFileTreeNode-CPXB_Yy3.js → LpFileTreeNode-DmPuYNZ_.js} +2 -2
- package/dist/chunks/{LpGauge-Bk8TwJj0.js → LpGauge-C14Z9503.js} +1 -1
- package/dist/chunks/{LpHintLayer-p4hqzdyA.js → LpHintLayer-HvwUA5Ec.js} +1 -1
- package/dist/chunks/{LpHints-CCrhRfy9.js → LpHints-DxbPKOzQ.js} +2 -2
- package/dist/chunks/{LpInfraNode-CUC3t4na.js → LpInfraNode-D64hywJI.js} +2 -2
- package/dist/chunks/{LpLogViewer-elZHbj85.js → LpLogViewer-DKK4ySZl.js} +2 -2
- package/dist/chunks/{LpMediaGallery-D5swlmZ_.js → LpMediaGallery-rmI1DjKN.js} +1 -1
- package/dist/chunks/{LpModalNav-D4Z0wVHR.js → LpModalNav-DiyFCHiZ.js} +1 -1
- package/dist/chunks/{LpNotificationBell-DPZmP5dM.js → LpNotificationBell-D-WhE5m2.js} +5 -5
- package/dist/chunks/{LpPasswordInput-DTV18FIh.js → LpPasswordInput-GL2KOFK8.js} +10 -6
- package/dist/chunks/{LpPie-CFuV7pZv.js → LpPie-BgXZ3xmm.js} +2 -2
- package/dist/chunks/{LpPipeline-D81yh_NX.js → LpPipeline-B31h41Mu.js} +2 -2
- package/dist/chunks/{LpPopover-BEIcqb9p.js → LpPopover-DmZ3wUtP.js} +6 -5
- package/dist/chunks/{LpQuota-2Sw_gqcJ.js → LpQuota-DaL8TgNe.js} +1 -1
- package/dist/chunks/{LpRelativeTime-CKzVqAo9.js → LpRelativeTime-yin9uQP7.js} +1 -1
- package/dist/chunks/LpRepeater-D0S7jjwr.js +180 -0
- package/dist/chunks/{LpRollingText-DB7upf-5.js → LpRollingText-DiL717LK.js} +4 -3
- package/dist/chunks/{LpSecretField-DMfdJ1cQ.js → LpSecretField-CfWyHv9m.js} +19 -10
- package/dist/chunks/{LpSelect-B4f_yRi5.js → LpSelect-C_8cJtj6.js} +10 -15
- package/dist/chunks/{LpSidebar-D-M0Y_7U.js → LpSidebar-CZRXtvem.js} +1 -1
- package/dist/chunks/{LpSidebarNav-DF-TYxOV.js → LpSidebarNav-DBg1U1oW.js} +2 -2
- package/dist/chunks/{LpStat-B2ix1Q7t.js → LpStat-DFKlPJgy.js} +1 -1
- package/dist/chunks/{LpStatus-C7kx5PKE.js → LpStatus-BsGLrpor.js} +2 -2
- package/dist/chunks/{LpStepMark-DK-5BKAt.js → LpStepMark-TrzOioa9.js} +1 -1
- package/dist/chunks/{LpStepper-DRFfdJaq.js → LpStepper-BbnS5jUr.js} +1 -1
- package/dist/chunks/{LpTagsInput-DgpBFRV2.js → LpTagsInput-DZg80W-B.js} +1 -1
- package/dist/chunks/{LpThemeStudio-DguwHdGt.js → LpThemeStudio-DxVZMtzN.js} +1 -1
- package/dist/chunks/{LpThemeSwitcher-D5uz0MhK.js → LpThemeSwitcher-CadVBTBn.js} +3 -3
- package/dist/chunks/{LpTopologyCanvas-ZhKthfgz.js → LpTopologyCanvas-C17A1XCb.js} +1 -1
- package/dist/chunks/{LpTour-NfRJNEIP.js → LpTour-CY2bFXge.js} +1 -1
- package/dist/chunks/{LpUptimeBar-DWegV2p6.js → LpUptimeBar-Tew1Ykx4.js} +1 -1
- package/dist/chunks/{PickerField-CHRS1h7K.js → PickerField-DoHv0WMH.js} +25 -16
- package/dist/chunks/{TourCard-BXuVHsfn.js → TourCard-BJ8i7dk0.js} +1 -1
- package/dist/components/ContextMenuItems.vue.js +1 -1
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpBadge.vue.js +1 -1
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpChart.vue.js +26 -24
- package/dist/components/LpCodeDisplay.vue.js +1 -1
- package/dist/components/LpColorPicker.vue.js +1 -1
- package/dist/components/LpContextMenu.vue.js +1 -1
- package/dist/components/LpCountdown.vue.js +1 -1
- package/dist/components/LpDataList.vue.js +1 -1
- package/dist/components/LpDatePicker.vue.d.ts +2 -0
- package/dist/components/LpDatePicker.vue.js +1 -1
- package/dist/components/LpDateRangePicker.vue.d.ts +2 -0
- package/dist/components/LpDateRangePicker.vue.js +1 -1
- package/dist/components/LpDropdownMenu.vue.js +1 -1
- package/dist/components/LpEditable.vue.js +1 -1
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpGauge.vue.js +1 -1
- package/dist/components/LpHintLayer.vue.js +1 -1
- package/dist/components/LpHints.vue.js +1 -1
- package/dist/components/LpInfraNode.vue.js +1 -1
- package/dist/components/LpLogViewer.vue.js +1 -1
- package/dist/components/LpMediaGallery.vue.js +1 -1
- package/dist/components/LpModalNav.vue.js +1 -1
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpPaletteFacts.vue.js +1 -1
- package/dist/components/LpPaletteStats.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.d.ts +7 -1
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpPipeline.vue.js +1 -1
- package/dist/components/LpPopover.vue.js +1 -1
- package/dist/components/LpQuota.vue.js +1 -1
- package/dist/components/LpRelativeTime.vue.js +1 -1
- package/dist/components/LpRepeater.vue.js +1 -1
- package/dist/components/LpRollingText.vue.d.ts +2 -0
- package/dist/components/LpRollingText.vue.js +1 -1
- package/dist/components/LpSecretField.vue.js +1 -1
- package/dist/components/LpSelect.vue.js +1 -1
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpStatus.vue.js +1 -1
- package/dist/components/LpStepMark.vue.js +1 -1
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpTable.vue.js +4 -4
- package/dist/components/LpTabs.vue.js +3 -3
- package/dist/components/LpTagsInput.vue.js +1 -1
- package/dist/components/LpThemeStudio.vue.js +1 -1
- package/dist/components/LpThemeSwitcher.vue.js +1 -1
- package/dist/components/LpTopologyCanvas.vue.js +1 -1
- package/dist/components/LpTour.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/components/PickerField.vue.d.ts +5 -3
- package/dist/components/PickerField.vue.js +1 -1
- package/dist/components/TourCard.vue.js +1 -1
- package/dist/components/menuWhen.js +1 -1
- package/dist/composables/useField.d.ts +5 -0
- package/dist/composables/useField.js +21 -1
- package/dist/composables/useForm.js +13 -4
- package/dist/composables/useView.js +4 -1
- package/dist/index.js +43 -43
- package/package.json +4 -1
- package/src/components/ContextMenuItems.vue +5 -2
- package/src/components/LpChart.vue +19 -17
- package/src/components/LpContextMenu.vue +4 -3
- package/src/components/LpDataList.vue +2 -2
- package/src/components/LpDatePicker.vue +2 -0
- package/src/components/LpDateRangePicker.vue +2 -0
- package/src/components/LpDropdownMenu.vue +1 -1
- package/src/components/LpEditable.vue +3 -1
- package/src/components/LpPasswordInput.vue +10 -5
- package/src/components/LpPopover.vue +4 -0
- package/src/components/LpRepeater.vue +64 -13
- package/src/components/LpRollingText.vue +12 -1
- package/src/components/LpSecretField.vue +15 -8
- package/src/components/LpSelect.vue +4 -9
- package/src/components/PickerField.vue +5 -4
- package/src/composables/useField.ts +26 -1
- package/src/composables/useForm.ts +14 -5
- package/src/composables/useView.ts +3 -0
- package/dist/chunks/LpRepeater-D0VjmD6y.js +0 -140
|
@@ -8,7 +8,7 @@ import { useTween, lerp, mixValues, resample } from "../composables/useTween.js"
|
|
|
8
8
|
import { normalise, pointCount, resolveLabels, extent, axisTicks, fitScale, plotHeight, plotWidth, xAt, yAt, areaPath, linePath, barPath, markerIndex, chartSummary, niceScale, nearestIndex, formatTick } from "./chart.js";
|
|
9
9
|
import { PANEL_SURFACE } from "./dropdown.js";
|
|
10
10
|
import { _ as _sfc_main$2 } from "../chunks/LegendSwatch-BhRjrtzv.js";
|
|
11
|
-
import { _ as _sfc_main$3 } from "../chunks/LpContextMenu-
|
|
11
|
+
import { _ as _sfc_main$3 } from "../chunks/LpContextMenu-Cj96ENDC.js";
|
|
12
12
|
import { _ as _sfc_main$6 } from "../chunks/LpEmptyState-KTKipws2.js";
|
|
13
13
|
import { _ as _sfc_main$7 } from "../chunks/LpShift-DXNsauQZ.js";
|
|
14
14
|
import { _ as _sfc_main$5 } from "../chunks/LpSkeleton-BB6XIV-w.js";
|
|
@@ -1166,37 +1166,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1166
1166
|
]),
|
|
1167
1167
|
_: 3
|
|
1168
1168
|
}, 8, ["items", "always"]),
|
|
1169
|
-
__props.dataTable && ready.value ? (openBlock(), createElementBlock("
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
createElementVNode("
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
return openBlock(), createElementBlock("th", {
|
|
1176
|
-
key: s.id,
|
|
1177
|
-
scope: "col"
|
|
1178
|
-
}, toDisplayString(s.name), 1);
|
|
1179
|
-
}), 128))
|
|
1180
|
-
])
|
|
1181
|
-
]),
|
|
1182
|
-
createElementVNode("tbody", null, [
|
|
1183
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(labels.value, (label, i) => {
|
|
1184
|
-
return openBlock(), createElementBlock("tr", { key: i }, [
|
|
1185
|
-
createElementVNode("th", _hoisted_54, toDisplayString(label), 1),
|
|
1169
|
+
__props.dataTable && ready.value ? (openBlock(), createElementBlock("div", _hoisted_52, [
|
|
1170
|
+
createElementVNode("table", null, [
|
|
1171
|
+
__props.title ? (openBlock(), createElementBlock("caption", _hoisted_53, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1172
|
+
createElementVNode("thead", null, [
|
|
1173
|
+
createElementVNode("tr", null, [
|
|
1174
|
+
_cache[0] || (_cache[0] = createElementVNode("th", { scope: "col" }, null, -1)),
|
|
1186
1175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(allSeries.value, (s) => {
|
|
1187
|
-
return openBlock(), createElementBlock("
|
|
1188
|
-
key: s.id
|
|
1189
|
-
|
|
1176
|
+
return openBlock(), createElementBlock("th", {
|
|
1177
|
+
key: s.id,
|
|
1178
|
+
scope: "col"
|
|
1179
|
+
}, toDisplayString(s.name), 1);
|
|
1190
1180
|
}), 128))
|
|
1191
|
-
])
|
|
1192
|
-
|
|
1181
|
+
])
|
|
1182
|
+
]),
|
|
1183
|
+
createElementVNode("tbody", null, [
|
|
1184
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(labels.value, (label, i) => {
|
|
1185
|
+
return openBlock(), createElementBlock("tr", { key: i }, [
|
|
1186
|
+
createElementVNode("th", _hoisted_54, toDisplayString(label), 1),
|
|
1187
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(allSeries.value, (s) => {
|
|
1188
|
+
return openBlock(), createElementBlock("td", {
|
|
1189
|
+
key: s.id
|
|
1190
|
+
}, toDisplayString(s.values[i] == null ? "—" : fmtSeries(s, s.values[i])), 1);
|
|
1191
|
+
}), 128))
|
|
1192
|
+
]);
|
|
1193
|
+
}), 128))
|
|
1194
|
+
])
|
|
1193
1195
|
])
|
|
1194
1196
|
])) : createCommentVNode("", true)
|
|
1195
1197
|
], 16, _hoisted_1);
|
|
1196
1198
|
};
|
|
1197
1199
|
}
|
|
1198
1200
|
});
|
|
1199
|
-
const LpChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1201
|
+
const LpChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a64e158"]]);
|
|
1200
1202
|
export {
|
|
1201
1203
|
LpChart as default
|
|
1202
1204
|
};
|
|
@@ -45,6 +45,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
45
45
|
*/
|
|
46
46
|
labels?: Partial<DatePickerLabels & CalendarLabels>;
|
|
47
47
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
48
|
+
blur: (event: FocusEvent) => any;
|
|
48
49
|
"update:modelValue": (value: string | undefined) => any;
|
|
49
50
|
}, string, import("vue").PublicProps, Readonly<{
|
|
50
51
|
/** Selected date "YYYY-MM-DD" (v-model). */
|
|
@@ -80,6 +81,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
80
81
|
*/
|
|
81
82
|
labels?: Partial<DatePickerLabels & CalendarLabels>;
|
|
82
83
|
}> & Readonly<{
|
|
84
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
83
85
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
84
86
|
}>, {
|
|
85
87
|
size: "sm" | "md" | "lg";
|
|
@@ -37,6 +37,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
37
37
|
*/
|
|
38
38
|
labels?: Partial<DateRangePickerLabels & CalendarLabels>;
|
|
39
39
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
40
|
+
blur: (event: FocusEvent) => any;
|
|
40
41
|
"update:modelValue": (value: DateRange | undefined) => any;
|
|
41
42
|
}, string, import("vue").PublicProps, Readonly<{
|
|
42
43
|
/** Selected range (v-model). */
|
|
@@ -63,6 +64,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
63
64
|
*/
|
|
64
65
|
labels?: Partial<DateRangePickerLabels & CalendarLabels>;
|
|
65
66
|
}> & Readonly<{
|
|
67
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
66
68
|
"onUpdate:modelValue"?: ((value: DateRange | undefined) => any) | undefined;
|
|
67
69
|
}>, {
|
|
68
70
|
size: "sm" | "md" | "lg";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, Fragment, renderList, normalizeStyle, createBlock, createVNode, renderSlot } from "vue";
|
|
2
2
|
import { _ as _sfc_main$2 } from "../chunks/HighlightText-BvnYZkhi.js";
|
|
3
3
|
import { _ as _sfc_main$1 } from "../chunks/LpIcon-HJP5xMz4.js";
|
|
4
|
-
import { _ as _sfc_main$3 } from "../chunks/LpRollingText-
|
|
4
|
+
import { _ as _sfc_main$3 } from "../chunks/LpRollingText-DiL717LK.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
import '../assets/LpPaletteFacts-B9FdVmIO.css';const _hoisted_1 = {
|
|
7
7
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeStyle, Fragment, renderList, createElementVNode, toDisplayString, createBlock } from "vue";
|
|
2
2
|
import { _ as _sfc_main$1 } from "../chunks/LpNumberFlow-Cfyh033Q.js";
|
|
3
|
-
import { _ as _sfc_main$2 } from "../chunks/LpRollingText-
|
|
3
|
+
import { _ as _sfc_main$2 } from "../chunks/LpRollingText-DiL717LK.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
import '../assets/LpPaletteStats-ClE-37MK.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "LpPaletteStats",
|
|
@@ -9,6 +9,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
invalid?: boolean;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/** Offer the show/hide button. When false, the field stays masked. */
|
|
13
|
+
revealable?: boolean;
|
|
12
14
|
label?: string;
|
|
13
15
|
hint?: string;
|
|
14
16
|
error?: string;
|
|
@@ -32,6 +34,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
32
34
|
placeholder?: string;
|
|
33
35
|
invalid?: boolean;
|
|
34
36
|
disabled?: boolean;
|
|
37
|
+
/** Offer the show/hide button. When false, the field stays masked. */
|
|
38
|
+
revealable?: boolean;
|
|
35
39
|
label?: string;
|
|
36
40
|
hint?: string;
|
|
37
41
|
error?: string;
|
|
@@ -45,7 +49,9 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
45
49
|
}> & Readonly<{
|
|
46
50
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
47
51
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
48
|
-
}>, {
|
|
52
|
+
}>, {
|
|
53
|
+
revealable: boolean;
|
|
54
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
49
55
|
leading?: (props: {}) => any;
|
|
50
56
|
} & {
|
|
51
57
|
actions?: (props: {}) => any;
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
* width — a value that grows shouldn't shove its neighbours.
|
|
11
11
|
*/
|
|
12
12
|
align?: "start" | "center" | "end";
|
|
13
|
+
/** Wrap to the available width instead of keeping a single line. */
|
|
14
|
+
wrap?: boolean;
|
|
13
15
|
};
|
|
14
16
|
declare var __VLS_7: {
|
|
15
17
|
value: string | number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent, computed, useAttrs, ref, shallowRef, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, createElementVNode, Transition, renderSlot, mergeProps, normalizeStyle, TransitionGroup, unref, withModifiers, nextTick } from "vue";
|
|
2
2
|
import { _ as _sfc_main$8 } from "../chunks/LpCheckbox-DHc2bHDe.js";
|
|
3
|
-
import { _ as _sfc_main$7 } from "../chunks/LpContextMenu-
|
|
3
|
+
import { _ as _sfc_main$7 } from "../chunks/LpContextMenu-Cj96ENDC.js";
|
|
4
4
|
import { _ as _sfc_main$c } from "../chunks/LpEmptyState-KTKipws2.js";
|
|
5
|
-
import { _ as _sfc_main$4 } from "../chunks/LpBadge-
|
|
5
|
+
import { _ as _sfc_main$4 } from "../chunks/LpBadge-BBq1Er9T.js";
|
|
6
6
|
import { _ as _sfc_main$2 } from "../chunks/LpIcon-HJP5xMz4.js";
|
|
7
7
|
import { _ as _sfc_main$b } from "../chunks/LpSkeleton-BB6XIV-w.js";
|
|
8
8
|
import { _ as _sfc_main$d } from "../chunks/LpPagination-VNCX6pFC.js";
|
|
9
|
-
import { _ as _sfc_main$9 } from "../chunks/LpPopover-
|
|
9
|
+
import { _ as _sfc_main$9 } from "../chunks/LpPopover-DmZ3wUtP.js";
|
|
10
10
|
import { _ as _sfc_main$6 } from "../chunks/LpScrollArea-Hz3-JWUG.js";
|
|
11
|
-
import { _ as _sfc_main$5 } from "../chunks/LpRollingText-
|
|
11
|
+
import { _ as _sfc_main$5 } from "../chunks/LpRollingText-DiL717LK.js";
|
|
12
12
|
import { _ as _sfc_main$3 } from "../chunks/LpShift-DXNsauQZ.js";
|
|
13
13
|
import { _ as _sfc_main$a } from "../chunks/LpTableFilter-DyvHGbOk.js";
|
|
14
14
|
import { useKitStorage } from "../composables/usePersisted.js";
|
|
@@ -4,10 +4,10 @@ import { TabsRoot, TabsList, TabsTrigger, TabsContent } from "reka-ui";
|
|
|
4
4
|
import { usePillTransition } from "../composables/usePillTransition.js";
|
|
5
5
|
import { prefersReducedMotion } from "../composables/easing.js";
|
|
6
6
|
import { _ as _sfc_main$3 } from "../chunks/AttentionDot-DCBf4aWg.js";
|
|
7
|
-
import { _ as _sfc_main$4 } from "../chunks/LpBadge-
|
|
8
|
-
import { _ as _sfc_main$1 } from "../chunks/LpContextMenu-
|
|
7
|
+
import { _ as _sfc_main$4 } from "../chunks/LpBadge-BBq1Er9T.js";
|
|
8
|
+
import { _ as _sfc_main$1 } from "../chunks/LpContextMenu-Cj96ENDC.js";
|
|
9
9
|
import { _ as _sfc_main$2 } from "../chunks/LpIcon-HJP5xMz4.js";
|
|
10
|
-
import { _ as _sfc_main$5 } from "../chunks/LpRollingText-
|
|
10
|
+
import { _ as _sfc_main$5 } from "../chunks/LpRollingText-DiL717LK.js";
|
|
11
11
|
import { _ as _sfc_main$6 } from "../chunks/LpSkeleton-BB6XIV-w.js";
|
|
12
12
|
import { pickTab } from "./tabs.js";
|
|
13
13
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper-1tPrXgE0.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type useFieldControl } from "../composables/useField";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
field: ReturnType<typeof useFieldControl>["value"];
|
|
4
4
|
display: string;
|
|
@@ -20,14 +20,16 @@ type __VLS_ModelProps = {
|
|
|
20
20
|
"open"?: boolean;
|
|
21
21
|
};
|
|
22
22
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
23
|
-
declare var
|
|
23
|
+
declare var __VLS_25: {};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
default?: (props: typeof
|
|
25
|
+
default?: (props: typeof __VLS_25) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
blur: (event: FocusEvent) => any;
|
|
28
29
|
clear: () => any;
|
|
29
30
|
"update:open": (value: boolean | undefined) => any;
|
|
30
31
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
31
33
|
onClear?: (() => any) | undefined;
|
|
32
34
|
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
33
35
|
}>, {
|
|
@@ -44,3 +44,8 @@ export declare function useFieldControl(own: () => FieldControlState): ComputedR
|
|
|
44
44
|
* `useForm().field()` could not mark such a field touched.
|
|
45
45
|
*/
|
|
46
46
|
export declare function focusLeft(event: FocusEvent): boolean;
|
|
47
|
+
/** Trigger and portalled content share a boundary for the control's public blur. */
|
|
48
|
+
export declare function useFieldBlur(blur: (event: FocusEvent) => void): {
|
|
49
|
+
partId: string;
|
|
50
|
+
onFocusOut: (event: FocusEvent) => void;
|
|
51
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useId, computed, provide, inject } from "vue";
|
|
1
|
+
import { useId, computed, provide, onScopeDispose, inject } from "vue";
|
|
2
2
|
const LP_FIELD = /* @__PURE__ */ Symbol.for("lp-field");
|
|
3
3
|
function provideField(context) {
|
|
4
4
|
provide(LP_FIELD, context);
|
|
@@ -40,11 +40,31 @@ function focusLeft(event) {
|
|
|
40
40
|
const next = event.relatedTarget;
|
|
41
41
|
return !(next instanceof Node && event.currentTarget?.contains(next));
|
|
42
42
|
}
|
|
43
|
+
function useFieldBlur(blur) {
|
|
44
|
+
const partId = `lp-field-${useId()}`;
|
|
45
|
+
let cancelPending;
|
|
46
|
+
const inside = (target) => !!target?.closest?.(`[data-lp-field-part="${partId}"]`);
|
|
47
|
+
function onFocusOut(event) {
|
|
48
|
+
cancelPending?.();
|
|
49
|
+
if (inside(event.relatedTarget)) return;
|
|
50
|
+
if (event.relatedTarget) return blur(event);
|
|
51
|
+
const doc = event.target.ownerDocument;
|
|
52
|
+
const view = doc.defaultView;
|
|
53
|
+
const frame = view.requestAnimationFrame(() => {
|
|
54
|
+
cancelPending = void 0;
|
|
55
|
+
if (!inside(doc.activeElement)) blur(event);
|
|
56
|
+
});
|
|
57
|
+
cancelPending = () => view.cancelAnimationFrame(frame);
|
|
58
|
+
}
|
|
59
|
+
onScopeDispose(() => cancelPending?.());
|
|
60
|
+
return { partId, onFocusOut };
|
|
61
|
+
}
|
|
43
62
|
export {
|
|
44
63
|
LP_FIELD,
|
|
45
64
|
fieldMessageId,
|
|
46
65
|
focusLeft,
|
|
47
66
|
provideField,
|
|
48
67
|
useField,
|
|
68
|
+
useFieldBlur,
|
|
49
69
|
useFieldControl
|
|
50
70
|
};
|