@coolon/angular-ui-powerups 12.4.0-alpha.29 → 12.4.0-alpha.30

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.
@@ -6479,6 +6479,7 @@
6479
6479
  return [3 /*break*/, 4];
6480
6480
  case 3:
6481
6481
  e_1 = _c.sent();
6482
+ console.error(e_1);
6482
6483
  return [3 /*break*/, 4];
6483
6484
  case 4: return [3 /*break*/, 6];
6484
6485
  case 5:
@@ -6762,6 +6763,12 @@
6762
6763
  InlineEditorModel.prototype.isEditing = function () {
6763
6764
  return this.editing.value;
6764
6765
  };
6766
+ InlineEditorModel.prototype.cancelEdit = function () {
6767
+ this.editing.value = false;
6768
+ };
6769
+ InlineEditorModel.prototype.startEditing = function () {
6770
+ this.editing.value = true;
6771
+ };
6765
6772
  return InlineEditorModel;
6766
6773
  }());
6767
6774
  (function (InlineEditorModel) {
@@ -6776,7 +6783,7 @@
6776
6783
  * @example
6777
6784
  * const source: ValueModel<string> = ...;
6778
6785
  * const model = InlineEditorModel.create(source, {
6779
- * save(updated:string, context: InlineEditorModel.SaveContext) => {
6786
+ * save(updated:string, context: EditContext) => {
6780
6787
  * try {
6781
6788
  * try and save the thing...
6782
6789
  * } catch(error) {
@@ -6828,8 +6835,6 @@
6828
6835
  }); });
6829
6836
  _this.onDispose(function () { return _this.cancelEdit(); });
6830
6837
  return _this;
6831
- // const txo = new TransactionObserver({ verbose: true }).onEvent(e => console.log(e.name, e.payload));
6832
- // txo.observe('this.editFace', this.editFaceModel);
6833
6838
  }
6834
6839
  InlineStringEditorComponent.prototype.ngOnInit = function () {
6835
6840
  var _this = this;
@@ -6837,7 +6842,7 @@
6837
6842
  // use it once we've been initialised
6838
6843
  var _a = pectin.Dsl.disposeWith(this), chain = _a.chain, when = _a.when, valueOf = _a.valueOf;
6839
6844
  if (!this.editorModel) {
6840
- typescriptUtilities.lang.illegalState("editorModel is required");
6845
+ typescriptUtilities.lang.illegalState('editorModel is required');
6841
6846
  }
6842
6847
  when(this.editorModel.editing).becomesTruthy(function () {
6843
6848
  _this.editCommand.execute();