@oneclick.dev/cms-kit 0.0.19 → 0.0.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/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 as ref$1, watch as watch$1, onMounted as onMounted$1, unref, computed as computed$1, mergeProps, h, createTextVNode, onBeforeUnmount, getCurrentScope, onScopeDispose, nextTick as nextTick$1, customRef, isRef, reactive, getCurrentInstance, hasInjectionContext, inject as inject$1, toRefs as toRefs$1, toValue as toValue$2, shallowRef, watchEffect as watchEffect$1, 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";
4
+ import { createElementBlock, openBlock, Fragment, renderList, normalizeStyle, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, toDisplayString, resolveComponent, createVNode, withDirectives, withKeys, vModelText, renderSlot, vShow, defineComponent, ref as ref$1, 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 as watchEffect$1, 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";
@@ -51039,7 +51039,7 @@ function tryOnMounted(fn2, sync = true, target) {
51039
51039
  else if (sync)
51040
51040
  fn2();
51041
51041
  else
51042
- nextTick$1(fn2);
51042
+ nextTick(fn2);
51043
51043
  }
51044
51044
  function watchImmediate(source, cb, options) {
51045
51045
  return watch$1(
@@ -51393,7 +51393,7 @@ function useVModel$2(props, key, emit, options = {}) {
51393
51393
  if (!isUpdating) {
51394
51394
  isUpdating = true;
51395
51395
  proxy.value = cloneFn(v);
51396
- nextTick$1(() => isUpdating = false);
51396
+ nextTick(() => isUpdating = false);
51397
51397
  }
51398
51398
  }
51399
51399
  );
@@ -52768,7 +52768,7 @@ function $e$1(e, n, s, i = {}) {
52768
52768
  return watch$1(
52769
52769
  () => e[n],
52770
52770
  (y) => {
52771
- f || (f = true, c.value = L(y), nextTick$1(() => f = false));
52771
+ f || (f = true, c.value = L(y), nextTick(() => f = false));
52772
52772
  }
52773
52773
  ), watch$1(
52774
52774
  c,
@@ -52902,7 +52902,7 @@ function mt$1({
52902
52902
  ), m = (p2) => {
52903
52903
  var c, f, y, P;
52904
52904
  const a = ((c = l.value) == null ? void 0 : c.findIndex((x2) => x2 === p2)) ?? null;
52905
- nextTick$1(() => {
52905
+ nextTick(() => {
52906
52906
  var x2;
52907
52907
  w(a, l.value), C((x2 = s.value) == null ? void 0 : x2.$el, {
52908
52908
  transition: `transform ${O.DURATION}s cubic-bezier(${O.EASE.join(",")})`,
@@ -54670,7 +54670,7 @@ function useVModel$1(props, key, emit, options = {}) {
54670
54670
  if (!isUpdating) {
54671
54671
  isUpdating = true;
54672
54672
  proxy.value = cloneFn(v);
54673
- nextTick$1(() => isUpdating = false);
54673
+ nextTick(() => isUpdating = false);
54674
54674
  }
54675
54675
  }
54676
54676
  );
@@ -58180,7 +58180,7 @@ function applyChanges(changes, elements) {
58180
58180
  if (parent && isGraphNode(parent)) {
58181
58181
  const parentInit = !!parent.dimensions.width && !!parent.dimensions.height;
58182
58182
  if (!parentInit) {
58183
- nextTick$1(() => {
58183
+ nextTick(() => {
58184
58184
  handleParentExpand(element, parent);
58185
58185
  });
58186
58186
  } else {
@@ -58814,7 +58814,7 @@ function handleNodeClick(node, multiSelectionActive, addSelectedNodes, removeSel
58814
58814
  addSelectedNodes([node]);
58815
58815
  } else if (unselect || node.selected && multiSelectionActive) {
58816
58816
  removeSelectedNodes([node]);
58817
- nextTick$1(() => {
58817
+ nextTick(() => {
58818
58818
  nodeEl.blur();
58819
58819
  });
58820
58820
  }
@@ -59889,7 +59889,7 @@ function useWatchProps(models, props, store2) {
59889
59889
  if (((_a2 = models.modelValue) == null ? void 0 : _a2.value) && Array.isArray(models.modelValue.value)) {
59890
59890
  pauseModel == null ? void 0 : pauseModel.pause();
59891
59891
  models.modelValue.value = [...nodes, ...edges];
59892
- nextTick$1(() => {
59892
+ nextTick(() => {
59893
59893
  pauseModel == null ? void 0 : pauseModel.resume();
59894
59894
  });
59895
59895
  }
@@ -59928,7 +59928,7 @@ function useWatchProps(models, props, store2) {
59928
59928
  if (((_a2 = models.nodes) == null ? void 0 : _a2.value) && Array.isArray(models.nodes.value)) {
59929
59929
  pauseModel == null ? void 0 : pauseModel.pause();
59930
59930
  models.nodes.value = [...nodes];
59931
- nextTick$1(() => {
59931
+ nextTick(() => {
59932
59932
  pauseModel == null ? void 0 : pauseModel.resume();
59933
59933
  });
59934
59934
  }
@@ -59967,7 +59967,7 @@ function useWatchProps(models, props, store2) {
59967
59967
  if (((_a2 = models.edges) == null ? void 0 : _a2.value) && Array.isArray(models.edges.value)) {
59968
59968
  pauseModel == null ? void 0 : pauseModel.pause();
59969
59969
  models.edges.value = [...edges];
59970
- nextTick$1(() => {
59970
+ nextTick(() => {
59971
59971
  pauseModel == null ? void 0 : pauseModel.resume();
59972
59972
  });
59973
59973
  }
@@ -63561,7 +63561,7 @@ const NodeWrapper = defineComponent({
63561
63561
  );
63562
63562
  });
63563
63563
  watch$1([() => node.type, () => node.sourcePosition, () => node.targetPosition], () => {
63564
- nextTick$1(() => {
63564
+ nextTick(() => {
63565
63565
  updateNodeDimensions([{ id: props.id, nodeElement: nodeElement.value, forceUpdate: true }]);
63566
63566
  });
63567
63567
  });
@@ -63834,7 +63834,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
63834
63834
  nodesInitialized,
63835
63835
  (isInit) => {
63836
63836
  if (isInit) {
63837
- nextTick$1(() => {
63837
+ nextTick(() => {
63838
63838
  emits.nodesInitialized(getNodes.value);
63839
63839
  });
63840
63840
  }
@@ -63851,7 +63851,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
63851
63851
  forceUpdate: true
63852
63852
  };
63853
63853
  });
63854
- nextTick$1(() => updateNodeDimensions(updates));
63854
+ nextTick(() => updateNodeDimensions(updates));
63855
63855
  });
63856
63856
  });
63857
63857
  onBeforeUnmount(() => {
@@ -67559,7 +67559,7 @@ const Ve$1 = /* @__PURE__ */ defineComponent({
67559
67559
  );
67560
67560
  return;
67561
67561
  }
67562
- nextTick$1(() => {
67562
+ nextTick(() => {
67563
67563
  const k = r2.value.findIndex(
67564
67564
  (b) => b.id === l.id
67565
67565
  );
@@ -77591,7 +77591,7 @@ function getCmsComposable(key) {
77591
77591
  const useIntegrationActionBuilder = () => getCmsComposable("cms-useIntegrationActionBuilder");
77592
77592
  const useIntegrations = () => getCmsComposable("cms-useIntegrations");
77593
77593
  const useIntegrationActions$1 = () => getCmsComposable("cms-useIntegrationActions");
77594
- const useMediaLibrary$1 = () => getCmsComposable("cms-useMediaLibrary");
77594
+ const useMediaLibrary = () => getCmsComposable("cms-useMediaLibrary");
77595
77595
  const useProjectService = () => getCmsComposable("cms-useProjectService");
77596
77596
  const useBreadcrumbs$1 = () => getCmsComposable("cms-useBreadcrumbs");
77597
77597
  const useQueryBuilder = () => getCmsComposable("cms-useQueryBuilder");
@@ -77600,6 +77600,8 @@ const useFirebaseIntegration = () => getCmsComposable("cms-useFirebaseIntegratio
77600
77600
  const useNavigateToModuleRoute = () => getCmsComposable("cms-useNavigateToModuleRoute");
77601
77601
  const useModuleStorage = () => getCmsComposable("cms-useModuleStorage");
77602
77602
  const useLogs = () => getCmsComposable("cms-useLogs");
77603
+ const useUtilsService = () => getCmsComposable("cms-useUtilsService");
77604
+ const useFormBuilder$1 = () => getCmsComposable("cms-useFormBuilder");
77603
77605
  const _sfc_main$3g = /* @__PURE__ */ defineComponent({
77604
77606
  __name: "InterpolationField",
77605
77607
  props: {
@@ -77653,7 +77655,7 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
77653
77655
  setup(__props, { emit: __emit }) {
77654
77656
  const props = __props;
77655
77657
  const emit = __emit;
77656
- const form = computed({
77658
+ const form = computed$1({
77657
77659
  get() {
77658
77660
  return props.modelValue;
77659
77661
  },
@@ -77668,23 +77670,23 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
77668
77670
  createElementVNode("div", _hoisted_2$G, [
77669
77671
  _cache2[3] || (_cache2[3] = createElementVNode("p", { class: "text-sm font-semibold" }, "Collection", -1)),
77670
77672
  createVNode(_sfc_main$3g, {
77671
- modelValue: unref(form).collection,
77672
- "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => unref(form).collection = $event)
77673
+ modelValue: form.value.collection,
77674
+ "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => form.value.collection = $event)
77673
77675
  }, null, 8, ["modelValue"])
77674
77676
  ]),
77675
77677
  createElementVNode("div", _hoisted_3$u, [
77676
77678
  _cache2[4] || (_cache2[4] = createElementVNode("p", { class: "text-sm font-semibold" }, "Document ID", -1)),
77677
77679
  createVNode(_sfc_main$3g, {
77678
- modelValue: unref(form).documentId,
77679
- "onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => unref(form).documentId = $event)
77680
+ modelValue: form.value.documentId,
77681
+ "onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => form.value.documentId = $event)
77680
77682
  }, null, 8, ["modelValue"]),
77681
77683
  _cache2[5] || (_cache2[5] = createElementVNode("p", { class: "text-xs text-muted-foreground" }, "Leave blank to let Firestore generate a random ID", -1))
77682
77684
  ]),
77683
77685
  createElementVNode("div", _hoisted_4$i, [
77684
77686
  _cache2[6] || (_cache2[6] = createElementVNode("p", { class: "text-sm font-semibold" }, "Data", -1)),
77685
77687
  createVNode(_sfc_main$3g, {
77686
- modelValue: unref(form).data,
77687
- "onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => unref(form).data = $event)
77688
+ modelValue: form.value.data,
77689
+ "onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => form.value.data = $event)
77688
77690
  }, null, 8, ["modelValue"])
77689
77691
  ])
77690
77692
  ])
@@ -77731,7 +77733,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
77731
77733
  setup(__props, { emit: __emit }) {
77732
77734
  const props = __props;
77733
77735
  const emit = __emit;
77734
- const form = computed({
77736
+ const form = computed$1({
77735
77737
  get() {
77736
77738
  return props.modelValue || {
77737
77739
  resource: "",
@@ -77800,8 +77802,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
77800
77802
  createElementVNode("div", _hoisted_2$F, [
77801
77803
  _cache2[6] || (_cache2[6] = createElementVNode("p", { class: "text-sm font-semibold" }, "Resource", -1)),
77802
77804
  createVNode(_sfc_main$3g, {
77803
- modelValue: unref(form).resource,
77804
- "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => unref(form).resource = $event)
77805
+ modelValue: form.value.resource,
77806
+ "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => form.value.resource = $event)
77805
77807
  }, null, 8, ["modelValue"])
77806
77808
  ]),
77807
77809
  createElementVNode("div", _hoisted_3$t, [
@@ -77813,7 +77815,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
77813
77815
  __: [7]
77814
77816
  }),
77815
77817
  createElementVNode("div", _hoisted_4$h, [
77816
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(form).filters, (filter2, idx) => {
77818
+ (openBlock(true), createElementBlock(Fragment, null, renderList(form.value.filters, (filter2, idx) => {
77817
77819
  return openBlock(), createElementBlock("div", {
77818
77820
  key: idx,
77819
77821
  class: "flex items-center gap-2"
@@ -77899,7 +77901,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
77899
77901
  __: [10]
77900
77902
  }),
77901
77903
  createElementVNode("div", _hoisted_5$c, [
77902
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(form).sorts, (sort, idx) => {
77904
+ (openBlock(true), createElementBlock(Fragment, null, renderList(form.value.sorts, (sort, idx) => {
77903
77905
  return openBlock(), createElementBlock("div", {
77904
77906
  key: idx,
77905
77907
  class: "flex items-center gap-2"
@@ -78010,8 +78012,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
78010
78012
  __: [17]
78011
78013
  }),
78012
78014
  createVNode(_sfc_main$3g, {
78013
- modelValue: unref(form).limit,
78014
- "onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => unref(form).limit = $event),
78015
+ modelValue: form.value.limit,
78016
+ "onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => form.value.limit = $event),
78015
78017
  placeholder: "Limit"
78016
78018
  }, null, 8, ["modelValue"])
78017
78019
  ]),
@@ -78024,8 +78026,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
78024
78026
  __: [18]
78025
78027
  }),
78026
78028
  createVNode(_sfc_main$3g, {
78027
- modelValue: unref(form).offset,
78028
- "onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => unref(form).offset = $event),
78029
+ modelValue: form.value.offset,
78030
+ "onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => form.value.offset = $event),
78029
78031
  placeholder: "Offset"
78030
78032
  }, null, 8, ["modelValue"])
78031
78033
  ]),
@@ -78038,8 +78040,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
78038
78040
  __: [19]
78039
78041
  }),
78040
78042
  createVNode(_sfc_main$3g, {
78041
- modelValue: unref(form).startAt,
78042
- "onUpdate:modelValue": _cache2[3] || (_cache2[3] = ($event) => unref(form).startAt = $event),
78043
+ modelValue: form.value.startAt,
78044
+ "onUpdate:modelValue": _cache2[3] || (_cache2[3] = ($event) => form.value.startAt = $event),
78043
78045
  placeholder: "StartAt"
78044
78046
  }, null, 8, ["modelValue"])
78045
78047
  ]),
@@ -78052,8 +78054,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
78052
78054
  __: [20]
78053
78055
  }),
78054
78056
  createVNode(_sfc_main$3g, {
78055
- modelValue: unref(form).endAt,
78056
- "onUpdate:modelValue": _cache2[4] || (_cache2[4] = ($event) => unref(form).endAt = $event),
78057
+ modelValue: form.value.endAt,
78058
+ "onUpdate:modelValue": _cache2[4] || (_cache2[4] = ($event) => form.value.endAt = $event),
78057
78059
  placeholder: "EndAt"
78058
78060
  }, null, 8, ["modelValue"])
78059
78061
  ])
@@ -80324,7 +80326,7 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
80324
80326
  () => props.workflow,
80325
80327
  async () => {
80326
80328
  var _a2, _b;
80327
- await nextTick$1();
80329
+ await nextTick();
80328
80330
  (_b = (_a2 = flowBuilder.value) == null ? void 0 : _a2.setState) == null ? void 0 : _b.call(_a2, props.workflow);
80329
80331
  },
80330
80332
  { immediate: true }
@@ -111083,7 +111085,7 @@ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
111083
111085
  console.log(state);
111084
111086
  state.elementValues[props.variableName] = null;
111085
111087
  scanning.value = true;
111086
- await nextTick$1();
111088
+ await nextTick();
111087
111089
  if (!codeReader) {
111088
111090
  codeReader = new BrowserMultiFormatReader();
111089
111091
  }
@@ -111351,7 +111353,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
111351
111353
  }
111352
111354
  if (mouseInGrid === true && state.layout.findIndex((item) => item.i === "drop") === -1) {
111353
111355
  await addElement(state.layout.length * 2 % (state.colNum || 12), state.layout.length + (state.colNum || 12), true);
111354
- await nextTick$1();
111356
+ await nextTick();
111355
111357
  }
111356
111358
  if (!((_a2 = state.itemRefs) == null ? void 0 : _a2.drop)) {
111357
111359
  return;
@@ -111372,7 +111374,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
111372
111374
  if (mouseInGrid === false) {
111373
111375
  state.layoutRef.emitter.emit("dragEvent", ["dragend", "drop", new_pos.x, new_pos.y, ((_g = props.elementData) == null ? void 0 : _g.h) || 1, ((_h = props.elementData) == null ? void 0 : _h.w) || 1]);
111374
111376
  state.layout = state.layout.filter((obj) => obj.i !== "drop");
111375
- await nextTick$1();
111377
+ await nextTick();
111376
111378
  }
111377
111379
  }
111378
111380
  }
@@ -111388,7 +111390,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
111388
111390
  state.layoutRef.emitter.emit("dragEvent", ["dragend", "drop", DragPos.x, DragPos.y, ((_a2 = props.elementData) == null ? void 0 : _a2.h) || 1, ((_b = props.elementData) == null ? void 0 : _b.w) || 1]);
111389
111391
  state.layout = state.layout.filter((obj) => obj.i !== "drop");
111390
111392
  await addElement(DragPos.x, DragPos.y);
111391
- await nextTick$1();
111393
+ await nextTick();
111392
111394
  state.layoutRef.emitter.emit("dragEvent", ["dragend", DragPos.i, DragPos.x, DragPos.y, ((_c = props.elementData) == null ? void 0 : _c.h) || 1, ((_d = props.elementData) == null ? void 0 : _d.w) || 1]);
111393
111395
  }
111394
111396
  }
@@ -117361,7 +117363,7 @@ const Ss = {
117361
117363
  }), onBeforeUnmount(() => {
117362
117364
  s.off("resizeEvent", k), s.off("dragEvent", C2), ws("resize", g), l && a.el && l.uninstall(a.el);
117363
117365
  }), watch$1(() => c.width, async (u, w) => {
117364
- s.emit("updateWidth", c.width), m(), w === null && (await nextTick$1(), o("layout-ready", c.layout));
117366
+ s.emit("updateWidth", c.width), m(), w === null && (await nextTick(), o("layout-ready", c.layout));
117365
117367
  }), watch$1(() => i.layout, () => {
117366
117368
  Wo(i.layout), c.originalLayout = i.layout, d();
117367
117369
  }, { deep: true, immediate: true }), watch$1(() => i.colNum, () => {
@@ -118029,13 +118031,13 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
118029
118031
  },
118030
118032
  setup(__props) {
118031
118033
  const props = __props;
118032
- const { closeFormBuilder } = useFormBuilder();
118034
+ const { closeFormBuilder } = useFormBuilder$1();
118033
118035
  const formBuilder = ref$1();
118034
118036
  watch$1(
118035
118037
  () => props.config,
118036
118038
  async () => {
118037
118039
  var _a2;
118038
- await nextTick$1();
118040
+ await nextTick();
118039
118041
  (_a2 = formBuilder.value) == null ? void 0 : _a2.setState(props.config);
118040
118042
  },
118041
118043
  { immediate: true }
@@ -118160,7 +118162,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
118160
118162
  const props = __props;
118161
118163
  const form = ref$1();
118162
118164
  const loadForm = async () => {
118163
- await nextTick$1();
118165
+ await nextTick();
118164
118166
  form.value.setState({
118165
118167
  ...props.settings,
118166
118168
  layoutRef: {},
@@ -118649,7 +118651,7 @@ function debounceNextTick(inner) {
118649
118651
  let lastTick = null;
118650
118652
  let resolves = [];
118651
118653
  return function(...args) {
118652
- const thisTick = nextTick$1(() => {
118654
+ const thisTick = nextTick(() => {
118653
118655
  if (lastTick !== thisTick) {
118654
118656
  return;
118655
118657
  }
@@ -119317,7 +119319,7 @@ async function installDevtoolsPlugin(app) {
119317
119319
  }
119318
119320
  const refreshInspector = throttle(() => {
119319
119321
  setTimeout(async () => {
119320
- await nextTick$1();
119322
+ await nextTick();
119321
119323
  API === null || API === void 0 ? void 0 : API.sendInspectorState(INSPECTOR_ID);
119322
119324
  API === null || API === void 0 ? void 0 : API.sendInspectorTree(INSPECTOR_ID);
119323
119325
  }, 100);
@@ -120263,7 +120265,7 @@ function useForm(opts) {
120263
120265
  pathStateLookup.value[pathValue] = state;
120264
120266
  rebuildPathLookup();
120265
120267
  if (errors.value[pathValue] && !initialErrors[pathValue]) {
120266
- nextTick$1(() => {
120268
+ nextTick(() => {
120267
120269
  validateField(pathValue, { mode: "silent" });
120268
120270
  });
120269
120271
  }
@@ -120272,7 +120274,7 @@ function useForm(opts) {
120272
120274
  rebuildPathLookup();
120273
120275
  const nextValue = klona(currentValue.value);
120274
120276
  pathStateLookup.value[newPath] = state;
120275
- nextTick$1(() => {
120277
+ nextTick(() => {
120276
120278
  setInPath(formValues, newPath, nextValue);
120277
120279
  });
120278
120280
  });
@@ -120363,7 +120365,7 @@ function useForm(opts) {
120363
120365
  function unsetPathValue(path) {
120364
120366
  UNSET_BATCH.push(path);
120365
120367
  if (!PENDING_UNSET) {
120366
- PENDING_UNSET = nextTick$1(() => {
120368
+ PENDING_UNSET = nextTick(() => {
120367
120369
  const sortedPaths = [...UNSET_BATCH].sort().reverse();
120368
120370
  sortedPaths.forEach((p2) => {
120369
120371
  unsetPath(formValues, p2);
@@ -120434,7 +120436,7 @@ function useForm(opts) {
120434
120436
  if (idx === -1 || !pathState) {
120435
120437
  return;
120436
120438
  }
120437
- nextTick$1(() => {
120439
+ nextTick(() => {
120438
120440
  validateField(path, { mode: "silent", warn: false });
120439
120441
  });
120440
120442
  if (pathState.multiple && pathState.fieldsCount) {
@@ -120461,7 +120463,7 @@ function useForm(opts) {
120461
120463
  }
120462
120464
  });
120463
120465
  pathStates.value = pathStates.value.filter((s) => !s.path.startsWith(path));
120464
- nextTick$1(() => {
120466
+ nextTick(() => {
120465
120467
  rebuildPathLookup();
120466
120468
  });
120467
120469
  }
@@ -120601,7 +120603,7 @@ function useForm(opts) {
120601
120603
  setFieldValue(field, newValue, false);
120602
120604
  setFieldTouched(field, (_a3 = state === null || state === void 0 ? void 0 : state.touched) !== null && _a3 !== void 0 ? _a3 : false);
120603
120605
  setFieldError(field, (state === null || state === void 0 ? void 0 : state.errors) || []);
120604
- nextTick$1(() => {
120606
+ nextTick(() => {
120605
120607
  if (pathState) {
120606
120608
  pathState.__flags.pendingReset = false;
120607
120609
  }
@@ -120623,7 +120625,7 @@ function useForm(opts) {
120623
120625
  (opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? forceSetValues(newValues, false) : setValues(newValues, false);
120624
120626
  setErrors((resetState === null || resetState === void 0 ? void 0 : resetState.errors) || {});
120625
120627
  submitCount.value = (resetState === null || resetState === void 0 ? void 0 : resetState.submitCount) || 0;
120626
- nextTick$1(() => {
120628
+ nextTick(() => {
120627
120629
  validate2({ mode: "silent" });
120628
120630
  mutateAllPathState((state) => {
120629
120631
  state.__flags.pendingReset = false;
@@ -120780,7 +120782,7 @@ function useForm(opts) {
120780
120782
  var _a3;
120781
120783
  const validateOnInput = (_a3 = evalConfig().validateOnInput) !== null && _a3 !== void 0 ? _a3 : getConfig().validateOnInput;
120782
120784
  if (validateOnInput) {
120783
- nextTick$1(() => {
120785
+ nextTick(() => {
120784
120786
  validateField(toValue$2(pathState.path));
120785
120787
  });
120786
120788
  }
@@ -120789,7 +120791,7 @@ function useForm(opts) {
120789
120791
  var _a3;
120790
120792
  const validateOnChange = (_a3 = evalConfig().validateOnChange) !== null && _a3 !== void 0 ? _a3 : getConfig().validateOnChange;
120791
120793
  if (validateOnChange) {
120792
- nextTick$1(() => {
120794
+ nextTick(() => {
120793
120795
  validateField(toValue$2(pathState.path));
120794
120796
  });
120795
120797
  }
@@ -121717,7 +121719,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
121717
121719
  });
121718
121720
  serviceTypes.value = [];
121719
121721
  actionTypes.value = [];
121720
- await nextTick$1();
121722
+ await nextTick();
121721
121723
  };
121722
121724
  const cancel = () => {
121723
121725
  resetForm();
@@ -122103,9 +122105,10 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
122103
122105
  setup(__props) {
122104
122106
  const props = __props;
122105
122107
  const { uploadFile } = useMediaLibrary();
122106
- const dropZoneRef = ref();
122107
- const PENDING_FILES = inject("pendingFiles", ref([]));
122108
- const reload = inject("reload");
122108
+ const dropZoneRef = ref$1();
122109
+ const PENDING_FILES = inject$1("pendingFiles", ref$1([]));
122110
+ const reload = inject$1("reload", () => {
122111
+ });
122109
122112
  async function onDrop(files) {
122110
122113
  for (let i = 0; i < (files == null ? void 0 : files.length); i++) {
122111
122114
  let randomID = crypto.randomUUID();
@@ -122181,9 +122184,9 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
122181
122184
  }
122182
122185
  },
122183
122186
  setup(__props) {
122184
- const focusSearch = ref(false);
122185
- const search = inject("search");
122186
- const sort = inject("sort");
122187
+ const focusSearch = ref$1(false);
122188
+ const search = inject$1("search");
122189
+ const sort = inject$1("sort");
122187
122190
  return (_ctx, _cache2) => {
122188
122191
  const _component_Input = resolveComponent("Input");
122189
122192
  const _component_SelectTrigger = resolveComponent("SelectTrigger");
@@ -122214,7 +122217,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
122214
122217
  class: normalizeClass(unref(cn$1)(
122215
122218
  "size-4 transition-opacity duration-200 opacity-0",
122216
122219
  unref(search) ? "group-hover:opacity-100 cursor-pointer" : "",
122217
- unref(focusSearch) && unref(search) ? "opacity-100" : ""
122220
+ focusSearch.value && unref(search) ? "opacity-100" : ""
122218
122221
  ))
122219
122222
  }, null, 8, ["class"])
122220
122223
  ])
@@ -122344,9 +122347,9 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122344
122347
  setup(__props, { emit: __emit }) {
122345
122348
  const props = __props;
122346
122349
  const emit = __emit;
122347
- const focus = ref(false);
122350
+ const focus = ref$1(false);
122348
122351
  const { urlToBase64 } = useUtilsService();
122349
- const openImageEditor = inject("openImageEditor");
122352
+ const openImageEditor = inject$1("openImageEditor");
122350
122353
  const editImage = async (url) => {
122351
122354
  let res = await urlToBase64(url);
122352
122355
  openImageEditor(res.base64);
@@ -122354,11 +122357,11 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122354
122357
  const isImageFile = (contentType) => {
122355
122358
  return contentType && contentType.startsWith("image/") || false;
122356
122359
  };
122357
- const imageFailed = ref(false);
122360
+ const imageFailed = ref$1(false);
122358
122361
  const onImageError = () => {
122359
122362
  imageFailed.value = true;
122360
122363
  };
122361
- const isPending = computed(() => props.file.status === "pending" || props.file.status === "uploading" || props.file.status === "error");
122364
+ const isPending = computed$1(() => props.file.status === "pending" || props.file.status === "uploading" || props.file.status === "error");
122362
122365
  return (_ctx, _cache2) => {
122363
122366
  const _component_ContextMenuTrigger = resolveComponent("ContextMenuTrigger");
122364
122367
  const _component_ContextMenuItem = resolveComponent("ContextMenuItem");
@@ -122370,9 +122373,9 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122370
122373
  createVNode(_component_ContextMenuTrigger, null, {
122371
122374
  default: withCtx(() => [
122372
122375
  createElementVNode("div", {
122373
- class: normalizeClass(["relative group border rounded-xl p-1 select-none", { "bg-muted": __props.selected, "border-ring": unref(focus) }])
122376
+ class: normalizeClass(["relative group border rounded-xl p-1 select-none", { "bg-muted": __props.selected, "border-ring": focus.value }])
122374
122377
  }, [
122375
- isImageFile(__props.file.contentType) && !unref(imageFailed) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
122378
+ isImageFile(__props.file.contentType) && !imageFailed.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
122376
122379
  createElementVNode("img", {
122377
122380
  src: __props.file.url,
122378
122381
  alt: __props.file.displayName || __props.file.name,
@@ -122385,7 +122388,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122385
122388
  draggable: "false",
122386
122389
  onError: onImageError
122387
122390
  }, null, 42, _hoisted_2$7),
122388
- unref(isPending) ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
122391
+ isPending.value ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
122389
122392
  __props.file.status === "pending" ? (openBlock(), createBlock(unref(Pause), {
122390
122393
  key: 0,
122391
122394
  class: "size-6 text-white"
@@ -122406,7 +122409,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122406
122409
  class: "size-6 text-muted-foreground"
122407
122410
  })) : createCommentVNode("", true)
122408
122411
  ], 2)),
122409
- !unref(isPending) ? (openBlock(), createElementBlock("button", {
122412
+ !isPending.value ? (openBlock(), createElementBlock("button", {
122410
122413
  key: 2,
122411
122414
  onClick: _cache2[0] || (_cache2[0] = ($event) => emit("toggle", __props.file.url)),
122412
122415
  class: "absolute inset-0 flex items-start justify-end bg-black/20 opacity-0 group-hover:opacity-100 transition-opacity rounded-xl cursor-pointer focus-visible:outline-none",
@@ -122418,10 +122421,10 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
122418
122421
  class: "size-6 mt-2 mr-2 drop-shadow-[0_3px_3px_rgba(0,0,0,0.7)] pointer-events-none"
122419
122422
  })) : createCommentVNode("", true)
122420
122423
  ], 32)) : createCommentVNode("", true),
122421
- !unref(isPending) && __props.selected ? (openBlock(), createBlock(unref(SquareCheck), {
122424
+ !isPending.value && __props.selected ? (openBlock(), createBlock(unref(SquareCheck), {
122422
122425
  key: 3,
122423
122426
  class: "absolute top-2 right-2 size-6 drop-shadow-[0_3px_3px_rgba(0,0,0,0.7)] pointer-events-none"
122424
- })) : !unref(isPending) && unref(focus) ? (openBlock(), createBlock(unref(Square), {
122427
+ })) : !isPending.value && focus.value ? (openBlock(), createBlock(unref(Square), {
122425
122428
  key: 4,
122426
122429
  class: "absolute top-2 right-2 size-6 drop-shadow-[0_3px_3px_rgba(0,0,0,0.7)] pointer-events-none"
122427
122430
  })) : createCommentVNode("", true),
@@ -122519,7 +122522,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
122519
122522
  const props = __props;
122520
122523
  const dialogOpen = ref$1(false);
122521
122524
  const project = ref$1(route.params.slug);
122522
- const { getMediaSource } = useMediaLibrary$1();
122525
+ const { getMediaSource } = useMediaLibrary();
122523
122526
  const activeSourceId = ref$1("");
122524
122527
  const activeSource = ref$1({});
122525
122528
  const folders = ref$1([]);
@@ -122590,7 +122593,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
122590
122593
  path = path.substring(1);
122591
122594
  }
122592
122595
  try {
122593
- const { getStorageContent } = useMediaLibrary$1();
122596
+ const { getStorageContent } = useMediaLibrary();
122594
122597
  if (effectiveBasePath.value && path !== void 0) {
122595
122598
  const normalizedPath = path === "" ? "" : path.endsWith("/") ? path : `${path}/`;
122596
122599
  const normalizedBasePath = effectiveBasePath.value === "" ? "" : effectiveBasePath.value.endsWith("/") ? effectiveBasePath.value : `${effectiveBasePath.value}/`;
@@ -129026,7 +129029,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
129026
129029
  }
129027
129030
  });
129028
129031
  draggableInstances = [];
129029
- nextTick$1(() => {
129032
+ nextTick(() => {
129030
129033
  const elements = getDraggableElements();
129031
129034
  if (!elements.length) return;
129032
129035
  try {
@@ -129247,7 +129250,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
129247
129250
  watch$1(() => props.modelValue, (newVal) => {
129248
129251
  items.value = [...newVal || []];
129249
129252
  }, { deep: true });
129250
- const mediaSources = computed(() => props.sources);
129253
+ const mediaSources = computed$1(() => props.sources);
129251
129254
  provide("media-items", items);
129252
129255
  provide("update-media-items", updateItems);
129253
129256
  provide("sources", mediaSources);
@@ -130226,7 +130229,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
130226
130229
  const dialogIsOpen = ref$1(false);
130227
130230
  const openDialog = async (query) => {
130228
130231
  dialogIsOpen.value = true;
130229
- await nextTick$1();
130232
+ await nextTick();
130230
130233
  if (query) {
130231
130234
  selectedIntegrationId.value = query.integration.id;
130232
130235
  resource.value = query.resource;
@@ -130287,7 +130290,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
130287
130290
  ];
130288
130291
  async function addFilter() {
130289
130292
  filters.value.push({ field: "", operator: "==", value: "" });
130290
- await nextTick$1();
130293
+ await nextTick();
130291
130294
  const filterFields = document.querySelectorAll("#query_builder_dialog_filters .filter-field");
130292
130295
  if (filterFields.length) {
130293
130296
  filterFields[filterFields.length - 1].focus();
@@ -131707,7 +131710,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
131707
131710
  }
131708
131711
  }
131709
131712
  function updateIndicatorPosition(index) {
131710
- nextTick$1(() => {
131713
+ nextTick(() => {
131711
131714
  if (!activeIndicator.value || !buttonRefs[index]) return;
131712
131715
  const button = buttonRefs[index];
131713
131716
  const indicator = activeIndicator.value;
@@ -131723,7 +131726,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
131723
131726
  }
131724
131727
  }, { immediate: true });
131725
131728
  onMounted$1(() => {
131726
- nextTick$1(() => {
131729
+ nextTick(() => {
131727
131730
  updateIndicatorPosition(activeButtonIndex.value);
131728
131731
  });
131729
131732
  });
@@ -142311,16 +142314,18 @@ export {
142311
142314
  useBreadcrumbs$1 as useBreadcrumbs,
142312
142315
  useCms,
142313
142316
  useFirebaseIntegration,
142317
+ useFormBuilder$1 as useFormBuilder,
142314
142318
  useIntegrationActionBuilder,
142315
142319
  useIntegrationActions$1 as useIntegrationActions,
142316
142320
  useIntegrations,
142317
142321
  useLayout,
142318
142322
  useLogs,
142319
- useMediaLibrary$1 as useMediaLibrary,
142323
+ useMediaLibrary,
142320
142324
  useModulePermissions,
142321
142325
  useModuleStorage,
142322
142326
  useNavigateToModuleRoute,
142323
142327
  useProjectService,
142324
142328
  useQueryBuilder,
142325
- useRunProcess
142329
+ useRunProcess,
142330
+ useUtilsService
142326
142331
  };