dyo-tools 0.1.0-rc1
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/.c8rc.json +4 -0
- package/.eslintignore +2 -0
- package/.eslintrc.json +41 -0
- package/Makefile +34 -0
- package/README.md +0 -0
- package/TODO.md +18 -0
- package/babel.config.js +1 -0
- package/dist/core/DTBunch.d.ts +32 -0
- package/dist/core/DTBunch.js +283 -0
- package/dist/core/DTBunch.js.map +1 -0
- package/dist/core/DTComponent.d.ts +20 -0
- package/dist/core/DTComponent.js +41 -0
- package/dist/core/DTComponent.js.map +1 -0
- package/dist/core/DTComponentWithMeta.d.ts +9 -0
- package/dist/core/DTComponentWithMeta.js +32 -0
- package/dist/core/DTComponentWithMeta.js.map +1 -0
- package/dist/core/DTElement.d.ts +13 -0
- package/dist/core/DTElement.js +46 -0
- package/dist/core/DTElement.js.map +1 -0
- package/dist/core/DTError.d.ts +13 -0
- package/dist/core/DTError.js +28 -0
- package/dist/core/DTError.js.map +1 -0
- package/dist/core/DTPlayer.d.ts +8 -0
- package/dist/core/DTPlayer.js +30 -0
- package/dist/core/DTPlayer.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1321 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/index.js +15 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/filters.d.ts +6 -0
- package/dist/utils/filters.js +39 -0
- package/dist/utils/filters.js.map +1 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +22 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/DTBunch.html +265 -0
- package/docs/classes/DTComponent.html +49 -0
- package/docs/classes/DTComponentWithMeta.html +73 -0
- package/docs/classes/DTElement.html +95 -0
- package/docs/classes/DTError.html +32 -0
- package/docs/classes/DTPlayer.html +86 -0
- package/docs/index.html +1 -0
- package/docs/modules.html +1 -0
- package/jest.config.js +6 -0
- package/package.json +41 -0
- package/src/core/DTBunch.ts +600 -0
- package/src/core/DTComponent.ts +135 -0
- package/src/core/DTComponentWithMeta.ts +62 -0
- package/src/core/DTElement.ts +96 -0
- package/src/core/DTError.ts +78 -0
- package/src/core/DTPlayer.ts +57 -0
- package/src/index.ts +7 -0
- package/src/types/index.ts +76 -0
- package/src/utils/filters.ts +64 -0
- package/test/core/DTBunch.double.ts +150 -0
- package/test/core/DTBunch.spec.ts +1374 -0
- package/test/core/DTComponent.double.ts +69 -0
- package/test/core/DTComponent.spec.ts +182 -0
- package/test/core/DTComponentWithMeta.double.ts +88 -0
- package/test/core/DTComponentWithMeta.spec.ts +112 -0
- package/test/core/DTElement.double.ts +27 -0
- package/test/core/DTElement.spec.ts +181 -0
- package/test/core/DTError.double.ts +43 -0
- package/test/core/DTError.spec.ts +106 -0
- package/test/core/DTPlayer.double.ts +49 -0
- package/test/core/DTPlayer.spec.ts +102 -0
- package/test/utils/filters.spec.ts +109 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DTComponent | dyo-tools</title><meta name="description" content="Documentation for dyo-tools"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">dyo-tools</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">dyo-tools</a></li><li><a href="DTComponent.html">DTComponent</a></li></ul><h1>Class DTComponent</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">DTComponent</span><ul class="tsd-hierarchy"><li><a href="DTComponentWithMeta.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponentWithMeta</a></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DTComponent.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section tsd-is-private-protected"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_componentType" class="tsd-kind-icon">_component<wbr/>Type</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_context" class="tsd-kind-icon">_context</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_domain" class="tsd-kind-icon">_domain</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_id" class="tsd-kind-icon">_id</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_key" class="tsd-kind-icon">_key</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_subKind" class="tsd-kind-icon">_sub<wbr/>Kind</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#copy" class="tsd-kind-icon">copy</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getComponentType" class="tsd-kind-icon">get<wbr/>Component<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getContext" class="tsd-kind-icon">get<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getDomain" class="tsd-kind-icon">get<wbr/>Domain</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getKey" class="tsd-kind-icon">get<wbr/>Key</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getSubKind" class="tsd-kind-icon">get<wbr/>Sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#removeContext" class="tsd-kind-icon">remove<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#setContext" class="tsd-kind-icon">set<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#toObject" class="tsd-kind-icon">to<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new DTComponent<span class="tsd-signature-symbol">(</span>key<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="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L48">src/core/DTComponent.ts:48</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>Set automatic unique _id and _key.</p>
|
|
3
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> key: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>Optional Key to set. If not provided, set the _key with the _id value.</p>
|
|
5
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group tsd-is-private-protected"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_componentType" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagAbstract">Abstract</span> _component<wbr/>Type</h3><div class="tsd-signature tsd-kind-icon">_component<wbr/>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L27">src/core/DTComponent.ts:27</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>Higher Level Component category.</p>
|
|
7
|
+
</div><div><p>Describing component Type, like Element, Bunch, Manager...</p>
|
|
8
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_context" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _context</h3><div class="tsd-signature tsd-kind-icon">_context<span class="tsd-signature-symbol">?:</span> <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L20">src/core/DTComponent.ts:20</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
9
|
+
<p>Component Parent Context.</p>
|
|
10
|
+
</div><div><p>A component can have only one <em>physical context</em>, and be managed by a parent Component.</p>
|
|
11
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_domain" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _domain</h3><div class="tsd-signature tsd-kind-icon">_domain<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L34">src/core/DTComponent.ts:34</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
+
<p>Second Level Component category.</p>
|
|
13
|
+
</div><div><p>Describing component Domain, like Card, Dice, Token...</p>
|
|
14
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_id" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> _id</h3><div class="tsd-signature tsd-kind-icon">_id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L7">src/core/DTComponent.ts:7</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
15
|
+
<p>Component unique ID. Use uuid v4 generator.</p>
|
|
16
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_key" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> _key</h3><div class="tsd-signature tsd-kind-icon">_key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L13">src/core/DTComponent.ts:13</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
17
|
+
<p>Component specific and accessible label.
|
|
18
|
+
If not provided, the key is set with ID by default.</p>
|
|
19
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_subKind" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _sub<wbr/>Kind</h3><div class="tsd-signature tsd-kind-icon">_sub<wbr/>Kind<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L41">src/core/DTComponent.ts:41</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
20
|
+
<p>Third Level Component category.</p>
|
|
21
|
+
</div><div><p>Describing component extra type, like Hand, Deck, Trick...</p>
|
|
22
|
+
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="copy" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> copy</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">copy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L124">src/core/DTComponent.ts:124</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
23
|
+
<p>Abstract method for copying the Component and returning it.</p>
|
|
24
|
+
</div></div><h4 class="tsd-returns-title">Returns <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getComponentType" class="tsd-anchor"></a><h3>get<wbr/>Component<wbr/>Type</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Component<wbr/>Type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L103">src/core/DTComponent.ts:103</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
25
|
+
<p>Getter for _componentType property.</p>
|
|
26
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getContext" class="tsd-anchor"></a><h3>get<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Context<span class="tsd-signature-symbol">(</span>contextType<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="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L76">src/core/DTComponent.ts:76</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
27
|
+
<p>Getter for _context property.</p>
|
|
28
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> contextType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
29
|
+
<p>If provided, the getter parse all component level hierarchy to find the corresponding component
|
|
30
|
+
with <strong>contextType</strong> as _componentType value, and returns it. Return undefined if not found.</p>
|
|
31
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h4><div><p>Direct parent Component or higher level Component if filtered with <strong>contextType</strong>.
|
|
32
|
+
Returns undefined if context doesn't exist.</p>
|
|
33
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getDomain" class="tsd-anchor"></a><h3>get<wbr/>Domain</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Domain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L110">src/core/DTComponent.ts:110</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
34
|
+
<p>Getter for _domain property.</p>
|
|
35
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getId" class="tsd-anchor"></a><h3>get<wbr/>Id</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L56">src/core/DTComponent.ts:56</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
36
|
+
<p>Getter for _id property.</p>
|
|
37
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getKey" class="tsd-anchor"></a><h3>get<wbr/>Key</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L63">src/core/DTComponent.ts:63</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
38
|
+
<p>Getter for _key property.</p>
|
|
39
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSubKind" class="tsd-anchor"></a><h3>get<wbr/>Sub<wbr/>Kind</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Sub<wbr/>Kind<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L117">src/core/DTComponent.ts:117</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
40
|
+
<p>Getter for _subKind property.</p>
|
|
41
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="removeContext" class="tsd-anchor"></a><h3>remove<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">remove<wbr/>Context<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L96">src/core/DTComponent.ts:96</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
42
|
+
<p>Remove the current context of component</p>
|
|
43
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setContext" class="tsd-anchor"></a><h3>set<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Context<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L89">src/core/DTComponent.ts:89</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
44
|
+
<p>Setter for _context property.</p>
|
|
45
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toObject" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> to<wbr/>Object</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">to<wbr/>Object<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L129">src/core/DTComponent.ts:129</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
46
|
+
<p>Abstract method for JSON Object representation of the component and returning it.</p>
|
|
47
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">unknown</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> to<wbr/>String</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L134">src/core/DTComponent.ts:134</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
48
|
+
<p>Abstract method for String representation of the component and returning it.</p>
|
|
49
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="DTComponent.html" class="tsd-kind-icon">DTComponent</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="DTComponent.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_componentType" class="tsd-kind-icon">_component<wbr/>Type</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_context" class="tsd-kind-icon">_context</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_domain" class="tsd-kind-icon">_domain</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_id" class="tsd-kind-icon">_id</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_key" class="tsd-kind-icon">_key</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponent.html#_subKind" class="tsd-kind-icon">_sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#copy" class="tsd-kind-icon">copy</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getComponentType" class="tsd-kind-icon">get<wbr/>Component<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getContext" class="tsd-kind-icon">get<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getDomain" class="tsd-kind-icon">get<wbr/>Domain</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getKey" class="tsd-kind-icon">get<wbr/>Key</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#getSubKind" class="tsd-kind-icon">get<wbr/>Sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#removeContext" class="tsd-kind-icon">remove<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#setContext" class="tsd-kind-icon">set<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#toObject" class="tsd-kind-icon">to<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponent.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DTComponentWithMeta | dyo-tools</title><meta name="description" content="Documentation for dyo-tools"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">dyo-tools</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">dyo-tools</a></li><li><a href="DTComponentWithMeta.html">DTComponentWithMeta</a></li></ul><h1>Class DTComponentWithMeta<IComponentMeta></h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-type-parameters"><h3>Type parameters</h3><ul class="tsd-type-parameters"><li><h4>IComponentMeta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DTAcceptedMetaData</span></h4></li></ul></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a><ul class="tsd-hierarchy"><li><span class="target">DTComponentWithMeta</span><ul class="tsd-hierarchy"><li><a href="DTElement.html" class="tsd-signature-type" data-tsd-kind="Class">DTElement</a></li><li><a href="DTBunch.html" class="tsd-signature-type" data-tsd-kind="Class">DTBunch</a></li><li><a href="DTPlayer.html" class="tsd-signature-type" data-tsd-kind="Class">DTPlayer</a></li></ul></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section tsd-is-inherited"><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="DTComponentWithMeta.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section tsd-is-private-protected"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_componentType" class="tsd-kind-icon">_component<wbr/>Type</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_context" class="tsd-kind-icon">_context</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_domain" class="tsd-kind-icon">_domain</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_id" class="tsd-kind-icon">_id</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_key" class="tsd-kind-icon">_key</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponentWithMeta.html#_meta" class="tsd-kind-icon">_meta</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_subKind" class="tsd-kind-icon">_sub<wbr/>Kind</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#copy" class="tsd-kind-icon">copy</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getComponentType" class="tsd-kind-icon">get<wbr/>Component<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getContext" class="tsd-kind-icon">get<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getDomain" class="tsd-kind-icon">get<wbr/>Domain</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getKey" class="tsd-kind-icon">get<wbr/>Key</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponentWithMeta.html#getManyMeta" class="tsd-kind-icon">get<wbr/>Many<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="DTComponentWithMeta.html#getMeta" class="tsd-kind-icon">get<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getSubKind" class="tsd-kind-icon">get<wbr/>Sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#removeContext" class="tsd-kind-icon">remove<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#setContext" class="tsd-kind-icon">set<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponentWithMeta.html#setManyMeta" class="tsd-kind-icon">set<wbr/>Many<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="DTComponentWithMeta.html#setMeta" class="tsd-kind-icon">set<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#toObject" class="tsd-kind-icon">to<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited"><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">new DTComponent<wbr/>With<wbr/>Meta<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>key<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="DTComponentWithMeta.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponentWithMeta</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L48">src/core/DTComponent.ts:48</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>Set automatic unique _id and _key.</p>
|
|
3
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>IComponentMeta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">DTAcceptedMetaData</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> key: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>Optional Key to set. If not provided, set the _key with the _id value.</p>
|
|
5
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="DTComponentWithMeta.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponentWithMeta</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group tsd-is-private-protected"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_componentType" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagAbstract">Abstract</span> _component<wbr/>Type</h3><div class="tsd-signature tsd-kind-icon">_component<wbr/>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_componentType">_componentType</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L27">src/core/DTComponent.ts:27</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>Higher Level Component category.</p>
|
|
7
|
+
</div><div><p>Describing component Type, like Element, Bunch, Manager...</p>
|
|
8
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_context" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _context</h3><div class="tsd-signature tsd-kind-icon">_context<span class="tsd-signature-symbol">?:</span> <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_context">_context</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L20">src/core/DTComponent.ts:20</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
9
|
+
<p>Component Parent Context.</p>
|
|
10
|
+
</div><div><p>A component can have only one <em>physical context</em>, and be managed by a parent Component.</p>
|
|
11
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_domain" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _domain</h3><div class="tsd-signature tsd-kind-icon">_domain<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_domain">_domain</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L34">src/core/DTComponent.ts:34</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
+
<p>Second Level Component category.</p>
|
|
13
|
+
</div><div><p>Describing component Domain, like Card, Dice, Token...</p>
|
|
14
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_id" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> _id</h3><div class="tsd-signature tsd-kind-icon">_id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_id">_id</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L7">src/core/DTComponent.ts:7</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
15
|
+
<p>Component unique ID. Use uuid v4 generator.</p>
|
|
16
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_key" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> _key</h3><div class="tsd-signature tsd-kind-icon">_key<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_key">_key</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L13">src/core/DTComponent.ts:13</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
17
|
+
<p>Component specific and accessible label.
|
|
18
|
+
If not provided, the key is set with ID by default.</p>
|
|
19
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="_meta" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> _meta</h3><div class="tsd-signature tsd-kind-icon">_meta<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponentWithMeta.ts#L10">src/core/DTComponentWithMeta.ts:10</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
20
|
+
<p>Component meta data.
|
|
21
|
+
Defined by generic type IComponentMeta.</p>
|
|
22
|
+
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>{}</p>
|
|
23
|
+
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a id="_subKind" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> <span class="tsd-flag ts-flagOptional">Optional</span> _sub<wbr/>Kind</h3><div class="tsd-signature tsd-kind-icon">_sub<wbr/>Kind<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#_subKind">_subKind</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L41">src/core/DTComponent.ts:41</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
24
|
+
<p>Third Level Component category.</p>
|
|
25
|
+
</div><div><p>Describing component extra type, like Hand, Deck, Trick...</p>
|
|
26
|
+
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="copy" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> copy</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">copy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#copy">copy</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L124">src/core/DTComponent.ts:124</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
27
|
+
<p>Abstract method for copying the Component and returning it.</p>
|
|
28
|
+
</div></div><h4 class="tsd-returns-title">Returns <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getComponentType" class="tsd-anchor"></a><h3>get<wbr/>Component<wbr/>Type</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Component<wbr/>Type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getComponentType">getComponentType</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L103">src/core/DTComponent.ts:103</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
29
|
+
<p>Getter for _componentType property.</p>
|
|
30
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getContext" class="tsd-anchor"></a><h3>get<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Context<span class="tsd-signature-symbol">(</span>contextType<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="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getContext">getContext</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L76">src/core/DTComponent.ts:76</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
31
|
+
<p>Getter for _context property.</p>
|
|
32
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> contextType: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
33
|
+
<p>If provided, the getter parse all component level hierarchy to find the corresponding component
|
|
34
|
+
with <strong>contextType</strong> as _componentType value, and returns it. Return undefined if not found.</p>
|
|
35
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h4><div><p>Direct parent Component or higher level Component if filtered with <strong>contextType</strong>.
|
|
36
|
+
Returns undefined if context doesn't exist.</p>
|
|
37
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getDomain" class="tsd-anchor"></a><h3>get<wbr/>Domain</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Domain<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getDomain">getDomain</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L110">src/core/DTComponent.ts:110</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
38
|
+
<p>Getter for _domain property.</p>
|
|
39
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getId" class="tsd-anchor"></a><h3>get<wbr/>Id</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getId">getId</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L56">src/core/DTComponent.ts:56</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
40
|
+
<p>Getter for _id property.</p>
|
|
41
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getKey" class="tsd-anchor"></a><h3>get<wbr/>Key</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Key<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getKey">getKey</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L63">src/core/DTComponent.ts:63</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
42
|
+
<p>Getter for _key property.</p>
|
|
43
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getManyMeta" class="tsd-anchor"></a><h3>get<wbr/>Many<wbr/>Meta</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Many<wbr/>Meta<span class="tsd-signature-symbol">(</span>metaKeys<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponentWithMeta.ts#L40">src/core/DTComponentWithMeta.ts:40</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
44
|
+
<p>Returns multiple defined keys values of meta data.</p>
|
|
45
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metaKeys: <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
46
|
+
<p>Array of keys to filter for meta data. If not provided or empty, returns all keys.</p>
|
|
47
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span></h4><div><p>Meta data object with <strong>metaKeys</strong> provided keys only.</p>
|
|
48
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="getMeta" class="tsd-anchor"></a><h3>get<wbr/>Meta</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">get<wbr/>Meta<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>metaKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">]</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponentWithMeta.ts#L19">src/core/DTComponentWithMeta.ts:19</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
49
|
+
<p>Getter for one meta by key.</p>
|
|
50
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metaKey: <span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
51
|
+
<p>Key name of one meta data.</p>
|
|
52
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">]</span></h4><div><p>Associated meta <strong>metaKey</strong> value or undefined if not found.</p>
|
|
53
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getSubKind" class="tsd-anchor"></a><h3>get<wbr/>Sub<wbr/>Kind</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Sub<wbr/>Kind<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#getSubKind">getSubKind</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L117">src/core/DTComponent.ts:117</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
54
|
+
<p>Getter for _subKind property.</p>
|
|
55
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="removeContext" class="tsd-anchor"></a><h3>remove<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">remove<wbr/>Context<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#removeContext">removeContext</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L96">src/core/DTComponent.ts:96</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
56
|
+
<p>Remove the current context of component</p>
|
|
57
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setContext" class="tsd-anchor"></a><h3>set<wbr/>Context</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Context<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#setContext">setContext</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L89">src/core/DTComponent.ts:89</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
58
|
+
<p>Setter for _context property.</p>
|
|
59
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <a href="DTComponent.html" class="tsd-signature-type" data-tsd-kind="Class">DTComponent</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setManyMeta" class="tsd-anchor"></a><h3>set<wbr/>Many<wbr/>Meta</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Many<wbr/>Meta<span class="tsd-signature-symbol">(</span>metaValues<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponentWithMeta.ts#L59">src/core/DTComponentWithMeta.ts:59</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
60
|
+
<p>Set multiple meta data.</p>
|
|
61
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metaValues: <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
62
|
+
<p>Object of meta data to set, according to the meta data property type.</p>
|
|
63
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a id="setMeta" class="tsd-anchor"></a><h3>set<wbr/>Meta</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><li class="tsd-signature tsd-kind-icon">set<wbr/>Meta<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>metaKey<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span>, metaValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponentWithMeta.ts#L29">src/core/DTComponentWithMeta.ts:29</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
64
|
+
<p>Setter for one meta by key.</p>
|
|
65
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>K<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">symbol</span></h4></li></ul><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>metaKey: <span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
66
|
+
<p>Key name of the meta data to update.</p>
|
|
67
|
+
</div></div></li><li><h5>metaValue: <span class="tsd-signature-type" data-tsd-kind="Type parameter">IComponentMeta</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">K</span><span class="tsd-signature-symbol">]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
68
|
+
<p>New value to set into the meta data.</p>
|
|
69
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="toObject" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> to<wbr/>Object</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">to<wbr/>Object<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#toObject">toObject</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L129">src/core/DTComponent.ts:129</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
70
|
+
<p>Abstract method for JSON Object representation of the component and returning it.</p>
|
|
71
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">unknown</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="toString" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagAbstract">Abstract</span> to<wbr/>String</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="DTComponent.html">DTComponent</a>.<a href="DTComponent.html#toString">toString</a></p><ul><li>Defined in <a href="https://gitlab.com/flaya-dyo/dyo-tools/core/-/blob/9b29d44/src/core/DTComponent.ts#L134">src/core/DTComponent.ts:134</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
72
|
+
<p>Abstract method for String representation of the component and returning it.</p>
|
|
73
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-has-type-parameter"><a href="DTComponentWithMeta.html" class="tsd-kind-icon">DTComponent<wbr/>With<wbr/>Meta</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="DTComponentWithMeta.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_componentType" class="tsd-kind-icon">_component<wbr/>Type</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_context" class="tsd-kind-icon">_context</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_domain" class="tsd-kind-icon">_domain</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_id" class="tsd-kind-icon">_id</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_key" class="tsd-kind-icon">_key</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="DTComponentWithMeta.html#_meta" class="tsd-kind-icon">_meta</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="DTComponentWithMeta.html#_subKind" class="tsd-kind-icon">_sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#copy" class="tsd-kind-icon">copy</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getComponentType" class="tsd-kind-icon">get<wbr/>Component<wbr/>Type</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getContext" class="tsd-kind-icon">get<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getDomain" class="tsd-kind-icon">get<wbr/>Domain</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getKey" class="tsd-kind-icon">get<wbr/>Key</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponentWithMeta.html#getManyMeta" class="tsd-kind-icon">get<wbr/>Many<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="DTComponentWithMeta.html#getMeta" class="tsd-kind-icon">get<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#getSubKind" class="tsd-kind-icon">get<wbr/>Sub<wbr/>Kind</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#removeContext" class="tsd-kind-icon">remove<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#setContext" class="tsd-kind-icon">set<wbr/>Context</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="DTComponentWithMeta.html#setManyMeta" class="tsd-kind-icon">set<wbr/>Many<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="DTComponentWithMeta.html#setMeta" class="tsd-kind-icon">set<wbr/>Meta</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#toObject" class="tsd-kind-icon">to<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="DTComponentWithMeta.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|