druxt-views 0.19.1 → 0.21.0

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.
@@ -281,7 +281,7 @@ export default {
281
281
  },
282
282
 
283
283
  watch: {
284
- async '$route.query'(to) {
284
+ '$route.query'(to) {
285
285
  if (!Object.entries(to || {}).length) {
286
286
  this.model = {
287
287
  filter: {},
@@ -291,42 +291,42 @@ export default {
291
291
  }
292
292
  },
293
293
 
294
- async displayId() {
295
- await this.$fetch()
294
+ arguments() {
295
+ this.$fetch()
296
+ },
297
+
298
+ displayId() {
299
+ this.$fetch()
296
300
  },
297
301
 
298
302
  'model.filter': {
299
303
  deep: true,
300
- async handler(to, from) {
304
+ handler(to, from) {
301
305
  if (!Object.entries(to || {}).length && !Object.entries(from || {}).length) {
302
306
  return
303
307
  }
304
- await this.$fetch()
308
+ this.$fetch()
305
309
  },
306
310
  },
307
311
 
308
- async 'model.page'(to, from) {
312
+ 'model.page'(to, from) {
309
313
  if (to !== from) {
310
- await this.$fetch()
314
+ this.$fetch()
311
315
  }
312
316
  },
313
317
 
314
- async 'model.sort'(to, from) {
318
+ 'model.sort'(to, from) {
315
319
  if (to !== from) {
316
- await this.$fetch()
320
+ this.$fetch()
317
321
  }
318
322
  },
319
323
 
320
- async query() {
321
- await this.$fetch()
324
+ uuid() {
325
+ this.$fetch()
322
326
  },
323
327
 
324
- async uuid() {
325
- await this.$fetch()
326
- },
327
-
328
- async viewId() {
329
- await this.$fetch()
328
+ viewId() {
329
+ this.$fetch()
330
330
  },
331
331
  },
332
332
 
@@ -641,6 +641,16 @@ export default {
641
641
 
642
642
  return scopedSlots
643
643
  },
644
+
645
+ /**
646
+ * Druxt development template tool configuration.
647
+ */
648
+ template: {
649
+ debug: "{ view, results }",
650
+ mixins: {
651
+ 'DruxtViewsViewMixin': 'druxt-views'
652
+ }
653
+ }
644
654
  }
645
655
  }
646
656
 
@@ -44,7 +44,17 @@ export default {
44
44
  * @param {object} context - The module component ViewModel.
45
45
  * @returns {PropsData}
46
46
  */
47
- propsData: ({ filter, model }) => ({ filter, value: model })
47
+ propsData: ({ filter, model }) => ({ filter, value: model }),
48
+
49
+ /**
50
+ * Druxt development template tool configuration.
51
+ */
52
+ template: {
53
+ debug: "{ filter, model }",
54
+ mixins: {
55
+ 'DruxtViewsFilterMixin': 'druxt-views'
56
+ }
57
+ }
48
58
  },
49
59
  }
50
60
 
@@ -115,6 +115,16 @@ export default {
115
115
 
116
116
  return scopedSlots
117
117
  },
118
+
119
+ /**
120
+ * Druxt development template tool configuration.
121
+ */
122
+ template: {
123
+ debug: "{ options, filters, model, type }",
124
+ mixins: {
125
+ 'DruxtViewsFiltersMixin': 'druxt-views'
126
+ }
127
+ }
118
128
  },
119
129
  }
120
130
 
@@ -167,6 +167,16 @@ export default {
167
167
  ]),
168
168
  ])
169
169
  }
170
+ },
171
+
172
+ /**
173
+ * Druxt development template tool configuration.
174
+ */
175
+ template: {
176
+ debug: "{ count, options, resource, type, model }",
177
+ mixins: {
178
+ 'DruxtViewsPagerMixin': 'druxt-views'
179
+ }
170
180
  }
171
181
  }
172
182
  }
@@ -112,6 +112,16 @@ export default {
112
112
  ])))
113
113
  ]),
114
114
  }
115
+ },
116
+
117
+ /**
118
+ * Druxt development template tool configuration.
119
+ */
120
+ template: {
121
+ debug: "{ model, options, sorts, type }",
122
+ mixins: {
123
+ 'DruxtViewsSortsMixin': 'druxt-views'
124
+ }
115
125
  }
116
126
  }
117
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt-views",
3
- "version": "0.19.1",
3
+ "version": "0.21.0",
4
4
  "description": "Drupal Views components for Druxt with support for filters, pagination and sorting.",
5
5
  "keywords": [
6
6
  "cms",
@@ -43,15 +43,15 @@
43
43
  "dependencies": {
44
44
  "axios": "^0.27.2",
45
45
  "deepmerge": "^4.2.2",
46
- "drupal-jsonapi-params": "^2.0.0",
47
- "druxt": "^0.19.3",
48
- "druxt-blocks": "^0.16.2",
49
- "druxt-entity": "^0.25.1",
50
- "druxt-router": "^0.27.4",
46
+ "drupal-jsonapi-params": "^2.1.0",
47
+ "druxt": "^0.21.0",
48
+ "druxt-blocks": "^0.17.0",
49
+ "druxt-entity": "^0.27.0",
50
+ "druxt-router": "^0.29.0",
51
51
  "md5": "^2.3.0"
52
52
  },
53
53
  "optionalDependencies": {
54
- "vue": "^2.6.14",
54
+ "vue": "^2.7.10",
55
55
  "vuex": "^3.6.2"
56
56
  },
57
57
  "publishConfig": {
@@ -1,4 +1,10 @@
1
1
  import DruxtView from 'druxt-views/dist/components/DruxtView.vue'
2
+ import DruxtModule from 'druxt/dist/components/DruxtModule.vue'
3
+
4
+ DruxtView.__docgenInfo.props = [
5
+ ...DruxtModule.__docgenInfo.props,
6
+ ...DruxtView.__docgenInfo.props,
7
+ ].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')
2
8
 
3
9
  export default {
4
10
  title: 'Druxt/Views/DruxtView',