@mkbabb/glass-ui 3.0.0 → 3.1.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/dist/{CardFooter-Yi0xtLLd.js → CardFooter-CSGcJkqa.js} +1 -1
- package/dist/{CommandShortcut-BNDzfFnB.js → CommandShortcut-DWT19a2Y.js} +3 -3
- package/dist/{ContextMenuSubContent-DLEyeqbh.js → ContextMenuSubContent-gAFxJ-qi.js} +4 -4
- package/dist/{DataTable-Ce00dbHD.js → DataTable-R8-Zidms.js} +3 -3
- package/dist/{DialogContent-DSo7PKlU.js → DialogContent-2fALDSvc.js} +3 -3
- package/dist/{DialogFooter-D5KY6sCX.js → DialogFooter-ClrNEOVU.js} +2 -2
- package/dist/{DiscoGlyph-wRA02zAJ.js → DiscoGlyph-C3JfMnRV.js} +1 -1
- package/dist/{GlyphFace-BnPMUZ16.js → GlyphFace-BRS8vUb7.js} +1 -1
- package/dist/HoverPopover-CWFCfLx3.js +96 -0
- package/dist/{IconTooltip-GIeWdo64.js → IconTooltip-BkaA7tZ2.js} +1 -1
- package/dist/{Input-CBvqW8kZ.js → Input-DDpFn568.js} +3 -5
- package/dist/Label-DJty89bp.js +36 -0
- package/dist/{MetricBadge-DRBB18Xq.js → MetricBadge-DmAihkXd.js} +1 -1
- package/dist/{Notification-D97JO0fK.js → Notification-OqIpADml.js} +3 -3
- package/dist/NumberFieldContent-DTH9gb_N.js +141 -0
- package/dist/{PopoverContent-BCH4eYs8.js → PopoverContent-EiklFrna.js} +1 -1
- package/dist/{Progress-CCH-2UBR.js → Progress-FApA9fm_.js} +1 -1
- package/dist/{ScrollingText-7P8skg5W.js → ScrollingText-BFd0i2zJ.js} +2 -2
- package/dist/{SelectScrollDownButton-BwTexKeY.js → SelectScrollDownButton-Dth8-wXQ.js} +4 -4
- package/dist/{Toaster-CY8gJu9E.js → Toaster-Bjlunvq4.js} +1 -1
- package/dist/UnderlineTabs-DAWMLmJG.js +37 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +3 -3
- package/dist/badge.js +1 -1
- package/dist/{button-BlOW34DT.js → button-C0aHmBbt.js} +2 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +5 -5
- package/dist/{check-Nuw7H9Yh.js → check-dwgetki8.js} +1 -1
- package/dist/{chevron-down-Du2b9vY_.js → chevron-down-DILQA1t6.js} +1 -1
- package/dist/{chevron-right-CtDxpE3w.js → chevron-right-fS7fal2t.js} +1 -1
- package/dist/{chevron-up-CenYokvI.js → chevron-up-BtYjYQOS.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +57 -0
- package/dist/components/custom/dialog-native/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +20 -10
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +26 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +16 -2
- package/dist/components/custom/labeled-field/LabeledInput.vue.d.ts +17 -1
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +2 -0
- package/dist/components/ui/input/Input.vue.d.ts +10 -7
- package/dist/components/ui/label/Label.vue.d.ts +8 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +45 -8
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useUserInvalidAria.d.ts +32 -0
- package/dist/composables/motion/core/index.d.ts +2 -0
- package/dist/composables/motion/supportsCssTimeline.d.ts +8 -0
- package/dist/composables/motion/useRAFLoop.d.ts +7 -0
- package/dist/composables/motion/useScrollProgress.d.ts +6 -2
- package/dist/composables/motion/useStaggerReveal.d.ts +6 -0
- package/dist/composables/motion/useViewTransition.d.ts +31 -0
- package/dist/composables/motion/useYieldToMain.d.ts +29 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/{createLucideIcon-rHu18UQW.js → createLucideIcon-Bn9a1b70.js} +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +215 -196
- package/dist/dom.js +5 -4
- package/dist/{dropdown-menu-gHSkffW7.js → dropdown-menu-BvRUamNs.js} +4 -4
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +4 -4
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +47 -42
- package/dist/glass-carousel.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +156 -275
- package/dist/glyph-face.js +2 -2
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +96 -57
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-C_oyKVwZ.js → minimize-2-LsCJ_eNt.js} +1 -1
- package/dist/motion-core.js +135 -98
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.d.ts +1 -0
- package/dist/number-field.js +2 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +3 -3
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-7XEx_6hq.js → search-DBAiUABx.js} +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-BsBdO5jq.js → sheet-CukNDezz.js} +53 -53
- package/dist/sheet.js +1 -1
- package/dist/{slider-BQaLYFLh.js → slider-DJvHkTRe.js} +3 -3
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -2
- package/dist/styles/animations.css +77 -0
- package/dist/styles/cards.css +6 -2
- package/dist/styles/dock.css +37 -14
- package/dist/styles/glass.css +89 -6
- package/dist/styles/index.css +10 -1
- package/dist/styles/scroll-driven.css +72 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/tokens.css +237 -24
- package/dist/styles/typography.css +21 -0
- package/dist/styles/utilities.css +176 -23
- package/dist/styles/view-transition.css +62 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +2 -0
- package/dist/tabs.js +40 -36
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-2l13GibX.js → useAnimatedNumber-DKQYVB7s.js} +1 -1
- package/dist/{useConfiguratorState-BpZi8QJu.js → useConfiguratorState-CtRBE0m_.js} +8 -6
- package/dist/{useIdleReady-DlzJicQH.js → useIdleReady-Cmkhm03v.js} +1 -1
- package/dist/{useTouchGate-BhhEMlwJ.js → useTouchGate-D9Zvrzyc.js} +1 -1
- package/dist/useUserInvalidAria-DVu1eTXG.js +29 -0
- package/dist/useViewTransition-DYIK6Gzb.js +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/moveBefore.d.ts +15 -0
- package/dist/{x-Cb3NE2Ne.js → x-q7pJa83X.js} +1 -1
- package/package.json +19 -4
- package/src/styles/animations.css +77 -0
- package/src/styles/cards.css +6 -2
- package/src/styles/dock.css +37 -14
- package/src/styles/glass.css +89 -6
- package/src/styles/index.css +10 -1
- package/src/styles/scroll-driven.css +72 -0
- package/src/styles/theme.css +3 -0
- package/src/styles/tokens.css +237 -24
- package/src/styles/typography.css +21 -0
- package/src/styles/utilities.css +176 -23
- package/src/styles/view-transition.css +62 -0
- package/dist/HoverPopover-Btv4RQfv.js +0 -80
- package/dist/Label-C8QMJSsf.js +0 -32
- package/dist/UnderlineTabs-BtrUcXn-.js +0 -64
- /package/dist/{CollapsibleContent-DHRuXE3P.js → CollapsibleContent-CVMOcYlV.js} +0 -0
- /package/dist/{ContextMenuContent-CvXfU5qz.js → ContextMenuContent-otjFIu8v.js} +0 -0
- /package/dist/{HoverCardContent-4nN5-5bz.js → HoverCardContent-DaGrgJBO.js} +0 -0
- /package/dist/{InstrumentChassis-DOaVYyWq.js → InstrumentChassis-CnHTMxds.js} +0 -0
- /package/dist/{InstrumentRail-jHDqXj70.js → InstrumentRail-C6dEbi8E.js} +0 -0
- /package/dist/{ModalOverlay-DKLVY-cj.js → ModalOverlay-iWiAgbYH.js} +0 -0
- /package/dist/{PaperBackdrop-Bc2drCqJ.js → PaperBackdrop-CeZ-w0R0.js} +0 -0
- /package/dist/{SelectGroup-O69GTQ77.js → SelectGroup-DdR4tdDY.js} +0 -0
- /package/dist/{SelectSeparator-GTHxKO0a.js → SelectSeparator-CXm_hlqA.js} +0 -0
- /package/dist/{Separator-_NCypg_C.js → Separator-D8AUMhxY.js} +0 -0
- /package/dist/{Switch-CL0uxu8F.js → Switch-Cr1t_F_U.js} +0 -0
- /package/dist/{ToggleGroupItem-BYG_8M9M.js → ToggleGroupItem-OesUouE7.js} +0 -0
- /package/dist/{TooltipProvider-C5QLSPto.js → TooltipProvider-DE78vbEP.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-n-_DRHWS.js → _plugin-vue_export-helper-Dq1MygBL.js} +0 -0
- /package/dist/{badge-BbxVKZfw.js → badge-x46my_Fo.js} +0 -0
- /package/dist/{constants-D-8FN28s.js → constants-DwBwnG8N.js} +0 -0
- /package/dist/{dockContext-BDGSrwsV.js → dockContext-D5NZCWJs.js} +0 -0
- /package/dist/{keys-DVkcUktU.js → keys-CaTQS-vx.js} +0 -0
- /package/dist/{menuItemVariants-B2nDL7zH.js → menuItemVariants-BsbGNq9C.js} +0 -0
- /package/dist/{presets-BMzCDrmR.js → presets-a-D93K1S.js} +0 -0
- /package/dist/{useGlassRenderer-DMDdMH55.js → useGlassRenderer-Ds-nmrGz.js} +0 -0
- /package/dist/{useGlobalDark-PMiP5Jku.js → useGlobalDark-B0WvLJE3.js} +0 -0
- /package/dist/{useIntersectionPause-CXYfYg_C.js → useIntersectionPause-IY2CwPQb.js} +0 -0
- /package/dist/{useInterval-COlTCeVa.js → useInterval-DVgGUf_y.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CPO4AhLx.js → useKeyboardShortcuts-Dpw_RUcB.js} +0 -0
- /package/dist/{useResizeObserver-F4aRR4Cj.js → useResizeObserver-Cg9npuM3.js} +0 -0
- /package/dist/{useSortable-Ck0rBJ4g.js → useSortable-Cq2Y1JLO.js} +0 -0
- /package/dist/{useSpringMount-BTRBNzXP.js → useSpringMount-Cfk1XK1R.js} +0 -0
- /package/dist/{useTimer-lp5NlH4w.js → useTimer-NAaj9zNq.js} +0 -0
package/dist/glyph-face.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./keys-
|
|
2
|
-
import { t as r } from "./GlyphFace-
|
|
1
|
+
import { n as e, r as t, t as n } from "./keys-CaTQS-vx.js";
|
|
2
|
+
import { t as r } from "./GlyphFace-BRS8vUb7.js";
|
|
3
3
|
export { n as GLYPH_FACE_SILHOUETTE_KEY, r as GlyphFace, e as provideGlyphFaceSilhouette, t as useOptionalGlyphFaceSilhouette };
|
package/dist/header-ribbon.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
2
2
|
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, onBeforeUnmount as s, openBlock as c, ref as l, renderSlot as u } from "vue";
|
|
3
3
|
//#region src/components/custom/header-ribbon/HeaderRibbon.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var d = {
|
package/dist/hover-card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./HoverCardContent-
|
|
1
|
+
import { n as e, r as t, t as n } from "./HoverCardContent-DaGrgJBO.js";
|
|
2
2
|
export { t as HoverCard, n as HoverCardContent, e as HoverCardTrigger };
|
package/dist/hover-popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./HoverPopover-
|
|
1
|
+
import { t as e } from "./HoverPopover-CWFCfLx3.js";
|
|
2
2
|
export { e as HoverPopover };
|
package/dist/icon-tooltip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./IconTooltip-
|
|
1
|
+
import { t as e } from "./IconTooltip-BkaA7tZ2.js";
|
|
2
2
|
export { e as IconTooltip };
|
package/dist/index.d.ts
CHANGED
|
@@ -46,4 +46,5 @@ export * from "./composables/reactive";
|
|
|
46
46
|
export * from "./composables/dom";
|
|
47
47
|
export * from "./composables/glass";
|
|
48
48
|
export * from "./composables/sortable";
|
|
49
|
+
export { startViewTransition, supportsViewTransitions, type ViewTransitionResult, } from "./composables/motion/useViewTransition";
|
|
49
50
|
export * from "./utils";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./InstrumentChassis-
|
|
1
|
+
import { n as e, t } from "./InstrumentChassis-CnHTMxds.js";
|
|
2
2
|
export { e as ChassisDivider, t as InstrumentChassis };
|
package/dist/instrument-rail.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./InstrumentRail-
|
|
1
|
+
import { t as e } from "./InstrumentRail-C6dEbi8E.js";
|
|
2
2
|
export { e as InstrumentRail };
|
package/dist/keyboard.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./useKeyboardShortcuts-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./useKeyboardShortcuts-Dpw_RUcB.js";
|
|
2
2
|
export { i as formatCombo, n as formatComboParts, r as isMac, t as registerShortcut, e as useRegisteredShortcuts };
|
package/dist/label.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Label-
|
|
1
|
+
import { t as e } from "./Label-DJty89bp.js";
|
|
2
2
|
export { e as Label };
|
package/dist/labeled-field.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-
|
|
3
|
-
import { t as o } from "./SelectGroup-
|
|
4
|
-
import { n as s } from "./slider-
|
|
5
|
-
import { t as c } from "./Switch-
|
|
6
|
-
import { t as l } from "./IconTooltip-
|
|
7
|
-
import { t as u } from "./Input-
|
|
8
|
-
import { Fragment as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h,
|
|
2
|
+
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-Dth8-wXQ.js";
|
|
3
|
+
import { t as o } from "./SelectGroup-DdR4tdDY.js";
|
|
4
|
+
import { n as s } from "./slider-DJvHkTRe.js";
|
|
5
|
+
import { t as c } from "./Switch-Cr1t_F_U.js";
|
|
6
|
+
import { t as l } from "./IconTooltip-BkaA7tZ2.js";
|
|
7
|
+
import { t as u } from "./Input-DDpFn568.js";
|
|
8
|
+
import { Fragment as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, normalizeClass as b, openBlock as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useId as E, withCtx as D } from "vue";
|
|
9
9
|
//#region src/components/custom/labeled-field/LabeledField.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var O = { class: "labeled-field" }, k = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "text-destructive",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, A = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "text-destructive",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
}, j = ["id"], M = /* @__PURE__ */ y({
|
|
11
19
|
__name: "LabeledField",
|
|
12
20
|
props: {
|
|
13
21
|
label: {},
|
|
@@ -18,21 +26,32 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
18
26
|
String,
|
|
19
27
|
Object,
|
|
20
28
|
Array
|
|
21
|
-
] }
|
|
29
|
+
] },
|
|
30
|
+
required: { type: Boolean }
|
|
22
31
|
},
|
|
23
32
|
setup(t) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
let n = E();
|
|
34
|
+
return (r, i) => (x(), m("div", O, [
|
|
35
|
+
t.tooltip ? (x(), f(T(l), {
|
|
36
|
+
key: 0,
|
|
37
|
+
text: t.tooltip
|
|
38
|
+
}, {
|
|
39
|
+
default: D(() => [h("label", { class: b(T(e)("labeled-field-label", t.labelClass)) }, [_(w(t.label), 1), t.required ? (x(), m("span", k, " *")) : p("", !0)], 2)]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["text"])) : (x(), m("label", {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: b(T(e)("labeled-field-label", t.labelClass))
|
|
44
|
+
}, [_(w(t.label), 1), t.required ? (x(), m("span", A, " *")) : p("", !0)], 2)),
|
|
45
|
+
C(r.$slots, "default", { errorId: T(n) }),
|
|
46
|
+
r.$slots.error ? (x(), m("div", {
|
|
47
|
+
key: 2,
|
|
48
|
+
id: T(n),
|
|
49
|
+
class: "labeled-field-error",
|
|
50
|
+
"aria-live": "polite"
|
|
51
|
+
}, [C(r.$slots, "error")], 8, j)) : p("", !0)
|
|
52
|
+
]));
|
|
34
53
|
}
|
|
35
|
-
}),
|
|
54
|
+
}), N = /* @__PURE__ */ y({
|
|
36
55
|
__name: "LabeledInput",
|
|
37
56
|
props: {
|
|
38
57
|
modelValue: {},
|
|
@@ -40,37 +59,48 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
40
59
|
tooltip: {},
|
|
41
60
|
labelClass: {},
|
|
42
61
|
inputClass: {},
|
|
43
|
-
type: {}
|
|
62
|
+
type: {},
|
|
63
|
+
required: { type: Boolean }
|
|
44
64
|
},
|
|
45
65
|
emits: ["update:modelValue"],
|
|
46
66
|
setup(e, { emit: t }) {
|
|
47
67
|
let n = t;
|
|
48
|
-
return (t, r) => (
|
|
68
|
+
return (t, r) => (x(), f(M, {
|
|
49
69
|
label: e.label,
|
|
50
70
|
tooltip: e.tooltip,
|
|
51
|
-
"label-class": e.labelClass
|
|
52
|
-
|
|
53
|
-
|
|
71
|
+
"label-class": e.labelClass,
|
|
72
|
+
required: e.required
|
|
73
|
+
}, g({
|
|
74
|
+
default: D(({ errorId: i }) => [v(T(u), {
|
|
54
75
|
type: e.type ?? "string",
|
|
55
|
-
class:
|
|
76
|
+
class: b(e.inputClass ?? "fira-code"),
|
|
56
77
|
"model-value": e.modelValue,
|
|
78
|
+
required: e.required,
|
|
79
|
+
"aria-errormessage": t.$slots.error ? i : void 0,
|
|
57
80
|
onChange: r[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
58
81
|
}, null, 8, [
|
|
59
82
|
"type",
|
|
60
83
|
"class",
|
|
61
|
-
"model-value"
|
|
84
|
+
"model-value",
|
|
85
|
+
"required",
|
|
86
|
+
"aria-errormessage"
|
|
62
87
|
])]),
|
|
63
|
-
_:
|
|
64
|
-
},
|
|
88
|
+
_: 2
|
|
89
|
+
}, [t.$slots.error ? {
|
|
90
|
+
name: "error",
|
|
91
|
+
fn: D(() => [C(t.$slots, "error")]),
|
|
92
|
+
key: "0"
|
|
93
|
+
} : void 0]), 1032, [
|
|
65
94
|
"label",
|
|
66
95
|
"tooltip",
|
|
67
|
-
"label-class"
|
|
96
|
+
"label-class",
|
|
97
|
+
"required"
|
|
68
98
|
]));
|
|
69
99
|
}
|
|
70
|
-
}),
|
|
100
|
+
}), P = {
|
|
71
101
|
key: 0,
|
|
72
102
|
class: "ml-auto pl-2 text-micro text-muted-foreground whitespace-nowrap"
|
|
73
|
-
},
|
|
103
|
+
}, F = /* @__PURE__ */ y({
|
|
74
104
|
__name: "LabeledSelect",
|
|
75
105
|
props: {
|
|
76
106
|
modelValue: {},
|
|
@@ -79,33 +109,35 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
79
109
|
descriptions: {},
|
|
80
110
|
label: {},
|
|
81
111
|
tooltip: {},
|
|
82
|
-
labelClass: {}
|
|
112
|
+
labelClass: {},
|
|
113
|
+
required: { type: Boolean }
|
|
83
114
|
},
|
|
84
115
|
emits: ["update:modelValue", "update:open"],
|
|
85
116
|
setup(e, { emit: s }) {
|
|
86
117
|
let c = s;
|
|
87
|
-
return (s, l) => (
|
|
118
|
+
return (s, l) => (x(), f(M, {
|
|
88
119
|
label: e.label,
|
|
89
120
|
tooltip: e.tooltip,
|
|
90
|
-
"label-class": e.labelClass
|
|
121
|
+
"label-class": e.labelClass,
|
|
122
|
+
required: e.required
|
|
91
123
|
}, {
|
|
92
|
-
default:
|
|
124
|
+
default: D(() => [v(T(a), {
|
|
93
125
|
"model-value": e.modelValue,
|
|
94
126
|
open: e.isOpen,
|
|
95
127
|
"onUpdate:open": l[0] ||= (e) => c("update:open", e),
|
|
96
128
|
"onUpdate:modelValue": l[1] ||= (e) => c("update:modelValue", e)
|
|
97
129
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
default:
|
|
130
|
+
default: D(() => [v(T(t), { class: "fira-code" }, {
|
|
131
|
+
default: D(() => [v(T(r))]),
|
|
100
132
|
_: 1
|
|
101
|
-
}),
|
|
102
|
-
default:
|
|
103
|
-
default:
|
|
133
|
+
}), v(T(n), null, {
|
|
134
|
+
default: D(() => [v(T(o), { class: "fira-code" }, {
|
|
135
|
+
default: D(() => [(x(!0), m(d, null, S(e.items, (t) => (x(), f(T(i), {
|
|
104
136
|
key: t,
|
|
105
137
|
value: t
|
|
106
138
|
}, {
|
|
107
|
-
description:
|
|
108
|
-
default:
|
|
139
|
+
description: D(() => [e.descriptions?.[t] ? (x(), m("span", P, w(e.descriptions[t]), 1)) : p("", !0)]),
|
|
140
|
+
default: D(() => [_(w(t) + " ", 1)]),
|
|
109
141
|
_: 2
|
|
110
142
|
}, 1032, ["value"]))), 128))]),
|
|
111
143
|
_: 1
|
|
@@ -118,10 +150,11 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
118
150
|
}, 8, [
|
|
119
151
|
"label",
|
|
120
152
|
"tooltip",
|
|
121
|
-
"label-class"
|
|
153
|
+
"label-class",
|
|
154
|
+
"required"
|
|
122
155
|
]));
|
|
123
156
|
}
|
|
124
|
-
}),
|
|
157
|
+
}), I = /* @__PURE__ */ y({
|
|
125
158
|
__name: "LabeledSlider",
|
|
126
159
|
props: {
|
|
127
160
|
modelValue: {},
|
|
@@ -130,17 +163,19 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
130
163
|
labelClass: {},
|
|
131
164
|
min: {},
|
|
132
165
|
max: {},
|
|
133
|
-
step: {}
|
|
166
|
+
step: {},
|
|
167
|
+
required: { type: Boolean }
|
|
134
168
|
},
|
|
135
169
|
emits: ["update:modelValue"],
|
|
136
170
|
setup(e, { emit: t }) {
|
|
137
171
|
let n = t;
|
|
138
|
-
return (t, r) => (
|
|
172
|
+
return (t, r) => (x(), f(M, {
|
|
139
173
|
label: e.label,
|
|
140
174
|
tooltip: e.tooltip,
|
|
141
|
-
"label-class": e.labelClass
|
|
175
|
+
"label-class": e.labelClass,
|
|
176
|
+
required: e.required
|
|
142
177
|
}, {
|
|
143
|
-
default:
|
|
178
|
+
default: D(() => [v(T(s), {
|
|
144
179
|
class: "py-2",
|
|
145
180
|
min: e.min,
|
|
146
181
|
max: e.max,
|
|
@@ -159,26 +194,29 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
159
194
|
}, 8, [
|
|
160
195
|
"label",
|
|
161
196
|
"tooltip",
|
|
162
|
-
"label-class"
|
|
197
|
+
"label-class",
|
|
198
|
+
"required"
|
|
163
199
|
]));
|
|
164
200
|
}
|
|
165
|
-
}),
|
|
201
|
+
}), L = { class: "flex items-center" }, R = /* @__PURE__ */ y({
|
|
166
202
|
__name: "LabeledSwitch",
|
|
167
203
|
props: {
|
|
168
204
|
checked: { type: Boolean },
|
|
169
205
|
label: {},
|
|
170
206
|
tooltip: {},
|
|
171
|
-
labelClass: {}
|
|
207
|
+
labelClass: {},
|
|
208
|
+
required: { type: Boolean }
|
|
172
209
|
},
|
|
173
210
|
emits: ["update:checked"],
|
|
174
211
|
setup(e, { emit: t }) {
|
|
175
212
|
let n = t;
|
|
176
|
-
return (t, r) => (
|
|
213
|
+
return (t, r) => (x(), f(M, {
|
|
177
214
|
label: e.label,
|
|
178
215
|
tooltip: e.tooltip,
|
|
179
|
-
"label-class": e.labelClass
|
|
216
|
+
"label-class": e.labelClass,
|
|
217
|
+
required: e.required
|
|
180
218
|
}, {
|
|
181
|
-
default:
|
|
219
|
+
default: D(() => [h("div", L, [v(T(c), {
|
|
182
220
|
checked: e.checked,
|
|
183
221
|
"onUpdate:checked": r[0] ||= (e) => n("update:checked", e)
|
|
184
222
|
}, null, 8, ["checked"])])]),
|
|
@@ -186,9 +224,10 @@ var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
|
|
|
186
224
|
}, 8, [
|
|
187
225
|
"label",
|
|
188
226
|
"tooltip",
|
|
189
|
-
"label-class"
|
|
227
|
+
"label-class",
|
|
228
|
+
"required"
|
|
190
229
|
]));
|
|
191
230
|
}
|
|
192
231
|
});
|
|
193
232
|
//#endregion
|
|
194
|
-
export {
|
|
233
|
+
export { M as LabeledField, N as LabeledInput, F as LabeledSelect, I as LabeledSlider, R as LabeledSwitch };
|
package/dist/metric-badge.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./MetricBadge-
|
|
1
|
+
import { t as e } from "./MetricBadge-DmAihkXd.js";
|
|
2
2
|
export { e as MetricBadge };
|
package/dist/metric-stack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/custom/metric-stack/MetricStack.vue
|