@shwfed/nuxt 0.1.19 → 0.1.21
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/module.json +2 -2
- package/dist/module.mjs +6 -0
- package/dist/runtime/components/app.d.vue.ts +2 -2
- package/dist/runtime/components/app.vue +7 -3
- package/dist/runtime/components/app.vue.d.ts +2 -2
- package/dist/runtime/components/table.d.vue.ts +1 -1
- package/dist/runtime/components/table.vue +69 -30
- package/dist/runtime/components/table.vue.d.ts +1 -1
- package/dist/runtime/components/ui/button/Button.d.vue.ts +27 -0
- package/dist/runtime/components/ui/button/Button.vue +24 -0
- package/dist/runtime/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/runtime/components/ui/button/index.d.ts +7 -0
- package/dist/runtime/components/ui/button/index.js +24 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.d.vue.ts +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroup.vue.d.ts +19 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.d.vue.ts +10 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue +25 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +10 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.d.vue.ts +22 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue +23 -0
- package/dist/runtime/components/ui/button-group/ButtonGroupText.vue.d.ts +22 -0
- package/dist/runtime/components/ui/button-group/index.d.ts +8 -0
- package/dist/runtime/components/ui/button-group/index.js +18 -0
- package/dist/runtime/components/ui/separator/Separator.d.vue.ts +11 -0
- package/dist/runtime/components/ui/separator/Separator.vue +26 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +11 -0
- package/dist/runtime/components/ui/separator/index.d.ts +1 -0
- package/dist/runtime/components/ui/separator/index.js +1 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.d.vue.ts +20 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +24 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +20 -0
- package/dist/runtime/components/{tooltip.d.vue.ts → ui/tooltip/TooltipContent.d.vue.ts} +11 -6
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +58 -0
- package/dist/runtime/components/{tooltip.vue.d.ts → ui/tooltip/TooltipContent.vue.d.ts} +11 -6
- package/dist/runtime/components/ui/tooltip/TooltipProvider.d.vue.ts +16 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +16 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/tooltip/index.d.ts +4 -0
- package/dist/runtime/components/ui/tooltip/index.js +4 -0
- package/dist/runtime/plugins/cel/env.d.ts +7 -0
- package/dist/runtime/plugins/cel/env.js +11 -0
- package/dist/runtime/plugins/cel/index.d.ts +12 -4
- package/dist/runtime/plugins/cel/index.js +4 -4
- package/dist/runtime/plugins/markdown/index.js +4 -1
- package/dist/runtime/plugins/markdown/md.js +2 -1
- package/dist/runtime/plugins/toast/index.d.ts +108 -0
- package/dist/runtime/plugins/toast/index.js +12 -0
- package/dist/runtime/table-renderers/builtins.js +18 -21
- package/dist/runtime/utils/cn.d.ts +2 -0
- package/dist/runtime/utils/cn.js +3 -0
- package/package.json +5 -5
- package/dist/runtime/components/tooltip.vue +0 -48
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SeparatorProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = SeparatorProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
orientation: "horizontal" | "vertical";
|
|
8
|
+
decorative: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { Separator } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../utils/cn";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
orientation: { type: String, required: false, default: "horizontal" },
|
|
7
|
+
decorative: { type: Boolean, required: false, default: true },
|
|
8
|
+
asChild: { type: Boolean, required: false },
|
|
9
|
+
as: { type: null, required: false },
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<Separator
|
|
17
|
+
data-slot="separator"
|
|
18
|
+
v-bind="delegatedProps"
|
|
19
|
+
:class="
|
|
20
|
+
cn(
|
|
21
|
+
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
|
22
|
+
props.class
|
|
23
|
+
)
|
|
24
|
+
"
|
|
25
|
+
/>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SeparatorProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = SeparatorProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
orientation: "horizontal" | "vertical";
|
|
8
|
+
decorative: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Separator } from './Separator.vue.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Separator } from "./Separator.vue";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TooltipRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:open": (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
11
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { TooltipRoot, useForwardPropsEmits } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
defaultOpen: { type: Boolean, required: false },
|
|
5
|
+
open: { type: Boolean, required: false },
|
|
6
|
+
delayDuration: { type: Number, required: false },
|
|
7
|
+
disableHoverableContent: { type: Boolean, required: false },
|
|
8
|
+
disableClosingTrigger: { type: Boolean, required: false },
|
|
9
|
+
disabled: { type: Boolean, required: false },
|
|
10
|
+
ignoreNonKeyboardFocus: { type: Boolean, required: false }
|
|
11
|
+
});
|
|
12
|
+
const emits = defineEmits(["update:open"]);
|
|
13
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<TooltipRoot
|
|
18
|
+
v-slot="slotProps"
|
|
19
|
+
data-slot="tooltip"
|
|
20
|
+
v-bind="forwarded"
|
|
21
|
+
>
|
|
22
|
+
<slot v-bind="slotProps" />
|
|
23
|
+
</TooltipRoot>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TooltipRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:open": (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
11
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import type { TooltipContentProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TooltipContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
4
5
|
};
|
|
5
6
|
declare var __VLS_14: {};
|
|
6
7
|
type __VLS_Slots = {} & {
|
|
7
8
|
default?: (props: typeof __VLS_14) => any;
|
|
8
9
|
};
|
|
9
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: Event) => any;
|
|
11
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
|
+
onPointerDownOutside?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
sideOffset: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
20
|
declare const _default: typeof __VLS_export;
|
|
16
21
|
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { TooltipArrow, TooltipContent, TooltipPortal, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../utils/cn";
|
|
5
|
+
defineOptions({
|
|
6
|
+
inheritAttrs: false
|
|
7
|
+
});
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
forceMount: { type: Boolean, required: false },
|
|
10
|
+
ariaLabel: { type: String, required: false },
|
|
11
|
+
asChild: { type: Boolean, required: false },
|
|
12
|
+
as: { type: null, required: false },
|
|
13
|
+
side: { type: null, required: false },
|
|
14
|
+
sideOffset: { type: Number, required: false, default: 4 },
|
|
15
|
+
align: { type: null, required: false },
|
|
16
|
+
alignOffset: { type: Number, required: false },
|
|
17
|
+
avoidCollisions: { type: Boolean, required: false },
|
|
18
|
+
collisionBoundary: { type: null, required: false },
|
|
19
|
+
collisionPadding: { type: [Number, Object], required: false },
|
|
20
|
+
arrowPadding: { type: Number, required: false },
|
|
21
|
+
sticky: { type: String, required: false },
|
|
22
|
+
hideWhenDetached: { type: Boolean, required: false },
|
|
23
|
+
positionStrategy: { type: String, required: false },
|
|
24
|
+
updatePositionStrategy: { type: String, required: false },
|
|
25
|
+
class: { type: null, required: false }
|
|
26
|
+
});
|
|
27
|
+
const emits = defineEmits(["escapeKeyDown", "pointerDownOutside"]);
|
|
28
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
29
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<TooltipPortal>
|
|
34
|
+
<TooltipContent
|
|
35
|
+
data-slot="tooltip-content"
|
|
36
|
+
v-bind="{ ...forwarded, ...$attrs }"
|
|
37
|
+
:class="cn(
|
|
38
|
+
'bg-white text-zinc-700 animate-in fade-in-0 zoom-in-95',
|
|
39
|
+
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0',
|
|
40
|
+
'data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2',
|
|
41
|
+
'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2',
|
|
42
|
+
'data-[side=top]:slide-in-from-bottom-2',
|
|
43
|
+
'z-1024 w-fit rounded border border-zinc-200 px-6 py-2 text-xs',
|
|
44
|
+
'text-balance shadow-md',
|
|
45
|
+
props.class
|
|
46
|
+
)"
|
|
47
|
+
>
|
|
48
|
+
<slot />
|
|
49
|
+
|
|
50
|
+
<TooltipArrow
|
|
51
|
+
:class="[
|
|
52
|
+
'bg-white fill-white size-2.5 translate-y-[calc(-50%)] rotate-45 rounded-xs',
|
|
53
|
+
'border-b border-r border-zinc-200'
|
|
54
|
+
]"
|
|
55
|
+
/>
|
|
56
|
+
</TooltipContent>
|
|
57
|
+
</TooltipPortal>
|
|
58
|
+
</template>
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import type { TooltipContentProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TooltipContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
4
5
|
};
|
|
5
6
|
declare var __VLS_14: {};
|
|
6
7
|
type __VLS_Slots = {} & {
|
|
7
8
|
default?: (props: typeof __VLS_14) => any;
|
|
8
9
|
};
|
|
9
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: Event) => any;
|
|
11
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
|
+
onPointerDownOutside?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
sideOffset: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
20
|
declare const _default: typeof __VLS_export;
|
|
16
21
|
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TooltipProviderProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {
|
|
7
|
+
delayDuration: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { TooltipProvider } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
delayDuration: { type: Number, required: false, default: 0 },
|
|
5
|
+
skipDelayDuration: { type: Number, required: false },
|
|
6
|
+
disableHoverableContent: { type: Boolean, required: false },
|
|
7
|
+
disableClosingTrigger: { type: Boolean, required: false },
|
|
8
|
+
disabled: { type: Boolean, required: false },
|
|
9
|
+
ignoreNonKeyboardFocus: { type: Boolean, required: false }
|
|
10
|
+
});
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<TooltipProvider v-bind="props">
|
|
15
|
+
<slot />
|
|
16
|
+
</TooltipProvider>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TooltipProviderProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {
|
|
7
|
+
delayDuration: number;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TooltipTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { TooltipTrigger } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
reference: { type: null, required: false },
|
|
5
|
+
asChild: { type: Boolean, required: false },
|
|
6
|
+
as: { type: null, required: false }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<TooltipTrigger
|
|
12
|
+
data-slot="tooltip-trigger"
|
|
13
|
+
v-bind="props"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</TooltipTrigger>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TooltipTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { Environment } from '@marcbachmann/cel-js';
|
|
2
|
+
import type { Table } from '@tanstack/vue-table';
|
|
3
|
+
export declare class TableWrapper {
|
|
4
|
+
private readonly table;
|
|
5
|
+
constructor(table: Table<unknown>);
|
|
6
|
+
get size(): number;
|
|
7
|
+
get selected(): ReadonlyArray<unknown>;
|
|
8
|
+
}
|
|
2
9
|
export declare function createEnvironment(): Environment;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { Environment, EvaluationError } from "@marcbachmann/cel-js";
|
|
2
2
|
import { startOfDay, startOfWeek, startOfYear, startOfMonth, endOfDay, endOfWeek, endOfYear, endOfMonth, addYears, addMonths, addDays, addWeeks, setDate, setMonth, setYear, formatDate, isBefore, isAfter, isEqual } from "date-fns";
|
|
3
3
|
import { TZDate } from "@date-fns/tz";
|
|
4
|
+
export class TableWrapper {
|
|
5
|
+
constructor(table) {
|
|
6
|
+
this.table = table;
|
|
7
|
+
}
|
|
8
|
+
get size() {
|
|
9
|
+
return this.table.getRowCount();
|
|
10
|
+
}
|
|
11
|
+
get selected() {
|
|
12
|
+
return this.table.getSelectedRowModel().rows.map((row) => row.original);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
4
15
|
export function createEnvironment() {
|
|
5
16
|
const env = new Environment({
|
|
6
17
|
enableOptionalTypes: true,
|
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import type { Context } from '@marcbachmann/cel-js';
|
|
2
2
|
declare const _default: import("#app").Plugin<{
|
|
3
3
|
dsl: {
|
|
4
|
-
check: (
|
|
4
|
+
check: (template: {
|
|
5
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
6
|
+
}, ...substitutions: any[]) => import("@marcbachmann/cel-js").TypeCheckResult;
|
|
5
7
|
/**
|
|
6
8
|
* Synchronous evaluation for render-time usage (e.g. table accessors).
|
|
7
9
|
*
|
|
8
10
|
* Will throw `TypeError` / `EvaluationError` on failure.
|
|
9
11
|
*/
|
|
10
|
-
evaluate: <T>(
|
|
12
|
+
evaluate: <T>(template: {
|
|
13
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
14
|
+
}, ...substitutions: any[]) => (context?: Context) => T;
|
|
11
15
|
};
|
|
12
16
|
}> & import("#app").ObjectPlugin<{
|
|
13
17
|
dsl: {
|
|
14
|
-
check: (
|
|
18
|
+
check: (template: {
|
|
19
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
20
|
+
}, ...substitutions: any[]) => import("@marcbachmann/cel-js").TypeCheckResult;
|
|
15
21
|
/**
|
|
16
22
|
* Synchronous evaluation for render-time usage (e.g. table accessors).
|
|
17
23
|
*
|
|
18
24
|
* Will throw `TypeError` / `EvaluationError` on failure.
|
|
19
25
|
*/
|
|
20
|
-
evaluate: <T>(
|
|
26
|
+
evaluate: <T>(template: {
|
|
27
|
+
raw: readonly string[] | ArrayLike<string>;
|
|
28
|
+
}, ...substitutions: any[]) => (context?: Context) => T;
|
|
21
29
|
};
|
|
22
30
|
}>;
|
|
23
31
|
export default _default;
|
|
@@ -8,16 +8,16 @@ export default defineNuxtPlugin({
|
|
|
8
8
|
return {
|
|
9
9
|
provide: {
|
|
10
10
|
dsl: {
|
|
11
|
-
check: (
|
|
12
|
-
return env.check(
|
|
11
|
+
check: (...args) => {
|
|
12
|
+
return env.check(String.raw(...args));
|
|
13
13
|
},
|
|
14
14
|
/**
|
|
15
15
|
* Synchronous evaluation for render-time usage (e.g. table accessors).
|
|
16
16
|
*
|
|
17
17
|
* Will throw `TypeError` / `EvaluationError` on failure.
|
|
18
18
|
*/
|
|
19
|
-
evaluate: (
|
|
20
|
-
return env.evaluate(
|
|
19
|
+
evaluate: (...args) => (context) => {
|
|
20
|
+
return env.evaluate(String.raw(...args), defu(context, {
|
|
21
21
|
now: /* @__PURE__ */ new Date()
|
|
22
22
|
}));
|
|
23
23
|
}
|
|
@@ -14,7 +14,10 @@ export default defineNuxtPlugin({
|
|
|
14
14
|
if (!expression)
|
|
15
15
|
return "";
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
const result = $dsl.evaluate`${expression}`(context);
|
|
18
|
+
if (result !== null)
|
|
19
|
+
return String(result);
|
|
20
|
+
return "";
|
|
18
21
|
} catch (e) {
|
|
19
22
|
console.error(e);
|
|
20
23
|
return "";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export function md(...args) {
|
|
2
|
-
const
|
|
2
|
+
const [template, ...rest] = args;
|
|
3
|
+
const original = String.raw(template, ...rest.map((arg) => arg ?? ""));
|
|
3
4
|
const indent = (original.startsWith("\n") ? original.slice(1) : original).split("\n", 1)[0]?.match(/^(\s*)/)?.[1]?.length ?? 0;
|
|
4
5
|
return original.trim().replaceAll("\\`", "`").split("\n").map((line) => line.replace(new RegExp(`^${String.raw`\s`.repeat(indent)}`), "")).join("\n");
|
|
5
6
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
declare const _default: import("#app").Plugin<{
|
|
2
|
+
toast: ((message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number) & {
|
|
3
|
+
success: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
4
|
+
info: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
5
|
+
warning: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
6
|
+
error: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
7
|
+
custom: (component: import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
8
|
+
message: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
9
|
+
promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
|
|
10
|
+
id?: number | string | undefined;
|
|
11
|
+
class?: string | undefined;
|
|
12
|
+
style?: import("vue").CSSProperties | undefined;
|
|
13
|
+
icon?: import("vue").Component | undefined;
|
|
14
|
+
toasterId?: string | undefined;
|
|
15
|
+
component?: import("vue").Component | undefined;
|
|
16
|
+
componentProps?: any;
|
|
17
|
+
richColors?: boolean | undefined;
|
|
18
|
+
invert?: boolean | undefined;
|
|
19
|
+
closeButton?: boolean | undefined;
|
|
20
|
+
dismissible?: boolean | undefined;
|
|
21
|
+
duration?: number | undefined;
|
|
22
|
+
important?: boolean | undefined;
|
|
23
|
+
action?: (import("vue-sonner").Action | import("vue").Component) | undefined;
|
|
24
|
+
cancel?: (import("vue-sonner").Action | import("vue").Component) | undefined;
|
|
25
|
+
onDismiss?: ((toast: import("vue-sonner").ToastT) => void) | undefined;
|
|
26
|
+
onAutoClose?: ((toast: import("vue-sonner").ToastT) => void) | undefined;
|
|
27
|
+
cancelButtonStyle?: import("vue").CSSProperties | undefined;
|
|
28
|
+
actionButtonStyle?: import("vue").CSSProperties | undefined;
|
|
29
|
+
unstyled?: boolean | undefined;
|
|
30
|
+
classes?: import("vue-sonner").ToastClasses | undefined;
|
|
31
|
+
descriptionClass?: string | undefined;
|
|
32
|
+
position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
|
|
33
|
+
closeButtonPosition?: ("top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
34
|
+
testId?: string | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
loading?: string | import("vue").Component;
|
|
37
|
+
success?: (string | import("vue").Component | ((data: ToastData) => import("vue").Component | string | Promise<import("vue").Component | string>)) | (import("vue-sonner").PromiseIExtendedResult | ((data: ToastData) => import("vue-sonner").PromiseIExtendedResult | Promise<import("vue-sonner").PromiseIExtendedResult>)) | undefined;
|
|
38
|
+
error?: (string | import("vue").Component | ((data: any) => import("vue").Component | string | Promise<import("vue").Component | string>)) | (import("vue-sonner").PromiseIExtendedResult | ((data: any) => import("vue-sonner").PromiseIExtendedResult | Promise<import("vue-sonner").PromiseIExtendedResult>));
|
|
39
|
+
description?: string | import("vue").Component | ((data: any) => import("vue").Component | string | Promise<import("vue").Component | string>);
|
|
40
|
+
finally?: () => void | Promise<void>;
|
|
41
|
+
}) | undefined) => (string & {
|
|
42
|
+
unwrap: () => Promise<ToastData>;
|
|
43
|
+
}) | (number & {
|
|
44
|
+
unwrap: () => Promise<ToastData>;
|
|
45
|
+
}) | {
|
|
46
|
+
unwrap: () => Promise<ToastData>;
|
|
47
|
+
} | undefined;
|
|
48
|
+
dismiss: (id?: number | string) => string | number | undefined;
|
|
49
|
+
loading: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
50
|
+
} & {
|
|
51
|
+
getHistory: () => (import("vue-sonner").ToastT<import("vue").Component> | import("vue-sonner").ToastToDismiss)[];
|
|
52
|
+
getToasts: () => (import("vue-sonner").ToastT<import("vue").Component> | import("vue-sonner").ToastToDismiss)[];
|
|
53
|
+
};
|
|
54
|
+
}> & import("#app").ObjectPlugin<{
|
|
55
|
+
toast: ((message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number) & {
|
|
56
|
+
success: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
57
|
+
info: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
58
|
+
warning: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
59
|
+
error: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
60
|
+
custom: (component: import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
61
|
+
message: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
62
|
+
promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
|
|
63
|
+
id?: number | string | undefined;
|
|
64
|
+
class?: string | undefined;
|
|
65
|
+
style?: import("vue").CSSProperties | undefined;
|
|
66
|
+
icon?: import("vue").Component | undefined;
|
|
67
|
+
toasterId?: string | undefined;
|
|
68
|
+
component?: import("vue").Component | undefined;
|
|
69
|
+
componentProps?: any;
|
|
70
|
+
richColors?: boolean | undefined;
|
|
71
|
+
invert?: boolean | undefined;
|
|
72
|
+
closeButton?: boolean | undefined;
|
|
73
|
+
dismissible?: boolean | undefined;
|
|
74
|
+
duration?: number | undefined;
|
|
75
|
+
important?: boolean | undefined;
|
|
76
|
+
action?: (import("vue-sonner").Action | import("vue").Component) | undefined;
|
|
77
|
+
cancel?: (import("vue-sonner").Action | import("vue").Component) | undefined;
|
|
78
|
+
onDismiss?: ((toast: import("vue-sonner").ToastT) => void) | undefined;
|
|
79
|
+
onAutoClose?: ((toast: import("vue-sonner").ToastT) => void) | undefined;
|
|
80
|
+
cancelButtonStyle?: import("vue").CSSProperties | undefined;
|
|
81
|
+
actionButtonStyle?: import("vue").CSSProperties | undefined;
|
|
82
|
+
unstyled?: boolean | undefined;
|
|
83
|
+
classes?: import("vue-sonner").ToastClasses | undefined;
|
|
84
|
+
descriptionClass?: string | undefined;
|
|
85
|
+
position?: ("top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center") | undefined;
|
|
86
|
+
closeButtonPosition?: ("top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
87
|
+
testId?: string | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
loading?: string | import("vue").Component;
|
|
90
|
+
success?: (string | import("vue").Component | ((data: ToastData) => import("vue").Component | string | Promise<import("vue").Component | string>)) | (import("vue-sonner").PromiseIExtendedResult | ((data: ToastData) => import("vue-sonner").PromiseIExtendedResult | Promise<import("vue-sonner").PromiseIExtendedResult>)) | undefined;
|
|
91
|
+
error?: (string | import("vue").Component | ((data: any) => import("vue").Component | string | Promise<import("vue").Component | string>)) | (import("vue-sonner").PromiseIExtendedResult | ((data: any) => import("vue-sonner").PromiseIExtendedResult | Promise<import("vue-sonner").PromiseIExtendedResult>));
|
|
92
|
+
description?: string | import("vue").Component | ((data: any) => import("vue").Component | string | Promise<import("vue").Component | string>);
|
|
93
|
+
finally?: () => void | Promise<void>;
|
|
94
|
+
}) | undefined) => (string & {
|
|
95
|
+
unwrap: () => Promise<ToastData>;
|
|
96
|
+
}) | (number & {
|
|
97
|
+
unwrap: () => Promise<ToastData>;
|
|
98
|
+
}) | {
|
|
99
|
+
unwrap: () => Promise<ToastData>;
|
|
100
|
+
} | undefined;
|
|
101
|
+
dismiss: (id?: number | string) => string | number | undefined;
|
|
102
|
+
loading: (message: string | (() => string | import("vue").Component) | import("vue").Component, data?: import("vue-sonner").ExternalToast) => string | number;
|
|
103
|
+
} & {
|
|
104
|
+
getHistory: () => (import("vue-sonner").ToastT<import("vue").Component> | import("vue-sonner").ToastToDismiss)[];
|
|
105
|
+
getToasts: () => (import("vue-sonner").ToastT<import("vue").Component> | import("vue-sonner").ToastToDismiss)[];
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
export default _default;
|