@platforma-sdk/ui-vue 1.10.2 → 1.10.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/ui-vue",
3
- "version": "1.10.2",
3
+ "version": "1.10.5",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.cjs",
6
6
  "module": "dist/lib.js",
@@ -84,6 +84,8 @@ watch(
84
84
  watch(
85
85
  () => columnsWithIds.value,
86
86
  (columnsWithIds) => {
87
+ if (reactiveModel.state !== undefined && columnsWithIds.length === 0) return;
88
+
87
89
  const currentState = reactiveModel.state ?? {};
88
90
  const newState: Record<string, PlTableFilter> = {};
89
91
  for (const { id } of columnsWithIds) {
@@ -146,11 +148,11 @@ const filterTypesString: PlTableFilterStringType[] = [
146
148
  'isNotNA',
147
149
  'isNA',
148
150
  'string_equals',
149
- // 'string_notEquals',
151
+ 'string_notEquals',
150
152
  'string_contains',
151
- // 'string_doesNotContain',
153
+ 'string_doesNotContain',
152
154
  'string_matches',
153
- // 'string_doesNotMatch',
155
+ 'string_doesNotMatch',
154
156
  'string_containsFuzzyMatch',
155
157
  ] as const;
156
158
  const filterOptions = computed(() => {
@@ -172,6 +174,9 @@ const filterOptions = computed(() => {
172
174
  }
173
175
  return map;
174
176
  });
177
+ const filterOptionsPresent = computed(() => {
178
+ return lodash.some(Object.values(filterOptions.value), (options) => options.length > 0);
179
+ });
175
180
 
176
181
  const getFilterReference = (filter: PlTableFilter): undefined | number | string => {
177
182
  const type = filter.type;
@@ -455,6 +460,7 @@ watch(
455
460
  </div>
456
461
  </form>
457
462
  </div>
463
+ <div v-if="!filterOptionsPresent">No filters applicable</div>
458
464
  </template>
459
465
 
460
466
  <style lang="css" scoped>