@esvndev/es-react-config-setting 1.0.83 → 1.0.85

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.
@@ -0,0 +1,2 @@
1
+ declare const NotificationDropdown: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NotificationDropdown;
package/dist/index.js CHANGED
@@ -17228,14 +17228,17 @@ const SettingApp = (props) => {
17228
17228
  if (saveSettings && _m[obj.id] !== null) {
17229
17229
  clearTimeout(_m[obj.id]);
17230
17230
  }
17231
+ let time_update = 1000;
17231
17232
  let value;
17232
17233
  let value_file;
17233
17234
  if (e.target.type === "checkbox") {
17234
17235
  value = e.target.checked;
17236
+ time_update = 100;
17235
17237
  }
17236
17238
  else if (e.target.type === "file") {
17237
17239
  value = e.target.value;
17238
17240
  value_file = e.target.files?.[0] ?? null;
17241
+ time_update = 100;
17239
17242
  }
17240
17243
  else {
17241
17244
  value = e.target.value;
@@ -17254,7 +17257,7 @@ const SettingApp = (props) => {
17254
17257
  };
17255
17258
  _m[obj.id] = setTimeout(() => {
17256
17259
  _eventChange(_data);
17257
- }, 1000);
17260
+ }, time_update);
17258
17261
  };
17259
17262
  //Hàm sử dụng tạo theo loại giá trị
17260
17263
  const _renderInput = (root, data) => {
@@ -17262,7 +17265,7 @@ const SettingApp = (props) => {
17262
17265
  switch (data.type) {
17263
17266
  case "switch":
17264
17267
  case "checkbox":
17265
- return (jsxRuntime.jsx("div", { className: "checkbox", title: data.description, children: jsxRuntime.jsx(Input$1, { style: { width: '237px !important' }, type: "checkbox", checked: !!value, onChange: (e) => change_save(root, data, e) }) }, data.id));
17268
+ 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
17269
  case "radio":
17267
17270
  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
17271
  case "combobox":