@twobirds/microcomponents 0.0.34 → 0.0.39
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 +40 -27
- package/assets/documentation/{MicroComponents.md → MC.md} +17 -17
- package/assets/documentation/comparision.md +0 -0
- package/assets/documentation/elements.md +276 -0
- package/assets/documentation/magic.md +10 -68
- package/assets/my-tag.css +6 -2
- package/dist/MC.d.ts +3 -4
- package/dist/MC.d.ts.map +1 -1
- package/dist/MC.min.js +89 -66
- package/dist/MC.ts +213 -178
- package/dist/autoloader.ts +1 -1
- package/dist/{customElements.d.ts → elements.d.ts} +1 -1
- package/dist/elements.d.ts.map +1 -0
- package/dist/elements.min.js +1 -0
- package/dist/{customElements.ts → elements.ts} +23 -14
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.ts +95 -128
- package/dist/microcomponents.d.ts +3 -3
- package/dist/microcomponents.d.ts.map +1 -1
- package/dist/microcomponents.min.js +1 -1
- package/dist/microcomponents.ts +3 -3
- package/dist/{customObservables.d.ts → observables.d.ts} +3 -3
- package/dist/observables.d.ts.map +1 -0
- package/dist/observables.min.js +1 -0
- package/dist/observables.ts +353 -0
- package/dist/{customSelectors.d.ts → selectors.d.ts} +1 -1
- package/dist/selectors.d.ts.map +1 -0
- package/dist/selectors.min.js +1 -0
- package/dist/test.ts +135 -156
- package/klemmstein.png +0 -0
- package/package.json +52 -52
- package/public/MC.js +90 -67
- package/public/MC.js.map +1 -1
- package/public/MC.min.js +89 -66
- package/public/assets/search.js +1 -1
- package/public/autoloader.js +1 -1
- package/public/autoloader.js.map +1 -1
- package/public/classes/{DC.html → MC.DC.html} +60 -59
- package/public/classes/{MC.html → MC.MC.html} +41 -35
- package/public/classes/{McBase.html → MC.McBase.html} +28 -20
- package/public/classes/{McEvent.html → MC.McEvent.html} +48 -42
- package/public/documentation/{MicroComponents.md → MC.md} +17 -17
- package/public/documentation/comparision.md +0 -0
- package/public/documentation/elements.md +276 -0
- package/public/documentation/magic.md +10 -68
- package/public/{customElements.js → elements.js} +9 -10
- package/public/elements.js.map +1 -0
- package/public/elements.min.js +1 -0
- package/public/functions/{addListener.html → MC.addListener.html} +18 -12
- package/public/functions/{removeListener.html → MC.removeListener.html} +18 -12
- package/public/functions/elements.defineCE.html +78 -0
- package/public/functions/elements.getCE.html +63 -0
- package/public/functions/formValues.formValues.html +68 -0
- package/public/functions/observables.observe.html +65 -0
- package/public/functions/selectors._d.html +69 -0
- package/public/functions/selectors._t.html +69 -0
- package/public/helpers.js +66 -89
- package/public/helpers.js.map +1 -1
- package/public/index.html +48 -33
- package/public/interfaces/{HTMLMcElement.html → MC.HTMLMcElement.html} +601 -595
- package/public/interfaces/selectors.DSelector.html +1013 -0
- package/public/interfaces/selectors.TSelector.html +712 -0
- package/public/microcomponents.js +3 -3
- package/public/microcomponents.js.map +1 -1
- package/public/microcomponents.min.js +1 -1
- package/public/modules/MC.html +78 -0
- package/public/modules/elements.html +62 -0
- package/public/modules/formValues.html +60 -0
- package/public/modules/observables.html +65 -0
- package/public/modules/selectors.html +76 -0
- package/public/modules.html +11 -23
- package/public/my-tag.css +6 -2
- package/public/observables.js +259 -0
- package/public/observables.js.map +1 -0
- package/public/observables.min.js +1 -0
- package/public/{customSelectors.js → selectors.js} +1 -1
- package/public/selectors.js.map +1 -0
- package/public/selectors.min.js +1 -0
- package/public/src/MC.ts +413 -0
- package/public/src/McEvent.ts +96 -0
- package/public/src/autoloader.ts +98 -0
- package/{src/customElements.ts → public/src/elements.ts} +23 -14
- package/public/src/formValues.ts +275 -0
- package/public/src/helpers.ts +140 -0
- package/public/src/microcomponents.ts +8 -0
- package/public/src/observables.ts +353 -0
- package/public/src/test.ts +190 -0
- package/public/test.js +93 -118
- package/public/test.js.map +1 -1
- package/public/types/observables.Observable.html +91 -0
- package/public/types/selectors.selection.html +58 -0
- package/public/types/selectors.singleSelector.html +58 -0
- package/src/MC.ts +213 -178
- package/src/autoloader.ts +1 -1
- package/src/elements.ts +76 -0
- package/src/helpers.ts +95 -128
- package/src/microcomponents.ts +3 -3
- package/src/observables.ts +353 -0
- package/src/selectors.ts +1634 -0
- package/src/test.ts +135 -156
- package/typedoc.json +1 -1
- package/webpack.config.js +9 -9
- package/dist/customElements.d.ts.map +0 -1
- package/dist/customElements.min.js +0 -1
- package/dist/customObservables.d.ts.map +0 -1
- package/dist/customObservables.min.js +0 -1
- package/dist/customObservables.ts +0 -348
- package/dist/customSelectors.d.ts.map +0 -1
- package/dist/customSelectors.min.js +0 -1
- package/public/customElements.js.map +0 -1
- package/public/customElements.min.js +0 -1
- package/public/customObservables.js +0 -256
- package/public/customObservables.js.map +0 -1
- package/public/customObservables.min.js +0 -1
- package/public/customSelectors.js.map +0 -1
- package/public/customSelectors.min.js +0 -1
- package/src/customObservables.ts +0 -348
- /package/dist/{customSelectors.ts → selectors.ts} +0 -0
- /package/{src/customSelectors.ts → public/src/selectors.ts} +0 -0
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
15
|
<li><a href="../modules.html">Micro Components</a></li>
|
|
16
|
-
<li><a href="
|
|
16
|
+
<li><a href="../modules/MC.html">MC</a></li>
|
|
17
|
+
<li><a href="MC.McEvent.html">McEvent</a></li></ul>
|
|
17
18
|
<h1>Class McEvent</h1></div>
|
|
18
19
|
<section class="tsd-panel tsd-hierarchy">
|
|
19
20
|
<h4>Hierarchy</h4>
|
|
20
21
|
<ul class="tsd-hierarchy">
|
|
21
22
|
<li><span class="target">McEvent</span></li></ul></section><aside class="tsd-sources">
|
|
22
23
|
<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/
|
|
24
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L16">src/McEvent.ts:16</a></li>
|
|
25
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L21">src/McEvent.ts:21</a></li></ul></aside>
|
|
25
26
|
<section class="tsd-panel-group tsd-index-group">
|
|
26
27
|
<section class="tsd-panel tsd-index-panel">
|
|
27
28
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -29,33 +30,33 @@
|
|
|
29
30
|
<div class="tsd-accordion-details">
|
|
30
31
|
<section class="tsd-index-section">
|
|
31
32
|
<h3 class="tsd-index-heading">Constructors</h3>
|
|
32
|
-
<div class="tsd-index-list"><a href="McEvent.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
|
|
33
|
+
<div class="tsd-index-list"><a href="MC.McEvent.html#constructor" class="tsd-index-link tsd-kind-constructor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-512-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-512-text"></path></svg><span>constructor</span></a>
|
|
33
34
|
</div></section>
|
|
34
35
|
<section class="tsd-index-section">
|
|
35
36
|
<h3 class="tsd-index-heading">Properties</h3>
|
|
36
|
-
<div class="tsd-index-list"><a href="McEvent.html#_immediateStopped" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>#immediate<wbr/>Stopped</span></a>
|
|
37
|
-
<a href="McEvent.html#_stopped" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>#stopped</span></a>
|
|
38
|
-
<a href="McEvent.html#_type" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>#type</span></a>
|
|
39
|
-
<a href="McEvent.html#bubble" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>bubble</span></a>
|
|
40
|
-
<a href="McEvent.html#data" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>data</span></a>
|
|
37
|
+
<div class="tsd-index-list"><a href="MC.McEvent.html#_immediateStopped" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-1024-path"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)" id="icon-1024-text"></path></svg><span>#immediate<wbr/>Stopped</span></a>
|
|
38
|
+
<a href="MC.McEvent.html#_stopped" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>#stopped</span></a>
|
|
39
|
+
<a href="MC.McEvent.html#_type" class="tsd-index-link tsd-kind-property tsd-parent-kind-class tsd-is-private"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>#type</span></a>
|
|
40
|
+
<a href="MC.McEvent.html#bubble" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>bubble</span></a>
|
|
41
|
+
<a href="MC.McEvent.html#data" class="tsd-index-link tsd-kind-property tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>data</span></a>
|
|
41
42
|
</div></section>
|
|
42
43
|
<section class="tsd-index-section">
|
|
43
44
|
<h3 class="tsd-index-heading">Accessors</h3>
|
|
44
|
-
<div class="tsd-index-list"><a href="McEvent.html#immediateStopped" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>immediate<wbr/>Stopped</span></a>
|
|
45
|
-
<a href="McEvent.html#stopped" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>stopped</span></a>
|
|
46
|
-
<a href="McEvent.html#type" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>type</span></a>
|
|
45
|
+
<div class="tsd-index-list"><a href="MC.McEvent.html#immediateStopped" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D4D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-262144-path"></rect><path d="M8.85 16L11.13 7.24H12.582L14.85 16H13.758L13.182 13.672H10.53L9.954 16H8.85ZM10.746 12.76H12.954L12.282 10.06C12.154 9.548 12.054 9.12 11.982 8.776C11.91 8.432 11.866 8.208 11.85 8.104C11.834 8.208 11.79 8.432 11.718 8.776C11.646 9.12 11.546 9.544 11.418 10.048L10.746 12.76Z" fill="var(--color-text)" id="icon-262144-text"></path></svg><span>immediate<wbr/>Stopped</span></a>
|
|
46
|
+
<a href="MC.McEvent.html#stopped" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>stopped</span></a>
|
|
47
|
+
<a href="MC.McEvent.html#type" class="tsd-index-link tsd-kind-accessor tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>type</span></a>
|
|
47
48
|
</div></section>
|
|
48
49
|
<section class="tsd-index-section">
|
|
49
50
|
<h3 class="tsd-index-heading">Methods</h3>
|
|
50
|
-
<div class="tsd-index-list"><a href="McEvent.html#stopImmediatePropagation" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>stop<wbr/>Immediate<wbr/>Propagation</span></a>
|
|
51
|
-
<a href="McEvent.html#stopPropagation" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>stop<wbr/>Propagation</span></a>
|
|
51
|
+
<div class="tsd-index-list"><a href="MC.McEvent.html#stopImmediatePropagation" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-2048-path"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)" id="icon-2048-text"></path></svg><span>stop<wbr/>Immediate<wbr/>Propagation</span></a>
|
|
52
|
+
<a href="MC.McEvent.html#stopPropagation" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>stop<wbr/>Propagation</span></a>
|
|
52
53
|
</div></section></div></details></section></section>
|
|
53
54
|
<section class="tsd-panel-group tsd-member-group">
|
|
54
55
|
<h2>Constructors</h2>
|
|
55
56
|
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a>
|
|
56
57
|
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" 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"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>
|
|
57
58
|
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
58
|
-
<li class="tsd-signature tsd-anchor-link" id="constructor.new_McEvent">new <wbr/>Mc<wbr/>Event<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, bubble<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="McEvent.html" class="tsd-signature-type" data-tsd-kind="Class">McEvent</a><a href="#constructor.new_McEvent" 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></li>
|
|
59
|
+
<li class="tsd-signature tsd-anchor-link" id="constructor.new_McEvent">new <wbr/>Mc<wbr/>Event<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, bubble<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="MC.McEvent.html" class="tsd-signature-type" data-tsd-kind="Class">McEvent</a><a href="#constructor.new_McEvent" 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></li>
|
|
59
60
|
<li class="tsd-description">
|
|
60
61
|
<div class="tsd-parameters">
|
|
61
62
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -66,36 +67,36 @@
|
|
|
66
67
|
<h5>data: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = {}</span></h5></li>
|
|
67
68
|
<li>
|
|
68
69
|
<h5>bubble: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'l'</span></h5></li></ul></div>
|
|
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
|
+
<h4 class="tsd-returns-title">Returns <a href="MC.McEvent.html" class="tsd-signature-type" data-tsd-kind="Class">McEvent</a></h4><aside class="tsd-sources">
|
|
70
71
|
<ul>
|
|
71
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
72
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L27">src/McEvent.ts:27</a></li></ul></aside></li></ul></section></section>
|
|
72
73
|
<section class="tsd-panel-group tsd-member-group">
|
|
73
74
|
<h2>Properties</h2>
|
|
74
75
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_immediateStopped" class="tsd-anchor"></a>
|
|
75
76
|
<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
77
|
<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
78
|
<ul>
|
|
78
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
79
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L25">src/McEvent.ts:25</a></li></ul></aside></section>
|
|
79
80
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_stopped" class="tsd-anchor"></a>
|
|
80
81
|
<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
82
|
<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
83
|
<ul>
|
|
83
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
84
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L24">src/McEvent.ts:24</a></li></ul></aside></section>
|
|
84
85
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private"><a id="_type" class="tsd-anchor"></a>
|
|
85
86
|
<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
87
|
<div class="tsd-signature">#type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
87
88
|
<ul>
|
|
88
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
89
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L23">src/McEvent.ts:23</a></li></ul></aside></section>
|
|
89
90
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="bubble" class="tsd-anchor"></a>
|
|
90
91
|
<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
92
|
<div class="tsd-signature">bubble<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
92
93
|
<ul>
|
|
93
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
94
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L18">src/McEvent.ts:18</a></li></ul></aside></section>
|
|
94
95
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="data" class="tsd-anchor"></a>
|
|
95
96
|
<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
97
|
<div class="tsd-signature">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources">
|
|
97
98
|
<ul>
|
|
98
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
99
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L17">src/McEvent.ts:17</a></li></ul></aside></section></section>
|
|
99
100
|
<section class="tsd-panel-group tsd-member-group">
|
|
100
101
|
<h2>Accessors</h2>
|
|
101
102
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="immediateStopped" class="tsd-anchor"></a>
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
<li class="tsd-description">
|
|
106
107
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
107
108
|
<ul>
|
|
108
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
109
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L42">src/McEvent.ts:42</a></li></ul></aside></li></ul></section>
|
|
109
110
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="stopped" class="tsd-anchor"></a>
|
|
110
111
|
<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
112
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
<li class="tsd-description">
|
|
114
115
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
115
116
|
<ul>
|
|
116
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
117
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L38">src/McEvent.ts:38</a></li></ul></aside></li></ul></section>
|
|
117
118
|
<section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="type" class="tsd-anchor"></a>
|
|
118
119
|
<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
120
|
<ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class">
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
<li class="tsd-description">
|
|
122
123
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
123
124
|
<ul>
|
|
124
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
125
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L34">src/McEvent.ts:34</a></li></ul></aside></li></ul></section></section>
|
|
125
126
|
<section class="tsd-panel-group tsd-member-group">
|
|
126
127
|
<h2>Methods</h2>
|
|
127
128
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stopImmediatePropagation" class="tsd-anchor"></a>
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
<li class="tsd-description">
|
|
132
133
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
133
134
|
<ul>
|
|
134
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
135
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L50">src/McEvent.ts:50</a></li></ul></aside></li></ul></section>
|
|
135
136
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="stopPropagation" class="tsd-anchor"></a>
|
|
136
137
|
<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
138
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
<li class="tsd-description">
|
|
140
141
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
141
142
|
<ul>
|
|
142
|
-
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/
|
|
143
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/McEvent.ts#L46">src/McEvent.ts:46</a></li></ul></aside></li></ul></section></section></div>
|
|
143
144
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
144
145
|
<div class="tsd-navigation settings">
|
|
145
146
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -159,23 +160,28 @@
|
|
|
159
160
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
160
161
|
<div class="tsd-accordion-details">
|
|
161
162
|
<ul>
|
|
162
|
-
<li><a href="../modules.html">Micro <wbr/>Components</a>
|
|
163
|
-
<ul
|
|
163
|
+
<li class="current"><a href="../modules.html">Micro <wbr/>Components</a>
|
|
164
|
+
<ul>
|
|
165
|
+
<li class="current tsd-kind-module"><a href="../modules/MC.html">MC</a></li>
|
|
166
|
+
<li class="tsd-kind-module"><a href="../modules/elements.html">elements</a></li>
|
|
167
|
+
<li class="tsd-kind-module"><a href="../modules/formValues.html">form<wbr/>Values</a></li>
|
|
168
|
+
<li class="tsd-kind-module"><a href="../modules/observables.html">observables</a></li>
|
|
169
|
+
<li class="tsd-kind-module"><a href="../modules/selectors.html">selectors</a></li></ul></li></ul></div></details></nav>
|
|
164
170
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
165
171
|
<ul>
|
|
166
|
-
<li class="current tsd-kind-class"><a href="McEvent.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Mc<wbr/>Event</span></a>
|
|
167
|
-
<ul>
|
|
168
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="McEvent.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
169
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="McEvent.html#_immediateStopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#immediate<wbr/>Stopped</a></li>
|
|
170
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="McEvent.html#_stopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#stopped</a></li>
|
|
171
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="McEvent.html#_type" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#type</a></li>
|
|
172
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="McEvent.html#bubble" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>bubble</a></li>
|
|
173
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="McEvent.html#data" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>data</a></li>
|
|
174
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="McEvent.html#immediateStopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>immediate<wbr/>Stopped</a></li>
|
|
175
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="McEvent.html#stopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>stopped</a></li>
|
|
176
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="McEvent.html#type" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>type</a></li>
|
|
177
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="McEvent.html#stopImmediatePropagation" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>stop<wbr/>Immediate<wbr/>Propagation</a></li>
|
|
178
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="McEvent.html#stopPropagation" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>stop<wbr/>Propagation</a></li></ul></li></ul></nav></div></div>
|
|
172
|
+
<li class="current tsd-kind-class tsd-parent-kind-module"><a href="MC.McEvent.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Mc<wbr/>Event</span></a>
|
|
173
|
+
<ul>
|
|
174
|
+
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="MC.McEvent.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-512-path"></use><use href="#icon-512-text"></use></svg>constructor</a></li>
|
|
175
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="MC.McEvent.html#_immediateStopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#immediate<wbr/>Stopped</a></li>
|
|
176
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="MC.McEvent.html#_stopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#stopped</a></li>
|
|
177
|
+
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="MC.McEvent.html#_type" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>#type</a></li>
|
|
178
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><a href="MC.McEvent.html#bubble" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>bubble</a></li>
|
|
179
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><a href="MC.McEvent.html#data" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>data</a></li>
|
|
180
|
+
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="MC.McEvent.html#immediateStopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>immediate<wbr/>Stopped</a></li>
|
|
181
|
+
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="MC.McEvent.html#stopped" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>stopped</a></li>
|
|
182
|
+
<li class="tsd-kind-accessor tsd-parent-kind-class"><a href="MC.McEvent.html#type" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg>type</a></li>
|
|
183
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MC.McEvent.html#stopImmediatePropagation" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>stop<wbr/>Immediate<wbr/>Propagation</a></li>
|
|
184
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="MC.McEvent.html#stopPropagation" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>stop<wbr/>Propagation</a></li></ul></li></ul></nav></div></div>
|
|
179
185
|
<div class="container tsd-generator">
|
|
180
186
|
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
181
187
|
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Micro Components
|
|
1
|
+
# Micro Components <span style="float:right; height:1em;"><img height="24px" src="./MicroComponents.svg" /></span>
|
|
2
2
|
|
|
3
3
|
This system allows you to to define **Micro Components** and attach them to DOM elements or other Micro Components.
|
|
4
4
|
|
|
@@ -6,15 +6,12 @@ The module exports 2 classes:
|
|
|
6
6
|
- **MC**: Micro Component ( not DOM related, works on the server also )
|
|
7
7
|
- **DC**: Dom Component ( extends MC and adds DOM related methods, client only )
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
In general when coding with this system, you create classes that extend either the **DC** or **MC** class provided here.
|
|
12
|
-
|
|
13
|
-
**If your functionality needs to access the DOM**, e.g. to find other DC instances, **your class extends DC**.
|
|
9
|
+
# Usage
|
|
14
10
|
|
|
15
|
-
**
|
|
11
|
+
- **If your functionality needs to access the DOM**, e.g. to find other DC instances, **your class extends DC**.
|
|
12
|
+
- **Otherwise** - and always on the server - **your class extends MC**.
|
|
16
13
|
|
|
17
|
-
In any case, your class instances will contain a property **"_mc"** where you can put in other MCs.
|
|
14
|
+
In any case, your class instances will contain a property **"_mc"** where you can (but don't have to) put in other MCs.
|
|
18
15
|
|
|
19
16
|
Also your class instances will have a readonly **"target"** property that is back reference to the instance they are contained in.
|
|
20
17
|
|
|
@@ -27,25 +24,28 @@ As an application programmer you should understand **MC** and **DC** methods and
|
|
|
27
24
|
- **DC** use observables and formValues to provide 1-way and 2-way binding to the DOM.
|
|
28
25
|
- **DC** have selectors to find other DCs in the DOM.
|
|
29
26
|
|
|
30
|
-
#
|
|
27
|
+
# Rules
|
|
31
28
|
|
|
32
29
|
- **Your own application code MUST NOT overwrite the properties and methods in the classes below.**
|
|
33
30
|
- If you do it anyway, you do it on your own risk.
|
|
34
31
|
|
|
35
32
|
# Not Exported
|
|
36
33
|
|
|
37
|
-
## McBase
|
|
34
|
+
## **McBase** Superclass
|
|
38
35
|
|
|
39
36
|
**Instance Properties**
|
|
40
37
|
- `.target`: readonly, a getter returning the DOM element or parent MC instance your instance resides in
|
|
41
38
|
|
|
42
39
|
**Constructor:**
|
|
43
40
|
- calls `init()`: triggers the 'init' lifecycle event, also recursively into the inner '._mc' structure.
|
|
44
|
-
- calls `autoAttachListeners()`: methods in your
|
|
41
|
+
- calls `autoAttachListeners()`: methods in your class code 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.
|
|
42
|
+
|
|
43
|
+
- **Instance Methods:**
|
|
44
|
+
- `.trigger( eventName, data )`: runs callback methods.
|
|
45
45
|
|
|
46
46
|
# Exported:
|
|
47
47
|
|
|
48
|
-
## MC
|
|
48
|
+
## **MC** Class, extends McBase
|
|
49
49
|
|
|
50
50
|
**Instance Properties**
|
|
51
51
|
- `.target`: (inherited from McBase)
|
|
@@ -54,7 +54,7 @@ As an application programmer you should understand **MC** and **DC** methods and
|
|
|
54
54
|
- **Instance Methods:**
|
|
55
55
|
- `.trigger( eventName, data )`: (inherited from McBase)
|
|
56
56
|
|
|
57
|
-
## DC
|
|
57
|
+
## **DC** Class, extends McBase
|
|
58
58
|
|
|
59
59
|
- **Static Methods:**
|
|
60
60
|
- `DC.add( DomElement, key, mc)`: Add a DC to an HTMLElement.
|
|
@@ -72,7 +72,7 @@ As an application programmer you should understand **MC** and **DC** methods and
|
|
|
72
72
|
- `.descendants(search?)`: Get descendant DCs.
|
|
73
73
|
- `.trigger( eventName, data, bubble )`: trigger an event on "this", handles directional bubbling in the DOM.
|
|
74
74
|
|
|
75
|
-
#
|
|
75
|
+
# Examples
|
|
76
76
|
|
|
77
77
|
## Typical Workflow
|
|
78
78
|
|
|
@@ -105,12 +105,12 @@ MyPublicClass = class extends DC{
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// attach a DC
|
|
108
|
-
DC.add( myElement, 'myDcComponent', new
|
|
108
|
+
DC.add( myElement, 'myDcComponent', new MyPublicClass( myElement ) );
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
#### **Hint**
|
|
112
|
-
- After you added a micro component using this function, the **HTMLElement will contain a property `_mc`** which contains the
|
|
113
|
-
- Also the **HTMLElement then has an attribute '_mc'**
|
|
112
|
+
- After you added a micro component using this function, the **HTMLElement will contain a property `_mc`** which contains the MC instances visible in the DOM.
|
|
113
|
+
- Also the **HTMLElement then has an attribute '_mc'** to indicate that at least one micro component is attached to this dom element.
|
|
114
114
|
|
|
115
115
|
### Remove a top level Micro Component from a DOM element
|
|
116
116
|
|
|
File without changes
|