@shoper/phoenix_design_system 0.21.1-4 → 0.21.1-5
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/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js +3 -3
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.d.ts +1 -1
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js +3 -3
- package/package.json +1 -1
package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js
CHANGED
|
@@ -39,7 +39,7 @@ class PhoenixLightLitElement extends lit.LitElement {
|
|
|
39
39
|
this.removeEventListener(phoenix_light_lit_elements_constants.PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.rendered, this._handleComponentConnected);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
this.
|
|
42
|
+
this._dispatchLifecycleEvent = (eventName) => {
|
|
43
43
|
this.dispatchEvent(new CustomEvent(eventName, {
|
|
44
44
|
detail: {
|
|
45
45
|
$el: this
|
|
@@ -52,7 +52,7 @@ class PhoenixLightLitElement extends lit.LitElement {
|
|
|
52
52
|
super.firstUpdated(props);
|
|
53
53
|
this._slots = this._assignSlots();
|
|
54
54
|
this.requestUpdate();
|
|
55
|
-
this.
|
|
55
|
+
this._dispatchLifecycleEvent(phoenix_light_lit_elements_constants.PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.rendered);
|
|
56
56
|
this.isWebComponentRendered = true;
|
|
57
57
|
}
|
|
58
58
|
_setupChildrenWatch() {
|
|
@@ -73,7 +73,7 @@ class PhoenixLightLitElement extends lit.LitElement {
|
|
|
73
73
|
}
|
|
74
74
|
connectedCallback() {
|
|
75
75
|
super.connectedCallback();
|
|
76
|
-
this.
|
|
76
|
+
this._dispatchLifecycleEvent(phoenix_light_lit_elements_constants.PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.connected);
|
|
77
77
|
this.isWebComponentConnected = true;
|
|
78
78
|
this._setupChildrenWatch();
|
|
79
79
|
}
|
package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ export declare class PhoenixLightLitElement extends LitElement {
|
|
|
19
19
|
getSlot(name: string): TemplateResult[] | typeof nothing;
|
|
20
20
|
hasSlot(name: string): boolean;
|
|
21
21
|
createRenderRoot(): PhoenixLightLitElement;
|
|
22
|
-
private
|
|
22
|
+
private _dispatchLifecycleEvent;
|
|
23
23
|
}
|
package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js
CHANGED
|
@@ -35,7 +35,7 @@ class PhoenixLightLitElement extends LitElement {
|
|
|
35
35
|
this.removeEventListener(PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.rendered, this._handleComponentConnected);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
this.
|
|
38
|
+
this._dispatchLifecycleEvent = (eventName) => {
|
|
39
39
|
this.dispatchEvent(new CustomEvent(eventName, {
|
|
40
40
|
detail: {
|
|
41
41
|
$el: this
|
|
@@ -48,7 +48,7 @@ class PhoenixLightLitElement extends LitElement {
|
|
|
48
48
|
super.firstUpdated(props);
|
|
49
49
|
this._slots = this._assignSlots();
|
|
50
50
|
this.requestUpdate();
|
|
51
|
-
this.
|
|
51
|
+
this._dispatchLifecycleEvent(PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.rendered);
|
|
52
52
|
this.isWebComponentRendered = true;
|
|
53
53
|
}
|
|
54
54
|
_setupChildrenWatch() {
|
|
@@ -69,7 +69,7 @@ class PhoenixLightLitElement extends LitElement {
|
|
|
69
69
|
}
|
|
70
70
|
connectedCallback() {
|
|
71
71
|
super.connectedCallback();
|
|
72
|
-
this.
|
|
72
|
+
this._dispatchLifecycleEvent(PHOENIX_LIGHT_LIT_ELEMENTS_EVENT_NAMES.connected);
|
|
73
73
|
this.isWebComponentConnected = true;
|
|
74
74
|
this._setupChildrenWatch();
|
|
75
75
|
}
|