@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.mjs
CHANGED
|
@@ -17235,7 +17235,7 @@ const SettingApp = (props) => {
|
|
|
17235
17235
|
switch (data.type) {
|
|
17236
17236
|
case "switch":
|
|
17237
17237
|
case "checkbox":
|
|
17238
|
-
return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked:
|
|
17238
|
+
return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked: (value === "true"), onChange: (e) => change_save(root, data, e) }) }, data.id));
|
|
17239
17239
|
case "radio":
|
|
17240
17240
|
return (jsx("div", { className: "radio-group", title: data.description, children: data.option?.map((opt, index) => (jsxs("label", { children: [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));
|
|
17241
17241
|
case "combobox":
|
|
@@ -17382,7 +17382,7 @@ const _FETCH_AND_UPDATE = async () => {
|
|
|
17382
17382
|
};
|
|
17383
17383
|
//Add variable to localstorage
|
|
17384
17384
|
const _LOAD_ = (data) => {
|
|
17385
|
-
let _ =
|
|
17385
|
+
let _ = data;
|
|
17386
17386
|
if (!data) {
|
|
17387
17387
|
const _json = localStorage.getItem("app_config_setting");
|
|
17388
17388
|
try {
|