@twobirds/microcomponents 0.0.28 → 0.0.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.
- package/assets/documentation/MicroComponents.md +45 -22
- package/dist/customObservables.d.ts +1 -1
- package/dist/customObservables.d.ts.map +1 -1
- package/dist/customObservables.min.js +1 -1
- package/dist/customObservables.ts +2 -2
- package/dist/microcomponents.min.js +1 -1
- package/dist/test.ts +3 -3
- package/package.json +1 -1
- package/public/classes/DC.html +15 -15
- package/public/classes/MC.html +7 -7
- package/public/classes/McBase.html +4 -4
- package/public/classes/McEvent.html +13 -13
- package/public/customObservables.js +1 -1
- package/public/customObservables.js.map +1 -1
- package/public/customObservables.min.js +1 -1
- package/public/documentation/MicroComponents.md +39 -20
- package/public/functions/addListener.html +1 -1
- package/public/functions/removeListener.html +1 -1
- package/public/interfaces/HTMLMcElement.html +2 -2
- package/public/microcomponents.min.js +1 -1
- package/public/test.js +3 -3
- package/public/test.js.map +1 -1
- package/src/customObservables.ts +2 -2
- package/src/test.ts +3 -3
package/public/classes/MC.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<ul class="tsd-hierarchy">
|
|
23
23
|
<li><span class="target">MC</span></li></ul></li></ul></section><aside class="tsd-sources">
|
|
24
24
|
<ul>
|
|
25
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
25
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L236">src/MC.ts:236</a></li></ul></aside>
|
|
26
26
|
<section class="tsd-panel-group tsd-index-group">
|
|
27
27
|
<section class="tsd-panel tsd-index-panel">
|
|
28
28
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<h4 class="tsd-returns-title">Returns <a href="MC.html" class="tsd-signature-type" data-tsd-kind="Class">MC</a></h4><aside class="tsd-sources">
|
|
62
62
|
<p>Overrides <a href="McBase.html">McBase</a>.<a href="McBase.html#constructor">constructor</a></p>
|
|
63
63
|
<ul>
|
|
64
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
64
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L240">src/MC.ts:240</a></li></ul></aside></li></ul></section></section>
|
|
65
65
|
<section class="tsd-panel-group tsd-member-group">
|
|
66
66
|
<h2>Properties</h2>
|
|
67
67
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private tsd-is-inherited"><a id="_target" class="tsd-anchor"></a>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<div class="tsd-signature">#target<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WeakRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources">
|
|
70
70
|
<p>Inherited from <a href="McBase.html">McBase</a>.<a href="McBase.html#_target">#target</a></p>
|
|
71
71
|
<ul>
|
|
72
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
72
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L216">src/MC.ts:216</a></li></ul></aside></section>
|
|
73
73
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_mc" class="tsd-anchor"></a>
|
|
74
74
|
<h3 class="tsd-anchor-link"><span>_mc</span><a href="#_mc" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
75
75
|
<div class="tsd-signature">_mc<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>[key: <span class="tsd-signature-type">string</span>]<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></div>
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
<li class="tsd-parameter-index-signature">
|
|
80
80
|
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">any</span></h5></li></ul></div><aside class="tsd-sources">
|
|
81
81
|
<ul>
|
|
82
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
82
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L238">src/MC.ts:238</a></li></ul></aside></section>
|
|
83
83
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="trigger" class="tsd-anchor"></a>
|
|
84
84
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>trigger</span><a href="#trigger" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
85
85
|
<div class="tsd-signature">trigger<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span>, ev<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="McEvent.html" class="tsd-signature-type" data-tsd-kind="Class">McEvent</a>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> = trigger</span></div>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<h5>data: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
|
|
102
102
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div><aside class="tsd-sources">
|
|
103
103
|
<ul>
|
|
104
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
104
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L244">src/MC.ts:244</a></li></ul></aside></section></section>
|
|
105
105
|
<section class="tsd-panel-group tsd-member-group">
|
|
106
106
|
<h2>Accessors</h2>
|
|
107
107
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><a id="target" class="tsd-anchor"></a>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources">
|
|
113
113
|
<p>Inherited from McBase.target</p>
|
|
114
114
|
<ul>
|
|
115
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
115
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L230">src/MC.ts:230</a></li></ul></aside></li></ul></section></section>
|
|
116
116
|
<section class="tsd-panel-group tsd-member-group">
|
|
117
117
|
<h2>Methods</h2>
|
|
118
118
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="trigger-1" class="tsd-anchor"></a>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> bubble: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
132
132
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="MC.html" class="tsd-signature-type" data-tsd-kind="Class">MC</a></h4><aside class="tsd-sources">
|
|
133
133
|
<ul>
|
|
134
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
134
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L246">src/MC.ts:246</a></li></ul></aside></li></ul></section></section></div>
|
|
135
135
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
136
136
|
<div class="tsd-navigation settings">
|
|
137
137
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li><a href="MC.html" class="tsd-signature-type" data-tsd-kind="Class">MC</a></li>
|
|
24
24
|
<li><a href="DC.html" class="tsd-signature-type" data-tsd-kind="Class">DC</a></li></ul></li></ul></section><aside class="tsd-sources">
|
|
25
25
|
<ul>
|
|
26
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
26
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L214">src/MC.ts:214</a></li></ul></aside>
|
|
27
27
|
<section class="tsd-panel-group tsd-index-group">
|
|
28
28
|
<section class="tsd-panel tsd-index-panel">
|
|
29
29
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
<h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">any</span></h5></li></ul></li></ul></div>
|
|
59
59
|
<h4 class="tsd-returns-title">Returns <a href="McBase.html" class="tsd-signature-type" data-tsd-kind="Class">McBase</a></h4><aside class="tsd-sources">
|
|
60
60
|
<ul>
|
|
61
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
61
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L218">src/MC.ts:218</a></li></ul></aside></li></ul></section></section>
|
|
62
62
|
<section class="tsd-panel-group tsd-member-group">
|
|
63
63
|
<h2>Properties</h2>
|
|
64
64
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_target" class="tsd-anchor"></a>
|
|
65
65
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#target</span><a href="#_target" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
66
66
|
<div class="tsd-signature">#target<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WeakRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources">
|
|
67
67
|
<ul>
|
|
68
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
68
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L216">src/MC.ts:216</a></li></ul></aside></section></section>
|
|
69
69
|
<section class="tsd-panel-group tsd-member-group">
|
|
70
70
|
<h2>Accessors</h2>
|
|
71
71
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="target" class="tsd-anchor"></a>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<li class="tsd-description">
|
|
76
76
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4><aside class="tsd-sources">
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
78
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L230">src/MC.ts:230</a></li></ul></aside></li></ul></section></section></div>
|
|
79
79
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
80
80
|
<div class="tsd-navigation settings">
|
|
81
81
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li><span class="target">McEvent</span></li></ul></section><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
24
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
23
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L16">src/McEvent.ts:16</a></li>
|
|
24
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L21">src/McEvent.ts:21</a></li></ul></aside>
|
|
25
25
|
<section class="tsd-panel-group tsd-index-group">
|
|
26
26
|
<section class="tsd-panel tsd-index-panel">
|
|
27
27
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -68,34 +68,34 @@
|
|
|
68
68
|
<h5>bubble: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'l'</span></h5></li></ul></div>
|
|
69
69
|
<h4 class="tsd-returns-title">Returns <a href="McEvent.html" class="tsd-signature-type" data-tsd-kind="Class">McEvent</a></h4><aside class="tsd-sources">
|
|
70
70
|
<ul>
|
|
71
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
71
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L27">src/McEvent.ts:27</a></li></ul></aside></li></ul></section></section>
|
|
72
72
|
<section class="tsd-panel-group tsd-member-group">
|
|
73
73
|
<h2>Properties</h2>
|
|
74
74
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_immediateStopped" class="tsd-anchor"></a>
|
|
75
75
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#immediate<wbr/>Stopped</span><a href="#_immediateStopped" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
76
76
|
<div class="tsd-signature">#immediate<wbr/>Stopped<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
78
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L25">src/McEvent.ts:25</a></li></ul></aside></section>
|
|
79
79
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_stopped" class="tsd-anchor"></a>
|
|
80
80
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#stopped</span><a href="#_stopped" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
81
81
|
<div class="tsd-signature">#stopped<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
|
|
82
82
|
<ul>
|
|
83
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
83
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L24">src/McEvent.ts:24</a></li></ul></aside></section>
|
|
84
84
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_type" class="tsd-anchor"></a>
|
|
85
85
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#type</span><a href="#_type" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
86
86
|
<div class="tsd-signature">#type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
87
87
|
<ul>
|
|
88
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
88
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L23">src/McEvent.ts:23</a></li></ul></aside></section>
|
|
89
89
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="bubble" class="tsd-anchor"></a>
|
|
90
90
|
<h3 class="tsd-anchor-link"><span>bubble</span><a href="#bubble" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
91
91
|
<div class="tsd-signature">bubble<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
92
92
|
<ul>
|
|
93
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
93
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L18">src/McEvent.ts:18</a></li></ul></aside></section>
|
|
94
94
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="data" class="tsd-anchor"></a>
|
|
95
95
|
<h3 class="tsd-anchor-link"><span>data</span><a href="#data" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
96
96
|
<div class="tsd-signature">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources">
|
|
97
97
|
<ul>
|
|
98
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
98
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L17">src/McEvent.ts:17</a></li></ul></aside></section></section>
|
|
99
99
|
<section class="tsd-panel-group tsd-member-group">
|
|
100
100
|
<h2>Accessors</h2>
|
|
101
101
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="immediateStopped" class="tsd-anchor"></a>
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
<li class="tsd-description">
|
|
106
106
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
107
107
|
<ul>
|
|
108
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
108
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L42">src/McEvent.ts:42</a></li></ul></aside></li></ul></section>
|
|
109
109
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="stopped" class="tsd-anchor"></a>
|
|
110
110
|
<h3 class="tsd-anchor-link"><span>stopped</span><a href="#stopped" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
111
111
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
<li class="tsd-description">
|
|
114
114
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
115
115
|
<ul>
|
|
116
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
116
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L38">src/McEvent.ts:38</a></li></ul></aside></li></ul></section>
|
|
117
117
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="type" class="tsd-anchor"></a>
|
|
118
118
|
<h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
119
119
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<li class="tsd-description">
|
|
122
122
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
123
123
|
<ul>
|
|
124
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
124
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L34">src/McEvent.ts:34</a></li></ul></aside></li></ul></section></section>
|
|
125
125
|
<section class="tsd-panel-group tsd-member-group">
|
|
126
126
|
<h2>Methods</h2>
|
|
127
127
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stopImmediatePropagation" class="tsd-anchor"></a>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<li class="tsd-description">
|
|
132
132
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
133
133
|
<ul>
|
|
134
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
134
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L50">src/McEvent.ts:50</a></li></ul></aside></li></ul></section>
|
|
135
135
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stopPropagation" class="tsd-anchor"></a>
|
|
136
136
|
<h3 class="tsd-anchor-link"><span>stop<wbr/>Propagation</span><a href="#stopPropagation" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
137
137
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<li class="tsd-description">
|
|
140
140
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
141
141
|
<ul>
|
|
142
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
142
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/McEvent.ts#L46">src/McEvent.ts:46</a></li></ul></aside></li></ul></section></section></div>
|
|
143
143
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
144
144
|
<div class="tsd-navigation settings">
|
|
145
145
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { isObject, parse, debounce, deepEqual } from './helpers.js';
|
|
3
|
-
export const
|
|
3
|
+
export const observe = (target, propertyName) => {
|
|
4
4
|
let keys = !propertyName ? [...Object.getOwnPropertyNames(target)] : [propertyName];
|
|
5
5
|
keys.forEach((key) => {
|
|
6
6
|
// console.log( 'co propname', key, typeof target[key], target[key] );
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customObservables.js","sourceRoot":"","sources":["../src/customObservables.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"customObservables.js","sourceRoot":"","sources":["../src/customObservables.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAE,MAAmB,EAAE,YAAqB,EAAG,EAAE;IAEvE,IAAI,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,CAAE,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC,CAAC,CAAE,YAAY,CAAE,CAAC;IAExF,IAAI,CAAC,OAAO,CAAE,CAAC,GAAG,EAAE,EAAE;QACrB,sEA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GAAG,CAAC;IAEnB,CAAC,CAAC,CAAC;AAEJ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.customObservables=t():e.customObservables=t()}(this,(()=>(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return null!=e&&"object"==typeof e}function o(e,t){let r;return()=>{clearTimeout(r),r=setTimeout((function(){e(...arguments)}),t)}}function n(e,t){const o=Object.keys(e),c=Object.keys(t);if(o.length!==c.length)return!1;for(const c of o){const o=e[c],a=t[c],u=r(o)&&r(a);if(u&&!n(o,a)||!u&&o!==a)return!1}return!0}function c(e,t,o=null,n){let a=e.split(".");n||(n=t);let u=a.shift(),s=a.join(".");null!==o&&u.length&&void 0===t[u]&&(t[u]={});let l=t[u];return 0===s.length?null!==o?(t[u]=o,n):t[u]:r(t[u])?c(s,t[u],o,n):o?n:l[u]}function a(e,t){var o=Array.from(arguments);if(o.length){if(1===o.length)return o[1];if(o.length>2){for(;o.length>1;)o[0]=a(o[0],o[1]),o.splice(1,1);return o[0]}if("string"==typeof e){var n=e.match(/\{[^\{\}]*\}/g);n&&n.forEach((function(r){var o=c(r.substr(1,r.length-2),t);void 0!==o&&(e=e.replace(r,o))}))}else if(r(e))switch(e.constructor){case Object:Object.keys(e).forEach((function(r){e.hasOwnProperty(r)&&(e[r]=a(e[r],t))}));break;case Array:e.forEach((function(r,o,n){n[o]=a(e[o],t)}))}return e}console.error("no arguments give to parse")}e.r(t),e.d(t,{
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.customObservables=t():e.customObservables=t()}(this,(()=>(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function r(e){return null!=e&&"object"==typeof e}function o(e,t){let r;return()=>{clearTimeout(r),r=setTimeout((function(){e(...arguments)}),t)}}function n(e,t){const o=Object.keys(e),c=Object.keys(t);if(o.length!==c.length)return!1;for(const c of o){const o=e[c],a=t[c],u=r(o)&&r(a);if(u&&!n(o,a)||!u&&o!==a)return!1}return!0}function c(e,t,o=null,n){let a=e.split(".");n||(n=t);let u=a.shift(),s=a.join(".");null!==o&&u.length&&void 0===t[u]&&(t[u]={});let l=t[u];return 0===s.length?null!==o?(t[u]=o,n):t[u]:r(t[u])?c(s,t[u],o,n):o?n:l[u]}function a(e,t){var o=Array.from(arguments);if(o.length){if(1===o.length)return o[1];if(o.length>2){for(;o.length>1;)o[0]=a(o[0],o[1]),o.splice(1,1);return o[0]}if("string"==typeof e){var n=e.match(/\{[^\{\}]*\}/g);n&&n.forEach((function(r){var o=c(r.substr(1,r.length-2),t);void 0!==o&&(e=e.replace(r,o))}))}else if(r(e))switch(e.constructor){case Object:Object.keys(e).forEach((function(r){e.hasOwnProperty(r)&&(e[r]=a(e[r],t))}));break;case Array:e.forEach((function(r,o,n){n[o]=a(e[o],t)}))}return e}console.error("no arguments give to parse")}e.r(t),e.d(t,{observe:()=>u});const u=(e,t)=>{(t?[t]:[...Object.getOwnPropertyNames(e)]).forEach((t=>{if("_"===t[0]||void 0===e?.[t])return;let c,u=e[t];if(!u.prototype)switch(typeof u){case"string":c=String;break;case"number":c=Number;break;case"boolean":c=Boolean;break;case"object":c=u instanceof Array?Array:Object;break;default:return}let s=class extends c{constructor(e){super(e),this.constructor.callbacks=[],r(e)&&(this.constructor.bound=[],Object.getOwnPropertyNames(e).forEach((t=>{this[t]=e[t]})))}observe(e){return this.constructor.callbacks.push(e),this}bind(e){const t=this,o=r(t.valueOf()),n=t.constructor.bound;if(o){function c(e){if(e.nodeType&&3===e.nodeType){var r=Array.from(e.nodeValue&&e.nodeValue.match(/\{[^\{\}]*\}/g)||[]);if(r.length>0){var u=(s=e.nodeValue||"",function(t){var n,c=!1;return r&&(o?r.forEach((function(e){u.values[e]!==t[e]&&(u.values[e]=t[e],c=!0)})):(u.values=t,c=!0)),c&&(n=s,e.nodeValue=o?a(n,u.values):n.replace(/\{.*\}/g,u.values)),t});u.values=o?{}:void 0,r=Array.from(r).map((e=>e.replace(/[\{\}]/g,"").trim()));let t=o?{}:void 0;r.forEach((function(e){o&&(t[e]="")})),n.push(u)}Array.from(e.childNodes).forEach((function(e){c(e)})),t.notify()}var s;e.nodeType&&1===e.nodeType&&(Array.from(e.attributes).forEach((function(t){var r=Array.from(t.value&&t.value.match(/\{[^\{\}]*\}/g)||[]);if(r.length>0){var o=function(t){return function(n){var c,u=!1;return r&&r.forEach((function(e){o.values[e]!==n[e]&&(o.values[e]=n[e],u=!0)})),u&&(c=t,e.nodeValue=a(c,o.values)),n}}(t.value||"");o.values={},r=Array.from(r).map((e=>e.replace(/[\{\}]/g,"").trim()));let c={};r.forEach((function(e){c[e]=""})),n.push(o)}})),Array.from(e.childNodes).forEach((function(e){c(e)})),t.notify()),e.nodeType&&11===e.nodeType&&Array.from(e.childNodes).forEach((function(e){c(e)}))}c(e),n.length>0&&t.notify()}else console.warn("IGNORED - cannot bind a non-Object to the dom, IS:",typeof t.valueOf());return this}notify(){let e=this,t=r(e.valueOf())&&e.valueOf()instanceof Array==0?structuredClone(Object.assign({},e)):e.valueOf();return e.constructor.callbacks.forEach((e=>{e(t)})),r(e.valueOf())&&e.constructor.bound.forEach((e=>{e(t)})),this}},l=new s(u);Object.defineProperty(e,t,{enumerable:!0,get(){if(r(l.valueOf())){let e=structuredClone(Object.assign({},l));setTimeout(o((function(){n(structuredClone(Object.assign({},l)),e)||l.notify()}),0),0)}return l},set(e){if(typeof e==typeof l.valueOf())if(r(l.valueOf())&&l.valueOf()instanceof Array==0){let t=structuredClone(Object.assign({},l));e=structuredClone(Object.assign({},e));let r=l.constructor?.hasFormHandler??!1,c=l.constructor.callbacks,a=l.constructor.bound;l=new s(structuredClone(Object.assign({},e))),l.constructor.callbacks=r,l.constructor.callbacks=c,l.constructor.bound=a,setTimeout(o((function(){n(structuredClone(Object.assign({},l)),t)||l.notify()}),0),0)}else{let t=l.valueOf(),r=l.constructor.callbacks;l=new s(e),l.constructor.callbacks=r,e!==t&&l.notify()}else console.warn("IGNORED - cannot change observable types, IS:",typeof l.valueOf(),"- CANNOT BECOME:",typeof e)}}),e[t]=u}))};return t})()));
|
|
@@ -27,16 +27,27 @@ As an application programmer you should understand **MC** and **DC** methods and
|
|
|
27
27
|
- **DC** use observables and formValues to provide 1-way and 2-way binding to the DOM.
|
|
28
28
|
- **DC** have selectors to find other DCs in the DOM.
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## McBase() Superclass (not exported), Overview
|
|
31
31
|
|
|
32
32
|
**Instance Properties**
|
|
33
33
|
- `.target`: readonly, a getter returning the DOM element or parent MC instance your instance resides in
|
|
34
|
+
|
|
35
|
+
**Constructor:**
|
|
36
|
+
- calls `init()`: triggers the 'init' lifecycle event, also recursively into the inner '._mc' structure.
|
|
37
|
+
- calls `autoAttachListeners()`: methods in your MC that start with "on[A-Z]" or "one[A-Z]" and describe native DOM events (e.g. "onClick") will be added to the DOM Element as listeners.
|
|
38
|
+
|
|
39
|
+
# Exported:
|
|
40
|
+
|
|
41
|
+
## MC() Class, extends McBase
|
|
42
|
+
|
|
43
|
+
**Instance Properties**
|
|
44
|
+
- `.target`: (inherited from McBase)
|
|
34
45
|
- `._mc`: a hash object that contains inner micro components
|
|
35
46
|
|
|
36
47
|
- **Instance Methods:**
|
|
37
|
-
- `.trigger( eventName, data )`:
|
|
48
|
+
- `.trigger( eventName, data )`: (inherited from McBase)
|
|
38
49
|
|
|
39
|
-
## DC() Class
|
|
50
|
+
## DC() Class, extends McBase
|
|
40
51
|
|
|
41
52
|
- **Static Methods:**
|
|
42
53
|
- `DC.add( DomElement, key, mc)`: Add a DC to an HTMLElement.
|
|
@@ -44,27 +55,24 @@ As an application programmer you should understand **MC** and **DC** methods and
|
|
|
44
55
|
- `DC.trigger( eventName, DomElement, data, bubble )`: trigger an event, handles directional traversal in the DOM.
|
|
45
56
|
|
|
46
57
|
**Instance Properties**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- `.target`: readonly, a getter returning the DOM element the instance resides in
|
|
50
|
-
- `._mc`: a hash object that contains inner MCs
|
|
58
|
+
- `.target`: (inherited from McBase)
|
|
59
|
+
- `._mc`: a hash object that contains inner micro components
|
|
51
60
|
|
|
52
61
|
- **Instance Methods:**
|
|
53
62
|
- `.parent(search?)`: Get parent DCs.
|
|
54
63
|
- `.ancestors(search?)`: Get ancestor DCs.
|
|
55
64
|
- `.children(search?)`: Get child DCs.
|
|
56
65
|
- `.descendants(search?)`: Get descendant DCs.
|
|
57
|
-
- `.autoAttachListeners()`: methods in your MC that start with "on[A-Z]" or "one[A-Z]" and describe native DOM events (e.g. "onClick") will be added to the DOM Element as listeners.
|
|
58
|
-
|
|
59
|
-
(inherited from MC )
|
|
60
66
|
- `.trigger( eventName, data, bubble )`: trigger an event on "this", handles directional bubbling in the DOM.
|
|
61
67
|
|
|
62
|
-
|
|
68
|
+
# Usage
|
|
69
|
+
|
|
70
|
+
## Typical Workflow
|
|
63
71
|
|
|
64
72
|
1. **Attach DCs** to HTMLElements using `DC.add()`.
|
|
65
73
|
2. **Access** other DCs by their property key or navigating through DOM (e.g., `ancestors()`, `children()`, etc.) **and use their inner functionality**.
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
### Attach Micro Components to a DOM element
|
|
68
76
|
|
|
69
77
|
To attach a micro component to an HTML element, use the `DC.add()` static function.
|
|
70
78
|
|
|
@@ -96,7 +104,7 @@ DC.add( myElement, 'myDcComponent', new MyClass( myElement ) );
|
|
|
96
104
|
- After you added a micro component using this function, the **HTMLElement will contain a property `_mc`** which contains the external MC instances.
|
|
97
105
|
- Also the **HTMLElement then has an attribute '_mc'** which will indicate that at least one micro component is attached to this dom element.
|
|
98
106
|
|
|
99
|
-
|
|
107
|
+
### Remove a top level Micro Component from a DOM element
|
|
100
108
|
|
|
101
109
|
Micro components can be removed using the `DC.remove()` static method.
|
|
102
110
|
|
|
@@ -106,7 +114,7 @@ DC.remove( myDomElement, 'myComponent');
|
|
|
106
114
|
|
|
107
115
|
**When all micro components are removed** (the _mc object has no more properties), the **`_mc` attribute is also removed** from the HTML element.
|
|
108
116
|
|
|
109
|
-
|
|
117
|
+
### Retrieve Micro Components from a DOM element
|
|
110
118
|
|
|
111
119
|
```javascript
|
|
112
120
|
const target = document.querySelector( 'div' );
|
|
@@ -120,7 +128,7 @@ const specificInstance = target._mc?.myPublicComponent;
|
|
|
120
128
|
console.log(specificInstance);
|
|
121
129
|
```
|
|
122
130
|
|
|
123
|
-
### Trigger an Event
|
|
131
|
+
### Trigger an Event
|
|
124
132
|
|
|
125
133
|
```javascript
|
|
126
134
|
const target = document.querySelector( 'div' );
|
|
@@ -132,7 +140,7 @@ DC.trigger( target, '<eventName>', data | null, bubble );
|
|
|
132
140
|
|
|
133
141
|
# Methods you can use in your Micro Component Instances
|
|
134
142
|
|
|
135
|
-
##
|
|
143
|
+
## Retrieve Inner Micro Components
|
|
136
144
|
|
|
137
145
|
You can retrieve an inner micro component by using the ._mc property.
|
|
138
146
|
|
|
@@ -144,7 +152,7 @@ console.log(innerComponent);
|
|
|
144
152
|
**The following methods hop over HTMLElements that DO NOT contain micro components.**
|
|
145
153
|
|
|
146
154
|
|
|
147
|
-
##
|
|
155
|
+
## Navigate Parent and Ancestor Micro Components
|
|
148
156
|
|
|
149
157
|
The `.parent()` and `.ancestors()` methods allow you to retrieve micro components attached to parent elements.
|
|
150
158
|
|
|
@@ -161,7 +169,7 @@ To retrieve specific micro component(s) attached to ancestors:
|
|
|
161
169
|
const specificAncestorMc = this.ancestors('myComponent');
|
|
162
170
|
```
|
|
163
171
|
|
|
164
|
-
##
|
|
172
|
+
## Retrieve Child and Descendant Micro Components
|
|
165
173
|
|
|
166
174
|
The `.children()` and `.descendants()` methods retrieve micro components attached to child elements or any descendants.
|
|
167
175
|
```javascript
|
|
@@ -175,7 +183,7 @@ console.log(descendantComponents); // an array of all descendant micro componen
|
|
|
175
183
|
const specificMcs = this.descenants('specificMc');
|
|
176
184
|
```
|
|
177
185
|
|
|
178
|
-
|
|
186
|
+
## Trigger an Event
|
|
179
187
|
```javascript
|
|
180
188
|
// trigger an event on yourself
|
|
181
189
|
this
|
|
@@ -206,7 +214,7 @@ this
|
|
|
206
214
|
|
|
207
215
|
## Automatically attach Listener Methods to the DOM
|
|
208
216
|
|
|
209
|
-
On any **DC** instance,
|
|
217
|
+
On any **MC** and **DC** instance, the Superclass McBase calls **autoAttachListeners()** in the constructor.
|
|
210
218
|
|
|
211
219
|
Any methods you define in your code that start with **"on"** or **"one"**, and also match DOM event names, will be called accordingly:
|
|
212
220
|
|
|
@@ -226,3 +234,14 @@ let myFirstDiv = document.querySelector('div');
|
|
|
226
234
|
DC.add( myFirstDiv, 'myEventTarget', new MyEventTarget( myFirstDiv ) );
|
|
227
235
|
// now wait for somebody to click on that <div>
|
|
228
236
|
```
|
|
237
|
+
# Lifecycle Events on **MC** and **DC**
|
|
238
|
+
|
|
239
|
+
## Init
|
|
240
|
+
- "this" first
|
|
241
|
+
- traverses recursively into the _mc structure
|
|
242
|
+
- requires **method .oneInit()** to be present in your class definition.
|
|
243
|
+
|
|
244
|
+
## Destroy ( TBD )
|
|
245
|
+
- recursive "_mc" first
|
|
246
|
+
- then "this"
|
|
247
|
+
- requires **method .oneDestroy()** to be present in your class definition.
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h5>once: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul></div>
|
|
35
35
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
36
36
|
<ul>
|
|
37
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
37
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L62">src/MC.ts:62</a></li></ul></aside></li></ul></section></div>
|
|
38
38
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
39
39
|
<div class="tsd-navigation settings">
|
|
40
40
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<h5>handler: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">EventListenerOrEventListenerObject</span></h5></li></ul></div>
|
|
31
31
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
32
32
|
<ul>
|
|
33
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
33
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L79">src/MC.ts:79</a></li></ul></aside></li></ul></section></div>
|
|
34
34
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
35
35
|
<div class="tsd-navigation settings">
|
|
36
36
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<ul class="tsd-hierarchy">
|
|
23
23
|
<li><span class="target">HTMLMcElement</span></li></ul></li></ul></section><aside class="tsd-sources">
|
|
24
24
|
<ul>
|
|
25
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
25
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L15">src/MC.ts:15</a></li></ul></aside>
|
|
26
26
|
<section class="tsd-panel-group tsd-index-group">
|
|
27
27
|
<section class="tsd-panel tsd-index-panel">
|
|
28
28
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
<h3 class="tsd-anchor-link"><span>_mc</span><a href="#_mc" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
469
469
|
<div class="tsd-signature">_mc<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">LooseObject</span></div><aside class="tsd-sources">
|
|
470
470
|
<ul>
|
|
471
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
471
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/6e5722c/src/MC.ts#L16">src/MC.ts:16</a></li></ul></aside></section>
|
|
472
472
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-external"><a id="accessKey" class="tsd-anchor"></a>
|
|
473
473
|
<h3 class="tsd-anchor-link"><span>access<wbr/>Key</span><a href="#accessKey" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
474
474
|
<div class="tsd-signature">access<wbr/>Key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|