-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp-d-doc.ts
123 lines (90 loc) · 2.6 KB
/
p-d-doc.ts
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
import {PD} from './p-d.js';
import {asAttr} from 'on-to-me/types.d.js';
/**
* @element p-d
*/
export class PDDoc extends PD{
/**
* The event name to monitor for, from previous non-petalian element.
* @attr
*/
on: string | undefined;
/**
* css pattern to match for from downstream siblings.
* @attr
*/
to: string | undefined;
/**
* CSS Selector to use to select single child within the destination element.
* @attr care-of
*
*/
careOf: string | undefined;
/**
* Don't block event propagation.
* @attr
*/
noblock: boolean | undefined;
/**
* Only act on event if target element css-matches the expression specified by this attribute.
* @attr
*/
ifTargetMatches: string | undefined;
/**
* Name of property to set on matching (downstream) siblings.
* @attr
*/
prop: string | undefined;
/**
* Dynamically determined name of property to set on matching (downstream) siblings from event object.
* @attr prop-from-event
*/
propFromEvent: string | undefined;
/**
* Specifies path to JS object from event, that should be passed to downstream siblings. Value of '.' passes entire entire object.
* @attr
*/
val: string | undefined;
/**
* Specifies element to latch on to, and listen for events.
* Searches previous siblings, parent, previous siblings of parent, etc.
* Stops at Shadow DOM boundary.
* @attr
*/
observe: string | undefined;
/**
* Artificially fire event on target element whose name is specified by this attribute.
* @attr fire-event
*/
fireEvent: string | undefined;
initVal: string | undefined;
valFromTarget: string | undefined;
/**
* In some cases, the initVal can only be obtained after initEvent fires
*/
initEvent: string | undefined;
debug!: boolean;
log!: boolean;
async!: boolean;
parseValAs: 'int' | 'float' | 'bool' | 'date' | 'truthy' | 'falsy' | undefined;
/**
* A Boolean indicating that events of this type will be dispatched to the registered listener before being dispatched to any EventTarget beneath it in the DOM tree.
*/
capture!: boolean;
/**
* @private
*/
previousOn: string | undefined;
/**
* @private
*/
lastEvent: Event | undefined;
/**
* @private
*/
lastVal: any;
as: asAttr;
cloneVal: boolean | undefined;
m: number | undefined;
from: string | undefined;
}