@easydata/crud 1.4.1-rc02 → 1.4.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.
- package/dist/browser/easydata.js +7 -2
- package/dist/browser/easydata.js.map +1 -1
- package/dist/browser/easydata.min.js +1 -1
- package/dist/browser/easydata.min.js.map +1 -1
- package/dist/bundles/easydata.crud.js +7 -2
- package/dist/bundles/easydata.crud.js.map +1 -1
- package/dist/bundles/easydata.crud.min.js +1 -1
- package/dist/bundles/easydata.crud.min.js.map +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/utils/utils.js.map +1 -1
- package/dist/lib/views/easy_data_view_dispatcher.d.ts +1 -0
- package/dist/lib/views/easy_data_view_dispatcher.js +6 -1
- package/dist/lib/views/easy_data_view_dispatcher.js.map +1 -1
- package/package.json +3 -3
package/dist/browser/easydata.js
CHANGED
|
@@ -3715,7 +3715,7 @@ var getEditDateTimeFormat = function (dtype) {
|
|
|
3715
3715
|
};
|
|
3716
3716
|
var setLocation = function (path) {
|
|
3717
3717
|
var state = window.history.state;
|
|
3718
|
-
history.
|
|
3718
|
+
history.pushState(state, document.title, path);
|
|
3719
3719
|
window.dispatchEvent(new Event('ed_set_location'));
|
|
3720
3720
|
};
|
|
3721
3721
|
//# sourceMappingURL=utils.js.map
|
|
@@ -12711,6 +12711,10 @@ var easy_data_view_dispatcher_EasyDataViewDispatcher = /** @class */ (function (
|
|
|
12711
12711
|
this.onSetLocation = function () {
|
|
12712
12712
|
_this.setActiveView();
|
|
12713
12713
|
};
|
|
12714
|
+
this.attach = function () {
|
|
12715
|
+
window.addEventListener('ed_set_location', _this.onSetLocation);
|
|
12716
|
+
window.addEventListener('popstate', _this.onSetLocation);
|
|
12717
|
+
};
|
|
12714
12718
|
this.options = public_api["utils"].assign(this.options, options || {});
|
|
12715
12719
|
if (this.options.rootEntity) {
|
|
12716
12720
|
this.options.showBackToEntities = false;
|
|
@@ -12776,7 +12780,7 @@ var easy_data_view_dispatcher_EasyDataViewDispatcher = /** @class */ (function (
|
|
|
12776
12780
|
};
|
|
12777
12781
|
EasyDataViewDispatcher.prototype.run = function () {
|
|
12778
12782
|
var _this = this;
|
|
12779
|
-
|
|
12783
|
+
this.attach();
|
|
12780
12784
|
return this.context.loadMetaData()
|
|
12781
12785
|
.then(function () {
|
|
12782
12786
|
_this.setActiveView();
|
|
@@ -12800,6 +12804,7 @@ var easy_data_view_dispatcher_EasyDataViewDispatcher = /** @class */ (function (
|
|
|
12800
12804
|
};
|
|
12801
12805
|
EasyDataViewDispatcher.prototype.detach = function () {
|
|
12802
12806
|
window.removeEventListener('ed_set_location', this.onSetLocation);
|
|
12807
|
+
window.removeEventListener('popstate', this.onSetLocation);
|
|
12803
12808
|
};
|
|
12804
12809
|
return EasyDataViewDispatcher;
|
|
12805
12810
|
}());
|