forty-cdk 0.44.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/accordion/README.md +16 -3
- package/combobox/README.md +15 -4
- package/disclosure/README.md +15 -3
- package/fesm2022/forty-cdk-accordion.mjs +64 -17
- package/fesm2022/forty-cdk-accordion.mjs.map +1 -1
- package/fesm2022/forty-cdk-avatar.mjs +6 -7
- package/fesm2022/forty-cdk-avatar.mjs.map +1 -1
- package/fesm2022/forty-cdk-combobox.mjs +8 -9
- 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 +72 -15
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-defaults.mjs.map +1 -1
- package/fesm2022/forty-cdk-disclosure.mjs +69 -15
- package/fesm2022/forty-cdk-disclosure.mjs.map +1 -1
- package/fesm2022/forty-cdk-select.mjs +6 -7
- package/fesm2022/forty-cdk-select.mjs.map +1 -1
- package/fesm2022/forty-cdk-table.mjs +45 -1
- package/fesm2022/forty-cdk-table.mjs.map +1 -1
- package/package.json +1 -1
- package/radio-group/README.md +2 -2
- package/table/README.md +2 -0
- package/toggle/README.md +2 -2
- package/types/forty-cdk-accordion.d.ts +27 -4
- package/types/forty-cdk-combobox.d.ts +6 -6
- package/types/forty-cdk-core-anchored.d.ts +21 -4
- package/types/forty-cdk-core.d.ts +22 -26
- package/types/forty-cdk-defaults.d.ts +4 -3
- package/types/forty-cdk-disclosure.d.ts +37 -4
|
@@ -82,11 +82,6 @@ const COMBOBOX_TRIGGERS = new InjectionToken("COMBOBOX_TRIGGERS", {
|
|
|
82
82
|
providedIn: "root",
|
|
83
83
|
factory: () => new RootedRegistry()
|
|
84
84
|
});
|
|
85
|
-
const ROOT_ASSERTION = {
|
|
86
|
-
entryPoint: "combobox",
|
|
87
|
-
token: "FOR_COMBOBOX_CONTEXT",
|
|
88
|
-
root: "[forCombobox]"
|
|
89
|
-
};
|
|
90
85
|
function injectComboboxContext(piece) {
|
|
91
86
|
const ctx = inject(FOR_COMBOBOX_CONTEXT, { optional: true });
|
|
92
87
|
if (!ctx) throw orphanContextError({
|
|
@@ -97,7 +92,9 @@ function injectComboboxContext(piece) {
|
|
|
97
92
|
});
|
|
98
93
|
const widened = ctx;
|
|
99
94
|
assertRootContext({
|
|
100
|
-
|
|
95
|
+
entryPoint: "combobox",
|
|
96
|
+
token: "FOR_COMBOBOX_CONTEXT",
|
|
97
|
+
root: "[forCombobox]",
|
|
101
98
|
piece,
|
|
102
99
|
probe: () => widened.registerInput
|
|
103
100
|
});
|
|
@@ -122,7 +119,9 @@ function injectComboboxTriggerContext(explicitRoot) {
|
|
|
122
119
|
});
|
|
123
120
|
const widened = resolved;
|
|
124
121
|
assertRootContext({
|
|
125
|
-
|
|
122
|
+
entryPoint: "combobox",
|
|
123
|
+
token: "FOR_COMBOBOX_CONTEXT",
|
|
124
|
+
root: "[forCombobox]",
|
|
126
125
|
piece: "ForComboboxTrigger",
|
|
127
126
|
probe: () => widened.registerInput
|
|
128
127
|
});
|
|
@@ -627,8 +626,8 @@ var ForCombobox = class ForCombobox extends AnchoredFormValueControlBase {
|
|
|
627
626
|
this.#syncInputValue("");
|
|
628
627
|
return;
|
|
629
628
|
}
|
|
630
|
-
if (this.restoreQueryOnClose() &&
|
|
631
|
-
const label = this.selected()[0]?.label ?? "";
|
|
629
|
+
if (this.restoreQueryOnClose() && reason !== "select") {
|
|
630
|
+
const label = this.multiple() ? "" : this.selected()[0]?.label ?? "";
|
|
632
631
|
this.query.set(label);
|
|
633
632
|
this.#syncInputValue(label);
|
|
634
633
|
}
|