This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
analysis.json
1757 lines (1757 loc) · 61.4 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
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
{
"schema_version": "1.0.0",
"mixins": [
{
"description": " Key mixin that must be assigned to all elements that need to access\n application state and/or have access to the application element. The element is\n notified of any changes to application's state, as well as all its properties\n when they're modified by state mutator elements. `state-path` property must\n be used to identify path to element's state in application state tree. \n\n ### Example:\n\n #### HTML:\n\n <template>\n\n <div>Value A: [[state.valueA]]</div>\n <div>Value B: [[valueB]]</div>\n\n </template>\n\n #### JavaScript:\n\n class MyElement extends UniFlow.StateAware(Polymer.Element) {\n static get is() { return 'my-element'; }\n\n static get properties() {\n return {\n valueB: String\n }\n }\n }\n\n customElement.define(MyElement.is, MyElement);\n\n When above element is declared as follows:\n\n <my-element state-path=\"state.myElement\"></my-element>\n\n it will be notified about changes (and render those) to `state.valueA` or\n `state.myElement.valueB` in action dispatchers or other state mutating\n elements.\n\n ",
"summary": "",
"path": "state-aware.html",
"properties": [
{
"name": "state",
"type": "Object",
"description": "Application state, shared among application and all state-aware elements.\nThis property is initialized when element is attached.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 74,
"column": 10
},
"end": {
"line": 76,
"column": 11
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "statePath",
"type": "string",
"description": "Path to element state in the application state tree.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {
"polymer": {}
}
},
{
"name": "stateAware",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true"
},
{
"name": "application",
"type": "Object",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {
"polymer": {}
}
}
],
"methods": [
{
"name": "connectedCallback",
"description": "Adds this element to the list of state-aware elements in the application.\nSets the value of state property to the state of the application element.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 116,
"column": 6
},
"end": {
"line": 132,
"column": 7
}
},
"metadata": {},
"params": []
},
{
"name": "disconnectedCallback",
"description": "Removes this element from the list of state-aware elements in the\napplication.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 138,
"column": 6
},
"end": {
"line": 145,
"column": 7
}
},
"metadata": {},
"params": []
},
{
"name": "getApplication",
"description": "Returns application element.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 151,
"column": 6
},
"end": {
"line": 153,
"column": 7
}
},
"metadata": {},
"params": [],
"return": {
"type": "Element"
}
}
],
"staticMethods": [],
"demos": [],
"metadata": {},
"sourceRange": {
"start": {
"line": 65,
"column": 2
},
"end": {
"line": 155,
"column": 6
}
},
"privacy": "public",
"name": "UniFlow.StateAware",
"attributes": [
{
"name": "state",
"description": "Application state, shared among application and all state-aware elements.\nThis property is initialized when element is attached.",
"sourceRange": {
"start": {
"line": 74,
"column": 10
},
"end": {
"line": 76,
"column": 11
}
},
"metadata": {},
"type": "Object"
},
{
"name": "state-path",
"description": "Path to element state in the application state tree.",
"sourceRange": {
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {},
"type": "string"
},
{
"name": "state-aware",
"description": "",
"sourceRange": {
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {},
"type": "boolean"
},
{
"name": "application",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"sourceRange": {
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {},
"type": "Object"
}
],
"events": [],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": []
},
{
"description": " Some non-visual elements, like action dispatchers, need to modify application\n state, in which case they should have this mixin applied. Implements state-\n aware and re-declares state property with notify attribute. State mutator elements\n are only supposed to exist at the application level.\n\n ",
"summary": "",
"path": "state-mutator.html",
"properties": [
{
"name": "state",
"type": "Object",
"description": "Application state.",
"privacy": "public",
"sourceRange": {
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 44,
"column": 11
}
},
"metadata": {
"polymer": {
"notify": true
}
}
},
{
"name": "statePath",
"type": "string",
"description": "Path to element state in the application state tree.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "stateAware",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "application",
"type": "Object",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
}
],
"methods": [
{
"name": "connectedCallback",
"description": "Adds this element to the list of state-aware elements in the application.\nSets the value of state property to the state of the application element.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 116,
"column": 6
},
"end": {
"line": 132,
"column": 7
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "disconnectedCallback",
"description": "Removes this element from the list of state-aware elements in the\napplication.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 138,
"column": 6
},
"end": {
"line": 145,
"column": 7
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "getApplication",
"description": "Returns application element.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 151,
"column": 6
},
"end": {
"line": 153,
"column": 7
}
},
"metadata": {},
"params": [],
"return": {
"type": "Element"
},
"inheritedFrom": "UniFlow.StateAware"
}
],
"staticMethods": [],
"demos": [],
"metadata": {},
"sourceRange": {
"start": {
"line": 33,
"column": 2
},
"end": {
"line": 48,
"column": 6
}
},
"privacy": "public",
"name": "UniFlow.StateMutator",
"attributes": [
{
"name": "state",
"description": "Application state.",
"sourceRange": {
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 44,
"column": 11
}
},
"metadata": {},
"type": "Object"
},
{
"name": "state-path",
"description": "Path to element state in the application state tree.",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {},
"type": "string",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "state-aware",
"description": "",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {},
"type": "boolean",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "application",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {},
"type": "Object",
"inheritedFrom": "UniFlow.StateAware"
}
],
"events": [],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": [],
"mixins": [
"UniFlow.StateAware"
]
},
{
"description": " Use UniFlow.ActionDispatcher for non-visual elements that process actions emitted by visual\n elements. Action dispatchers usually placed at the application level. Each action dispatcher\n element gets a chance to process the action in the order the elements are present in the\n DOM tree. It is important that action dispatcher elements get two-way data binding to\n application state as follows:\n\n <action-dispatcher state=\"{{state}}\"></action-dispatcher>\n\n Action dispatcher elements can include nested action dispatchers, so you can have a\n hierarchical organization of action dispatchers.\n\n ### Example:\n\n #### HTML:\n\n <dom-module id=\"parent-dispatcher\">\n <template>\n <child-dispatcher-a state=\"{{state}}\"></child-dispatcher-a>\n <child-dispatcher-b state=\"{{state}}\"></child-dispatcher-b>\n </template>\n </dom-module>\n\n #### JavaScript:\n class ParentDispatcher extends UniFlow.ActionDispatcher(Polymer.Element) {\n static get is() { return 'parent-dispatcher'; }\n\n MY_ACTION(detail) {\n // do MY_ACTION processing here\n // return false if you want to prevent other action dispatchers from\n // further processing of this action\n };\n }\n\n customElements.define(ParentDispatcher.is, ParentDispatcher);\n\n ",
"summary": "",
"path": "action-dispatcher.html",
"properties": [
{
"name": "state",
"type": "Object",
"description": "Application state.",
"privacy": "public",
"sourceRange": {
"file": "state-mutator.html",
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 44,
"column": 11
}
},
"metadata": {
"polymer": {
"notify": true
}
},
"inheritedFrom": "UniFlow.StateMutator"
},
{
"name": "statePath",
"type": "string",
"description": "Path to element state in the application state tree.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "stateAware",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "application",
"type": "Object",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "actionDispatcher",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"start": {
"line": 68,
"column": 12
},
"end": {
"line": 72,
"column": 13
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true"
}
],
"methods": [
{
"name": "connectedCallback",
"description": "Adds this element to the list of state-aware elements in the application.\nSets the value of state property to the state of the application element.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 116,
"column": 6
},
"end": {
"line": 132,
"column": 7
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "disconnectedCallback",
"description": "Removes this element from the list of state-aware elements in the\napplication.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 138,
"column": 6
},
"end": {
"line": 145,
"column": 7
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "getApplication",
"description": "Returns application element.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 151,
"column": 6
},
"end": {
"line": 153,
"column": 7
}
},
"metadata": {},
"params": [],
"return": {
"type": "Element"
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "dispatchAction",
"description": "Dispatches action by invoking the method with the name that matches\naction type (`detail.type`) passing detail object as a parameter;\nalso selects all children action dispatchers in the element's DOM tree and\ninvokes dispatchAction method on them. False returned by an action dispatcher method\nresults in dispatchAction method returning false (which in turn stops further processing\nof the action by other action dispatchers).",
"privacy": "public",
"sourceRange": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 97,
"column": 9
}
},
"metadata": {},
"params": [
{
"name": "detail",
"type": "{type: string}"
}
],
"return": {
"type": "boolean"
}
}
],
"staticMethods": [],
"demos": [],
"metadata": {},
"sourceRange": {
"start": {
"line": 64,
"column": 2
},
"end": {
"line": 99,
"column": 8
}
},
"privacy": "public",
"name": "UniFlow.ActionDispatcher",
"attributes": [
{
"name": "state",
"description": "Application state.",
"sourceRange": {
"file": "state-mutator.html",
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 44,
"column": 11
}
},
"metadata": {},
"type": "Object",
"inheritedFrom": "UniFlow.StateMutator"
},
{
"name": "state-path",
"description": "Path to element state in the application state tree.",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {},
"type": "string",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "state-aware",
"description": "",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {},
"type": "boolean",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "application",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {},
"type": "Object",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "action-dispatcher",
"description": "",
"sourceRange": {
"start": {
"line": 68,
"column": 12
},
"end": {
"line": 72,
"column": 13
}
},
"metadata": {},
"type": "boolean"
}
],
"events": [],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": [],
"mixins": [
"UniFlow.StateMutator"
]
},
{
"description": " Whenever element needs to emit an action, this mixin should be applied.\n Action object must always include type property.\n\n ",
"summary": "",
"path": "action-emitter.html",
"properties": [],
"methods": [
{
"name": "emitAction",
"description": "Emits the action described by detail parameter. Detail object must always\ninclude type property. To emit the action we use custom event\nmechanism. Application element listens to the `dispatch-action` event and\ninvokes `dispatchAction` methods for all action dispatchers associated with\nthe application. Make sure your element is attached to DOM tree, otherwise\nevent will never reach your application element. It is a good practice to\nensure that `state` property is initialized (for state-aware elements) before\nemitting any actions (as `state` property is initialized on attach).",
"privacy": "public",
"sourceRange": {
"start": {
"line": 50,
"column": 6
},
"end": {
"line": 62,
"column": 7
}
},
"metadata": {},
"params": [
{
"name": "detail",
"type": "*"
}
]
}
],
"staticMethods": [],
"demos": [],
"metadata": {},
"sourceRange": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 64,
"column": 6
}
},
"privacy": "public",
"name": "UniFlow.ActionEmitter",
"attributes": [],
"events": [
{
"type": "CustomEvent",
"name": "dispatch-action",
"description": "dispatch-action",
"metadata": {}
}
],
"styling": {
"cssVariables": [],
"selectors": []
},
"slots": []
},
{
"description": " Apply this mixin to your main application element. It provides global\n state and functionality to maintain individual elements states. This mixin\n is responsible for notifying all state-aware elements about their state\n changes (provided those elements have `statePath` property defined).\n Only one element in the application is supposed to have this mixin.\n\n ### Example:\n\n #### HTML:\n\n <template>\n\n <!-- action dispatchers in the order of action processing -->\n <action-dispatcher-a state=\"{{state}}\"></action-dispatcher-a>\n <action-dispatcher-b state=\"{{state}}\"></action-dispatcher-b>\n\n <!-- state-aware elements -->\n <some-element state-path=\"state.someElement\"></some-element>\n\n </template>\n\n #### JavaScript:\n class MyApp extends UniFlow.ApplicationState(Polymer.Element) {\n static get is() { return 'my-app'; }\n\n connectedCallback() {\n super.ConnectedCallback();\n\n this.state = {\n someElement: {}\n }\n }\n }\n\n customElements.define(MyApp.is,MyApp);\n\n In the example above, `<some-element>` will receive notification of any changes to the state,\n as if it was declared as follows:\n\n <some-element state=\"[[state]]\"></some-element>\n\n Also, if `<some-element>` has `propertyA`, on element attach this property will be assigned\n the value of `state.someElement.propertyA`, and receive all notification of the property change\n whenever the corresponding data in state tree changes. This essentially translates to following\n declaration:\n\n <some-element state=\"[[state]]\"\n propertyA=\"[[state.someElement.propertyA]]\">\n </some-element>\n\n Note that data binding is one-way in both cases. Although state-aware elements can modify their\n own state, it is considered their private state and no other elements will be notified of those\n changes.\n\n ",
"summary": "",
"path": "application-state.html",
"properties": [
{
"name": "state",
"type": "Object",
"description": "Application state.",
"privacy": "public",
"sourceRange": {
"file": "state-mutator.html",
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 44,
"column": 11
}
},
"metadata": {
"polymer": {
"notify": true
}
},
"inheritedFrom": "UniFlow.StateMutator"
},
{
"name": "statePath",
"type": "string",
"description": "Path to element state in the application state tree.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 81,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "stateAware",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true",
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "application",
"type": "Object",
"description": "Application-level object that allows all state-aware objects access\nto application element. This property is shared among all state-aware\nelements and has element field initialized with reference to application\nelement. Any state-aware element can access application element using\n`getApplication()` method. Also, all state-aware elements\nadd themselves to `application.stateAwareElements` array on attach (and\nremove on detach); this list is used to send notification about\nelement state changes.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 101,
"column": 10
},
"end": {
"line": 107,
"column": 11
}
},
"metadata": {
"polymer": {}
},
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "actionDispatcher",
"type": "boolean",
"description": "",
"privacy": "public",
"sourceRange": {
"file": "action-dispatcher.html",
"start": {
"line": 68,
"column": 12
},
"end": {
"line": 72,
"column": 13
}
},
"metadata": {
"polymer": {}
},
"defaultValue": "true",
"inheritedFrom": "UniFlow.ActionDispatcher"
}
],
"methods": [
{
"name": "connectedCallback",
"description": "Adds this element to the list of state-aware elements in the application.\nSets the value of state property to the state of the application element.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 116,
"column": 6
},
"end": {
"line": 132,
"column": 7
}
},
"metadata": {},
"params": [],
"inheritedFrom": "UniFlow.StateAware"
},
{
"name": "disconnectedCallback",
"description": "Removes this element from the list of state-aware elements in the\napplication.",
"privacy": "public",
"sourceRange": {
"file": "state-aware.html",
"start": {
"line": 138,
"column": 6
},
"end": {