@esvndev/es-react-config-setting 1.0.82 → 1.0.84
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/notification/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -17262,7 +17262,7 @@ const SettingApp = (props) => {
|
|
|
17262
17262
|
switch (data.type) {
|
|
17263
17263
|
case "switch":
|
|
17264
17264
|
case "checkbox":
|
|
17265
|
-
return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked:
|
|
17265
|
+
return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked: (value === "true"), onChange: (e) => change_save(root, data, e) }) }, data.id));
|
|
17266
17266
|
case "radio":
|
|
17267
17267
|
return (jsxRuntime.jsx("div", { className: "radio-group", title: data.description, children: data.option?.map((opt, index) => (jsxRuntime.jsxs("label", { children: [jsxRuntime.jsx(Input$1, { type: "radio", name: data.name, value: opt.value, checked: value === opt.value, onChange: (e) => change_save(root, data, e) }), opt.name] }, index))) }, data.id));
|
|
17268
17268
|
case "combobox":
|
|
@@ -17409,7 +17409,7 @@ const _FETCH_AND_UPDATE = async () => {
|
|
|
17409
17409
|
};
|
|
17410
17410
|
//Add variable to localstorage
|
|
17411
17411
|
const _LOAD_ = (data) => {
|
|
17412
|
-
let _ =
|
|
17412
|
+
let _ = data;
|
|
17413
17413
|
if (!data) {
|
|
17414
17414
|
const _json = localStorage.getItem("app_config_setting");
|
|
17415
17415
|
try {
|