From b085e53a9d10dfbef96a158367445e34f1340cea Mon Sep 17 00:00:00 2001 From: Matt Kingshott <51963402+mattkingshott@users.noreply.github.com> Date: Mon, 8 May 2023 14:34:06 +0100 Subject: [PATCH] WIP --- package.json | 2 +- src/components/search.vue | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 101c31a..465e9a6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@caneara/varnish", "author": "Caneara", - "version": "5.0.2", + "version": "5.0.3", "license": "MIT", "description": "A library of UI components built using Vue.js and TailwindCSS.", "repository": { diff --git a/src/components/search.vue b/src/components/search.vue index ffe4faa..b86fc38 100644 --- a/src/components/search.vue +++ b/src/components/search.vue @@ -14,8 +14,8 @@ :title="field.label" v-model="form[field.id]" :error="form.errors[field.id]" - v-if="! Is.array(field.control) && field.control === 'TextBox'" - :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`"> + :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`" + v-if="! System.Is.array(field.control) && field.control === 'TextBox'"> @@ -28,7 +28,7 @@ :error="form.errors[field.id]" :items="System.Page.property(field.control[1])" :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`" - v-if="Is.array(field.control) && field.control[0] === 'DropDown'"> + v-if="System.Is.array(field.control) && field.control[0] === 'DropDown'"> @@ -38,8 +38,8 @@ :title="field.label" v-model="form[field.id]" :error="form.errors[field.id]" - v-if="! Is.array(field.control) && field.control === 'Date'" - :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`"> + :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`" + v-if="! System.Is.array(field.control) && field.control === 'Date'"> @@ -48,8 +48,8 @@ :title="field.label" v-model="form[field.id]" :error="form.errors[field.id]" - v-if="! Is.array(field.control) && field.control === 'Period'" - :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`"> + :id="`search_${field.label.toLowerCase().replaceAll(' ', '_')}`" + v-if="! System.Is.array(field.control) && field.control === 'Period'"> @@ -152,7 +152,7 @@ : ''; this.source.search.filtering.forEach(field => { - attributes[field.id] = Is.array(field.control) && field.control[0] === 'DropDown' + attributes[field.id] = System.Is.array(field.control) && field.control[0] === 'DropDown' ? parseInt(System.Browser.queryString(field.id)) : System.Browser.queryString(field.id); });