quasar-factory-lib 0.0.43 → 0.0.45

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
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.43",
100
+ "version": "0.0.45",
101
101
  "author": ""
102
102
  }
@@ -127,15 +127,15 @@ export default defineComponent({
127
127
  },
128
128
  filterMethod: {
129
129
  type: Function,
130
- required: true
130
+ default: function () {}
131
131
  },
132
132
  filterComputed: {
133
133
  type: Object,
134
- required: true
134
+ default: function () {}
135
135
  },
136
136
  sortMethod: {
137
137
  type: Function,
138
- required: true
138
+ default: function () {}
139
139
  },
140
140
  selectionType: {
141
141
  type: String as () => 'none' | 'single' | 'multiple',
@@ -2,8 +2,8 @@
2
2
 
3
3
  import infiniteScroll from './infiniteScroll'
4
4
  const filterMethod = {
5
- filter (self: {filterTerms: string, filteredRows: object [] | [] }, rows: string | [], terms: { search: string }): object[] | [] {
6
- if (self.store.filterValue !== '') {
5
+ filter (self: { filteredRows: object [] | [] }, rows: string | [], terms: { search: string }): object[] | [] {
6
+ if (terms.search !== '') {
7
7
  const filteredRows = []
8
8
  const lowerSearch = terms.search ? terms.search.toLowerCase() : ''
9
9
  for (let i = 0; i < self.rows.length; i++) {