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