@twobirds/microcomponents 0.0.21 → 0.0.22

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.
Files changed (122) hide show
  1. package/.gitlab-ci.yml +1 -0
  2. package/README.md +31 -12
  3. package/assets/documentation/MicroComponents.md +228 -0
  4. package/assets/my-tag.css +4 -0
  5. package/assets/test.html +5 -1
  6. package/dist/MC.d.ts +32 -0
  7. package/dist/MC.d.ts.map +1 -0
  8. package/dist/MC.min.js +414 -0
  9. package/dist/MC.ts +350 -0
  10. package/dist/MCbundle.d.ts +8 -0
  11. package/dist/MCbundle.d.ts.map +1 -0
  12. package/dist/MCbundle.min.js +1 -0
  13. package/dist/MCbundle.ts +8 -0
  14. package/dist/McEvent.d.ts +15 -0
  15. package/dist/McEvent.d.ts.map +1 -0
  16. package/dist/McEvent.ts +96 -0
  17. package/dist/autoloader.d.ts +2 -0
  18. package/dist/autoloader.d.ts.map +1 -0
  19. package/dist/autoloader.ts +98 -0
  20. package/dist/customElements.d.ts +5 -0
  21. package/dist/customElements.d.ts.map +1 -0
  22. package/dist/customElements.min.js +1 -0
  23. package/dist/customElements.ts +67 -0
  24. package/dist/customObservables.d.ts +3 -0
  25. package/dist/customObservables.d.ts.map +1 -0
  26. package/dist/customObservables.min.js +1 -0
  27. package/dist/customObservables.ts +340 -0
  28. package/dist/customSelectors.d.ts +108 -0
  29. package/dist/customSelectors.d.ts.map +1 -0
  30. package/dist/customSelectors.min.js +1 -0
  31. package/dist/customSelectors.ts +1634 -0
  32. package/dist/formValues.d.ts +4 -0
  33. package/dist/formValues.d.ts.map +1 -0
  34. package/dist/formValues.ts +275 -0
  35. package/dist/formvValues.min.js +1 -0
  36. package/dist/helpers.d.ts +11 -0
  37. package/dist/helpers.d.ts.map +1 -0
  38. package/dist/helpers.ts +173 -0
  39. package/dist/microcomponents.es3.d.ts +1 -20
  40. package/dist/microcomponents.es3.d.ts.map +1 -1
  41. package/dist/test.d.ts +2 -0
  42. package/dist/test.d.ts.map +1 -0
  43. package/package.json +11 -7
  44. package/public/MC.js +273 -0
  45. package/public/MC.min.js +414 -0
  46. package/public/MCbundle.js +8 -0
  47. package/public/MCbundle.min.js +1 -0
  48. package/public/McEvent.js +74 -0
  49. package/public/MicroComponents.svg +15 -0
  50. package/public/assets/search.js +1 -1
  51. package/public/autoloader.js +57 -0
  52. package/public/classes/MC.DC.html +247 -0
  53. package/public/classes/MC.MC.html +150 -0
  54. package/public/classes/MC.McBase.html +123 -0
  55. package/public/classes/MCbundle.McEvent.html +184 -0
  56. package/public/customElements.js +48 -0
  57. package/public/customElements.min.js +1 -0
  58. package/public/customObservables.js +255 -0
  59. package/public/customObservables.min.js +1 -0
  60. package/public/customSelectors.js +1088 -0
  61. package/public/customSelectors.min.js +1 -0
  62. package/public/documentation/MicroComponents.md +228 -0
  63. package/public/formValues.js +211 -0
  64. package/public/formvValues.min.js +1 -0
  65. package/public/functions/MC.addListener.html +73 -0
  66. package/public/functions/MC.removeListener.html +69 -0
  67. package/public/functions/MCbundle._d.html +85 -0
  68. package/public/functions/MCbundle._t.html +85 -0
  69. package/public/functions/MCbundle.debounce.html +85 -0
  70. package/public/functions/MCbundle.deepEqual.html +85 -0
  71. package/public/functions/MCbundle.defineCE.html +98 -0
  72. package/public/functions/MCbundle.formValues.html +89 -0
  73. package/public/functions/MCbundle.getCE.html +83 -0
  74. package/public/functions/MCbundle.htmlToElements.html +83 -0
  75. package/public/functions/MCbundle.isObject.html +83 -0
  76. package/public/functions/MCbundle.kebabToPascal.html +83 -0
  77. package/public/functions/MCbundle.makeCO.html +85 -0
  78. package/public/functions/MCbundle.nameSpace.html +89 -0
  79. package/public/functions/MCbundle.parse.html +85 -0
  80. package/public/helpers.js +128 -0
  81. package/public/index.html +22 -13
  82. package/public/interfaces/MC.HTMLMcElement.html +3605 -0
  83. package/public/interfaces/MCbundle.DSelector.html +1010 -0
  84. package/public/interfaces/MCbundle.LooseObject.html +80 -0
  85. package/public/interfaces/MCbundle.TSelector.html +709 -0
  86. package/public/microcomponents.es3.js +348 -0
  87. package/public/modules/MC.html +84 -0
  88. package/public/modules/MCbundle.html +133 -0
  89. package/public/modules.html +4 -4
  90. package/public/my-tag.css +4 -0
  91. package/public/test.html +5 -1
  92. package/public/test.js +100 -202
  93. package/public/types/MCbundle.selection.html +74 -0
  94. package/public/types/MCbundle.singleSelector.html +74 -0
  95. package/src/MC.ts +350 -0
  96. package/src/MCbundle.ts +8 -0
  97. package/src/McEvent.ts +96 -0
  98. package/src/autoloader.ts +98 -0
  99. package/src/customElements.ts +67 -0
  100. package/src/customObservables.ts +340 -0
  101. package/src/customSelectors.ts +1634 -0
  102. package/src/formValues.ts +275 -0
  103. package/src/helpers.ts +173 -0
  104. package/src/microcomponents.es3.js +353 -82
  105. package/src/test.js +137 -218
  106. package/tsconfig.json +2 -2
  107. package/typedoc.json +1 -1
  108. package/webpack.config.js +233 -0
  109. package/dist/microcomponents.d.ts +0 -26
  110. package/dist/microcomponents.d.ts.map +0 -1
  111. package/dist/microcomponents.es3.js +0 -96
  112. package/dist/microcomponents.es3.min.js +0 -15
  113. package/dist/microcomponents.js +0 -176
  114. package/dist/microcomponents.min.js +0 -38
  115. package/dist/microcomponents.ts +0 -216
  116. package/public/classes/microcomponents.MC.html +0 -313
  117. package/public/classes/microcomponents_es3.MC.html +0 -336
  118. package/public/functions/microcomponents_es3.__isEmpty.html +0 -60
  119. package/public/microcomponents.js +0 -176
  120. package/public/modules/microcomponents.html +0 -57
  121. package/public/modules/microcomponents_es3.html +0 -60
  122. package/src/microcomponents.ts +0 -216
@@ -0,0 +1,348 @@
1
+ "use strict";
2
+ (function () {
3
+ // Polyfill for String.prototype.trim (ES3-compliant)
4
+ if (!String.prototype.trim) {
5
+ String.prototype.trim = function () {
6
+ return this.replace(/^\s+|\s+$/g, "");
7
+ };
8
+ }
9
+ // Helper function to remove duplicates from an array
10
+ function unique(elements) {
11
+ var uniqueElements = [];
12
+ for (var i = 0; i < elements.length; i++) {
13
+ if (uniqueElements.indexOf(elements[i]) === -1) {
14
+ uniqueElements.push(elements[i]);
15
+ }
16
+ }
17
+ return uniqueElements;
18
+ }
19
+ // Helper function to check if an element matches an attribute selector
20
+ function matchesAttribute(element, attrSelector) {
21
+ var match = attrSelector.match(/^\[([^\]=~^$*]+)([~^$*|]?=)?(['"]?)(.*?)\3\]$/);
22
+ if (!match)
23
+ return false;
24
+ var attrName = match[1];
25
+ var operator = match[2] || null;
26
+ var attrValue = match[4] || null;
27
+ var actualValue = element.getAttribute(attrName);
28
+ if (actualValue === null)
29
+ return false; // Attribute does not exist
30
+ switch (operator) {
31
+ case null: // [attr]
32
+ return true;
33
+ case "=": // [attr=value]
34
+ return actualValue === attrValue;
35
+ case "~=": // [attr~=value]
36
+ return (" " + actualValue + " ").indexOf(" " + attrValue + " ") !== -1;
37
+ case "^=": // [attr^=value]
38
+ return actualValue.indexOf(attrValue) === 0;
39
+ case "$=": // [attr$=value]
40
+ return actualValue.slice(-attrValue.length) === attrValue;
41
+ case "*=": // [attr*=value]
42
+ return actualValue.indexOf(attrValue) !== -1;
43
+ default:
44
+ return false;
45
+ }
46
+ }
47
+ // Helper function to check if an element matches a selector
48
+ function matchesSelector(element, selector) {
49
+ var regex = /(\w+)?(?:\.([\w\-]+))?(?:\[.*?\])?/g;
50
+ var match, tagMatch, classMatch, attrMatch;
51
+ while ((match = regex.exec(selector))) {
52
+ tagMatch = match[1];
53
+ classMatch = match[2] ? match[2].split(".") : null;
54
+ attrMatch = selector.match(/\[.*?\]/g);
55
+ if (tagMatch &&
56
+ element.tagName.toLowerCase() !== tagMatch.toLowerCase()) {
57
+ return false;
58
+ }
59
+ if (classMatch) {
60
+ for (var i = 0; i < classMatch.length; i++) {
61
+ if ((" " + element.className + " ").indexOf(" " + classMatch[i] + " ") === -1) {
62
+ return false;
63
+ }
64
+ }
65
+ }
66
+ if (attrMatch) {
67
+ for (var j = 0; j < attrMatch.length; j++) {
68
+ if (!matchesAttribute(element, attrMatch[j])) {
69
+ return false;
70
+ }
71
+ }
72
+ }
73
+ }
74
+ return true;
75
+ }
76
+ // Polyfill for document.querySelectorAll
77
+ if (!document.querySelectorAll) {
78
+ document.querySelectorAll = function (selectors) {
79
+ var simpleSelectors = selectors.split(",");
80
+ var results = [];
81
+ for (var i = 0; i < simpleSelectors.length; i++) {
82
+ var selector = simpleSelectors[i].trim();
83
+ if (!selector)
84
+ continue;
85
+ var allElements = document.getElementsByTagName("*");
86
+ for (var j = 0; j < allElements.length; j++) {
87
+ if (matchesSelector(allElements[j], selector)) {
88
+ results.push(allElements[j]);
89
+ }
90
+ }
91
+ }
92
+ return unique(results); // Return unique results
93
+ };
94
+ }
95
+ // Polyfill for document.querySelector
96
+ if (!document.querySelector) {
97
+ document.querySelector = function (selectors) {
98
+ var elements = document.querySelectorAll(selectors);
99
+ return elements.length ? elements[0] : null;
100
+ };
101
+ }
102
+ // Polyfill for HTMLElement.prototype.querySelectorAll
103
+ if (typeof HTMLElement !== "undefined" &&
104
+ !HTMLElement.prototype.querySelectorAll) {
105
+ HTMLElement.prototype.querySelectorAll = function (selectors) {
106
+ var simpleSelectors = selectors.split(",");
107
+ var results = [];
108
+ for (var i = 0; i < simpleSelectors.length; i++) {
109
+ var selector = simpleSelectors[i].trim();
110
+ if (!selector)
111
+ continue;
112
+ var allElements = this.getElementsByTagName("*");
113
+ for (var j = 0; j < allElements.length; j++) {
114
+ if (matchesSelector(allElements[j], selector)) {
115
+ results.push(allElements[j]);
116
+ }
117
+ }
118
+ }
119
+ return unique(results); // Return unique results
120
+ };
121
+ }
122
+ // Polyfill for HTMLElement.prototype.querySelector
123
+ if (typeof HTMLElement !== "undefined" &&
124
+ !HTMLElement.prototype.querySelector) {
125
+ HTMLElement.prototype.querySelector = function (selectors) {
126
+ var elements = this.querySelectorAll(selectors);
127
+ return elements.length ? elements[0] : null;
128
+ };
129
+ }
130
+ // Polyfill for Object.values()
131
+ if (!Object.values) {
132
+ Object.values = function (obj) {
133
+ if (obj === null ||
134
+ (typeof obj !== "object" && typeof obj !== "function")) {
135
+ throw new TypeError("Object.values called on a non-object");
136
+ }
137
+ var values = [];
138
+ for (var key in obj) {
139
+ if (obj.hasOwnProperty(key)) {
140
+ values.push(obj[key]);
141
+ }
142
+ }
143
+ return values;
144
+ };
145
+ }
146
+ })();
147
+ window.MC = (function () {
148
+ /*
149
+ helper methods
150
+ */
151
+ // get all microcomponents from a list of HTMLElements
152
+ function getMicroComponents(elements, search) {
153
+ let mcValues = [];
154
+ elements.forEach((e) => {
155
+ if (e) {
156
+ if (e instanceof HTMLElement) {
157
+ const _mc = e?._mc;
158
+ if (!search && _mc) {
159
+ mcValues = mcValues.concat(Object.values(e._mc));
160
+ }
161
+ else if (search && _mc && _mc[search]) {
162
+ mcValues.push(_mc[search]);
163
+ }
164
+ }
165
+ }
166
+ });
167
+ return mcValues;
168
+ }
169
+ // get all ancestor DOM nodes up to the document
170
+ function traverseNodes(node, search, firstonly = true) {
171
+ let mcValues = [];
172
+ while (node) {
173
+ if (node._mc) {
174
+ if (!search) {
175
+ mcValues = mcValues.concat(Object.values(node._mc));
176
+ }
177
+ else if (search && node._mc[search]) {
178
+ mcValues.push(node._mc[search]);
179
+ }
180
+ if (firstonly)
181
+ return mcValues;
182
+ }
183
+ node = node.parentNode;
184
+ }
185
+ return mcValues;
186
+ }
187
+ function isDOM(element) {
188
+ return element && element instanceof HTMLElement;
189
+ }
190
+ // continue here....
191
+ var MC = function () { };
192
+ class MC {
193
+ #target = {};
194
+ #_mc = {};
195
+ static debug = false;
196
+ constructor(target) {
197
+ this.#target = target;
198
+ this.#_mc = {};
199
+ }
200
+ get _mc() {
201
+ if (!MC.debug)
202
+ return undefined;
203
+ return this.#_mc;
204
+ }
205
+ get target() {
206
+ return this.#target;
207
+ }
208
+ // return all top-level micro components from an HTMLElement, or the searched one
209
+ static siblings(target, search = "") {
210
+ const mc = target;
211
+ if (!mc._mc) {
212
+ return [];
213
+ }
214
+ const _mc = mc._mc;
215
+ if (search.length) {
216
+ return _mc?.[search] || [];
217
+ }
218
+ return [...Object.values(_mc)];
219
+ }
220
+ // add a microcomponent to a target DOM node
221
+ static add(target, key, element = {}) {
222
+ let node = target;
223
+ // create the _mc property if necessary
224
+ if (!node._mc) {
225
+ node._mc = new MC(target);
226
+ }
227
+ const _mc = node._mc;
228
+ // add the element with the given property key to the _mc property
229
+ if (key.length && !_mc[key]) {
230
+ _mc[key] = element;
231
+ // add attribute if HTMLElement
232
+ if (target instanceof HTMLElement) {
233
+ target.setAttribute("_mc", "");
234
+ }
235
+ }
236
+ return element;
237
+ }
238
+ // remove a micro component from the DOM
239
+ static remove(target, key) {
240
+ if (!key)
241
+ return; // silent fail
242
+ const _mc = target?._mc || {};
243
+ // delete the property from the HTMLElement _mc collection
244
+ if (_mc && _mc[key]) {
245
+ delete _mc[key];
246
+ }
247
+ // remove the _mc attribute if the DOM collection is empty
248
+ if (!Object.keys(_mc).length &&
249
+ target instanceof HTMLElement &&
250
+ target.hasAttribute("_mc")) {
251
+ target.removeAttribute("_mc");
252
+ }
253
+ return;
254
+ }
255
+ // add a microcomponent to the collection
256
+ add(key, element, target) {
257
+ if (this.#_mc[key])
258
+ return;
259
+ // if target parameter exists ( a DOM node )
260
+ // you want a top level (public) MC
261
+ if (target) {
262
+ // ... add the new micro component to the DOM node _mc
263
+ MC.add(target, key, element);
264
+ }
265
+ // add the new micro component to the private collection anyway
266
+ this.#_mc[key] = element;
267
+ return element;
268
+ }
269
+ // remove a micro component from the collection
270
+ remove(key, target) {
271
+ const _mc = this.#_mc;
272
+ const t = target;
273
+ // if target parameter exists ( a DOM node )
274
+ // you want to remove a top level (public) MC
275
+ if (target) {
276
+ // ... remove the new micro component from the DOM node _mc
277
+ MC.remove(t, key);
278
+ }
279
+ // remove the new micro component from the private collection anyway
280
+ delete _mc?.[key];
281
+ }
282
+ // return all micro components from the collection, or the searched one
283
+ // in a top level DOM MC, this refers to the inner collection always
284
+ // use MC.siblings() to get the public MCs
285
+ siblings(search = "") {
286
+ const _mc = this.#_mc;
287
+ if (!_mc)
288
+ return [];
289
+ const result = _mc[search || ""];
290
+ return search && result ? [result] : [...Object.values(_mc)];
291
+ }
292
+ /*
293
+ the following selectors will only work for the DOM top level MCs and return [] otherwise
294
+ */
295
+ // first anchestor DOM node, all public MCs
296
+ parent(search = "") {
297
+ if (!isDOM(this.#target))
298
+ return [];
299
+ return traverseNodes(this.#target.parentNode, search, true);
300
+ }
301
+ // all anchestor DOM nodes, beginning with the closest, all public MCs
302
+ parents(search = "") {
303
+ if (!isDOM(this.#target))
304
+ return [];
305
+ return traverseNodes(this.#target.parentNode, search, false);
306
+ }
307
+ // nearest child DOM nodes, all puclic MCs
308
+ children(search = "") {
309
+ if (!isDOM(this.#target))
310
+ return [];
311
+ const id = Math.random().toString().replace(".", "");
312
+ const selector = '[_mc]:not([temp_id="' + id + '"] [_mc] [_mc])'; // HOTFIX: minifier or tsc compiler error, dont use backtick string, cuts out blanks
313
+ this.#target.setAttribute("temp_id", id);
314
+ const myDomElements = this.#target.querySelectorAll(selector);
315
+ const mcValues = getMicroComponents([...myDomElements], search);
316
+ this.#target.removeAttribute("temp_id");
317
+ return mcValues;
318
+ }
319
+ // all descendant DOM nodes, all puclic MCs
320
+ descendants(search = "") {
321
+ if (!isDOM(this.#target))
322
+ return [];
323
+ const myDomElements = this.#target.querySelectorAll("*[_mc]");
324
+ return getMicroComponents([...myDomElements], search);
325
+ }
326
+ }
327
+ return MC;
328
+ })();
329
+ function findNodesWithMcAttribute(rootNode, childrenOnly) {
330
+ var result = []; // Array to store nodes with "_mc" attribute
331
+ var getChildren = childrenOnly === undefined ? true : childrenOnly;
332
+ function walk(node) {
333
+ // Check if the node has an "_mc" attribute
334
+ if (node.nodeType === 1 && node.getAttribute("_mc") !== null) {
335
+ result.push(node); // Add the node to the result array
336
+ return; // Stop searching this branch
337
+ }
338
+ // Recursively search child nodes
339
+ var child = node.firstChild;
340
+ while (child) {
341
+ walk(child);
342
+ child = child.nextSibling;
343
+ }
344
+ }
345
+ // Start the tree walk
346
+ walk(rootNode);
347
+ return result; // Return the array of found nodes
348
+ }
@@ -0,0 +1,84 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MC | 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="MC.html">MC</a></li></ul>
17
+ <h1>Module MC</h1></div><aside class="tsd-sources">
18
+ <ul>
19
+ <li>Defined in <a href="https://gitlab.com/twoBirds/microcomponents/-/blob/3ccde69/src/MC.ts#L1">src/MC.ts:1</a></li></ul></aside>
20
+ <section class="tsd-panel-group">
21
+ <section class="tsd-panel tsd-typography"></section></section>
22
+ <section class="tsd-panel-group tsd-index-group">
23
+ <section class="tsd-panel tsd-index-panel">
24
+ <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
25
+ <h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary>
26
+ <div class="tsd-accordion-details">
27
+ <section class="tsd-index-section">
28
+ <h3 class="tsd-index-heading">References</h3>
29
+ <div class="tsd-index-list"><a href="MC.html#McEvent" class="tsd-index-link tsd-kind-reference tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12" id="icon-8388608-path"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)" id="icon-8388608-text"></path></svg><span>Mc<wbr/>Event</span></a>
30
+ </div></section>
31
+ <section class="tsd-index-section">
32
+ <h3 class="tsd-index-heading">Classes</h3>
33
+ <div class="tsd-index-list"><a href="../classes/MC.DC.html" class="tsd-index-link tsd-kind-class tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>DC</span></a>
34
+ <a href="../classes/MC.MC.html" class="tsd-index-link tsd-kind-class tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>MC</span></a>
35
+ <a href="../classes/MC.McBase.html" class="tsd-index-link tsd-kind-class tsd-parent-kind-module"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Mc<wbr/>Base</span></a>
36
+ </div></section>
37
+ <section class="tsd-index-section">
38
+ <h3 class="tsd-index-heading">Interfaces</h3>
39
+ <div class="tsd-index-list"><a href="../interfaces/MC.HTMLMcElement.html" class="tsd-index-link tsd-kind-interface tsd-parent-kind-module"><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><span>HTMLMc<wbr/>Element</span></a>
40
+ </div></section>
41
+ <section class="tsd-index-section">
42
+ <h3 class="tsd-index-heading">Functions</h3>
43
+ <div class="tsd-index-list"><a href="../functions/MC.addListener.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-module"><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><span>add<wbr/>Listener</span></a>
44
+ <a href="../functions/MC.removeListener.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-module"><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><span>remove<wbr/>Listener</span></a>
45
+ </div></section></div></details></section></section>
46
+ <section class="tsd-panel-group tsd-member-group">
47
+ <h2>References</h2>
48
+ <section class="tsd-panel tsd-member tsd-kind-reference tsd-parent-kind-module"><a id="McEvent" class="tsd-anchor"></a>
49
+ <h3 class="tsd-anchor-link"><span>Mc<wbr/>Event</span><a href="#McEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></h3>Re-exports <a href="../classes/MCbundle.McEvent.html">McEvent</a></section></section></div>
50
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
51
+ <div class="tsd-navigation settings">
52
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
53
+ <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>
54
+ <div class="tsd-accordion-details">
55
+ <div class="tsd-filter-visibility">
56
+ <h4 class="uppercase">Member Visibility</h4><form>
57
+ <ul id="tsd-filter-options">
58
+ <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>
59
+ <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>
60
+ <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>
61
+ <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>
62
+ <div class="tsd-theme-toggle">
63
+ <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>
64
+ <nav class="tsd-navigation primary">
65
+ <details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
66
+ <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>
67
+ <div class="tsd-accordion-details">
68
+ <ul>
69
+ <li class="current"><a href="../modules.html">Micro <wbr/>Components</a>
70
+ <ul>
71
+ <li class="current selected tsd-kind-module"><a href="MC.html">MC</a></li>
72
+ <li class="tsd-kind-module"><a href="MCbundle.html">MCbundle</a></li></ul></li></ul></div></details></nav>
73
+ <nav class="tsd-navigation secondary menu-sticky">
74
+ <ul>
75
+ <li class="tsd-kind-reference tsd-parent-kind-module"><a href="MC.html#McEvent" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-8388608-path"></use><use href="#icon-8388608-text"></use></svg>Mc<wbr/>Event</a></li>
76
+ <li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/MC.DC.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>DC</a></li>
77
+ <li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/MC.MC.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>MC</a></li>
78
+ <li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/MC.McBase.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Mc<wbr/>Base</a></li>
79
+ <li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/MC.HTMLMcElement.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>HTMLMc<wbr/>Element</a></li>
80
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/MC.addListener.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>add<wbr/>Listener</a></li>
81
+ <li class="tsd-kind-function tsd-parent-kind-module"><a href="../functions/MC.removeListener.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>remove<wbr/>Listener</a></li></ul></nav></div></div>
82
+ <div class="container tsd-generator">
83
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
84
+ <div class="overlay"></div><script src="../assets/main.js"></script></body></html>