-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalysis.json
770 lines (770 loc) · 24.2 KB
/
analysis.json
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
{
"schema_version": "1.0.0",
"elements": [
{
"description": "The `<exmg-date-format>` Lightweight element for formatting dates\n\n```html\n <exmg-date-format timestamp=\"1493214988336\"></exmg-date-format>\n <exmg-date-format timestamp=\"1493214988336\" dataPattern=\"dd/MM/yyyy\"></exmg-date-format>\n```\n\nExample of how to set the default date pattern in the global scope\n```html\n window.Exmg.defaultDatePattern = 'dd/MM/yy';\n```\n\n### Styling\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--exmg-date-format` | Mixin applied to host element | `{}`",
"summary": "",
"path": "exmg-date-format.js",
"properties": [
{
"name": "_hasRequestedUpdate",
"type": "?",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 375,
"column": 4
},
"end": {
"line": 377,
"column": 5
}
},
"metadata": {
"polymer": {
"readOnly": true
}
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "updateComplete",
"type": "Promise",
"description": "Returns a Promise that resolves when the element has completed updating.\nThe Promise value is a boolean that is `true` if the element completed the\nupdate without triggering another update. The Promise result is `false` if\na property was set inside `updated()`. This getter can be implemented to\nawait additional state. For example, it is sometimes useful to await a\nrendered element before fulfilling this Promise. To do this, first await\n`super.updateComplete` then any subsequent state.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 416,
"column": 4
},
"end": {
"line": 416,
"column": 56
}
},
"metadata": {
"polymer": {
"readOnly": true
}
},
"inheritedFrom": "UpdatingElement"
}
],
"methods": [
{
"name": "initialize",
"description": "Performs element initialization. By default this calls `createRenderRoot`\nto create the element `renderRoot` node and captures any pre-set values for\nregistered properties.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 200,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_saveInstanceProperties",
"description": "Fixes any properties set on the instance before upgrade time.\nOtherwise these would shadow the accessor and break these properties.\nThe properties are stored in a Map which is played back after the\nconstructor runs. Note, on very old versions of Safari (<=9) or Chrome\n(<=41), properties created for native platform properties like (`id` or\n`name`) may not have default values set in the element constructor. On\nthese browsers native properties appear on instances and therefore their\ndefault value will overwrite any element default (e.g. if the element sets\nthis.id = 'id' in the constructor, the 'id' will become '' since this is\nthe native platform default).",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 213,
"column": 4
},
"end": {
"line": 225,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_applyInstanceProperties",
"description": "Applies previously saved instance properties.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 229,
"column": 4
},
"end": {
"line": 234,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "createRenderRoot",
"description": "Returns the node into which the element should render and by default\ncreates and returns an open shadowRoot. Implement to customize where the\nelement's DOM is rendered. For example, to render into the element's\nchildNodes, return `this`.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 242,
"column": 4
},
"end": {
"line": 244,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "(Element | DocumentFragment)",
"desc": "Returns a node into which to render."
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "connectedCallback",
"description": "Uses ShadyCSS to keep element DOM updated.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 248,
"column": 4
},
"end": {
"line": 257,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "disconnectedCallback",
"description": "Allows for `super.disconnectedCallback()` in extensions while\nreserving the possibility of making non-breaking feature additions\nwhen disconnecting at some point in the future.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 263,
"column": 4
},
"end": {
"line": 263,
"column": 30
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "attributeChangedCallback",
"description": "Synchronizes property values when attributes change.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 271,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name"
},
{
"name": "old"
},
{
"name": "value"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_propertyToAttribute",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 272,
"column": 4
},
"end": {
"line": 297,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name"
},
{
"name": "value"
},
{
"name": "options",
"defaultValue": "defaultPropertyDeclaration"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_attributeToProperty",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 298,
"column": 4
},
"end": {
"line": 310,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name"
},
{
"name": "value"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "requestUpdate",
"description": "Requests an update which is processed asynchronously. This should\nbe called when an element should update based on some state not triggered\nby setting a property. In this case, pass no arguments. It should also be\ncalled when manually implementing a property setter. In this case, pass the\nproperty `name` and `oldValue` to ensure that any configured property\noptions are honored. Returns the `updateComplete` Promise which is resolved\nwhen the update completes.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 324,
"column": 4
},
"end": {
"line": 332,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name",
"description": "{PropertyKey} (optional) name of requesting property"
},
{
"name": "oldValue",
"description": "{any} (optional) old value of requesting property"
}
],
"return": {
"type": "Promise",
"desc": "A Promise that is resolved when the update completes."
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_requestPropertyUpdate",
"description": "Requests an update for a specific property and records change information.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 339,
"column": 4
},
"end": {
"line": 356,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name",
"description": "{PropertyKey} name of requesting property"
},
{
"name": "oldValue",
"description": "{any} old value of requesting property"
},
{
"name": "options",
"description": "{PropertyDeclaration}"
}
],
"inheritedFrom": "UpdatingElement"
},
{
"name": "_invalidate",
"description": "Invalidates the element causing it to asynchronously update regardless\nof whether or not any property changes are pending. This method is\nautomatically called when any registered property changes.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 362,
"column": 4
},
"end": {
"line": 374,
"column": 5
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UpdatingElement"
},
{
"name": "_validate",
"description": "Validates the element by updating it.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 381,
"column": 4
},
"end": {
"line": 399,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_markUpdated",
"description": "",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 400,
"column": 4
},
"end": {
"line": 403,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "shouldUpdate",
"description": "Controls whether or not `update` should be called when the element requests\nan update. By default, this method always returns `true`, but this can be\ncustomized to control when to update.\n\n* @param _changedProperties Map of changed properties with old values",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 424,
"column": 4
},
"end": {
"line": 426,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "_changedProperties"
}
],
"inheritedFrom": "UpdatingElement"
},
{
"name": "update",
"description": "Updates the element. This method reflects property values to attributes\nand calls `render` to render DOM via lit-html. Setting properties inside\nthis method will *not* trigger another update.\n* @param _changedProperties Map of changed properties with old values",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lit-element.js",
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 33,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "changedProperties"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "LitElement"
},
{
"name": "updated",
"description": "Invoked whenever the element is updated. Implement to perform\npost-updating tasks via DOM APIs, for example, focusing an element.\n\nSetting properties inside this method will trigger the element to update\nagain after this update cycle completes.\n\n* @param _changedProperties Map of changed properties with old values",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 453,
"column": 4
},
"end": {
"line": 453,
"column": 35
}
},
"metadata": {},
"params": [
{
"name": "_changedProperties"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "firstUpdated",
"description": "Invoked when the element is first updated. Implement to perform one time\nwork on the element after update.\n\nSetting properties inside this method will trigger the element to update\nagain after this update cycle completes.\n\n* @param _changedProperties Map of changed properties with old values",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 463,
"column": 4
},
"end": {
"line": 463,
"column": 40
}
},
"metadata": {},
"params": [
{
"name": "_changedProperties"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "render",
"description": "",
"privacy": "public",
"sourceRange": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 90,
"column": 5
}
},
"metadata": {},
"params": []
},
{
"name": "formatDate",
"description": "This function can be used to manualy format dates. The first parameter\ncan be a timestamp or a Date. Second parameter pattern is optional.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 97,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "date"
},
{
"name": "datePattern",
"defaultValue": "window.Exmg.defaultDatePattern || this._defaultDatePattern"
}
]
},
{
"name": "_format",
"description": "",
"privacy": "protected",
"sourceRange": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 116,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "date"
},
{
"name": "pattern"
}
]
}
],
"staticMethods": [
{
"name": "createProperty",
"description": "Creates a property accessor on the element prototype if one does not exist.\nThe property setter calls the property's `hasChanged` property option\nor uses a strict identity check to determine whether or not to request\nan update.",
"privacy": "public",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 78,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name"
},
{
"name": "options",
"defaultValue": "defaultPropertyDeclaration"
}
],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_finalize",
"description": "Creates property accessors for registered properties and ensures\nany superclasses are also finalized.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 136,
"column": 5
}
},
"metadata": {},
"params": [],
"return": {
"type": "void"
},
"inheritedFrom": "UpdatingElement"
},
{
"name": "_attributeNameForProperty",
"description": "Returns the property name for the given attribute `name`.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 140,
"column": 4
},
"end": {
"line": 148,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "name"
},
{
"name": "options"
}
],
"inheritedFrom": "UpdatingElement"
},
{
"name": "_valueHasChanged",
"description": "Returns true if a property should request an update.\nCalled when a property value is set and uses the `hasChanged`\noption for the property if present or a strict identity check.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 154,
"column": 4
},
"end": {
"line": 156,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "value"
},
{
"name": "old"
},
{
"name": "hasChanged",
"defaultValue": "notEqual"
}
],
"inheritedFrom": "UpdatingElement"
},
{
"name": "_propertyValueFromAttribute",
"description": "Returns the property value for the given attribute value.\nCalled via the `attributeChangedCallback` and uses the property's `type`\nor `type.fromAttribute` property option.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 162,
"column": 4
},
"end": {
"line": 172,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "value"
},
{
"name": "options"
}
],
"inheritedFrom": "UpdatingElement"
},
{
"name": "_propertyValueToAttribute",
"description": "Returns the attribute value for the given property value. If this\nreturns undefined, the property will *not* be reflected to an attribute.\nIf this returns null, the attribute will be removed, otherwise the\nattribute will be set to the value.\nThis uses the property's `reflect` and `type.toAttribute` property options.",
"privacy": "protected",
"sourceRange": {
"file": "../@polymer/lit-element/lib/updating-element.js",
"start": {
"line": 180,
"column": 4
},
"end": {
"line": 191,
"column": 5
}
},
"metadata": {},
"params": [
{
"name": "value"
},
{
"name": "options"
}
],
"inheritedFrom": "UpdatingElement"
}
],
"demos": [
{
"url": "demo/index.html",
"description": ""
}
],
"metadata": {},
"sourceRange": {
"start": {
"line": 50,
"column": 24
},
"end": {
"line": 117,
"column": 1
}
},
"privacy": "public",
"superclass": "LitElement",
"name": "DateFormatElement",
"attributes": [],
"events": [],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": []
}
]
}