@blackcube/aurelia-kit 1.0.0-rc8 → 1.0.0-rc9

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/README.md CHANGED
@@ -228,6 +228,8 @@ resolve(IEventAggregator).publish(Channels.Modal, <IModal>{ action: ModalAction.
228
228
 
229
229
  - `Open` (or `Toggle` when closed) opens the dialog; Escape, any `[data-dialog="close"]`, `Close` and `Toggle` close it
230
230
  through the hide transition — a menu open inside (`aria-expanded`) is closed first.
231
+ - `Open` on a dialog already open only renews its `title`: the page shown in it changed (a creation turned into its
232
+ edition), the dialog stays.
231
233
  - What the slot holds belongs to the page that projects it, its forms included.
232
234
  - `ModalStatus.Closed` with the `id` tells the page the dialog is closed (its route can be left).
233
235
  - `<bleet-dialog>` itself extends `AbstractDialog`, with the server HTML on top of it.
package/dist/index.es.js CHANGED
@@ -4399,7 +4399,7 @@ var Gi, Ki, qi = class {
4399
4399
  onModalEvent = (e) => {
4400
4400
  if (this.id !== "" && e.id === this.id) {
4401
4401
  let t = this.dialogElement.open === !0 && this.closing === !1;
4402
- e.action === N.Open && t === !1 ? this.show(e) : e.action === N.Close && t === !0 ? this.close() : e.action === N.Toggle && (t === !0 ? this.close() : this.show(e));
4402
+ e.action === N.Open && t === !1 ? this.show(e) : e.action === N.Open ? this.title = e.title ?? "" : e.action === N.Close && t === !0 ? this.close() : e.action === N.Toggle && (t === !0 ? this.close() : this.show(e));
4403
4403
  }
4404
4404
  };
4405
4405
  onCancelEvent = (e) => {