-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelite.js
More file actions
3355 lines (3352 loc) · 179 KB
/
Copy pathdelite.js
File metadata and controls
3355 lines (3352 loc) · 179 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
return mod(require("tern/lib/infer"), require("tern/lib/tern"));
if (typeof define == "function" && define.amd) // AMD
return define([ "tern/lib/infer", "tern/lib/tern" ], mod);
mod(tern, tern);
})(function(infer, tern) {
"use strict";
tern.registerPlugin("delite", function(server, options) {
return { defs : defs };
});
var defs = {
"!name": "delite",
"!define": {
"!requirejs": {
"delite/a11y": {
"!doc": "<p>Accessibility utility functions (keyboard, tab stops, etc.).</p>",
"child": {},
"first": {},
"last": {},
"lowestTabindex": {},
"lowest": {},
"highestTabindex": {},
"highest": {},
"radioSelected[undefined]": {},
"root": {}
},
"delite/a11yclick": {
"!type": "fn(node: +Element)",
"!doc": "<p>When this module is loaded, pressing SPACE or ENTER while focused on an Element with a <code>d-keyboard-click</code>\nattribute will fire a synthetic click event on that Element. Also works if the event target's ancestor\nhas that attribute set.</p>\n<p>Usually this functionality is not necessary. Rather, you should just make the focused Element a <code><button></code>,\nand then the browser does the same thing natively.\nThis module is usually only needed when a custom element itself (ex: <code><d-my-checkbox></code>)\ngets the focus rather than an Element inside of a custom element.</p>\n<p>Returns a convenience function to set <code>d-keyboard-click</code> on an Element.</p>",
"node": {},
"lastKeyDownNode": {}
},
"delite/activationTracker": {
"!doc": "<p>Tracks which widgets are currently "active".\nA widget is considered active if it or a descendant widget has focus,\nor if a non-focusable node of this widget or a descendant was the most recent node\nto get a touchstart/mousedown/pointerdown event.</p>\n<p>Emits non-bubbling <code>delite-activated</code> and <code>delite-deactivated</code> events on widgets\nas they become active, or stop being active, as defined above.</p>\n<p>Call <code>activationTracker.on("active-widget-stack", callback)</code> to track the stack of currently active widgets.</p>\n<p>Call <code>activationTracker.on("deactivated", func)</code> or <code>activationTracker.on("activated", ...)</code> to monitor when\nwhen widgets become active/inactive.</p>",
"activeStack": {},
"registerIframe": {
"!type": "fn(iframe: +HTMLIframeElement) -> ?",
"!doc": "<p>Registers listeners on the specified iframe so that any pointerdown\nor focus event on that iframe (or anything in it) is reported\nas a focus/pointerdown event on the <code><iframe></code> itself.</p>\n<p>In dijit this was only used by editor; perhaps it should be removed.</p>"
},
"registerWin": {
"!type": "fn(targetWindow: +Window, effectiveNode: +Element) -> ?",
"!doc": "<p>Registers listeners on the specified window (either the main\nwindow or an iframe's window) to detect when the user has touched / mouse-downed /\nfocused somewhere.</p>\n<p>Users should call registerIframe() instead of this method.</p>",
"_this": {},
"doc": {},
"body": {},
"pointerDownHandler": {
"!type": "fn()"
},
"focusHandler": {
"!type": "fn()"
},
"blurHandler": {
"!type": "fn()"
}
},
"lastPointerDownTime": {},
"registerWin~focusHandler": {
"tag": {}
},
"remove": {
"!type": "fn()"
},
"_blurHandler": {
"!type": "fn(node: +Element)",
"!doc": "<p>Called when focus leaves a node.\nUsually ignored, <em>unless</em> it <em>isn't</em> followed by touching another node,\nwhich indicates that we tabbed off the last field on the page,\nin which case every widget is marked inactive.</p>",
"now": {}
},
"_clearActiveWidgetsTimer": {},
"_pointerDownOrFocusHandler": {
"!type": "fn(node: +Element, by: string)",
"!doc": "<p>Callback when node is focused or pointerdown'd.</p>",
"newStack": {}
},
"lastPointerDownOrFocusInTime": {},
"lastPointerDownOrFocusInNode": {},
"node": {},
"_focusHandler": {
"!type": "fn(node: +Element)",
"!doc": "<p>Callback when node is focused.</p>"
},
"lastFocusinTime": {},
"_setStack": {
"!type": "fn(newStack: [?], by: string)",
"!doc": "<p>The stack of active widgets has changed. Send out appropriate events and records new stack.</p>",
"oldStack": {},
"lastOldIdx": {},
"lastNewIdx": {},
"widget": {},
"i": {}
},
"i": {},
"widget": {},
"bubbles": {},
"by": {}
},
"delite/BackgroundIframe": {
"!type": "fn(node: +Element)",
"!doc": "<p>Makes a background iframe as a child of node. Iframe fills area (and position) of node.</p>",
"iframe": {},
"constructor": {
"!type": "fn()"
},
"destroy": {
"!type": "fn()",
"!doc": "<p>Destroy the iframe.</p>"
}
},
"delite/BackgroundIframe~iframe": {
"style": {
"display": {},
"width": {},
"height": {}
},
"src": {},
"className": {},
"tabIndex": {}
},
"delite/BackgroundIframe#constructor": {
"iframe": {}
},
"delite/Bidi": {
"!doc": "<p>When has("bidi") is true, delite/Widget will mix in the properties in this module.\n It enables support for the <code>textdir</code> property to control text direction independently from the GUI direction.</p>",
"textDir": {},
"getInheritedDir": {
"!type": "fn() -> ?",
"!doc": "<p>Return the direction setting for the page itself, or if <code>has("inherited-dir")</code> is defined and the widget is\nattached to the page, then return the dir setting inherited from any ancestor node.</p>"
},
"attachedCallback": {
"!type": "fn()"
},
"_inheritedDir": {},
"getTextDir": {
"!type": "fn(text: string) -> ?",
"!doc": "<p>Returns the right direction of text.</p>\n<p>If textDir is ltr or rtl, returns the value.\nIf it's auto, calls to another function that's responsible\nfor checking the value, and defining the direction.</p>"
},
"_checkContextual": {
"!type": "fn(text: string) -> ?",
"!doc": "<p>Finds the first strong (directional) character, return ltr if isLatin or rtl if isBidiChar.</p>",
"fdc": {}
},
"applyTextDir": {
"!type": "fn(element: +HTMLElement)",
"!doc": "<p>Set element.dir according to this.textDir.</p>",
"textDir": {},
"tagName": {},
"text": {}
},
"applyTextDirection": {
"!type": "fn(text: string) -> ?",
"!doc": "<p>Enforce base direction of the given text according to this.textDir.</p>"
},
"wrapWithUcc": {
"!type": "fn(text: string) -> ?",
"!doc": "<p>Returns specified text with UCC added to enforce widget's textDir setting.</p>",
"dir": {}
},
"removeUcc": {
"!type": "fn(text: string) -> ?",
"!doc": "<p>Removes UCC from specified text.</p>"
},
"enforceTextDirWithUcc": {
"!type": "fn(node: +HTMLOptionElement)",
"!doc": "<p>Wraps by UCC (Unicode control characters) option's text according to this.textDir.</p>\n<p>This function saves the original text value for later restoration if needed,\nfor example if the textDir will change etc.</p>"
},
"restoreOriginalText": {
"!type": "fn(origObj: +HTMLOptionElement)",
"!doc": "<p>Restores the text of origObj, if needed, after enforceTextDirWithUcc, for example\nafter <code>myWidget.textDir = "ltr"</code>. The function then removes the originalText from origObj!</p>"
}
},
"delite/Bidi~element": {
"dir": {}
},
"delite/Bidi~node": {
"originalText": {},
"innerHTML": {}
},
"delite/Bidi~origObj": {
"text": {}
},
"delite/Container": {
"delite-add-child": {
"!doc": "<p>Dispatched after an Element has been added as child of this widget.</p>"
},
"delite-remove-child": {
"!doc": "<p>Dispatched after an child Element has been removed from this widget.</p>"
},
"!doc": "<p>Base class for widgets that contain content.\nUseful both for widgets that contain free-form markup (ex: ContentPane),\nand widgets that contain an ordered list of children (ex: Toolbar).</p>\n<p>Note that Container is not meant to be used for widgets that just internally create child\nwidgets (ex: a StarRating widget creates stars), but rather for when the widget has children from\nthe application's perspective (i.e. from the perspective of the widget <em>user</em> rather\nthan the widget <em>author</em>).</p>",
"containerNode": {},
"render": {
"!type": "fn()",
"!doc": "<p>Construct the UI for this widget, filling in subnodes and/or text inside of this.\nMost widgets will leverage delite/handlebars! to set <code>template</code>, rather than defining this method.</p>"
},
"before": {
"!type": "fn()"
},
"_srcDom": {},
"after": {
"!type": "fn()"
},
"appendChild": {},
"insertBefore": {},
"onAddChild": {
"!type": "fn(node: +Element)",
"!doc": "<p>Callback whenever a child element is added to this widget via <code>appendChild()</code>, <code>insertBefore()</code>,\nor a method like <code>addChild()</code> that internally calls <code>appendChild()</code> and/or <code>insertBefore()</code>.</p>"
},
"bubbles": {},
"cancelable": {},
"child": {},
"addChild": {
"!type": "fn(node: +Element, insertIndex: number)",
"!doc": "<p>Inserts the specified Element at the specified index.\nFor example, <code>.addChild(node, 3)</code> sets this widget's fourth child to node.</p>"
},
"removeChild": {
"!type": "fn(node: +Element|number)",
"!doc": "<p>Detaches the specified node instance from this widget but does\nnot destroy it. You can also pass in an integer indicating\nthe index within the container to remove (ie, removeChild(5) removes the sixth node).</p>"
},
"node": {},
"getChildren": {
"!type": "fn() -> ?",
"!doc": "<p>Returns all direct children of this widget, i.e. all widgets or DOM nodes underneath\n<code>this.containerNode</code>. Note that it does not return all\ndescendants, but rather just direct children.</p>\n<p>The result intentionally excludes element outside off <code>this.containerNode</code>. So, it is different than\naccessing the <code>children</code> or <code>childNode</code> properties.</p>"
},
"hasChildren": {
"!type": "fn() -> ?",
"!doc": "<p>Returns true if widget has child nodes, i.e. if <code>this.containerNode</code> contains widgets.</p>"
},
"getIndexOfChild": {
"!type": "fn(child: +Element) -> ?",
"!doc": "<p>Returns the index of the child in this container or -1 if not found.</p>"
},
"baseClass": {
"!doc": "<p>Root CSS class of the widget (ex: "d-text-box")</p>"
},
"focused": {
"!doc": "<p>This widget or a widget it contains has focus, or is "active" because\nit was recently clicked.</p>"
},
"widgetId": {},
"dir": {
"!doc": "<p>Controls the layout direction of the widget, for example whether the arrow of\na Combobox appears to the right or the left of the input field.</p>\n<p>Values are "ltr" and "rtl", or "" which means that the value is inherited from the\nsetting on the document root (either <code><html></code> or <code><body></code>).</p>"
},
"effectiveDir": {},
"createdCallback": {
"!type": "fn()",
"!doc": "<p>Called when the custom element is created, or when <code>register.parse()</code> parses a custom tag.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"computeProperties": {
"!type": "fn()"
},
"getInheritedDir": {
"!type": "fn() -> ?",
"!doc": "<p>Get the direction setting for the page itself.</p>"
},
"refreshRendering": {
"!type": "fn()"
},
"attachedCallback": {
"!type": "fn()",
"!doc": "<p>Called automatically when the element is added to the document, after <code>createdCallback()</code> completes.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"preRender": {
"!type": "fn()",
"!doc": "<p>Processing before <code>render()</code>.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"template": {
"!doc": "<p>Value returned by delite/handlebars! or compatible template engine.\nSpecifies how to build the widget DOM initially and also how to update the DOM when\nwidget properties change.</p>"
},
"_templateHandle": {},
"setClassComponent": {
"!type": "fn(component: string, value: string, node: +HTMLElement)",
"!doc": "<p>Helper method to set a class (or classes) on a given node, removing the class (or classes) set\nby the previous call to <code>setClassComponent()</code> <em>for the specified component and node</em>. Used mainly by\ntemplate.js to set classes without overwriting classes set by the user or other code (ex: CssState).</p>"
},
"setOrRemoveAttribute": {
"!type": "fn(node: +Element, name: string, value: string)",
"!doc": "<p>Helper method to set/remove an attribute based on the given value:</p>\n<ul>\n<li>If value is undefined, the attribute is removed. Useful for attributes like aria-valuenow.</li>\n<li>If value is boolean, the attribute is set to "true" or "false". Useful for attributes like aria-selected.</li>\n<li>If value is a number, it's converted to a string.</li>\n</ul>"
},
"postRender": {
"!type": "fn()",
"!doc": "<p>Processing after the DOM fragment is created.</p>\n<p>Called after the DOM fragment has been created, but not necessarily\nadded to the document. Do not include any operations which rely on\nnode dimensions or placement.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"detachedCallback": {
"!type": "fn()",
"!doc": "<p>Called when the element is removed the document.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"getParent": {
"!type": "fn()",
"!doc": "<p>Returns the parent widget of this widget, or null if there is no parent widget.</p>"
},
"on": {
"!type": "fn(type: string, func: +function, node: +Element) -> ?",
"!doc": "<p>Call specified function when event occurs.</p>\n<p>Note that the function is not run in any particular scope, so if (for example) you want it to run\nin the element's scope you must do <code>myCustomElement.on("click", myCustomElement.func.bind(myCustomElement))</code>.</p>\n<p>Note that <code>delite/Widget</code> overrides <code>on()</code> so that <code>on("focus", ...)</code> and `on("blur", ...) will trigger the\nlistener when focus moves into or out of the widget, rather than just when the widget's root node is\nfocused/blurred. In other words, the listener is called when the widget is conceptually focused or blurred.</p>"
},
"placeAt": {
"!type": "fn(reference: string|+Element|+DocumentFragment, position: string|number) -> ?",
"!doc": "<p>Place this widget somewhere in the dom, and allow chaining.</p>"
},
"getEnclosingWidget": {
"!type": "fn(node: +Element)",
"!doc": "<p>Returns the widget whose DOM tree contains the specified DOMNode, or null if\nthe node is not contained within the DOM tree of any widget</p>"
},
"customelement-attached": {
"!doc": "<p>Dispatched after the CustomElement has been attached.\nThis is useful to be notified when an HTMLElement has been upgraded to a\nCustomElement and attached to the DOM, in particular on browsers supporting native Custom Element.</p>"
},
"introspect": {
"!type": "fn()"
},
"_nativePropSetterMap": {},
"_nativeAttrs": {},
"getProps": {
"!type": "fn()"
},
"_propCaseMap": {},
"_processNativeProps": {
"!type": "fn()",
"!doc": "<p>This method will detect and process any properties that the application has set, but the custom setter\ndidn't run because <code>has("setter-on-native-prop") === false</code>.\nUsed during initialization and also by <code>deliver()</code>.</p>"
},
"created": {},
"_parsedAttributes": {},
"attached": {},
"_parsePrototypeAttr": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Returns value for widget property based on attribute value in markup.</p>"
},
"parseFunctionAttribute": {
"!type": "fn(value: string, params: [?])",
"!doc": "<p>Helper to parse function attribute in markup. Unlike <code>_parsePrototypeAttr()</code>, does not require a\ncorresponding widget property. Functions can be specified as global variables or as inline javascript:</p>\n<pre class=\"prettyprint source\"><code><my-widget funcAttr=\"globalFunction\" on-click=\"console.log(event.pageX);\"></code></pre>"
},
"parseAttribute": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Helper for parsing declarative widgets. Interpret a given attribute specified in markup, returning either:</p>\n<ul>\n<li><code>undefined</code>: ignore</li>\n<li><code>{prop: prop, value: value}</code>: set <code>this[prop] = value</code></li>\n<li><code>{event: event, callback: callback}</code>: call <code>this.on(event, callback)</code></li>\n</ul>"
},
"_mapAttributes": {
"!type": "fn() -> ?",
"!doc": "<p>Parse declaratively specified attributes for widget properties and connects.</p>"
},
"destroy": {
"!type": "fn()",
"!doc": "<p>Release resources used by this custom element and its descendants.\nAfter calling this method, the element can no longer be used,\nand should be removed from the document.</p>"
},
"emit": {
"!type": "fn(type: string, eventObj: +Object) -> ?",
"!doc": "<p>Emits a synthetic event of specified type, based on eventObj.</p>"
},
"getPropsToObserve": {
"!type": "fn()"
},
"deliver": {},
"findCustomElements": {
"!type": "fn(root: +Element)",
"!doc": "<p>Search subtree under root returning custom elements found.</p>"
}
},
"delite/Container~before": {
"srcDom": {}
},
"delite/Container#addChild": {
"cn": {},
"nextSibling": {}
},
"delite/CssState": {
"!doc": "<p>Update the visual state of the widget by setting CSS classes on widget root node\nbased on widget properties:</p>\n<ul>\n<li><code>this.disabled</code> --> <code>d-disabled</code></li>\n<li><code>this.readOnly</code> --> <code>d-readonly</code></li>\n<li><code>this.selected</code> --> <code>d-selected</code> (ex: currently selected tab)</li>\n<li><code>this.checked == true</code> --> <code>d-checked</code> (ex: a checkbox or a ToggleButton in a checked state)</li>\n<li><code>this.checked == "mixed"</code> --> <code>d-mixed</code> (half-checked aka indeterminate checkbox)</li>\n<li><code>this.state == "Error"</code> --> <code>d-error</code> (ValidationTextBox value is invalid)</li>\n<li><code>this.state == "Incomplete"</code> --> <code>d-incomplete</code> (user hasn't finished typing value yet)</li>\n</ul>",
"booleanCssProps": {},
"postRender": {
"!type": "fn()",
"!doc": "<p>Processing after the DOM fragment is created.</p>\n<p>Called after the DOM fragment has been created, but not necessarily\nadded to the document. Do not include any operations which rely on\nnode dimensions or placement.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"refreshRendering": {
"!type": "fn()"
},
"baseClass": {
"!doc": "<p>Root CSS class of the widget (ex: "d-text-box")</p>"
},
"focused": {
"!doc": "<p>This widget or a widget it contains has focus, or is "active" because\nit was recently clicked.</p>"
},
"widgetId": {},
"dir": {
"!doc": "<p>Controls the layout direction of the widget, for example whether the arrow of\na Combobox appears to the right or the left of the input field.</p>\n<p>Values are "ltr" and "rtl", or "" which means that the value is inherited from the\nsetting on the document root (either <code><html></code> or <code><body></code>).</p>"
},
"effectiveDir": {},
"createdCallback": {
"!type": "fn()",
"!doc": "<p>Called when the custom element is created, or when <code>register.parse()</code> parses a custom tag.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"computeProperties": {
"!type": "fn()"
},
"getInheritedDir": {
"!type": "fn() -> ?",
"!doc": "<p>Get the direction setting for the page itself.</p>"
},
"attachedCallback": {
"!type": "fn()",
"!doc": "<p>Called automatically when the element is added to the document, after <code>createdCallback()</code> completes.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"preRender": {
"!type": "fn()",
"!doc": "<p>Processing before <code>render()</code>.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"template": {
"!doc": "<p>Value returned by delite/handlebars! or compatible template engine.\nSpecifies how to build the widget DOM initially and also how to update the DOM when\nwidget properties change.</p>"
},
"render": {
"!type": "fn()",
"!doc": "<p>Construct the UI for this widget, filling in subnodes and/or text inside of this.\nMost widgets will leverage delite/handlebars! to set <code>template</code>, rather than defining this method.</p>"
},
"_templateHandle": {},
"setClassComponent": {
"!type": "fn(component: string, value: string, node: +HTMLElement)",
"!doc": "<p>Helper method to set a class (or classes) on a given node, removing the class (or classes) set\nby the previous call to <code>setClassComponent()</code> <em>for the specified component and node</em>. Used mainly by\ntemplate.js to set classes without overwriting classes set by the user or other code (ex: CssState).</p>"
},
"setOrRemoveAttribute": {
"!type": "fn(node: +Element, name: string, value: string)",
"!doc": "<p>Helper method to set/remove an attribute based on the given value:</p>\n<ul>\n<li>If value is undefined, the attribute is removed. Useful for attributes like aria-valuenow.</li>\n<li>If value is boolean, the attribute is set to "true" or "false". Useful for attributes like aria-selected.</li>\n<li>If value is a number, it's converted to a string.</li>\n</ul>"
},
"detachedCallback": {
"!type": "fn()",
"!doc": "<p>Called when the element is removed the document.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"getParent": {
"!type": "fn()",
"!doc": "<p>Returns the parent widget of this widget, or null if there is no parent widget.</p>"
},
"on": {
"!type": "fn(type: string, func: +function, node: +Element) -> ?",
"!doc": "<p>Call specified function when event occurs.</p>\n<p>Note that the function is not run in any particular scope, so if (for example) you want it to run\nin the element's scope you must do <code>myCustomElement.on("click", myCustomElement.func.bind(myCustomElement))</code>.</p>\n<p>Note that <code>delite/Widget</code> overrides <code>on()</code> so that <code>on("focus", ...)</code> and `on("blur", ...) will trigger the\nlistener when focus moves into or out of the widget, rather than just when the widget's root node is\nfocused/blurred. In other words, the listener is called when the widget is conceptually focused or blurred.</p>"
},
"placeAt": {
"!type": "fn(reference: string|+Element|+DocumentFragment, position: string|number) -> ?",
"!doc": "<p>Place this widget somewhere in the dom, and allow chaining.</p>"
},
"getEnclosingWidget": {
"!type": "fn(node: +Element)",
"!doc": "<p>Returns the widget whose DOM tree contains the specified DOMNode, or null if\nthe node is not contained within the DOM tree of any widget</p>"
},
"customelement-attached": {
"!doc": "<p>Dispatched after the CustomElement has been attached.\nThis is useful to be notified when an HTMLElement has been upgraded to a\nCustomElement and attached to the DOM, in particular on browsers supporting native Custom Element.</p>"
},
"introspect": {
"!type": "fn()"
},
"_nativePropSetterMap": {},
"_nativeAttrs": {},
"getProps": {
"!type": "fn()"
},
"_propCaseMap": {},
"_processNativeProps": {
"!type": "fn()",
"!doc": "<p>This method will detect and process any properties that the application has set, but the custom setter\ndidn't run because <code>has("setter-on-native-prop") === false</code>.\nUsed during initialization and also by <code>deliver()</code>.</p>"
},
"created": {},
"_parsedAttributes": {},
"attached": {},
"_parsePrototypeAttr": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Returns value for widget property based on attribute value in markup.</p>"
},
"parseFunctionAttribute": {
"!type": "fn(value: string, params: [?])",
"!doc": "<p>Helper to parse function attribute in markup. Unlike <code>_parsePrototypeAttr()</code>, does not require a\ncorresponding widget property. Functions can be specified as global variables or as inline javascript:</p>\n<pre class=\"prettyprint source\"><code><my-widget funcAttr=\"globalFunction\" on-click=\"console.log(event.pageX);\"></code></pre>"
},
"parseAttribute": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Helper for parsing declarative widgets. Interpret a given attribute specified in markup, returning either:</p>\n<ul>\n<li><code>undefined</code>: ignore</li>\n<li><code>{prop: prop, value: value}</code>: set <code>this[prop] = value</code></li>\n<li><code>{event: event, callback: callback}</code>: call <code>this.on(event, callback)</code></li>\n</ul>"
},
"_mapAttributes": {
"!type": "fn() -> ?",
"!doc": "<p>Parse declaratively specified attributes for widget properties and connects.</p>"
},
"destroy": {
"!type": "fn()",
"!doc": "<p>Release resources used by this custom element and its descendants.\nAfter calling this method, the element can no longer be used,\nand should be removed from the document.</p>"
},
"emit": {
"!type": "fn(type: string, eventObj: +Object) -> ?",
"!doc": "<p>Emits a synthetic event of specified type, based on eventObj.</p>"
},
"getPropsToObserve": {
"!type": "fn()"
},
"deliver": {},
"findCustomElements": {
"!type": "fn(root: +Element)",
"!doc": "<p>Search subtree under root returning custom elements found.</p>"
}
},
"delite/CustomElement": {
"customelement-attached": {
"!doc": "<p>Dispatched after the CustomElement has been attached.\nThis is useful to be notified when an HTMLElement has been upgraded to a\nCustomElement and attached to the DOM, in particular on browsers supporting native Custom Element.</p>"
},
"getProps": {
"!type": "fn()"
},
"dir": {},
"_setDirAttr": {
"!type": "fn()"
},
"works": {},
"!doc": "<p>Base class for all custom elements.</p>\n<p>Use this class rather that delite/Widget for non-visual custom elements.\nCustom elements can provide custom setters/getters for properties, which are called automatically\nwhen the value is set. For an attribute XXX, define methods _setXXXAttr() and/or _getXXXAttr().</p>",
"introspect": {
"!type": "fn()"
},
"_nativePropSetterMap": {},
"_nativeAttrs": {},
"setterMap[undefined]": {},
"proto": {},
"_propCaseMap": {},
"hash[undefined]": {},
"pcm[undefined]": {},
"_processNativeProps": {
"!type": "fn()",
"!doc": "<p>This method will detect and process any properties that the application has set, but the custom setter\ndidn't run because <code>has("setter-on-native-prop") === false</code>.\nUsed during initialization and also by <code>deliver()</code>.</p>"
},
"created": {},
"createdCallback": {
"!type": "fn()",
"!doc": "<p>Called when the custom element is created, or when <code>register.parse()</code> parses a custom tag.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"before": {
"!type": "fn()"
},
"_parsedAttributes": {},
"after": {
"!type": "fn()"
},
"this[undefined]": {},
"subtree": {},
"attributeFilter": {},
"attributes": {},
"attached": {},
"attachedCallback": {
"!type": "fn()",
"!doc": "<p>Called automatically when the element is added to the document, after <code>createdCallback()</code> completes.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"bubbles": {},
"cancelable": {},
"detachedCallback": {
"!type": "fn()",
"!doc": "<p>Called when the element is removed the document.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"_parsePrototypeAttr": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Returns value for widget property based on attribute value in markup.</p>"
},
"obj": {},
"parseFunctionAttribute": {
"!type": "fn(value: string, params: [?])",
"!doc": "<p>Helper to parse function attribute in markup. Unlike <code>_parsePrototypeAttr()</code>, does not require a\ncorresponding widget property. Functions can be specified as global variables or as inline javascript:</p>\n<pre class=\"prettyprint source\"><code><my-widget funcAttr=\"globalFunction\" on-click=\"console.log(event.pageX);\"></code></pre>"
},
"parseAttribute": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Helper for parsing declarative widgets. Interpret a given attribute specified in markup, returning either:</p>\n<ul>\n<li><code>undefined</code>: ignore</li>\n<li><code>{prop: prop, value: value}</code>: set <code>this[prop] = value</code></li>\n<li><code>{event: event, callback: callback}</code>: call <code>this.on(event, callback)</code></li>\n</ul>"
},
"name": {},
"prop": {},
"value": {},
"event": {},
"callback": {},
"_mapAttributes": {
"!type": "fn() -> ?",
"!doc": "<p>Parse declaratively specified attributes for widget properties and connects.</p>"
},
"attr": {},
"destroy": {
"!type": "fn()",
"!doc": "<p>Release resources used by this custom element and its descendants.\nAfter calling this method, the element can no longer be used,\nand should be removed from the document.</p>"
},
"emit": {
"!type": "fn(type: string, eventObj: +Object) -> ?",
"!doc": "<p>Emits a synthetic event of specified type, based on eventObj.</p>"
},
"eventObj": {},
"nativeEvent[undefined]": {},
"on": {
"!type": "fn(type: string, func: +function, node: +Element) -> ?",
"!doc": "<p>Call specified function when event occurs.</p>\n<p>Note that the function is not run in any particular scope, so if (for example) you want it to run\nin the element's scope you must do <code>myCustomElement.on("click", myCustomElement.func.bind(myCustomElement))</code>.</p>\n<p>Note that <code>delite/Widget</code> overrides <code>on()</code> so that <code>on("focus", ...)</code> and `on("blur", ...) will trigger the\nlistener when focus moves into or out of the widget, rather than just when the widget's root node is\nfocused/blurred. In other words, the listener is called when the widget is conceptually focused or blurred.</p>"
},
"getPropsToObserve": {
"!type": "fn()"
},
"deliver": {},
"findCustomElements": {
"!type": "fn(root: +Element)",
"!doc": "<p>Search subtree under root returning custom elements found.</p>"
},
"node": {}
},
"delite/CustomElement~tw": {
"dir": {}
},
"delite/CustomElement#introspect": {
"proto": {},
"nativeProps": {},
"setterMap": {}
},
"delite/CustomElement#getProps": {
"hash": {},
"proto": {},
"pcm": {}
},
"delite/CustomElement~after": {
"MO": {},
"observer": {}
},
"delite/CustomElement#_parsePrototypeAttr": {
"stringToObject": {
"!type": "fn()"
}
},
"delite/CustomElement#_parsePrototypeAttr~stringToObject": {
"obj": {}
},
"delite/CustomElement#parseAttribute": {
"pcm": {}
},
"delite/CustomElement#_mapAttributes": {
"attr": {},
"idx": {},
"parsedAttrs": {},
"attrsToRemove": {},
"name": {},
"parsedAttr": {}
},
"delite/CustomElement#emit": {
"bubbles": {},
"cancelable": {},
"nativeEvent": {},
"i": {}
},
"delite/CustomElement#findCustomElements": {
"outAry": {},
"getChildrenHelper": {
"!type": "fn()"
}
},
"delite/CustomElement#findCustomElements~getChildrenHelper": {
"node": {}
},
"delite/Dialog": {
"!doc": "<p>Base class for modal dialogs, where tabbing from the last element loops to the first, and vice-versa.</p>",
"postRender": {
"!type": "fn()",
"!doc": "<p>Processing after the DOM fragment is created.</p>\n<p>Called after the DOM fragment has been created, but not necessarily\nadded to the document. Do not include any operations which rely on\nnode dimensions or placement.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"_getFocusItems": {
"!type": "fn()"
},
"_firstFocusItem": {},
"_lastFocusItem": {},
"_dialogKeyDownHandler": {
"!type": "fn()"
},
"baseClass": {
"!doc": "<p>Root CSS class of the widget (ex: "d-text-box")</p>"
},
"focused": {
"!doc": "<p>This widget or a widget it contains has focus, or is "active" because\nit was recently clicked.</p>"
},
"widgetId": {},
"dir": {
"!doc": "<p>Controls the layout direction of the widget, for example whether the arrow of\na Combobox appears to the right or the left of the input field.</p>\n<p>Values are "ltr" and "rtl", or "" which means that the value is inherited from the\nsetting on the document root (either <code><html></code> or <code><body></code>).</p>"
},
"effectiveDir": {},
"createdCallback": {
"!type": "fn()",
"!doc": "<p>Called when the custom element is created, or when <code>register.parse()</code> parses a custom tag.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"computeProperties": {
"!type": "fn()"
},
"getInheritedDir": {
"!type": "fn() -> ?",
"!doc": "<p>Get the direction setting for the page itself.</p>"
},
"refreshRendering": {
"!type": "fn()"
},
"attachedCallback": {
"!type": "fn()",
"!doc": "<p>Called automatically when the element is added to the document, after <code>createdCallback()</code> completes.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"preRender": {
"!type": "fn()",
"!doc": "<p>Processing before <code>render()</code>.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"template": {
"!doc": "<p>Value returned by delite/handlebars! or compatible template engine.\nSpecifies how to build the widget DOM initially and also how to update the DOM when\nwidget properties change.</p>"
},
"render": {
"!type": "fn()",
"!doc": "<p>Construct the UI for this widget, filling in subnodes and/or text inside of this.\nMost widgets will leverage delite/handlebars! to set <code>template</code>, rather than defining this method.</p>"
},
"_templateHandle": {},
"setClassComponent": {
"!type": "fn(component: string, value: string, node: +HTMLElement)",
"!doc": "<p>Helper method to set a class (or classes) on a given node, removing the class (or classes) set\nby the previous call to <code>setClassComponent()</code> <em>for the specified component and node</em>. Used mainly by\ntemplate.js to set classes without overwriting classes set by the user or other code (ex: CssState).</p>"
},
"setOrRemoveAttribute": {
"!type": "fn(node: +Element, name: string, value: string)",
"!doc": "<p>Helper method to set/remove an attribute based on the given value:</p>\n<ul>\n<li>If value is undefined, the attribute is removed. Useful for attributes like aria-valuenow.</li>\n<li>If value is boolean, the attribute is set to "true" or "false". Useful for attributes like aria-selected.</li>\n<li>If value is a number, it's converted to a string.</li>\n</ul>"
},
"detachedCallback": {
"!type": "fn()",
"!doc": "<p>Called when the element is removed the document.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"getParent": {
"!type": "fn()",
"!doc": "<p>Returns the parent widget of this widget, or null if there is no parent widget.</p>"
},
"on": {
"!type": "fn(type: string, func: +function, node: +Element) -> ?",
"!doc": "<p>Call specified function when event occurs.</p>\n<p>Note that the function is not run in any particular scope, so if (for example) you want it to run\nin the element's scope you must do <code>myCustomElement.on("click", myCustomElement.func.bind(myCustomElement))</code>.</p>\n<p>Note that <code>delite/Widget</code> overrides <code>on()</code> so that <code>on("focus", ...)</code> and `on("blur", ...) will trigger the\nlistener when focus moves into or out of the widget, rather than just when the widget's root node is\nfocused/blurred. In other words, the listener is called when the widget is conceptually focused or blurred.</p>"
},
"placeAt": {
"!type": "fn(reference: string|+Element|+DocumentFragment, position: string|number) -> ?",
"!doc": "<p>Place this widget somewhere in the dom, and allow chaining.</p>"
},
"getEnclosingWidget": {
"!type": "fn(node: +Element)",
"!doc": "<p>Returns the widget whose DOM tree contains the specified DOMNode, or null if\nthe node is not contained within the DOM tree of any widget</p>"
},
"customelement-attached": {
"!doc": "<p>Dispatched after the CustomElement has been attached.\nThis is useful to be notified when an HTMLElement has been upgraded to a\nCustomElement and attached to the DOM, in particular on browsers supporting native Custom Element.</p>"
},
"introspect": {
"!type": "fn()"
},
"_nativePropSetterMap": {},
"_nativeAttrs": {},
"getProps": {
"!type": "fn()"
},
"_propCaseMap": {},
"_processNativeProps": {
"!type": "fn()",
"!doc": "<p>This method will detect and process any properties that the application has set, but the custom setter\ndidn't run because <code>has("setter-on-native-prop") === false</code>.\nUsed during initialization and also by <code>deliver()</code>.</p>"
},
"created": {},
"_parsedAttributes": {},
"attached": {},
"_parsePrototypeAttr": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Returns value for widget property based on attribute value in markup.</p>"
},
"parseFunctionAttribute": {
"!type": "fn(value: string, params: [?])",
"!doc": "<p>Helper to parse function attribute in markup. Unlike <code>_parsePrototypeAttr()</code>, does not require a\ncorresponding widget property. Functions can be specified as global variables or as inline javascript:</p>\n<pre class=\"prettyprint source\"><code><my-widget funcAttr=\"globalFunction\" on-click=\"console.log(event.pageX);\"></code></pre>"
},
"parseAttribute": {
"!type": "fn(name: string, value: string)",
"!doc": "<p>Helper for parsing declarative widgets. Interpret a given attribute specified in markup, returning either:</p>\n<ul>\n<li><code>undefined</code>: ignore</li>\n<li><code>{prop: prop, value: value}</code>: set <code>this[prop] = value</code></li>\n<li><code>{event: event, callback: callback}</code>: call <code>this.on(event, callback)</code></li>\n</ul>"
},
"_mapAttributes": {
"!type": "fn() -> ?",
"!doc": "<p>Parse declaratively specified attributes for widget properties and connects.</p>"
},
"destroy": {
"!type": "fn()",
"!doc": "<p>Release resources used by this custom element and its descendants.\nAfter calling this method, the element can no longer be used,\nand should be removed from the document.</p>"
},
"emit": {
"!type": "fn(type: string, eventObj: +Object) -> ?",
"!doc": "<p>Emits a synthetic event of specified type, based on eventObj.</p>"
},
"getPropsToObserve": {
"!type": "fn()"
},
"deliver": {},
"findCustomElements": {
"!type": "fn(root: +Element)",
"!doc": "<p>Search subtree under root returning custom elements found.</p>"
}
},
"delite/Dialog#_getFocusItems": {
"elems": {}
},
"delite/Dialog#_dialogKeyDownHandler": {
"node": {}
},
"delite/DialogUnderlay": {
"!type": "fn()",
"!doc": "<p>A component used to block input behind a Dialog widget.</p>\n<p>Normally this widget should not be instantiated directly, but rather shown and hidden via\n<code>DialogUnderlay.show()</code> and <code>DialogUnderlay.hide()</code>. And usually the module is not accessed directly\nat all, since the underlay is shown and hidden by the Dialog.</p>",
"render": {
"!type": "fn()"
},
"className": {},
"createdCallback": {},
"attachedCallback": {
"!type": "fn()"
},
"_resizeListener": {},
"detachedCallback": {
"!type": "fn()"
},
"layout": {
"!type": "fn()",
"!doc": "<p>Sets the background to the size of the viewport (rather than the size\nof the document) since we need to cover the whole browser window, even\nif the document is only a few lines long.</p>"
},
"show": {
"!type": "fn()",
"!doc": "<p>Show the dialog underlay (instance method).</p>"
},
"_open": {},
"bgIframe": {},
"hide": {
"!type": "fn()",
"!doc": "<p>Hide the dialog underlay (instance method).</p>"
},
"DialogUnderlay.show": {
"!type": "fn(attrs: +Object, zIndex: number)",
"!doc": "<p>Static method to display the underlay with the given attributes set. If the underlay is already displayed,\nthen adjust it's attributes as specified.</p>"
},
"DialogUnderlay": {
"show": {
"underlay": {}
},
"hide": {
"underlay": {}
}
},
"underlay": {},
"DialogUnderlay.hide": {
"!type": "fn()",
"!doc": "<p>Static method to hide the underlay.</p>"
}
},
"delite/DialogUnderlay#layout": {
"s": {},
"html": {}
},
"delite/DialogUnderlay~s": {
"display": {},
"width": {},
"height": {}
},
"delite/DialogUnderlay#style": {
"display": {}
},
"delite/DialogUnderlay~DialogUnderlay": {
"_singleton": {}
},
"delite/DialogUnderlay~underlay": {
"style": {
"zIndex": {}
}
},
"delite/DisplayContainer": {
"delite-before-show": {
"!doc": "<p>Dispatched before child is shown.</p>"
},
"delite-after-show": {
"!doc": "<p>Dispatched after child is shown.</p>"
},
"delite-display-load": {
"!doc": "<p>Dispatched to let an application level listener create/load the child node.</p>"
},
"delite-before-hide": {
"!doc": "<p>Dispatched before child is hidden.</p>"
},
"delite-after-hide": {
"!doc": "<p>Dispatched after child is hidden.</p>"
},
"!doc": "<p>Mixin for widget containers that need to show on or off a child.</p>\n<p>When the show method is called a container extending this mixin is able to be notified that one of\nits children must be displayed. Before displaying it, it will fire the <code>delite-display-load</code> event\ngiving a chance to a listener to load and create the child if not yet available before proceeding with\nthe display. After the display has been performed a <code>delite-display-complete</code> event will be fired.</p>",
"show": {
"!type": "fn(dest: +Element|string, params: +Object) -> ?",
"!doc": "<p>This method must be called to display a particular destination child on this container.</p>"
},
"child": {},
"event": {},
"hide": {
"!type": "fn(dest: +Element|string, params: +Object) -> ?",
"!doc": "<p>This method must be called to hide a particular destination child on this container.</p>"
},
"changeDisplay": {
"!type": "fn(widget: +Element|string, params: +Object) -> ?",
"!doc": "<p>This method must perform the display and possible transition effect. It is meant to be specialized by\nsubclasses.</p>"
},
"load": {
"!type": "fn(widget: +Element|string) -> ?",
"!doc": "<p>This method can be redefined to load a child of the container. By default it just looks up\nelements by id.</p>"
},
"delite-add-child": {
"!doc": "<p>Dispatched after an Element has been added as child of this widget.</p>"
},
"delite-remove-child": {
"!doc": "<p>Dispatched after an child Element has been removed from this widget.</p>"
},
"containerNode": {},
"render": {
"!type": "fn()",
"!doc": "<p>Construct the UI for this widget, filling in subnodes and/or text inside of this.\nMost widgets will leverage delite/handlebars! to set <code>template</code>, rather than defining this method.</p>"
},
"_srcDom": {},
"appendChild": {},
"insertBefore": {},
"onAddChild": {
"!type": "fn(node: +Element)",
"!doc": "<p>Callback whenever a child element is added to this widget via <code>appendChild()</code>, <code>insertBefore()</code>,\nor a method like <code>addChild()</code> that internally calls <code>appendChild()</code> and/or <code>insertBefore()</code>.</p>"
},
"addChild": {
"!type": "fn(node: +Element, insertIndex: number)",
"!doc": "<p>Inserts the specified Element at the specified index.\nFor example, <code>.addChild(node, 3)</code> sets this widget's fourth child to node.</p>"
},
"removeChild": {
"!type": "fn(node: +Element|number)",
"!doc": "<p>Detaches the specified node instance from this widget but does\nnot destroy it. You can also pass in an integer indicating\nthe index within the container to remove (ie, removeChild(5) removes the sixth node).</p>"
},
"getChildren": {
"!type": "fn() -> ?",
"!doc": "<p>Returns all direct children of this widget, i.e. all widgets or DOM nodes underneath\n<code>this.containerNode</code>. Note that it does not return all\ndescendants, but rather just direct children.</p>\n<p>The result intentionally excludes element outside off <code>this.containerNode</code>. So, it is different than\naccessing the <code>children</code> or <code>childNode</code> properties.</p>"
},
"hasChildren": {
"!type": "fn() -> ?",
"!doc": "<p>Returns true if widget has child nodes, i.e. if <code>this.containerNode</code> contains widgets.</p>"
},
"getIndexOfChild": {
"!type": "fn(child: +Element) -> ?",
"!doc": "<p>Returns the index of the child in this container or -1 if not found.</p>"
},
"baseClass": {
"!doc": "<p>Root CSS class of the widget (ex: "d-text-box")</p>"
},
"focused": {
"!doc": "<p>This widget or a widget it contains has focus, or is "active" because\nit was recently clicked.</p>"
},
"widgetId": {},
"dir": {
"!doc": "<p>Controls the layout direction of the widget, for example whether the arrow of\na Combobox appears to the right or the left of the input field.</p>\n<p>Values are "ltr" and "rtl", or "" which means that the value is inherited from the\nsetting on the document root (either <code><html></code> or <code><body></code>).</p>"
},
"effectiveDir": {},
"createdCallback": {
"!type": "fn()",
"!doc": "<p>Called when the custom element is created, or when <code>register.parse()</code> parses a custom tag.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"computeProperties": {
"!type": "fn()"
},
"getInheritedDir": {
"!type": "fn() -> ?",
"!doc": "<p>Get the direction setting for the page itself.</p>"
},
"refreshRendering": {
"!type": "fn()"
},
"attachedCallback": {
"!type": "fn()",
"!doc": "<p>Called automatically when the element is added to the document, after <code>createdCallback()</code> completes.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"preRender": {
"!type": "fn()",
"!doc": "<p>Processing before <code>render()</code>.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"template": {
"!doc": "<p>Value returned by delite/handlebars! or compatible template engine.\nSpecifies how to build the widget DOM initially and also how to update the DOM when\nwidget properties change.</p>"
},
"_templateHandle": {},
"setClassComponent": {
"!type": "fn(component: string, value: string, node: +HTMLElement)",
"!doc": "<p>Helper method to set a class (or classes) on a given node, removing the class (or classes) set\nby the previous call to <code>setClassComponent()</code> <em>for the specified component and node</em>. Used mainly by\ntemplate.js to set classes without overwriting classes set by the user or other code (ex: CssState).</p>"
},
"setOrRemoveAttribute": {
"!type": "fn(node: +Element, name: string, value: string)",
"!doc": "<p>Helper method to set/remove an attribute based on the given value:</p>\n<ul>\n<li>If value is undefined, the attribute is removed. Useful for attributes like aria-valuenow.</li>\n<li>If value is boolean, the attribute is set to "true" or "false". Useful for attributes like aria-selected.</li>\n<li>If value is a number, it's converted to a string.</li>\n</ul>"
},
"postRender": {
"!type": "fn()",
"!doc": "<p>Processing after the DOM fragment is created.</p>\n<p>Called after the DOM fragment has been created, but not necessarily\nadded to the document. Do not include any operations which rely on\nnode dimensions or placement.</p>\n<p>This method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"detachedCallback": {
"!type": "fn()",
"!doc": "<p>Called when the element is removed the document.\nThis method is automatically chained, so subclasses generally do not need to use <code>dcl.superCall()</code>,\n<code>dcl.advise()</code>, etc.</p>"
},
"getParent": {
"!type": "fn()",
"!doc": "<p>Returns the parent widget of this widget, or null if there is no parent widget.</p>"
},
"on": {
"!type": "fn(type: string, func: +function, node: +Element) -> ?",
"!doc": "<p>Call specified function when event occurs.</p>\n<p>Note that the function is not run in any particular scope, so if (for example) you want it to run\nin the element's scope you must do <code>myCustomElement.on("click", myCustomElement.func.bind(myCustomElement))</code>.</p>\n<p>Note that <code>delite/Widget</code> overrides <code>on()</code> so that <code>on("focus", ...)</code> and `on("blur", ...) will trigger the\nlistener when focus moves into or out of the widget, rather than just when the widget's root node is\nfocused/blurred. In other words, the listener is called when the widget is conceptually focused or blurred.</p>"
},
"placeAt": {
"!type": "fn(reference: string|+Element|+DocumentFragment, position: string|number) -> ?",
"!doc": "<p>Place this widget somewhere in the dom, and allow chaining.</p>"
},
"getEnclosingWidget": {
"!type": "fn(node: +Element)",
"!doc": "<p>Returns the widget whose DOM tree contains the specified DOMNode, or null if\nthe node is not contained within the DOM tree of any widget</p>"
},
"customelement-attached": {
"!doc": "<p>Dispatched after the CustomElement has been attached.\nThis is useful to be notified when an HTMLElement has been upgraded to a\nCustomElement and attached to the DOM, in particular on browsers supporting native Custom Element.</p>"
},
"introspect": {
"!type": "fn()"
},
"_nativePropSetterMap": {},
"_nativeAttrs": {},
"getProps": {
"!type": "fn()"