@oneclick.dev/cms-core-modules 0.0.56 → 0.0.58
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/{ContentEditor-HwHspQO1.mjs → ContentEditor-CtGeIzC4.mjs} +5663 -5562
- package/dist/ContentEditor-DCmt_y_R.js +290 -0
- package/dist/{Entries-DcpPvlYj.js → Entries-DlFiZ8EU.js} +1 -1
- package/dist/{Entries-QLMtTYLX.mjs → Entries-zyhycw1M.mjs} +1 -1
- package/dist/{Overview-KT2Mgfh5.js → Overview-CwCAeBnX.js} +1 -1
- package/dist/{Overview-D54pjmI6.mjs → Overview-D1nJLBe1.mjs} +1 -1
- package/dist/{TableView-D9J5rUls.mjs → TableView-CS13LLxk.mjs} +18968 -18400
- package/dist/{TableView-CpO53xcX.js → TableView-Dv4YXBD1.js} +38 -38
- package/dist/View-7qb_ohVo.js +1 -0
- package/dist/View-C7axVP9t.mjs +25 -0
- package/dist/cms-core-modules.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +6 -6
- package/dist/interpolation-BHSqsh8Q.mjs +65 -0
- package/dist/interpolation-We8hT28L.js +1 -0
- package/dist/src/lib/interpolation.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ContentEditor-BBdzuTJJ.js +0 -290
- package/dist/View-DlHBZbFu.js +0 -1
- package/dist/View-Dv5QMrSn.mjs +0 -25
- package/dist/interpolation-BNUjI7LH.js +0 -1
- package/dist/interpolation-BpGXqOz8.mjs +0 -59
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("@oneclick.dev/cms-kit"),i={class:"flex-1 bg-white dark:bg-muted/40 rounded-lg border shadow overflow-hidden mt-4"},a=e.defineComponent({__name:"View",setup(d){const s=r.useRoute(),{config:u}=r.useModule(),l=t=>{console.log("Form submitted with result:",t),document.documentElement.dataset.moduleOverlayMode==="true"&&window.parent.postMessage({type:"module-overlay:close"},"*")},c=e.computed(()=>Object.entries(s.query).reduce((t,[n,o])=>(t[n]=o,t),{}));return(t,n)=>{const o=e.resolveComponent("FormDisplayer");return e.openBlock(),e.createElementBlock("div",i,[e.createVNode(o,{settings:e.unref(u).formLayout,onFinish:l,variables:[],inputValues:c.value,style:{background:"transparent"}},null,8,["settings","inputValues"])])}}});exports.default=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as l, computed as a, resolveComponent as d, createElementBlock as c, openBlock as i, createVNode as m, unref as p } from "vue";
|
|
2
|
+
import { useRoute as f, useModule as _ } from "@oneclick.dev/cms-kit";
|
|
3
|
+
const g = { class: "flex-1 bg-white dark:bg-muted/40 rounded-lg border shadow overflow-hidden mt-4" }, v = /* @__PURE__ */ l({
|
|
4
|
+
__name: "View",
|
|
5
|
+
setup(y) {
|
|
6
|
+
const n = f(), { config: r } = _(), s = (e) => {
|
|
7
|
+
console.log("Form submitted with result:", e), document.documentElement.dataset.moduleOverlayMode === "true" && window.parent.postMessage({ type: "module-overlay:close" }, "*");
|
|
8
|
+
}, u = a(() => Object.entries(n.query).reduce((e, [o, t]) => (e[o] = t, e), {}));
|
|
9
|
+
return (e, o) => {
|
|
10
|
+
const t = d("FormDisplayer");
|
|
11
|
+
return i(), c("div", g, [
|
|
12
|
+
m(t, {
|
|
13
|
+
settings: p(r).formLayout,
|
|
14
|
+
onFinish: s,
|
|
15
|
+
variables: [],
|
|
16
|
+
inputValues: u.value,
|
|
17
|
+
style: { background: "transparent" }
|
|
18
|
+
}, null, 8, ["settings", "inputValues"])
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
v as default
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vue-grid-item[data-v-99aff433]{transition:all .2s ease;transition-property:left,top,right}.vue-grid-item.no-touch[data-v-99aff433]{touch-action:none}.vue-grid-item.cssTransforms[data-v-99aff433]{transition-property:transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl[data-v-99aff433]{left:auto;right:0}.vue-grid-item.resizing[data-v-99aff433]{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging[data-v-99aff433]{transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder[data-v-99aff433]{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle[data-v-99aff433]{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=);background-position:bottom right;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle[data-v-99aff433]{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAuMDAwMDAwMDAwMDAwMDAyIiBoZWlnaHQ9IjEwLjAwMDAwMDAwMDAwMDAwMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDwhLS0gQ3JlYXRlZCB3aXRoIE1ldGhvZCBEcmF3IC0gaHR0cDovL2dpdGh1Yi5jb20vZHVvcGl4ZWwvTWV0aG9kLURyYXcvIC0tPgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSIxMiIgd2lkdGg9IjEyIiB5PSItMSIgeD0iLTEiLz4KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIgaWQ9ImNhbnZhc0dyaWQiPgogICA8cmVjdCBmaWxsPSJ1cmwoI2dyaWRwYXR0ZXJuKSIgc3Ryb2tlLXdpZHRoPSIwIiB5PSIwIiB4PSIwIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIi8+CiAgPC9nPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxsaW5lIGNhbnZhcz0iI2ZmZmZmZiIgY2FudmFzLW9wYWNpdHk9IjEiIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzEiIHkyPSItNzAuMTc4NDA3IiB4Mj0iMTI0LjQ2NDE3NSIgeTE9Ii0zOC4zOTI3MzciIHgxPSIxNDQuODIxMjg5IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+CiAgPGxpbmUgc3Ryb2tlPSIjNjY2NjY2IiBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z181IiB5Mj0iOS4xMDY5NTciIHgyPSIwLjk0NzI0NyIgeTE9Ii0wLjAxODEyOCIgeDE9IjAuOTQ3MjQ3IiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz4KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z183IiB5Mj0iOSIgeDI9IjEwLjA3MzUyOSIgeTE9IjkiIHgxPSItMC42NTU2NCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiM2NjY2NjYiIGZpbGw9Im5vbmUiLz4KIDwvZz4KPC9zdmc+);background-position:bottom left;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect[data-v-99aff433]{-webkit-user-select:none;user-select:none}.vue-grid-layout[data-v-a10aee95]{position:relative;transition:height .2s ease}.dark #custom-module-wrapper::-webkit-scrollbar-thumb{background:#d8d8d8}#custom-module-wrapper::-webkit-scrollbar{width:5px;height:5px}#custom-module-wrapper::-webkit-scrollbar-track{background:transparent}#custom-module-wrapper::-webkit-scrollbar-thumb{background:#494949;border-radius:5px}#custom-module-wrapper .bg-grid{background-image:repeating-linear-gradient(to right,var(--primary) 0,var(--primary) 1px,transparent 1px,transparent calc(100% / 12)),repeating-linear-gradient(to bottom,var(--primary) 0,var(--primary) 1px,transparent 1px,transparent 8px);background-size:100% 100%}#custom-module-wrapper .vue-grid-item.vue-resizable:hover .vue-resizable-handle{display:block}#custom-module-wrapper .vue-grid-item.vue-resizable .vue-resizable-handle{display:none;background:var(--color-muted);border-radius:100px;width:12px;height:12px;right:-6px;bottom:-6px;border:2px solid var(--primary)}.transparent-emoji-picker.emoji-mart{border-width:0;background-color:transparent}.transparent-emoji-picker.emoji-mart .emoji-mart-search input{color:var(--muted-foreground)}.transparent-emoji-picker.emoji-mart .emoji-mart-scroll{padding:0}.transparent-emoji-picker.emoji-mart .emoji-mart-category-label h3{background-color:var(--accent);color:var(--muted-foreground);margin:.5rem 0;border-radius:.5rem}.transparent-emoji-picker.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover:before,.transparent-emoji-picker.emoji-mart .emoji-mart-emoji-selected:before{background-color:var(--muted)}.tiptap-details{position:relative;display:flex;gap:.5rem;border:1px solid #7f7f7f76;border-radius:.5rem;padding:.5rem}.tiptap-details summary{font-weight:700;padding-top:.25rem}.tiptap-details summary::marker{content:""}.tiptap-details .tiptap-details__toggle{align-items:center;background:transparent;border-radius:4px;display:flex;font-size:.8rem;width:2rem;height:2rem;justify-content:center;line-height:1;padding:0;cursor:pointer}.tiptap-details .tiptap-details__toggle:hover{background-color:#7f7f7f48}.tiptap-details .tiptap-details__toggle:before{content:"▶"}.tiptap-details[data-open=true]>button:before{transform:rotate(90deg)}.tiptap-details .tiptap-details__inner{display:flex;flex-direction:column;gap:1rem;width:100%}.tiptap-details .tiptap-details__inner>[data-type=detailsContent]>:last-child{margin-bottom:.5rem}.tiptap-details .details{margin:.5rem 0}.tiptap-details [data-type=detailsContent]{display:none}.tiptap-details[data-open=true] [data-type=detailsContent]{display:block}.tiptap-component-editor.has-focus[data-v-fa32a72a]{box-shadow:0 0 0 2px var(--ring)}.tiptap-component-editor.has-focus .OVERLAY[data-v-fa32a72a]{opacity:1}.tiptap-component-editor.has-focus .NODE-VIEW[data-v-fa32a72a]{z-index:999999}.OVERLAY[data-v-fa32a72a]{opacity:0}.tiptap-resizable-wrapper.editable[data-v-d199e51e]:not(.-no-interaction):hover,.has-focus[data-v-d199e51e]{outline:2px solid var(--section-ui-tint);display:flex;flex-direction:column;min-height:16px}.tiptap-resizable-wrapper.has-focus .tiptap-resizable[data-v-d199e51e]{border-color:var(--section-ui-tint)}.tiptap-resizable-wrapper.-resizing .editor_space-value[data-v-d199e51e]{opacity:1}.tiptap-resizable-wrapper:hover .tiptap-resizable[data-v-d199e51e]:before,.tiptap-resizable-wrapper.-resizing .tiptap-resizable[data-v-d199e51e]:before{opacity:.3}.tiptap-resizable[data-v-d199e51e]{position:relative;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(0,0,0,.4);border-radius:8px;transition:border-color .15s ease;height:100%}.tiptap-resizable[data-v-d199e51e]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.editor_space-handle[data-v-d199e51e]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-d199e51e]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-d199e51e]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.custom-thin-scrollbar[data-v-8d76a558]{scrollbar-width:thin;scrollbar-color:var(--input) transparent}.tiptap-container-padding-resizer[data-v-7449a8fd]{position:relative;display:flex;align-items:center;justify-content:center;min-height:16px}.tiptap-container-padding-resizer.-resizing .editor_space-value[data-v-7449a8fd]{opacity:1}.tiptap-container-padding-resizer[data-v-7449a8fd]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.tiptap-container-padding-resizer.-hovering-dragger[data-v-7449a8fd]:before,.tiptap-container-padding-resizer.-resizing[data-v-7449a8fd]:before{opacity:.3!important}.editor_space-handle[data-v-7449a8fd]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-7449a8fd]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-7449a8fd]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.tiptap-columns.editable[data-v-ae23e2ab]:not(.-no-interaction):hover,.has-focus[data-v-ae23e2ab]{outline:2px solid var(--section-ui-tint)}.tiptap-column.editable[data-v-3d108545]:not(.-no-interaction):hover,.has-focus[data-v-3d108545]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-top-margin-resizable[data-v-b505b042]{display:flex;align-items:center;justify-content:center;min-height:4px;opacity:0}.tiptap-top-margin-resizable.-resizing .editor_space-value[data-v-b505b042]{opacity:1}.tiptap-top-margin-resizable[data-v-b505b042]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.tiptap-top-margin-resizable.-hovering-dragger[data-v-b505b042]:before,.tiptap-top-margin-resizable.-resizing[data-v-b505b042]:before{opacity:.3!important}.editor_space-handle[data-v-b505b042]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-b505b042]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-b505b042]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.tiptap.ProseMirror-focused .tiptap-top-margin-resizable{opacity:1}.resize-handle[data-v-e018c48d]{opacity:0}.resize-handle[data-v-e018c48d]:after{content:"";position:absolute;left:-8px;top:-5px;width:calc(100% + 16px);height:calc(100% + 10px)}.tiptap.ProseMirror-focused .resize-handle{opacity:1}.tiptap-card.editable[data-v-fd0b0f61]:not(.-no-interaction):hover,.has-focus[data-v-fd0b0f61]{outline:2px solid var(--section-ui-tint)}.tiptap-button.editable[data-v-dceaffb8]:not(.-no-interaction):hover,.has-focus[data-v-dceaffb8]{outline:2px solid var(--section-ui-tint)}.has-focus[data-v-07966b02]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-image.editable[data-v-d6fa758a]:not(.-no-interaction):hover,.has-focus[data-v-d6fa758a]{outline:2px solid var(--section-ui-tint)}.tiptap-video.editable[data-v-1f03dbf8]:not(.-no-interaction):hover,.has-focus[data-v-1f03dbf8]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-heading.editable[data-v-38a378b1]:not(.-no-interaction):hover,.has-focus[data-v-38a378b1]{outline:2px solid var(--section-ui-tint)}.tiptap-heading h1 div:focus-visible,.tiptap-heading h2 div:focus-visible,.tiptap-heading h3 div:focus-visible,.tiptap-heading h4 div:focus-visible,.tiptap-heading h5 div:focus-visible,.tiptap-heading h6 div:focus-visible{outline:none}.tiptap-paragraph.editable[data-v-442c28d7]:not(.-no-interaction):hover,.has-focus[data-v-442c28d7]{outline:2px solid var(--section-ui-tint)}.tiptap-divider.editable[data-v-f773e474]:not(.-no-interaction):hover,.has-focus[data-v-f773e474]{outline:2px solid var(--section-ui-tint)}.tiptap-details.editable[data-v-1a4a02dd]:not(.-no-interaction):hover,.has-focus[data-v-1a4a02dd]{outline:2px solid var(--section-ui-tint);outline-offset:2px}#content-manager-editor-element-editor-menu>div[data-v-7f9805cd]{scrollbar-width:thin;scrollbar-color:var(--input) transparent}#content-manager-content-editor .ProseMirror{flex:1;outline:none;transition:background-color .2s ease-in-out;padding:0;--section-ui-tint: #29a1fe;--section-ui-tint-foreground: white}#content-manager-content-editor .ProseMirror::selection :not(.NODE-VIEW){background:#000000ae;color:var(--primary-foreground)}#content-manager-content-editor .ProseMirror p.is-empty:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}#content-manager-content-editor .ProseMirror p{margin:0 0 .25rem}#content-manager-content-editor .ProseMirror h1,#content-manager-content-editor .ProseMirror h2,#content-manager-content-editor .ProseMirror h3{margin:1rem 0 .5rem;font-weight:700}#content-manager-content-editor .ProseMirror ul,#content-manager-content-editor .ProseMirror ol{margin:0 0 .5rem;padding-left:1.25rem}#content-manager-content-editor .ProseMirror ul li,#content-manager-content-editor .ProseMirror ol li{padding-left:.25rem}#content-manager-content-editor .ProseMirror ol{list-style:decimal}#content-manager-content-editor .ProseMirror ul{list-style:disc}.dark #content-manager-content-editor .ProseMirror::selection :not(.NODE-VIEW){background:#fffd;color:#000}.dark #content-manager-content-editor .ProseMirror p.is-empty:before{color:#868686}.drag-handle{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:element;cursor:grab}.custom-drop-cursor{border:2px solid var(--primary);height:1em}.collaboration-carets__caret{position:relative;display:inline-block;width:.5px;height:1em;border-width:2px;border-style:solid;transform:translateY(.1em)}.collaboration-carets__label{position:absolute;padding:4px 8px 2px;border-radius:5px;transform:translateY(-100%);white-space:nowrap}[data-is-resizing-ew=true],[data-is-resizing-ew=true] *{cursor:ew-resize!important;-webkit-user-select:none!important;user-select:none!important}[data-is-grabbing=true],[data-is-grabbing=true] *{cursor:grabbing!important}[data-is-grabbing=true] [data-node-view-content]>*{pointer-events:none}.tiptap-node-dragging .ProseMirror.tiptap .tiptap-container [data-node-view-wrapper]:not(.tiptap-node--dragged){pointer-events:none}.tiptap-node-dragging .ProseMirror.tiptap .tiptap-container [data-node-view-wrapper]:not(.tiptap-node--dragged) *{pointer-events:none}@keyframes pulse-subtle-99339cf2{0%,to{opacity:1}50%{opacity:.7}}.animate-pulse-subtle[data-v-99339cf2]{animation:pulse-subtle-99339cf2 2s ease-in-out infinite}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar{height:8px}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-track{background:hsl(var(--muted));border-radius:4px}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-thumb{background:hsl(var(--primary) / .3);border-radius:4px;transition:background .2s}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary) / .5)}
|
|
1
|
+
.vue-grid-item[data-v-99aff433]{transition:all .2s ease;transition-property:left,top,right}.vue-grid-item.no-touch[data-v-99aff433]{touch-action:none}.vue-grid-item.cssTransforms[data-v-99aff433]{transition-property:transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl[data-v-99aff433]{left:auto;right:0}.vue-grid-item.resizing[data-v-99aff433]{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging[data-v-99aff433]{transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder[data-v-99aff433]{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle[data-v-99aff433]{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=);background-position:bottom right;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle[data-v-99aff433]{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAuMDAwMDAwMDAwMDAwMDAyIiBoZWlnaHQ9IjEwLjAwMDAwMDAwMDAwMDAwMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIDwhLS0gQ3JlYXRlZCB3aXRoIE1ldGhvZCBEcmF3IC0gaHR0cDovL2dpdGh1Yi5jb20vZHVvcGl4ZWwvTWV0aG9kLURyYXcvIC0tPgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSIxMiIgd2lkdGg9IjEyIiB5PSItMSIgeD0iLTEiLz4KICA8ZyBkaXNwbGF5PSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgeT0iMCIgeD0iMCIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIgaWQ9ImNhbnZhc0dyaWQiPgogICA8cmVjdCBmaWxsPSJ1cmwoI2dyaWRwYXR0ZXJuKSIgc3Ryb2tlLXdpZHRoPSIwIiB5PSIwIiB4PSIwIiBoZWlnaHQ9IjEwMCUiIHdpZHRoPSIxMDAlIi8+CiAgPC9nPgogPC9nPgogPGc+CiAgPHRpdGxlPkxheWVyIDE8L3RpdGxlPgogIDxsaW5lIGNhbnZhcz0iI2ZmZmZmZiIgY2FudmFzLW9wYWNpdHk9IjEiIHN0cm9rZS1saW5lY2FwPSJ1bmRlZmluZWQiIHN0cm9rZS1saW5lam9pbj0idW5kZWZpbmVkIiBpZD0ic3ZnXzEiIHkyPSItNzAuMTc4NDA3IiB4Mj0iMTI0LjQ2NDE3NSIgeTE9Ii0zOC4zOTI3MzciIHgxPSIxNDQuODIxMjg5IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlPSIjMDAwIiBmaWxsPSJub25lIi8+CiAgPGxpbmUgc3Ryb2tlPSIjNjY2NjY2IiBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z181IiB5Mj0iOS4xMDY5NTciIHgyPSIwLjk0NzI0NyIgeTE9Ii0wLjAxODEyOCIgeDE9IjAuOTQ3MjQ3IiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz4KICA8bGluZSBzdHJva2UtbGluZWNhcD0idW5kZWZpbmVkIiBzdHJva2UtbGluZWpvaW49InVuZGVmaW5lZCIgaWQ9InN2Z183IiB5Mj0iOSIgeDI9IjEwLjA3MzUyOSIgeTE9IjkiIHgxPSItMC42NTU2NCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiM2NjY2NjYiIGZpbGw9Im5vbmUiLz4KIDwvZz4KPC9zdmc+);background-position:bottom left;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect[data-v-99aff433]{-webkit-user-select:none;user-select:none}.vue-grid-layout[data-v-a10aee95]{position:relative;transition:height .2s ease}.dark #custom-module-wrapper::-webkit-scrollbar-thumb{background:#d8d8d8}#custom-module-wrapper::-webkit-scrollbar{width:5px;height:5px}#custom-module-wrapper::-webkit-scrollbar-track{background:transparent}#custom-module-wrapper::-webkit-scrollbar-thumb{background:#494949;border-radius:5px}#custom-module-wrapper .bg-grid{background-image:repeating-linear-gradient(to right,var(--primary) 0,var(--primary) 1px,transparent 1px,transparent calc(100% / 12)),repeating-linear-gradient(to bottom,var(--primary) 0,var(--primary) 1px,transparent 1px,transparent 8px);background-size:100% 100%}#custom-module-wrapper .vue-grid-item.vue-resizable:hover .vue-resizable-handle{display:block}#custom-module-wrapper .vue-grid-item.vue-resizable .vue-resizable-handle{display:none;background:var(--color-muted);border-radius:100px;width:12px;height:12px;right:-6px;bottom:-6px;border:2px solid var(--primary)}.transparent-emoji-picker.emoji-mart{border-width:0;background-color:transparent}.transparent-emoji-picker.emoji-mart .emoji-mart-search input{color:var(--muted-foreground)}.transparent-emoji-picker.emoji-mart .emoji-mart-scroll{padding:0}.transparent-emoji-picker.emoji-mart .emoji-mart-category-label h3{background-color:var(--accent);color:var(--muted-foreground);margin:.5rem 0;border-radius:.5rem}.transparent-emoji-picker.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover:before,.transparent-emoji-picker.emoji-mart .emoji-mart-emoji-selected:before{background-color:var(--muted)}.tiptap-details{position:relative;display:flex;gap:.5rem;border:1px solid #7f7f7f76;border-radius:.5rem;padding:.5rem}.tiptap-details summary{font-weight:700;padding-top:.25rem}.tiptap-details summary::marker{content:""}.tiptap-details .tiptap-details__toggle{align-items:center;background:transparent;border-radius:4px;display:flex;font-size:.8rem;width:2rem;height:2rem;justify-content:center;line-height:1;padding:0;cursor:pointer}.tiptap-details .tiptap-details__toggle:hover{background-color:#7f7f7f48}.tiptap-details .tiptap-details__toggle:before{content:"▶"}.tiptap-details[data-open=true]>button:before{transform:rotate(90deg)}.tiptap-details .tiptap-details__inner{display:flex;flex-direction:column;gap:1rem;width:100%}.tiptap-details .tiptap-details__inner>[data-type=detailsContent]>:last-child{margin-bottom:.5rem}.tiptap-details .details{margin:.5rem 0}.tiptap-details [data-type=detailsContent]{display:none}.tiptap-details[data-open=true] [data-type=detailsContent]{display:block}.tiptap-component-editor.has-focus[data-v-fa32a72a]{box-shadow:0 0 0 2px var(--ring)}.tiptap-component-editor.has-focus .OVERLAY[data-v-fa32a72a]{opacity:1}.tiptap-component-editor.has-focus .NODE-VIEW[data-v-fa32a72a]{z-index:999999}.OVERLAY[data-v-fa32a72a]{opacity:0}.tiptap-resizable-wrapper.editable[data-v-d199e51e]:not(.-no-interaction):hover,.has-focus[data-v-d199e51e]{outline:2px solid var(--section-ui-tint);display:flex;flex-direction:column;min-height:16px}.tiptap-resizable-wrapper.has-focus .tiptap-resizable[data-v-d199e51e]{border-color:var(--section-ui-tint)}.tiptap-resizable-wrapper.-resizing .editor_space-value[data-v-d199e51e]{opacity:1}.tiptap-resizable-wrapper:hover .tiptap-resizable[data-v-d199e51e]:before,.tiptap-resizable-wrapper.-resizing .tiptap-resizable[data-v-d199e51e]:before{opacity:.3}.tiptap-resizable[data-v-d199e51e]{position:relative;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(0,0,0,.4);border-radius:8px;transition:border-color .15s ease;height:100%}.tiptap-resizable[data-v-d199e51e]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.editor_space-handle[data-v-d199e51e]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-d199e51e]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-d199e51e]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.custom-thin-scrollbar[data-v-35fe1d45]{scrollbar-width:thin;scrollbar-color:var(--input) transparent}.tiptap-container-padding-resizer[data-v-7449a8fd]{position:relative;display:flex;align-items:center;justify-content:center;min-height:16px}.tiptap-container-padding-resizer.-resizing .editor_space-value[data-v-7449a8fd]{opacity:1}.tiptap-container-padding-resizer[data-v-7449a8fd]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.tiptap-container-padding-resizer.-hovering-dragger[data-v-7449a8fd]:before,.tiptap-container-padding-resizer.-resizing[data-v-7449a8fd]:before{opacity:.3!important}.editor_space-handle[data-v-7449a8fd]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-7449a8fd]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-7449a8fd]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.tiptap-columns.editable[data-v-ae23e2ab]:not(.-no-interaction):hover,.has-focus[data-v-ae23e2ab]{outline:2px solid var(--section-ui-tint)}.tiptap-column.editable[data-v-3d108545]:not(.-no-interaction):hover,.has-focus[data-v-3d108545]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-top-margin-resizable[data-v-b505b042]{display:flex;align-items:center;justify-content:center;min-height:4px;opacity:0}.tiptap-top-margin-resizable.-resizing .editor_space-value[data-v-b505b042]{opacity:1}.tiptap-top-margin-resizable[data-v-b505b042]:before{display:block;content:"";background-clip:content-box;background-image:linear-gradient(-45deg,var(--section-ui-tint) 10%,transparent 10%,transparent 50%,var(--section-ui-tint) 50%,var(--section-ui-tint) 60%,transparent 60%,transparent 100%);background-size:7.07px 7.07px;position:absolute;inset:0;opacity:0;border-radius:8px;transition:opacity .3s}.tiptap-top-margin-resizable.-hovering-dragger[data-v-b505b042]:before,.tiptap-top-margin-resizable.-resizing[data-v-b505b042]:before{opacity:.3!important}.editor_space-handle[data-v-b505b042]{align-items:center;background-color:var(--section-ui-tint);border-radius:2px;cursor:ns-resize;flex-shrink:0;display:flex;height:1px;outline:1px solid var(--section-ui-tint-foreground);position:relative;touch-action:none;transition:opacity .3s;width:12px;z-index:1}.editor_space-handle[data-v-b505b042]:before{content:"";display:block;inset:-16px -32px;position:absolute}.editor_space-value[data-v-b505b042]{align-items:center;background-color:var(--section-ui-tint);border-radius:99px;color:var(--section-ui-tint-foreground);display:flex;font-size:12px;font-weight:600;gap:4px;left:50%;line-height:1;margin-left:16px;padding:4px 6px;pointer-events:auto;position:absolute;transition:opacity .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:9;opacity:0}.tiptap.ProseMirror-focused .tiptap-top-margin-resizable{opacity:1}.resize-handle[data-v-e018c48d]{opacity:0}.resize-handle[data-v-e018c48d]:after{content:"";position:absolute;left:-8px;top:-5px;width:calc(100% + 16px);height:calc(100% + 10px)}.tiptap.ProseMirror-focused .resize-handle{opacity:1}.tiptap-card.editable[data-v-fd0b0f61]:not(.-no-interaction):hover,.has-focus[data-v-fd0b0f61]{outline:2px solid var(--section-ui-tint)}.tiptap-button.editable[data-v-dceaffb8]:not(.-no-interaction):hover,.has-focus[data-v-dceaffb8]{outline:2px solid var(--section-ui-tint)}.has-focus[data-v-07966b02]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-image.editable[data-v-d6fa758a]:not(.-no-interaction):hover,.has-focus[data-v-d6fa758a]{outline:2px solid var(--section-ui-tint)}.tiptap-video.editable[data-v-1f03dbf8]:not(.-no-interaction):hover,.has-focus[data-v-1f03dbf8]{outline:2px solid var(--section-ui-tint);outline-offset:2px}.tiptap-heading.editable[data-v-38a378b1]:not(.-no-interaction):hover,.has-focus[data-v-38a378b1]{outline:2px solid var(--section-ui-tint)}.tiptap-heading h1 div:focus-visible,.tiptap-heading h2 div:focus-visible,.tiptap-heading h3 div:focus-visible,.tiptap-heading h4 div:focus-visible,.tiptap-heading h5 div:focus-visible,.tiptap-heading h6 div:focus-visible{outline:none}.tiptap-paragraph.editable[data-v-442c28d7]:not(.-no-interaction):hover,.has-focus[data-v-442c28d7]{outline:2px solid var(--section-ui-tint)}.tiptap-divider.editable[data-v-f773e474]:not(.-no-interaction):hover,.has-focus[data-v-f773e474]{outline:2px solid var(--section-ui-tint)}.tiptap-details.editable[data-v-1a4a02dd]:not(.-no-interaction):hover,.has-focus[data-v-1a4a02dd]{outline:2px solid var(--section-ui-tint);outline-offset:2px}#content-manager-editor-element-editor-menu>div[data-v-7f9805cd]{scrollbar-width:thin;scrollbar-color:var(--input) transparent}#content-manager-content-editor .ProseMirror{flex:1;outline:none;transition:background-color .2s ease-in-out;padding:0;--section-ui-tint: #29a1fe;--section-ui-tint-foreground: white}#content-manager-content-editor .ProseMirror::selection :not(.NODE-VIEW){background:#000000ae;color:var(--primary-foreground)}#content-manager-content-editor .ProseMirror p.is-empty:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}#content-manager-content-editor .ProseMirror p{margin:0 0 .25rem}#content-manager-content-editor .ProseMirror h1,#content-manager-content-editor .ProseMirror h2,#content-manager-content-editor .ProseMirror h3{margin:1rem 0 .5rem;font-weight:700}#content-manager-content-editor .ProseMirror ul,#content-manager-content-editor .ProseMirror ol{margin:0 0 .5rem;padding-left:1.25rem}#content-manager-content-editor .ProseMirror ul li,#content-manager-content-editor .ProseMirror ol li{padding-left:.25rem}#content-manager-content-editor .ProseMirror ol{list-style:decimal}#content-manager-content-editor .ProseMirror ul{list-style:disc}.dark #content-manager-content-editor .ProseMirror::selection :not(.NODE-VIEW){background:#fffd;color:#000}.dark #content-manager-content-editor .ProseMirror p.is-empty:before{color:#868686}.drag-handle{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:element;cursor:grab}.custom-drop-cursor{border:2px solid var(--primary);height:1em}.collaboration-carets__caret{position:relative;display:inline-block;width:.5px;height:1em;border-width:2px;border-style:solid;transform:translateY(.1em)}.collaboration-carets__label{position:absolute;padding:4px 8px 2px;border-radius:5px;transform:translateY(-100%);white-space:nowrap}[data-is-resizing-ew=true],[data-is-resizing-ew=true] *{cursor:ew-resize!important;-webkit-user-select:none!important;user-select:none!important}[data-is-grabbing=true],[data-is-grabbing=true] *{cursor:grabbing!important}[data-is-grabbing=true] [data-node-view-content]>*{pointer-events:none}.tiptap-node-dragging .ProseMirror.tiptap .tiptap-container [data-node-view-wrapper]:not(.tiptap-node--dragged){pointer-events:none}.tiptap-node-dragging .ProseMirror.tiptap .tiptap-container [data-node-view-wrapper]:not(.tiptap-node--dragged) *{pointer-events:none}@keyframes pulse-subtle-99339cf2{0%,to{opacity:1}50%{opacity:.7}}.animate-pulse-subtle[data-v-99339cf2]{animation:pulse-subtle-99339cf2 2s ease-in-out infinite}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar{height:8px}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-track{background:hsl(var(--muted));border-radius:4px}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-thumb{background:hsl(var(--primary) / .3);border-radius:4px;transition:background .2s}.overflow-x-auto[data-v-99339cf2]::-webkit-scrollbar-thumb:hover{background:hsl(var(--primary) / .5)}
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@oneclick.dev/cms-kit"),o={name:"Table",description:"Manage tables and structured data.",icon:"mdi-table",version:"1.0.0"},t=e.defineModuleConfig({getItems:{label:"Fetch items",type:"flow"},viewable:{label:"Viewable",type:"checkbox",default:!1},editable:{label:"Editable",type:"checkbox",default:!1},deletable:{label:"Deletable",type:"checkbox",default:!1},addable:{label:"Addable",type:"checkbox",default:!1},searchable:{label:"Searchable",type:"checkbox",default:!1},downloadable:{label:"Downloadable",type:"checkbox",default:!1},allowBulkActions:{label:"Allow Bulk Actions",type:"checkbox",default:!1}}),n=[{path:"",component:()=>Promise.resolve().then(()=>require("./TableView-CpO53xcX.js"))}],i=[],a={component:()=>Promise.resolve().then(()=>require("./index-DFQGVHTs.js")),metadata:o,config:t,routes:n,permissions:i},r={name:"Products",description:"Manage products",icon:"mdi-table",version:"1.0.0"},c=e.defineModuleConfig({project:{label:"Database",type:"resource",accept:["FIREBASE"]},productCollection:{label:"Product Collection",type:"input",default:"products"},collectionsCollection:{label:"Collections Collection",type:"input",default:"public/e-commerce:collections"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1},previewUrl:{label:"Preview URL",type:"input",default:"https://preview.com/shop/{{slug}}"}}),l=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BNMZ9MUK.js"))},{path:"/:productId",component:()=>Promise.resolve().then(()=>require("./Detail-CNfTDUE5.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-CNfTDUE5.js"))}],s=[{key:"create-product",name:"Create product",description:"Team member can create a new product"},{key:"edit-product",name:"Edit product",description:"Team member can edit a product"},{key:"delete-product",name:"Delete product",description:"Team member can delete a product"}],p={component:()=>Promise.resolve().then(()=>require("./index-R2oUDsjx.js")),metadata:r,config:c,routes:l,permissions:s},m={name:"Custom",description:"Custom module",icon:"mdi-table",version:"1.0.0"},d=e.defineModuleConfig({formLayout:{label:"Design View",type:"form"}}),u=[{path:"",component:()=>Promise.resolve().then(()=>require("./View-DlHBZbFu.js"))}],h=[],b={component:()=>Promise.resolve().then(()=>require("./index-CSxYBeVA.js")),metadata:m,config:d,routes:u,permissions:h},f={name:"Promo Codes",description:"Create and manage promo codes",icon:"mdi-table",version:"1.0.0"},g=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},promoCodeCollection:{label:"Promo Code Collection",type:"input",default:"promo-codes"}}),y=[{path:"",component:()=>Promise.resolve().then(()=>require("./Create-BP8TX6rj.js"))},{path:"/promo-codes",component:()=>Promise.resolve().then(()=>require("./Find-BidEQJxT.js"))},{path:"/promo-codes/:promoCodeId",component:()=>Promise.resolve().then(()=>require("./Detail-DUo6qKqO.js"))}],v=[{key:"create-promo-codes",name:"Create promo codes",description:"Team member can create promo codes"},{key:"view-promo-codes",name:"View promo codes",description:"Team member can view promo codes"},{key:"delete-promo-codes",name:"Delete promo codes",description:"Team member can delete promo codes"}],P={component:()=>Promise.resolve().then(()=>require("./index-CkiNvRzs.js")),metadata:f,config:g,routes:y,permissions:v},C={name:"Product Collections",description:"Manage product collections",icon:"mdi-table",version:"1.0.0"},q=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},collectionsCollection:{label:"Collections Collection",type:"input",default:"public/e-commerce:collections"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1}}),$=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-T-lsy3UZ.js"))},{path:"/:collectionId",component:()=>Promise.resolve().then(()=>require("./Detail-Cd5CBVN0.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-Cd5CBVN0.js"))}],k=[{key:"create-collection",name:"Create product collection",description:"Team member can create a new product collection"},{key:"edit-collection",name:"Edit product collection",description:"Team member can edit a product collection"},{key:"delete-collection",name:"Delete product collection",description:"Team member can delete a product collection"}],w={component:()=>Promise.resolve().then(()=>require("./index-CwqrAU-H.js")),metadata:C,config:q,routes:$,permissions:k},S={name:"Shipping Options",description:"Manage shipping options",icon:"mdi-table",version:"1.0.0"},M=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},shippingOptionsCollection:{label:"Shipping Options Collection",type:"input",default:"public/e-commerce:shipping-options"}}),T=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BbvfH1u-.js"))},{path:"/:optionId",component:()=>Promise.resolve().then(()=>require("./Detail-Dd_OkpcN.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-Dd_OkpcN.js"))}],E=[{key:"create-option",name:"Create shipping option",description:"Team member can create a new shipping option"},{key:"edit-option",name:"Edit shipping option",description:"Team member can edit a shipping option"},{key:"delete-option",name:"Delete shipping option",description:"Team member can delete a shipping option"}],x={component:()=>Promise.resolve().then(()=>require("./index-Co4ON2Di.js")),metadata:S,config:M,routes:T,permissions:E},D={name:"Content Manager",description:"Create and manage content",icon:"mdi-table",version:"1.0.0"},A=e.defineModuleConfig({project:{label:"Database",type:"resource",accept:["FIREBASE"]},domain:{label:"Domain",type:"input",default:"https://domain.com"},collectionsCollection:{label:"Collections Collection",type:"input",default:"content_collections"},contentCollection:{label:"Content Collection",type:"input",default:"content"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1},supportedLanguages:{label:"Supported Languages",type:"select",predefinedOptions:"languages",multiple:!0},defaultLanguage:{label:"Default Language",type:"select",predefinedOptions:"languages"}}),I=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-KT2Mgfh5.js"))},{path:"/collections",component:()=>Promise.resolve().then(()=>require("./Overview-KT2Mgfh5.js"))},{path:"/collections/:collectionId",component:()=>Promise.resolve().then(()=>require("./Entries-DcpPvlYj.js"))},{path:"/collections/:collectionId/:entryId",component:()=>Promise.resolve().then(()=>require("./ContentEditor-BBdzuTJJ.js"))},{path:"/components",component:()=>Promise.resolve().then(()=>require("./Components-DXbx0RLV.js"))},{path:"/global-styling",component:()=>Promise.resolve().then(()=>require("./GlobalStyling-CnSlXkZc.js"))}],j=[{key:"create-content",name:"Create content",description:"Team member can create content"},{key:"edit-content",name:"Edit content",description:"Team member can edit content"},{key:"delete-content",name:"Delete content",description:"Team member can delete content"}],B={component:()=>Promise.resolve().then(()=>require("./index-UtjLbLw-.js")),metadata:D,config:A,routes:I,permissions:j},F={name:"Mail Templates",description:"Build templates for your transactional emails.",icon:"mdi-table",version:"1.0.0"},R=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},templateCollection:{label:"Mail Templates Collection",type:"input",default:"mail-templates"}}),U=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BDlBCUI_.js"))},{path:"/:optionId",component:()=>Promise.resolve().then(()=>require("./Detail-mvSGbnFU.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-mvSGbnFU.js"))}],O=[{key:"create-template",name:"Create mail template",description:"Team member can create a new mail template"},{key:"edit-template",name:"Edit mail template",description:"Team member can edit a mail template"},{key:"delete-template",name:"Delete mail template",description:"Team member can delete a mail template"}],L={component:()=>Promise.resolve().then(()=>require("./index-Cz-baGax.js")),metadata:F,config:R,routes:U,permissions:O},V={name:"Appointments",description:"Create and manage agendas for booking appointments.",icon:"mdi-table",version:"1.0.0"},K=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},agendaCollection:{label:"Agenda Collection",type:"input",default:"agendas"}}),_=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-CvquDPhB.js"))},{path:"/create",component:()=>Promise.resolve().then(()=>require("./index-D2a6wEPh.js"))},{path:"/create/regular",component:()=>Promise.resolve().then(()=>require("./regular-DFwPEbZO.js"))},{path:"/edit/:id",component:()=>Promise.resolve().then(()=>require("./index-_sQDF1pH.js"))},{path:"/edit/:id/agenda",component:()=>Promise.resolve().then(()=>require("./agenda-DipQ5IWP.js"))},{path:"/edit/:id/regular-slots",component:()=>Promise.resolve().then(()=>require("./regular-slots-BAVGbomI.js"))},{path:"/edit/:id/exceptions",component:()=>Promise.resolve().then(()=>require("./exceptions-DJ9zWX3k.js"))},{path:"/edit/:id/availability",component:()=>Promise.resolve().then(()=>require("./availability-C7q9tq6l.js"))},{path:"/edit/:id/payment",component:()=>Promise.resolve().then(()=>require("./payment-kTjsV0Jj.js"))},{path:"/edit/:id/resources",component:()=>Promise.resolve().then(()=>require("./resources-iM28T3dD.js"))}],z=[{key:"create-promo-codes",name:"Create promo codes",description:"Team member can create promo codes"},{key:"view-promo-codes",name:"View promo codes",description:"Team member can view promo codes"},{key:"delete-promo-codes",name:"Delete promo codes",description:"Team member can delete promo codes"}],G={component:()=>Promise.resolve().then(()=>require("./index-9HVlmvK3.js")),metadata:V,config:K,routes:_,permissions:z};exports.appointments=G;exports.contentManager=B;exports.custom=b;exports.mailTemplates=L;exports.productCollections=w;exports.products=p;exports.promoCodes=P;exports.shippingOptions=x;exports.table=a;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@oneclick.dev/cms-kit"),o={name:"Table",description:"Manage tables and structured data.",icon:"mdi-table",version:"1.0.0"},t=e.defineModuleConfig({getItems:{label:"Fetch items",type:"flow"},viewable:{label:"Viewable",type:"checkbox",default:!1},editable:{label:"Editable",type:"checkbox",default:!1},deletable:{label:"Deletable",type:"checkbox",default:!1},addable:{label:"Addable",type:"checkbox",default:!1},searchable:{label:"Searchable",type:"checkbox",default:!1},downloadable:{label:"Downloadable",type:"checkbox",default:!1},allowBulkActions:{label:"Allow Bulk Actions",type:"checkbox",default:!1}}),n=[{path:"",component:()=>Promise.resolve().then(()=>require("./TableView-Dv4YXBD1.js"))}],i=[],a={component:()=>Promise.resolve().then(()=>require("./index-DFQGVHTs.js")),metadata:o,config:t,routes:n,permissions:i},r={name:"Products",description:"Manage products",icon:"mdi-table",version:"1.0.0"},c=e.defineModuleConfig({project:{label:"Database",type:"resource",accept:["FIREBASE"]},productCollection:{label:"Product Collection",type:"input",default:"products"},collectionsCollection:{label:"Collections Collection",type:"input",default:"public/e-commerce:collections"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1},previewUrl:{label:"Preview URL",type:"input",default:"https://preview.com/shop/{{slug}}"}}),l=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BNMZ9MUK.js"))},{path:"/:productId",component:()=>Promise.resolve().then(()=>require("./Detail-CNfTDUE5.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-CNfTDUE5.js"))}],s=[{key:"create-product",name:"Create product",description:"Team member can create a new product"},{key:"edit-product",name:"Edit product",description:"Team member can edit a product"},{key:"delete-product",name:"Delete product",description:"Team member can delete a product"}],p={component:()=>Promise.resolve().then(()=>require("./index-R2oUDsjx.js")),metadata:r,config:c,routes:l,permissions:s},m={name:"Custom",description:"Custom module",icon:"mdi-table",version:"1.0.0"},d=e.defineModuleConfig({formLayout:{label:"Design View",type:"form"}}),u=[{path:"",component:()=>Promise.resolve().then(()=>require("./View-7qb_ohVo.js"))}],h=[],b={component:()=>Promise.resolve().then(()=>require("./index-CSxYBeVA.js")),metadata:m,config:d,routes:u,permissions:h},f={name:"Promo Codes",description:"Create and manage promo codes",icon:"mdi-table",version:"1.0.0"},g=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},promoCodeCollection:{label:"Promo Code Collection",type:"input",default:"promo-codes"}}),y=[{path:"",component:()=>Promise.resolve().then(()=>require("./Create-BP8TX6rj.js"))},{path:"/promo-codes",component:()=>Promise.resolve().then(()=>require("./Find-BidEQJxT.js"))},{path:"/promo-codes/:promoCodeId",component:()=>Promise.resolve().then(()=>require("./Detail-DUo6qKqO.js"))}],v=[{key:"create-promo-codes",name:"Create promo codes",description:"Team member can create promo codes"},{key:"view-promo-codes",name:"View promo codes",description:"Team member can view promo codes"},{key:"delete-promo-codes",name:"Delete promo codes",description:"Team member can delete promo codes"}],P={component:()=>Promise.resolve().then(()=>require("./index-CkiNvRzs.js")),metadata:f,config:g,routes:y,permissions:v},C={name:"Product Collections",description:"Manage product collections",icon:"mdi-table",version:"1.0.0"},q=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},collectionsCollection:{label:"Collections Collection",type:"input",default:"public/e-commerce:collections"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1}}),$=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-T-lsy3UZ.js"))},{path:"/:collectionId",component:()=>Promise.resolve().then(()=>require("./Detail-Cd5CBVN0.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-Cd5CBVN0.js"))}],k=[{key:"create-collection",name:"Create product collection",description:"Team member can create a new product collection"},{key:"edit-collection",name:"Edit product collection",description:"Team member can edit a product collection"},{key:"delete-collection",name:"Delete product collection",description:"Team member can delete a product collection"}],w={component:()=>Promise.resolve().then(()=>require("./index-CwqrAU-H.js")),metadata:C,config:q,routes:$,permissions:k},S={name:"Shipping Options",description:"Manage shipping options",icon:"mdi-table",version:"1.0.0"},M=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},shippingOptionsCollection:{label:"Shipping Options Collection",type:"input",default:"public/e-commerce:shipping-options"}}),T=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BbvfH1u-.js"))},{path:"/:optionId",component:()=>Promise.resolve().then(()=>require("./Detail-Dd_OkpcN.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-Dd_OkpcN.js"))}],E=[{key:"create-option",name:"Create shipping option",description:"Team member can create a new shipping option"},{key:"edit-option",name:"Edit shipping option",description:"Team member can edit a shipping option"},{key:"delete-option",name:"Delete shipping option",description:"Team member can delete a shipping option"}],x={component:()=>Promise.resolve().then(()=>require("./index-Co4ON2Di.js")),metadata:S,config:M,routes:T,permissions:E},D={name:"Content Manager",description:"Create and manage content",icon:"mdi-table",version:"1.0.0"},A=e.defineModuleConfig({project:{label:"Database",type:"resource",accept:["FIREBASE"]},domain:{label:"Domain",type:"input",default:"https://domain.com"},collectionsCollection:{label:"Collections Collection",type:"input",default:"content_collections"},contentCollection:{label:"Content Collection",type:"input",default:"content"},allowedMediaSources:{label:"Allowed Media Sources",type:"mediaSource",multiple:!0},defaultUploadMediaSource:{label:"Default Upload Media Source",type:"mediaSource",multiple:!1},supportedLanguages:{label:"Supported Languages",type:"select",predefinedOptions:"languages",multiple:!0},defaultLanguage:{label:"Default Language",type:"select",predefinedOptions:"languages"}}),I=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-CwCAeBnX.js"))},{path:"/collections",component:()=>Promise.resolve().then(()=>require("./Overview-CwCAeBnX.js"))},{path:"/collections/:collectionId",component:()=>Promise.resolve().then(()=>require("./Entries-DlFiZ8EU.js"))},{path:"/collections/:collectionId/:entryId",component:()=>Promise.resolve().then(()=>require("./ContentEditor-DCmt_y_R.js"))},{path:"/components",component:()=>Promise.resolve().then(()=>require("./Components-DXbx0RLV.js"))},{path:"/global-styling",component:()=>Promise.resolve().then(()=>require("./GlobalStyling-CnSlXkZc.js"))}],j=[{key:"create-content",name:"Create content",description:"Team member can create content"},{key:"edit-content",name:"Edit content",description:"Team member can edit content"},{key:"delete-content",name:"Delete content",description:"Team member can delete content"}],B={component:()=>Promise.resolve().then(()=>require("./index-UtjLbLw-.js")),metadata:D,config:A,routes:I,permissions:j},F={name:"Mail Templates",description:"Build templates for your transactional emails.",icon:"mdi-table",version:"1.0.0"},R=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},templateCollection:{label:"Mail Templates Collection",type:"input",default:"mail-templates"}}),U=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-BDlBCUI_.js"))},{path:"/:optionId",component:()=>Promise.resolve().then(()=>require("./Detail-mvSGbnFU.js"))},{path:"/new",component:()=>Promise.resolve().then(()=>require("./Detail-mvSGbnFU.js"))}],O=[{key:"create-template",name:"Create mail template",description:"Team member can create a new mail template"},{key:"edit-template",name:"Edit mail template",description:"Team member can edit a mail template"},{key:"delete-template",name:"Delete mail template",description:"Team member can delete a mail template"}],L={component:()=>Promise.resolve().then(()=>require("./index-Cz-baGax.js")),metadata:F,config:R,routes:U,permissions:O},V={name:"Appointments",description:"Create and manage agendas for booking appointments.",icon:"mdi-table",version:"1.0.0"},K=e.defineModuleConfig({project:{label:"Project",type:"resource",accept:["FIREBASE"]},agendaCollection:{label:"Agenda Collection",type:"input",default:"agendas"}}),_=[{path:"",component:()=>Promise.resolve().then(()=>require("./Overview-CvquDPhB.js"))},{path:"/create",component:()=>Promise.resolve().then(()=>require("./index-D2a6wEPh.js"))},{path:"/create/regular",component:()=>Promise.resolve().then(()=>require("./regular-DFwPEbZO.js"))},{path:"/edit/:id",component:()=>Promise.resolve().then(()=>require("./index-_sQDF1pH.js"))},{path:"/edit/:id/agenda",component:()=>Promise.resolve().then(()=>require("./agenda-DipQ5IWP.js"))},{path:"/edit/:id/regular-slots",component:()=>Promise.resolve().then(()=>require("./regular-slots-BAVGbomI.js"))},{path:"/edit/:id/exceptions",component:()=>Promise.resolve().then(()=>require("./exceptions-DJ9zWX3k.js"))},{path:"/edit/:id/availability",component:()=>Promise.resolve().then(()=>require("./availability-C7q9tq6l.js"))},{path:"/edit/:id/payment",component:()=>Promise.resolve().then(()=>require("./payment-kTjsV0Jj.js"))},{path:"/edit/:id/resources",component:()=>Promise.resolve().then(()=>require("./resources-iM28T3dD.js"))}],z=[{key:"create-promo-codes",name:"Create promo codes",description:"Team member can create promo codes"},{key:"view-promo-codes",name:"View promo codes",description:"Team member can view promo codes"},{key:"delete-promo-codes",name:"Delete promo codes",description:"Team member can delete promo codes"}],G={component:()=>Promise.resolve().then(()=>require("./index-9HVlmvK3.js")),metadata:V,config:K,routes:_,permissions:z};exports.appointments=G;exports.contentManager=B;exports.custom=b;exports.mailTemplates=L;exports.productCollections=w;exports.products=p;exports.promoCodes=P;exports.shippingOptions=x;exports.table=a;
|
package/dist/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ const o = {
|
|
|
45
45
|
default: !1
|
|
46
46
|
}
|
|
47
47
|
}), n = [
|
|
48
|
-
{ path: "", component: () => import("./TableView-
|
|
48
|
+
{ path: "", component: () => import("./TableView-CS13LLxk.mjs") }
|
|
49
49
|
], a = [], L = {
|
|
50
50
|
component: () => import("./index-DMoyoaks.mjs"),
|
|
51
51
|
metadata: o,
|
|
@@ -113,7 +113,7 @@ const o = {
|
|
|
113
113
|
type: "form"
|
|
114
114
|
}
|
|
115
115
|
}), s = [
|
|
116
|
-
{ path: "", component: () => import("./View-
|
|
116
|
+
{ path: "", component: () => import("./View-C7axVP9t.mjs") }
|
|
117
117
|
], d = [], V = {
|
|
118
118
|
component: () => import("./index-BEGU8Kme.mjs"),
|
|
119
119
|
metadata: m,
|
|
@@ -268,10 +268,10 @@ const o = {
|
|
|
268
268
|
predefinedOptions: "languages"
|
|
269
269
|
}
|
|
270
270
|
}), v = [
|
|
271
|
-
{ path: "", component: () => import("./Overview-
|
|
272
|
-
{ path: "/collections", component: () => import("./Overview-
|
|
273
|
-
{ path: "/collections/:collectionId", component: () => import("./Entries-
|
|
274
|
-
{ path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-
|
|
271
|
+
{ path: "", component: () => import("./Overview-D1nJLBe1.mjs") },
|
|
272
|
+
{ path: "/collections", component: () => import("./Overview-D1nJLBe1.mjs") },
|
|
273
|
+
{ path: "/collections/:collectionId", component: () => import("./Entries-zyhycw1M.mjs") },
|
|
274
|
+
{ path: "/collections/:collectionId/:entryId", component: () => import("./ContentEditor-CtGeIzC4.mjs") },
|
|
275
275
|
{ path: "/components", component: () => import("./Components-D9yIIosM.mjs") },
|
|
276
276
|
{ path: "/global-styling", component: () => import("./GlobalStyling-BLQ_1W2y.mjs") }
|
|
277
277
|
], x = [
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function y(n, i) {
|
|
2
|
+
if (!n) return "";
|
|
3
|
+
const r = i?.reduce((e, s) => (e[s.name] = s.value, e), {}) ?? {};
|
|
4
|
+
return c(n, a(r));
|
|
5
|
+
}
|
|
6
|
+
function c(n, i, r = "text") {
|
|
7
|
+
const e = n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);
|
|
8
|
+
return e ? o(e[1].trim(), i) : n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g, (s, u) => {
|
|
9
|
+
const t = o(String(u).trim(), i);
|
|
10
|
+
if (r === "js") {
|
|
11
|
+
if (t == null) return "null";
|
|
12
|
+
if (typeof t == "string") return JSON.stringify(t);
|
|
13
|
+
if (typeof t == "number" || typeof t == "boolean") return String(t);
|
|
14
|
+
try {
|
|
15
|
+
return JSON.stringify(t);
|
|
16
|
+
} catch {
|
|
17
|
+
return "null";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (t == null) return "";
|
|
21
|
+
if (typeof t == "string") return t;
|
|
22
|
+
if (typeof t == "number" || typeof t == "boolean") return String(t);
|
|
23
|
+
try {
|
|
24
|
+
return JSON.stringify(t);
|
|
25
|
+
} catch {
|
|
26
|
+
return String(t);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function o(n, i) {
|
|
31
|
+
if (!n) return "";
|
|
32
|
+
const r = l(n), e = { ...i };
|
|
33
|
+
for (const t of r)
|
|
34
|
+
t in e || (e[t] = void 0);
|
|
35
|
+
const s = Object.keys(e), u = Object.values(e);
|
|
36
|
+
try {
|
|
37
|
+
return new Function(...s, `'use strict'; return (${n})`)(...u);
|
|
38
|
+
} catch (t) {
|
|
39
|
+
console.warn(`Interpolation failed for expression: "${n}"`, t);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function f(n) {
|
|
44
|
+
return /^[$A-Z_][0-9A-Z_$]*$/i.test(n);
|
|
45
|
+
}
|
|
46
|
+
function a(n) {
|
|
47
|
+
const i = ["__proto__", "constructor", "prototype"], r = (e) => {
|
|
48
|
+
if (Array.isArray(e)) return e.map(r);
|
|
49
|
+
if (e && typeof e == "object") {
|
|
50
|
+
const s = {};
|
|
51
|
+
for (const u in e)
|
|
52
|
+
!i.includes(u) && f(u) && (s[u] = r(e[u]));
|
|
53
|
+
return s;
|
|
54
|
+
}
|
|
55
|
+
return e;
|
|
56
|
+
};
|
|
57
|
+
return r(n);
|
|
58
|
+
}
|
|
59
|
+
function l(n) {
|
|
60
|
+
const i = n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g) || [], r = /* @__PURE__ */ new Set(["true", "false", "null", "undefined", "return", "if", "else", "try", "catch", "typeof"]);
|
|
61
|
+
return [...new Set(i.filter((e) => !r.has(e)))];
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
y as i
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function c(n,i){if(!n)return"";const r=i?.reduce((e,s)=>(e[s.name]=s.value,e),{})??{};return f(n,l(r))}function f(n,i,r="text"){const e=n.match(/^\s*\{\{\s*([\s\S]+?)\s*\}\}\s*$/);return e?u(e[1].trim(),i):n.replace(/\{\{\s*([\s\S]+?)\s*\}\}/g,(s,o)=>{const t=u(String(o).trim(),i);if(r==="js"){if(t==null)return"null";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);try{return JSON.stringify(t)}catch{return"null"}}if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return String(t);try{return JSON.stringify(t)}catch{return String(t)}})}function u(n,i){if(!n)return"";const r=y(n),e={...i};for(const t of r)t in e||(e[t]=void 0);const s=Object.keys(e),o=Object.values(e);try{return new Function(...s,`'use strict'; return (${n})`)(...o)}catch(t){console.warn(`Interpolation failed for expression: "${n}"`,t);return}}function a(n){return/^[$A-Z_][0-9A-Z_$]*$/i.test(n)}function l(n){const i=["__proto__","constructor","prototype"],r=e=>{if(Array.isArray(e))return e.map(r);if(e&&typeof e=="object"){const s={};for(const o in e)!i.includes(o)&&a(o)&&(s[o]=r(e[o]));return s}return e};return r(n)}function y(n){const i=n.match(/\b[a-zA-Z_][a-zA-Z0-9_]*\b/g)||[],r=new Set(["true","false","null","undefined","return","if","else","try","catch","typeof"]);return[...new Set(i.filter(e=>!r.has(e)))]}exports.interpolateTemplateFromVariableContext=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function interpolateTemplateFromVariableContext(template: string, variableContext: Variable[]): unknown;
|
|
2
|
-
export declare function interpolateTemplateFromVariableObject(template: string, variableContext: Record<string, any
|
|
2
|
+
export declare function interpolateTemplateFromVariableObject(template: string, variableContext: Record<string, any>, mode?: 'text' | 'js'): unknown;
|
|
3
3
|
interface Variable {
|
|
4
4
|
name: string;
|
|
5
5
|
type: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneclick.dev/cms-core-modules",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
24
24
|
"@internationalized/date": "^3.8.0",
|
|
25
|
-
"@oneclick.dev/cms-kit": "0.0.
|
|
25
|
+
"@oneclick.dev/cms-kit": "0.0.73",
|
|
26
26
|
"@tanstack/vue-table": "^8.21.3",
|
|
27
27
|
"@vee-validate/zod": "^4.15.0",
|
|
28
28
|
"@vue-flow/core": "^1.48.1",
|