zc-lowcode 0.0.1 → 0.0.3
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/README.md +430 -3
- package/designer.d.ts +5 -0
- package/dist/assets/code-editor.css +1 -0
- package/dist/assets/designer.css +1 -0
- package/dist/assets/materials.css +1 -0
- package/dist/assets/runtime-definitions.css +1 -0
- package/dist/assets/runtime.css +1 -0
- package/dist/assets/sortable.css +1 -0
- package/dist/code-editor-DJwwp3uU.js +9 -0
- package/dist/code-editor-DJwwp3uU.js.map +1 -0
- package/dist/code-editor.vue_vue_type_script_setup_true_lang-aA043pnA.js +40176 -0
- package/dist/code-editor.vue_vue_type_script_setup_true_lang-aA043pnA.js.map +1 -0
- package/dist/core/index.d.ts +560 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core.js +881 -0
- package/dist/core.js.map +1 -0
- package/dist/designer/canvas/draggable-list.vue.d.ts +15 -0
- package/dist/designer/canvas/draggable-list.vue.d.ts.map +1 -0
- package/dist/designer/canvas/widget-node.vue.d.ts +11 -0
- package/dist/designer/canvas/widget-node.vue.d.ts.map +1 -0
- package/dist/designer/canvas/workspace.vue.d.ts +3 -0
- package/dist/designer/canvas/workspace.vue.d.ts.map +1 -0
- package/dist/designer/datasource/data-editor.vue.d.ts +13 -0
- package/dist/designer/datasource/data-editor.vue.d.ts.map +1 -0
- package/dist/designer/datasource/datasource-help.d.ts +9 -0
- package/dist/designer/datasource/datasource-help.d.ts.map +1 -0
- package/dist/designer/datasource/panel.vue.d.ts +3 -0
- package/dist/designer/datasource/panel.vue.d.ts.map +1 -0
- package/dist/designer/designer.d.ts +119 -0
- package/dist/designer/designer.d.ts.map +1 -0
- package/dist/designer/designer.vue.d.ts +40 -0
- package/dist/designer/designer.vue.d.ts.map +1 -0
- package/dist/designer/index.d.ts +13 -0
- package/dist/designer/index.d.ts.map +1 -0
- package/dist/designer/material-registry.d.ts +19 -0
- package/dist/designer/material-registry.d.ts.map +1 -0
- package/dist/designer/materials/widget-library.vue.d.ts +3 -0
- package/dist/designer/materials/widget-library.vue.d.ts.map +1 -0
- package/dist/designer/methods/api-method-params-list.vue.d.ts +14 -0
- package/dist/designer/methods/api-method-params-list.vue.d.ts.map +1 -0
- package/dist/designer/methods/api-param-bind-button.vue.d.ts +17 -0
- package/dist/designer/methods/api-param-bind-button.vue.d.ts.map +1 -0
- package/dist/designer/methods/api-param-list.vue.d.ts +19 -0
- package/dist/designer/methods/api-param-list.vue.d.ts.map +1 -0
- package/dist/designer/methods/api-result-rules-list.vue.d.ts +16 -0
- package/dist/designer/methods/api-result-rules-list.vue.d.ts.map +1 -0
- package/dist/designer/methods/method-api-config-form.vue.d.ts +15 -0
- package/dist/designer/methods/method-api-config-form.vue.d.ts.map +1 -0
- package/dist/designer/methods/page-method-api.d.ts +37 -0
- package/dist/designer/methods/page-method-api.d.ts.map +1 -0
- package/dist/designer/methods/page-method-editor-modal.vue.d.ts +30 -0
- package/dist/designer/methods/page-method-editor-modal.vue.d.ts.map +1 -0
- package/dist/designer/methods/page-method-simulate-args-modal.vue.d.ts +18 -0
- package/dist/designer/methods/page-method-simulate-args-modal.vue.d.ts.map +1 -0
- package/dist/designer/methods/page-methods.vue.d.ts +3 -0
- package/dist/designer/methods/page-methods.vue.d.ts.map +1 -0
- package/dist/designer/methods/use-page-methods-editor.d.ts +163 -0
- package/dist/designer/methods/use-page-methods-editor.d.ts.map +1 -0
- package/dist/designer/outline/panel.vue.d.ts +5 -0
- package/dist/designer/outline/panel.vue.d.ts.map +1 -0
- package/dist/designer/properties/panel.vue.d.ts +18 -0
- package/dist/designer/properties/panel.vue.d.ts.map +1 -0
- package/dist/designer/shared/code-editor-page-context-completion.d.ts +39 -0
- package/dist/designer/shared/code-editor-page-context-completion.d.ts.map +1 -0
- package/dist/designer/shared/code-editor.vue.d.ts +93 -0
- package/dist/designer/shared/code-editor.vue.d.ts.map +1 -0
- package/dist/designer/use-designer-shortcuts.d.ts +21 -0
- package/dist/designer/use-designer-shortcuts.d.ts.map +1 -0
- package/dist/designer-style.js +4 -0
- package/dist/designer.js +3215 -0
- package/dist/designer.js.map +1 -0
- package/dist/materials/definitions.d.ts +3 -0
- package/dist/materials/definitions.d.ts.map +1 -0
- package/dist/materials/index.d.ts +11 -0
- package/dist/materials/index.d.ts.map +1 -0
- package/dist/materials/packages/button/index.d.ts +4 -0
- package/dist/materials/packages/button/index.d.ts.map +1 -0
- package/dist/materials/packages/button/options.d.ts +45 -0
- package/dist/materials/packages/button/options.d.ts.map +1 -0
- package/dist/materials/packages/button/setter.vue.d.ts +7 -0
- package/dist/materials/packages/button/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/button/view.vue.d.ts +11 -0
- package/dist/materials/packages/button/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/card/index.d.ts +4 -0
- package/dist/materials/packages/card/index.d.ts.map +1 -0
- package/dist/materials/packages/card/options.d.ts +24 -0
- package/dist/materials/packages/card/options.d.ts.map +1 -0
- package/dist/materials/packages/card/setter.vue.d.ts +7 -0
- package/dist/materials/packages/card/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/card/view.vue.d.ts +28 -0
- package/dist/materials/packages/card/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/carousel/carousel-slide/options.d.ts +12 -0
- package/dist/materials/packages/carousel/carousel-slide/options.d.ts.map +1 -0
- package/dist/materials/packages/carousel/carousel-slide/setter.vue.d.ts +7 -0
- package/dist/materials/packages/carousel/carousel-slide/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/carousel/carousel-slide/view.vue.d.ts +24 -0
- package/dist/materials/packages/carousel/carousel-slide/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/carousel/designer.vue.d.ts +30 -0
- package/dist/materials/packages/carousel/designer.vue.d.ts.map +1 -0
- package/dist/materials/packages/carousel/index.d.ts +5 -0
- package/dist/materials/packages/carousel/index.d.ts.map +1 -0
- package/dist/materials/packages/carousel/options.d.ts +65 -0
- package/dist/materials/packages/carousel/options.d.ts.map +1 -0
- package/dist/materials/packages/carousel/setter.vue.d.ts +7 -0
- package/dist/materials/packages/carousel/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/carousel/view.vue.d.ts +41 -0
- package/dist/materials/packages/carousel/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/divider/index.d.ts +4 -0
- package/dist/materials/packages/divider/index.d.ts.map +1 -0
- package/dist/materials/packages/divider/options.d.ts +39 -0
- package/dist/materials/packages/divider/options.d.ts.map +1 -0
- package/dist/materials/packages/divider/setter.vue.d.ts +7 -0
- package/dist/materials/packages/divider/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/divider/view.vue.d.ts +11 -0
- package/dist/materials/packages/divider/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/grid/designer.vue.d.ts +160 -0
- package/dist/materials/packages/grid/designer.vue.d.ts.map +1 -0
- package/dist/materials/packages/grid/index.d.ts +4 -0
- package/dist/materials/packages/grid/index.d.ts.map +1 -0
- package/dist/materials/packages/grid/options.d.ts +41 -0
- package/dist/materials/packages/grid/options.d.ts.map +1 -0
- package/dist/materials/packages/grid/setter.vue.d.ts +7 -0
- package/dist/materials/packages/grid/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/grid/split.d.ts +18 -0
- package/dist/materials/packages/grid/split.d.ts.map +1 -0
- package/dist/materials/packages/grid/view.vue.d.ts +35 -0
- package/dist/materials/packages/grid/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/image/index.d.ts +4 -0
- package/dist/materials/packages/image/index.d.ts.map +1 -0
- package/dist/materials/packages/image/options.d.ts +31 -0
- package/dist/materials/packages/image/options.d.ts.map +1 -0
- package/dist/materials/packages/image/setter.vue.d.ts +7 -0
- package/dist/materials/packages/image/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/image/view.vue.d.ts +11 -0
- package/dist/materials/packages/image/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/list/designer.vue.d.ts +29 -0
- package/dist/materials/packages/list/designer.vue.d.ts.map +1 -0
- package/dist/materials/packages/list/index.d.ts +4 -0
- package/dist/materials/packages/list/index.d.ts.map +1 -0
- package/dist/materials/packages/list/options.d.ts +60 -0
- package/dist/materials/packages/list/options.d.ts.map +1 -0
- package/dist/materials/packages/list/setter.vue.d.ts +7 -0
- package/dist/materials/packages/list/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/list/view.vue.d.ts +31 -0
- package/dist/materials/packages/list/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/tab/designer.vue.d.ts +30 -0
- package/dist/materials/packages/tab/designer.vue.d.ts.map +1 -0
- package/dist/materials/packages/tab/index.d.ts +5 -0
- package/dist/materials/packages/tab/index.d.ts.map +1 -0
- package/dist/materials/packages/tab/options.d.ts +48 -0
- package/dist/materials/packages/tab/options.d.ts.map +1 -0
- package/dist/materials/packages/tab/setter.vue.d.ts +7 -0
- package/dist/materials/packages/tab/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/tab/tab-pane/options.d.ts +13 -0
- package/dist/materials/packages/tab/tab-pane/options.d.ts.map +1 -0
- package/dist/materials/packages/tab/tab-pane/setter.vue.d.ts +7 -0
- package/dist/materials/packages/tab/tab-pane/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/tab/tab-pane/view.vue.d.ts +24 -0
- package/dist/materials/packages/tab/tab-pane/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/tab/view.vue.d.ts +34 -0
- package/dist/materials/packages/tab/view.vue.d.ts.map +1 -0
- package/dist/materials/packages/text/index.d.ts +4 -0
- package/dist/materials/packages/text/index.d.ts.map +1 -0
- package/dist/materials/packages/text/options.d.ts +29 -0
- package/dist/materials/packages/text/options.d.ts.map +1 -0
- package/dist/materials/packages/text/setter.vue.d.ts +7 -0
- package/dist/materials/packages/text/setter.vue.d.ts.map +1 -0
- package/dist/materials/packages/text/view.vue.d.ts +11 -0
- package/dist/materials/packages/text/view.vue.d.ts.map +1 -0
- package/dist/materials/page/index.d.ts +4 -0
- package/dist/materials/page/index.d.ts.map +1 -0
- package/dist/materials/page/lifecycle-panel.vue.d.ts +13 -0
- package/dist/materials/page/lifecycle-panel.vue.d.ts.map +1 -0
- package/dist/materials/page/setter-slots.d.ts +7 -0
- package/dist/materials/page/setter-slots.d.ts.map +1 -0
- package/dist/materials/page/setter.vue.d.ts +25 -0
- package/dist/materials/page/setter.vue.d.ts.map +1 -0
- package/dist/materials/page/view.vue.d.ts +26 -0
- package/dist/materials/page/view.vue.d.ts.map +1 -0
- package/dist/materials/runtime-definitions.d.ts +10 -0
- package/dist/materials/runtime-definitions.d.ts.map +1 -0
- package/dist/materials/shared/designer/container-children.vue.d.ts +24 -0
- package/dist/materials/shared/designer/container-children.vue.d.ts.map +1 -0
- package/dist/materials/shared/designer/helpers.d.ts +68 -0
- package/dist/materials/shared/designer/helpers.d.ts.map +1 -0
- package/dist/materials/shared/designer/icon.vue.d.ts +8 -0
- package/dist/materials/shared/designer/icon.vue.d.ts.map +1 -0
- package/dist/materials/shared/designer/selection-chrome.vue.d.ts +31 -0
- package/dist/materials/shared/designer/selection-chrome.vue.d.ts.map +1 -0
- package/dist/materials/shared/designer/use-keyed-slot-sync.d.ts +15 -0
- package/dist/materials/shared/designer/use-keyed-slot-sync.d.ts.map +1 -0
- package/dist/materials/shared/designer/use-widget-size-resize.d.ts +16 -0
- package/dist/materials/shared/designer/use-widget-size-resize.d.ts.map +1 -0
- package/dist/materials/shared/envelopes/internal-pane-view.vue.d.ts +29 -0
- package/dist/materials/shared/envelopes/internal-pane-view.vue.d.ts.map +1 -0
- package/dist/materials/shared/envelopes/item-scope-provider.vue.d.ts +22 -0
- package/dist/materials/shared/envelopes/item-scope-provider.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/binding-form-item.vue.d.ts +40 -0
- package/dist/materials/shared/setter/components/binding-form-item.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/binding-picker/binding-scope-tree.d.ts +83 -0
- package/dist/materials/shared/setter/components/binding-picker/binding-scope-tree.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/binding-picker/binding-utils.d.ts +105 -0
- package/dist/materials/shared/setter/components/binding-picker/binding-utils.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/binding-picker/index.vue.d.ts +30 -0
- package/dist/materials/shared/setter/components/binding-picker/index.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/box-model.vue.d.ts +11 -0
- package/dist/materials/shared/setter/components/box-model.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/color-input.vue.d.ts +14 -0
- package/dist/materials/shared/setter/components/color-input.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/image-upload.vue.d.ts +25 -0
- package/dist/materials/shared/setter/components/image-upload.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/keyed-slot-child-list.vue.d.ts +17 -0
- package/dist/materials/shared/setter/components/keyed-slot-child-list.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/offset-box.vue.d.ts +11 -0
- package/dist/materials/shared/setter/components/offset-box.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/percent-input.vue.d.ts +19 -0
- package/dist/materials/shared/setter/components/percent-input.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/components/style-property-input.vue.d.ts +92 -0
- package/dist/materials/shared/setter/components/style-property-input.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/composables/use-page-data-field-options.d.ts +15 -0
- package/dist/materials/shared/setter/composables/use-page-data-field-options.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/animation-panel.vue.d.ts +7 -0
- package/dist/materials/shared/setter/panels/animation-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/background-panel.vue.d.ts +11 -0
- package/dist/materials/shared/setter/panels/background-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/border-panel.vue.d.ts +11 -0
- package/dist/materials/shared/setter/panels/border-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/event-panel.vue.d.ts +14 -0
- package/dist/materials/shared/setter/panels/event-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/layout-panel.vue.d.ts +25 -0
- package/dist/materials/shared/setter/panels/layout-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/position-panel.vue.d.ts +16 -0
- package/dist/materials/shared/setter/panels/position-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/typography-panel.vue.d.ts +11 -0
- package/dist/materials/shared/setter/panels/typography-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/panels/widget-style-panel.vue.d.ts +30 -0
- package/dist/materials/shared/setter/panels/widget-style-panel.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/shell.vue.d.ts +21 -0
- package/dist/materials/shared/setter/shell.vue.d.ts.map +1 -0
- package/dist/materials/shared/setter/use-widget-setter.d.ts +35 -0
- package/dist/materials/shared/setter/use-widget-setter.d.ts.map +1 -0
- package/dist/materials-style.js +3 -0
- package/dist/materials.js +14703 -0
- package/dist/materials.js.map +1 -0
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/page-renderer.vue.d.ts +4 -0
- package/dist/runtime/page-renderer.vue.d.ts.map +1 -0
- package/dist/runtime/runtime.d.ts +585 -0
- package/dist/runtime/runtime.d.ts.map +1 -0
- package/dist/runtime/scoped-style-block.vue.d.ts +7 -0
- package/dist/runtime/scoped-style-block.vue.d.ts.map +1 -0
- package/dist/runtime/widget-node.vue.d.ts +9 -0
- package/dist/runtime/widget-node.vue.d.ts.map +1 -0
- package/dist/runtime-definitions-BGShdDBK.js +1984 -0
- package/dist/runtime-definitions-BGShdDBK.js.map +1 -0
- package/dist/runtime-style.js +3 -0
- package/dist/runtime.js +262 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sortable.esm-DbutZcEr.js +18104 -0
- package/dist/sortable.esm-DbutZcEr.js.map +1 -0
- package/dist/style.js +3 -0
- package/package.json +73 -41
- package/runtime.d.ts +5 -0
- package/dist/lowcode-editor.es.js +0 -79541
- package/dist/lowcode-editor.umd.js +0 -79542
- package/dist/style.css +0 -154
- package/dist/type.d.ts +0 -28
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import "./assets/runtime.css";
|
|
2
|
+
import "./assets/sortable.css";
|
|
3
|
+
import "./assets/runtime-definitions.css";
|
|
4
|
+
import { defineComponent as m, toRef as P, openBlock as o, createBlock as g, resolveDynamicComponent as D, unref as l, normalizeProps as I, guardReactiveProps as O, createSlots as W, withCtx as p, createElementBlock as L, Fragment as A, renderList as h, createCommentVNode as u, provide as _, computed as S, getCurrentInstance as N, normalizeStyle as y, createVNode as R } from "vue";
|
|
5
|
+
import { createMaterialRegistry as f, normalizeLoadedPage as w, registerRuntimeWidgetViews as b } from "./core.js";
|
|
6
|
+
import { STYLE_BREAKPOINTS as Q, STYLE_BREAKPOINT_META as $, STYLE_BREAKPOINT_MIN_WIDTH as ee, WIDGET_ANIMATION_PRESETS as ae, WIDGET_ANIMATION_PRESET_LABELS as se, WIDGET_ANIMATION_TRIGGERS as te, WIDGET_ANIMATION_TRIGGER_LABELS as ie, WIDGET_PSEUDO_STYLE_STATES as oe, WIDGET_STYLE_STATE_LABELS as ne, cleanResponsiveValue as de, clonePageSnapshot as re, ensureWidgetMotion as le, ensureWidgetStyles as Ee, getWidgetDefaultStyle as ge, getWidgetPseudoStyle as _e, hasResponsiveStyle as Se, hasWidgetAnimation as Te, hasWidgetAnimationForTrigger as ce, hasWidgetMotion as pe, hasWidgetPseudoStyle as ue, hasWidgetTransition as me, isNonEmptyCssStyle as Le, isResponsiveStyleValue as Pe, isWidgetAnimationEnabled as De, isWidgetTransitionEnabled as Ie, readStyleValue as Oe, resolveBreakpointByWidth as We, resolveFlatCssStyle as Ae, resolveResponsiveValue as he, serializePageSnapshot as Ne } from "./core.js";
|
|
7
|
+
import { dp as C, dq as v, a1 as M, a8 as F, n as x, dr as V, ds as Y, dt as B, du as U, dv as G } from "./sortable.esm-DbutZcEr.js";
|
|
8
|
+
import { dw as Re, dx as fe, dy as we, ad as be, ae as Ce, af as ve, ac as Me, dz as Fe, dA as xe, dB as Ve, bf as Ye, dC as Be, dD as Ue, dE as Ge, dF as ze, dG as Ke, bG as He, bF as ke, dH as Xe, a6 as Je, a2 as qe, a5 as Ze, ag as je, dI as Qe, w as $e, dJ as ea, bj as aa, bk as sa, dK as ta, aa as ia, dL as oa, dM as na, dN as da, dO as ra, bs as la, br as Ea, bl as ga, bm as _a, dP as Sa, dQ as Ta, K as ca, dR as pa, G as ua, dS as ma, dT as La, dU as Pa, dV as Da, dW as Ia, dX as Oa, bh as Wa, o as Aa, dY as ha, bb as Na, dZ as ya, Y as Ra, bT as fa, d_ as wa, d$ as ba, N as Ca, bc as va, e0 as Ma, x as Fa, bp as xa, W as Va, bo as Ya, bB as Ba, bu as Ua, e1 as Ga, bi as za, bv as Ka, bx as Ha, bC as ka, e2 as Xa, q as Ja, bq as qa, e3 as Za, e4 as ja, e5 as Qa, be as $a, r as es, bg as as, e6 as ss, e7 as ts, e8 as is, y as os, X as ns, p as ds, V as rs, T as ls, Q as Es, O as gs, bd as _s, bD as Ss, e9 as Ts, ea as cs, eb as ps, ec as us, ed as ms, H as Ls, bn as Ps, z as Ds, ee as Is, dl as Os, by as Ws, bt as As, ef as hs, eg as Ns, eh as ys, Z as Rs, ei as fs, ej as ws, ek as bs, el as Cs, em as vs, en as Ms, eo as Fs, ep as xs, eq as Vs, er as Ys, es as Bs, et as Us, J as Gs, eu as zs, bA as Ks, bw as Hs, bE as ks, ev as Xs, ew as Js, bz as qs, ex as Zs, ey as js, ez as Qs, eA as $s, eB as et, ah as at, eC as st, eD as tt, eE as it, eF as ot, eG as nt, eH as dt } from "./sortable.esm-DbutZcEr.js";
|
|
9
|
+
import { ae as z } from "./runtime-definitions-BGShdDBK.js";
|
|
10
|
+
const T = /* @__PURE__ */ m({
|
|
11
|
+
name: "RuntimeWidgetNode",
|
|
12
|
+
__name: "widget-node",
|
|
13
|
+
props: {
|
|
14
|
+
widget: {},
|
|
15
|
+
parentWidget: {},
|
|
16
|
+
index: {}
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
const e = a, { usesItemSlot: s, viewComponent: n } = C(P(e, "widget")), d = v(e.widget, e.parentWidget, e.index);
|
|
20
|
+
return (c, E) => (o(), g(D(l(n)), I(O(l(d))), W({
|
|
21
|
+
default: p(() => {
|
|
22
|
+
var t;
|
|
23
|
+
return [
|
|
24
|
+
!l(s) && ((t = a.widget.children) != null && t.length) ? (o(!0), L(A, { key: 0 }, h(a.widget.children, (i, r) => (o(), g(T, {
|
|
25
|
+
key: i.id,
|
|
26
|
+
widget: i,
|
|
27
|
+
"parent-widget": a.widget,
|
|
28
|
+
index: r
|
|
29
|
+
}, null, 8, ["widget", "parent-widget", "index"]))), 128)) : u("", !0)
|
|
30
|
+
];
|
|
31
|
+
}),
|
|
32
|
+
_: 2
|
|
33
|
+
}, [
|
|
34
|
+
l(s) ? {
|
|
35
|
+
name: "item",
|
|
36
|
+
fn: p(({ item: t, index: i, visible: r }) => [
|
|
37
|
+
r !== !1 ? (o(), g(T, {
|
|
38
|
+
key: 0,
|
|
39
|
+
widget: t,
|
|
40
|
+
"parent-widget": a.widget,
|
|
41
|
+
index: i
|
|
42
|
+
}, null, 8, ["widget", "parent-widget", "index"])) : u("", !0)
|
|
43
|
+
]),
|
|
44
|
+
key: "0"
|
|
45
|
+
} : void 0
|
|
46
|
+
]), 1040));
|
|
47
|
+
}
|
|
48
|
+
}), q = /* @__PURE__ */ m({
|
|
49
|
+
name: "LowcodePageRenderer",
|
|
50
|
+
__name: "page-renderer",
|
|
51
|
+
props: {
|
|
52
|
+
definitions: {},
|
|
53
|
+
page: {},
|
|
54
|
+
theme: {},
|
|
55
|
+
locale: {}
|
|
56
|
+
},
|
|
57
|
+
setup(a) {
|
|
58
|
+
const e = a, s = f(e.definitions ?? z);
|
|
59
|
+
_(M, s);
|
|
60
|
+
const n = S(() => w(e.page, s.widgetNormalizers)), d = N();
|
|
61
|
+
d && b(d.appContext.app, s);
|
|
62
|
+
const c = F({
|
|
63
|
+
page: () => n.value,
|
|
64
|
+
designMode: () => !1
|
|
65
|
+
});
|
|
66
|
+
_(x, c);
|
|
67
|
+
const E = S(() => V(e.theme)), t = S(() => Y(E.value));
|
|
68
|
+
_(B, E);
|
|
69
|
+
const { width: i } = G({ initialWidth: 0 });
|
|
70
|
+
return U(i), (r, K) => (o(), L("div", {
|
|
71
|
+
class: "lowcode-page-renderer lowcode-theme-scope lowcode-runtime-root h-full w-full min-h-0 min-w-0",
|
|
72
|
+
style: y(t.value)
|
|
73
|
+
}, [
|
|
74
|
+
R(T, { widget: n.value }, null, 8, ["widget"])
|
|
75
|
+
], 4));
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
Re as ANIMATION_PRESET_KEYFRAMES,
|
|
80
|
+
fe as DEFAULT_FLEX_CONTAINER_STYLE,
|
|
81
|
+
we as DEFAULT_FLEX_PANE_STYLE,
|
|
82
|
+
be as DEFAULT_LOWCODE_DESIGNER_HEIGHT,
|
|
83
|
+
Ce as DEFAULT_LOWCODE_DESIGNER_LOCALE,
|
|
84
|
+
ve as DEFAULT_LOWCODE_DESIGNER_THEME,
|
|
85
|
+
Me as DEFAULT_LOWCODE_DESIGNER_WIDTH,
|
|
86
|
+
Fe as DEFAULT_LOWCODE_RUNTIME_LOCALE,
|
|
87
|
+
xe as DEFAULT_LOWCODE_RUNTIME_THEME,
|
|
88
|
+
Ve as DEFAULT_LOWCODE_RUNTIME_TOKENS,
|
|
89
|
+
Ye as DEFAULT_WIDGET_EVENT_HANDLER,
|
|
90
|
+
Be as EXPRESSION_SKIP_OPTION_KEYS,
|
|
91
|
+
Ue as FLEX_LAYOUT_DEFAULTS,
|
|
92
|
+
Ge as FLEX_LAYOUT_FLEX_DEFAULTS,
|
|
93
|
+
ze as FLEX_LAYOUT_FLEX_KEYS,
|
|
94
|
+
Ke as FLEX_LAYOUT_KEYS,
|
|
95
|
+
He as FONT_FAMILY_OPTIONS,
|
|
96
|
+
ke as FONT_WEIGHT_OPTIONS,
|
|
97
|
+
Xe as ITEM_SCOPE_KEY,
|
|
98
|
+
x as LIFECYCLE_KEY,
|
|
99
|
+
Je as LOWCODE_DESIGNER_SELECT_WIDGET_KEY,
|
|
100
|
+
qe as LOWCODE_DESIGN_MODE_KEY,
|
|
101
|
+
Ze as LOWCODE_STYLE_PREVIEW_KEY,
|
|
102
|
+
B as LOWCODE_THEME_TOKEN_KEY,
|
|
103
|
+
je as LOWCODE_UPLOAD_KEY,
|
|
104
|
+
Qe as LOWCODE_VIEWPORT_WIDTH_KEY,
|
|
105
|
+
q as LowcodePageRenderer,
|
|
106
|
+
M as MATERIAL_REGISTRY_KEY,
|
|
107
|
+
$e as PAGE_DATA_VALUE_TYPE_OPTIONS,
|
|
108
|
+
ea as SIZE_UNITS,
|
|
109
|
+
Q as STYLE_BREAKPOINTS,
|
|
110
|
+
$ as STYLE_BREAKPOINT_META,
|
|
111
|
+
ee as STYLE_BREAKPOINT_MIN_WIDTH,
|
|
112
|
+
aa as TRANSITION_PROPERTY_OPTIONS,
|
|
113
|
+
sa as TRANSITION_TIMING_OPTIONS,
|
|
114
|
+
ae as WIDGET_ANIMATION_PRESETS,
|
|
115
|
+
se as WIDGET_ANIMATION_PRESET_LABELS,
|
|
116
|
+
te as WIDGET_ANIMATION_TRIGGERS,
|
|
117
|
+
ie as WIDGET_ANIMATION_TRIGGER_LABELS,
|
|
118
|
+
oe as WIDGET_PSEUDO_STYLE_STATES,
|
|
119
|
+
ne as WIDGET_STYLE_STATE_LABELS,
|
|
120
|
+
ta as applyBackgroundImageStyleDefaults,
|
|
121
|
+
ia as applyLowcodeThemeCssVariables,
|
|
122
|
+
Y as buildLowcodeThemeCssVariableStyle,
|
|
123
|
+
oa as buildResponsiveStyleCss,
|
|
124
|
+
na as buildScopedStyleCss,
|
|
125
|
+
da as buildWidgetMotionCss,
|
|
126
|
+
v as buildWidgetNodeShellProps,
|
|
127
|
+
ra as buildWidgetStylesCss,
|
|
128
|
+
la as clampAlpha,
|
|
129
|
+
Ea as cleanEmptyStyle,
|
|
130
|
+
de as cleanResponsiveValue,
|
|
131
|
+
ga as cleanWidgetMotion,
|
|
132
|
+
_a as cleanWidgetStyles,
|
|
133
|
+
re as clonePageSnapshot,
|
|
134
|
+
Sa as coerceBindingDisplayString,
|
|
135
|
+
Ta as coercePageDataValue,
|
|
136
|
+
ca as commitPageMethods,
|
|
137
|
+
pa as compilePageScript,
|
|
138
|
+
ua as createApiParamEntry,
|
|
139
|
+
ma as createExpressionScope,
|
|
140
|
+
La as createKeyedSlotMaterialHelpers,
|
|
141
|
+
Pa as createPageDataItem,
|
|
142
|
+
Da as createPageLifecycleHook,
|
|
143
|
+
Ia as createPageMethodHandler,
|
|
144
|
+
Oa as createPageMethodItem,
|
|
145
|
+
Wa as createWidgetEventItem,
|
|
146
|
+
Aa as dedupePageData,
|
|
147
|
+
ha as dedupePageMethods,
|
|
148
|
+
Na as dedupeWidgetEvents,
|
|
149
|
+
ya as ensureInternalPaneWidget,
|
|
150
|
+
Ra as ensurePageData,
|
|
151
|
+
fa as ensurePageLifecycle,
|
|
152
|
+
wa as ensurePageMethodListKeys,
|
|
153
|
+
ba as ensurePageMethods,
|
|
154
|
+
Ca as ensurePageScript,
|
|
155
|
+
le as ensureWidgetMotion,
|
|
156
|
+
Ee as ensureWidgetStyles,
|
|
157
|
+
va as findPresetHint,
|
|
158
|
+
Ma as formatAnimationDeclaration,
|
|
159
|
+
Fa as formatDraftPageDataValue,
|
|
160
|
+
xa as formatHex,
|
|
161
|
+
Va as formatPageMethodSignature,
|
|
162
|
+
Ya as formatRgba,
|
|
163
|
+
Ba as formatShadow,
|
|
164
|
+
Ua as formatSize,
|
|
165
|
+
Ga as formatTransitionDeclaration,
|
|
166
|
+
za as formatWidgetEventBindingPreview,
|
|
167
|
+
Ka as getBorderRadius,
|
|
168
|
+
Ha as getBorderValue,
|
|
169
|
+
ka as getBoxSides,
|
|
170
|
+
Xa as getByPath,
|
|
171
|
+
Ja as getPageDataValueSummary,
|
|
172
|
+
ge as getWidgetDefaultStyle,
|
|
173
|
+
_e as getWidgetPseudoStyle,
|
|
174
|
+
qa as hasBindingExpression,
|
|
175
|
+
Za as hasExplicitWidgetHeight,
|
|
176
|
+
ja as hasExplicitWidgetWidth,
|
|
177
|
+
Qa as hasMeaningfulBackgroundImage,
|
|
178
|
+
Se as hasResponsiveStyle,
|
|
179
|
+
Te as hasWidgetAnimation,
|
|
180
|
+
ce as hasWidgetAnimationForTrigger,
|
|
181
|
+
$a as hasWidgetEventBinding,
|
|
182
|
+
pe as hasWidgetMotion,
|
|
183
|
+
ue as hasWidgetPseudoStyle,
|
|
184
|
+
me as hasWidgetTransition,
|
|
185
|
+
es as inferPageDataValueType,
|
|
186
|
+
as as isEventNameUsed,
|
|
187
|
+
ss as isJsonSerializableValue,
|
|
188
|
+
ts as isMeaningfulFixedSize,
|
|
189
|
+
Le as isNonEmptyCssStyle,
|
|
190
|
+
is as isOverflowClipSize,
|
|
191
|
+
os as isPageDataNameUsed,
|
|
192
|
+
ns as isPageMethodNameUsed,
|
|
193
|
+
Pe as isResponsiveStyleValue,
|
|
194
|
+
ds as isValidPageDataName,
|
|
195
|
+
rs as isValidPageMethodApiTarget,
|
|
196
|
+
ls as isValidPageMethodApiUrl,
|
|
197
|
+
Es as isValidPageMethodHandler,
|
|
198
|
+
gs as isValidPageMethodName,
|
|
199
|
+
_s as isValidPageScriptHandler,
|
|
200
|
+
De as isWidgetAnimationEnabled,
|
|
201
|
+
Ie as isWidgetTransitionEnabled,
|
|
202
|
+
Ss as normalizeBoxSideValue,
|
|
203
|
+
Ts as normalizePageData,
|
|
204
|
+
cs as normalizePageLifecycle,
|
|
205
|
+
ps as normalizePageMethods,
|
|
206
|
+
us as normalizeWidgetEvents,
|
|
207
|
+
ms as pageDataItemsToRecord,
|
|
208
|
+
Ls as parseApiParamEntries,
|
|
209
|
+
Ps as parseColor,
|
|
210
|
+
Ds as parseDraftPageDataValue,
|
|
211
|
+
Is as parsePageDataJson,
|
|
212
|
+
Os as parsePageMethodSignature,
|
|
213
|
+
Ws as parseShadow,
|
|
214
|
+
As as parseSize,
|
|
215
|
+
hs as parseTransition,
|
|
216
|
+
Ns as patchFlexLayoutDefaults,
|
|
217
|
+
ys as patchWidgetEvents,
|
|
218
|
+
Rs as provideLowcodeUpload,
|
|
219
|
+
U as provideLowcodeViewportWidth,
|
|
220
|
+
Oe as readStyleValue,
|
|
221
|
+
fs as recordToPageDataItems,
|
|
222
|
+
ws as resolveAnimationName,
|
|
223
|
+
bs as resolveBindingExpression,
|
|
224
|
+
We as resolveBreakpointByWidth,
|
|
225
|
+
Cs as resolveContainerStyleFromWidget,
|
|
226
|
+
vs as resolveExpressionPath,
|
|
227
|
+
Ae as resolveFlatCssStyle,
|
|
228
|
+
Ms as resolveInternalPaneContainerCssStyle,
|
|
229
|
+
Fs as resolveInternalPaneContainerStyle,
|
|
230
|
+
V as resolveLowcodeThemeTokens,
|
|
231
|
+
xs as resolveOptionValue,
|
|
232
|
+
he as resolveResponsiveValue,
|
|
233
|
+
Vs as resolveStringExpression,
|
|
234
|
+
Ys as resolveWidgetOptions,
|
|
235
|
+
Bs as runPageLifecycleHook,
|
|
236
|
+
Us as runWidgetEventBinding,
|
|
237
|
+
z as runtimeMaterialDefinitions,
|
|
238
|
+
Gs as serializeApiParamEntries,
|
|
239
|
+
zs as serializePageDataJson,
|
|
240
|
+
Ne as serializePageSnapshot,
|
|
241
|
+
Ks as setBorderRadius,
|
|
242
|
+
Hs as setBorderValue,
|
|
243
|
+
ks as setBoxSides,
|
|
244
|
+
Xs as simulatePageLifecycle,
|
|
245
|
+
Js as simulatePageMethod,
|
|
246
|
+
qs as splitShorthand,
|
|
247
|
+
Zs as unwrapListRowScalar,
|
|
248
|
+
js as useCardContainerStyle,
|
|
249
|
+
Qs as useContainerStyle,
|
|
250
|
+
$s as useExpressionScope,
|
|
251
|
+
F as useLifecycle,
|
|
252
|
+
et as useLowcodeRuntimeToken,
|
|
253
|
+
at as useLowcodeToken,
|
|
254
|
+
st as useMaterialRegistry,
|
|
255
|
+
tt as useRenderableStyle,
|
|
256
|
+
it as useResolvedWidgetOptions,
|
|
257
|
+
ot as useStyleBreakpoint,
|
|
258
|
+
nt as useWidgetEvents,
|
|
259
|
+
C as useWidgetNodeContext,
|
|
260
|
+
dt as useWidgetVisualStyles
|
|
261
|
+
};
|
|
262
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sources":["../src/runtime/widget-node.vue","../src/runtime/page-renderer.vue"],"sourcesContent":["<script setup lang=\"ts\">\ndefineOptions({ name: 'RuntimeWidgetNode' })\n\nimport type { Widget } from '../core/index.ts'\nimport { buildWidgetNodeShellProps, useWidgetNodeContext } from './runtime.ts'\nimport RuntimeWidgetNode from './widget-node.vue'\nimport { toRef } from 'vue'\n\nconst props = defineProps<{\n widget: Widget\n parentWidget?: Widget | null\n index?: number\n}>()\n\nconst { usesItemSlot, viewComponent } = useWidgetNodeContext(toRef(props, 'widget'))\nconst shellProps = buildWidgetNodeShellProps(props.widget, props.parentWidget, props.index)\n</script>\n\n<template>\n <component :is=\"viewComponent\" v-bind=\"shellProps\">\n <template v-if=\"!usesItemSlot && widget.children?.length\">\n <RuntimeWidgetNode v-for=\"(child, childIndex) in widget.children\" :key=\"child.id\" :widget=\"child\" :parent-widget=\"widget\" :index=\"childIndex\" />\n </template>\n\n <template v-if=\"usesItemSlot\" #item=\"{ item, index: itemIndex, visible }\">\n <RuntimeWidgetNode v-if=\"visible !== false\" :widget=\"item\" :parent-widget=\"widget\" :index=\"itemIndex\" />\n </template>\n </component>\n</template>\n","<script setup lang=\"ts\">\ndefineOptions({ name: 'LowcodePageRenderer' })\n\nimport { createMaterialRegistry, normalizeLoadedPage, registerRuntimeWidgetViews } from '../core/index.ts'\nimport {\n type LowcodeRuntimeProps,\n provideLowcodeViewportWidth,\n LIFECYCLE_KEY,\n useLifecycle,\n MATERIAL_REGISTRY_KEY,\n resolveLowcodeThemeTokens,\n buildLowcodeThemeCssVariableStyle,\n LOWCODE_THEME_TOKEN_KEY\n} from './runtime.ts'\nimport { runtimeMaterialDefinitions } from '../materials/runtime-definitions.ts'\nimport RuntimeWidgetNode from './widget-node.vue'\nimport { computed, getCurrentInstance, provide } from 'vue'\nimport { useWindowSize } from '@vueuse/core'\n\nconst props = defineProps<LowcodeRuntimeProps>()\n\nconst materialRegistry = createMaterialRegistry(props.definitions ?? runtimeMaterialDefinitions)\nprovide(MATERIAL_REGISTRY_KEY, materialRegistry)\n\nconst normalizedPage = computed(() => normalizeLoadedPage(props.page, materialRegistry.widgetNormalizers))\n\nconst instance = getCurrentInstance()\nif (instance) {\n registerRuntimeWidgetViews(instance.appContext.app, materialRegistry)\n}\n\nconst lifecycleRuntime = useLifecycle({\n page: () => normalizedPage.value,\n designMode: () => false\n})\nprovide(LIFECYCLE_KEY, lifecycleRuntime)\n\nconst themeToken = computed(() => resolveLowcodeThemeTokens(props.theme))\nconst themeStyle = computed(() => buildLowcodeThemeCssVariableStyle(themeToken.value))\n\nprovide(LOWCODE_THEME_TOKEN_KEY, themeToken)\n\nconst { width: viewportWidth } = useWindowSize({ initialWidth: 0 })\nprovideLowcodeViewportWidth(viewportWidth)\n</script>\n\n<template>\n <div\n class=\"lowcode-page-renderer lowcode-theme-scope lowcode-runtime-root h-full w-full min-h-0 min-w-0\"\n :style=\"themeStyle\"\n >\n <RuntimeWidgetNode :widget=\"normalizedPage\" />\n </div>\n</template>\n"],"names":["props","__props","usesItemSlot","viewComponent","useWidgetNodeContext","toRef","shellProps","buildWidgetNodeShellProps","_createBlock","_resolveDynamicComponent","_unref","_normalizeProps","_guardReactiveProps","_createSlots","_a","_openBlock","_createElementBlock","_Fragment","child","childIndex","RuntimeWidgetNode","_withCtx","item","itemIndex","visible","materialRegistry","createMaterialRegistry","runtimeMaterialDefinitions","provide","MATERIAL_REGISTRY_KEY","normalizedPage","computed","normalizeLoadedPage","instance","getCurrentInstance","registerRuntimeWidgetViews","lifecycleRuntime","useLifecycle","LIFECYCLE_KEY","themeToken","resolveLowcodeThemeTokens","themeStyle","buildLowcodeThemeCssVariableStyle","LOWCODE_THEME_TOKEN_KEY","viewportWidth","useWindowSize","provideLowcodeViewportWidth","_createVNode"],"mappings":";;;;;;;;;;;;;;;AAQA,UAAMA,IAAQC,GAMR,EAAE,cAAAC,GAAc,eAAAC,EAAA,IAAkBC,EAAqBC,EAAML,GAAO,QAAQ,CAAC,GAC7EM,IAAaC,EAA0BP,EAAM,QAAQA,EAAM,cAAcA,EAAM,KAAK;2BAIxFQ,EAQYC,EARIC,EAAAP,CAAA,CAAa,GAAAQ,EAAAC,EAAUF,EAAAJ,CAAA,CAAU,CAAA,GAAAO,EAAA;AAAA,iBAC/C,MAAA;;AAEW;AAAA,UAFM,CAAAH,EAAAR,CAAA,OAAgBY,IAAAb,EAAA,OAAO,aAAP,QAAAa,EAAiB,WAChDC,EAAA,EAAA,GAAAC,EAAgJC,iBAA/FhB,EAAA,OAAO,UAAQ,CAArCiB,GAAOC,YAAlCX,EAAgJY,GAAA;AAAA,YAA7E,KAAKF,EAAM;AAAA,YAAK,QAAQA;AAAA,YAAQ,iBAAejB,EAAA;AAAA,YAAS,OAAOkB;AAAA,UAAA;;;;;MAGpHT,EAAAR,CAAA;cAAe;AAAA,QAC7B,IAAAmB,EAAA,CAAwG,EADnE,MAAAC,GAAI,OAASC,GAAW,SAAAC,QAAO;AAAA,UAC3CA,MAAO,WAAhChB,EAAwGY,GAAA;AAAA;YAA3D,QAAQE;AAAA,YAAO,iBAAerB,EAAA;AAAA,YAAS,OAAOsB;AAAA,UAAA;;;;;;;;;;;;;;;;ACNjG,UAAMvB,IAAQC,GAERwB,IAAmBC,EAAuB1B,EAAM,eAAe2B,CAA0B;AAC/F,IAAAC,EAAQC,GAAuBJ,CAAgB;AAE/C,UAAMK,IAAiBC,EAAS,MAAMC,EAAoBhC,EAAM,MAAMyB,EAAiB,iBAAiB,CAAC,GAEnGQ,IAAWC,EAAA;AACjB,IAAID,KACFE,EAA2BF,EAAS,WAAW,KAAKR,CAAgB;AAGtE,UAAMW,IAAmBC,EAAa;AAAA,MACpC,MAAM,MAAMP,EAAe;AAAA,MAC3B,YAAY,MAAM;AAAA,IAAA,CACnB;AACD,IAAAF,EAAQU,GAAeF,CAAgB;AAEvC,UAAMG,IAAaR,EAAS,MAAMS,EAA0BxC,EAAM,KAAK,CAAC,GAClEyC,IAAaV,EAAS,MAAMW,EAAkCH,EAAW,KAAK,CAAC;AAErF,IAAAX,EAAQe,GAAyBJ,CAAU;AAE3C,UAAM,EAAE,OAAOK,EAAA,IAAkBC,EAAc,EAAE,cAAc,GAAG;AAClE,WAAAC,EAA4BF,CAAa,mBAIvC5B,EAKM,OAAA;AAAA,MAJJ,OAAM;AAAA,MACL,SAAOyB,EAAA,KAAU;AAAA,IAAA;MAElBM,EAA8C3B,GAAA,EAA1B,QAAQU,EAAA,MAAA,GAAc,MAAA,GAAA,CAAA,QAAA,CAAA;AAAA,IAAA;;;"}
|