@amirjalili1374/ui-kit 1.5.47 → 1.5.49

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/ui-kit.es.js CHANGED
@@ -18767,11 +18767,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18767
18767
  try {
18768
18768
  const rawFilter = buildFilterParams();
18769
18769
  const finalFilter = resolveFilter(rawFilter);
18770
+ const hasExternalCriteria = externalCriteria.value && Object.keys(externalCriteria.value).length > 0;
18770
18771
  let params = {
18771
- ...finalFilter,
18772
+ ...hasExternalCriteria ? {} : finalFilter,
18772
18773
  ...props.queryParams,
18773
18774
  ...externalCriteria.value || {}
18774
- // ⬅⬅⬅ تغییر اصلی
18775
18775
  };
18776
18776
  if (queryParams) {
18777
18777
  params = {
@@ -18845,7 +18845,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18845
18845
  watch(
18846
18846
  [cleanFilterModel],
18847
18847
  () => {
18848
- if (!props.filterComponent) {
18848
+ if (!props.filterComponent && props.autoFetch && initialized.value) {
18849
18849
  debouncedFetchData();
18850
18850
  }
18851
18851
  },
@@ -19267,10 +19267,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19267
19267
  debouncedFetchData();
19268
19268
  };
19269
19269
  onMounted(() => {
19270
+ initialized.value = true;
19270
19271
  if (props.autoFetch) {
19271
19272
  fetchData();
19272
19273
  }
19273
- initialized.value = true;
19274
19274
  });
19275
19275
  const openCustomActionDialog = (action, item) => {
19276
19276
  customActionComponent.value = action.component;