Skip to content

Commit 1c92265

Browse files
committed
Additional ng-get tests
1 parent f36f9f8 commit 1c92265

File tree

13 files changed

+216
-49
lines changed

13 files changed

+216
-49
lines changed

@types/interface.d.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { Attributes } from "./core/compile/attributes.js";
22
import { Scope } from "./core/scope/scope.js";
33
/**
4-
* A JavaScript expression represented as a string.
4+
* A JavaScript expression represented as a string, typically used in interpolation bindings.
5+
*
6+
* Example:
7+
* ```html
8+
* <span title="{{ attrBinding }}">{{ textBinding }}</span>
9+
* ```
510
*
6-
* Often used in interpolation bindings such as:
7-
* `<span title="{{ attrBinding }}">{{ textBinding }}</span>`.
8-
* Evaluated in the context of a {@link import('./core/scope/scope.js').Scope `scope`} object.
911
*/
1012
export type Expression = string;
1113
/**
@@ -300,3 +302,13 @@ export interface NgModelController {
300302
/** Current value shown in the view */
301303
$viewValue: any;
302304
}
305+
/**
306+
* Possible values for `data-swap` attribute
307+
*/
308+
export type SwapInsertPosition =
309+
| InsertPosition
310+
| "textContent"
311+
| "innerHTML"
312+
| "outerHTML"
313+
| "delete"
314+
| "none";

@types/shared/dom.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,14 @@ export function getEventNameForElement(
253253
* Handles DOM manipulation based on a swap strategy and server-rendered HTML.
254254
*
255255
* @param {string} html - The HTML string returned from the server.
256-
* @param {string} swap - The swap mode (e.g., "innerHTML", "textContent", "beforebegin").
256+
* @param {import("../interface.ts").SwapInsertPosition} swap
257257
* @param {Element} target - The target DOM element to apply the swap to.
258258
* @param {import('../core/scope/scope.js').Scope} scope
259259
* @param {import('../core/compile/compile.js').CompileFn} $compile
260260
*/
261261
export function handleSwapResponse(
262262
html: string,
263-
swap: string,
263+
swap: import("../interface.ts").SwapInsertPosition,
264264
target: Element,
265265
scope: import("../core/scope/scope.js").Scope,
266266
$compile: import("../core/compile/compile.js").CompileFn,

docs/static/typedoc/assets/highlight.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
--dark-hl-2: #569CD6;
88
--light-hl-3: #001080;
99
--dark-hl-3: #9CDCFE;
10+
--light-hl-4: #800000;
11+
--dark-hl-4: #808080;
12+
--light-hl-5: #800000;
13+
--dark-hl-5: #569CD6;
14+
--light-hl-6: #E50000;
15+
--dark-hl-6: #9CDCFE;
16+
--light-hl-7: #0000FF;
17+
--dark-hl-7: #CE9178;
1018
--light-code-background: #FFFFFF;
1119
--dark-code-background: #1E1E1E;
1220
}
@@ -16,6 +24,10 @@
1624
--hl-1: var(--light-hl-1);
1725
--hl-2: var(--light-hl-2);
1826
--hl-3: var(--light-hl-3);
27+
--hl-4: var(--light-hl-4);
28+
--hl-5: var(--light-hl-5);
29+
--hl-6: var(--light-hl-6);
30+
--hl-7: var(--light-hl-7);
1931
--code-background: var(--light-code-background);
2032
} }
2133

@@ -24,6 +36,10 @@
2436
--hl-1: var(--dark-hl-1);
2537
--hl-2: var(--dark-hl-2);
2638
--hl-3: var(--dark-hl-3);
39+
--hl-4: var(--dark-hl-4);
40+
--hl-5: var(--dark-hl-5);
41+
--hl-6: var(--dark-hl-6);
42+
--hl-7: var(--dark-hl-7);
2743
--code-background: var(--dark-code-background);
2844
} }
2945

@@ -32,6 +48,10 @@
3248
--hl-1: var(--light-hl-1);
3349
--hl-2: var(--light-hl-2);
3450
--hl-3: var(--light-hl-3);
51+
--hl-4: var(--light-hl-4);
52+
--hl-5: var(--light-hl-5);
53+
--hl-6: var(--light-hl-6);
54+
--hl-7: var(--light-hl-7);
3555
--code-background: var(--light-code-background);
3656
}
3757

@@ -40,11 +60,19 @@
4060
--hl-1: var(--dark-hl-1);
4161
--hl-2: var(--dark-hl-2);
4262
--hl-3: var(--dark-hl-3);
63+
--hl-4: var(--dark-hl-4);
64+
--hl-5: var(--dark-hl-5);
65+
--hl-6: var(--dark-hl-6);
66+
--hl-7: var(--dark-hl-7);
4367
--code-background: var(--dark-code-background);
4468
}
4569

4670
.hl-0 { color: var(--hl-0); }
4771
.hl-1 { color: var(--hl-1); }
4872
.hl-2 { color: var(--hl-2); }
4973
.hl-3 { color: var(--hl-3); }
74+
.hl-4 { color: var(--hl-4); }
75+
.hl-5 { color: var(--hl-5); }
76+
.hl-6 { color: var(--hl-6); }
77+
.hl-7 { color: var(--hl-7); }
5078
pre, code { background: var(--code-background); }

docs/static/typedoc/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/typedoc/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/typedoc/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)