x-runtime-lib 0.9.28 → 0.9.30
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/components/element/ui/card/v1/index.vue.d.ts +4 -4
- package/dist/components/element/ui/expansionPanel/v1/index.vue.d.ts +18 -0
- package/dist/components/element/ui/expansionPanels/v1/index.vue.d.ts +14 -0
- package/dist/components/element/ui/tooltip/v1/index.vue.d.ts +2 -2
- package/dist/{i18n-en.hv63466o.js → i18n-en.guhc0a0t.js} +6 -0
- package/dist/{i18n-zhHans.k3uetyc5.js → i18n-zhHans.gnwfze9y.js} +6 -0
- package/dist/index.d.ts +977 -6
- package/dist/index.js +1940 -1574
- package/dist/{vendor.kfdhvame.js → vendor.iw8atjcp.js} +19548 -19536
- package/package.json +3 -1
- package/dist/api/computebase/index.d.ts +0 -11
- package/dist/api/computebase/instance.d.ts +0 -3
- package/dist/components/editor/index.d.ts +0 -3
- package/dist/components/element/3d/camera/index.d.ts +0 -3
- package/dist/components/element/3d/controls/index.d.ts +0 -4
- package/dist/components/element/3d/geometry/index.d.ts +0 -7
- package/dist/components/element/3d/index.d.ts +0 -6
- package/dist/components/element/3d/light/index.d.ts +0 -5
- package/dist/components/element/3d/material/index.d.ts +0 -3
- package/dist/components/element/3d/object/index.d.ts +0 -3
- package/dist/components/element/chart/index.d.ts +0 -3
- package/dist/components/element/dynamic/index.d.ts +0 -7
- package/dist/components/element/dynamic/internal/scene/index.d.ts +0 -2
- package/dist/components/element/index.d.ts +0 -4
- package/dist/components/element/ui/index.d.ts +0 -65
- package/dist/composables/common/index.d.ts +0 -1
- package/dist/composables/common/syncRef/index.d.ts +0 -2
- package/dist/composables/element/core/activator.d.ts +0 -3
- package/dist/composables/element/core/breakpoint.d.ts +0 -3
- package/dist/composables/element/core/delayAttach.d.ts +0 -3
- package/dist/composables/element/core/elementBase.d.ts +0 -38
- package/dist/composables/element/core/elementDebug.d.ts +0 -5
- package/dist/composables/element/core/elementMethod.d.ts +0 -10
- package/dist/composables/element/core/elementProperty.d.ts +0 -5
- package/dist/composables/element/core/elementPropertyBreakpoint.d.ts +0 -5
- package/dist/composables/element/core/elementPropertyColor.d.ts +0 -5
- package/dist/composables/element/core/elementPropertyEager.d.ts +0 -5
- package/dist/composables/element/core/elementPropertyRuntime.d.ts +0 -3
- package/dist/composables/element/core/elementSlotMethod.d.ts +0 -12
- package/dist/composables/element/core/elementSlotProperty.d.ts +0 -3
- package/dist/composables/element/core/elementSlotRender.d.ts +0 -7
- package/dist/composables/element/core/index.d.ts +0 -14
- package/dist/composables/element/index.d.ts +0 -2
- package/dist/composables/element/piece/3d/transform/v1/index.d.ts +0 -7
- package/dist/composables/element/piece/chart/legend/v1/index.d.ts +0 -8
- package/dist/composables/element/piece/chart/series/v1/index.d.ts +0 -7
- package/dist/composables/element/piece/chart/title/v1/index.d.ts +0 -9
- package/dist/composables/element/piece/chart/xAxis/v1/index.d.ts +0 -10
- package/dist/composables/element/piece/chart/yAxis/v1/index.d.ts +0 -10
- package/dist/composables/element/piece/index.d.ts +0 -10
- package/dist/composables/element/piece/ui/border/v1/index.d.ts +0 -5
- package/dist/composables/element/piece/ui/margin/v1/index.d.ts +0 -9
- package/dist/composables/element/piece/ui/padding/v1/index.d.ts +0 -9
- package/dist/composables/element/piece/ui/size/v1/index.d.ts +0 -11
- package/dist/composables/runtime/color.d.ts +0 -4
- package/dist/composables/runtime/depend.d.ts +0 -3
- package/dist/composables/runtime/index.d.ts +0 -5
- package/dist/composables/runtime/runtime.d.ts +0 -4
- package/dist/composables/runtime/sandbox.d.ts +0 -8
- package/dist/composables/runtime/theme.d.ts +0 -3
- package/dist/echarts/index.d.ts +0 -6
- package/dist/element/3d/camera/index.d.ts +0 -2
- package/dist/element/3d/camera/orthographicCamera/v1/index.d.ts +0 -1
- package/dist/element/3d/camera/orthographicCamera/v1/spawn.d.ts +0 -2
- package/dist/element/3d/camera/perspectiveCamera/v1/index.d.ts +0 -1
- package/dist/element/3d/camera/perspectiveCamera/v1/spawn.d.ts +0 -2
- package/dist/element/3d/controls/index.d.ts +0 -3
- package/dist/element/3d/controls/keyboardControls/v1/index.d.ts +0 -1
- package/dist/element/3d/controls/keyboardControls/v1/spawn.d.ts +0 -2
- package/dist/element/3d/controls/mapControls/v1/index.d.ts +0 -1
- package/dist/element/3d/controls/mapControls/v1/spawn.d.ts +0 -2
- package/dist/element/3d/controls/orbitControls/v1/index.d.ts +0 -1
- package/dist/element/3d/controls/orbitControls/v1/spawn.d.ts +0 -2
- package/dist/element/3d/geometry/boxGeometry/v1/index.d.ts +0 -1
- package/dist/element/3d/geometry/boxGeometry/v1/spawn.d.ts +0 -2
- package/dist/element/3d/geometry/index.d.ts +0 -2
- package/dist/element/3d/geometry/sphereGeometry/v1/index.d.ts +0 -1
- package/dist/element/3d/geometry/sphereGeometry/v1/spawn.d.ts +0 -2
- package/dist/element/3d/index.d.ts +0 -6
- package/dist/element/3d/light/ambientLight/v1/index.d.ts +0 -1
- package/dist/element/3d/light/ambientLight/v1/spawn.d.ts +0 -2
- package/dist/element/3d/light/directionalLight/v1/index.d.ts +0 -1
- package/dist/element/3d/light/directionalLight/v1/spawn.d.ts +0 -2
- package/dist/element/3d/light/index.d.ts +0 -4
- package/dist/element/3d/light/pointLight/v1/index.d.ts +0 -1
- package/dist/element/3d/light/pointLight/v1/spawn.d.ts +0 -2
- package/dist/element/3d/light/spotLight/v1/index.d.ts +0 -1
- package/dist/element/3d/light/spotLight/v1/spawn.d.ts +0 -2
- package/dist/element/3d/material/index.d.ts +0 -1
- package/dist/element/3d/material/meshBasicMaterial/v1/index.d.ts +0 -1
- package/dist/element/3d/object/group/v1/index.d.ts +0 -1
- package/dist/element/3d/object/group/v1/spawn.d.ts +0 -2
- package/dist/element/3d/object/index.d.ts +0 -2
- package/dist/element/3d/object/mesh/v1/index.d.ts +0 -1
- package/dist/element/3d/object/mesh/v1/spawn.d.ts +0 -2
- package/dist/element/_common/index.d.ts +0 -3
- package/dist/element/_common/items/alignTabsItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/axisTypeItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/borderStyleItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/densityItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/directionItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/fieldVariantItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/flexCrossAlignItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/flexDirectionItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/flexMainAlignItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/flexWrapItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/fontWeightItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/index.d.ts +0 -25
- package/dist/element/_common/items/positionItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/sheetVariantItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/showTicksItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/sizeItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/speedDialOpenWayItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/textAlignItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/textDecorationItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/textEmphasisItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/textSizeItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/thumbLabelItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/timelineAlignItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/timelineDirectionItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/timelineSideItems/v1/index.d.ts +0 -1
- package/dist/element/_common/items/timelineTruncateLineItems/v1/index.d.ts +0 -1
- package/dist/element/_common/props/basic/v1/index.d.ts +0 -2
- package/dist/element/_common/props/border/v1/index.d.ts +0 -2
- package/dist/element/_common/props/index.d.ts +0 -10
- package/dist/element/_common/props/legend/v1/index.d.ts +0 -2
- package/dist/element/_common/props/margin/v1/index.d.ts +0 -2
- package/dist/element/_common/props/padding/v1/index.d.ts +0 -2
- package/dist/element/_common/props/size/v1/index.d.ts +0 -2
- package/dist/element/_common/props/title/v1/index.d.ts +0 -2
- package/dist/element/_common/props/transform/v1/index.d.ts +0 -2
- package/dist/element/_common/props/xAxis/v1/index.d.ts +0 -2
- package/dist/element/_common/props/yAxis/v1/index.d.ts +0 -2
- package/dist/element/_common/types/borderRadiusTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/borderWidthTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/colorTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/index.d.ts +0 -9
- package/dist/element/_common/types/leftRightTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/marginTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/paddingTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/sizeTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/tableColumnAlignTypes/v1/index.d.ts +0 -1
- package/dist/element/_common/types/topBottomTypes/v1/index.d.ts +0 -1
- package/dist/element/_pkgs/index.d.ts +0 -2
- package/dist/element/_pkgs/v1/groups/comp3d.d.ts +0 -2
- package/dist/element/_pkgs/v1/groups/compUi.d.ts +0 -2
- package/dist/element/_pkgs/v1/groups/index.d.ts +0 -4
- package/dist/element/_pkgs/v1/groups/page3d.d.ts +0 -2
- package/dist/element/_pkgs/v1/groups/pageUi.d.ts +0 -2
- package/dist/element/_pkgs/v1/index.d.ts +0 -3
- package/dist/element/_pkgs/v1/items.d.ts +0 -1
- package/dist/element/_pkgs/v1/types.d.ts +0 -1
- package/dist/element/chart/barChart/v1/index.d.ts +0 -1
- package/dist/element/chart/barChart/v1/spawn.d.ts +0 -2
- package/dist/element/chart/index.d.ts +0 -2
- package/dist/element/chart/lineChart/v1/index.d.ts +0 -1
- package/dist/element/chart/lineChart/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/index.d.ts +0 -6
- package/dist/element/dynamic/inlineSlot/v1/index.d.ts +0 -1
- package/dist/element/dynamic/inlineSlot/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/multipleRef/v1/index.d.ts +0 -1
- package/dist/element/dynamic/multipleRef/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/multipleSlot/v1/index.d.ts +0 -1
- package/dist/element/dynamic/multipleSlot/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/ref/v1/index.d.ts +0 -1
- package/dist/element/dynamic/ref/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/renderSwitch/v1/index.d.ts +0 -1
- package/dist/element/dynamic/renderSwitch/v1/spawn.d.ts +0 -2
- package/dist/element/dynamic/slot/v1/index.d.ts +0 -1
- package/dist/element/dynamic/slot/v1/spawn.d.ts +0 -2
- package/dist/element/finalProperties.d.ts +0 -13
- package/dist/element/index.d.ts +0 -8
- package/dist/element/misc/globality/v1/index.d.ts +0 -1
- package/dist/element/misc/index.d.ts +0 -1
- package/dist/element/ui/activator/v1/index.d.ts +0 -1
- package/dist/element/ui/badge/v1/index.d.ts +0 -1
- package/dist/element/ui/badge/v1/spawn.d.ts +0 -2
- package/dist/element/ui/breadcrumbs/v1/index.d.ts +0 -1
- package/dist/element/ui/breadcrumbs/v1/spawn.d.ts +0 -2
- package/dist/element/ui/btn/v1/index.d.ts +0 -1
- package/dist/element/ui/btn/v1/spawn.d.ts +0 -2
- package/dist/element/ui/btnToggle/v1/index.d.ts +0 -1
- package/dist/element/ui/btnToggle/v1/spawn.d.ts +0 -2
- package/dist/element/ui/card/v1/index.d.ts +0 -1
- package/dist/element/ui/card/v1/spawn.d.ts +0 -2
- package/dist/element/ui/checkbox/v1/index.d.ts +0 -1
- package/dist/element/ui/checkbox/v1/spawn.d.ts +0 -2
- package/dist/element/ui/chip/v1/index.d.ts +0 -1
- package/dist/element/ui/chip/v1/spawn.d.ts +0 -2
- package/dist/element/ui/chipGroup/v1/index.d.ts +0 -1
- package/dist/element/ui/chipGroup/v1/spawn.d.ts +0 -2
- package/dist/element/ui/colorPicker/v1/index.d.ts +0 -1
- package/dist/element/ui/combobox/v1/index.d.ts +0 -1
- package/dist/element/ui/combobox/v1/spawn.d.ts +0 -2
- package/dist/element/ui/container/v1/index.d.ts +0 -1
- package/dist/element/ui/container/v1/spawn.d.ts +0 -2
- package/dist/element/ui/dataTableClient/v1/index.d.ts +0 -1
- package/dist/element/ui/dataTableClient/v1/spawn.d.ts +0 -2
- package/dist/element/ui/dataTableServer/v1/index.d.ts +0 -1
- package/dist/element/ui/dataTableServer/v1/spawn.d.ts +0 -2
- package/dist/element/ui/datePicker/v1/index.d.ts +0 -1
- package/dist/element/ui/dialog/v1/index.d.ts +0 -1
- package/dist/element/ui/dialog/v1/spawn1.d.ts +0 -2
- package/dist/element/ui/dialog/v1/spawn2.d.ts +0 -2
- package/dist/element/ui/fab/v1/index.d.ts +0 -1
- package/dist/element/ui/fab/v1/spawn.d.ts +0 -2
- package/dist/element/ui/fileInput/v1/index.d.ts +0 -1
- package/dist/element/ui/fileInput/v1/spawn.d.ts +0 -2
- package/dist/element/ui/flexbox/v1/index.d.ts +0 -1
- package/dist/element/ui/flexbox/v1/spawn.d.ts +0 -2
- package/dist/element/ui/flexboxEntry/v1/index.d.ts +0 -1
- package/dist/element/ui/flexboxEntry/v1/meta.d.ts +0 -1
- package/dist/element/ui/form/v1/index.d.ts +0 -1
- package/dist/element/ui/form/v1/spawn.d.ts +0 -2
- package/dist/element/ui/hover/v1/index.d.ts +0 -1
- package/dist/element/ui/hover/v1/spawn.d.ts +0 -2
- package/dist/element/ui/icon/v1/index.d.ts +0 -1
- package/dist/element/ui/icon/v1/spawn.d.ts +0 -2
- package/dist/element/ui/index.d.ts +0 -64
- package/dist/element/ui/item/v1/index.d.ts +0 -1
- package/dist/element/ui/itemGroup/v1/index.d.ts +0 -1
- package/dist/element/ui/itemGroup/v1/spawn.d.ts +0 -2
- package/dist/element/ui/list/v1/index.d.ts +0 -1
- package/dist/element/ui/list/v1/spawn.d.ts +0 -2
- package/dist/element/ui/listItem/v1/index.d.ts +0 -1
- package/dist/element/ui/menu/v1/index.d.ts +0 -1
- package/dist/element/ui/menu/v1/spawn.d.ts +0 -2
- package/dist/element/ui/numberInput/v1/index.d.ts +0 -1
- package/dist/element/ui/numberInput/v1/spawn.d.ts +0 -2
- package/dist/element/ui/optInput/v1/index.d.ts +0 -1
- package/dist/element/ui/optInput/v1/spawn.d.ts +0 -2
- package/dist/element/ui/pagination/v1/index.d.ts +0 -1
- package/dist/element/ui/pagination/v1/spawn.d.ts +0 -2
- package/dist/element/ui/positioner/v1/index.d.ts +0 -1
- package/dist/element/ui/positioner/v1/spawn.d.ts +0 -2
- package/dist/element/ui/radio/v1/index.d.ts +0 -1
- package/dist/element/ui/radioGroup/v1/index.d.ts +0 -1
- package/dist/element/ui/radioGroup/v1/spawn.d.ts +0 -2
- package/dist/element/ui/rangeSlider/v1/index.d.ts +0 -1
- package/dist/element/ui/rangeSlider/v1/spawn.d.ts +0 -2
- package/dist/element/ui/rating/v1/index.d.ts +0 -1
- package/dist/element/ui/rating/v1/spawn.d.ts +0 -2
- package/dist/element/ui/select/v1/index.d.ts +0 -1
- package/dist/element/ui/select/v1/spawn.d.ts +0 -2
- package/dist/element/ui/sheet/v1/index.d.ts +0 -1
- package/dist/element/ui/sheet/v1/spawn.d.ts +0 -2
- package/dist/element/ui/slideGroup/v1/index.d.ts +0 -1
- package/dist/element/ui/slideGroup/v1/spawn.d.ts +0 -2
- package/dist/element/ui/slideGroupItem/v1/index.d.ts +0 -1
- package/dist/element/ui/slider/v1/index.d.ts +0 -1
- package/dist/element/ui/slider/v1/spawn.d.ts +0 -2
- package/dist/element/ui/speedDial/v1/index.d.ts +0 -1
- package/dist/element/ui/speedDial/v1/spawn.d.ts +0 -2
- package/dist/element/ui/stepper/v1/index.d.ts +0 -1
- package/dist/element/ui/stepper/v1/spawn.d.ts +0 -2
- package/dist/element/ui/stepperHeader/v1/index.d.ts +0 -1
- package/dist/element/ui/stepperItem/v1/index.d.ts +0 -1
- package/dist/element/ui/stepperWindow/v1/index.d.ts +0 -1
- package/dist/element/ui/stepperWindowItem/v1/index.d.ts +0 -1
- package/dist/element/ui/switch/v1/index.d.ts +0 -1
- package/dist/element/ui/switch/v1/spawn.d.ts +0 -2
- package/dist/element/ui/tab/v1/index.d.ts +0 -1
- package/dist/element/ui/table/v1/index.d.ts +0 -1
- package/dist/element/ui/table/v1/spawn.d.ts +0 -2
- package/dist/element/ui/tableBody/v1/index.d.ts +0 -1
- package/dist/element/ui/tableBodyCell/v1/index.d.ts +0 -1
- package/dist/element/ui/tableHead/v1/index.d.ts +0 -1
- package/dist/element/ui/tableHeadCell/v1/index.d.ts +0 -1
- package/dist/element/ui/tableRow/v1/index.d.ts +0 -1
- package/dist/element/ui/tabs/v1/index.d.ts +0 -1
- package/dist/element/ui/tabs/v1/spawn.d.ts +0 -2
- package/dist/element/ui/text/v1/index.d.ts +0 -1
- package/dist/element/ui/text/v1/spawn.d.ts +0 -2
- package/dist/element/ui/textField/v1/index.d.ts +0 -1
- package/dist/element/ui/textField/v1/spawn.d.ts +0 -2
- package/dist/element/ui/textarea/v1/index.d.ts +0 -1
- package/dist/element/ui/textarea/v1/spawn.d.ts +0 -2
- package/dist/element/ui/timeline/v1/index.d.ts +0 -1
- package/dist/element/ui/timeline/v1/spawn.d.ts +0 -2
- package/dist/element/ui/timelineItem/v1/index.d.ts +0 -1
- package/dist/element/ui/tooltip/v1/index.d.ts +0 -1
- package/dist/element/ui/tooltip/v1/spawn.d.ts +0 -2
- package/dist/element/ui/window/v1/index.d.ts +0 -1
- package/dist/element/ui/window/v1/spawn.d.ts +0 -2
- package/dist/element/ui/windowItem/v1/index.d.ts +0 -1
- package/dist/meta/base.d.ts +0 -6
- package/dist/meta/element.d.ts +0 -106
- package/dist/meta/index.d.ts +0 -6
- package/dist/meta/items.d.ts +0 -8
- package/dist/meta/pkg.d.ts +0 -21
- package/dist/meta/property.d.ts +0 -108
- package/dist/meta/types.d.ts +0 -39
- package/dist/sandbox/bind/base.d.ts +0 -2
- package/dist/sandbox/bind/compute.d.ts +0 -2
- package/dist/sandbox/bind/index.d.ts +0 -2
- package/dist/sandbox/bind/system.d.ts +0 -2
- package/dist/sandbox/bind/view.d.ts +0 -2
- package/dist/sandbox/common/index.d.ts +0 -31
- package/dist/sandbox/index.d.ts +0 -3
- package/dist/sandbox/reactivity/index.d.ts +0 -4
- package/dist/sandbox/sandbox/hooks.d.ts +0 -6
- package/dist/sandbox/sandbox/index.d.ts +0 -116
- package/dist/sandbox/sandbox/initCode.d.ts +0 -1
- package/dist/sandbox/sandbox/promiseManager.d.ts +0 -13
- package/dist/types/basic.d.ts +0 -13
- package/dist/types/block.d.ts +0 -30
- package/dist/types/data.d.ts +0 -62
- package/dist/types/depend.d.ts +0 -12
- package/dist/types/index.d.ts +0 -7
- package/dist/types/kind.d.ts +0 -6
- package/dist/types/meta.d.ts +0 -39
- package/dist/types/runtimeProperties.d.ts +0 -5
- package/dist/utils/breakpoint.d.ts +0 -11
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/misc.d.ts +0 -17
- package/dist/utils/name.d.ts +0 -4
- package/dist/utils/node.d.ts +0 -10
- package/dist/utils/property.d.ts +0 -5
- package/dist/utils/provideInject.d.ts +0 -43
- package/dist/utils/render.d.ts +0 -11
- package/dist/utils/sandbox.d.ts +0 -2
- package/dist/utils/unifiedId.d.ts +0 -66
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { QuickJSContext } from 'quickjs-emscripten';
|
|
2
|
-
export declare const errors: {
|
|
3
|
-
functionNotAvailable: Error;
|
|
4
|
-
instanceNotAvailable: Error;
|
|
5
|
-
invalidCustomEvent: Error;
|
|
6
|
-
invalidCustomMethod: Error;
|
|
7
|
-
invalidCustomProperty: Error;
|
|
8
|
-
invalidCustomSlotEvent: Error;
|
|
9
|
-
invalidCustomSlotMethod: Error;
|
|
10
|
-
invalidCustomSlotProperty: Error;
|
|
11
|
-
invalidElementEvent: Error;
|
|
12
|
-
invalidElementMethod: Error;
|
|
13
|
-
invalidElementProperty: Error;
|
|
14
|
-
invalidElementSlotEvent: Error;
|
|
15
|
-
invalidElementSlotMethod: Error;
|
|
16
|
-
invalidElementSlotProperty: Error;
|
|
17
|
-
invalidState: Error;
|
|
18
|
-
nodeNotFound: Error;
|
|
19
|
-
notInSlot: Error;
|
|
20
|
-
sandboxNotFound: Error;
|
|
21
|
-
slotIncompatible: Error;
|
|
22
|
-
vmNotAvailable: Error;
|
|
23
|
-
};
|
|
24
|
-
export type InitValues = {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
};
|
|
27
|
-
export interface Inputs {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}
|
|
30
|
-
export declare function newAny(vm: QuickJSContext, value: any): import("quickjs-emscripten").QuickJSHandle;
|
|
31
|
-
export declare function makeFuncInfo(funcName: string, ...params: any[]): string;
|
package/dist/sandbox/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Sandbox } from '@/sandbox';
|
|
2
|
-
import { Reactivity } from '@/types';
|
|
3
|
-
export declare function initReactivity(sandbox: Sandbox, reactivity: Reactivity): Promise<void>;
|
|
4
|
-
export declare function triggerReactivity(sandbox: Sandbox, reactivity: Reactivity, triggerId: string): Promise<void>;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { QuickJSContext, QuickJSRuntime } from 'quickjs-emscripten';
|
|
2
|
-
import { Reactive, Ref, ShallowRef } from 'vue';
|
|
3
|
-
import { Data, Depends, Env, Meta, Mode, Node, RuntimeProperties, SandboxKind } from '@/types';
|
|
4
|
-
import { InitValues, Inputs } from '../common';
|
|
5
|
-
import { Hooks } from './hooks';
|
|
6
|
-
import { PromiseManager } from './promiseManager';
|
|
7
|
-
export declare class Sandbox {
|
|
8
|
-
kind: SandboxKind;
|
|
9
|
-
nodeId: string;
|
|
10
|
-
slotId: string;
|
|
11
|
-
instance: string;
|
|
12
|
-
parent: Sandbox | undefined;
|
|
13
|
-
children: {
|
|
14
|
-
[key: string]: Sandbox;
|
|
15
|
-
};
|
|
16
|
-
org: string;
|
|
17
|
-
env: Env;
|
|
18
|
-
mode: Mode;
|
|
19
|
-
type: 'page' | 'comp';
|
|
20
|
-
eventBus: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
|
|
21
|
-
hooks: Hooks;
|
|
22
|
-
vm: QuickJSContext | undefined;
|
|
23
|
-
promiseManager: PromiseManager | undefined;
|
|
24
|
-
constructor(kind: SandboxKind, nodeId: string, slotId: string, instance: string, parent: Sandbox | undefined, org: string, env: Env, mode: Mode, type: 'page' | 'comp', hooks: Hooks);
|
|
25
|
-
dispose(): void;
|
|
26
|
-
debugTrace(...data: any[]): void;
|
|
27
|
-
private addChild;
|
|
28
|
-
private removeChild;
|
|
29
|
-
private meta;
|
|
30
|
-
private data;
|
|
31
|
-
private runtimeProperties;
|
|
32
|
-
private depends;
|
|
33
|
-
prepare(meta: Ref<Meta | undefined>, data: Ref<Data | undefined>, runtimeProperties: Reactive<RuntimeProperties>, depends: ShallowRef<Depends | undefined>, initValues?: InitValues): void;
|
|
34
|
-
createVm(runtime: QuickJSRuntime, code: string): Promise<void>;
|
|
35
|
-
destroyVm(): void;
|
|
36
|
-
setGlobalVariable(key: string, value: any): void;
|
|
37
|
-
getGlobalVariable(key: string): any;
|
|
38
|
-
evalCode(code: string): void;
|
|
39
|
-
callFunctionSync(funcName: string, ...params: any[]): any;
|
|
40
|
-
callFunctionAsync(funcName: string, ...params: any[]): Promise<any>;
|
|
41
|
-
getNode(nodeId: string): Node | undefined;
|
|
42
|
-
isEqualOfElementSlot(elementKey: string, slotKey: string): boolean;
|
|
43
|
-
isEqualOfCustomSlot(compId: string, slotId: string): boolean;
|
|
44
|
-
customProperties: {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
};
|
|
47
|
-
customSlotProperties: {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
private resetCustomProperties;
|
|
51
|
-
private resetCustomSlotProperties;
|
|
52
|
-
private getMetaOfElementProperty;
|
|
53
|
-
private isValidOfElementProperty;
|
|
54
|
-
private isValidOfElementSlotProperty;
|
|
55
|
-
private isValidOfCustomProperty;
|
|
56
|
-
private isValidOfCustomSlotProperty;
|
|
57
|
-
getProperty(id: string, instance?: string): any;
|
|
58
|
-
private getElementProperty;
|
|
59
|
-
private getRefProperty;
|
|
60
|
-
private getMultipleRefProperty;
|
|
61
|
-
private getCustomSlotProperty;
|
|
62
|
-
private getMultipleCustomSlotProperty;
|
|
63
|
-
private getCustomProperty;
|
|
64
|
-
private getElementAdaptSlotProperty;
|
|
65
|
-
private getCustomAdaptSlotProperty;
|
|
66
|
-
setProperty(id: string, newValue: any, instance?: string): Promise<void>;
|
|
67
|
-
private setElementProperty;
|
|
68
|
-
private setRefProperty;
|
|
69
|
-
private setMultipleRefProperty;
|
|
70
|
-
private setCustomSlotProperty;
|
|
71
|
-
private setMultipleCustomSlotProperty;
|
|
72
|
-
private setCustomProperty;
|
|
73
|
-
private setElementAdaptSlotProperty;
|
|
74
|
-
private setCustomAdaptSlotProperty;
|
|
75
|
-
isValidOfElementMethod(elementKey: string, methodKey: string): boolean;
|
|
76
|
-
isValidOfElementSlotMethod(elementKey: string, slotKey: string, methodKey: string): boolean;
|
|
77
|
-
isValidOfCustomMethod(methodId: string): boolean;
|
|
78
|
-
isValidOfCustomSlotMethod(compId: string, slotId: string, methodId: string): boolean;
|
|
79
|
-
callMethod(id: string, instance: string, inputs: Inputs): Promise<any>;
|
|
80
|
-
private callElementMethod;
|
|
81
|
-
private callRefMethod;
|
|
82
|
-
private callMultipleRefMethod;
|
|
83
|
-
private callElementAdaptSlotMethod;
|
|
84
|
-
private callCustomAdaptSlotMethod;
|
|
85
|
-
isValidOfElementEvent(elementKey: string, eventKey: string): boolean;
|
|
86
|
-
isValidOfElementSlotEvent(elementKey: string, slotKey: string, eventKey: string): boolean;
|
|
87
|
-
isValidOfCustomEvent(eventId: string): boolean;
|
|
88
|
-
isValidOfCustomSlotEvent(compId: string, slotId: string, eventId: string): boolean;
|
|
89
|
-
triggerEvent(id: string, params: any[], instance?: string): Promise<void>;
|
|
90
|
-
private triggerElementEvent;
|
|
91
|
-
private triggerElementPropertyChangeEvent;
|
|
92
|
-
private triggerElementSlotEvent;
|
|
93
|
-
private triggerElementSlotPropertyChangeEvent;
|
|
94
|
-
private triggerMultipleElementSlotEvent;
|
|
95
|
-
private triggerMultipleElementSlotPropertyChangeEvent;
|
|
96
|
-
private triggerRefEvent;
|
|
97
|
-
private triggerRefPropertyChangeEvent;
|
|
98
|
-
private triggerMultipleRefEvent;
|
|
99
|
-
private triggerMultipleRefPropertyChangeEvent;
|
|
100
|
-
private triggerCustomSlotEvent;
|
|
101
|
-
private triggerCustomSlotPropertyChangeEvent;
|
|
102
|
-
private triggerMultipleCustomSlotEvent;
|
|
103
|
-
private triggerMultipleCustomSlotPropertyChangeEvent;
|
|
104
|
-
private triggerCustomEvent;
|
|
105
|
-
private triggerCustomPropertyChangeEvent;
|
|
106
|
-
private triggerElementAdaptSlotEvent;
|
|
107
|
-
private triggerElementAdaptSlotPropertyChangeEvent;
|
|
108
|
-
private triggerCustomAdaptSlotEvent;
|
|
109
|
-
private triggerCustomAdaptSlotPropertyChangeEvent;
|
|
110
|
-
private triggerStateChangeEvent;
|
|
111
|
-
private states;
|
|
112
|
-
private resetStates;
|
|
113
|
-
isValidOfState(id: string): boolean;
|
|
114
|
-
getState(id: string): Promise<any>;
|
|
115
|
-
setState(id: string, newValue: any): Promise<void>;
|
|
116
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initCode = "\nlet __events__ = {}\n\nfunction __onEventV1__(id, callback) {\n if (typeof(id) !== 'string' || !id) {\n return\n }\n if (typeof(callback) !== 'function') {\n return\n }\n if (!__events__[id]) {\n __events__[id] = []\n }\n const callbacks = __events__[id]\n for (let i = 0; i < callbacks.length; i++) {\n if (callbacks[i] === callback) {\n return\n }\n }\n callbacks.push(callback)\n}\n\nasync function __triggerEventInner__(id, params, instance) {\n if (!__events__[id]) {\n return\n }\n const callbacks = __events__[id]\n if (!callbacks) {\n return\n }\n for (let i = 0; i < callbacks.length; i++) {\n await callbacks[i](params, instance)\n }\n}\n\nlet __timers__ = {}\nlet __currTimerId__ = 0\n\nfunction __createTimerV1__(interval, loop, count, immediate, callback) {\n if (!loop && count <= 0) {\n return\n }\n const timer = {}\n timer.id = __currTimerId__++\n timer.interval = interval\n timer.loop = loop\n timer.count = count\n timer.immediate = immediate\n timer.callback = callback\n __timers__[timer.id] = timer\n if (timer.immediate) {\n __timeoutCallbackV1__(timer.id)\n } else {\n __timeoutV1__(timer.id, timer.interval)\n }\n}\n\nasync function __timeoutCallback__(timerId) {\n const timer = __timers__[timerId]\n if (timer) {\n timer.callback()\n // \u4FEE\u6539\u8BA1\u6570\n if (!timer.loop) {\n timer.count = timer.count - 1\n }\n // \u89E6\u53D1\u8D85\u65F6\n if (timer.loop || timer.count > 0) {\n await __timeoutV1__(timer.id, timer.interval)\n }\n // \u56DE\u6536\n if (!timer.loop && timer.count <= 0) {\n delete __timers__[timer.id]\n }\n }\n}\n\nfunction __destroy__() {\n __events__ = {}\n __timers__ = {}\n}\n";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { QuickJSContext, QuickJSDeferredPromise } from 'quickjs-emscripten';
|
|
2
|
-
export declare class PromiseManager {
|
|
3
|
-
private vm;
|
|
4
|
-
private promises;
|
|
5
|
-
private currPromiseId;
|
|
6
|
-
constructor(vm: QuickJSContext);
|
|
7
|
-
dispose(): void;
|
|
8
|
-
create(): {
|
|
9
|
-
promise: QuickJSDeferredPromise;
|
|
10
|
-
resolve: (value: any) => void;
|
|
11
|
-
reject: (reason: any) => void;
|
|
12
|
-
};
|
|
13
|
-
}
|
package/dist/types/basic.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type Env = 'dev' | 'prod';
|
|
2
|
-
export type Mode = 'runtime' | 'preview' | 'editor';
|
|
3
|
-
export declare function isExecutableMode(mode: Mode): mode is "runtime" | "preview";
|
|
4
|
-
export interface RefContext {
|
|
5
|
-
parent?: RefContext;
|
|
6
|
-
compId: string | undefined;
|
|
7
|
-
}
|
|
8
|
-
export declare function isCircularReference(refContext: RefContext, id: string): boolean;
|
|
9
|
-
export interface ElementProps {
|
|
10
|
-
nodeId: string;
|
|
11
|
-
outer?: boolean;
|
|
12
|
-
refContext?: RefContext;
|
|
13
|
-
}
|
package/dist/types/block.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
interface ConnectionState {
|
|
2
|
-
shadow?: BlockState;
|
|
3
|
-
block?: BlockState;
|
|
4
|
-
}
|
|
5
|
-
export interface BlockState {
|
|
6
|
-
type: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
x?: number;
|
|
9
|
-
y?: number;
|
|
10
|
-
collapsed?: boolean;
|
|
11
|
-
deletable?: boolean;
|
|
12
|
-
movable?: boolean;
|
|
13
|
-
editable?: boolean;
|
|
14
|
-
enabled?: boolean;
|
|
15
|
-
disabledReasons?: string[];
|
|
16
|
-
inline?: boolean;
|
|
17
|
-
data?: string;
|
|
18
|
-
extraState?: any;
|
|
19
|
-
icons?: {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
};
|
|
22
|
-
fields?: {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
};
|
|
25
|
-
inputs?: {
|
|
26
|
-
[key: string]: ConnectionState;
|
|
27
|
-
};
|
|
28
|
-
next?: ConnectionState;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
package/dist/types/data.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export type NodeLite = {
|
|
2
|
-
id: string;
|
|
3
|
-
key: string;
|
|
4
|
-
alias?: string;
|
|
5
|
-
group?: string;
|
|
6
|
-
render?: boolean;
|
|
7
|
-
slotId?: string;
|
|
8
|
-
compId?: string;
|
|
9
|
-
children?: NodeLite[];
|
|
10
|
-
};
|
|
11
|
-
export type Node = {
|
|
12
|
-
basic: {
|
|
13
|
-
id: string;
|
|
14
|
-
key: string;
|
|
15
|
-
alias?: string;
|
|
16
|
-
};
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
export type NodePair = {
|
|
20
|
-
nodeLite: NodeLite;
|
|
21
|
-
nodes: {
|
|
22
|
-
[key: string]: Node;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare function syncNodeLite(nodeLite: NodeLite, node: Node): void;
|
|
26
|
-
export declare function toNodeLite(node: Node, children?: NodeLite[]): NodeLite;
|
|
27
|
-
export interface View {
|
|
28
|
-
nodeLites: NodeLite[];
|
|
29
|
-
nodes: {
|
|
30
|
-
globality: Node;
|
|
31
|
-
[key: string]: Node;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export interface Reactivity {
|
|
35
|
-
watchEffect: {
|
|
36
|
-
ids: string[];
|
|
37
|
-
triggers: {
|
|
38
|
-
[key: string]: string[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
bind: {
|
|
42
|
-
sets: {
|
|
43
|
-
[key: string]: string[];
|
|
44
|
-
};
|
|
45
|
-
triggers: {
|
|
46
|
-
[key: string]: string[];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export interface Code {
|
|
51
|
-
blockly: object;
|
|
52
|
-
script: string;
|
|
53
|
-
reactivity?: Reactivity;
|
|
54
|
-
}
|
|
55
|
-
export interface Data {
|
|
56
|
-
type: string;
|
|
57
|
-
version: string;
|
|
58
|
-
view: View;
|
|
59
|
-
code: Code;
|
|
60
|
-
}
|
|
61
|
-
export declare function dataStringify({ type, version, view, code }: Data): string;
|
|
62
|
-
export declare function parseData(str: string): Data;
|
package/dist/types/depend.d.ts
DELETED
package/dist/types/index.d.ts
DELETED
package/dist/types/kind.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type SandboxKind = 'root' | 'ref' | 'multipleRef' | 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
|
|
2
|
-
export type SlotKind = 'elementSlot' | 'multipleElementSlot' | 'customSlot' | 'multipleCustomSlot';
|
|
3
|
-
export type PropertyKind = 'elementProperty' | 'elementSlotProperty' | 'multipleElementSlotProperty' | 'refProperty' | 'multipleRefProperty' | 'customSlotProperty' | 'multipleCustomSlotProperty' | 'customProperty' | 'elementAdaptSlotProperty' | 'customAdaptSlotProperty';
|
|
4
|
-
export type MethodKind = 'elementMethod' | 'elementSlotMethod' | 'multipeElementSlotMethod' | 'refMethod' | 'multipleRefMethod' | 'customSlotMethod' | 'multipleCustomSlotMethod' | 'customMethod' | 'elementAdaptSlotMethod' | 'customAdaptSlotMethod';
|
|
5
|
-
export type EventKind = 'elementEvent' | 'elementPropertyChangeEvent' | 'elementSlotEvent' | 'elementSlotPropertyChangeEvent' | 'multipleElementSlotEvent' | 'multipleElementSlotPropertyChangeEvent' | 'refEvent' | 'refPropertyChangeEvent' | 'multipleRefEvent' | 'multipleRefPropertyChangeEvent' | 'customSlotEvent' | 'customSlotPropertyChangeEvent' | 'multipleCustomSlotEvent' | 'multipleCustomSlotPropertyChangeEvent' | 'customEvent' | 'customPropertyChangeEvent' | 'elementAdaptSlotEvent' | 'elementAdaptSlotPropertyChangeEvent' | 'customAdaptSlotEvent' | 'customAdaptSlotPropertyChangeEvent' | 'stateChangeEvent';
|
|
6
|
-
export type TriggerKind = 'propertyTrigger' | 'stateTrigger';
|
package/dist/types/meta.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Type } from 'x-essential-lib';
|
|
2
|
-
export type Field = {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: Type;
|
|
6
|
-
desc?: string;
|
|
7
|
-
};
|
|
8
|
-
export type Method = {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
inputs?: Field[];
|
|
12
|
-
outputs?: Field[];
|
|
13
|
-
desc?: string;
|
|
14
|
-
};
|
|
15
|
-
export type Event = {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
params?: Field[];
|
|
19
|
-
desc?: string;
|
|
20
|
-
};
|
|
21
|
-
export type Slot = {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
properties?: Field[];
|
|
25
|
-
methods?: Method[];
|
|
26
|
-
events?: Event[];
|
|
27
|
-
desc?: string;
|
|
28
|
-
};
|
|
29
|
-
export type Meta = {
|
|
30
|
-
version: string;
|
|
31
|
-
states?: Field[];
|
|
32
|
-
arguments?: Field[];
|
|
33
|
-
properties?: Field[];
|
|
34
|
-
methods?: Method[];
|
|
35
|
-
events?: Event[];
|
|
36
|
-
slots?: Slot[];
|
|
37
|
-
};
|
|
38
|
-
export declare function metaStringify(meta: Meta): string;
|
|
39
|
-
export declare function parseMeta(str: string): Meta;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ZProperty } from '@/meta';
|
|
2
|
-
export declare const breakpoints: string[];
|
|
3
|
-
export declare const reverseBreakpoints: string[];
|
|
4
|
-
export type Breakpoint = (typeof breakpoints)[number];
|
|
5
|
-
export declare function getBreakpointName(breakpoint: Breakpoint): string;
|
|
6
|
-
export declare function calcBreakpoint(width: number): Breakpoint;
|
|
7
|
-
export declare function getIndexOfBreakpoint(breakpoint: Breakpoint): number;
|
|
8
|
-
export declare function getBreakpointProperty<T>(current: Breakpoint, props: {
|
|
9
|
-
[key: Breakpoint]: T;
|
|
10
|
-
}): T | undefined;
|
|
11
|
-
export declare function createBreakpointProperty(prototype: ZProperty): ZProperty;
|
package/dist/utils/index.d.ts
DELETED
package/dist/utils/misc.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare function genId(len: number): string;
|
|
2
|
-
export declare function isPixel(v: unknown): boolean;
|
|
3
|
-
export declare function parsePixel(v: unknown): number;
|
|
4
|
-
export declare function isPercent(v: unknown): boolean;
|
|
5
|
-
export declare function parsePercent(v: unknown): number;
|
|
6
|
-
export declare function isHexColor(v: unknown): boolean;
|
|
7
|
-
export declare const themeColors: {
|
|
8
|
-
value: string;
|
|
9
|
-
title: string;
|
|
10
|
-
}[];
|
|
11
|
-
export declare function isThemeColor(v: unknown): boolean;
|
|
12
|
-
export declare function getRadius(val: unknown): string | undefined;
|
|
13
|
-
export declare function toDotString(target: string | string[]): string;
|
|
14
|
-
export declare function fromDotString(target: string | string[]): string[];
|
|
15
|
-
export declare function getField(object: any, keys: string | string[]): any;
|
|
16
|
-
export declare function setField(object: any, keys: string | string[], value: any): void;
|
|
17
|
-
export declare function addIndent(code: string, spaces?: number): string;
|
package/dist/utils/name.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { EventKind, MethodKind, PropertyKind } from '@/types';
|
|
2
|
-
export declare function toPropertyName(kind: PropertyKind, names: string[]): string;
|
|
3
|
-
export declare function toMethodName(kind: MethodKind, names: string[]): string;
|
|
4
|
-
export declare function toEventName(kind: EventKind, names: string[]): string;
|
package/dist/utils/node.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ZElementKey } from '@/meta';
|
|
2
|
-
import { Node, NodeLite, NodePair } from '@/types';
|
|
3
|
-
export declare function createNode(type: string, subtype: string, key: ZElementKey): Node;
|
|
4
|
-
export declare function getNodeLite(nodeLites: NodeLite[], id: string): NodeLite | undefined;
|
|
5
|
-
export declare function makeNodePair(node: Node, nodePairs?: NodePair[]): NodePair;
|
|
6
|
-
export declare function duplicateNodePair(src: NodePair): NodePair;
|
|
7
|
-
export declare function duplicateNodePairs(srcs: NodePair[]): NodePair[];
|
|
8
|
-
export declare function createMakeNode(type: string, subtype: string): (key: ZElementKey, nodePairs?: NodePair[], props?: {
|
|
9
|
-
[keys: string]: any;
|
|
10
|
-
}) => NodePair;
|
package/dist/utils/property.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ZProperty } from '@/meta';
|
|
2
|
-
import { Node } from '@/types';
|
|
3
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[] | unknown[];
|
|
4
|
-
export declare function getPropertyDefault(property: ZProperty): any;
|
|
5
|
-
export declare function initProperties(node: Node, properties: ZProperty[]): void;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { QuickJSRuntime } from 'quickjs-emscripten';
|
|
2
|
-
import { Reactive, Ref, ShallowRef } from 'vue';
|
|
3
|
-
import { Sandbox } from '@/sandbox';
|
|
4
|
-
import { Data, Depends, Env, Meta, Mode, Node, NodeLite, RuntimeProperties } from '@/types';
|
|
5
|
-
export declare function provideOrg(org: string): void;
|
|
6
|
-
export declare function injectOrg(): string;
|
|
7
|
-
export declare function provideEnv(env: Env): void;
|
|
8
|
-
export declare function injectEnv(): Env;
|
|
9
|
-
export declare function provideMode(mode: Mode): void;
|
|
10
|
-
export declare function injectMode(): Mode;
|
|
11
|
-
export type Device = {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
};
|
|
15
|
-
export declare function provideDevice(device: Ref<Device>): void;
|
|
16
|
-
export declare function injectDevice(): Ref<Device>;
|
|
17
|
-
export declare function provideDark(dark: Ref<boolean>): void;
|
|
18
|
-
export declare function injectDark(): Ref<boolean>;
|
|
19
|
-
export declare function provideId(id: string): void;
|
|
20
|
-
export declare function injectId(): string;
|
|
21
|
-
export declare function provideType(type: 'page' | 'comp'): void;
|
|
22
|
-
export declare function injectType(): "page" | "comp";
|
|
23
|
-
export declare function provideMeta(meta: Ref<Meta | undefined>): void;
|
|
24
|
-
export declare function injectMeta(): Ref<Meta | undefined>;
|
|
25
|
-
export declare function provideData(data: Ref<Data | undefined>): void;
|
|
26
|
-
export declare function injectData(): Ref<Data | undefined>;
|
|
27
|
-
export declare function provideRuntimeProperties(runtimeProperties: Reactive<RuntimeProperties>): void;
|
|
28
|
-
export declare function injectRuntimeProperties(): Reactive<RuntimeProperties>;
|
|
29
|
-
export declare function provideDepends(depends: ShallowRef<Depends>): void;
|
|
30
|
-
export declare function injectDepends(): ShallowRef<Depends>;
|
|
31
|
-
export declare function provideRuntime(runtime: QuickJSRuntime): void;
|
|
32
|
-
export declare function injectRuntime(): QuickJSRuntime;
|
|
33
|
-
export declare function provideSandbox(sandbox: Sandbox): void;
|
|
34
|
-
export declare function injectSandbox(): Sandbox | undefined;
|
|
35
|
-
export declare function provideNodeLite(nodeLite: Ref<NodeLite>): void;
|
|
36
|
-
export declare function injectNodeLite(): Ref<NodeLite> | undefined;
|
|
37
|
-
export declare function provideNode(node: Ref<Node>): void;
|
|
38
|
-
export declare function injectNode(): Ref<Node> | undefined;
|
|
39
|
-
export interface ActivatorContext {
|
|
40
|
-
props?: Record<string, any>;
|
|
41
|
-
}
|
|
42
|
-
export declare function provideSlotProps(slotProps: Record<string, any>): void;
|
|
43
|
-
export declare function injectSlotProps(): Record<string, any> | undefined;
|
package/dist/utils/render.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ZElement } from '@/meta';
|
|
2
|
-
import { NodeLite } from '@/types';
|
|
3
|
-
export declare function isRenderSwitch(key: string): boolean;
|
|
4
|
-
export declare function isInlineSlot(key: string): boolean;
|
|
5
|
-
export declare function hasInlineSlot(element: ZElement): boolean | undefined;
|
|
6
|
-
export declare function hasSlot(key: string): boolean;
|
|
7
|
-
export declare function hasComp(key: string): boolean;
|
|
8
|
-
export declare function toRenderDefault(children: NodeLite[] | undefined, renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): any[];
|
|
9
|
-
export declare function toRenderSlots(children: NodeLite[] | undefined, renderNode: (n: NodeLite, ...params: any[]) => any, ...params: any[]): {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
package/dist/utils/sandbox.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { EventKind, MethodKind, PropertyKind, SlotKind, TriggerKind } from '@/types';
|
|
2
|
-
export declare function makePropertyId(kind: PropertyKind, nodeId: string, propertyKey: string): string;
|
|
3
|
-
export declare function unwrapPropertyId(id: string): {
|
|
4
|
-
kind: PropertyKind;
|
|
5
|
-
nodeId: string;
|
|
6
|
-
propertyKey: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function makePropertyKeyOfElementSlot(elementKey: string, slotKey: string, propertyKey: string): string;
|
|
9
|
-
export declare function unwrapPropertyKeyOfElementSlot(key: string): {
|
|
10
|
-
elementKey: string;
|
|
11
|
-
slotKey: string;
|
|
12
|
-
propertyKey: string;
|
|
13
|
-
};
|
|
14
|
-
export declare function makePropertyKeyOfCustomSlot(compId: string, slotId: string, propertyId: string): string;
|
|
15
|
-
export declare function unwrapPropertyKeyOfCustomSlot(key: string): {
|
|
16
|
-
compId: string;
|
|
17
|
-
slotId: string;
|
|
18
|
-
propertyId: string;
|
|
19
|
-
};
|
|
20
|
-
export declare function makeMethodId(kind: MethodKind, nodeId: string, methodKey: string): string;
|
|
21
|
-
export declare function unwrapMethodId(id: string): {
|
|
22
|
-
kind: MethodKind;
|
|
23
|
-
nodeId: string;
|
|
24
|
-
methodKey: string;
|
|
25
|
-
};
|
|
26
|
-
export declare function makeMethodKeyOfElementSlot(elementKey: string, slotKey: string, methodKey: string): string;
|
|
27
|
-
export declare function unwrapMethodKeyOfElementSlot(key: string): {
|
|
28
|
-
elementKey: string;
|
|
29
|
-
slotKey: string;
|
|
30
|
-
methodKey: string;
|
|
31
|
-
};
|
|
32
|
-
export declare function makeMethodKeyOfCustomSlot(compId: string, slotId: string, methodId: string): string;
|
|
33
|
-
export declare function unwrapMethodKeyOfCustomSlot(key: string): {
|
|
34
|
-
compId: string;
|
|
35
|
-
slotId: string;
|
|
36
|
-
methodId: string;
|
|
37
|
-
};
|
|
38
|
-
export declare function makeEventId(kind: EventKind, nodeId: string, eventKey: string): string;
|
|
39
|
-
export declare function unwrapEventId(id: string): {
|
|
40
|
-
kind: EventKind;
|
|
41
|
-
nodeId: string;
|
|
42
|
-
eventKey: string;
|
|
43
|
-
};
|
|
44
|
-
export declare function makeEventKeyOfElementSlot(elementKey: string, slotKey: string, eventKey: string): string;
|
|
45
|
-
export declare function unwrapEventKeyOfElementSlot(key: string): {
|
|
46
|
-
elementKey: string;
|
|
47
|
-
slotKey: string;
|
|
48
|
-
eventKey: string;
|
|
49
|
-
};
|
|
50
|
-
export declare function makeEventKeyOfCustomSlot(compId: string, slotId: string, eventId: string): string;
|
|
51
|
-
export declare function unwrapEventKeyOfCustomSlot(key: string): {
|
|
52
|
-
compId: string;
|
|
53
|
-
slotId: string;
|
|
54
|
-
eventId: string;
|
|
55
|
-
};
|
|
56
|
-
export declare function makeSlotId(kind: SlotKind, mainKey: string, slotKey: string): string;
|
|
57
|
-
export declare function unwrapSlotId(id: string): {
|
|
58
|
-
kind: SlotKind;
|
|
59
|
-
mainKey: string;
|
|
60
|
-
slotKey: string;
|
|
61
|
-
};
|
|
62
|
-
export declare function makeTriggerId(kind: TriggerKind, triggerKey: string): string;
|
|
63
|
-
export declare function unwrapTriggerId(id: string): {
|
|
64
|
-
kind: TriggerKind;
|
|
65
|
-
triggerKey: string;
|
|
66
|
-
};
|