@oneclick.dev/cms-kit 0.0.30 → 0.0.31
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/index.cjs.js +1 -1
- package/dist/index.es.js +168 -168
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, toDisplayString, resolveComponent, createVNode, withDirectives, withKeys, vModelText, renderSlot, vShow, defineComponent, ref
|
|
4
|
+
import { createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, toDisplayString, resolveComponent, createVNode, withDirectives, withKeys, vModelText, renderSlot, vShow, defineComponent, ref, watch as watch$1, onMounted as onMounted$1, unref, computed as computed$1, mergeProps, h, createTextVNode, onBeforeUnmount, getCurrentScope, onScopeDispose, nextTick, customRef, isRef, reactive, getCurrentInstance, hasInjectionContext, inject as inject$1, toRefs as toRefs$1, toValue as toValue$2, shallowRef, watchEffect, onUpdated, normalizeProps, guardReactiveProps, onUnmounted, Teleport, useSlots, withModifiers, effectScope, provide, useAttrs, createPropsRestProxy, toRef, markRaw, onBeforeMount, isMemoSame, readonly, toRaw, createSlots, Transition as Transition$2, vModelSelect, withAsyncContext, warn as warn$2, TransitionGroup, onBeforeUpdate, Comment, cloneVNode } from "vue";
|
|
5
5
|
import { AvatarRoot, AvatarFallback, AvatarImage, Primitive, useForwardPropsEmits, CalendarRoot, useForwardProps, CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNext, CalendarPrev, CheckboxRoot, CheckboxIndicator, CollapsibleRoot, CollapsibleContent, CollapsibleTrigger, ComboboxRoot, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, ComboboxCancel, ComboboxTrigger, useFilter, ListboxRoot, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, useId, ListboxGroup, ListboxGroupLabel, ListboxFilter, ListboxItem, ListboxContent, Separator, createContext as createContext$1, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Slot, Label, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, PaginationEllipsis, PaginationFirst, PaginationLast, PaginationNext, PaginationPrev, PaginationRoot, PaginationList, PaginationListItem, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, RangeCalendarRoot, RangeCalendarCell, RangeCalendarCellTrigger, RangeCalendarGrid, RangeCalendarGridBody, RangeCalendarGridHead, RangeCalendarGridRow, RangeCalendarHeadCell, RangeCalendarHeader, RangeCalendarHeading, RangeCalendarNext, RangeCalendarPrev, SplitterResizeHandle, SplitterPanel, SplitterGroup, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, Toggle } from "reka-ui";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
7
|
import { useNuxtApp, useRoute } from "nuxt/app";
|
|
@@ -1875,7 +1875,7 @@ const _sfc_main$5k = /* @__PURE__ */ defineComponent({
|
|
|
1875
1875
|
setup(__props) {
|
|
1876
1876
|
const props = __props;
|
|
1877
1877
|
let emojiIndex = new EmojiIndex(data);
|
|
1878
|
-
const renderedEmoji = ref
|
|
1878
|
+
const renderedEmoji = ref();
|
|
1879
1879
|
watch$1(() => props.emoji, () => {
|
|
1880
1880
|
renderedEmoji.value = emojiIndex.findEmoji(`:${props.emoji}:`);
|
|
1881
1881
|
});
|
|
@@ -50563,7 +50563,7 @@ const _sfc_main$4P = /* @__PURE__ */ defineComponent({
|
|
|
50563
50563
|
setup(__props, { emit: __emit }) {
|
|
50564
50564
|
const props = __props;
|
|
50565
50565
|
const emit = __emit;
|
|
50566
|
-
const editor = ref
|
|
50566
|
+
const editor = ref(null);
|
|
50567
50567
|
let view = null;
|
|
50568
50568
|
function variableCompletion(context3) {
|
|
50569
50569
|
const word = context3.matchBefore(/\w*/);
|
|
@@ -51385,7 +51385,7 @@ function useVModel$2(props, key, emit, options = {}) {
|
|
|
51385
51385
|
};
|
|
51386
51386
|
if (passive) {
|
|
51387
51387
|
const initialValue = getValue();
|
|
51388
|
-
const proxy = ref
|
|
51388
|
+
const proxy = ref(initialValue);
|
|
51389
51389
|
let isUpdating = false;
|
|
51390
51390
|
watch$1(
|
|
51391
51391
|
() => props[key],
|
|
@@ -51563,8 +51563,8 @@ const _sfc_main$4B = /* @__PURE__ */ defineComponent({
|
|
|
51563
51563
|
return delegated;
|
|
51564
51564
|
});
|
|
51565
51565
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
51566
|
-
const allItems = ref
|
|
51567
|
-
const allGroups = ref
|
|
51566
|
+
const allItems = ref(/* @__PURE__ */ new Map());
|
|
51567
|
+
const allGroups = ref(/* @__PURE__ */ new Map());
|
|
51568
51568
|
const { contains: contains2 } = useFilter({ sensitivity: "base" });
|
|
51569
51569
|
const filterState = reactive({
|
|
51570
51570
|
search: "",
|
|
@@ -52112,7 +52112,7 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
|
|
|
52112
52112
|
return filteredCurrentItem > 0;
|
|
52113
52113
|
}
|
|
52114
52114
|
});
|
|
52115
|
-
const itemRef = ref
|
|
52115
|
+
const itemRef = ref();
|
|
52116
52116
|
const currentElement = useCurrentElement(itemRef);
|
|
52117
52117
|
onMounted$1(() => {
|
|
52118
52118
|
var _a2;
|
|
@@ -52763,7 +52763,7 @@ function $e$1(e, n, s, i = {}) {
|
|
|
52763
52763
|
l ? l(a) && m(u, a) : m(u, a);
|
|
52764
52764
|
};
|
|
52765
52765
|
if (D) {
|
|
52766
|
-
const a = H(), c = ref
|
|
52766
|
+
const a = H(), c = ref(a);
|
|
52767
52767
|
let f = false;
|
|
52768
52768
|
return watch$1(
|
|
52769
52769
|
() => e[n],
|
|
@@ -52856,7 +52856,7 @@ function mt$1({
|
|
|
52856
52856
|
onSnapPointChange: w,
|
|
52857
52857
|
direction: d
|
|
52858
52858
|
}) {
|
|
52859
|
-
const v = ref
|
|
52859
|
+
const v = ref(typeof window < "u" ? {
|
|
52860
52860
|
innerWidth: window.innerWidth,
|
|
52861
52861
|
innerHeight: window.innerHeight
|
|
52862
52862
|
} : void 0);
|
|
@@ -53001,7 +53001,7 @@ function Te$2() {
|
|
|
53001
53001
|
}
|
|
53002
53002
|
let Q = null;
|
|
53003
53003
|
function wt$1(e) {
|
|
53004
|
-
const { isOpen: n, modal: s, nested: i, hasBeenOpened: t2, preventScrollRestoration: w, noBodyStyles: d } = e, v = ref
|
|
53004
|
+
const { isOpen: n, modal: s, nested: i, hasBeenOpened: t2, preventScrollRestoration: w, noBodyStyles: d } = e, v = ref(typeof window < "u" ? window.location.href : ""), D = ref(0);
|
|
53005
53005
|
function $() {
|
|
53006
53006
|
if (Te$2() && Q === null && n.value && !d.value) {
|
|
53007
53007
|
Q = {
|
|
@@ -53072,20 +53072,20 @@ function yt(e) {
|
|
|
53072
53072
|
noBodyStyles: L,
|
|
53073
53073
|
handleOnly: H,
|
|
53074
53074
|
preventScrollRestoration: p2
|
|
53075
|
-
} = e, a = ref
|
|
53076
|
-
ref
|
|
53077
|
-
const g = ref
|
|
53078
|
-
ref
|
|
53075
|
+
} = e, a = ref(w.value ?? false), c = ref(false), f = ref(false), y = ref(false), P = ref(null), x2 = ref(null), W = ref(null), te2 = ref(null), V = ref(null), j = ref(false), G2 = ref(null), z = ref(0), M2 = ref(false);
|
|
53076
|
+
ref(0);
|
|
53077
|
+
const g = ref(null);
|
|
53078
|
+
ref(0);
|
|
53079
53079
|
const pe2 = computed$1(() => {
|
|
53080
53080
|
var o;
|
|
53081
53081
|
return ((o = g.value) == null ? void 0 : o.$el.getBoundingClientRect().height) || 0;
|
|
53082
53082
|
}), U = ht$1(
|
|
53083
53083
|
e.snapPoints,
|
|
53084
|
-
ref
|
|
53084
|
+
ref(void 0)
|
|
53085
53085
|
), Ne2 = computed$1(() => {
|
|
53086
53086
|
var o;
|
|
53087
53087
|
return U && (((o = U.value) == null ? void 0 : o.length) ?? 0) > 0;
|
|
53088
|
-
}), Ae2 = ref
|
|
53088
|
+
}), Ae2 = ref(null), {
|
|
53089
53089
|
activeSnapPointIndex: ge2,
|
|
53090
53090
|
onRelease: xe2,
|
|
53091
53091
|
snapPointsOffset: He2,
|
|
@@ -53439,7 +53439,7 @@ const St$1 = /* @__PURE__ */ defineComponent({
|
|
|
53439
53439
|
}), Dt$1 = () => () => {
|
|
53440
53440
|
};
|
|
53441
53441
|
function bt() {
|
|
53442
|
-
const { direction: e, isOpen: n, shouldScaleBackground: s, setBackgroundColorOnScale: i, noBodyStyles: t2 } = ee$1(), w = ref
|
|
53442
|
+
const { direction: e, isOpen: n, shouldScaleBackground: s, setBackgroundColorOnScale: i, noBodyStyles: t2 } = ee$1(), w = ref(null), d = ref(document.body.style.backgroundColor);
|
|
53443
53443
|
function v() {
|
|
53444
53444
|
return (window.innerWidth - Ce$2) / window.innerWidth;
|
|
53445
53445
|
}
|
|
@@ -53496,7 +53496,7 @@ const Ct = /* @__PURE__ */ defineComponent({
|
|
|
53496
53496
|
handleOnly: u
|
|
53497
53497
|
} = ee$1();
|
|
53498
53498
|
bt();
|
|
53499
|
-
const L = ref
|
|
53499
|
+
const L = ref(false), H = computed$1(() => i.value && i.value.length > 0 ? `${i.value[0]}px` : "0");
|
|
53500
53500
|
function p2(f) {
|
|
53501
53501
|
if (!$.value || f.defaultPrevented) {
|
|
53502
53502
|
f.preventDefault();
|
|
@@ -54367,7 +54367,7 @@ const bypassFilter = (invoke) => {
|
|
|
54367
54367
|
return invoke();
|
|
54368
54368
|
};
|
|
54369
54369
|
function pausableFilter(extendFilter = bypassFilter) {
|
|
54370
|
-
const isActive = ref
|
|
54370
|
+
const isActive = ref(true);
|
|
54371
54371
|
function pause() {
|
|
54372
54372
|
isActive.value = false;
|
|
54373
54373
|
}
|
|
@@ -54699,7 +54699,7 @@ function useVModel$1(props, key, emit, options = {}) {
|
|
|
54699
54699
|
};
|
|
54700
54700
|
if (passive) {
|
|
54701
54701
|
const initialValue = getValue();
|
|
54702
|
-
const proxy = ref
|
|
54702
|
+
const proxy = ref(initialValue);
|
|
54703
54703
|
let isUpdating = false;
|
|
54704
54704
|
watch$1(
|
|
54705
54705
|
() => props[key],
|
|
@@ -59602,7 +59602,7 @@ function useNodeId() {
|
|
|
59602
59602
|
}
|
|
59603
59603
|
function useNode(id2) {
|
|
59604
59604
|
const nodeId = id2 ?? useNodeId() ?? "";
|
|
59605
|
-
const nodeEl = inject$1(NodeRef, ref
|
|
59605
|
+
const nodeEl = inject$1(NodeRef, ref(null));
|
|
59606
59606
|
const { findNode, edges, emits } = useVueFlow();
|
|
59607
59607
|
const node = findNode(nodeId);
|
|
59608
59608
|
if (!node) {
|
|
@@ -61070,7 +61070,7 @@ const _sfc_main$f$1 = /* @__PURE__ */ defineComponent({
|
|
|
61070
61070
|
noPanClassName
|
|
61071
61071
|
} = useVueFlow();
|
|
61072
61072
|
const { id: nodeId, node, nodeEl, connectedEdges } = useNode();
|
|
61073
|
-
const handle = ref
|
|
61073
|
+
const handle = ref();
|
|
61074
61074
|
const isConnectableStart = toRef(() => typeof __props.connectableStart !== "undefined" ? __props.connectableStart : true);
|
|
61075
61075
|
const isConnectableEnd = toRef(() => typeof __props.connectableEnd !== "undefined" ? __props.connectableEnd : true);
|
|
61076
61076
|
const isConnecting = toRef(
|
|
@@ -61268,8 +61268,8 @@ const _sfc_main$e$1 = /* @__PURE__ */ defineComponent({
|
|
|
61268
61268
|
labelBgBorderRadius: { default: 2 }
|
|
61269
61269
|
},
|
|
61270
61270
|
setup(__props) {
|
|
61271
|
-
const box = ref
|
|
61272
|
-
const el = ref
|
|
61271
|
+
const box = ref({ x: 0, y: 0, width: 0, height: 0 });
|
|
61272
|
+
const el = ref(null);
|
|
61273
61273
|
const transform = computed$1(() => `translate(${__props.x - box.value.width / 2} ${__props.y - box.value.height / 2})`);
|
|
61274
61274
|
onMounted$1(getBox);
|
|
61275
61275
|
watch$1([() => __props.x, () => __props.y, el, () => __props.label], getBox);
|
|
@@ -61341,9 +61341,9 @@ const _sfc_main$d$1 = /* @__PURE__ */ defineComponent({
|
|
|
61341
61341
|
labelBgBorderRadius: {}
|
|
61342
61342
|
},
|
|
61343
61343
|
setup(__props, { expose: __expose }) {
|
|
61344
|
-
const pathEl = ref
|
|
61345
|
-
const interactionEl = ref
|
|
61346
|
-
const labelEl = ref
|
|
61344
|
+
const pathEl = ref(null);
|
|
61345
|
+
const interactionEl = ref(null);
|
|
61346
|
+
const labelEl = ref(null);
|
|
61347
61347
|
const attrs = useAttrs();
|
|
61348
61348
|
__expose({
|
|
61349
61349
|
pathEl,
|
|
@@ -62229,7 +62229,7 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
|
|
|
62229
62229
|
setup(__props) {
|
|
62230
62230
|
const { emits, viewport, getSelectedNodes, noPanClassName, disableKeyboardA11y, userSelectionActive } = useVueFlow();
|
|
62231
62231
|
const updatePositions = useUpdateNodePositions();
|
|
62232
|
-
const el = ref
|
|
62232
|
+
const el = ref(null);
|
|
62233
62233
|
const dragging = useDrag({
|
|
62234
62234
|
el,
|
|
62235
62235
|
onStart(args) {
|
|
@@ -62333,10 +62333,10 @@ const _sfc_main$a$1 = /* @__PURE__ */ defineComponent({
|
|
|
62333
62333
|
defaultEdgeOptions,
|
|
62334
62334
|
connectionStartHandle
|
|
62335
62335
|
} = useVueFlow();
|
|
62336
|
-
const container = ref
|
|
62337
|
-
const selectedNodeIds = ref
|
|
62338
|
-
const selectedEdgeIds = ref
|
|
62339
|
-
const containerBounds = ref
|
|
62336
|
+
const container = ref(null);
|
|
62337
|
+
const selectedNodeIds = ref(/* @__PURE__ */ new Set());
|
|
62338
|
+
const selectedEdgeIds = ref(/* @__PURE__ */ new Set());
|
|
62339
|
+
const containerBounds = ref();
|
|
62340
62340
|
const hasActiveSelection = toRef(() => elementsSelectable.value && (__props.isSelecting || userSelectionActive.value));
|
|
62341
62341
|
const connectionInProgress = toRef(() => connectionStartHandle.value !== null);
|
|
62342
62342
|
let selectionInProgress = false;
|
|
@@ -62928,12 +62928,12 @@ const EdgeWrapper = defineComponent({
|
|
|
62928
62928
|
const { emit, on: on2 } = useEdgeHooks(edge.value, emits);
|
|
62929
62929
|
const slots = inject$1(Slots$1);
|
|
62930
62930
|
const instance = getCurrentInstance();
|
|
62931
|
-
const mouseOver = ref
|
|
62932
|
-
const updating = ref
|
|
62933
|
-
const nodeId = ref
|
|
62934
|
-
const handleId = ref
|
|
62935
|
-
const edgeUpdaterType = ref
|
|
62936
|
-
const edgeEl = ref
|
|
62931
|
+
const mouseOver = ref(false);
|
|
62932
|
+
const updating = ref(false);
|
|
62933
|
+
const nodeId = ref("");
|
|
62934
|
+
const handleId = ref(null);
|
|
62935
|
+
const edgeUpdaterType = ref("source");
|
|
62936
|
+
const edgeEl = ref(null);
|
|
62937
62937
|
const isSelectable = toRef(
|
|
62938
62938
|
() => typeof edge.value.selectable === "undefined" ? elementsSelectable.value : edge.value.selectable
|
|
62939
62939
|
);
|
|
@@ -63506,7 +63506,7 @@ const NodeWrapper = defineComponent({
|
|
|
63506
63506
|
nodesFocusable,
|
|
63507
63507
|
hooks
|
|
63508
63508
|
} = useVueFlow();
|
|
63509
|
-
const nodeElement = ref
|
|
63509
|
+
const nodeElement = ref(null);
|
|
63510
63510
|
provide(NodeRef, nodeElement);
|
|
63511
63511
|
provide(NodeId, props.id);
|
|
63512
63512
|
const slots = inject$1(Slots$1);
|
|
@@ -63866,7 +63866,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
63866
63866
|
setup(__props) {
|
|
63867
63867
|
const { getNodes, updateNodeDimensions, emits } = useVueFlow();
|
|
63868
63868
|
const nodesInitialized = useNodesInitialized();
|
|
63869
|
-
const resizeObserver = ref
|
|
63869
|
+
const resizeObserver = ref();
|
|
63870
63870
|
watch$1(
|
|
63871
63871
|
nodesInitialized,
|
|
63872
63872
|
(isInit) => {
|
|
@@ -64056,8 +64056,8 @@ function useNodeConnections(params = {}) {
|
|
|
64056
64056
|
const { handleType, handleId, nodeId, onConnect, onDisconnect } = params;
|
|
64057
64057
|
const { connectionLookup } = useVueFlow();
|
|
64058
64058
|
const _nodeId = useNodeId();
|
|
64059
|
-
const prevConnections = ref
|
|
64060
|
-
const connections = ref
|
|
64059
|
+
const prevConnections = ref(null);
|
|
64060
|
+
const connections = ref();
|
|
64061
64061
|
const lookupKey = computed$1(() => {
|
|
64062
64062
|
const currNodeId = toValue$2(nodeId) ?? _nodeId;
|
|
64063
64063
|
const currentHandleType = toValue$2(handleType);
|
|
@@ -66672,7 +66672,7 @@ const _sfc_main$3G = /* @__PURE__ */ defineComponent({
|
|
|
66672
66672
|
const defaultWidth = 200;
|
|
66673
66673
|
const defaultHeight = 150;
|
|
66674
66674
|
const { id: id2, edges, viewport, translateExtent, dimensions, emits, d3Selection, d3Zoom, getNodesInitialized } = useVueFlow();
|
|
66675
|
-
const el = ref
|
|
66675
|
+
const el = ref();
|
|
66676
66676
|
provide(Slots, slots);
|
|
66677
66677
|
const elementWidth = toRef(() => {
|
|
66678
66678
|
var _a2;
|
|
@@ -67135,7 +67135,7 @@ function ut$1(s) {
|
|
|
67135
67135
|
return s.label !== void 0;
|
|
67136
67136
|
}
|
|
67137
67137
|
function ie$1() {
|
|
67138
|
-
const s = ref
|
|
67138
|
+
const s = ref(false);
|
|
67139
67139
|
return watchEffect(() => {
|
|
67140
67140
|
const a = () => {
|
|
67141
67141
|
s.value = document.hidden;
|
|
@@ -67177,15 +67177,15 @@ const le = ["aria-live", "data-rich-colors", "data-styled", "data-mounted", "dat
|
|
|
67177
67177
|
},
|
|
67178
67178
|
emits: ["update:heights", "removeToast"],
|
|
67179
67179
|
setup(s, { emit: a }) {
|
|
67180
|
-
const t2 = s, n = a, r2 = ref
|
|
67180
|
+
const t2 = s, n = a, r2 = ref(false), g = ref(false), T = ref(false), P = ref(false), h2 = ref(false), u = ref(0), m = ref(0), y = ref(
|
|
67181
67181
|
t2.toast.duration || t2.duration || Wt$1
|
|
67182
|
-
), H = ref
|
|
67182
|
+
), H = ref(null), B = ref(null), pt2 = computed$1(() => t2.index === 0), ht2 = computed$1(() => t2.index + 1 <= t2.visibleToasts), I2 = computed$1(() => t2.toast.type), Y = computed$1(() => t2.toast.dismissible !== false), gt2 = computed$1(() => t2.toast.class || ""), o = computed$1(() => t2.descriptionClass || ""), i = t2.toast.style || {}, l = computed$1(
|
|
67183
67183
|
() => t2.heights.findIndex((e) => e.toastId === t2.toast.id) || 0
|
|
67184
67184
|
), k = computed$1(() => t2.toast.closeButton ?? t2.closeButton);
|
|
67185
67185
|
computed$1(
|
|
67186
67186
|
() => t2.toast.duration || t2.duration || Wt$1
|
|
67187
67187
|
);
|
|
67188
|
-
const b = ref
|
|
67188
|
+
const b = ref(0), z = ref(0), O2 = ref(null), G2 = computed$1(() => t2.position.split("-")), Q2 = computed$1(() => G2.value[0]), ot = computed$1(() => G2.value[1]), st2 = computed$1(() => typeof t2.toast.title != "string"), nt = computed$1(
|
|
67189
67189
|
() => typeof t2.toast.description != "string"
|
|
67190
67190
|
), rt2 = computed$1(() => t2.heights.reduce((e, c, S) => S >= l.value ? e : e + c.height, 0)), it = ie$1(), lt2 = computed$1(() => t2.toast.invert || t2.invert), j = computed$1(() => I2.value === "loading"), M2 = computed$1(() => l.value * t2.gap + rt2.value || 0);
|
|
67191
67191
|
onMounted$1(() => {
|
|
@@ -67566,14 +67566,14 @@ const Ve$1 = /* @__PURE__ */ defineComponent({
|
|
|
67566
67566
|
const o = document.documentElement.getAttribute("dir");
|
|
67567
67567
|
return o === "auto" || !o ? window.getComputedStyle(document.documentElement).direction : o;
|
|
67568
67568
|
}
|
|
67569
|
-
const n = useAttrs(), r2 = ref
|
|
67569
|
+
const n = useAttrs(), r2 = ref([]), g = computed$1(() => (o, i) => r2.value.filter(
|
|
67570
67570
|
(l) => !l.position && i === 0 || l.position === o
|
|
67571
67571
|
)), T = computed$1(() => {
|
|
67572
67572
|
const o = r2.value.filter((i) => i.position).map((i) => i.position);
|
|
67573
67573
|
return o.length > 0 ? Array.from(new Set([a.position].concat(o))) : [a.position];
|
|
67574
|
-
}), P = ref
|
|
67574
|
+
}), P = ref([]), h2 = ref(false), u = ref(false), m = ref(
|
|
67575
67575
|
a.theme !== "system" ? a.theme : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
|
|
67576
|
-
), y = ref
|
|
67576
|
+
), y = ref(null), H = ref(null), B = ref(false), pt2 = a.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
|
|
67577
67577
|
function ht2(o) {
|
|
67578
67578
|
var i;
|
|
67579
67579
|
(i = r2.value.find((l) => l.id === o.id)) != null && i.delete || E.dismiss(o.id), r2.value = r2.value.filter(({ id: l }) => l !== o.id);
|
|
@@ -67991,11 +67991,11 @@ function useRunProcess({
|
|
|
67991
67991
|
const nodeOutputs = /* @__PURE__ */ new Map();
|
|
67992
67992
|
const nodeMap = new Map(nodes.map((node) => [node.id, node]));
|
|
67993
67993
|
const graph2 = toRef(() => toValue$2(dagreGraph));
|
|
67994
|
-
const isRunning = ref
|
|
67994
|
+
const isRunning = ref(false);
|
|
67995
67995
|
const runningTasks = /* @__PURE__ */ new Map();
|
|
67996
67996
|
const executedNodes = /* @__PURE__ */ new Set();
|
|
67997
67997
|
const upcomingTasks = /* @__PURE__ */ new Set();
|
|
67998
|
-
const localVariables = ref
|
|
67998
|
+
const localVariables = ref(variables ? JSON.parse(JSON.stringify(variables.map((v) => ({ ...v, value: Object.keys(v).includes("defaultValue") ? v.defaultValue : v.value ?? null })))) : []);
|
|
67999
67999
|
async function runNode(nodeId, isStart = false) {
|
|
68000
68000
|
var _a2, _b, _c, _d;
|
|
68001
68001
|
if (executedNodes.has(nodeId)) {
|
|
@@ -77230,7 +77230,7 @@ function requireGraphlib() {
|
|
|
77230
77230
|
var graphlibExports = requireGraphlib();
|
|
77231
77231
|
function useLayout() {
|
|
77232
77232
|
const { findNode } = useVueFlow();
|
|
77233
|
-
const graph2 = ref
|
|
77233
|
+
const graph2 = ref(new graphlibExports.Graph({ directed: true }));
|
|
77234
77234
|
function layout(nodes, edges, direction = "TB") {
|
|
77235
77235
|
const dagreGraph = new dagre.graphlib.Graph();
|
|
77236
77236
|
dagreGraph.setDefaultEdgeLabel(() => ({}));
|
|
@@ -77283,8 +77283,8 @@ const _hoisted_10$3 = {
|
|
|
77283
77283
|
const _sfc_main$3j = /* @__PURE__ */ defineComponent({
|
|
77284
77284
|
__name: "Widget",
|
|
77285
77285
|
setup(__props) {
|
|
77286
|
-
const openVariableId = ref
|
|
77287
|
-
const variables = inject$1("variables", ref
|
|
77286
|
+
const openVariableId = ref(null);
|
|
77287
|
+
const variables = inject$1("variables", ref([]));
|
|
77288
77288
|
async function addVariable(type) {
|
|
77289
77289
|
let id2 = crypto.randomUUID();
|
|
77290
77290
|
let name2 = "New variable";
|
|
@@ -77980,8 +77980,8 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
77980
77980
|
])
|
|
77981
77981
|
]),
|
|
77982
77982
|
createVNode(_component_Collapsible, {
|
|
77983
|
-
modelValue:
|
|
77984
|
-
"onUpdate:modelValue": _cache2[5] || (_cache2[5] = ($event) =>
|
|
77983
|
+
modelValue: showAdvanced.value,
|
|
77984
|
+
"onUpdate:modelValue": _cache2[5] || (_cache2[5] = ($event) => showAdvanced.value = $event)
|
|
77985
77985
|
}, {
|
|
77986
77986
|
default: withCtx(() => [
|
|
77987
77987
|
createElementVNode("div", _hoisted_6$b, [
|
|
@@ -78975,7 +78975,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
|
|
|
78975
78975
|
},
|
|
78976
78976
|
emits: ["update:modelValue"],
|
|
78977
78977
|
setup(__props, { emit: __emit }) {
|
|
78978
|
-
const variables = inject$1("variables", ref
|
|
78978
|
+
const variables = inject$1("variables", ref([]));
|
|
78979
78979
|
const props = __props;
|
|
78980
78980
|
const emit = __emit;
|
|
78981
78981
|
const node = computed$1({
|
|
@@ -79240,7 +79240,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
|
|
|
79240
79240
|
const props = __props;
|
|
79241
79241
|
const route = useRoute();
|
|
79242
79242
|
const { getModules } = useProjectService();
|
|
79243
|
-
const modules2 = ref
|
|
79243
|
+
const modules2 = ref([]);
|
|
79244
79244
|
const emit = __emit;
|
|
79245
79245
|
const projectId = computed$1(() => route.params.slug);
|
|
79246
79246
|
const node = computed$1({
|
|
@@ -80087,10 +80087,10 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
|
|
|
80087
80087
|
const { nodes, edges, fitView, onEdgesChange, applyEdgeChanges, onNodesChange, applyNodeChanges, findNode, findEdge, addNodes, removeNodes, addEdges, removeEdges, setNodes, setEdges, toObject } = useVueFlow();
|
|
80088
80088
|
const overlayStack = useOverlayStack();
|
|
80089
80089
|
const randomId = crypto.randomUUID();
|
|
80090
|
-
const activeNodeId = ref
|
|
80091
|
-
const activeEdgeId = ref
|
|
80092
|
-
const variables = ref
|
|
80093
|
-
const computedVariables = ref
|
|
80090
|
+
const activeNodeId = ref(null);
|
|
80091
|
+
const activeEdgeId = ref(null);
|
|
80092
|
+
const variables = ref([]);
|
|
80093
|
+
const computedVariables = ref([]);
|
|
80094
80094
|
provide("variables", variables);
|
|
80095
80095
|
provide("computedVariables", computedVariables);
|
|
80096
80096
|
const activeNode = computed$1(() => {
|
|
@@ -80325,7 +80325,7 @@ const _sfc_main$2T = /* @__PURE__ */ defineComponent({
|
|
|
80325
80325
|
setup(__props) {
|
|
80326
80326
|
const props = __props;
|
|
80327
80327
|
const { closeFlowBuilder } = useFlowBuilder();
|
|
80328
|
-
const flowBuilder = ref
|
|
80328
|
+
const flowBuilder = ref();
|
|
80329
80329
|
watch$1(
|
|
80330
80330
|
() => props.workflow,
|
|
80331
80331
|
async () => {
|
|
@@ -81078,8 +81078,8 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
|
81078
81078
|
},
|
|
81079
81079
|
setup(__props) {
|
|
81080
81080
|
const props = __props;
|
|
81081
|
-
const isEditMode = inject$1("isEditMode", ref
|
|
81082
|
-
const allAvailableVariables = inject$1("allAvailableVariables", ref
|
|
81081
|
+
const isEditMode = inject$1("isEditMode", ref(false));
|
|
81082
|
+
const allAvailableVariables = inject$1("allAvailableVariables", ref([]));
|
|
81083
81083
|
const onFinish = inject$1("onFinish", () => {
|
|
81084
81084
|
});
|
|
81085
81085
|
const handleClick = () => {
|
|
@@ -111048,15 +111048,15 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
|
111048
111048
|
setup(__props, { emit: __emit }) {
|
|
111049
111049
|
const props = __props;
|
|
111050
111050
|
const emit = __emit;
|
|
111051
|
-
const allAvailableVariables = inject$1("allAvailableVariables", ref
|
|
111051
|
+
const allAvailableVariables = inject$1("allAvailableVariables", ref([]));
|
|
111052
111052
|
const state = inject$1("state");
|
|
111053
|
-
const scanning = ref
|
|
111054
|
-
const error = ref
|
|
111055
|
-
const videoRef = ref
|
|
111053
|
+
const scanning = ref(false);
|
|
111054
|
+
const error = ref(null);
|
|
111055
|
+
const videoRef = ref(null);
|
|
111056
111056
|
let codeReader = null;
|
|
111057
|
-
const devices = ref
|
|
111058
|
-
const uniqueDevices = ref
|
|
111059
|
-
const selectedDeviceId = ref
|
|
111057
|
+
const devices = ref([]);
|
|
111058
|
+
const uniqueDevices = ref([]);
|
|
111059
|
+
const selectedDeviceId = ref(void 0);
|
|
111060
111060
|
const getCameras = async () => {
|
|
111061
111061
|
try {
|
|
111062
111062
|
const mediaDevices = await navigator.mediaDevices.enumerateDevices();
|
|
@@ -112210,7 +112210,7 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
|
|
|
112210
112210
|
emit("removeItem", activeElement.value.i);
|
|
112211
112211
|
activeElement.value = null;
|
|
112212
112212
|
}
|
|
112213
|
-
const newName = ref
|
|
112213
|
+
const newName = ref("");
|
|
112214
112214
|
watch(activeElement, () => {
|
|
112215
112215
|
newName.value = activeElement.value.variableName || "";
|
|
112216
112216
|
});
|
|
@@ -117514,7 +117514,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
117514
117514
|
const isDragging2 = inject$1("isDragging");
|
|
117515
117515
|
const activeElement = inject$1("activeElement");
|
|
117516
117516
|
const selectedItems = inject$1("selectedItems");
|
|
117517
|
-
const isEditMode = inject$1("isEditMode", ref
|
|
117517
|
+
const isEditMode = inject$1("isEditMode", ref(false));
|
|
117518
117518
|
const allAvailableVariables = inject$1("allAvailableVariables");
|
|
117519
117519
|
const containerRef = useTemplateRef("containerRef");
|
|
117520
117520
|
const { width: containerWidth, height: containerHeight } = useElementSize(containerRef);
|
|
@@ -117530,7 +117530,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
117530
117530
|
let containerEl;
|
|
117531
117531
|
let selectionBox;
|
|
117532
117532
|
let startX, startY;
|
|
117533
|
-
const isSelecting = ref
|
|
117533
|
+
const isSelecting = ref(false);
|
|
117534
117534
|
const startSelectionDrag = (e) => {
|
|
117535
117535
|
if (!isEditMode.value) return;
|
|
117536
117536
|
const target = e.target;
|
|
@@ -117756,18 +117756,18 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
|
117756
117756
|
const props = __props;
|
|
117757
117757
|
const { setModuleBreadcrumbs } = useBreadcrumbs();
|
|
117758
117758
|
setModuleBreadcrumbs([]);
|
|
117759
|
-
const adminPanel = ref
|
|
117760
|
-
const activeElement = ref
|
|
117761
|
-
const selectedItems = ref
|
|
117762
|
-
const isDragging2 = ref
|
|
117759
|
+
const adminPanel = ref("new-element");
|
|
117760
|
+
const activeElement = ref(null);
|
|
117761
|
+
const selectedItems = ref([]);
|
|
117762
|
+
const isDragging2 = ref(false);
|
|
117763
117763
|
const isEditMode = computed$1(() => !props.isPresentationMode);
|
|
117764
117764
|
const layout = [
|
|
117765
117765
|
{ x: 0, y: 0, w: 2, h: 2, i: "0", resizable: true, draggable: true, static: false, minY: 0, maxY: 2 }
|
|
117766
117766
|
];
|
|
117767
|
-
const previewSize = ref
|
|
117768
|
-
const builderContainer = ref
|
|
117769
|
-
const isResizing = ref
|
|
117770
|
-
const resizeStart = ref
|
|
117767
|
+
const previewSize = ref({ width: 400, height: 400 });
|
|
117768
|
+
const builderContainer = ref(null);
|
|
117769
|
+
const isResizing = ref(false);
|
|
117770
|
+
const resizeStart = ref({ x: 0, y: 0, width: 0, height: 0 });
|
|
117771
117771
|
function startResizing(e) {
|
|
117772
117772
|
isResizing.value = true;
|
|
117773
117773
|
resizeStart.value = {
|
|
@@ -118036,7 +118036,7 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
|
|
|
118036
118036
|
setup(__props) {
|
|
118037
118037
|
const props = __props;
|
|
118038
118038
|
const { closeFormBuilder } = useFormBuilder();
|
|
118039
|
-
const formBuilder = ref
|
|
118039
|
+
const formBuilder = ref();
|
|
118040
118040
|
watch$1(
|
|
118041
118041
|
() => props.config,
|
|
118042
118042
|
async () => {
|
|
@@ -118164,7 +118164,7 @@ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
|
118164
118164
|
},
|
|
118165
118165
|
setup(__props) {
|
|
118166
118166
|
const props = __props;
|
|
118167
|
-
const form = ref
|
|
118167
|
+
const form = ref();
|
|
118168
118168
|
const loadForm = async () => {
|
|
118169
118169
|
await nextTick();
|
|
118170
118170
|
form.value.setState({
|
|
@@ -118609,7 +118609,7 @@ function withLatest(fn2, onDone) {
|
|
|
118609
118609
|
};
|
|
118610
118610
|
}
|
|
118611
118611
|
function computedDeep({ get: get2, set: set2 }) {
|
|
118612
|
-
const baseRef = ref
|
|
118612
|
+
const baseRef = ref(klona(get2()));
|
|
118613
118613
|
watch$1(get2, (newValue) => {
|
|
118614
118614
|
if (isEqual(newValue, baseRef.value)) {
|
|
118615
118615
|
return;
|
|
@@ -119113,7 +119113,7 @@ function useFieldState(path, init5) {
|
|
|
119113
119113
|
};
|
|
119114
119114
|
}
|
|
119115
119115
|
function _useFieldValue(path, modelValue, form) {
|
|
119116
|
-
const modelRef = ref
|
|
119116
|
+
const modelRef = ref(unref(modelValue));
|
|
119117
119117
|
function resolveInitialValue2() {
|
|
119118
119118
|
if (!form) {
|
|
119119
119119
|
return unref(modelRef);
|
|
@@ -119129,7 +119129,7 @@ function _useFieldValue(path, modelValue, form) {
|
|
|
119129
119129
|
}
|
|
119130
119130
|
const initialValue = computed$1(resolveInitialValue2);
|
|
119131
119131
|
if (!form) {
|
|
119132
|
-
const value2 = ref
|
|
119132
|
+
const value2 = ref(resolveInitialValue2());
|
|
119133
119133
|
return {
|
|
119134
119134
|
value: value2,
|
|
119135
119135
|
initialValue,
|
|
@@ -119186,7 +119186,7 @@ function createFieldMeta(currentValue, initialValue, errors, schema) {
|
|
|
119186
119186
|
return meta2;
|
|
119187
119187
|
}
|
|
119188
119188
|
function createFieldErrors() {
|
|
119189
|
-
const errors = ref
|
|
119189
|
+
const errors = ref([]);
|
|
119190
119190
|
return {
|
|
119191
119191
|
errors,
|
|
119192
119192
|
setErrors: (messages2) => {
|
|
@@ -120122,14 +120122,14 @@ function useForm(opts) {
|
|
|
120122
120122
|
const formId = FORM_COUNTER++;
|
|
120123
120123
|
const name2 = (opts === null || opts === void 0 ? void 0 : opts.name) || "Form";
|
|
120124
120124
|
let FIELD_ID_COUNTER = 0;
|
|
120125
|
-
const isSubmitting = ref
|
|
120126
|
-
const isValidating = ref
|
|
120127
|
-
const submitCount = ref
|
|
120125
|
+
const isSubmitting = ref(false);
|
|
120126
|
+
const isValidating = ref(false);
|
|
120127
|
+
const submitCount = ref(0);
|
|
120128
120128
|
const fieldArrays = [];
|
|
120129
120129
|
const formValues = reactive(resolveInitialValues(opts));
|
|
120130
|
-
const pathStates = ref
|
|
120131
|
-
const extraErrorsBag = ref
|
|
120132
|
-
const pathStateLookup = ref
|
|
120130
|
+
const pathStates = ref([]);
|
|
120131
|
+
const extraErrorsBag = ref({});
|
|
120132
|
+
const pathStateLookup = ref({});
|
|
120133
120133
|
const rebuildPathLookup = debounceNextTick(() => {
|
|
120134
120134
|
pathStateLookup.value = pathStates.value.reduce((names, state) => {
|
|
120135
120135
|
names[normalizeFormPath(toValue$2(state.path))] = state;
|
|
@@ -120895,8 +120895,8 @@ function useFormMeta(pathsState, currentValues, initialValues, errors) {
|
|
|
120895
120895
|
}
|
|
120896
120896
|
function useFormInitialValues(pathsState, formValues, opts) {
|
|
120897
120897
|
const values = resolveInitialValues(opts);
|
|
120898
|
-
const initialValues = ref
|
|
120899
|
-
const originalInitialValues = ref
|
|
120898
|
+
const initialValues = ref(values);
|
|
120899
|
+
const originalInitialValues = ref(klona(values));
|
|
120900
120900
|
function setInitialValues(values2, opts2) {
|
|
120901
120901
|
if (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) {
|
|
120902
120902
|
initialValues.value = klona(values2);
|
|
@@ -121080,7 +121080,7 @@ const FormImpl = /* @__PURE__ */ defineComponent({
|
|
|
121080
121080
|
const Form = FormImpl;
|
|
121081
121081
|
function useFieldArray(arrayPath) {
|
|
121082
121082
|
const form = injectWithSelf(FormContextKey, void 0);
|
|
121083
|
-
const fields = ref
|
|
121083
|
+
const fields = ref([]);
|
|
121084
121084
|
const noOp = () => {
|
|
121085
121085
|
};
|
|
121086
121086
|
const noOpApi = {
|
|
@@ -121647,11 +121647,11 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
121647
121647
|
const { builderState, onConfirm, onCancel } = ([__temp, __restore] = withAsyncContext(() => useIntegrationActionBuilder()), __temp = await __temp, __restore(), __temp);
|
|
121648
121648
|
const route = useRoute();
|
|
121649
121649
|
const { getProjectIntegrations } = useIntegrations();
|
|
121650
|
-
const integrations = ref
|
|
121651
|
-
const serviceTypes = ref
|
|
121652
|
-
const actionTypes = ref
|
|
121650
|
+
const integrations = ref([]);
|
|
121651
|
+
const serviceTypes = ref([]);
|
|
121652
|
+
const actionTypes = ref([]);
|
|
121653
121653
|
const projectId = computed$1(() => route.params.slug);
|
|
121654
|
-
const integrationAction = ref
|
|
121654
|
+
const integrationAction = ref({
|
|
121655
121655
|
integration: "",
|
|
121656
121656
|
integrationType: "",
|
|
121657
121657
|
serviceType: "",
|
|
@@ -121991,7 +121991,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
121991
121991
|
const modelValue = useVModel$2(props, "modelValue", emits, {
|
|
121992
121992
|
passive: true
|
|
121993
121993
|
});
|
|
121994
|
-
const search = ref
|
|
121994
|
+
const search = ref("");
|
|
121995
121995
|
const filteredIcons = computed$1(() => {
|
|
121996
121996
|
const searchTerm = search.value.toLowerCase();
|
|
121997
121997
|
let filtered = Object.entries(icons).reduce((acc, [iconName, IconComponent]) => {
|
|
@@ -122109,8 +122109,8 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
122109
122109
|
setup(__props) {
|
|
122110
122110
|
const props = __props;
|
|
122111
122111
|
const { uploadFile } = useMediaLibrary();
|
|
122112
|
-
const dropZoneRef = ref
|
|
122113
|
-
const PENDING_FILES = inject$1("pendingFiles", ref
|
|
122112
|
+
const dropZoneRef = ref();
|
|
122113
|
+
const PENDING_FILES = inject$1("pendingFiles", ref([]));
|
|
122114
122114
|
const reload = inject$1("reload", () => {
|
|
122115
122115
|
});
|
|
122116
122116
|
async function onDrop(files) {
|
|
@@ -122188,7 +122188,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
122188
122188
|
}
|
|
122189
122189
|
},
|
|
122190
122190
|
setup(__props) {
|
|
122191
|
-
const focusSearch = ref
|
|
122191
|
+
const focusSearch = ref(false);
|
|
122192
122192
|
const search = inject$1("search");
|
|
122193
122193
|
const sort = inject$1("sort");
|
|
122194
122194
|
return (_ctx, _cache2) => {
|
|
@@ -122351,7 +122351,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
122351
122351
|
setup(__props, { emit: __emit }) {
|
|
122352
122352
|
const props = __props;
|
|
122353
122353
|
const emit = __emit;
|
|
122354
|
-
const focus = ref
|
|
122354
|
+
const focus = ref(false);
|
|
122355
122355
|
const { urlToBase64 } = useUtilsService();
|
|
122356
122356
|
const openImageEditor = inject$1("openImageEditor");
|
|
122357
122357
|
const editImage = async (url) => {
|
|
@@ -122361,7 +122361,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
122361
122361
|
const isImageFile = (contentType) => {
|
|
122362
122362
|
return contentType && contentType.startsWith("image/") || false;
|
|
122363
122363
|
};
|
|
122364
|
-
const imageFailed = ref
|
|
122364
|
+
const imageFailed = ref(false);
|
|
122365
122365
|
const onImageError = () => {
|
|
122366
122366
|
imageFailed.value = true;
|
|
122367
122367
|
};
|
|
@@ -122524,23 +122524,23 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
122524
122524
|
const route = useRoute();
|
|
122525
122525
|
const emit = __emit;
|
|
122526
122526
|
const props = __props;
|
|
122527
|
-
const dialogOpen = ref
|
|
122528
|
-
const project = ref
|
|
122527
|
+
const dialogOpen = ref(false);
|
|
122528
|
+
const project = ref(route.params.slug);
|
|
122529
122529
|
const { getMediaSource } = useMediaLibrary();
|
|
122530
|
-
const activeSourceId = ref
|
|
122531
|
-
const activeSource = ref
|
|
122532
|
-
const folders = ref
|
|
122533
|
-
const files = ref
|
|
122534
|
-
const fileCount = ref
|
|
122535
|
-
const currentPath = ref
|
|
122536
|
-
const navigationHistory = ref
|
|
122537
|
-
const effectiveBasePath = ref
|
|
122538
|
-
const search = ref
|
|
122539
|
-
const sort = ref
|
|
122540
|
-
const selectedFiles = ref
|
|
122530
|
+
const activeSourceId = ref("");
|
|
122531
|
+
const activeSource = ref({});
|
|
122532
|
+
const folders = ref([]);
|
|
122533
|
+
const files = ref([]);
|
|
122534
|
+
const fileCount = ref(0);
|
|
122535
|
+
const currentPath = ref("");
|
|
122536
|
+
const navigationHistory = ref([]);
|
|
122537
|
+
const effectiveBasePath = ref("");
|
|
122538
|
+
const search = ref("");
|
|
122539
|
+
const sort = ref("name-asc");
|
|
122540
|
+
const selectedFiles = ref([]);
|
|
122541
122541
|
provide("search", search);
|
|
122542
122542
|
provide("sort", sort);
|
|
122543
|
-
const PENDING_FILES = ref
|
|
122543
|
+
const PENDING_FILES = ref([]);
|
|
122544
122544
|
provide("pendingFiles", PENDING_FILES);
|
|
122545
122545
|
const filteredFolders = computed$1(() => {
|
|
122546
122546
|
let filtered = [...folders.value];
|
|
@@ -122582,8 +122582,8 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
122582
122582
|
search.value = "";
|
|
122583
122583
|
loadContent(activeSource.value.path);
|
|
122584
122584
|
});
|
|
122585
|
-
const loading = ref
|
|
122586
|
-
const error = ref
|
|
122585
|
+
const loading = ref(false);
|
|
122586
|
+
const error = ref("");
|
|
122587
122587
|
const reload = () => {
|
|
122588
122588
|
loadContent(currentPath.value, true);
|
|
122589
122589
|
};
|
|
@@ -128945,12 +128945,12 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
128945
128945
|
const items = inject$1("media-items", { value: [] });
|
|
128946
128946
|
const updateItems = inject$1("update-media-items", () => {
|
|
128947
128947
|
});
|
|
128948
|
-
const selectedItems = ref
|
|
128949
|
-
const itemsContainer = ref
|
|
128950
|
-
const originalItemsArray = ref
|
|
128951
|
-
const draggingItemIndex = ref
|
|
128952
|
-
const lastHoveredIndex = ref
|
|
128953
|
-
const showAll = ref
|
|
128948
|
+
const selectedItems = ref([]);
|
|
128949
|
+
const itemsContainer = ref(null);
|
|
128950
|
+
const originalItemsArray = ref(null);
|
|
128951
|
+
const draggingItemIndex = ref(-1);
|
|
128952
|
+
const lastHoveredIndex = ref(-1);
|
|
128953
|
+
const showAll = ref(false);
|
|
128954
128954
|
const fileSelectorCheckboxState = computed$1(() => {
|
|
128955
128955
|
if (selectedItems.value.length === items.value.length) return true;
|
|
128956
128956
|
if (selectedItems.value.length === 0) return false;
|
|
@@ -128988,7 +128988,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
128988
128988
|
return itemsContainer.value.querySelectorAll(".draggable-item");
|
|
128989
128989
|
};
|
|
128990
128990
|
let draggableInstances = [];
|
|
128991
|
-
ref
|
|
128991
|
+
ref({ row: 0, col: 0 });
|
|
128992
128992
|
let rafId = null;
|
|
128993
128993
|
let lastDragEvent = null;
|
|
128994
128994
|
let currentDragTarget = null;
|
|
@@ -129250,7 +129250,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
129250
129250
|
const updateItems = (newItems) => {
|
|
129251
129251
|
emit("update:modelValue", newItems);
|
|
129252
129252
|
};
|
|
129253
|
-
const items = ref
|
|
129253
|
+
const items = ref([...props.modelValue || []]);
|
|
129254
129254
|
watch$1(() => props.modelValue, (newVal) => {
|
|
129255
129255
|
items.value = [...newVal || []];
|
|
129256
129256
|
}, { deep: true });
|
|
@@ -130230,7 +130230,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
130230
130230
|
const route = useRoute();
|
|
130231
130231
|
const projectId = route.params.slug;
|
|
130232
130232
|
const props = __props;
|
|
130233
|
-
const dialogIsOpen = ref
|
|
130233
|
+
const dialogIsOpen = ref(false);
|
|
130234
130234
|
const openDialog = async (query) => {
|
|
130235
130235
|
dialogIsOpen.value = true;
|
|
130236
130236
|
await nextTick();
|
|
@@ -130265,21 +130265,21 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
130265
130265
|
});
|
|
130266
130266
|
const emit = __emit;
|
|
130267
130267
|
const { getProjectIntegrations } = useIntegrations();
|
|
130268
|
-
const integrations = ref
|
|
130268
|
+
const integrations = ref([]);
|
|
130269
130269
|
integrations.value = ([__temp, __restore] = withAsyncContext(() => getProjectIntegrations(projectId)), __temp = await __temp, __restore(), __temp);
|
|
130270
130270
|
const { buildFirebaseQuery, buildSQLQuery } = useQueryBuilder();
|
|
130271
|
-
const selectedIntegrationId = ref
|
|
130271
|
+
const selectedIntegrationId = ref(props.integrationId);
|
|
130272
130272
|
const integration = computed$1(() => {
|
|
130273
130273
|
if (props.integrationId) {
|
|
130274
130274
|
return integrations.value.find((integration2) => integration2.id === props.integrationId);
|
|
130275
130275
|
}
|
|
130276
130276
|
return integrations.value.find((integration2) => integration2.id === selectedIntegrationId.value);
|
|
130277
130277
|
});
|
|
130278
|
-
const errorMessage = ref
|
|
130279
|
-
const indexUrl = ref
|
|
130280
|
-
const resource = ref
|
|
130281
|
-
ref
|
|
130282
|
-
const filters = ref
|
|
130278
|
+
const errorMessage = ref(null);
|
|
130279
|
+
const indexUrl = ref(null);
|
|
130280
|
+
const resource = ref("");
|
|
130281
|
+
ref(["team-building-requests", "users", "projects"]);
|
|
130282
|
+
const filters = ref([]);
|
|
130283
130283
|
const operatorOptions = [
|
|
130284
130284
|
{ label: "=", value: "==" },
|
|
130285
130285
|
{ label: "≠", value: "!=" },
|
|
@@ -130303,22 +130303,22 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
130303
130303
|
function removeFilter(idx) {
|
|
130304
130304
|
filters.value.splice(idx, 1);
|
|
130305
130305
|
}
|
|
130306
|
-
const sorts = ref
|
|
130306
|
+
const sorts = ref([]);
|
|
130307
130307
|
function addSort() {
|
|
130308
130308
|
sorts.value.push({ field: "", direction: "asc" });
|
|
130309
130309
|
}
|
|
130310
130310
|
function removeSort(idx) {
|
|
130311
130311
|
sorts.value.splice(idx, 1);
|
|
130312
130312
|
}
|
|
130313
|
-
const showAdvanced = ref
|
|
130314
|
-
const limit = ref
|
|
130315
|
-
const offset = ref
|
|
130316
|
-
const startAt = ref
|
|
130317
|
-
const endAt = ref
|
|
130318
|
-
const groupBy = ref
|
|
130319
|
-
const distinct = ref
|
|
130320
|
-
const queryPreview = ref
|
|
130321
|
-
const queryResult = ref
|
|
130313
|
+
const showAdvanced = ref(false);
|
|
130314
|
+
const limit = ref(null);
|
|
130315
|
+
const offset = ref(null);
|
|
130316
|
+
const startAt = ref(null);
|
|
130317
|
+
const endAt = ref(null);
|
|
130318
|
+
const groupBy = ref("");
|
|
130319
|
+
const distinct = ref(false);
|
|
130320
|
+
const queryPreview = ref("");
|
|
130321
|
+
const queryResult = ref(null);
|
|
130322
130322
|
function resetOutput() {
|
|
130323
130323
|
queryPreview.value = "";
|
|
130324
130324
|
queryResult.value = null;
|
|
@@ -131565,8 +131565,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
131565
131565
|
setup(__props, { emit: __emit }) {
|
|
131566
131566
|
const props = __props;
|
|
131567
131567
|
const emit = __emit;
|
|
131568
|
-
const rippleButtonRef = ref
|
|
131569
|
-
const buttonRipples = ref
|
|
131568
|
+
const rippleButtonRef = ref(null);
|
|
131569
|
+
const buttonRipples = ref([]);
|
|
131570
131570
|
function handleClick(event) {
|
|
131571
131571
|
createRipple(event);
|
|
131572
131572
|
emit("click", event);
|
|
@@ -131781,9 +131781,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
131781
131781
|
return cn$1(props.class);
|
|
131782
131782
|
});
|
|
131783
131783
|
const emit = __emit;
|
|
131784
|
-
const activeIndicator = ref
|
|
131785
|
-
const containerRef = ref
|
|
131786
|
-
const activeButtonIndex = ref
|
|
131784
|
+
const activeIndicator = ref(null);
|
|
131785
|
+
const containerRef = ref(null);
|
|
131786
|
+
const activeButtonIndex = ref(0);
|
|
131787
131787
|
provide("segmentedControlValue", toRef(props, "modelValue"));
|
|
131788
131788
|
provide("segmentedControlRegister", registerButton);
|
|
131789
131789
|
provide("segmentedControlContainer", containerRef);
|
|
@@ -131860,7 +131860,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
131860
131860
|
});
|
|
131861
131861
|
const registerButton = inject$1("segmentedControlRegister", () => {
|
|
131862
131862
|
});
|
|
131863
|
-
const buttonRef = ref
|
|
131863
|
+
const buttonRef = ref(null);
|
|
131864
131864
|
const isActive = computed$1(() => (currentValue == null ? void 0 : currentValue.value) === props.value);
|
|
131865
131865
|
const handleClick = () => {
|
|
131866
131866
|
if (!props.disabled) {
|
|
@@ -133267,7 +133267,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
133267
133267
|
const props = __props;
|
|
133268
133268
|
const emits = __emit;
|
|
133269
133269
|
const isMobile = useMediaQuery("(max-width: 768px)");
|
|
133270
|
-
const openMobile = ref
|
|
133270
|
+
const openMobile = ref(false);
|
|
133271
133271
|
const open = useVModel$2(props, "open", emits, {
|
|
133272
133272
|
defaultValue: props.defaultOpen ?? false,
|
|
133273
133273
|
passive: props.open === void 0
|
|
@@ -141286,7 +141286,7 @@ function useMotionState(props) {
|
|
|
141286
141286
|
const config3 = useMotionConfig();
|
|
141287
141287
|
const animatePresenceContext = injectAnimatePresence({});
|
|
141288
141288
|
const lazyMotionContext = useLazyMotionContext({
|
|
141289
|
-
features: ref
|
|
141289
|
+
features: ref([]),
|
|
141290
141290
|
strict: false
|
|
141291
141291
|
});
|
|
141292
141292
|
if (process.env.NODE_ENV !== "production" && ((_a2 = props.features) == null ? void 0 : _a2.length) && lazyMotionContext.strict) {
|
|
@@ -141621,7 +141621,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
141621
141621
|
setup(__props, { emit: __emit }) {
|
|
141622
141622
|
const props = __props;
|
|
141623
141623
|
const emit = __emit;
|
|
141624
|
-
const activeIndex = ref
|
|
141624
|
+
const activeIndex = ref(props.initialIndex ?? 0);
|
|
141625
141625
|
function setActive2(index) {
|
|
141626
141626
|
activeIndex.value = index;
|
|
141627
141627
|
emit("update:activeIndex", index);
|
|
@@ -141731,14 +141731,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
141731
141731
|
},
|
|
141732
141732
|
setup(__props) {
|
|
141733
141733
|
const props = __props;
|
|
141734
|
-
const text1Ref = ref
|
|
141735
|
-
const text2Ref = ref
|
|
141736
|
-
const previousText = ref
|
|
141737
|
-
const currentText = ref
|
|
141738
|
-
const morph = ref
|
|
141739
|
-
const coolDown = ref
|
|
141740
|
-
const time2 = ref
|
|
141741
|
-
const isAnimating = ref
|
|
141734
|
+
const text1Ref = ref();
|
|
141735
|
+
const text2Ref = ref();
|
|
141736
|
+
const previousText = ref(props.text);
|
|
141737
|
+
const currentText = ref(props.text);
|
|
141738
|
+
const morph = ref(0);
|
|
141739
|
+
const coolDown = ref(0);
|
|
141740
|
+
const time2 = ref(/* @__PURE__ */ new Date());
|
|
141741
|
+
const isAnimating = ref(false);
|
|
141742
141742
|
let animationFrameId = 0;
|
|
141743
141743
|
function setStyles(fraction) {
|
|
141744
141744
|
if (!text1Ref.value || !text2Ref.value) return;
|