@unframework.dev/target-angular 0.0.0-stage → 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,190 @@
1
+ /** The event names `no-output-native` rejects as an output's name. */
2
+ const NATIVE_EVENTS = /* @__PURE__ */ new Set([
3
+ "DOMActivate",
4
+ "DOMContentLoaded",
5
+ "DOMMouseScroll",
6
+ "MozMousePixelScroll",
7
+ "abort",
8
+ "afterprint",
9
+ "afterscriptexecute",
10
+ "animationcancel",
11
+ "animationend",
12
+ "animationiteration",
13
+ "animationstart",
14
+ "appinstalled",
15
+ "auxclick",
16
+ "beforeinput",
17
+ "beforeinstallprompt",
18
+ "beforematch",
19
+ "beforeprint",
20
+ "beforescriptexecute",
21
+ "beforetoggle",
22
+ "beforeunload",
23
+ "beforexrselect",
24
+ "beginEvent",
25
+ "blur",
26
+ "cancel",
27
+ "canplay",
28
+ "canplaythrough",
29
+ "change",
30
+ "click",
31
+ "close",
32
+ "command",
33
+ "compositionend",
34
+ "compositionstart",
35
+ "compositionupdate",
36
+ "contentvisibilityautostatechange",
37
+ "contextlost",
38
+ "contextmenu",
39
+ "contextrestored",
40
+ "copy",
41
+ "cuechange",
42
+ "cut",
43
+ "dblclick",
44
+ "devicemotion",
45
+ "deviceorientation",
46
+ "deviceorientationabsolute",
47
+ "drag",
48
+ "dragend",
49
+ "dragenter",
50
+ "dragexit",
51
+ "dragleave",
52
+ "dragover",
53
+ "dragstart",
54
+ "drop",
55
+ "durationchange",
56
+ "emptied",
57
+ "encrypted",
58
+ "endEvent",
59
+ "ended",
60
+ "enterpictureinpicture",
61
+ "error",
62
+ "focus",
63
+ "focusin",
64
+ "focusout",
65
+ "formdata",
66
+ "freeze",
67
+ "fullscreenchange",
68
+ "fullscreenerror",
69
+ "gamepadconnected",
70
+ "gamepaddisconnected",
71
+ "gesturechange",
72
+ "gestureend",
73
+ "gesturestart",
74
+ "gotpointercapture",
75
+ "hashchange",
76
+ "input",
77
+ "interest",
78
+ "invalid",
79
+ "keydown",
80
+ "keypress",
81
+ "keyup",
82
+ "languagechange",
83
+ "leavepictureinpicture",
84
+ "load",
85
+ "loadeddata",
86
+ "loadedmetadata",
87
+ "loadstart",
88
+ "location",
89
+ "loseinterest",
90
+ "lostpointercapture",
91
+ "message",
92
+ "messageerror",
93
+ "mousedown",
94
+ "mouseenter",
95
+ "mouseleave",
96
+ "mousemove",
97
+ "mouseout",
98
+ "mouseover",
99
+ "mouseup",
100
+ "mousewheel",
101
+ "offline",
102
+ "online",
103
+ "orientationchange",
104
+ "pagehide",
105
+ "pagereveal",
106
+ "pageshow",
107
+ "pageswap",
108
+ "paste",
109
+ "pause",
110
+ "play",
111
+ "playing",
112
+ "pointercancel",
113
+ "pointerdown",
114
+ "pointerenter",
115
+ "pointerleave",
116
+ "pointerlockchange",
117
+ "pointerlockerror",
118
+ "pointermove",
119
+ "pointerout",
120
+ "pointerover",
121
+ "pointerrawupdate",
122
+ "pointerup",
123
+ "popstate",
124
+ "prerenderingchange",
125
+ "progress",
126
+ "promptaction",
127
+ "promptdismiss",
128
+ "ratechange",
129
+ "readystatechange",
130
+ "rejectionhandled",
131
+ "repeatEvent",
132
+ "reset",
133
+ "resize",
134
+ "resume",
135
+ "scroll",
136
+ "scrollend",
137
+ "scrollsnapchange",
138
+ "scrollsnapchanging",
139
+ "search",
140
+ "securitypolicyviolation",
141
+ "seeked",
142
+ "seeking",
143
+ "select",
144
+ "selectionchange",
145
+ "selectstart",
146
+ "slotchange",
147
+ "stalled",
148
+ "storage",
149
+ "submit",
150
+ "suspend",
151
+ "timeupdate",
152
+ "toggle",
153
+ "touchcancel",
154
+ "touchend",
155
+ "touchmove",
156
+ "touchstart",
157
+ "transitioncancel",
158
+ "transitionend",
159
+ "transitionrun",
160
+ "transitionstart",
161
+ "unhandledrejection",
162
+ "unload",
163
+ "validationstatuschange",
164
+ "visibilitychange",
165
+ "volumechange",
166
+ "vrdisplayactivate",
167
+ "vrdisplayconnect",
168
+ "vrdisplaydeactivate",
169
+ "vrdisplaydisconnect",
170
+ "vrdisplaypresentchange",
171
+ "waiting",
172
+ "waitingforkey",
173
+ "webglcontextcreationerror",
174
+ "webglcontextlost",
175
+ "webglcontextrestored",
176
+ "webkitmouseforcechanged",
177
+ "webkitmouseforcedown",
178
+ "webkitmouseforceup",
179
+ "webkitmouseforcewillbegin",
180
+ "wheel"
181
+ ]);
182
+ /**
183
+ * The output an event is written as (ADR-0056): its own name, or for a native DOM event's name
184
+ * `uf` and the name in PascalCase (`change` → `ufChange`), which the native event bubbling out
185
+ * of the component through its host cannot reach.
186
+ */
187
+ function outputName(event) {
188
+ return NATIVE_EVENTS.has(event) ? `uf${event.charAt(0).toUpperCase()}${event.slice(1)}` : event;
189
+ }
190
+ export { NATIVE_EVENTS, outputName };