@esvndev/es-react-config-setting 1.0.89 → 1.0.90

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/index.d.ts CHANGED
@@ -11,5 +11,6 @@ declare const SettingApp: (props: ISettingApp) => react_jsx_runtime.JSX.Element;
11
11
 
12
12
  declare const INIT_CONFIG_SETTING: () => Promise<void>;
13
13
  declare const get_conf: (key: string, type?: key_format) => any;
14
+ declare const set_filter: (filter: any) => any;
14
15
 
15
- export { INIT_CONFIG_SETTING, SettingApp, get_conf };
16
+ export { INIT_CONFIG_SETTING, SettingApp, get_conf, set_filter };
package/dist/index.js CHANGED
@@ -17399,6 +17399,16 @@ const get_conf = (key, type) => {
17399
17399
  }
17400
17400
  return _;
17401
17401
  };
17402
+ //set parameter by key when call server ,
17403
+ const set_filter = (filter) => {
17404
+ try {
17405
+ VARIABLE_FRIVATE.FILTER_SETUP = filter;
17406
+ _FETCH_AND_UPDATE(VARIABLE_FRIVATE.FILTER_SETUP);
17407
+ }
17408
+ catch (ex) {
17409
+ console.log("Failed add filter to get setting:", filter);
17410
+ }
17411
+ };
17402
17412
  const _FETCH_AND_UPDATE = async (filter) => {
17403
17413
  await GetSettingConfigClient(filter, (data) => {
17404
17414
  try {
@@ -17444,4 +17454,5 @@ registerLicense('ORg4AjUWIQA/Gnt2VVhiQlFadVlJXmJWf1FpTGpQdk5yd19DaVZUTX1dQl9hSXl
17444
17454
  exports.INIT_CONFIG_SETTING = INIT_CONFIG_SETTING;
17445
17455
  exports.SettingApp = SettingApp;
17446
17456
  exports.get_conf = get_conf;
17457
+ exports.set_filter = set_filter;
17447
17458
  //# sourceMappingURL=index.js.map