forty-cdk 0.45.0 → 0.45.1
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.
- package/fesm2022/forty-cdk-avatar.mjs +6 -7
- package/fesm2022/forty-cdk-avatar.mjs.map +1 -1
- package/fesm2022/forty-cdk-combobox.mjs +6 -7
- package/fesm2022/forty-cdk-combobox.mjs.map +1 -1
- package/fesm2022/forty-cdk-core-anchored.mjs +9 -7
- package/fesm2022/forty-cdk-core-anchored.mjs.map +1 -1
- package/fesm2022/forty-cdk-core.mjs +33 -9
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-select.mjs +6 -7
- package/fesm2022/forty-cdk-select.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forty-cdk-core-anchored.d.ts +21 -4
- package/types/forty-cdk-core.d.ts +6 -25
|
@@ -9,11 +9,6 @@ const SELECT_TRIGGERS = new InjectionToken("SELECT_TRIGGERS", {
|
|
|
9
9
|
providedIn: "root",
|
|
10
10
|
factory: () => new RootedRegistry()
|
|
11
11
|
});
|
|
12
|
-
const ROOT_ASSERTION = {
|
|
13
|
-
entryPoint: "select",
|
|
14
|
-
token: "FOR_SELECT_CONTEXT",
|
|
15
|
-
root: "[forSelect]"
|
|
16
|
-
};
|
|
17
12
|
function injectSelectContext(piece) {
|
|
18
13
|
const ctx = inject(FOR_SELECT_CONTEXT, { optional: true });
|
|
19
14
|
if (!ctx) throw orphanContextError({
|
|
@@ -24,7 +19,9 @@ function injectSelectContext(piece) {
|
|
|
24
19
|
});
|
|
25
20
|
const widened = ctx;
|
|
26
21
|
assertRootContext({
|
|
27
|
-
|
|
22
|
+
entryPoint: "select",
|
|
23
|
+
token: "FOR_SELECT_CONTEXT",
|
|
24
|
+
root: "[forSelect]",
|
|
28
25
|
piece,
|
|
29
26
|
probe: () => widened.overlay.setInitialFocus
|
|
30
27
|
});
|
|
@@ -49,7 +46,9 @@ function injectSelectTriggerContext(explicitRoot) {
|
|
|
49
46
|
});
|
|
50
47
|
const widened = resolved;
|
|
51
48
|
assertRootContext({
|
|
52
|
-
|
|
49
|
+
entryPoint: "select",
|
|
50
|
+
token: "FOR_SELECT_CONTEXT",
|
|
51
|
+
root: "[forSelect]",
|
|
53
52
|
piece: "ForSelectTrigger",
|
|
54
53
|
probe: () => widened.overlay.setInitialFocus
|
|
55
54
|
});
|