smoothly 1.0.1-alpha.2 → 1.0.1-alpha.3

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.
@@ -7613,6 +7613,9 @@ const SmoothlyForm = class {
7613
7613
  index.registerInstance(this, hostRef);
7614
7614
  this.smoothlyFormInput = index.createEvent(this, "smoothlyFormInput", 7);
7615
7615
  this.smoothlyFormSubmit = index.createEvent(this, "smoothlyFormSubmit", 7);
7616
+ this.smoothlyFormReset = index.createEvent(this, "smoothlyFormReset", 7);
7617
+ this.smoothlyFormEdit = index.createEvent(this, "smoothlyFormEdit", 7);
7618
+ this.smoothlyFormClear = index.createEvent(this, "smoothlyFormClear", 7);
7616
7619
  this.notice = index.createEvent(this, "notice", 7);
7617
7620
  this.inputs = new Map();
7618
7621
  this.readonlyAtLoad = this.readonly;
@@ -7706,18 +7709,21 @@ const SmoothlyForm = class {
7706
7709
  this.inputs.forEach(input => {
7707
7710
  Clearable.is(input) && input.clear();
7708
7711
  });
7712
+ this.smoothlyFormClear.emit();
7709
7713
  }
7710
7714
  async edit(editable) {
7711
7715
  this.inputs.forEach(input => {
7712
7716
  Editable.Element.type.is(input) && input.edit(editable);
7713
7717
  });
7714
7718
  this.readonly = !editable;
7719
+ this.smoothlyFormEdit.emit(editable);
7715
7720
  }
7716
7721
  async reset() {
7717
7722
  this.inputs.forEach(input => {
7718
7723
  Editable.Element.type.is(input) && input.reset();
7719
7724
  });
7720
7725
  this.changed = [...this.inputs.values()].some(input => (Editable.type.is(input) ? input.changed : true));
7726
+ this.smoothlyFormReset.emit();
7721
7727
  }
7722
7728
  async setInitialValue() {
7723
7729
  this.inputs.forEach(input => {