vim-web 0.3.44-dev.73 → 0.3.44-dev.75
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/vim-web.iife.js
CHANGED
|
@@ -75675,6 +75675,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75675
75675
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75676
75676
|
"input",
|
|
75677
75677
|
{
|
|
75678
|
+
disabled: props.disabled ?? false,
|
|
75678
75679
|
type: "number",
|
|
75679
75680
|
value: inputValue,
|
|
75680
75681
|
onChange: handleChange,
|
|
@@ -75684,9 +75685,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75684
75685
|
);
|
|
75685
75686
|
}
|
|
75686
75687
|
function GenericEntry(field) {
|
|
75688
|
+
var _a3;
|
|
75689
|
+
if (((_a3 = field.visible) == null ? void 0 : _a3.call(field)) === false) return null;
|
|
75687
75690
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
75688
75691
|
"div",
|
|
75689
75692
|
{
|
|
75693
|
+
style: {},
|
|
75690
75694
|
className: "vim-sectionbox-offsets-entry vc-text-xs vc-flex vc-items-center vc-justify-between vc-my-2",
|
|
75691
75695
|
children: [
|
|
75692
75696
|
/* @__PURE__ */ jsxRuntimeExports.jsx("dt", { className: "vc-w-1/2 vc-inline", children: field.label }),
|
|
@@ -75699,11 +75703,11 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75699
75703
|
function GenericField(props) {
|
|
75700
75704
|
switch (props.field.type) {
|
|
75701
75705
|
case "number":
|
|
75702
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputNumber, { state: props.field.state });
|
|
75706
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(InputNumber, { state: props.field.state, disabled: !props.field.enabled() });
|
|
75703
75707
|
case "text":
|
|
75704
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericTextField, { field: props.field });
|
|
75708
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericTextField, { state: props.field.state, disabled: !props.field.enabled() });
|
|
75705
75709
|
case "bool":
|
|
75706
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericBoolField, { field: props.field });
|
|
75710
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(GenericBoolField, { state: props.field.state, disabled: !props.field.enabled() });
|
|
75707
75711
|
default:
|
|
75708
75712
|
return null;
|
|
75709
75713
|
}
|
|
@@ -75713,15 +75717,15 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75713
75717
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75714
75718
|
"input",
|
|
75715
75719
|
{
|
|
75716
|
-
id: props.field.id,
|
|
75717
75720
|
type: "text",
|
|
75718
|
-
|
|
75721
|
+
disabled: props.disabled ?? false,
|
|
75722
|
+
value: props.state.get(),
|
|
75719
75723
|
onChange: (e) => {
|
|
75720
75724
|
refresher.refresh();
|
|
75721
|
-
props.
|
|
75725
|
+
props.state.set(e.target.value);
|
|
75722
75726
|
},
|
|
75723
75727
|
className: "vc-border vc-inline vc-border-gray-300 vc-py-1 vc-w-full vc-px-1",
|
|
75724
|
-
onBlur: () => props.
|
|
75728
|
+
onBlur: () => props.state.confirm()
|
|
75725
75729
|
}
|
|
75726
75730
|
);
|
|
75727
75731
|
}
|
|
@@ -75730,12 +75734,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75730
75734
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
75731
75735
|
"input",
|
|
75732
75736
|
{
|
|
75733
|
-
id: props.field.id,
|
|
75734
75737
|
type: "checkbox",
|
|
75735
|
-
|
|
75738
|
+
disabled: props.disabled ?? false,
|
|
75739
|
+
checked: props.state.get(),
|
|
75736
75740
|
onChange: (e) => {
|
|
75737
75741
|
refresher.refresh();
|
|
75738
|
-
props.
|
|
75742
|
+
props.state.set(e.target.checked);
|
|
75739
75743
|
},
|
|
75740
75744
|
className: "vc-border vc-inline vc-border-gray-300 vc-py-1 vc-w-full vc-px-1"
|
|
75741
75745
|
}
|