pseudo-dom 0.1.0

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 (125) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +1029 -0
  3. package/browser/pseudo-dom.js +5219 -0
  4. package/browser/pseudo-dom.min.js +1 -0
  5. package/dist/classes/PseudoEventListener.d.ts +96 -0
  6. package/dist/classes/PseudoEventListener.js +148 -0
  7. package/dist/classes/PseudoEventListener.min.js +1 -0
  8. package/dist/classes/PseudoHTMLDocument.d.ts +35 -0
  9. package/dist/classes/PseudoHTMLDocument.js +77 -0
  10. package/dist/classes/PseudoHTMLDocument.min.js +1 -0
  11. package/dist/classes/PseudoNodeList.d.ts +34 -0
  12. package/dist/classes/PseudoNodeList.js +65 -0
  13. package/dist/classes/PseudoNodeList.min.js +1 -0
  14. package/dist/classes.d.ts +20 -0
  15. package/dist/classes.js +31 -0
  16. package/dist/classes.min.js +1 -0
  17. package/dist/factories/generateDocument.d.ts +11 -0
  18. package/dist/factories/generateDocument.js +65 -0
  19. package/dist/factories/generateDocument.min.js +1 -0
  20. package/dist/factories/generateNode.d.ts +40 -0
  21. package/dist/factories/generateNode.js +118 -0
  22. package/dist/factories/generateNode.min.js +1 -0
  23. package/dist/factories/generateNodeList.d.ts +9 -0
  24. package/dist/factories/generateNodeList.js +13 -0
  25. package/dist/factories/generateNodeList.min.js +1 -0
  26. package/dist/factories.d.ts +5 -0
  27. package/dist/factories.js +23 -0
  28. package/dist/factories.min.js +1 -0
  29. package/dist/functions/getParentNodes.d.ts +9 -0
  30. package/dist/functions/getParentNodes.js +15 -0
  31. package/dist/functions/getParentNodes.min.js +1 -0
  32. package/dist/functions/getParentNodesFromAttribute.d.ts +14 -0
  33. package/dist/functions/getParentNodesFromAttribute.js +9 -0
  34. package/dist/functions/getParentNodesFromAttribute.min.js +1 -0
  35. package/dist/functions.d.ts +5 -0
  36. package/dist/functions.js +23 -0
  37. package/dist/functions.min.js +1 -0
  38. package/dist/interfaces/PseudoAnimation.d.ts +3 -0
  39. package/dist/interfaces/PseudoAnimation.js +5 -0
  40. package/dist/interfaces/PseudoAnimation.min.js +1 -0
  41. package/dist/interfaces/PseudoAttr.d.ts +11 -0
  42. package/dist/interfaces/PseudoAttr.js +5 -0
  43. package/dist/interfaces/PseudoAttr.min.js +1 -0
  44. package/dist/interfaces/PseudoDOMTokenList.d.ts +16 -0
  45. package/dist/interfaces/PseudoDOMTokenList.js +5 -0
  46. package/dist/interfaces/PseudoDOMTokenList.min.js +1 -0
  47. package/dist/interfaces/PseudoDocument.d.ts +3 -0
  48. package/dist/interfaces/PseudoDocument.js +5 -0
  49. package/dist/interfaces/PseudoDocument.min.js +1 -0
  50. package/dist/interfaces/PseudoDocumentFragment.d.ts +3 -0
  51. package/dist/interfaces/PseudoDocumentFragment.js +5 -0
  52. package/dist/interfaces/PseudoDocumentFragment.min.js +1 -0
  53. package/dist/interfaces/PseudoElement.d.ts +678 -0
  54. package/dist/interfaces/PseudoElement.js +5 -0
  55. package/dist/interfaces/PseudoElement.min.js +1 -0
  56. package/dist/interfaces/PseudoEvent.d.ts +79 -0
  57. package/dist/interfaces/PseudoEvent.js +10 -0
  58. package/dist/interfaces/PseudoEvent.min.js +1 -0
  59. package/dist/interfaces/PseudoEventTarget.d.ts +46 -0
  60. package/dist/interfaces/PseudoEventTarget.js +5 -0
  61. package/dist/interfaces/PseudoEventTarget.min.js +1 -0
  62. package/dist/interfaces/PseudoHTMLCollection.d.ts +2 -0
  63. package/dist/interfaces/PseudoHTMLCollection.js +5 -0
  64. package/dist/interfaces/PseudoHTMLCollection.min.js +1 -0
  65. package/dist/interfaces/PseudoHTMLElement.d.ts +22 -0
  66. package/dist/interfaces/PseudoHTMLElement.js +5 -0
  67. package/dist/interfaces/PseudoHTMLElement.min.js +1 -0
  68. package/dist/interfaces/PseudoHTMLSlotElement.d.ts +3 -0
  69. package/dist/interfaces/PseudoHTMLSlotElement.js +5 -0
  70. package/dist/interfaces/PseudoHTMLSlotElement.min.js +1 -0
  71. package/dist/interfaces/PseudoNamedNodeMap.d.ts +11 -0
  72. package/dist/interfaces/PseudoNamedNodeMap.js +5 -0
  73. package/dist/interfaces/PseudoNamedNodeMap.min.js +1 -0
  74. package/dist/interfaces/PseudoNode.d.ts +179 -0
  75. package/dist/interfaces/PseudoNode.js +5 -0
  76. package/dist/interfaces/PseudoNode.min.js +1 -0
  77. package/dist/interfaces/PseudoShadowRoot.d.ts +3 -0
  78. package/dist/interfaces/PseudoShadowRoot.js +5 -0
  79. package/dist/interfaces/PseudoShadowRoot.min.js +1 -0
  80. package/dist/main.d.ts +29 -0
  81. package/dist/main.js +75 -0
  82. package/dist/main.min.js +1 -0
  83. package/dist/services/AnimationService.d.ts +4 -0
  84. package/dist/services/AnimationService.js +16 -0
  85. package/dist/services/AnimationService.min.js +1 -0
  86. package/dist/services/AttrService.d.ts +31 -0
  87. package/dist/services/AttrService.js +57 -0
  88. package/dist/services/AttrService.min.js +1 -0
  89. package/dist/services/DOMTokenListService.d.ts +33 -0
  90. package/dist/services/DOMTokenListService.js +117 -0
  91. package/dist/services/DOMTokenListService.min.js +1 -0
  92. package/dist/services/DocumentFragmentService.d.ts +4 -0
  93. package/dist/services/DocumentFragmentService.js +9 -0
  94. package/dist/services/DocumentFragmentService.min.js +1 -0
  95. package/dist/services/DocumentService.d.ts +4 -0
  96. package/dist/services/DocumentService.js +9 -0
  97. package/dist/services/DocumentService.min.js +1 -0
  98. package/dist/services/ElementService.d.ts +95 -0
  99. package/dist/services/ElementService.js +205 -0
  100. package/dist/services/ElementService.min.js +1 -0
  101. package/dist/services/EventService.d.ts +106 -0
  102. package/dist/services/EventService.js +216 -0
  103. package/dist/services/EventService.min.js +1 -0
  104. package/dist/services/EventTargetService.d.ts +52 -0
  105. package/dist/services/EventTargetService.js +163 -0
  106. package/dist/services/EventTargetService.min.js +1 -0
  107. package/dist/services/HTMLCollectionService.d.ts +3 -0
  108. package/dist/services/HTMLCollectionService.js +8 -0
  109. package/dist/services/HTMLCollectionService.min.js +1 -0
  110. package/dist/services/HTMLElementService.d.ts +37 -0
  111. package/dist/services/HTMLElementService.js +68 -0
  112. package/dist/services/HTMLElementService.min.js +1 -0
  113. package/dist/services/HTMLSlotElementService.d.ts +4 -0
  114. package/dist/services/HTMLSlotElementService.js +9 -0
  115. package/dist/services/HTMLSlotElementService.min.js +1 -0
  116. package/dist/services/NamedNodeMapService.d.ts +23 -0
  117. package/dist/services/NamedNodeMapService.js +77 -0
  118. package/dist/services/NamedNodeMapService.min.js +1 -0
  119. package/dist/services/NodeService.d.ts +111 -0
  120. package/dist/services/NodeService.js +230 -0
  121. package/dist/services/NodeService.min.js +1 -0
  122. package/dist/services/ShadowRootService.d.ts +4 -0
  123. package/dist/services/ShadowRootService.js +9 -0
  124. package/dist/services/ShadowRootService.min.js +1 -0
  125. package/package.json +58 -0
@@ -0,0 +1,678 @@
1
+ /**
2
+ * @file Substitute for the DOM Element Class.
3
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
4
+ * @version 1.0.0
5
+ */
6
+ import { PseudoNode } from './PseudoNode';
7
+ import { PseudoHTMLSlotElement } from './PseudoHTMLSlotElement';
8
+ import { PseudoNamedNodeMap } from './PseudoNamedNodeMap';
9
+ import { PseudoDOMTokenList } from './PseudoDOMTokenList';
10
+ import { PseudoShadowRoot } from './PseudoShadowRoot';
11
+ import { PseudoHTMLCollection } from './PseudoHTMLCollection';
12
+ import { PseudoAnimation } from './PseudoAnimation';
13
+ /**
14
+ * Simulate the behaviour of the Element Class when there is no DOM available.
15
+ * @author Joshua Heagle <joshuaheagle@gmail.com>
16
+ * @class
17
+ * @augments PseudoNode
18
+ * @property {string} tagName
19
+ * @property {string} className
20
+ * @property {string} id
21
+ * @property {string} innerHtml
22
+ * @property {Array} attributes
23
+ * @property {function} hasAttribute
24
+ * @property {function} setAttribute
25
+ * @property {function} getAttribute
26
+ * @property {function} removeAttribute
27
+ */
28
+ export interface PseudoElement extends PseudoNode {
29
+ /**
30
+ * Returns a HTMLSlotElement representing the <slot> the node is inserted in.
31
+ */
32
+ get assignedSlot(): PseudoHTMLSlotElement | null;
33
+ /**
34
+ * Returns a NamedNodeMap object containing the assigned attributes of the corresponding HTML element.
35
+ */
36
+ get attributes(): PseudoNamedNodeMap;
37
+ /**
38
+ * Returns the number of child elements of this element.
39
+ */
40
+ get childElementCount(): number;
41
+ /**
42
+ * Returns the child elements of this element.
43
+ */
44
+ get children(): PseudoHTMLCollection;
45
+ /**
46
+ * Returns a DOMTokenList containing the list of class attributes.
47
+ */
48
+ get classList(): PseudoDOMTokenList;
49
+ /**
50
+ * A string representing the class of the element.
51
+ */
52
+ get className(): string;
53
+ /**
54
+ * A string representing the class of the element.
55
+ * @param className
56
+ */
57
+ set className(className: string);
58
+ /**
59
+ * Returns a number representing the inner height of the element.
60
+ */
61
+ get clientHeight(): number;
62
+ /**
63
+ * Returns a number representing the width of the left border of the element.
64
+ */
65
+ get clientLeft(): number;
66
+ /**
67
+ * Returns a number representing the width of the top border of the element.
68
+ */
69
+ get clientTop(): number;
70
+ /**
71
+ * Returns a number representing the inner width of the element.
72
+ */
73
+ get clientWidth(): number;
74
+ /**
75
+ * Returns the first child element of this element.
76
+ */
77
+ get firstElementChild(): PseudoElement | null;
78
+ /**
79
+ * A string representing the id of the element.
80
+ */
81
+ get id(): string;
82
+ /**
83
+ * A string representing the markup of the element's content.
84
+ */
85
+ get innerHTML(): string;
86
+ /**
87
+ * A string representing the markup of the element's content.
88
+ * @param html
89
+ */
90
+ set innerHTML(html: string);
91
+ /**
92
+ * Returns the last child element of this element.
93
+ */
94
+ get lastElementChild(): PseudoElement | null;
95
+ /**
96
+ * A string representing the local part of the qualified name of the element.
97
+ */
98
+ get localName(): string;
99
+ /**
100
+ * The namespace URI of the element, or null if it is no namespace.
101
+ */
102
+ get namespaceURI(): string | null;
103
+ /**
104
+ * An Element, the element immediately following the given one in the tree, or null if there's no sibling node.
105
+ */
106
+ get nextElementSibling(): PseudoElement | null;
107
+ /**
108
+ * A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.
109
+ */
110
+ get outerHTML(): string;
111
+ /**
112
+ * A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.
113
+ * @param html
114
+ */
115
+ set outerHTML(html: string);
116
+ /**
117
+ * Represents the part identifier(s) of the element (i.e. set using the part attribute), returned as a DOMTokenList.
118
+ */
119
+ get part(): PseudoDOMTokenList;
120
+ /**
121
+ * Represents the part identifier(s) of the element (i.e. set using the part attribute), returned as a DOMTokenList.
122
+ * @param part
123
+ */
124
+ set part(part: PseudoDOMTokenList);
125
+ /**
126
+ * A string representing the namespace prefix of the element, or null if no prefix is specified.
127
+ */
128
+ get prefix(): string;
129
+ /**
130
+ * An Element, the element immediately preceding the given one in the tree, or null if there is no sibling element.
131
+ */
132
+ get previousElementSibling(): PseudoElement | null;
133
+ /**
134
+ * Returns a number representing the scroll view height of an element.
135
+ */
136
+ get scrollHeight(): number;
137
+ /**
138
+ * A number representing the left scroll offset of the element.
139
+ */
140
+ get scrollLeft(): number;
141
+ /**
142
+ * A number representing the left scroll offset of the element.
143
+ * @param left
144
+ */
145
+ set scrollLeft(left: number);
146
+ /**
147
+ * A number representing number of pixels the top of the element is scrolled vertically.
148
+ */
149
+ get scrollTop(): number;
150
+ /**
151
+ * A number representing number of pixels the top of the element is scrolled vertically.
152
+ * @param top
153
+ */
154
+ set scrollTop(top: number);
155
+ /**
156
+ * Returns a number representing the scroll view width of the element.
157
+ */
158
+ get scrollWidth(): number;
159
+ /**
160
+ * Returns the open shadow root that is hosted by the element, or null if no open shadow root is present.
161
+ */
162
+ get shadowRoot(): PseudoShadowRoot | null;
163
+ /**
164
+ * Returns the name of the shadow DOM slot the element is inserted in.
165
+ */
166
+ get slot(): string;
167
+ /**
168
+ * Returns the name of the shadow DOM slot the element is inserted in.
169
+ * @param slot
170
+ */
171
+ set slot(slot: string);
172
+ /**
173
+ * Returns a string with the name of the tag for the given element.
174
+ */
175
+ get tagName(): string;
176
+ /**
177
+ * A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
178
+ */
179
+ get ariaAtomic(): string;
180
+ /**
181
+ * A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
182
+ */
183
+ set ariaAtomic(value: string);
184
+ /**
185
+ * A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.
186
+ */
187
+ get ariaAutoComplete(): string;
188
+ /**
189
+ * A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.
190
+ */
191
+ set ariaAutoComplete(value: string);
192
+ /**
193
+ * A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.
194
+ */
195
+ get ariaBusy(): string;
196
+ /**
197
+ * A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.
198
+ */
199
+ set ariaBusy(value: string);
200
+ /**
201
+ * A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.
202
+ */
203
+ get ariaChecked(): string;
204
+ /**
205
+ * A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.
206
+ */
207
+ set ariaChecked(value: string);
208
+ /**
209
+ * A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.
210
+ */
211
+ get ariaColCount(): string;
212
+ /**
213
+ * A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.
214
+ */
215
+ set ariaColCount(value: string);
216
+ /**
217
+ * A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
218
+ */
219
+ get ariaColIndex(): string;
220
+ /**
221
+ * A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
222
+ */
223
+ set ariaColIndex(value: string);
224
+ /**
225
+ * A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
226
+ */
227
+ get ariaColSpan(): string;
228
+ /**
229
+ * A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
230
+ */
231
+ set ariaColSpan(value: string);
232
+ /**
233
+ * A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.
234
+ */
235
+ get ariaCurrent(): string;
236
+ /**
237
+ * A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.
238
+ */
239
+ set ariaCurrent(value: string);
240
+ /**
241
+ * A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.
242
+ */
243
+ get ariaDescription(): string;
244
+ /**
245
+ * A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.
246
+ */
247
+ set ariaDescription(value: string);
248
+ /**
249
+ * A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
250
+ */
251
+ get ariaDisabled(): string;
252
+ /**
253
+ * A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
254
+ */
255
+ set ariaDisabled(value: string);
256
+ /**
257
+ * A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.
258
+ */
259
+ get ariaExpanded(): string;
260
+ /**
261
+ * A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.
262
+ */
263
+ set ariaExpanded(value: string);
264
+ /**
265
+ * A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
266
+ */
267
+ get ariaHasPopup(): string;
268
+ /**
269
+ * A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
270
+ */
271
+ set ariaHasPopup(value: string);
272
+ /**
273
+ * A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.
274
+ */
275
+ get ariaHidden(): string;
276
+ /**
277
+ * A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.
278
+ */
279
+ set ariaHidden(value: string);
280
+ /**
281
+ * A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
282
+ */
283
+ get ariaKeyShortcuts(): string;
284
+ /**
285
+ * A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
286
+ */
287
+ set ariaKeyShortcuts(value: string);
288
+ /**
289
+ * A string reflecting the aria-label attribute, which defines a string value that labels the current element.
290
+ */
291
+ get ariaLabel(): string;
292
+ /**
293
+ * A string reflecting the aria-label attribute, which defines a string value that labels the current element.
294
+ */
295
+ set ariaLabel(value: string);
296
+ /**
297
+ * A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.
298
+ */
299
+ get ariaLevel(): string;
300
+ /**
301
+ * A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.
302
+ */
303
+ set ariaLevel(value: string);
304
+ /**
305
+ * A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
306
+ */
307
+ get ariaLive(): string;
308
+ /**
309
+ * A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
310
+ */
311
+ set ariaLive(value: string);
312
+ /**
313
+ * A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.
314
+ */
315
+ get ariaModal(): string;
316
+ /**
317
+ * A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.
318
+ */
319
+ set ariaModal(value: string);
320
+ /**
321
+ * A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.
322
+ */
323
+ get ariaMultiline(): string;
324
+ /**
325
+ * A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.
326
+ */
327
+ set ariaMultiline(value: string);
328
+ /**
329
+ * A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.
330
+ */
331
+ get ariaMultiSelectable(): string;
332
+ /**
333
+ * A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.
334
+ */
335
+ set ariaMultiSelectable(value: string);
336
+ /**
337
+ * A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
338
+ */
339
+ get ariaOrientation(): string;
340
+ /**
341
+ * A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
342
+ */
343
+ set ariaOrientation(value: string);
344
+ /**
345
+ * A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.
346
+ */
347
+ get ariaPlaceholder(): string;
348
+ /**
349
+ * A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.
350
+ */
351
+ set ariaPlaceholder(value: string);
352
+ /**
353
+ * A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.
354
+ */
355
+ get ariaPosInSet(): string;
356
+ /**
357
+ * A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.
358
+ */
359
+ set ariaPosInSet(value: string);
360
+ /**
361
+ * A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.
362
+ */
363
+ get ariaPressed(): string;
364
+ /**
365
+ * A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.
366
+ */
367
+ set ariaPressed(value: string);
368
+ /**
369
+ * A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.
370
+ */
371
+ get ariaReadOnly(): string;
372
+ /**
373
+ * A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.
374
+ */
375
+ set ariaReadOnly(value: string);
376
+ /**
377
+ * A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.
378
+ */
379
+ get ariaRequired(): string;
380
+ /**
381
+ * A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.
382
+ */
383
+ set ariaRequired(value: string);
384
+ /**
385
+ * A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.
386
+ */
387
+ get ariaRoleDescription(): string;
388
+ /**
389
+ * A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.
390
+ */
391
+ set ariaRoleDescription(value: string);
392
+ /**
393
+ * A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.
394
+ */
395
+ get ariaRowCount(): string;
396
+ /**
397
+ * A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.
398
+ */
399
+ set ariaRowCount(value: string);
400
+ /**
401
+ * A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
402
+ */
403
+ get ariaRowIndex(): string;
404
+ /**
405
+ * A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
406
+ */
407
+ set ariaRowIndex(value: string);
408
+ /**
409
+ * A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
410
+ */
411
+ get ariaRowSpan(): string;
412
+ /**
413
+ * A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
414
+ */
415
+ set ariaRowSpan(value: string);
416
+ /**
417
+ * A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.
418
+ */
419
+ get ariaSelected(): string;
420
+ /**
421
+ * A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.
422
+ */
423
+ set ariaSelected(value: string);
424
+ /**
425
+ * A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.
426
+ */
427
+ get ariaSetSize(): string;
428
+ /**
429
+ * A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.
430
+ */
431
+ set ariaSetSize(value: string);
432
+ /**
433
+ * A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.
434
+ */
435
+ get ariaSort(): string;
436
+ /**
437
+ * A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.
438
+ */
439
+ set ariaSort(value: string);
440
+ /**
441
+ * A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.
442
+ */
443
+ get ariaValueMax(): string;
444
+ /**
445
+ * A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.
446
+ */
447
+ set ariaValueMax(value: string);
448
+ /**
449
+ * A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.
450
+ */
451
+ get ariaValueMin(): string;
452
+ /**
453
+ * A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.
454
+ */
455
+ set ariaValueMin(value: string);
456
+ /**
457
+ * A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.
458
+ */
459
+ get ariaValueNow(): string;
460
+ /**
461
+ * A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.
462
+ */
463
+ set ariaValueNow(value: string);
464
+ /**
465
+ * A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.
466
+ */
467
+ get ariaValueText(): string;
468
+ /**
469
+ * A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.
470
+ */
471
+ set ariaValueText(value: string);
472
+ /**
473
+ * Inserts a set of Node objects or strings in the children list of the Element's parent, just after the Element.
474
+ */
475
+ after(...nodes: PseudoNode[]): void;
476
+ /**
477
+ * A shortcut method to create and run an animation on an element. Returns the created Animation object instance.
478
+ */
479
+ animate(keyframes: object[], options: {
480
+ id: string;
481
+ rangeEnd: string;
482
+ rangeStart: string;
483
+ timeline: string;
484
+ }): PseudoAnimation;
485
+ /**
486
+ * Inserts a set of Node objects or strings after the last child of the element.
487
+ */
488
+ append(...params: PseudoNode[]): void;
489
+ /**
490
+ * Attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
491
+ */
492
+ attachShadow(options: {
493
+ mode: string;
494
+ cloneable: boolean;
495
+ delegatesFocus: boolean;
496
+ slotAssignment: string;
497
+ }): PseudoShadowRoot;
498
+ /**
499
+ * Inserts a set of Node objects or strings in the children list of the Element's parent, just before the Element.
500
+ */
501
+ before(...params: PseudoNode[]): void;
502
+ /**
503
+ * Returns whether an element is expected to be visible or not based on configurable checks.
504
+ */
505
+ checkVisibility(): string;
506
+ /**
507
+ * Returns the Element which is the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter.
508
+ */
509
+ closest(): string;
510
+ /**
511
+ * Returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
512
+ */
513
+ computedStyleMap(): string;
514
+ /**
515
+ * Returns an array of Animation objects currently active on the element.
516
+ */
517
+ getAnimations(): string;
518
+ /**
519
+ * Retrieves the value of the named attribute from the current node and returns it as a string.
520
+ */
521
+ getAttribute(attributeName: string): string | null;
522
+ /**
523
+ * Returns an array of attribute names from the current element.
524
+ */
525
+ getAttributeNames(): string;
526
+ /**
527
+ * Retrieves the node representation of the named attribute from the current node and returns it as an Attr.
528
+ */
529
+ getAttributeNode(): string;
530
+ /**
531
+ * Retrieves the node representation of the attribute with the specified name and namespace, from the current node and returns it as an Attr.
532
+ */
533
+ getAttributeNodeNS(): string;
534
+ /**
535
+ * Retrieves the value of the attribute with the specified namespace and name from the current node and returns it as a string.
536
+ */
537
+ getAttributeNS(): string;
538
+ /**
539
+ * Returns the size of an element and its position relative to the viewport.
540
+ */
541
+ getBoundingClientRect(): string;
542
+ /**
543
+ * Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.
544
+ */
545
+ getClientRects(): string;
546
+ /**
547
+ * Returns a live HTMLCollection that contains all descendants of the current element that possess the list of classes given in the parameter.
548
+ */
549
+ getElementsByClassName(): string;
550
+ /**
551
+ * Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element.
552
+ */
553
+ getElementsByTagName(): string;
554
+ /**
555
+ * Returns a live HTMLCollection containing all descendant elements, of a particular tag name and namespace, from the current element.
556
+ */
557
+ getElementsByTagNameNS(): string;
558
+ /**
559
+ * Returns a boolean value indicating if the element has the specified attribute or not.
560
+ */
561
+ hasAttribute(attributeName: string): boolean;
562
+ /**
563
+ * Returns a boolean value indicating if the element has the specified attribute, in the specified namespace, or not.
564
+ */
565
+ hasAttributeNS(): string;
566
+ /**
567
+ * Returns a boolean value indicating if the element has one or more HTML attributes present.
568
+ */
569
+ hasAttributes(): string;
570
+ /**
571
+ * Indicates whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.
572
+ */
573
+ hasPointerCapture(): string;
574
+ /**
575
+ * Inserts a given element node at a given position relative to the element it is invoked upon.
576
+ */
577
+ insertAdjacentElement(): string;
578
+ /**
579
+ * Parses the text as HTML or XML and inserts the resulting nodes into the tree in the position given.
580
+ */
581
+ insertAdjacentHTML(): string;
582
+ /**
583
+ * Inserts a given text node at a given position relative to the element it is invoked upon.
584
+ */
585
+ insertAdjacentText(): string;
586
+ /**
587
+ * Returns a boolean value indicating whether or not the element would be selected by the specified selector string.
588
+ */
589
+ matches(): string;
590
+ /**
591
+ * Inserts a set of Node objects or strings before the first child of the element.
592
+ */
593
+ prepend(): string;
594
+ /**
595
+ * Returns the first Node which matches the specified selector string relative to the element.
596
+ */
597
+ querySelector(): string;
598
+ /**
599
+ * Returns a NodeList of nodes which match the specified selector string relative to the element.
600
+ */
601
+ querySelectorAll(): string;
602
+ /**
603
+ * Releases (stops) pointer capture that was previously set for a specific pointer event.
604
+ */
605
+ releasePointerCapture(): string;
606
+ /**
607
+ * Removes the element from the children list of its parent.
608
+ */
609
+ remove(): string;
610
+ /**
611
+ * Removes the named attribute from the current node.
612
+ */
613
+ removeAttribute(attributeName: string): void;
614
+ /**
615
+ * Removes the node representation of the named attribute from the current node.
616
+ */
617
+ removeAttributeNode(): string;
618
+ /**
619
+ * Removes the attribute with the specified name and namespace, from the current node.
620
+ */
621
+ removeAttributeNS(): string;
622
+ /**
623
+ * Replaces the existing children of a Node with a specified new set of children.
624
+ */
625
+ replaceChildren(): string;
626
+ /**
627
+ * Replaces the element in the children list of its parent with a set of Node objects or strings.
628
+ */
629
+ replaceWith(): string;
630
+ /**
631
+ * Asynchronously asks the browser to make the element fullscreen.
632
+ */
633
+ requestFullscreen(): string;
634
+ /**
635
+ * Allows to asynchronously ask for the pointer to be locked on the given element.
636
+ */
637
+ requestPointerLock(): string;
638
+ /**
639
+ * Scrolls to a particular set of coordinates inside a given element.
640
+ */
641
+ scroll(): string;
642
+ /**
643
+ * Scrolls an element by the given amount.
644
+ */
645
+ scrollBy(): string;
646
+ /**
647
+ * Scrolls the page until the element gets into the view.
648
+ */
649
+ scrollIntoView(): string;
650
+ /**
651
+ * Scrolls to a particular set of coordinates inside a given element.
652
+ */
653
+ scrollTo(): string;
654
+ /**
655
+ * Sets the value of a named attribute of the current node.
656
+ */
657
+ setAttribute(attributeName: string, attributeValue: string): void;
658
+ /**
659
+ * Sets the node representation of the named attribute from the current node.
660
+ */
661
+ setAttributeNode(): string;
662
+ /**
663
+ * Sets the node representation of the attribute with the specified name and namespace, from the current node.
664
+ */
665
+ setAttributeNodeNS(): string;
666
+ /**
667
+ * Sets the value of the attribute with the specified name and namespace, from the current node.
668
+ */
669
+ setAttributeNS(): string;
670
+ /**
671
+ * Designates a specific element as the capture target of future pointer events.
672
+ */
673
+ setPointerCapture(): string;
674
+ /**
675
+ * Toggles a boolean attribute, removing it if it is present and adding it if it is not present, on the specified element.
676
+ */
677
+ toggleAttribute(): string;
678
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict'
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ })
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});