element-less 0.0.62 → 0.0.63
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/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/{index-7c_sNy4-.js → index-CF4gJkpG.js} +38 -12
- package/index-D0MvJOyS.cjs +1 -0
- package/{inner-DmSBxfiK.js → inner-B9Zn0_B2.js} +1 -1
- package/{inner-C31N0q7a.cjs → inner-CjyDBQKH.cjs} +1 -1
- package/{innerItem-bEGX2tCW.cjs → innerItem-D8EdNpZ7.cjs} +1 -1
- package/{innerItem-D_eodwMh.js → innerItem-DFSxgDlT.js} +1 -1
- package/{mode-csharp-CnDEE-pK.cjs → mode-csharp-Cvwo0pKG.cjs} +1 -1
- package/{mode-csharp-DXxph2IU.js → mode-csharp-UBVoLKPG.js} +1 -1
- package/{mode-css-j7HHImub.cjs → mode-css-CUzFJKfE.cjs} +1 -1
- package/{mode-css-DNuBwejm.js → mode-css-DgUCp6_8.js} +1 -1
- package/{mode-javascript-CgNYP0ZB.js → mode-javascript-Ce6--MVa.js} +1 -1
- package/{mode-javascript-DxX91KUa.cjs → mode-javascript-Y2qZGiys.cjs} +1 -1
- package/{mode-json-32M0ddEq.cjs → mode-json-BSefBGag.cjs} +1 -1
- package/{mode-json-CmVf14v7.js → mode-json-Cb8ZjoeD.js} +1 -1
- package/{mode-mysql-o4sFpIoi.cjs → mode-mysql-BWP5_hHW.cjs} +1 -1
- package/{mode-mysql-CQl5Sngg.js → mode-mysql-s3eaatna.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-C-T0hYe_.cjs +0 -1
|
@@ -33353,8 +33353,21 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
33353
33353
|
}
|
|
33354
33354
|
return `currNode['${s}']?.value`;
|
|
33355
33355
|
};
|
|
33356
|
+
function findOptionLabelByValue(options2, value) {
|
|
33357
|
+
var _a;
|
|
33358
|
+
for (const opt of options2) {
|
|
33359
|
+
if (opt.value === value) return opt.label ?? null;
|
|
33360
|
+
if ((_a = opt.children) == null ? void 0 : _a.length) {
|
|
33361
|
+
const childLabel = findOptionLabelByValue(opt.children, value);
|
|
33362
|
+
if (childLabel) return childLabel;
|
|
33363
|
+
}
|
|
33364
|
+
}
|
|
33365
|
+
return null;
|
|
33366
|
+
}
|
|
33356
33367
|
const mentionDisplayLabel = (id) => {
|
|
33357
33368
|
if (!id) return id;
|
|
33369
|
+
const optionLabel = findOptionLabelByValue(fieldOptions.value, id);
|
|
33370
|
+
if (optionLabel) return optionLabel;
|
|
33358
33371
|
if (id === "__rootNode__") return "rootNode";
|
|
33359
33372
|
if (id.startsWith("globalData:")) return `globalData.${id.slice(11)}`;
|
|
33360
33373
|
if (id.startsWith("root:")) return `root.${id.slice(5)}`;
|
|
@@ -33732,7 +33745,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
33732
33745
|
};
|
|
33733
33746
|
}
|
|
33734
33747
|
});
|
|
33735
|
-
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["__scopeId", "data-v-
|
|
33748
|
+
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["__scopeId", "data-v-5d6e49d3"]]);
|
|
33736
33749
|
const _hoisted_1$1o = { class: "expr-input-wrapper" };
|
|
33737
33750
|
const _hoisted_2$x = {
|
|
33738
33751
|
key: 0,
|
|
@@ -33958,8 +33971,21 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
33958
33971
|
...flattenLeaves(rootContainerOpts)
|
|
33959
33972
|
];
|
|
33960
33973
|
});
|
|
33974
|
+
function findOptionLabelByValue(options2, value) {
|
|
33975
|
+
var _a;
|
|
33976
|
+
for (const opt of options2) {
|
|
33977
|
+
if (opt.value === value) return opt.label ?? null;
|
|
33978
|
+
if ((_a = opt.children) == null ? void 0 : _a.length) {
|
|
33979
|
+
const childLabel = findOptionLabelByValue(opt.children, value);
|
|
33980
|
+
if (childLabel) return childLabel;
|
|
33981
|
+
}
|
|
33982
|
+
}
|
|
33983
|
+
return null;
|
|
33984
|
+
}
|
|
33961
33985
|
const mentionDisplayLabel = (id) => {
|
|
33962
33986
|
if (!id) return id;
|
|
33987
|
+
const optionLabel = findOptionLabelByValue(fieldOptions.value, id);
|
|
33988
|
+
if (optionLabel) return optionLabel;
|
|
33963
33989
|
if (id === "__rootNode__") return "rootNode";
|
|
33964
33990
|
if (id.startsWith("globalData:")) return `globalData.${id.slice(11)}`;
|
|
33965
33991
|
if (id.startsWith("root:")) return `root.${id.slice(5)}`;
|
|
@@ -34175,7 +34201,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
34175
34201
|
};
|
|
34176
34202
|
}
|
|
34177
34203
|
});
|
|
34178
|
-
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["__scopeId", "data-v-
|
|
34204
|
+
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["__scopeId", "data-v-657f4962"]]);
|
|
34179
34205
|
Number.prototype.toFixedNumber = function toFixedNumber(digits = 2) {
|
|
34180
34206
|
return parseFloat(this.toFixed(digits));
|
|
34181
34207
|
};
|
|
@@ -73196,7 +73222,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
73196
73222
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
73197
73223
|
setup(__props, { emit: __emit }) {
|
|
73198
73224
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
73199
|
-
return import("./innerItem-
|
|
73225
|
+
return import("./innerItem-DFSxgDlT.js");
|
|
73200
73226
|
});
|
|
73201
73227
|
const { getValue: getValue2 } = useProps();
|
|
73202
73228
|
const tagID = getValue2("tagID");
|
|
@@ -74151,10 +74177,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
74151
74177
|
emits: ["update:modelValue"],
|
|
74152
74178
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74153
74179
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
74154
|
-
return import("./inner-
|
|
74180
|
+
return import("./inner-B9Zn0_B2.js").then((n) => n.i);
|
|
74155
74181
|
});
|
|
74156
74182
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
74157
|
-
return import("./inner-
|
|
74183
|
+
return import("./inner-B9Zn0_B2.js").then((n) => n.f);
|
|
74158
74184
|
});
|
|
74159
74185
|
const props2 = __props;
|
|
74160
74186
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -74384,10 +74410,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
74384
74410
|
emits: ["update:modelValue"],
|
|
74385
74411
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74386
74412
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
74387
|
-
return import("./inner-
|
|
74413
|
+
return import("./inner-B9Zn0_B2.js").then((n) => n.i);
|
|
74388
74414
|
});
|
|
74389
74415
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
74390
|
-
return import("./inner-
|
|
74416
|
+
return import("./inner-B9Zn0_B2.js").then((n) => n.f);
|
|
74391
74417
|
});
|
|
74392
74418
|
const props2 = __props;
|
|
74393
74419
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -79516,31 +79542,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
79516
79542
|
__publicField(this, "editor", ref());
|
|
79517
79543
|
onMounted(() => {
|
|
79518
79544
|
if (props2.language === "json") {
|
|
79519
|
-
const currModule = import("./mode-json-
|
|
79545
|
+
const currModule = import("./mode-json-Cb8ZjoeD.js").then((n) => n.m);
|
|
79520
79546
|
currModule.then((res) => {
|
|
79521
79547
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
79522
79548
|
this.init();
|
|
79523
79549
|
});
|
|
79524
79550
|
} else if (props2.language === "javascript") {
|
|
79525
|
-
const currModule = import("./mode-javascript-
|
|
79551
|
+
const currModule = import("./mode-javascript-Ce6--MVa.js").then((n) => n.m);
|
|
79526
79552
|
currModule.then((res) => {
|
|
79527
79553
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
79528
79554
|
this.init();
|
|
79529
79555
|
});
|
|
79530
79556
|
} else if (props2.language === "csharp") {
|
|
79531
|
-
const currModule = import("./mode-csharp-
|
|
79557
|
+
const currModule = import("./mode-csharp-UBVoLKPG.js").then((n) => n.m);
|
|
79532
79558
|
currModule.then((res) => {
|
|
79533
79559
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
79534
79560
|
this.init();
|
|
79535
79561
|
});
|
|
79536
79562
|
} else if (props2.language === "mysql") {
|
|
79537
|
-
const currModule = import("./mode-mysql-
|
|
79563
|
+
const currModule = import("./mode-mysql-s3eaatna.js").then((n) => n.m);
|
|
79538
79564
|
currModule.then((res) => {
|
|
79539
79565
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
79540
79566
|
this.init();
|
|
79541
79567
|
});
|
|
79542
79568
|
} else if (props2.language === "css") {
|
|
79543
|
-
const currModule = import("./mode-css-
|
|
79569
|
+
const currModule = import("./mode-css-DgUCp6_8.js").then((n) => n.m);
|
|
79544
79570
|
currModule.then((res) => {
|
|
79545
79571
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
79546
79572
|
this.init();
|