forty-cdk 0.45.1 → 0.46.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.
- package/fesm2022/forty-cdk-core-anchored.mjs +3 -3
- package/fesm2022/forty-cdk-core-anchored.mjs.map +1 -1
- package/fesm2022/forty-cdk-core-overlay.mjs +60 -17
- package/fesm2022/forty-cdk-core-overlay.mjs.map +1 -1
- package/fesm2022/forty-cdk-core.mjs +66 -4
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-drag-drop.mjs +5 -4
- package/fesm2022/forty-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/forty-cdk-listbox.mjs +73 -22
- package/fesm2022/forty-cdk-listbox.mjs.map +1 -1
- package/fesm2022/forty-cdk-menubar.mjs +8 -6
- package/fesm2022/forty-cdk-menubar.mjs.map +1 -1
- package/fesm2022/forty-cdk-navigation-menu.mjs +18 -28
- package/fesm2022/forty-cdk-navigation-menu.mjs.map +1 -1
- package/fesm2022/forty-cdk-radio-group.mjs +7 -9
- package/fesm2022/forty-cdk-radio-group.mjs.map +1 -1
- package/fesm2022/forty-cdk-slider.mjs +3 -3
- package/fesm2022/forty-cdk-slider.mjs.map +1 -1
- package/fesm2022/forty-cdk-table.mjs +19 -15
- package/fesm2022/forty-cdk-table.mjs.map +1 -1
- package/fesm2022/forty-cdk-tabs.mjs +15 -20
- package/fesm2022/forty-cdk-tabs.mjs.map +1 -1
- package/fesm2022/forty-cdk-toggle.mjs +6 -10
- package/fesm2022/forty-cdk-toggle.mjs.map +1 -1
- package/fesm2022/forty-cdk-tree.mjs +35 -11
- package/fesm2022/forty-cdk-tree.mjs.map +1 -1
- package/listbox/README.md +22 -0
- package/package.json +1 -1
- package/types/forty-cdk-core-overlay.d.ts +33 -4
- package/types/forty-cdk-core.d.ts +42 -0
- package/types/forty-cdk-listbox.d.ts +19 -1
- package/types/forty-cdk-tabs.d.ts +4 -3
|
@@ -4,7 +4,7 @@ import { Collection, FormUiControlBase, IdGenerator, RootedRegistry, accessibleT
|
|
|
4
4
|
import { arrow, autoUpdate, computePosition, flip, hide, offset, shift, size } from "@floating-ui/dom";
|
|
5
5
|
import { CssVarNamespacer } from "@angular/platform-browser";
|
|
6
6
|
import { isPlatformBrowser } from "@angular/common";
|
|
7
|
-
import {
|
|
7
|
+
import { ModalActivationOrder, ModalPeerRegistry, buildOutsideVetoOptions, injectDismissibleLayer, outsideVetoChannels } from "forty-cdk/core-overlay";
|
|
8
8
|
function injectFloatingCustomProperties() {
|
|
9
9
|
const namespacer = inject(CssVarNamespacer);
|
|
10
10
|
return {
|
|
@@ -1303,7 +1303,7 @@ var OverlayController = class {
|
|
|
1303
1303
|
};
|
|
1304
1304
|
function injectOverlayShell(config) {
|
|
1305
1305
|
const el = inject(ElementRef).nativeElement;
|
|
1306
|
-
const
|
|
1306
|
+
const peerRegistry = inject(ModalPeerRegistry);
|
|
1307
1307
|
const order = inject(ModalActivationOrder);
|
|
1308
1308
|
const dismissCfg = config.dismiss;
|
|
1309
1309
|
const layer = dismissCfg !== void 0 ? injectDismissibleLayer() : null;
|
|
@@ -1324,7 +1324,7 @@ function injectOverlayShell(config) {
|
|
|
1324
1324
|
});
|
|
1325
1325
|
});
|
|
1326
1326
|
const activate = (anchor) => {
|
|
1327
|
-
if (anchor !== null) releasePeer =
|
|
1327
|
+
if (anchor !== null) releasePeer = peerRegistry.registerPeer(el, [anchor]);
|
|
1328
1328
|
if (layer && dismissCfg) {
|
|
1329
1329
|
const requestClose = dismissCfg.requestClose;
|
|
1330
1330
|
const options = {
|