@twobirds/microcomponents 0.0.72 → 0.0.75
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 +35 -24
- package/assets/documentation/MC.md +2 -2
- package/assets/documentation/MicroComponents.svg +15 -0
- package/assets/documentation/elements.md +18 -16
- package/assets/documentation/formvalues.md +5 -26
- package/assets/documentation/observables.md +18 -24
- package/assets/test/test.html +5 -4
- package/assets/test/testform.json +27 -0
- package/dist/MC.d.ts +2 -2
- package/dist/MC.d.ts.map +1 -1
- package/dist/MC.min.js +2 -1
- package/dist/MC.ts +6 -3
- package/dist/elements.min.js +1 -1
- package/dist/formValues.d.ts.map +1 -1
- package/dist/formValues.ts +0 -14
- package/dist/formvValues.min.js +1 -1
- package/dist/microcomponents.min.js +1 -1
- package/dist/observables.d.ts.map +1 -1
- package/dist/observables.min.js +1 -1
- package/dist/observables.ts +177 -169
- package/dist/selectors.min.js +1 -1
- package/package.json +1 -1
- package/public/MC.d.ts +2 -2
- package/public/MC.d.ts.map +1 -1
- package/public/MC.js +4 -3
- package/public/MC.js.map +1 -1
- package/public/MC.min.js +2 -1
- package/public/MC.ts +6 -3
- package/public/documentation/MC.md +2 -2
- package/public/documentation/MicroComponents.svg +15 -0
- package/public/documentation/elements.md +18 -16
- package/public/documentation/formvalues.md +5 -26
- package/public/documentation/klemmstein.png +0 -0
- package/public/documentation/observables.md +18 -24
- package/public/elements.min.js +1 -1
- package/public/formValues.d.ts.map +1 -1
- package/public/formValues.js.map +1 -1
- package/public/formValues.ts +0 -14
- package/public/formvValues.min.js +1 -1
- package/public/microcomponents.min.js +1 -1
- package/public/observables.d.ts.map +1 -1
- package/public/observables.js +111 -118
- package/public/observables.js.map +1 -1
- package/public/observables.min.js +1 -1
- package/public/observables.ts +177 -169
- package/public/selectors.min.js +1 -1
- package/public/src/MC.ts +6 -3
- package/public/src/formValues.ts +0 -14
- package/public/src/observables.ts +177 -169
- package/public/test/MC.d.ts +2 -2
- package/public/test/MC.d.ts.map +1 -1
- package/public/test/MC.js +4 -3
- package/public/test/MC.js.map +1 -1
- package/public/test/MC.ts +6 -3
- package/public/test/formValues.d.ts.map +1 -1
- package/public/test/formValues.js.map +1 -1
- package/public/test/formValues.ts +0 -14
- package/public/test/microcomponents.min.js +1 -1
- package/public/test/observables.d.ts.map +1 -1
- package/public/test/observables.js +111 -118
- package/public/test/observables.js.map +1 -1
- package/public/test/observables.ts +177 -169
- package/public/test/test/grandparent.js +1 -1
- package/public/test/test/testform.js +1 -1
- package/public/test/test/testform.js.map +1 -1
- package/public/test/test.d.ts.map +1 -1
- package/public/test/test.html +5 -4
- package/public/test/test.js +5 -6
- package/public/test/test.js.map +1 -1
- package/public/test/testform.json +27 -0
- package/public/typedoc/assets/navigation.js +1 -1
- package/public/typedoc/assets/search.js +1 -1
- package/public/typedoc/classes/MC.DC.html +2 -2
- package/public/typedoc/classes/MC.MC.html +2 -2
- package/public/typedoc/classes/MC.McBase.html +2 -2
- package/public/typedoc/classes/MC.McEvent.html +2 -2
- package/public/typedoc/functions/MC.addListener.html +1 -1
- package/public/typedoc/functions/MC.autoload.html +1 -1
- package/public/typedoc/functions/MC.removeListener.html +1 -1
- package/public/typedoc/functions/elements.defineCE.html +1 -1
- package/public/typedoc/functions/elements.getCE.html +1 -1
- package/public/typedoc/functions/formValues.formValues.html +1 -1
- package/public/typedoc/functions/observables.observe.html +1 -1
- package/public/typedoc/index.html +40 -23
- package/public/typedoc/interfaces/MC.HTMLMcElement.html +2 -2
- package/public/typedoc/modules/MC.html +1 -1
- package/public/typedoc/modules/elements.html +1 -1
- package/public/typedoc/modules/formValues.html +1 -1
- package/public/typedoc/modules/observables.html +1 -1
- package/public/typedoc/modules.html +0 -1
- package/public/typedoc/types/observables.Observable.html +1 -1
- package/src/MC.ts +6 -3
- package/src/formValues.ts +0 -14
- package/src/observables.ts +177 -169
- package/src/test/test/testform.ts +10 -2
- package/src/{test.ts → test/test.ts} +32 -26
- package/tsconfig.json +2 -2
- package/typedoc.json +1 -1
- package/checklist.md +0 -93
- package/dist/microcomponents.es3.d.ts +0 -2
- package/dist/microcomponents.es3.d.ts.map +0 -1
- package/dist/test.d.ts +0 -2
- package/dist/test.d.ts.map +0 -1
- package/dist/test.ts +0 -194
- package/public/microcomponents.es3.d.ts +0 -2
- package/public/microcomponents.es3.d.ts.map +0 -1
- package/public/microcomponents.es3.js +0 -303
- package/public/microcomponents.es3.js.map +0 -1
- package/public/src/test.ts +0 -194
- package/public/test/microcomponents.es3.d.ts +0 -2
- package/public/test/microcomponents.es3.d.ts.map +0 -1
- package/public/test/microcomponents.es3.js +0 -303
- package/public/test/microcomponents.es3.js.map +0 -1
- package/public/test/test.ts +0 -194
- package/public/typedoc/functions/selectors._d.html +0 -1
- package/public/typedoc/functions/selectors._t.html +0 -1
- package/public/typedoc/interfaces/selectors.DSelector.html +0 -50
- package/public/typedoc/interfaces/selectors.TSelector.html +0 -34
- package/public/typedoc/modules/selectors.html +0 -7
- package/public/typedoc/types/selectors.selection.html +0 -1
- package/public/typedoc/types/selectors.singleSelector.html +0 -1
- package/src/microcomponents.es3.js +0 -377
- /package/{klemmstein.png → assets/documentation/klemmstein.png} +0 -0
package/public/test/test.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
LooseObject,
|
|
5
|
-
DC,
|
|
6
|
-
McEvent,
|
|
7
|
-
defineCE,
|
|
8
|
-
getCE,
|
|
9
|
-
observe,
|
|
10
|
-
Observable,
|
|
11
|
-
} from './microcomponents.js';
|
|
12
|
-
|
|
13
|
-
class Translator extends DC {
|
|
14
|
-
#translations: LooseObject = {};
|
|
15
|
-
|
|
16
|
-
Language: unknown = 'en';
|
|
17
|
-
Translation: unknown = {};
|
|
18
|
-
|
|
19
|
-
constructor(
|
|
20
|
-
target: HTMLElement | ShadowRoot | DocumentFragment,
|
|
21
|
-
translations: LooseObject,
|
|
22
|
-
translationTargetObject: HTMLElement
|
|
23
|
-
) {
|
|
24
|
-
super(target as HTMLElement);
|
|
25
|
-
let that = this; // minifier help
|
|
26
|
-
|
|
27
|
-
// state
|
|
28
|
-
that.Language = 'en';
|
|
29
|
-
that.Translation = {};
|
|
30
|
-
|
|
31
|
-
observe(that);
|
|
32
|
-
|
|
33
|
-
// setup
|
|
34
|
-
that.#translations = translations;
|
|
35
|
-
|
|
36
|
-
// state
|
|
37
|
-
(that.Language as Observable).observe((lang) => {
|
|
38
|
-
if (that.#translations.hasOwnProperty(lang)) {
|
|
39
|
-
that.Translation = { lang: that.#translations[lang] }; // set translation
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
(that.Translation as Observable).bind(translationTargetObject);
|
|
44
|
-
|
|
45
|
-
that.target.setAttribute('language', 'en');
|
|
46
|
-
|
|
47
|
-
(that.Language as Observable).notify();
|
|
48
|
-
|
|
49
|
-
delete that._mc; // cleanup, not needed
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
onAttributeChanged(ev: McEvent) {
|
|
53
|
-
if (!ev.data.newValue) return;
|
|
54
|
-
switch (ev.data.name) {
|
|
55
|
-
case 'language':
|
|
56
|
-
this.Language = ev.data.newValue;
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
defineCE(
|
|
63
|
-
// equivalent to custom element registry .define()
|
|
64
|
-
'my-tag',
|
|
65
|
-
class MyTag extends DC {
|
|
66
|
-
#template: string = '<button>{lang.click} {counter}</button>';
|
|
67
|
-
|
|
68
|
-
#languages = {
|
|
69
|
-
en: {
|
|
70
|
-
click: 'click me',
|
|
71
|
-
},
|
|
72
|
-
de: {
|
|
73
|
-
click: 'klick mich',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
Dom: LooseObject = {};
|
|
78
|
-
|
|
79
|
-
constructor(target: HTMLElement) {
|
|
80
|
-
super(target);
|
|
81
|
-
|
|
82
|
-
let that = this; // minifier help
|
|
83
|
-
|
|
84
|
-
// render
|
|
85
|
-
target.innerHTML = this.#template;
|
|
86
|
-
|
|
87
|
-
// add translator
|
|
88
|
-
DC.add(
|
|
89
|
-
target,
|
|
90
|
-
'translator',
|
|
91
|
-
new Translator(target, that.#languages, target)
|
|
92
|
-
);
|
|
93
|
-
|
|
94
|
-
delete that._mc; // cleanup, not needed
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
oneInit(ev: McEvent) {
|
|
98
|
-
let that = this;
|
|
99
|
-
|
|
100
|
-
// state
|
|
101
|
-
that.Dom = { counter: 0 };
|
|
102
|
-
|
|
103
|
-
// state: convert all props defined so far into observables
|
|
104
|
-
observe(that);
|
|
105
|
-
|
|
106
|
-
// bind Dom to target
|
|
107
|
-
(that.Dom as Observable).bind(that.target);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
onClick(ev: McEvent) {
|
|
111
|
-
const that = this,
|
|
112
|
-
c = that.Dom.counter++;
|
|
113
|
-
(ev.data as PointerEvent).stopPropagation();
|
|
114
|
-
(that.target as HTMLElement).classList.remove('clicked');
|
|
115
|
-
(that.target as HTMLElement).classList.add(
|
|
116
|
-
that.Dom.counter > 9 ? 'overClicked' : 'clicked'
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
['language']
|
|
121
|
-
);
|
|
122
|
-
|
|
123
|
-
let MyTag: CustomElementConstructor = getCE('my-tag')!,
|
|
124
|
-
fragment = new DocumentFragment();
|
|
125
|
-
|
|
126
|
-
/*
|
|
127
|
-
stress test
|
|
128
|
-
*/
|
|
129
|
-
|
|
130
|
-
let start = new Date().getTime(),
|
|
131
|
-
max = 1000;
|
|
132
|
-
|
|
133
|
-
// create 1000 elements
|
|
134
|
-
for (let x = 0; x < max; x++) {
|
|
135
|
-
fragment.append(new MyTag());
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
let end = new Date().getTime();
|
|
139
|
-
|
|
140
|
-
// and put them into the DOM
|
|
141
|
-
document.body.appendChild(fragment);
|
|
142
|
-
|
|
143
|
-
//document.querySelectorAll('my-tag').forEach((e) => e.remove());
|
|
144
|
-
|
|
145
|
-
/*
|
|
146
|
-
console test
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
setTimeout(() => {
|
|
150
|
-
// console.clear();
|
|
151
|
-
|
|
152
|
-
console.log(
|
|
153
|
-
'%c \n\nStress Test:\n\n %cInstancing %s web components (%s classes): %c %s ms.',
|
|
154
|
-
'font-weight: bold; color: black;',
|
|
155
|
-
'font-weight: normal;',
|
|
156
|
-
max,
|
|
157
|
-
max * 3,
|
|
158
|
-
'font-weight: bold; color: blue;',
|
|
159
|
-
end - start
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
//document.body.appendChild(new MyTag());
|
|
163
|
-
|
|
164
|
-
let element = document.querySelector('my-tag');
|
|
165
|
-
|
|
166
|
-
console.log(
|
|
167
|
-
"\n\n%cInspect this tag:%c \n( ...to see the inner structure in the '._mc' property )\n\n %O %c %s",
|
|
168
|
-
'font-weight: bold;',
|
|
169
|
-
'font-weight: normal;',
|
|
170
|
-
element,
|
|
171
|
-
'font-weight: bold;',
|
|
172
|
-
'\n\nLook up code in the debugger: test.js\n'
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
let form = ( document.querySelector('test-testform') as any);
|
|
176
|
-
let formInstance = form._mc.TestTestform;
|
|
177
|
-
|
|
178
|
-
(window as any).form = formInstance;
|
|
179
|
-
console.log(
|
|
180
|
-
"\n\n%cAttached a global variable 'form':%c \n\n %O %c %s %c %s %c %s",
|
|
181
|
-
'font-weight: bold;',
|
|
182
|
-
'font-weight: normal;',
|
|
183
|
-
formInstance,
|
|
184
|
-
'font-weight: bold;',
|
|
185
|
-
'\n\nYou can use it to change input values, e.g. \n\n',
|
|
186
|
-
'font-weight: normal;',
|
|
187
|
-
' form.data.textInput="other value"',
|
|
188
|
-
'font-weight: bold;',
|
|
189
|
-
'\n\nChanges will be reflected in the form contents, same as vice versa.\n'
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
// will trigger the event on all micro components contained in <my-tag>
|
|
193
|
-
DC.trigger(element, 'doSomething');
|
|
194
|
-
}, 500);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$d | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._d.html">$d</a></li></ul><h1>Function $d</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_d" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$d</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a><a href="#_d" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type tsd-kind-interface">DSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/22493dfc45b0ddfc2926a53ec0fd9b5212ad4955/src/selectors.ts#L1610">src/selectors.ts:1610</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>$t | Micro Components</title><meta name="description" content="Documentation for Micro Components"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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">Micro Components</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">Micro Components</a></li><li><a href="../modules/selectors.html">selectors</a></li><li><a href="selectors._t.html">$t</a></li></ul><h1>Function $t</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="_t" class="tsd-anchor"></a><span class="tsd-kind-call-signature">$t</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a><a href="#_t" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">selection</span>: <a href="../types/selectors.selection.html" class="tsd-signature-type tsd-kind-type-alias">selection</a></span></li><li><span><span class="tsd-kind-parameter">element</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = document</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type tsd-kind-interface">TSelector</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/22493dfc45b0ddfc2926a53ec0fd9b5212ad4955/src/selectors.ts#L1628">src/selectors.ts:1628</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>Micro Components</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|