@mkbabb/glass-ui 3.13.0 → 4.0.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/CardAction-XH4YBVEK.js +158 -0
- package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DdtWXxOK.js} +57 -52
- package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-B0Vs6atR.js} +1 -1
- package/dist/{DataTable-BCddn3T3.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-8eZbdmPc.js} +1 -1
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-BpC0R_Ec.js} +1 -1
- package/dist/{Notification-DdwNxIrI.js → Notification-DKjKsQq8.js} +8 -8
- package/dist/{NumberFieldContent-CqaN-SvN.js → NumberFieldContent-1VtwDSgf.js} +1 -1
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-DwlUKGbr.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-C1jb3b3K.js} +22 -6
- package/dist/{Switch-CsIuYP_e.js → Switch-Dr--uLGH.js} +1 -1
- package/dist/{Toaster-D6q4HtXu.js → Toaster-Bm_HQSpc.js} +6 -6
- package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-Dzk9hWsF.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +8 -5
- package/dist/api.js +2 -2
- package/dist/aurora.js +132 -117
- package/dist/{button-ChXMfsud.js → button-BNDWhAZb.js} +2 -2
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +97 -141
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/aurora/constants/presets.d.ts +28 -0
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/constellationField.d.ts +2 -369
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +1 -1
- package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
- package/dist/components/custom/dock/constants.d.ts +35 -0
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +17 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +11 -1
- package/dist/components/custom/goo-blob/constants.d.ts +6 -1
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +269 -0
- package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +52 -0
- package/dist/components/custom/handmark/index.d.ts +27 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +62 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +15 -2
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +9 -3
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/card/Card.vue.d.ts +1 -1
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +23 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +2 -2
- package/dist/constellation.js +92 -94
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +10 -4
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +510 -321
- package/dist/{dockContext-BegmJVmx.js → dockContext-Bu1Avy-a.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-BJ7E9js_.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +42 -38
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +3 -3
- package/dist/fourier-field.js +38 -37
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +39 -36
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +129 -145
- package/dist/goo-blob.js +86 -81
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +707 -0
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/{math-U6-RrLmV.js → math-DeuJwLFx.js} +11 -3
- package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +25 -22
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +33 -32
- package/dist/motion-curves.js +1 -1
- package/dist/motion.js +4 -4
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +5 -5
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-1fChZjtw.js → sheet-CquRYOAw.js} +59 -55
- package/dist/sheet.js +1 -1
- package/dist/{slider-B-JP2JlI.js → slider-DQ95MET2.js} +7 -7
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/animations.css +11 -26
- package/dist/styles/components.css +1 -1
- package/dist/styles/configurator.css +35 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/overflow.css +15 -0
- package/dist/styles/dock/rail-extend.css +168 -71
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +34 -5
- package/dist/styles/dock-controls/icon-button.css +11 -1
- package/dist/styles/dock-controls/tab-button.css +24 -83
- package/dist/styles/dock-controls/triggers.css +7 -0
- package/dist/styles/dock.css +6 -3
- package/dist/styles/drawer.css +46 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/glass/ladder.css +68 -22
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +88 -12
- package/dist/styles/glass.css +5 -2
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +67 -5
- package/dist/styles/instrument-chassis.css +42 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/segmented-tabs.css +160 -89
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +11 -1
- package/dist/styles/tokens/color-radius.css +40 -13
- package/dist/styles/tokens/dark-arm.css +124 -16
- package/dist/styles/tokens/glass.css +83 -23
- package/dist/styles/tokens/light-dark.css +48 -19
- package/dist/styles/tokens/offsets-sizing.css +62 -0
- package/dist/styles/tokens/property-regs.css +3 -10
- package/dist/styles/tokens/scale-paper.css +45 -2
- package/dist/styles/tokens/scheme-motion.css +32 -14
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +159 -0
- package/dist/styles/typography.css +23 -507
- package/dist/styles/utilities/a11y-overrides.css +33 -4
- package/dist/styles/utilities/base.css +177 -1
- package/dist/styles/utilities/btn.css +18 -201
- package/dist/styles/view-transition.css +4 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +154 -183
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
- package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-CdwJ7284.js} +1 -1
- package/dist/{useSpringMount-CI2jOstM.js → useSpringMount-CvopqiFr.js} +1 -1
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/{vReveal-CqaCz_mC.js → useViewTransition-COsPjQVZ.js} +15 -12
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +12 -5
- package/package.json +71 -7
- package/src/styles/animations.css +11 -26
- package/src/styles/configurator.css +35 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/overflow.css +15 -0
- package/src/styles/dock/rail-extend.css +168 -71
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +34 -5
- package/src/styles/dock-controls/icon-button.css +11 -1
- package/src/styles/dock-controls/tab-button.css +24 -83
- package/src/styles/dock-controls/triggers.css +7 -0
- package/src/styles/dock.css +6 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/glass/ladder.css +68 -22
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +88 -12
- package/src/styles/glass.css +5 -2
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +66 -4
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/segmented-tabs.css +156 -87
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +11 -1
- package/src/styles/tokens/color-radius.css +40 -13
- package/src/styles/tokens/dark-arm.css +124 -16
- package/src/styles/tokens/glass.css +83 -23
- package/src/styles/tokens/light-dark.css +48 -19
- package/src/styles/tokens/offsets-sizing.css +62 -0
- package/src/styles/tokens/property-regs.css +3 -10
- package/src/styles/tokens/scale-paper.css +45 -2
- package/src/styles/tokens/scheme-motion.css +32 -14
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +159 -0
- package/src/styles/typography.css +23 -507
- package/src/styles/utilities/a11y-overrides.css +33 -4
- package/src/styles/utilities/base.css +177 -1
- package/src/styles/utilities/btn.css +18 -201
- package/src/styles/view-transition.css +4 -1
- package/dist/CardAction-Cj2eycQ2.js +0 -157
- package/dist/DialogContent-Dl9WkAoS.js +0 -100
- package/dist/PopoverContent-BYwt2-4x.js +0 -121
- package/dist/TabsList-Dttss653.js +0 -105
- package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
- package/dist/components/custom/underline/index.d.ts +0 -2
- package/dist/components/custom/underline/types.d.ts +0 -56
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/underline.d.ts +0 -1
- package/dist/underline.js +0 -85
- package/dist/useConfiguratorState-DAoeHVue.js +0 -287
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-DSjasZIt.js} +0 -0
- /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{Label-r3WzWrsj.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-0JE6LtNu.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
- /package/dist/{compile-B7NGOBcP.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-BM46COQ-.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{springPresets--YdWTHtm.js → springPresets-WXaLbu8u.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-iHludrxk.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-C12hXwOZ.js} +0 -0
- /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-Dzarvzuk.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-CvBcCYDf.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
3
|
-
import { t as n } from "./_plugin-vue_export-helper-
|
|
4
|
-
import { n as r, r as i, t as a } from "./ContextMenuContent-
|
|
5
|
-
import { t as o } from "./useResizeObserver-
|
|
6
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, normalizeClass as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, toValue as T, unref as E, useModel as
|
|
2
|
+
import { n as t } from "./button-BNDWhAZb.js";
|
|
3
|
+
import { t as n } from "./_plugin-vue_export-helper-CBt_VvXa.js";
|
|
4
|
+
import { n as r, r as i, t as a } from "./ContextMenuContent-ON3x7cuk.js";
|
|
5
|
+
import { t as o } from "./useResizeObserver-V6nq5gJb.js";
|
|
6
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, normalizeClass as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, toValue as T, unref as E, useModel as D, useSlots as ee, withCtx as O, withModifiers as k } from "vue";
|
|
7
7
|
//#region src/components/ui/table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
8
|
+
var A = {
|
|
9
9
|
"data-slot": "table",
|
|
10
10
|
class: "relative w-full overflow-auto"
|
|
11
|
-
},
|
|
11
|
+
}, j = /* @__PURE__ */ h({
|
|
12
12
|
__name: "Table",
|
|
13
13
|
props: { class: { type: [
|
|
14
14
|
Boolean,
|
|
@@ -19,9 +19,9 @@ var k = {
|
|
|
19
19
|
] } },
|
|
20
20
|
setup(t) {
|
|
21
21
|
let n = t;
|
|
22
|
-
return (t, r) => (y(), d("div",
|
|
22
|
+
return (t, r) => (y(), d("div", A, [f("table", { class: v(E(e)("w-full caption-bottom text-sm", n.class)) }, [S(t.$slots, "default")], 2)]));
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
24
|
+
}), M = /* @__PURE__ */ h({
|
|
25
25
|
__name: "TableBody",
|
|
26
26
|
props: { class: { type: [
|
|
27
27
|
Boolean,
|
|
@@ -34,7 +34,7 @@ var k = {
|
|
|
34
34
|
let n = t;
|
|
35
35
|
return (t, r) => (y(), d("tbody", { class: v(E(e)("[&_tr:last-child]:border-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), N = /* @__PURE__ */ h({
|
|
38
38
|
__name: "TableCell",
|
|
39
39
|
props: { class: { type: [
|
|
40
40
|
Boolean,
|
|
@@ -47,7 +47,7 @@ var k = {
|
|
|
47
47
|
let n = t;
|
|
48
48
|
return (t, r) => (y(), d("td", { class: v(E(e)("table-cell align-middle [&:has([role=checkbox])]:pr-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), P = /* @__PURE__ */ h({
|
|
51
51
|
__name: "TableHead",
|
|
52
52
|
props: { class: { type: [
|
|
53
53
|
Boolean,
|
|
@@ -60,7 +60,7 @@ var k = {
|
|
|
60
60
|
let n = t;
|
|
61
61
|
return (t, r) => (y(), d("th", { class: v(E(e)("table-head text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", n.class)) }, [S(t.$slots, "default")], 2));
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), F = /* @__PURE__ */ h({
|
|
64
64
|
__name: "TableHeader",
|
|
65
65
|
props: { class: { type: [
|
|
66
66
|
Boolean,
|
|
@@ -73,7 +73,7 @@ var k = {
|
|
|
73
73
|
let n = t;
|
|
74
74
|
return (t, r) => (y(), d("thead", { class: v(E(e)("[&_tr]:border-b", n.class)) }, [S(t.$slots, "default")], 2));
|
|
75
75
|
}
|
|
76
|
-
}),
|
|
76
|
+
}), I = /* @__PURE__ */ h({
|
|
77
77
|
__name: "TableRow",
|
|
78
78
|
props: { class: { type: [
|
|
79
79
|
Boolean,
|
|
@@ -86,7 +86,7 @@ var k = {
|
|
|
86
86
|
let n = t;
|
|
87
87
|
return (t, r) => (y(), d("tr", { class: v(E(e)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", n.class)) }, [S(t.$slots, "default")], 2));
|
|
88
88
|
}
|
|
89
|
-
}),
|
|
89
|
+
}), L = { class: "flex items-center justify-center py-10" }, R = /* @__PURE__ */ h({
|
|
90
90
|
__name: "TableEmpty",
|
|
91
91
|
props: {
|
|
92
92
|
class: { type: [
|
|
@@ -103,18 +103,19 @@ var k = {
|
|
|
103
103
|
let { class: e, ...t } = n;
|
|
104
104
|
return t;
|
|
105
105
|
});
|
|
106
|
-
return (t, i) => (y(), l(
|
|
107
|
-
default:
|
|
108
|
-
default:
|
|
106
|
+
return (t, i) => (y(), l(I, null, {
|
|
107
|
+
default: O(() => [m(N, _({ class: E(e)("p-4 whitespace-nowrap align-middle text-sm text-foreground", n.class) }, r.value), {
|
|
108
|
+
default: O(() => [f("div", L, [S(t.$slots, "default")])]),
|
|
109
109
|
_: 3
|
|
110
110
|
}, 16, ["class"])]),
|
|
111
111
|
_: 3
|
|
112
112
|
}));
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
114
|
+
}), z = ["data-surface"], B = /* @__PURE__ */ n(/* @__PURE__ */ h({
|
|
115
115
|
__name: "Skeleton",
|
|
116
116
|
props: {
|
|
117
117
|
variant: { default: "pulse" },
|
|
118
|
+
surface: { default: "opaque" },
|
|
118
119
|
class: { type: [
|
|
119
120
|
Boolean,
|
|
120
121
|
null,
|
|
@@ -127,13 +128,14 @@ var k = {
|
|
|
127
128
|
let n = t;
|
|
128
129
|
return (r, i) => (y(), d("div", {
|
|
129
130
|
"data-slot": "skeleton",
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
"data-surface": t.surface,
|
|
132
|
+
class: v(E(e)("rounded-input", t.surface === "opaque" && "bg-muted", t.surface === "glass" && "skeleton-over-glass", t.variant === "pulse" && "animate-pulse", t.variant === "shimmer" && "skeleton-shimmer", t.variant === "breath" && "skeleton-breath", n.class))
|
|
133
|
+
}, null, 10, z));
|
|
132
134
|
}
|
|
133
|
-
}), [["__scopeId", "data-v-
|
|
135
|
+
}), [["__scopeId", "data-v-e270610f"]]), V = { class: "tabular-nums" }, H = { class: "flex items-center gap-1" }, U = {
|
|
134
136
|
key: 0,
|
|
135
137
|
class: "px-1 select-none"
|
|
136
|
-
},
|
|
138
|
+
}, W = /* @__PURE__ */ h({
|
|
137
139
|
__name: "DataTablePagination",
|
|
138
140
|
props: {
|
|
139
141
|
page: {},
|
|
@@ -156,7 +158,7 @@ var k = {
|
|
|
156
158
|
let t = Math.min(Math.max(1, e), o.value);
|
|
157
159
|
t !== i.page && a("update:page", t);
|
|
158
160
|
}
|
|
159
|
-
return (r, a) => (y(), d("div", { class: v(E(e)("flex items-center justify-between border-t border-border px-4 py-2 text-sm text-muted-foreground", i.class)) }, [f("span",
|
|
161
|
+
return (r, a) => (y(), d("div", { class: v(E(e)("flex items-center justify-between border-t border-border px-4 py-2 text-sm text-muted-foreground", i.class)) }, [f("span", V, w(n.total.toLocaleString()) + " result" + w(n.total === 1 ? "" : "s"), 1), f("div", H, [
|
|
160
162
|
m(E(t), {
|
|
161
163
|
variant: "ghost",
|
|
162
164
|
size: "icon",
|
|
@@ -164,7 +166,7 @@ var k = {
|
|
|
164
166
|
onClick: a[0] ||= (e) => g(1),
|
|
165
167
|
"aria-label": "First page"
|
|
166
168
|
}, {
|
|
167
|
-
default:
|
|
169
|
+
default: O(() => [...a[4] ||= [p(" ⟨⟨ ", -1)]]),
|
|
168
170
|
_: 1
|
|
169
171
|
}, 8, ["disabled"]),
|
|
170
172
|
m(E(t), {
|
|
@@ -174,17 +176,17 @@ var k = {
|
|
|
174
176
|
onClick: a[1] ||= (e) => g(u.value - 1),
|
|
175
177
|
"aria-label": "Previous page"
|
|
176
178
|
}, {
|
|
177
|
-
default:
|
|
179
|
+
default: O(() => [...a[5] ||= [p(" ⟨ ", -1)]]),
|
|
178
180
|
_: 1
|
|
179
181
|
}, 8, ["disabled"]),
|
|
180
|
-
(y(!0), d(s, null, x(h.value, (e, n) => (y(), d(s, { key: n }, [e === null ? (y(), d("span",
|
|
182
|
+
(y(!0), d(s, null, x(h.value, (e, n) => (y(), d(s, { key: n }, [e === null ? (y(), d("span", U, "...")) : (y(), l(E(t), {
|
|
181
183
|
key: 1,
|
|
182
184
|
variant: e === u.value ? "default" : "ghost",
|
|
183
185
|
size: "icon",
|
|
184
186
|
class: "tabular-nums",
|
|
185
187
|
onClick: (t) => g(e)
|
|
186
188
|
}, {
|
|
187
|
-
default:
|
|
189
|
+
default: O(() => [p(w(e), 1)]),
|
|
188
190
|
_: 2
|
|
189
191
|
}, 1032, ["variant", "onClick"]))], 64))), 128)),
|
|
190
192
|
m(E(t), {
|
|
@@ -194,7 +196,7 @@ var k = {
|
|
|
194
196
|
onClick: a[2] ||= (e) => g(u.value + 1),
|
|
195
197
|
"aria-label": "Next page"
|
|
196
198
|
}, {
|
|
197
|
-
default:
|
|
199
|
+
default: O(() => [...a[6] ||= [p(" ⟩ ", -1)]]),
|
|
198
200
|
_: 1
|
|
199
201
|
}, 8, ["disabled"]),
|
|
200
202
|
m(E(t), {
|
|
@@ -204,7 +206,7 @@ var k = {
|
|
|
204
206
|
onClick: a[3] ||= (e) => g(o.value),
|
|
205
207
|
"aria-label": "Last page"
|
|
206
208
|
}, {
|
|
207
|
-
default:
|
|
209
|
+
default: O(() => [...a[7] ||= [p(" ⟩⟩ ", -1)]]),
|
|
208
210
|
_: 1
|
|
209
211
|
}, 8, ["disabled"])
|
|
210
212
|
])], 2));
|
|
@@ -212,25 +214,25 @@ var k = {
|
|
|
212
214
|
});
|
|
213
215
|
//#endregion
|
|
214
216
|
//#region src/components/ui/data-table/composables/useDataTableRowIdentity.ts
|
|
215
|
-
function
|
|
217
|
+
function G(e) {
|
|
216
218
|
if (e) return e.length === 0 ? e() : e;
|
|
217
219
|
}
|
|
218
|
-
function
|
|
220
|
+
function K(e, t) {
|
|
219
221
|
return t.split(".").reduce((e, t) => {
|
|
220
222
|
if (!(typeof e != "object" || !e)) return e[t];
|
|
221
223
|
}, e);
|
|
222
224
|
}
|
|
223
|
-
function
|
|
225
|
+
function q(e) {
|
|
224
226
|
return typeof e == "string" || typeof e == "number" || typeof e == "symbol";
|
|
225
227
|
}
|
|
226
|
-
function
|
|
228
|
+
function J(e) {
|
|
227
229
|
return typeof e == "symbol" ? e.toString() : JSON.stringify(e);
|
|
228
230
|
}
|
|
229
|
-
function
|
|
231
|
+
function Y(e) {
|
|
230
232
|
let { rows: t, rowKey: n, getRowId: r } = e, i = /* @__PURE__ */ new WeakMap(), a = 0;
|
|
231
233
|
function o(e) {
|
|
232
|
-
let t =
|
|
233
|
-
return t ? t(e) :
|
|
234
|
+
let t = G(r);
|
|
235
|
+
return t ? t(e) : K(e, T(n));
|
|
234
236
|
}
|
|
235
237
|
function s(e) {
|
|
236
238
|
let t = e, n = i.get(t);
|
|
@@ -240,22 +242,22 @@ function q(e) {
|
|
|
240
242
|
}
|
|
241
243
|
return { rowEntries: c(() => {
|
|
242
244
|
let e = T(t), n = e.map((e) => o(e)), r = /* @__PURE__ */ new Map();
|
|
243
|
-
for (let e of n)
|
|
244
|
-
let i = n.filter((e) => !
|
|
245
|
+
for (let e of n) q(e) && r.set(e, (r.get(e) ?? 0) + 1);
|
|
246
|
+
let i = n.filter((e) => !q(e)).length;
|
|
245
247
|
i > 0 && `${i}`;
|
|
246
|
-
let a = Array.from(r).filter(([, e]) => e > 1).map(([e]) =>
|
|
248
|
+
let a = Array.from(r).filter(([, e]) => e > 1).map(([e]) => J(e));
|
|
247
249
|
return a.length > 0 && (`${a.join(",")}`, `${a.join(", ")}`), e.map((e, t) => {
|
|
248
250
|
let i = n[t];
|
|
249
251
|
return {
|
|
250
252
|
row: e,
|
|
251
|
-
key:
|
|
253
|
+
key: q(i) && r.get(i) === 1 ? i : s(e)
|
|
252
254
|
};
|
|
253
255
|
});
|
|
254
256
|
}) };
|
|
255
257
|
}
|
|
256
258
|
//#endregion
|
|
257
259
|
//#region src/components/ui/data-table/composables/useDataTableResponsive.ts
|
|
258
|
-
function
|
|
260
|
+
function X(e) {
|
|
259
261
|
let { columns: t, responsive: n, cardBreakpoint: r, containerWidth: i } = e;
|
|
260
262
|
return {
|
|
261
263
|
isCard: c(() => {
|
|
@@ -268,10 +270,10 @@ function J(e) {
|
|
|
268
270
|
}
|
|
269
271
|
//#endregion
|
|
270
272
|
//#region src/components/ui/data-table/DataTable.vue?vue&type=script&setup=true&lang.ts
|
|
271
|
-
var
|
|
273
|
+
var Z = {
|
|
272
274
|
key: 0,
|
|
273
275
|
class: "flex flex-col gap-2"
|
|
274
|
-
},
|
|
276
|
+
}, te = {
|
|
275
277
|
key: 1,
|
|
276
278
|
class: "flex flex-col gap-2"
|
|
277
279
|
}, ne = ["onClick"], re = { class: "flex items-start justify-between gap-2" }, ie = { class: "min-w-0 font-medium" }, ae = {
|
|
@@ -280,7 +282,7 @@ var Y = {
|
|
|
280
282
|
}, oe = { class: "text-muted-foreground" }, se = {
|
|
281
283
|
key: 2,
|
|
282
284
|
class: "rounded-lg border border-border p-6 text-center text-muted-foreground"
|
|
283
|
-
},
|
|
285
|
+
}, Q = /* @__PURE__ */ h({
|
|
284
286
|
__name: "DataTable",
|
|
285
287
|
props: /* @__PURE__ */ g({
|
|
286
288
|
columns: {},
|
|
@@ -318,27 +320,27 @@ var Y = {
|
|
|
318
320
|
"load-more"
|
|
319
321
|
], ["update:page"]),
|
|
320
322
|
setup(t, { emit: n }) {
|
|
321
|
-
let h = t, g =
|
|
323
|
+
let h = t, g = D(t, "page"), _ = n, T = ee(), A = c(() => !!T["row-actions"]), L = c(() => !!T["row-context-menu"]), z = b(null), V = b(0);
|
|
322
324
|
o(z, (e) => {
|
|
323
|
-
|
|
325
|
+
V.value = e.width;
|
|
324
326
|
});
|
|
325
|
-
let { isCard:
|
|
327
|
+
let { isCard: H, headerColumn: U, bodyColumns: G } = X({
|
|
326
328
|
columns: () => h.columns,
|
|
327
329
|
responsive: () => h.responsive,
|
|
328
330
|
cardBreakpoint: () => h.cardBreakpoint,
|
|
329
|
-
containerWidth:
|
|
330
|
-
}), { rowEntries:
|
|
331
|
+
containerWidth: V
|
|
332
|
+
}), { rowEntries: K } = Y({
|
|
331
333
|
rows: () => h.rows,
|
|
332
334
|
rowKey: () => h.rowKey,
|
|
333
335
|
getRowId: () => h.getRowId
|
|
334
|
-
}),
|
|
335
|
-
function
|
|
336
|
+
}), q = c(() => Array.from({ length: Math.min(h.pageSize, 5) }, (e, t) => t));
|
|
337
|
+
function J(e, t) {
|
|
336
338
|
return t.split(".").reduce((e, t) => {
|
|
337
339
|
if (!(typeof e != "object" || !e)) return e[t];
|
|
338
340
|
}, e);
|
|
339
341
|
}
|
|
340
342
|
function Q(e, t) {
|
|
341
|
-
let n =
|
|
343
|
+
let n = J(e, t.key);
|
|
342
344
|
return t.formatter ? t.formatter(n, e) : n == null ? "—" : String(n);
|
|
343
345
|
}
|
|
344
346
|
function $(e) {
|
|
@@ -364,127 +366,127 @@ var Y = {
|
|
|
364
366
|
ref: z,
|
|
365
367
|
class: v(E(e)("overflow-hidden", h.class))
|
|
366
368
|
}, [
|
|
367
|
-
E(
|
|
369
|
+
E(H) ? (y(), d(s, { key: 0 }, [t.isLoading && t.rows.length === 0 ? (y(), d("div", Z, [(y(!0), d(s, null, x(q.value, (e) => (y(), d("div", {
|
|
368
370
|
key: "skel-card-" + e,
|
|
369
371
|
class: "rounded-lg border border-border p-3"
|
|
370
|
-
}, [m(E(
|
|
371
|
-
default:
|
|
372
|
-
default:
|
|
372
|
+
}, [m(E(B), { class: "mb-2 h-4 w-1/2" }), m(E(B), { class: "h-3 w-3/4" })]))), 128))])) : t.rows.length > 0 ? (y(), d("div", te, [(y(!0), d(s, null, x(E(K), (t) => (y(), l(C(L.value ? E(i) : "div"), { key: t.key }, {
|
|
373
|
+
default: O(() => [(y(), l(C(L.value ? E(r) : "div"), { "as-child": L.value ? !0 : void 0 }, {
|
|
374
|
+
default: O(() => [f("div", {
|
|
373
375
|
class: "cursor-pointer rounded-lg border border-border p-3 transition-colors hover:bg-muted/40",
|
|
374
376
|
onClick: (e) => _("select", t.row)
|
|
375
377
|
}, [f("div", re, [f("div", ie, [E(U)?.component ? (y(), l(C(E(U).component), {
|
|
376
378
|
key: 0,
|
|
377
|
-
value:
|
|
379
|
+
value: J(t.row, E(U).key),
|
|
378
380
|
row: t.row
|
|
379
|
-
}, null, 8, ["value", "row"])) : E(U) ? (y(), d(s, { key: 1 }, [p(w(Q(t.row, E(U))), 1)], 64)) : u("", !0)]),
|
|
381
|
+
}, null, 8, ["value", "row"])) : E(U) ? (y(), d(s, { key: 1 }, [p(w(Q(t.row, E(U))), 1)], 64)) : u("", !0)]), A.value ? (y(), d("div", {
|
|
380
382
|
key: 0,
|
|
381
383
|
class: "shrink-0",
|
|
382
|
-
onClick: o[0] ||=
|
|
383
|
-
}, [S(n.$slots, "row-actions", { row: t.row })])) : u("", !0)]), E(
|
|
384
|
+
onClick: o[0] ||= k(() => {}, ["stop"])
|
|
385
|
+
}, [S(n.$slots, "row-actions", { row: t.row })])) : u("", !0)]), E(G).length > 0 ? (y(), d("dl", ae, [(y(!0), d(s, null, x(E(G), (n) => (y(), d(s, { key: n.key }, [f("dt", oe, w(n.label), 1), f("dd", { class: v(E(e)("min-w-0 break-words", n.align === "right" && "text-right", n.class)) }, [n.component ? (y(), l(C(n.component), {
|
|
384
386
|
key: 0,
|
|
385
|
-
value:
|
|
387
|
+
value: J(t.row, n.key),
|
|
386
388
|
row: t.row
|
|
387
389
|
}, null, 8, ["value", "row"])) : (y(), d(s, { key: 1 }, [p(w(Q(t.row, n)), 1)], 64))], 2)], 64))), 128))])) : u("", !0)], 8, ne)]),
|
|
388
390
|
_: 2
|
|
389
|
-
}, 1032, ["as-child"])),
|
|
390
|
-
default:
|
|
391
|
+
}, 1032, ["as-child"])), L.value ? (y(), l(E(a), { key: 0 }, {
|
|
392
|
+
default: O(() => [S(n.$slots, "row-context-menu", { row: t.row })]),
|
|
391
393
|
_: 2
|
|
392
394
|
}, 1024)) : u("", !0)]),
|
|
393
395
|
_: 2
|
|
394
|
-
}, 1024))), 128))])) : (y(), d("div", se, [S(n.$slots, "empty", {}, () => [o[4] ||= p("No results found", -1)])]))], 64)) : (y(), l(E(
|
|
395
|
-
default:
|
|
396
|
-
default:
|
|
397
|
-
default:
|
|
396
|
+
}, 1024))), 128))])) : (y(), d("div", se, [S(n.$slots, "empty", {}, () => [o[4] ||= p("No results found", -1)])]))], 64)) : (y(), l(E(j), { key: 1 }, {
|
|
397
|
+
default: O(() => [m(E(F), null, {
|
|
398
|
+
default: O(() => [m(E(I), { class: "text-muted-foreground" }, {
|
|
399
|
+
default: O(() => [(y(!0), d(s, null, x(t.columns, (t) => (y(), l(E(P), {
|
|
398
400
|
key: t.key,
|
|
399
401
|
class: v(E(e)($(t.align), t.sortable && "cursor-pointer select-none", t.headerClass)),
|
|
400
402
|
onClick: (e) => ce(t)
|
|
401
403
|
}, {
|
|
402
|
-
default:
|
|
404
|
+
default: O(() => [p(w(t.label) + w(le(t)), 1)]),
|
|
403
405
|
_: 2
|
|
404
|
-
}, 1032, ["class", "onClick"]))), 128)),
|
|
406
|
+
}, 1032, ["class", "onClick"]))), 128)), A.value ? (y(), l(E(P), {
|
|
405
407
|
key: 0,
|
|
406
408
|
class: "w-10"
|
|
407
409
|
})) : u("", !0)]),
|
|
408
410
|
_: 1
|
|
409
411
|
})]),
|
|
410
412
|
_: 1
|
|
411
|
-
}), m(E(
|
|
412
|
-
default:
|
|
413
|
-
default:
|
|
413
|
+
}), m(E(M), null, {
|
|
414
|
+
default: O(() => [t.isLoading && t.rows.length === 0 ? (y(!0), d(s, { key: 0 }, x(q.value, (e) => (y(), l(E(I), { key: "skel-" + e }, {
|
|
415
|
+
default: O(() => [(y(!0), d(s, null, x(t.columns, (e) => (y(), l(E(N), {
|
|
414
416
|
key: e.key,
|
|
415
417
|
class: v($(e.align))
|
|
416
418
|
}, {
|
|
417
|
-
default:
|
|
419
|
+
default: O(() => [m(E(B), { class: "h-4 w-3/4" })]),
|
|
418
420
|
_: 1
|
|
419
|
-
}, 8, ["class"]))), 128)),
|
|
421
|
+
}, 8, ["class"]))), 128)), A.value ? (y(), l(E(N), {
|
|
420
422
|
key: 0,
|
|
421
423
|
class: "w-10"
|
|
422
424
|
}, {
|
|
423
|
-
default:
|
|
425
|
+
default: O(() => [m(E(B), { class: "h-4 w-6" })]),
|
|
424
426
|
_: 1
|
|
425
427
|
})) : u("", !0)]),
|
|
426
428
|
_: 1
|
|
427
|
-
}))), 128)) : t.rows.length > 0 ? (y(!0), d(s, { key: 1 }, x(E(
|
|
428
|
-
default:
|
|
429
|
-
default:
|
|
429
|
+
}))), 128)) : t.rows.length > 0 ? (y(!0), d(s, { key: 1 }, x(E(K), (c) => (y(), d(s, { key: c.key }, [L.value ? (y(), l(E(i), { key: 0 }, {
|
|
430
|
+
default: O(() => [m(E(r), { "as-child": "" }, {
|
|
431
|
+
default: O(() => [m(E(I), {
|
|
430
432
|
class: "cursor-pointer",
|
|
431
433
|
onClick: (e) => _("select", c.row)
|
|
432
434
|
}, {
|
|
433
|
-
default:
|
|
435
|
+
default: O(() => [(y(!0), d(s, null, x(t.columns, (t) => (y(), l(E(N), {
|
|
434
436
|
key: t.key,
|
|
435
437
|
class: v(E(e)($(t.align), t.class))
|
|
436
438
|
}, {
|
|
437
|
-
default:
|
|
439
|
+
default: O(() => [t.component ? (y(), l(C(t.component), {
|
|
438
440
|
key: 0,
|
|
439
|
-
value:
|
|
441
|
+
value: J(c.row, t.key),
|
|
440
442
|
row: c.row
|
|
441
443
|
}, null, 8, ["value", "row"])) : (y(), d(s, { key: 1 }, [p(w(Q(c.row, t)), 1)], 64))]),
|
|
442
444
|
_: 2
|
|
443
|
-
}, 1032, ["class"]))), 128)),
|
|
445
|
+
}, 1032, ["class"]))), 128)), A.value ? (y(), l(E(N), {
|
|
444
446
|
key: 0,
|
|
445
447
|
class: "w-10",
|
|
446
|
-
onClick: o[1] ||=
|
|
448
|
+
onClick: o[1] ||= k(() => {}, ["stop"])
|
|
447
449
|
}, {
|
|
448
|
-
default:
|
|
450
|
+
default: O(() => [S(n.$slots, "row-actions", { row: c.row })]),
|
|
449
451
|
_: 2
|
|
450
452
|
}, 1024)) : u("", !0)]),
|
|
451
453
|
_: 2
|
|
452
454
|
}, 1032, ["onClick"])]),
|
|
453
455
|
_: 2
|
|
454
456
|
}, 1024), m(E(a), null, {
|
|
455
|
-
default:
|
|
457
|
+
default: O(() => [S(n.$slots, "row-context-menu", { row: c.row })]),
|
|
456
458
|
_: 2
|
|
457
459
|
}, 1024)]),
|
|
458
460
|
_: 2
|
|
459
|
-
}, 1024)) : (y(), l(E(
|
|
461
|
+
}, 1024)) : (y(), l(E(I), {
|
|
460
462
|
key: 1,
|
|
461
463
|
class: "cursor-pointer",
|
|
462
464
|
onClick: (e) => _("select", c.row)
|
|
463
465
|
}, {
|
|
464
|
-
default:
|
|
466
|
+
default: O(() => [(y(!0), d(s, null, x(t.columns, (t) => (y(), l(E(N), {
|
|
465
467
|
key: t.key,
|
|
466
468
|
class: v(E(e)($(t.align), t.class))
|
|
467
469
|
}, {
|
|
468
|
-
default:
|
|
470
|
+
default: O(() => [t.component ? (y(), l(C(t.component), {
|
|
469
471
|
key: 0,
|
|
470
|
-
value:
|
|
472
|
+
value: J(c.row, t.key),
|
|
471
473
|
row: c.row
|
|
472
474
|
}, null, 8, ["value", "row"])) : (y(), d(s, { key: 1 }, [p(w(Q(c.row, t)), 1)], 64))]),
|
|
473
475
|
_: 2
|
|
474
|
-
}, 1032, ["class"]))), 128)),
|
|
476
|
+
}, 1032, ["class"]))), 128)), A.value ? (y(), l(E(N), {
|
|
475
477
|
key: 0,
|
|
476
478
|
class: "w-10",
|
|
477
|
-
onClick: o[2] ||=
|
|
479
|
+
onClick: o[2] ||= k(() => {}, ["stop"])
|
|
478
480
|
}, {
|
|
479
|
-
default:
|
|
481
|
+
default: O(() => [S(n.$slots, "row-actions", { row: c.row })]),
|
|
480
482
|
_: 2
|
|
481
483
|
}, 1024)) : u("", !0)]),
|
|
482
484
|
_: 2
|
|
483
|
-
}, 1032, ["onClick"]))], 64))), 128)) : (y(), l(E(
|
|
485
|
+
}, 1032, ["onClick"]))], 64))), 128)) : (y(), l(E(R), {
|
|
484
486
|
key: 2,
|
|
485
|
-
colspan: t.columns.length + +!!
|
|
487
|
+
colspan: t.columns.length + +!!A.value
|
|
486
488
|
}, {
|
|
487
|
-
default:
|
|
489
|
+
default: O(() => [S(n.$slots, "empty", {}, () => [o[5] ||= p("No results found", -1)])]),
|
|
488
490
|
_: 3
|
|
489
491
|
}, 8, ["colspan"]))]),
|
|
490
492
|
_: 3
|
|
@@ -492,7 +494,7 @@ var Y = {
|
|
|
492
494
|
_: 3
|
|
493
495
|
})),
|
|
494
496
|
t.infinite ? S(n.$slots, "sentinel", { key: 2 }) : u("", !0),
|
|
495
|
-
!t.infinite && t.total > 0 ? (y(), l(
|
|
497
|
+
!t.infinite && t.total > 0 ? (y(), l(W, {
|
|
496
498
|
key: 3,
|
|
497
499
|
page: g.value,
|
|
498
500
|
"page-size": t.pageSize,
|
|
@@ -507,4 +509,4 @@ var Y = {
|
|
|
507
509
|
}
|
|
508
510
|
});
|
|
509
511
|
//#endregion
|
|
510
|
-
export {
|
|
512
|
+
export { I as a, N as c, R as i, M as l, W as n, F as o, B as r, P as s, Q as t, j as u };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./x-BUwTKe50.js";
|
|
3
|
+
import { t as n } from "./useSurfaceAxis-CMnF2zHb.js";
|
|
4
|
+
import { t as r } from "./useSpringMount-CvopqiFr.js";
|
|
5
|
+
import { t as i } from "./ModalOverlay-CkPRRgl_.js";
|
|
6
|
+
import { computed as a, createBlock as o, createCommentVNode as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, openBlock as f, renderSlot as p, unref as m, withCtx as h } from "vue";
|
|
7
|
+
import { DialogClose as g, DialogContent as _, DialogPortal as v, DialogRoot as y, injectDialogRootContext as b, useForwardPropsEmits as x } from "reka-ui";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/ui/dialog/Dialog.vue
|
|
10
|
+
var S = /* @__PURE__ */ u({
|
|
11
|
+
__name: "Dialog",
|
|
12
|
+
props: {
|
|
13
|
+
open: { type: Boolean },
|
|
14
|
+
defaultOpen: { type: Boolean },
|
|
15
|
+
modal: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:open"],
|
|
18
|
+
setup(e, { emit: t }) {
|
|
19
|
+
let n = x(e, t);
|
|
20
|
+
return (e, t) => (f(), o(m(y), d({ "data-slot": "dialog" }, m(n)), {
|
|
21
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 16));
|
|
24
|
+
}
|
|
25
|
+
}), C = "fixed left-1/2 top-1/2 z-modal grid w-full max-w-lg gap-4 p-6", w = "-translate-x-1/2 -translate-y-1/2 duration-normal popover-animate", T = /* @__PURE__ */ u({
|
|
26
|
+
__name: "DialogContent",
|
|
27
|
+
props: {
|
|
28
|
+
forceMount: { type: Boolean },
|
|
29
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
30
|
+
asChild: { type: Boolean },
|
|
31
|
+
as: {},
|
|
32
|
+
class: { type: [
|
|
33
|
+
Boolean,
|
|
34
|
+
null,
|
|
35
|
+
String,
|
|
36
|
+
Object,
|
|
37
|
+
Array
|
|
38
|
+
] },
|
|
39
|
+
surface: { default: "glass" },
|
|
40
|
+
scrimAnimation: {},
|
|
41
|
+
spring: { type: [Boolean, String] },
|
|
42
|
+
showClose: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: [
|
|
48
|
+
"escapeKeyDown",
|
|
49
|
+
"pointerDownOutside",
|
|
50
|
+
"focusOutside",
|
|
51
|
+
"interactOutside",
|
|
52
|
+
"openAutoFocus",
|
|
53
|
+
"closeAutoFocus"
|
|
54
|
+
],
|
|
55
|
+
setup(u, { emit: y }) {
|
|
56
|
+
let S = u, T = y, E = x(a(() => {
|
|
57
|
+
let { class: e, surface: t, scrimAnimation: n, spring: r, showClose: i, ...a } = S;
|
|
58
|
+
return a;
|
|
59
|
+
}), T), D = a(() => e(n(S.surface, "floating"), "rounded-dialog")), O = S.spring ? b() : null, k = S.spring && O ? r({
|
|
60
|
+
open: O.open,
|
|
61
|
+
preset: typeof S.spring == "string" ? S.spring : "smooth"
|
|
62
|
+
}) : null, A = a(() => {
|
|
63
|
+
if (!k) return;
|
|
64
|
+
let e = k.position.value;
|
|
65
|
+
return {
|
|
66
|
+
transform: `translate(-50%, -50%) scale(${1 - .05 * e})`,
|
|
67
|
+
opacity: String(1 - e),
|
|
68
|
+
animation: "none",
|
|
69
|
+
transition: "none"
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
return (n, r) => (f(), o(m(v), null, {
|
|
73
|
+
default: h(() => [l(i, {
|
|
74
|
+
scrim: "glass",
|
|
75
|
+
animate: "fade",
|
|
76
|
+
layout: "centered",
|
|
77
|
+
"scrim-animation": S.scrimAnimation
|
|
78
|
+
}, null, 8, ["scrim-animation"]), l(m(_), d(m(E), {
|
|
79
|
+
class: m(e)(C, S.spring ? "" : w, D.value, S.class),
|
|
80
|
+
style: A.value,
|
|
81
|
+
"data-surface": S.surface,
|
|
82
|
+
"data-spring": S.spring ? typeof S.spring == "string" ? S.spring : "smooth" : void 0
|
|
83
|
+
}), {
|
|
84
|
+
default: h(() => [p(n.$slots, "default"), S.showClose ? (f(), o(m(g), {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "focus-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"
|
|
87
|
+
}, {
|
|
88
|
+
default: h(() => [l(m(t), { class: "w-4 h-4" }), r[0] ||= c("span", { class: "sr-only" }, "Close", -1)]),
|
|
89
|
+
_: 1
|
|
90
|
+
})) : s("", !0)]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 16, [
|
|
93
|
+
"class",
|
|
94
|
+
"style",
|
|
95
|
+
"data-surface",
|
|
96
|
+
"data-spring"
|
|
97
|
+
])]),
|
|
98
|
+
_: 3
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
export { S as n, T as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./x-BUwTKe50.js";
|
|
3
|
-
import { t as n } from "./ModalOverlay-
|
|
3
|
+
import { t as n } from "./ModalOverlay-CkPRRgl_.js";
|
|
4
4
|
import { computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, unref as h, withCtx as g } from "vue";
|
|
5
5
|
import { DialogClose as _, DialogContent as v, DialogDescription as y, DialogPortal as b, DialogTitle as x, DialogTrigger as S, useForwardProps as C, useForwardPropsEmits as w } from "reka-ui";
|
|
6
6
|
//#endregion
|