@projectcaluma/ember-core 14.2.0 → 14.3.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.
|
@@ -87,6 +87,13 @@ export default class BaseQuery {
|
|
|
87
87
|
return this._fetchMore.perform(...args);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
refresh() {
|
|
91
|
+
// This peforms the fetch task with the current arguments which will result
|
|
92
|
+
// in a refresh of the base query. `queryOptions` is explicitly not being
|
|
93
|
+
// passed as this is merged with `this.queryOptions` in the task anyways.
|
|
94
|
+
return this._fetch.perform({ filter: this.filter, order: this.order });
|
|
95
|
+
}
|
|
96
|
+
|
|
90
97
|
@restartableTask
|
|
91
98
|
*_fetch({ filter = [], order = [], queryOptions = {} } = {}) {
|
|
92
99
|
yield this._fetchPage.cancelAll({ resetState: true });
|
|
@@ -54,6 +54,15 @@ export default class CalumaQueryResource extends Resource {
|
|
|
54
54
|
this.query.fetchMore();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
@action
|
|
58
|
+
refresh(event) {
|
|
59
|
+
if (event instanceof Event) {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
this.query.refresh();
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
get value() {
|
|
58
67
|
return this.query.value;
|
|
59
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@projectcaluma/ember-core",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Ember core addon for working with Caluma.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -51,15 +51,17 @@
|
|
|
51
51
|
"ember-load-initializers": "3.0.1",
|
|
52
52
|
"ember-qunit": "9.0.2",
|
|
53
53
|
"ember-resolver": "13.1.0",
|
|
54
|
+
"ember-sinon-qunit": "7.5.0",
|
|
54
55
|
"ember-source": "6.1.0",
|
|
55
56
|
"ember-source-channel-url": "3.0.0",
|
|
56
57
|
"ember-try": "4.0.0",
|
|
57
58
|
"loader.js": "4.7.0",
|
|
58
59
|
"qunit": "2.24.1",
|
|
59
60
|
"qunit-dom": "3.4.0",
|
|
61
|
+
"sinon": "20.0.0",
|
|
60
62
|
"uikit": "3.23.7",
|
|
61
63
|
"webpack": "5.99.8",
|
|
62
|
-
"@projectcaluma/ember-testing": "14.
|
|
64
|
+
"@projectcaluma/ember-testing": "14.3.0"
|
|
63
65
|
},
|
|
64
66
|
"peerDependencies": {
|
|
65
67
|
"ember-data": "*",
|