x-runtime-lib 0.8.215 → 0.8.217
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/composables/element/piece/ui/border/v1/index.d.ts +16 -1
- package/dist/composables/element/piece/ui/color/v1/index.d.ts +16 -1
- package/dist/{emscripten-module.browser.e3iftgbq.js → emscripten-module.browser.jhpu0yaf.js} +1 -1
- package/dist/ffi.d94rtjdy.js +2 -0
- package/dist/index.js +15 -14
- package/dist/{module-6F3E5H7Y.iue8n2m3.js → module-ES6BEMUI.od8fa96u.js} +1 -1
- package/dist/utils/property.d.ts +2 -1
- package/dist/{vendor.n8mpf8fx.js → vendor.o54c94ya.js} +792 -686
- package/package.json +19 -19
- package/dist/ffi.72v61k2a.js +0 -2
|
@@ -3,6 +3,21 @@ import { Node } from '@/types';
|
|
|
3
3
|
export declare function useBorderV1(node: Ref<Node>): {
|
|
4
4
|
borderStyle: import("vue").ComputedRef<any>;
|
|
5
5
|
borderWidth: import("vue").ComputedRef<any>;
|
|
6
|
-
borderColor: import("vue").ComputedRef<string
|
|
6
|
+
borderColor: import("vue").ComputedRef<string | number | {
|
|
7
|
+
readonly h: number;
|
|
8
|
+
readonly s: number;
|
|
9
|
+
readonly v: number;
|
|
10
|
+
readonly a?: number | undefined;
|
|
11
|
+
} | {
|
|
12
|
+
readonly r: number;
|
|
13
|
+
readonly g: number;
|
|
14
|
+
readonly b: number;
|
|
15
|
+
readonly a?: number | undefined;
|
|
16
|
+
} | {
|
|
17
|
+
readonly h: number;
|
|
18
|
+
readonly s: number;
|
|
19
|
+
readonly l: number;
|
|
20
|
+
readonly a?: number | undefined;
|
|
21
|
+
}>;
|
|
7
22
|
applyBorder: (style: CSSProperties) => void;
|
|
8
23
|
};
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export declare function useColorV1(colorMode: Ref<string>, colorTheme: Ref<string>, colorCustomLight: Ref<string>, colorCustomDark: Ref<string>): {
|
|
3
|
-
color: import("vue").ComputedRef<string
|
|
3
|
+
color: import("vue").ComputedRef<string | number | {
|
|
4
|
+
readonly h: number;
|
|
5
|
+
readonly s: number;
|
|
6
|
+
readonly v: number;
|
|
7
|
+
readonly a?: number | undefined;
|
|
8
|
+
} | {
|
|
9
|
+
readonly r: number;
|
|
10
|
+
readonly g: number;
|
|
11
|
+
readonly b: number;
|
|
12
|
+
readonly a?: number | undefined;
|
|
13
|
+
} | {
|
|
14
|
+
readonly h: number;
|
|
15
|
+
readonly s: number;
|
|
16
|
+
readonly l: number;
|
|
17
|
+
readonly a?: number | undefined;
|
|
18
|
+
}>;
|
|
4
19
|
rgb: import("vue").ComputedRef<string>;
|
|
5
20
|
alpha: import("vue").ComputedRef<number>;
|
|
6
21
|
};
|
package/dist/{emscripten-module.browser.e3iftgbq.js → emscripten-module.browser.jhpu0yaf.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as emscripten_module_browser_default } from "./vendor.
|
|
1
|
+
import { n as emscripten_module_browser_default } from "./vendor.o54c94ya.js";
|
|
2
2
|
export { emscripten_module_browser_default as default };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __export } from "./rolldown-runtime.ofrncwta.js";
|
|
2
|
-
import { C as MapControls_default, D as isEmpty_default, E as isEqual_default, O as cloneDeep_default, S as KeyboardControls_default, T as component_default$8, _ as install, a as getQuickJS, b as registerTheme, d as install$5, f as install$4, g as install$3, h as install$1, i as mitt_default, k as capitalize_default, m as install$2, p as install$6, r as encodeString, u as install$7, v as core_exports, w as OrbitControls_default, x as HTML_default, y as use } from "./vendor.
|
|
2
|
+
import { C as MapControls_default, D as isEmpty_default, E as isEqual_default, O as cloneDeep_default, S as KeyboardControls_default, T as component_default$8, _ as install, a as getQuickJS, b as registerTheme, d as install$5, f as install$4, g as install$3, h as install$1, i as mitt_default, k as capitalize_default, m as install$2, p as install$6, r as encodeString, u as install$7, v as core_exports, w as OrbitControls_default, x as HTML_default, y as use } from "./vendor.o54c94ya.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, h, inject, isRef, mergeModels, nextTick, normalizeClass, normalizeStyle, onBeforeMount, onMounted, onUnmounted, openBlock, provide, readonly, ref, renderList, renderSlot, resolveComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, watchEffect, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { createAxios, eventBus, getTypeDefault, globalObjects, messageError, messageInfo, messageSuccess, messageWarning, openConfirmDlg, openPromptDlg, useViewStack, waitUtil } from "x-essential-lib";
|
|
5
5
|
import { CameraHelper, DirectionalLightHelper, PointLightHelper, SpotLightHelper } from "three";
|
|
@@ -42,7 +42,7 @@ const breakpoints = [
|
|
|
42
42
|
"xl"
|
|
43
43
|
], reverseBreakpoints = [...breakpoints].reverse();
|
|
44
44
|
function calcBreakpoint(e) {
|
|
45
|
-
return e < 600 ? "xs" : e <
|
|
45
|
+
return e < 600 ? "xs" : e < 840 ? "sm" : e < 1145 ? "md" : e < 1545 ? "lg" : "xl";
|
|
46
46
|
}
|
|
47
47
|
function getIndexOfBreakpoint(e) {
|
|
48
48
|
return breakpoints.findIndex((p) => p === e);
|
|
@@ -1658,8 +1658,8 @@ function useYAxisV1(e) {
|
|
|
1658
1658
|
function useColorV1(e, p, m, g) {
|
|
1659
1659
|
let { computedThemes: _ } = useTheme$1(), v = injectDark(), y = computed(() => {
|
|
1660
1660
|
let e = p.value;
|
|
1661
|
-
|
|
1662
|
-
}), b = computed(() => v.value ? g.value : m.value), x = computed(() => e.value === "theme" ? y.value
|
|
1661
|
+
return e ? e === "background0" ? v.value ? "#2e2e2e" : "#bdbdbd" : e === "background1" ? v.value ? "#272727" : "#eeeeee" : e === "background2" ? v.value ? "#1e1e1e" : "#ffffff" : (v.value ? _.value.dark : _.value.light).colors[e] : "";
|
|
1662
|
+
}), b = computed(() => v.value ? g.value : m.value), x = computed(() => e.value === "theme" ? y.value : e.value === "custom" ? b.value : "");
|
|
1663
1663
|
return {
|
|
1664
1664
|
color: x,
|
|
1665
1665
|
rgb: computed(() => {
|
|
@@ -10219,19 +10219,20 @@ function buildProperties() {
|
|
|
10219
10219
|
return e;
|
|
10220
10220
|
}
|
|
10221
10221
|
var finalProperties = buildProperties();
|
|
10222
|
-
function
|
|
10223
|
-
if (e.array)
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10222
|
+
function getPropertyDefaultArray(e) {
|
|
10223
|
+
if (!e.array) throw Error("property not array");
|
|
10224
|
+
return cloneDeep_default(e.defaultArray);
|
|
10225
|
+
}
|
|
10226
|
+
function getPropertyDefault(e) {
|
|
10227
|
+
let p = cloneDeep_default(e.default);
|
|
10228
|
+
if (!((e.ui === "switch" || e.ui === "select" || e.ui === "colorPicker" || e.ui === "multiTypes" || e.ui === "selectComp" || e.ui === "selectSlot" || e.ui === "selectAdaptSlot") && !p)) return p;
|
|
10228
10229
|
}
|
|
10229
10230
|
function initProperties(e, p) {
|
|
10230
10231
|
function m(e, p) {
|
|
10231
10232
|
if (p.ui) {
|
|
10232
10233
|
if (p.static) return;
|
|
10233
|
-
e[p.key] = getPropertyDefault(p);
|
|
10234
|
-
} else if (p.array) e[p.key] =
|
|
10234
|
+
p.array ? e[p.key] = getPropertyDefaultArray(p) : e[p.key] = getPropertyDefault(p);
|
|
10235
|
+
} else if (p.array) e[p.key] = getPropertyDefaultArray(p);
|
|
10235
10236
|
else for (let g of p.children) e[p.key] || (e[p.key] = {}), m(e[p.key], g);
|
|
10236
10237
|
}
|
|
10237
10238
|
for (let g of p) m(e, g);
|
|
@@ -10678,7 +10679,7 @@ function bindBase(e) {
|
|
|
10678
10679
|
let m = p.dump(e);
|
|
10679
10680
|
eventBus.emit("consoleAppend", m);
|
|
10680
10681
|
}).consume((e) => p.setProp(p.global, "__debugTraceV1__", e)), p.newFunction("__messageV1__", (e, m) => {
|
|
10681
|
-
let g = p.getString(e), _ = p.dump(m), v
|
|
10682
|
+
let g = p.getString(e), _ = p.dump(m), v;
|
|
10682
10683
|
v = typeof _ == "object" ? JSON.stringify(_) : String(_), g === "info" ? messageInfo(v) : g === "success" ? messageSuccess(v) : g === "warning" ? messageWarning(v) : g === "error" && messageError(v);
|
|
10683
10684
|
}).consume((e) => p.setProp(p.global, "__messageV1__", e)), p.newFunction("__timeoutV1__", (m, g) => {
|
|
10684
10685
|
let _ = p.getNumber(m), v = p.getNumber(g);
|
|
@@ -11439,4 +11440,4 @@ async function loadLocaleMessageRuntime(e) {
|
|
|
11439
11440
|
"./locales/zhHans/index.ts": () => import("./zhHans.jaf0151p.js")
|
|
11440
11441
|
}, `./locales/${e}/index.ts`, 4)).default;
|
|
11441
11442
|
}
|
|
11442
|
-
export { addIndent, ambientLightV1, badgeV1, barChartV1, boxGeometryV1, breakpoints, btnToggleEntryV1, btnToggleV1, btnV1, calcBreakpoint, cardV1, checkboxV1, chipGroupV1, chipV1, colorPickerV1, comboboxV1, compTypes, containerV1, createNode, dataStringify, dataTableV1, datePickerV1, dialogV1, directionalLightV1, duplicateNodePair, duplicateNodePairs, elementKeys, fileInputV1, finalProperties, flexLayoutEntryV1, flexLayoutV1, formV1, fromDotString, genId, getAllElements, getBreakpointProp, getElement, getField, getImplementMethodName, getIndexOfBreakpoint, getNodeLite, getPropertyDefault, getTag, globalityV1, groupV1, hasComp, hasSlot, iconV1, initProperties, injectDark, injectData, injectDepends, injectDevice, injectEnv, injectId, injectMeta, injectMode, injectNode, injectOrg, injectRuntime, injectSandbox, injectType, isCircularReference, isExecutableMode, isPercentStr, isPixelStr, keyboardControlsV1, lineChartV1, loadLocaleMessageRuntime, makeEventId, makeEventKeyOfCustomSlot, makeEventKeyOfElementSlot, makeMethodId, makeMethodKeyOfCustomSlot, makeMethodKeyOfElementSlot, makePropertyId, makePropertyKeyOfCustomSlot, makePropertyKeyOfElementSlot, makeSlotId, makeTriggerId, mapControlsV1, menuV1, meshBasicMaterialV1, meshV1, metaStringify, multipleRefV1, multipleSlotV1, numberInputV1, orbitControlsV1, orthographicCameraV1, pageTypes, paginationV1, parseData, parseMeta, parsePercentStr, parsePixelStr, perspectiveCameraV1, pkgs, pointLightV1, provideDark, provideData, provideDepends, provideDevice, provideEnv, provideId, provideMeta, provideMode, provideNode, provideOrg, provideRuntime, provideSandbox, provideType, radioGroupV1, radioV1, rangeSliderV1, ratingV1, referenceV1, regElement, renderSwitchV1, reverseBreakpoints, selectV1, setField, sliderV1, slotV1, spawnNode, sphereGeometryV1, spotLightV1, stepperHeaderV1, stepperItemV1, stepperV1, stepperWindowItemV1, stepperWindowV1, switchV1, tabV1, tabsV1, textFieldV1, textV1, textareaV1, timelineItemV1, timelineV1, toDotString, toEventName, toMethodName, toNodeLite, toPropertyName, unwrapEventId, unwrapEventKeyOfCustomSlot, unwrapEventKeyOfElementSlot, unwrapMethodId, unwrapMethodKeyOfCustomSlot, unwrapMethodKeyOfElementSlot, unwrapPropertyId, unwrapPropertyKeyOfCustomSlot, unwrapPropertyKeyOfElementSlot, unwrapSlotId, unwrapTriggerId, useDepend, useRuntime, useSandbox, useTheme, windowItemV1, windowV1 };
|
|
11443
|
+
export { addIndent, ambientLightV1, badgeV1, barChartV1, boxGeometryV1, breakpoints, btnToggleEntryV1, btnToggleV1, btnV1, calcBreakpoint, cardV1, checkboxV1, chipGroupV1, chipV1, colorPickerV1, comboboxV1, compTypes, containerV1, createNode, dataStringify, dataTableV1, datePickerV1, dialogV1, directionalLightV1, duplicateNodePair, duplicateNodePairs, elementKeys, fileInputV1, finalProperties, flexLayoutEntryV1, flexLayoutV1, formV1, fromDotString, genId, getAllElements, getBreakpointProp, getElement, getField, getImplementMethodName, getIndexOfBreakpoint, getNodeLite, getPropertyDefault, getPropertyDefaultArray, getTag, globalityV1, groupV1, hasComp, hasSlot, iconV1, initProperties, injectDark, injectData, injectDepends, injectDevice, injectEnv, injectId, injectMeta, injectMode, injectNode, injectOrg, injectRuntime, injectSandbox, injectType, isCircularReference, isExecutableMode, isPercentStr, isPixelStr, keyboardControlsV1, lineChartV1, loadLocaleMessageRuntime, makeEventId, makeEventKeyOfCustomSlot, makeEventKeyOfElementSlot, makeMethodId, makeMethodKeyOfCustomSlot, makeMethodKeyOfElementSlot, makePropertyId, makePropertyKeyOfCustomSlot, makePropertyKeyOfElementSlot, makeSlotId, makeTriggerId, mapControlsV1, menuV1, meshBasicMaterialV1, meshV1, metaStringify, multipleRefV1, multipleSlotV1, numberInputV1, orbitControlsV1, orthographicCameraV1, pageTypes, paginationV1, parseData, parseMeta, parsePercentStr, parsePixelStr, perspectiveCameraV1, pkgs, pointLightV1, provideDark, provideData, provideDepends, provideDevice, provideEnv, provideId, provideMeta, provideMode, provideNode, provideOrg, provideRuntime, provideSandbox, provideType, radioGroupV1, radioV1, rangeSliderV1, ratingV1, referenceV1, regElement, renderSwitchV1, reverseBreakpoints, selectV1, setField, sliderV1, slotV1, spawnNode, sphereGeometryV1, spotLightV1, stepperHeaderV1, stepperItemV1, stepperV1, stepperWindowItemV1, stepperWindowV1, switchV1, tabV1, tabsV1, textFieldV1, textV1, textareaV1, timelineItemV1, timelineV1, toDotString, toEventName, toMethodName, toNodeLite, toPropertyName, unwrapEventId, unwrapEventKeyOfCustomSlot, unwrapEventKeyOfElementSlot, unwrapMethodId, unwrapMethodKeyOfCustomSlot, unwrapMethodKeyOfElementSlot, unwrapPropertyId, unwrapPropertyKeyOfCustomSlot, unwrapPropertyKeyOfElementSlot, unwrapSlotId, unwrapTriggerId, useDepend, useRuntime, useSandbox, useTheme, windowItemV1, windowV1 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as applyBaseRuntimeOptions, l as applyModuleEvalRuntimeOptions, o as QuickJSModuleCallbacks, s as QuickJSWASMModule } from "./vendor.
|
|
1
|
+
import { c as applyBaseRuntimeOptions, l as applyModuleEvalRuntimeOptions, o as QuickJSModuleCallbacks, s as QuickJSWASMModule } from "./vendor.o54c94ya.js";
|
|
2
2
|
export { QuickJSModuleCallbacks, QuickJSWASMModule, applyBaseRuntimeOptions, applyModuleEvalRuntimeOptions };
|
package/dist/utils/property.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Node, ZProperty } from '@/types';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | number[] | boolean[];
|
|
3
|
+
export declare function getPropertyDefault(property: ZProperty): any;
|
|
3
4
|
export declare function initProperties(node: Node, properties: ZProperty[]): void;
|