@twobirds/microcomponents 0.0.34 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -27
- package/assets/documentation/{MicroComponents.md → MC.md} +17 -17
- package/assets/documentation/comparision.md +0 -0
- package/assets/documentation/elements.md +276 -0
- package/assets/documentation/magic.md +10 -68
- package/assets/my-tag.css +6 -2
- package/dist/MC.d.ts +3 -4
- package/dist/MC.d.ts.map +1 -1
- package/dist/MC.min.js +89 -66
- package/dist/MC.ts +213 -178
- package/dist/autoloader.ts +1 -1
- package/dist/{customElements.d.ts → elements.d.ts} +1 -1
- package/dist/elements.d.ts.map +1 -0
- package/dist/elements.min.js +1 -0
- package/dist/{customElements.ts → elements.ts} +23 -14
- package/dist/helpers.d.ts +6 -4
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.ts +95 -128
- package/dist/microcomponents.d.ts +3 -3
- package/dist/microcomponents.d.ts.map +1 -1
- package/dist/microcomponents.min.js +1 -1
- package/dist/microcomponents.ts +3 -3
- package/dist/{customObservables.d.ts → observables.d.ts} +3 -3
- package/dist/observables.d.ts.map +1 -0
- package/dist/observables.min.js +1 -0
- package/dist/observables.ts +353 -0
- package/dist/{customSelectors.d.ts → selectors.d.ts} +1 -1
- package/dist/selectors.d.ts.map +1 -0
- package/dist/selectors.min.js +1 -0
- package/dist/test.ts +135 -156
- package/klemmstein.png +0 -0
- package/package.json +52 -52
- package/public/MC.js +90 -67
- package/public/MC.js.map +1 -1
- package/public/MC.min.js +89 -66
- package/public/assets/search.js +1 -1
- package/public/autoloader.js +1 -1
- package/public/autoloader.js.map +1 -1
- package/public/classes/{DC.html → MC.DC.html} +60 -59
- package/public/classes/{MC.html → MC.MC.html} +41 -35
- package/public/classes/{McBase.html → MC.McBase.html} +28 -20
- package/public/classes/{McEvent.html → MC.McEvent.html} +48 -42
- package/public/documentation/{MicroComponents.md → MC.md} +17 -17
- package/public/documentation/comparision.md +0 -0
- package/public/documentation/elements.md +276 -0
- package/public/documentation/magic.md +10 -68
- package/public/{customElements.js → elements.js} +9 -10
- package/public/elements.js.map +1 -0
- package/public/elements.min.js +1 -0
- package/public/functions/{addListener.html → MC.addListener.html} +18 -12
- package/public/functions/{removeListener.html → MC.removeListener.html} +18 -12
- package/public/functions/elements.defineCE.html +78 -0
- package/public/functions/elements.getCE.html +63 -0
- package/public/functions/formValues.formValues.html +68 -0
- package/public/functions/observables.observe.html +65 -0
- package/public/functions/selectors._d.html +69 -0
- package/public/functions/selectors._t.html +69 -0
- package/public/helpers.js +66 -89
- package/public/helpers.js.map +1 -1
- package/public/index.html +48 -33
- package/public/interfaces/{HTMLMcElement.html → MC.HTMLMcElement.html} +601 -595
- package/public/interfaces/selectors.DSelector.html +1013 -0
- package/public/interfaces/selectors.TSelector.html +712 -0
- package/public/microcomponents.js +3 -3
- package/public/microcomponents.js.map +1 -1
- package/public/microcomponents.min.js +1 -1
- package/public/modules/MC.html +78 -0
- package/public/modules/elements.html +62 -0
- package/public/modules/formValues.html +60 -0
- package/public/modules/observables.html +65 -0
- package/public/modules/selectors.html +76 -0
- package/public/modules.html +11 -23
- package/public/my-tag.css +6 -2
- package/public/observables.js +259 -0
- package/public/observables.js.map +1 -0
- package/public/observables.min.js +1 -0
- package/public/{customSelectors.js → selectors.js} +1 -1
- package/public/selectors.js.map +1 -0
- package/public/selectors.min.js +1 -0
- package/public/src/MC.ts +413 -0
- package/public/src/McEvent.ts +96 -0
- package/public/src/autoloader.ts +98 -0
- package/{src/customElements.ts → public/src/elements.ts} +23 -14
- package/public/src/formValues.ts +275 -0
- package/public/src/helpers.ts +140 -0
- package/public/src/microcomponents.ts +8 -0
- package/public/src/observables.ts +353 -0
- package/public/src/test.ts +190 -0
- package/public/test.js +93 -118
- package/public/test.js.map +1 -1
- package/public/types/observables.Observable.html +91 -0
- package/public/types/selectors.selection.html +58 -0
- package/public/types/selectors.singleSelector.html +58 -0
- package/src/MC.ts +213 -178
- package/src/autoloader.ts +1 -1
- package/src/elements.ts +76 -0
- package/src/helpers.ts +95 -128
- package/src/microcomponents.ts +3 -3
- package/src/observables.ts +353 -0
- package/src/selectors.ts +1634 -0
- package/src/test.ts +135 -156
- package/typedoc.json +1 -1
- package/webpack.config.js +9 -9
- package/dist/customElements.d.ts.map +0 -1
- package/dist/customElements.min.js +0 -1
- package/dist/customObservables.d.ts.map +0 -1
- package/dist/customObservables.min.js +0 -1
- package/dist/customObservables.ts +0 -348
- package/dist/customSelectors.d.ts.map +0 -1
- package/dist/customSelectors.min.js +0 -1
- package/public/customElements.js.map +0 -1
- package/public/customElements.min.js +0 -1
- package/public/customObservables.js +0 -256
- package/public/customObservables.js.map +0 -1
- package/public/customObservables.min.js +0 -1
- package/public/customSelectors.js.map +0 -1
- package/public/customSelectors.min.js +0 -1
- package/src/customObservables.ts +0 -348
- /package/dist/{customSelectors.ts → selectors.ts} +0 -0
- /package/{src/customSelectors.ts → public/src/selectors.ts} +0 -0
package/public/test.js
CHANGED
|
@@ -1,137 +1,112 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
//import { MC, DC,
|
|
4
|
-
//import { defineCE, getCE } from "./
|
|
5
|
-
//import { observe } from "./
|
|
1
|
+
'use strict';
|
|
2
|
+
import { DC, defineCE, getCE, observe, } from './microcomponents.js';
|
|
3
|
+
//import { MC, DC, McEvent } from "./MC.js";
|
|
4
|
+
//import { defineCE, getCE } from "./elements.js";
|
|
5
|
+
//import { observe } from "./observables.js";
|
|
6
6
|
//MC.debug = true;
|
|
7
|
-
class
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
class DeeplyNestedEvTarget extends MC {
|
|
14
|
-
constructor(target) {
|
|
15
|
-
super(target);
|
|
16
|
-
}
|
|
17
|
-
oneInit(ev) {
|
|
18
|
-
let logger = this.target?.target?.target?._mc?.logger;
|
|
19
|
-
//logger?.warn("DeeplyNestedEvTarget .oneInit(ev)", ev);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class EvTarget extends MC {
|
|
23
|
-
constructor(target) {
|
|
24
|
-
super(target);
|
|
25
|
-
}
|
|
26
|
-
onCustomEvent(ev) {
|
|
27
|
-
let logger = this.target?.target?._mc?.logger;
|
|
28
|
-
logger?.log("onCustomEvent", ev);
|
|
29
|
-
}
|
|
30
|
-
oneInit(ev) {
|
|
31
|
-
let that = this, _mc = that._mc, logger = this.target?.target?._mc?.logger;
|
|
32
|
-
//logger?.warn("EvTarget .oneInit(ev)", ev);
|
|
33
|
-
_mc.deeplyNestedEvTarget = new DeeplyNestedEvTarget(that);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
class Logger extends DC {
|
|
37
|
-
prefix = "";
|
|
38
|
-
stdOut = console;
|
|
39
|
-
constructor(target, logger, prefix) {
|
|
40
|
-
// logger must implement the console interface
|
|
7
|
+
class Translator extends DC {
|
|
8
|
+
#translations = {};
|
|
9
|
+
Language = 'en';
|
|
10
|
+
Translation = {};
|
|
11
|
+
constructor(target, translations, translationTargetObject) {
|
|
41
12
|
super(target);
|
|
42
|
-
let that = this; //
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
that.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
13
|
+
let that = this; // minifier help
|
|
14
|
+
// state
|
|
15
|
+
that.Language = 'en';
|
|
16
|
+
that.Translation = {};
|
|
17
|
+
observe(that);
|
|
18
|
+
// setup
|
|
19
|
+
that.#translations = translations;
|
|
20
|
+
// state
|
|
21
|
+
that.Language.observe((lang) => {
|
|
22
|
+
if (that.#translations.hasOwnProperty(lang)) {
|
|
23
|
+
that.Translation = { lang: that.#translations[lang] }; // set translation
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
that.Translation.bind(translationTargetObject);
|
|
27
|
+
this.target.setAttribute('language', 'en');
|
|
28
|
+
this.Language.notify();
|
|
49
29
|
}
|
|
50
|
-
|
|
51
|
-
|
|
30
|
+
oneInit() {
|
|
31
|
+
//(this.Language as Observable).notify(); // trigger translation
|
|
52
32
|
}
|
|
53
|
-
|
|
54
|
-
|
|
33
|
+
onAttributeChanged(ev) {
|
|
34
|
+
if (!ev.data.newValue)
|
|
35
|
+
return;
|
|
36
|
+
let that = this;
|
|
37
|
+
switch (ev.data.name) {
|
|
38
|
+
case 'language':
|
|
39
|
+
that.Language = ev.data.newValue;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
55
42
|
}
|
|
56
43
|
}
|
|
57
44
|
defineCE(
|
|
58
45
|
// equivalent to custom element registry .define()
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
46
|
+
'my-tag', class MyTag extends DC {
|
|
47
|
+
#template = '<button>{lang.click} {counter}</button>';
|
|
48
|
+
#languages = {
|
|
49
|
+
en: {
|
|
50
|
+
click: 'click me',
|
|
51
|
+
},
|
|
52
|
+
de: {
|
|
53
|
+
click: 'klick mich',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
Dom = {};
|
|
57
|
+
constructor(target) {
|
|
63
58
|
super(target);
|
|
64
59
|
let that = this; // minifier help
|
|
65
|
-
//
|
|
66
|
-
|
|
67
|
-
that.Counter = 0;
|
|
68
|
-
// convert all props defined so far into custom observables
|
|
69
|
-
observe(that);
|
|
70
|
-
DC.add(target, "logger", new Logger(target, console, "[logger]"));
|
|
60
|
+
// hide
|
|
61
|
+
target.setAttribute('style', 'display:none');
|
|
71
62
|
// render
|
|
72
|
-
target.innerHTML =
|
|
63
|
+
target.innerHTML = this.#template;
|
|
64
|
+
// add public translator
|
|
65
|
+
DC.add(target, 'translator', new Translator(target, that.#languages, target));
|
|
73
66
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//
|
|
67
|
+
oneInit(ev) {
|
|
68
|
+
let that = this;
|
|
69
|
+
// state
|
|
70
|
+
that.Dom = { counter: 0 };
|
|
71
|
+
// state: convert all props defined so far into observables
|
|
72
|
+
observe(that);
|
|
73
|
+
// bind Dom to target
|
|
74
|
+
that.Dom.bind(that.target);
|
|
75
|
+
// show
|
|
76
|
+
setTimeout(() => that.target.removeAttribute('style'), 100);
|
|
79
77
|
}
|
|
80
78
|
onAttributeChanged(ev) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
/*
|
|
85
|
-
native event handlers
|
|
86
|
-
*/
|
|
87
|
-
oneClick(ev) {
|
|
88
|
-
let logger = this.target._mc?.logger;
|
|
89
|
-
logger.info("oneClick handler", ev);
|
|
90
|
-
this._mc.customEventTarget.trigger("customEvent");
|
|
91
|
-
this.target.setAttribute("my-attribute", "testValue");
|
|
79
|
+
//console.log(ev);
|
|
80
|
+
this.target._mc.translator.Language = ev.data.newValue;
|
|
92
81
|
}
|
|
93
82
|
onClick(ev) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
_mc.customEventTarget = new EvTarget(that);
|
|
107
|
-
// add a private adder
|
|
108
|
-
_mc.Adder = new Adder();
|
|
109
|
-
// add callback for this.Counter changes
|
|
110
|
-
that.Counter.observe((value) => {
|
|
111
|
-
logger.log("Counter has changed to: " + value);
|
|
112
|
-
});
|
|
113
|
-
//logger.log("add 1,2,3 =", _mc.Adder.sum(1, 2, 3));
|
|
114
|
-
}
|
|
115
|
-
onDoSomething(ev) {
|
|
116
|
-
let logger = this.target._mc?.logger;
|
|
117
|
-
logger?.log(".onDoSomething(ev): something done...", ev);
|
|
118
|
-
}
|
|
119
|
-
}, ["my-attribute"]);
|
|
120
|
-
let MyTag = getCE("my-tag"), fragment = new DocumentFragment();
|
|
121
|
-
// stress test
|
|
122
|
-
console.time("Instancing");
|
|
123
|
-
// create 1000 elements
|
|
124
|
-
for (let x = 0; x < 1000; x++) {
|
|
125
|
-
fragment.append(new MyTag("my-data"));
|
|
83
|
+
this.Dom.counter++;
|
|
84
|
+
this.target.classList.add('clicked');
|
|
85
|
+
}
|
|
86
|
+
}, ['language']);
|
|
87
|
+
let MyTag = getCE('my-tag'), fragment = new DocumentFragment();
|
|
88
|
+
/*
|
|
89
|
+
stress test
|
|
90
|
+
*/
|
|
91
|
+
let start = new Date().getTime();
|
|
92
|
+
// create 100 elements
|
|
93
|
+
for (let x = 0; x < 100; x++) {
|
|
94
|
+
fragment.append(new MyTag());
|
|
126
95
|
}
|
|
96
|
+
let end = new Date().getTime();
|
|
97
|
+
// and put them into the DOM
|
|
127
98
|
document.body.appendChild(fragment);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
console.log(
|
|
135
|
-
|
|
136
|
-
|
|
99
|
+
//document.querySelectorAll('my-tag').forEach((e) => e.remove());
|
|
100
|
+
/*
|
|
101
|
+
console test
|
|
102
|
+
*/
|
|
103
|
+
setTimeout(() => {
|
|
104
|
+
console.clear();
|
|
105
|
+
console.log('%c \n\nStress Test:\n\n %cInstancing 100 web components: %c %s ms.', 'font-weight: bold; color: black;', 'font-weight: normal;', 'font-weight: bold; color: blue;', end - start);
|
|
106
|
+
document.body.appendChild(new MyTag());
|
|
107
|
+
let element = document.querySelector('my-tag');
|
|
108
|
+
console.log("\n\n%cInspect this tag:%c \n( ...to see the inner structure in the '._mc' property )\n\n %O %c %s", 'font-weight: bold;', 'font-weight: normal;', element, 'font-weight: bold;', '\n\nLook up code in the debugger: test.js\n\n');
|
|
109
|
+
// will trigger the event on all micro components contained in <my-tag>
|
|
110
|
+
DC.trigger(element, 'doSomething');
|
|
111
|
+
}, 500);
|
|
137
112
|
//# sourceMappingURL=test.js.map
|
package/public/test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAAA,YAAY,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,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEvC,IAAI,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE/C,OAAO,CAAC,GAAG,CACV,mGAAmG,EACnG,oBAAoB,EACpB,sBAAsB,EACtB,OAAO,EACP,oBAAoB,EACpB,+CAA+C,CAC/C,CAAC;IAEF,uEAAuE;IACvE,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACpC,CAAC,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Observable | 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 async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<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"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<div class="field">
|
|
6
|
+
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
+
<ul class="results">
|
|
8
|
+
<li class="state loading">Preparing search index...</li>
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div>
|
|
10
|
+
<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"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
+
<div class="container container-main">
|
|
12
|
+
<div class="col-8 col-content">
|
|
13
|
+
<div class="tsd-page-title">
|
|
14
|
+
<ul class="tsd-breadcrumb">
|
|
15
|
+
<li><a href="../modules.html">Micro Components</a></li>
|
|
16
|
+
<li><a href="../modules/observables.html">observables</a></li>
|
|
17
|
+
<li><a href="observables.Observable.html">Observable</a></li></ul>
|
|
18
|
+
<h1>Type alias Observable</h1></div>
|
|
19
|
+
<div class="tsd-signature">Observable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>bind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ShadowRoot</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span> </span>notify<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</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><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span> </span>observe<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>cb<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
20
|
+
<div class="tsd-type-declaration">
|
|
21
|
+
<h4>Type declaration</h4>
|
|
22
|
+
<ul class="tsd-parameters">
|
|
23
|
+
<li class="tsd-parameter">
|
|
24
|
+
<h5>bind<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ShadowRoot</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5>
|
|
25
|
+
<ul class="tsd-parameters">
|
|
26
|
+
<li class="tsd-parameter-signature">
|
|
27
|
+
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property">
|
|
28
|
+
<li class="tsd-signature" id="__type.bind.__type-1.__type-2"><span class="tsd-signature-symbol">(</span>target<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ShadowRoot</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
29
|
+
<li class="tsd-description">
|
|
30
|
+
<div class="tsd-parameters">
|
|
31
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
32
|
+
<ul class="tsd-parameter-list">
|
|
33
|
+
<li>
|
|
34
|
+
<h5>target: <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ShadowRoot</span></h5></li></ul></div>
|
|
35
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li>
|
|
36
|
+
<li class="tsd-parameter">
|
|
37
|
+
<h5>notify<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</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><span class="tsd-signature-symbol">)</span></h5>
|
|
38
|
+
<ul class="tsd-parameters">
|
|
39
|
+
<li class="tsd-parameter-signature">
|
|
40
|
+
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property">
|
|
41
|
+
<li class="tsd-signature" id="__type.notify.__type-3.__type-4"><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>
|
|
42
|
+
<li class="tsd-description">
|
|
43
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li>
|
|
44
|
+
<li class="tsd-parameter">
|
|
45
|
+
<h5>observe<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span>cb<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h5>
|
|
46
|
+
<ul class="tsd-parameters">
|
|
47
|
+
<li class="tsd-parameter-signature">
|
|
48
|
+
<ul class="tsd-signatures tsd-kind-type-literal tsd-parent-kind-property">
|
|
49
|
+
<li class="tsd-signature" id="__type.observe.__type-5.__type-6"><span class="tsd-signature-symbol">(</span>cb<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Callback</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
50
|
+
<li class="tsd-description">
|
|
51
|
+
<div class="tsd-parameters">
|
|
52
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
53
|
+
<ul class="tsd-parameter-list">
|
|
54
|
+
<li>
|
|
55
|
+
<h5>cb: <span class="tsd-signature-type">Callback</span></h5></li></ul></div>
|
|
56
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul></div><aside class="tsd-sources">
|
|
57
|
+
<ul>
|
|
58
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/observables.ts#L344">src/observables.ts:344</a></li></ul></aside></div>
|
|
59
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
60
|
+
<div class="tsd-navigation settings">
|
|
61
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
62
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
63
|
+
<div class="tsd-accordion-details">
|
|
64
|
+
<div class="tsd-filter-visibility">
|
|
65
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
66
|
+
<ul id="tsd-filter-options">
|
|
67
|
+
<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>
|
|
68
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><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>Private</span></label></li>
|
|
69
|
+
<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>
|
|
70
|
+
<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></form></div>
|
|
71
|
+
<div class="tsd-theme-toggle">
|
|
72
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
73
|
+
<nav class="tsd-navigation primary">
|
|
74
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
75
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
76
|
+
<div class="tsd-accordion-details">
|
|
77
|
+
<ul>
|
|
78
|
+
<li class="current"><a href="../modules.html">Micro <wbr/>Components</a>
|
|
79
|
+
<ul>
|
|
80
|
+
<li class="tsd-kind-module"><a href="../modules/MC.html">MC</a></li>
|
|
81
|
+
<li class="tsd-kind-module"><a href="../modules/elements.html">elements</a></li>
|
|
82
|
+
<li class="tsd-kind-module"><a href="../modules/formValues.html">form<wbr/>Values</a></li>
|
|
83
|
+
<li class="current tsd-kind-module"><a href="../modules/observables.html">observables</a></li>
|
|
84
|
+
<li class="tsd-kind-module"><a href="../modules/selectors.html">selectors</a></li></ul></li></ul></div></details></nav>
|
|
85
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
86
|
+
<ul>
|
|
87
|
+
<li class="current tsd-kind-type-alias tsd-parent-kind-module"><a href="observables.Observable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Observable</a></li>
|
|
88
|
+
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/observables.observe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>observe</a></li></ul></nav></div></div>
|
|
89
|
+
<div class="container tsd-generator">
|
|
90
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
91
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>selection | 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 async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<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"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<div class="field">
|
|
6
|
+
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
+
<ul class="results">
|
|
8
|
+
<li class="state loading">Preparing search index...</li>
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div>
|
|
10
|
+
<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"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
+
<div class="container container-main">
|
|
12
|
+
<div class="col-8 col-content">
|
|
13
|
+
<div class="tsd-page-title">
|
|
14
|
+
<ul class="tsd-breadcrumb">
|
|
15
|
+
<li><a href="../modules.html">Micro Components</a></li>
|
|
16
|
+
<li><a href="../modules/selectors.html">selectors</a></li>
|
|
17
|
+
<li><a href="selectors.selection.html">selection</a></li></ul>
|
|
18
|
+
<h1>Type alias selection</h1></div>
|
|
19
|
+
<div class="tsd-signature">selection<span class="tsd-signature-symbol">:</span> <a href="selectors.singleSelector.html" class="tsd-signature-type" data-tsd-kind="Type alias">singleSelector</a><span class="tsd-signature-symbol"> | </span><a href="selectors.singleSelector.html" class="tsd-signature-type" data-tsd-kind="Type alias">singleSelector</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources">
|
|
20
|
+
<ul>
|
|
21
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/selectors.ts#L1634">src/selectors.ts:1634</a></li></ul></aside></div>
|
|
22
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
23
|
+
<div class="tsd-navigation settings">
|
|
24
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
25
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
26
|
+
<div class="tsd-accordion-details">
|
|
27
|
+
<div class="tsd-filter-visibility">
|
|
28
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
29
|
+
<ul id="tsd-filter-options">
|
|
30
|
+
<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>
|
|
31
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><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>Private</span></label></li>
|
|
32
|
+
<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>
|
|
33
|
+
<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></form></div>
|
|
34
|
+
<div class="tsd-theme-toggle">
|
|
35
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
36
|
+
<nav class="tsd-navigation primary">
|
|
37
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
38
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
39
|
+
<div class="tsd-accordion-details">
|
|
40
|
+
<ul>
|
|
41
|
+
<li class="current"><a href="../modules.html">Micro <wbr/>Components</a>
|
|
42
|
+
<ul>
|
|
43
|
+
<li class="tsd-kind-module"><a href="../modules/MC.html">MC</a></li>
|
|
44
|
+
<li class="tsd-kind-module"><a href="../modules/elements.html">elements</a></li>
|
|
45
|
+
<li class="tsd-kind-module"><a href="../modules/formValues.html">form<wbr/>Values</a></li>
|
|
46
|
+
<li class="tsd-kind-module"><a href="../modules/observables.html">observables</a></li>
|
|
47
|
+
<li class="current tsd-kind-module"><a href="../modules/selectors.html">selectors</a></li></ul></li></ul></div></details></nav>
|
|
48
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
49
|
+
<ul>
|
|
50
|
+
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selectors.DSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>DSelector</a></li>
|
|
51
|
+
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selectors.TSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>TSelector</a></li>
|
|
52
|
+
<li class="current tsd-kind-type-alias tsd-parent-kind-module"><a href="selectors.selection.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>selection</a></li>
|
|
53
|
+
<li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="selectors.singleSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>single<wbr/>Selector</a></li>
|
|
54
|
+
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/selectors._d.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>$d</a></li>
|
|
55
|
+
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/selectors._t.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>$t</a></li></ul></nav></div></div>
|
|
56
|
+
<div class="container tsd-generator">
|
|
57
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
58
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>singleSelector | 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 async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<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"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<div class="field">
|
|
6
|
+
<div id="tsd-toolbar-links"></div></div>
|
|
7
|
+
<ul class="results">
|
|
8
|
+
<li class="state loading">Preparing search index...</li>
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Micro Components</a></div>
|
|
10
|
+
<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"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
|
+
<div class="container container-main">
|
|
12
|
+
<div class="col-8 col-content">
|
|
13
|
+
<div class="tsd-page-title">
|
|
14
|
+
<ul class="tsd-breadcrumb">
|
|
15
|
+
<li><a href="../modules.html">Micro Components</a></li>
|
|
16
|
+
<li><a href="../modules/selectors.html">selectors</a></li>
|
|
17
|
+
<li><a href="selectors.singleSelector.html">singleSelector</a></li></ul>
|
|
18
|
+
<h1>Type alias singleSelector</h1></div>
|
|
19
|
+
<div class="tsd-signature">single<wbr/>Selector<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">ShadowRoot</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">HTMLCollection</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">NodeList</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/selectors.DSelector.html" class="tsd-signature-type" data-tsd-kind="Interface">DSelector</a><span class="tsd-signature-symbol"> | </span><a href="../classes/MC.MC.html" class="tsd-signature-type" data-tsd-kind="Class">MC</a><span class="tsd-signature-symbol"> | </span><a href="../classes/MC.DC.html" class="tsd-signature-type" data-tsd-kind="Class">DC</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/selectors.TSelector.html" class="tsd-signature-type" data-tsd-kind="Interface">TSelector</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span></div><aside class="tsd-sources">
|
|
20
|
+
<ul>
|
|
21
|
+
<li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/84a05c1/src/selectors.ts#L1632">src/selectors.ts:1632</a></li></ul></aside></div>
|
|
22
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
23
|
+
<div class="tsd-navigation settings">
|
|
24
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
25
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
26
|
+
<div class="tsd-accordion-details">
|
|
27
|
+
<div class="tsd-filter-visibility">
|
|
28
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
29
|
+
<ul id="tsd-filter-options">
|
|
30
|
+
<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>
|
|
31
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><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>Private</span></label></li>
|
|
32
|
+
<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>
|
|
33
|
+
<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></form></div>
|
|
34
|
+
<div class="tsd-theme-toggle">
|
|
35
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
36
|
+
<nav class="tsd-navigation primary">
|
|
37
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
38
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
39
|
+
<div class="tsd-accordion-details">
|
|
40
|
+
<ul>
|
|
41
|
+
<li class="current"><a href="../modules.html">Micro <wbr/>Components</a>
|
|
42
|
+
<ul>
|
|
43
|
+
<li class="tsd-kind-module"><a href="../modules/MC.html">MC</a></li>
|
|
44
|
+
<li class="tsd-kind-module"><a href="../modules/elements.html">elements</a></li>
|
|
45
|
+
<li class="tsd-kind-module"><a href="../modules/formValues.html">form<wbr/>Values</a></li>
|
|
46
|
+
<li class="tsd-kind-module"><a href="../modules/observables.html">observables</a></li>
|
|
47
|
+
<li class="current tsd-kind-module"><a href="../modules/selectors.html">selectors</a></li></ul></li></ul></div></details></nav>
|
|
48
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
49
|
+
<ul>
|
|
50
|
+
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selectors.DSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-256-path"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)" id="icon-256-text"></path></svg>DSelector</a></li>
|
|
51
|
+
<li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/selectors.TSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>TSelector</a></li>
|
|
52
|
+
<li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="selectors.selection.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>selection</a></li>
|
|
53
|
+
<li class="current tsd-kind-type-alias tsd-parent-kind-module"><a href="selectors.singleSelector.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>single<wbr/>Selector</a></li>
|
|
54
|
+
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/selectors._d.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>$d</a></li>
|
|
55
|
+
<li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/selectors._t.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>$t</a></li></ul></nav></div></div>
|
|
56
|
+
<div class="container tsd-generator">
|
|
57
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
58
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|