@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
|
@@ -17,7 +17,7 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
17
17
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
18
18
|
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
19
19
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
20
|
-
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, FocusManager, Form, Guard, MutableListModel, MutableValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace,
|
|
20
|
+
import { DelegatingValueModel, assert, UnaryCommand, lang, Dsl, GarbageCollector, Logger, TrackExternal, Command, FocusManager, Form, Guard, DebugContext, MutableListModel, MutableValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MultipleSelectionModel, DirtyTrackingForm, DelegatingCommand, Deferred, Trace, Binding, Functions } from '@coolon/pectin';
|
|
21
21
|
import ___default, { isEqual, isNil } from 'lodash';
|
|
22
22
|
import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
|
|
23
23
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
@@ -717,27 +717,28 @@ var AbstractListInputComponent = /** @class */ (function (_super) {
|
|
|
717
717
|
*/
|
|
718
718
|
// We have to register it as a disposable so it ditches any listeners when we're disposed.
|
|
719
719
|
_this.inputModel = _this.registerDisposable(new Form.DelegatingListModel());
|
|
720
|
-
_this.
|
|
720
|
+
_this.setValueIsInProgress = new Guard();
|
|
721
721
|
_this.valueChange = new EventEmitter();
|
|
722
722
|
var when = Dsl.disposeWith(_this).when;
|
|
723
723
|
when(_this.inputModel).changes(function (value) { return _this.valueChange.emit(value); }, {
|
|
724
724
|
initialValue: 'ignore',
|
|
725
|
-
unless: _this.
|
|
725
|
+
unless: _this.setValueIsInProgress
|
|
726
726
|
});
|
|
727
|
+
DebugContext.tag(_this.inputModel, _this.constructor.name + ".inputModel");
|
|
727
728
|
return _this;
|
|
728
729
|
}
|
|
729
730
|
Object.defineProperty(AbstractListInputComponent.prototype, "value", {
|
|
730
731
|
set: function (value) {
|
|
731
732
|
var _this = this;
|
|
732
|
-
|
|
733
|
-
|
|
733
|
+
this.setValueIsInProgress.whileTrue(function () {
|
|
734
|
+
if (!_this.listHolder) {
|
|
734
735
|
_this.listHolder = new MutableListModel(value);
|
|
735
736
|
_this.listModel = _this.listHolder;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
}
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
_this.listHolder.value = value;
|
|
740
|
+
}
|
|
741
|
+
});
|
|
741
742
|
},
|
|
742
743
|
enumerable: true,
|
|
743
744
|
configurable: true
|
|
@@ -785,6 +786,7 @@ var AbstractValueInputComponent = /** @class */ (function (_super) {
|
|
|
785
786
|
initialValue: 'ignore',
|
|
786
787
|
unless: _this.setValueInProgress
|
|
787
788
|
});
|
|
789
|
+
DebugContext.tag(_this.inputModel, _this.constructor.name + ".inputModel");
|
|
788
790
|
return _this;
|
|
789
791
|
}
|
|
790
792
|
Object.defineProperty(AbstractValueInputComponent.prototype, "value", {
|