@melodicdev/components 1.0.9 → 1.0.10

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.
@@ -16787,12 +16787,6 @@ var nr, Re = class {
16787
16787
  constructor() {
16788
16788
  this._dialogID = Zl(), this._registered = !1;
16789
16789
  }
16790
- onCreate() {
16791
- this.registerDialog();
16792
- }
16793
- onRender() {
16794
- this.registerDialog();
16795
- }
16796
16790
  registerDialog() {
16797
16791
  if (this._registered) return;
16798
16792
  const t = this.elementRef.shadowRoot?.querySelector("dialog");
@@ -16802,7 +16796,7 @@ var nr, Re = class {
16802
16796
  this._dialogService.removeDialog(this._dialogID);
16803
16797
  }
16804
16798
  open() {
16805
- this._dialogRef.open();
16799
+ this.registerDialog(), this._dialogRef.open();
16806
16800
  }
16807
16801
  close(t) {
16808
16802
  this._dialogRef.close(t);
@@ -1,13 +1,11 @@
1
- import type { OnCreate, OnDestroy, OnRender, IElementRef } from '@melodicdev/core';
2
- export declare class DialogComponent implements IElementRef, OnCreate, OnDestroy, OnRender {
1
+ import type { OnDestroy, IElementRef } from '@melodicdev/core';
2
+ export declare class DialogComponent implements IElementRef, OnDestroy {
3
3
  elementRef: HTMLElement;
4
4
  private readonly _dialogService;
5
5
  private _dialogID;
6
6
  private _dialogEl;
7
7
  private _dialogRef;
8
8
  private _registered;
9
- onCreate(): void;
10
- onRender(): void;
11
9
  private registerDialog;
12
10
  onDestroy(): void;
13
11
  open(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/dialog/dialog.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAKnF,qBAMa,eAAgB,YAAW,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ;IAC1E,UAAU,EAAG,WAAW,CAAC;IAGhC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,WAAW,CAAS;IAE5B,QAAQ,IAAI,IAAI;IAIhB,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,cAAc;IAatB,SAAS,IAAI,IAAI;IAIjB,IAAI,IAAI,IAAI;IAIZ,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI;IAIpC,OAAO,CAAC,cAAc;CAQtB"}
1
+ {"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/components/overlays/dialog/dialog.component.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAK/D,qBAMa,eAAgB,YAAW,WAAW,EAAE,SAAS;IACtD,UAAU,EAAG,WAAW,CAAC;IAGhC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAEhD,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,cAAc;IAatB,SAAS,IAAI,IAAI;IAIjB,IAAI,IAAI,IAAI;IAKZ,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI;IAIpC,OAAO,CAAC,cAAc;CAQtB"}
@@ -17,12 +17,6 @@ let DialogComponent = class DialogComponent {
17
17
  this._dialogID = newID();
18
18
  this._registered = false;
19
19
  }
20
- onCreate() {
21
- this.registerDialog();
22
- }
23
- onRender() {
24
- this.registerDialog();
25
- }
26
20
  registerDialog() {
27
21
  if (this._registered)
28
22
  return;
@@ -39,6 +33,7 @@ let DialogComponent = class DialogComponent {
39
33
  this._dialogService.removeDialog(this._dialogID);
40
34
  }
41
35
  open() {
36
+ this.registerDialog();
42
37
  this._dialogRef.open();
43
38
  }
44
39
  close(result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melodicdev/components",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Themeable UI component library built on the Melodic Framework",
5
5
  "license": "MIT",
6
6
  "author": "Melodic Development",