@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.
@@ -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, DebugContext, Binding, Functions } from '@coolon/pectin';
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.setValueIsInitialising = new Guard();
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.setValueIsInitialising
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
- if (!this.listHolder) {
733
- this.setValueIsInitialising.whileTrue(function () {
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
- else {
739
- this.listHolder.value = value;
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", {