@oneclick.dev/cms-kit 0.0.20 → 0.0.22
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 +5 -5
- package/dist/index.es.js +71 -68
- package/dist/types/index.d.ts +57 -1
- package/dist/types/lib/composables.d.ts +6 -0
- 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 as ref$1, watch as watch$1, onMounted as onMounted$1, unref, computed as computed$1, mergeProps, h, createTextVNode, onBeforeUnmount, getCurrentScope, onScopeDispose, nextTick
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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");
|
|
@@ -77601,6 +77601,7 @@ const useNavigateToModuleRoute = () => getCmsComposable("cms-useNavigateToModule
|
|
|
77601
77601
|
const useModuleStorage = () => getCmsComposable("cms-useModuleStorage");
|
|
77602
77602
|
const useLogs = () => getCmsComposable("cms-useLogs");
|
|
77603
77603
|
const useUtilsService = () => getCmsComposable("cms-useUtilsService");
|
|
77604
|
+
const useFormBuilder$1 = () => getCmsComposable("cms-useFormBuilder");
|
|
77604
77605
|
const _sfc_main$3g = /* @__PURE__ */ defineComponent({
|
|
77605
77606
|
__name: "InterpolationField",
|
|
77606
77607
|
props: {
|
|
@@ -77654,7 +77655,7 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
|
77654
77655
|
setup(__props, { emit: __emit }) {
|
|
77655
77656
|
const props = __props;
|
|
77656
77657
|
const emit = __emit;
|
|
77657
|
-
const form = computed({
|
|
77658
|
+
const form = computed$1({
|
|
77658
77659
|
get() {
|
|
77659
77660
|
return props.modelValue;
|
|
77660
77661
|
},
|
|
@@ -77669,23 +77670,23 @@ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
|
|
|
77669
77670
|
createElementVNode("div", _hoisted_2$G, [
|
|
77670
77671
|
_cache2[3] || (_cache2[3] = createElementVNode("p", { class: "text-sm font-semibold" }, "Collection", -1)),
|
|
77671
77672
|
createVNode(_sfc_main$3g, {
|
|
77672
|
-
modelValue:
|
|
77673
|
-
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) =>
|
|
77673
|
+
modelValue: form.value.collection,
|
|
77674
|
+
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => form.value.collection = $event)
|
|
77674
77675
|
}, null, 8, ["modelValue"])
|
|
77675
77676
|
]),
|
|
77676
77677
|
createElementVNode("div", _hoisted_3$u, [
|
|
77677
77678
|
_cache2[4] || (_cache2[4] = createElementVNode("p", { class: "text-sm font-semibold" }, "Document ID", -1)),
|
|
77678
77679
|
createVNode(_sfc_main$3g, {
|
|
77679
|
-
modelValue:
|
|
77680
|
-
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) =>
|
|
77680
|
+
modelValue: form.value.documentId,
|
|
77681
|
+
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => form.value.documentId = $event)
|
|
77681
77682
|
}, null, 8, ["modelValue"]),
|
|
77682
77683
|
_cache2[5] || (_cache2[5] = createElementVNode("p", { class: "text-xs text-muted-foreground" }, "Leave blank to let Firestore generate a random ID", -1))
|
|
77683
77684
|
]),
|
|
77684
77685
|
createElementVNode("div", _hoisted_4$i, [
|
|
77685
77686
|
_cache2[6] || (_cache2[6] = createElementVNode("p", { class: "text-sm font-semibold" }, "Data", -1)),
|
|
77686
77687
|
createVNode(_sfc_main$3g, {
|
|
77687
|
-
modelValue:
|
|
77688
|
-
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) =>
|
|
77688
|
+
modelValue: form.value.data,
|
|
77689
|
+
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => form.value.data = $event)
|
|
77689
77690
|
}, null, 8, ["modelValue"])
|
|
77690
77691
|
])
|
|
77691
77692
|
])
|
|
@@ -77732,7 +77733,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
77732
77733
|
setup(__props, { emit: __emit }) {
|
|
77733
77734
|
const props = __props;
|
|
77734
77735
|
const emit = __emit;
|
|
77735
|
-
const form = computed({
|
|
77736
|
+
const form = computed$1({
|
|
77736
77737
|
get() {
|
|
77737
77738
|
return props.modelValue || {
|
|
77738
77739
|
resource: "",
|
|
@@ -77801,8 +77802,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
77801
77802
|
createElementVNode("div", _hoisted_2$F, [
|
|
77802
77803
|
_cache2[6] || (_cache2[6] = createElementVNode("p", { class: "text-sm font-semibold" }, "Resource", -1)),
|
|
77803
77804
|
createVNode(_sfc_main$3g, {
|
|
77804
|
-
modelValue:
|
|
77805
|
-
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) =>
|
|
77805
|
+
modelValue: form.value.resource,
|
|
77806
|
+
"onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => form.value.resource = $event)
|
|
77806
77807
|
}, null, 8, ["modelValue"])
|
|
77807
77808
|
]),
|
|
77808
77809
|
createElementVNode("div", _hoisted_3$t, [
|
|
@@ -77814,7 +77815,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
77814
77815
|
__: [7]
|
|
77815
77816
|
}),
|
|
77816
77817
|
createElementVNode("div", _hoisted_4$h, [
|
|
77817
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
77818
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(form.value.filters, (filter2, idx) => {
|
|
77818
77819
|
return openBlock(), createElementBlock("div", {
|
|
77819
77820
|
key: idx,
|
|
77820
77821
|
class: "flex items-center gap-2"
|
|
@@ -77900,7 +77901,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
77900
77901
|
__: [10]
|
|
77901
77902
|
}),
|
|
77902
77903
|
createElementVNode("div", _hoisted_5$c, [
|
|
77903
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
77904
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(form.value.sorts, (sort, idx) => {
|
|
77904
77905
|
return openBlock(), createElementBlock("div", {
|
|
77905
77906
|
key: idx,
|
|
77906
77907
|
class: "flex items-center gap-2"
|
|
@@ -78011,8 +78012,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
78011
78012
|
__: [17]
|
|
78012
78013
|
}),
|
|
78013
78014
|
createVNode(_sfc_main$3g, {
|
|
78014
|
-
modelValue:
|
|
78015
|
-
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) =>
|
|
78015
|
+
modelValue: form.value.limit,
|
|
78016
|
+
"onUpdate:modelValue": _cache2[1] || (_cache2[1] = ($event) => form.value.limit = $event),
|
|
78016
78017
|
placeholder: "Limit"
|
|
78017
78018
|
}, null, 8, ["modelValue"])
|
|
78018
78019
|
]),
|
|
@@ -78025,8 +78026,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
78025
78026
|
__: [18]
|
|
78026
78027
|
}),
|
|
78027
78028
|
createVNode(_sfc_main$3g, {
|
|
78028
|
-
modelValue:
|
|
78029
|
-
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) =>
|
|
78029
|
+
modelValue: form.value.offset,
|
|
78030
|
+
"onUpdate:modelValue": _cache2[2] || (_cache2[2] = ($event) => form.value.offset = $event),
|
|
78030
78031
|
placeholder: "Offset"
|
|
78031
78032
|
}, null, 8, ["modelValue"])
|
|
78032
78033
|
]),
|
|
@@ -78039,8 +78040,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
78039
78040
|
__: [19]
|
|
78040
78041
|
}),
|
|
78041
78042
|
createVNode(_sfc_main$3g, {
|
|
78042
|
-
modelValue:
|
|
78043
|
-
"onUpdate:modelValue": _cache2[3] || (_cache2[3] = ($event) =>
|
|
78043
|
+
modelValue: form.value.startAt,
|
|
78044
|
+
"onUpdate:modelValue": _cache2[3] || (_cache2[3] = ($event) => form.value.startAt = $event),
|
|
78044
78045
|
placeholder: "StartAt"
|
|
78045
78046
|
}, null, 8, ["modelValue"])
|
|
78046
78047
|
]),
|
|
@@ -78053,8 +78054,8 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
|
|
|
78053
78054
|
__: [20]
|
|
78054
78055
|
}),
|
|
78055
78056
|
createVNode(_sfc_main$3g, {
|
|
78056
|
-
modelValue:
|
|
78057
|
-
"onUpdate:modelValue": _cache2[4] || (_cache2[4] = ($event) =>
|
|
78057
|
+
modelValue: form.value.endAt,
|
|
78058
|
+
"onUpdate:modelValue": _cache2[4] || (_cache2[4] = ($event) => form.value.endAt = $event),
|
|
78058
78059
|
placeholder: "EndAt"
|
|
78059
78060
|
}, null, 8, ["modelValue"])
|
|
78060
78061
|
])
|
|
@@ -80325,7 +80326,7 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
|
|
|
80325
80326
|
() => props.workflow,
|
|
80326
80327
|
async () => {
|
|
80327
80328
|
var _a2, _b;
|
|
80328
|
-
await nextTick
|
|
80329
|
+
await nextTick();
|
|
80329
80330
|
(_b = (_a2 = flowBuilder.value) == null ? void 0 : _a2.setState) == null ? void 0 : _b.call(_a2, props.workflow);
|
|
80330
80331
|
},
|
|
80331
80332
|
{ immediate: true }
|
|
@@ -111084,7 +111085,7 @@ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
|
111084
111085
|
console.log(state);
|
|
111085
111086
|
state.elementValues[props.variableName] = null;
|
|
111086
111087
|
scanning.value = true;
|
|
111087
|
-
await nextTick
|
|
111088
|
+
await nextTick();
|
|
111088
111089
|
if (!codeReader) {
|
|
111089
111090
|
codeReader = new BrowserMultiFormatReader();
|
|
111090
111091
|
}
|
|
@@ -111352,7 +111353,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
111352
111353
|
}
|
|
111353
111354
|
if (mouseInGrid === true && state.layout.findIndex((item) => item.i === "drop") === -1) {
|
|
111354
111355
|
await addElement(state.layout.length * 2 % (state.colNum || 12), state.layout.length + (state.colNum || 12), true);
|
|
111355
|
-
await nextTick
|
|
111356
|
+
await nextTick();
|
|
111356
111357
|
}
|
|
111357
111358
|
if (!((_a2 = state.itemRefs) == null ? void 0 : _a2.drop)) {
|
|
111358
111359
|
return;
|
|
@@ -111373,7 +111374,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
111373
111374
|
if (mouseInGrid === false) {
|
|
111374
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]);
|
|
111375
111376
|
state.layout = state.layout.filter((obj) => obj.i !== "drop");
|
|
111376
|
-
await nextTick
|
|
111377
|
+
await nextTick();
|
|
111377
111378
|
}
|
|
111378
111379
|
}
|
|
111379
111380
|
}
|
|
@@ -111389,7 +111390,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
111389
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]);
|
|
111390
111391
|
state.layout = state.layout.filter((obj) => obj.i !== "drop");
|
|
111391
111392
|
await addElement(DragPos.x, DragPos.y);
|
|
111392
|
-
await nextTick
|
|
111393
|
+
await nextTick();
|
|
111393
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]);
|
|
111394
111395
|
}
|
|
111395
111396
|
}
|
|
@@ -117362,7 +117363,7 @@ const Ss = {
|
|
|
117362
117363
|
}), onBeforeUnmount(() => {
|
|
117363
117364
|
s.off("resizeEvent", k), s.off("dragEvent", C2), ws("resize", g), l && a.el && l.uninstall(a.el);
|
|
117364
117365
|
}), watch$1(() => c.width, async (u, w) => {
|
|
117365
|
-
s.emit("updateWidth", c.width), m(), w === null && (await nextTick
|
|
117366
|
+
s.emit("updateWidth", c.width), m(), w === null && (await nextTick(), o("layout-ready", c.layout));
|
|
117366
117367
|
}), watch$1(() => i.layout, () => {
|
|
117367
117368
|
Wo(i.layout), c.originalLayout = i.layout, d();
|
|
117368
117369
|
}, { deep: true, immediate: true }), watch$1(() => i.colNum, () => {
|
|
@@ -118030,13 +118031,13 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
|
118030
118031
|
},
|
|
118031
118032
|
setup(__props) {
|
|
118032
118033
|
const props = __props;
|
|
118033
|
-
const { closeFormBuilder } = useFormBuilder();
|
|
118034
|
+
const { closeFormBuilder } = useFormBuilder$1();
|
|
118034
118035
|
const formBuilder = ref$1();
|
|
118035
118036
|
watch$1(
|
|
118036
118037
|
() => props.config,
|
|
118037
118038
|
async () => {
|
|
118038
118039
|
var _a2;
|
|
118039
|
-
await nextTick
|
|
118040
|
+
await nextTick();
|
|
118040
118041
|
(_a2 = formBuilder.value) == null ? void 0 : _a2.setState(props.config);
|
|
118041
118042
|
},
|
|
118042
118043
|
{ immediate: true }
|
|
@@ -118161,7 +118162,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
118161
118162
|
const props = __props;
|
|
118162
118163
|
const form = ref$1();
|
|
118163
118164
|
const loadForm = async () => {
|
|
118164
|
-
await nextTick
|
|
118165
|
+
await nextTick();
|
|
118165
118166
|
form.value.setState({
|
|
118166
118167
|
...props.settings,
|
|
118167
118168
|
layoutRef: {},
|
|
@@ -118650,7 +118651,7 @@ function debounceNextTick(inner) {
|
|
|
118650
118651
|
let lastTick = null;
|
|
118651
118652
|
let resolves = [];
|
|
118652
118653
|
return function(...args) {
|
|
118653
|
-
const thisTick = nextTick
|
|
118654
|
+
const thisTick = nextTick(() => {
|
|
118654
118655
|
if (lastTick !== thisTick) {
|
|
118655
118656
|
return;
|
|
118656
118657
|
}
|
|
@@ -119318,7 +119319,7 @@ async function installDevtoolsPlugin(app) {
|
|
|
119318
119319
|
}
|
|
119319
119320
|
const refreshInspector = throttle(() => {
|
|
119320
119321
|
setTimeout(async () => {
|
|
119321
|
-
await nextTick
|
|
119322
|
+
await nextTick();
|
|
119322
119323
|
API === null || API === void 0 ? void 0 : API.sendInspectorState(INSPECTOR_ID);
|
|
119323
119324
|
API === null || API === void 0 ? void 0 : API.sendInspectorTree(INSPECTOR_ID);
|
|
119324
119325
|
}, 100);
|
|
@@ -120264,7 +120265,7 @@ function useForm(opts) {
|
|
|
120264
120265
|
pathStateLookup.value[pathValue] = state;
|
|
120265
120266
|
rebuildPathLookup();
|
|
120266
120267
|
if (errors.value[pathValue] && !initialErrors[pathValue]) {
|
|
120267
|
-
nextTick
|
|
120268
|
+
nextTick(() => {
|
|
120268
120269
|
validateField(pathValue, { mode: "silent" });
|
|
120269
120270
|
});
|
|
120270
120271
|
}
|
|
@@ -120273,7 +120274,7 @@ function useForm(opts) {
|
|
|
120273
120274
|
rebuildPathLookup();
|
|
120274
120275
|
const nextValue = klona(currentValue.value);
|
|
120275
120276
|
pathStateLookup.value[newPath] = state;
|
|
120276
|
-
nextTick
|
|
120277
|
+
nextTick(() => {
|
|
120277
120278
|
setInPath(formValues, newPath, nextValue);
|
|
120278
120279
|
});
|
|
120279
120280
|
});
|
|
@@ -120364,7 +120365,7 @@ function useForm(opts) {
|
|
|
120364
120365
|
function unsetPathValue(path) {
|
|
120365
120366
|
UNSET_BATCH.push(path);
|
|
120366
120367
|
if (!PENDING_UNSET) {
|
|
120367
|
-
PENDING_UNSET = nextTick
|
|
120368
|
+
PENDING_UNSET = nextTick(() => {
|
|
120368
120369
|
const sortedPaths = [...UNSET_BATCH].sort().reverse();
|
|
120369
120370
|
sortedPaths.forEach((p2) => {
|
|
120370
120371
|
unsetPath(formValues, p2);
|
|
@@ -120435,7 +120436,7 @@ function useForm(opts) {
|
|
|
120435
120436
|
if (idx === -1 || !pathState) {
|
|
120436
120437
|
return;
|
|
120437
120438
|
}
|
|
120438
|
-
nextTick
|
|
120439
|
+
nextTick(() => {
|
|
120439
120440
|
validateField(path, { mode: "silent", warn: false });
|
|
120440
120441
|
});
|
|
120441
120442
|
if (pathState.multiple && pathState.fieldsCount) {
|
|
@@ -120462,7 +120463,7 @@ function useForm(opts) {
|
|
|
120462
120463
|
}
|
|
120463
120464
|
});
|
|
120464
120465
|
pathStates.value = pathStates.value.filter((s) => !s.path.startsWith(path));
|
|
120465
|
-
nextTick
|
|
120466
|
+
nextTick(() => {
|
|
120466
120467
|
rebuildPathLookup();
|
|
120467
120468
|
});
|
|
120468
120469
|
}
|
|
@@ -120602,7 +120603,7 @@ function useForm(opts) {
|
|
|
120602
120603
|
setFieldValue(field, newValue, false);
|
|
120603
120604
|
setFieldTouched(field, (_a3 = state === null || state === void 0 ? void 0 : state.touched) !== null && _a3 !== void 0 ? _a3 : false);
|
|
120604
120605
|
setFieldError(field, (state === null || state === void 0 ? void 0 : state.errors) || []);
|
|
120605
|
-
nextTick
|
|
120606
|
+
nextTick(() => {
|
|
120606
120607
|
if (pathState) {
|
|
120607
120608
|
pathState.__flags.pendingReset = false;
|
|
120608
120609
|
}
|
|
@@ -120624,7 +120625,7 @@ function useForm(opts) {
|
|
|
120624
120625
|
(opts2 === null || opts2 === void 0 ? void 0 : opts2.force) ? forceSetValues(newValues, false) : setValues(newValues, false);
|
|
120625
120626
|
setErrors((resetState === null || resetState === void 0 ? void 0 : resetState.errors) || {});
|
|
120626
120627
|
submitCount.value = (resetState === null || resetState === void 0 ? void 0 : resetState.submitCount) || 0;
|
|
120627
|
-
nextTick
|
|
120628
|
+
nextTick(() => {
|
|
120628
120629
|
validate2({ mode: "silent" });
|
|
120629
120630
|
mutateAllPathState((state) => {
|
|
120630
120631
|
state.__flags.pendingReset = false;
|
|
@@ -120781,7 +120782,7 @@ function useForm(opts) {
|
|
|
120781
120782
|
var _a3;
|
|
120782
120783
|
const validateOnInput = (_a3 = evalConfig().validateOnInput) !== null && _a3 !== void 0 ? _a3 : getConfig().validateOnInput;
|
|
120783
120784
|
if (validateOnInput) {
|
|
120784
|
-
nextTick
|
|
120785
|
+
nextTick(() => {
|
|
120785
120786
|
validateField(toValue$2(pathState.path));
|
|
120786
120787
|
});
|
|
120787
120788
|
}
|
|
@@ -120790,7 +120791,7 @@ function useForm(opts) {
|
|
|
120790
120791
|
var _a3;
|
|
120791
120792
|
const validateOnChange = (_a3 = evalConfig().validateOnChange) !== null && _a3 !== void 0 ? _a3 : getConfig().validateOnChange;
|
|
120792
120793
|
if (validateOnChange) {
|
|
120793
|
-
nextTick
|
|
120794
|
+
nextTick(() => {
|
|
120794
120795
|
validateField(toValue$2(pathState.path));
|
|
120795
120796
|
});
|
|
120796
120797
|
}
|
|
@@ -121718,7 +121719,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
121718
121719
|
});
|
|
121719
121720
|
serviceTypes.value = [];
|
|
121720
121721
|
actionTypes.value = [];
|
|
121721
|
-
await nextTick
|
|
121722
|
+
await nextTick();
|
|
121722
121723
|
};
|
|
121723
121724
|
const cancel = () => {
|
|
121724
121725
|
resetForm();
|
|
@@ -122104,9 +122105,10 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
122104
122105
|
setup(__props) {
|
|
122105
122106
|
const props = __props;
|
|
122106
122107
|
const { uploadFile } = useMediaLibrary();
|
|
122107
|
-
const dropZoneRef = ref();
|
|
122108
|
-
const PENDING_FILES = inject("pendingFiles", ref([]));
|
|
122109
|
-
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
|
+
});
|
|
122110
122112
|
async function onDrop(files) {
|
|
122111
122113
|
for (let i = 0; i < (files == null ? void 0 : files.length); i++) {
|
|
122112
122114
|
let randomID = crypto.randomUUID();
|
|
@@ -122520,7 +122522,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
122520
122522
|
const props = __props;
|
|
122521
122523
|
const dialogOpen = ref$1(false);
|
|
122522
122524
|
const project = ref$1(route.params.slug);
|
|
122523
|
-
const { getMediaSource } = useMediaLibrary
|
|
122525
|
+
const { getMediaSource } = useMediaLibrary();
|
|
122524
122526
|
const activeSourceId = ref$1("");
|
|
122525
122527
|
const activeSource = ref$1({});
|
|
122526
122528
|
const folders = ref$1([]);
|
|
@@ -122591,7 +122593,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
122591
122593
|
path = path.substring(1);
|
|
122592
122594
|
}
|
|
122593
122595
|
try {
|
|
122594
|
-
const { getStorageContent } = useMediaLibrary
|
|
122596
|
+
const { getStorageContent } = useMediaLibrary();
|
|
122595
122597
|
if (effectiveBasePath.value && path !== void 0) {
|
|
122596
122598
|
const normalizedPath = path === "" ? "" : path.endsWith("/") ? path : `${path}/`;
|
|
122597
122599
|
const normalizedBasePath = effectiveBasePath.value === "" ? "" : effectiveBasePath.value.endsWith("/") ? effectiveBasePath.value : `${effectiveBasePath.value}/`;
|
|
@@ -129027,7 +129029,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
129027
129029
|
}
|
|
129028
129030
|
});
|
|
129029
129031
|
draggableInstances = [];
|
|
129030
|
-
nextTick
|
|
129032
|
+
nextTick(() => {
|
|
129031
129033
|
const elements = getDraggableElements();
|
|
129032
129034
|
if (!elements.length) return;
|
|
129033
129035
|
try {
|
|
@@ -130227,7 +130229,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
130227
130229
|
const dialogIsOpen = ref$1(false);
|
|
130228
130230
|
const openDialog = async (query) => {
|
|
130229
130231
|
dialogIsOpen.value = true;
|
|
130230
|
-
await nextTick
|
|
130232
|
+
await nextTick();
|
|
130231
130233
|
if (query) {
|
|
130232
130234
|
selectedIntegrationId.value = query.integration.id;
|
|
130233
130235
|
resource.value = query.resource;
|
|
@@ -130288,7 +130290,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
130288
130290
|
];
|
|
130289
130291
|
async function addFilter() {
|
|
130290
130292
|
filters.value.push({ field: "", operator: "==", value: "" });
|
|
130291
|
-
await nextTick
|
|
130293
|
+
await nextTick();
|
|
130292
130294
|
const filterFields = document.querySelectorAll("#query_builder_dialog_filters .filter-field");
|
|
130293
130295
|
if (filterFields.length) {
|
|
130294
130296
|
filterFields[filterFields.length - 1].focus();
|
|
@@ -131708,7 +131710,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
131708
131710
|
}
|
|
131709
131711
|
}
|
|
131710
131712
|
function updateIndicatorPosition(index) {
|
|
131711
|
-
nextTick
|
|
131713
|
+
nextTick(() => {
|
|
131712
131714
|
if (!activeIndicator.value || !buttonRefs[index]) return;
|
|
131713
131715
|
const button = buttonRefs[index];
|
|
131714
131716
|
const indicator = activeIndicator.value;
|
|
@@ -131724,7 +131726,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
131724
131726
|
}
|
|
131725
131727
|
}, { immediate: true });
|
|
131726
131728
|
onMounted$1(() => {
|
|
131727
|
-
nextTick
|
|
131729
|
+
nextTick(() => {
|
|
131728
131730
|
updateIndicatorPosition(activeButtonIndex.value);
|
|
131729
131731
|
});
|
|
131730
131732
|
});
|
|
@@ -142312,12 +142314,13 @@ export {
|
|
|
142312
142314
|
useBreadcrumbs$1 as useBreadcrumbs,
|
|
142313
142315
|
useCms,
|
|
142314
142316
|
useFirebaseIntegration,
|
|
142317
|
+
useFormBuilder$1 as useFormBuilder,
|
|
142315
142318
|
useIntegrationActionBuilder,
|
|
142316
142319
|
useIntegrationActions$1 as useIntegrationActions,
|
|
142317
142320
|
useIntegrations,
|
|
142318
142321
|
useLayout,
|
|
142319
142322
|
useLogs,
|
|
142320
|
-
useMediaLibrary
|
|
142323
|
+
useMediaLibrary,
|
|
142321
142324
|
useModulePermissions,
|
|
142322
142325
|
useModuleStorage,
|
|
142323
142326
|
useNavigateToModuleRoute,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,57 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const useIntegrationActionBuilder: () => any;
|
|
2
|
+
export declare const useIntegrations: () => any;
|
|
3
|
+
export declare const useIntegrationActions: () => any;
|
|
4
|
+
export declare const useMediaLibrary: () => any;
|
|
5
|
+
export declare const useProjectService: () => any;
|
|
6
|
+
export declare const useBreadcrumbs: () => any;
|
|
7
|
+
export declare const useQueryBuilder: () => any;
|
|
8
|
+
type UseModulePermissions = () => {
|
|
9
|
+
isAdmin: () => boolean;
|
|
10
|
+
isSuperAdmin: () => boolean;
|
|
11
|
+
hasPermission: (permission: string) => boolean;
|
|
12
|
+
hasPermissionOR: (...permissions: string[]) => boolean;
|
|
13
|
+
hasPermissionAND: (...permissions: string[]) => boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const useModulePermissions: () => UseModulePermissions;
|
|
16
|
+
type UseFirebaseIntegration = (projectId: string) => {
|
|
17
|
+
add: (collection: string, data: Record<string, any>) => Promise<any>;
|
|
18
|
+
find: (collection: string, query?: Record<string, any>) => Promise<any>;
|
|
19
|
+
get: (collection: string, doc: string) => Promise<any>;
|
|
20
|
+
update: (collection: string, id: string, data: Record<string, any>) => Promise<any>;
|
|
21
|
+
remove: (collection: string, id: string) => Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
export declare const useFirebaseIntegration: () => UseFirebaseIntegration;
|
|
24
|
+
type UseNavigateToModuleRoute = () => {
|
|
25
|
+
navigateTo: (path?: string | number) => void;
|
|
26
|
+
basePath: string;
|
|
27
|
+
params: Record<string, string>;
|
|
28
|
+
pageComponent: any;
|
|
29
|
+
};
|
|
30
|
+
export declare const useNavigateToModuleRoute: () => UseNavigateToModuleRoute;
|
|
31
|
+
type UseModuleStorage = () => {
|
|
32
|
+
getModuleData: (key: string) => any;
|
|
33
|
+
setModuleData: (key: string, value: any) => void;
|
|
34
|
+
removeModuleData: (key: string) => void;
|
|
35
|
+
clearModuleData: () => void;
|
|
36
|
+
};
|
|
37
|
+
export declare const useModuleStorage: () => UseModuleStorage;
|
|
38
|
+
type UseLogs = () => {
|
|
39
|
+
log: (message: string, data?: any) => void;
|
|
40
|
+
logWarning: (message: string, data?: any) => void;
|
|
41
|
+
logError: (message: string, data?: any) => void;
|
|
42
|
+
};
|
|
43
|
+
export declare const useLogs: () => UseLogs;
|
|
44
|
+
type UseUtilsService = () => {
|
|
45
|
+
urlToBase64: (url: string) => Promise<{
|
|
46
|
+
base64: string;
|
|
47
|
+
contentType: string;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
export declare const useUtilsService: () => UseUtilsService;
|
|
51
|
+
type UseFormBuilder = () => {
|
|
52
|
+
formBuilderStack: any[];
|
|
53
|
+
openFormBuilder: (config?: any) => Promise<any>;
|
|
54
|
+
closeFormBuilder: (id: number, result: any) => void;
|
|
55
|
+
};
|
|
56
|
+
export declare const useFormBuilder: () => UseFormBuilder;
|
|
57
|
+
export {};
|
|
@@ -48,4 +48,10 @@ type UseUtilsService = () => {
|
|
|
48
48
|
}>;
|
|
49
49
|
};
|
|
50
50
|
export declare const useUtilsService: () => UseUtilsService;
|
|
51
|
+
type UseFormBuilder = () => {
|
|
52
|
+
formBuilderStack: any[];
|
|
53
|
+
openFormBuilder: (config?: any) => Promise<any>;
|
|
54
|
+
closeFormBuilder: (id: number, result: any) => void;
|
|
55
|
+
};
|
|
56
|
+
export declare const useFormBuilder: () => UseFormBuilder;
|
|
51
57
|
export {};
|