druxt-views 0.19.0 → 0.19.1
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.
|
@@ -282,7 +282,7 @@ export default {
|
|
|
282
282
|
|
|
283
283
|
watch: {
|
|
284
284
|
async '$route.query'(to) {
|
|
285
|
-
if (!Object.entries(to).length) {
|
|
285
|
+
if (!Object.entries(to || {}).length) {
|
|
286
286
|
this.model = {
|
|
287
287
|
filter: {},
|
|
288
288
|
page: null,
|
|
@@ -298,7 +298,7 @@ export default {
|
|
|
298
298
|
'model.filter': {
|
|
299
299
|
deep: true,
|
|
300
300
|
async handler(to, from) {
|
|
301
|
-
if (!Object.entries(to).length && !Object.entries(from).length) {
|
|
301
|
+
if (!Object.entries(to || {}).length && !Object.entries(from || {}).length) {
|
|
302
302
|
return
|
|
303
303
|
}
|
|
304
304
|
await this.$fetch()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt-views",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Drupal Views components for Druxt with support for filters, pagination and sorting.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"axios": "^0.27.2",
|
|
45
45
|
"deepmerge": "^4.2.2",
|
|
46
46
|
"drupal-jsonapi-params": "^2.0.0",
|
|
47
|
-
"druxt": "^0.19.
|
|
48
|
-
"druxt-blocks": "^0.16.
|
|
49
|
-
"druxt-entity": "^0.25.
|
|
50
|
-
"druxt-router": "^0.27.
|
|
47
|
+
"druxt": "^0.19.3",
|
|
48
|
+
"druxt-blocks": "^0.16.2",
|
|
49
|
+
"druxt-entity": "^0.25.1",
|
|
50
|
+
"druxt-router": "^0.27.4",
|
|
51
51
|
"md5": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
@@ -57,7 +57,9 @@ export const Wrapper = (args, { argTypes }) => ({
|
|
|
57
57
|
})
|
|
58
58
|
Wrapper.parameters = {
|
|
59
59
|
docs: {
|
|
60
|
-
|
|
60
|
+
description: {
|
|
61
|
+
story: 'The DruxtView component can be themed by using a Druxt Wrapper component.\n\nCreate an appropriately named component, using the relevant component option, with the following boilerplate:\n\n```jsx\n' + code + '\n```',
|
|
62
|
+
},
|
|
61
63
|
source: { code }
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -76,7 +78,9 @@ export const TemplateInjection = (args, { argTypes }) => ({
|
|
|
76
78
|
})
|
|
77
79
|
TemplateInjection.parameters = {
|
|
78
80
|
docs: {
|
|
79
|
-
|
|
81
|
+
description: {
|
|
82
|
+
story: 'The DruxtView component can be themed by injecting the default template into the compomnent.\n\n```jsx\n' + code + '\n```',
|
|
83
|
+
},
|
|
80
84
|
source: { code }
|
|
81
85
|
}
|
|
82
86
|
}
|