@dolusoft/vue3-datatable 1.8.28 → 1.8.29

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.
@@ -3165,6 +3165,26 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3165
3165
  },
3166
3166
  { immediate: true, deep: true }
3167
3167
  );
3168
+ vue.watch(
3169
+ () => {
3170
+ var _a, _b;
3171
+ return (_b = (_a = props.all) == null ? void 0 : _a.columns) == null ? void 0 : _b.map((col) => ({ field: col.field, value: col.value, condition: col.condition }));
3172
+ },
3173
+ (newValues) => {
3174
+ if (!newValues) return;
3175
+ newValues.forEach((colState) => {
3176
+ if (colState.field) {
3177
+ if (filterInputs.value[colState.field] !== colState.value) {
3178
+ filterInputs.value[colState.field] = colState.value || "";
3179
+ }
3180
+ if (colState.condition && columnConditions.value[colState.field] !== colState.condition) {
3181
+ columnConditions.value[colState.field] = colState.condition;
3182
+ }
3183
+ }
3184
+ });
3185
+ },
3186
+ { deep: true }
3187
+ );
3168
3188
  vue.onMounted(() => {
3169
3189
  setupColumnWatches();
3170
3190
  });
@@ -3164,6 +3164,26 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3164
3164
  },
3165
3165
  { immediate: true, deep: true }
3166
3166
  );
3167
+ watch(
3168
+ () => {
3169
+ var _a, _b;
3170
+ return (_b = (_a = props.all) == null ? void 0 : _a.columns) == null ? void 0 : _b.map((col) => ({ field: col.field, value: col.value, condition: col.condition }));
3171
+ },
3172
+ (newValues) => {
3173
+ if (!newValues) return;
3174
+ newValues.forEach((colState) => {
3175
+ if (colState.field) {
3176
+ if (filterInputs.value[colState.field] !== colState.value) {
3177
+ filterInputs.value[colState.field] = colState.value || "";
3178
+ }
3179
+ if (colState.condition && columnConditions.value[colState.field] !== colState.condition) {
3180
+ columnConditions.value[colState.field] = colState.condition;
3181
+ }
3182
+ }
3183
+ });
3184
+ },
3185
+ { deep: true }
3186
+ );
3167
3187
  onMounted(() => {
3168
3188
  setupColumnWatches();
3169
3189
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolusoft/vue3-datatable",
3
- "version": "1.8.28",
3
+ "version": "1.8.29",
4
4
  "description": "Vue3 Datatable - fully customizable & easy to use datatable library",
5
5
  "private": false,
6
6
  "type": "module",