@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/CHANGELOG.md +12 -0
- package/dist/lib.js +3280 -3276
- package/dist/lib.umd.cjs +25 -25
- package/dist/src/components/PlAgDataTable/PlTableFilters.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/PlAgDataTable/PlTableFilters.vue +9 -3
package/package.json
CHANGED
|
@@ -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
|
-
|
|
151
|
+
'string_notEquals',
|
|
150
152
|
'string_contains',
|
|
151
|
-
|
|
153
|
+
'string_doesNotContain',
|
|
152
154
|
'string_matches',
|
|
153
|
-
|
|
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>
|