@coolon/angular-ui-powerups 2.0.0-alpha.12 → 2.0.0-alpha.13
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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +11 -9
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.js +11 -10
- package/esm2015/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-list-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js +2 -1
- package/esm2015/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-list-input.component.js +11 -10
- package/esm5/lib/components/forms/abstract-list-input.component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js +2 -1
- package/esm5/lib/components/forms/abstract-value-input.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +12 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +12 -10
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0-alpha.13](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2020-07-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* added debug context to input component models ([ade30dc](https://bitbucket.org/coolon/angular-ui-powerups/commit/ade30dc8be0a7a9392c9220f86aca018ce165afd))
|
|
11
|
+
|
|
5
12
|
## [2.0.0-alpha.12](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2020-07-29)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -888,27 +888,28 @@
|
|
|
888
888
|
*/
|
|
889
889
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
890
890
|
_this.inputModel = _this.registerDisposable(new pectin.Form.DelegatingListModel());
|
|
891
|
-
_this.
|
|
891
|
+
_this.setValueIsInProgress = new pectin.Guard();
|
|
892
892
|
_this.valueChange = new core.EventEmitter();
|
|
893
893
|
var when = pectin.Dsl.disposeWith(_this).when;
|
|
894
894
|
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, {
|
|
895
895
|
initialValue: 'ignore',
|
|
896
|
-
unless: _this.
|
|
896
|
+
unless: _this.setValueIsInProgress
|
|
897
897
|
});
|
|
898
|
+
pectin.DebugContext.tag(_this.inputModel, _this.constructor.name + ".inputModel");
|
|
898
899
|
return _this;
|
|
899
900
|
}
|
|
900
901
|
Object.defineProperty(AbstractListInputComponent.prototype, "value", {
|
|
901
902
|
set: function (value) {
|
|
902
903
|
var _this = this;
|
|
903
|
-
|
|
904
|
-
|
|
904
|
+
this.setValueIsInProgress.whileTrue(function () {
|
|
905
|
+
if (!_this.listHolder) {
|
|
905
906
|
_this.listHolder = new pectin.MutableListModel(value);
|
|
906
907
|
_this.listModel = _this.listHolder;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
_this.listHolder.value = value;
|
|
911
|
+
}
|
|
912
|
+
});
|
|
912
913
|
},
|
|
913
914
|
enumerable: true,
|
|
914
915
|
configurable: true
|
|
@@ -956,6 +957,7 @@
|
|
|
956
957
|
initialValue: 'ignore',
|
|
957
958
|
unless: _this.setValueInProgress
|
|
958
959
|
});
|
|
960
|
+
pectin.DebugContext.tag(_this.inputModel, _this.constructor.name + ".inputModel");
|
|
959
961
|
return _this;
|
|
960
962
|
}
|
|
961
963
|
Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
|