@ngrdt/menu 0.0.72 → 0.0.78
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/ngrdt-menu.mjs +1 -9
- package/fesm2022/ngrdt-menu.mjs.map +1 -1
- package/index.d.ts +1 -3
- package/package.json +6 -5
package/fesm2022/ngrdt-menu.mjs
CHANGED
|
@@ -306,7 +306,6 @@ class RdtMenuOverlayComponent {
|
|
|
306
306
|
return this.topLevelMenu.bodyMargin.top;
|
|
307
307
|
}
|
|
308
308
|
getMaxOffsetTop() {
|
|
309
|
-
console.log(this.item().label, this.topLevelMenu.clientSize.height, this._box.height, this.topLevelMenu.bodyMargin.bottom);
|
|
310
309
|
return (this.topLevelMenu.clientSize.height -
|
|
311
310
|
this._box.height -
|
|
312
311
|
this.topLevelMenu.bodyMargin.bottom);
|
|
@@ -1052,7 +1051,6 @@ class RdtMenuBaseComponent {
|
|
|
1052
1051
|
this.measureButtonContainer();
|
|
1053
1052
|
this.measureClientSize();
|
|
1054
1053
|
this.readMargin();
|
|
1055
|
-
console.log('containerRect', this.buttonContainerRect);
|
|
1056
1054
|
}
|
|
1057
1055
|
readMargin() {
|
|
1058
1056
|
const computedStyle = getComputedStyle(this.elRef.nativeElement);
|
|
@@ -1243,7 +1241,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
1243
1241
|
class RdtMenuComponent extends RdtMenuBaseComponent {
|
|
1244
1242
|
buttonClass = inject(RDT_BUTTON_BASE_PROVIDER);
|
|
1245
1243
|
trigger = input.required();
|
|
1246
|
-
dataTestId = input('');
|
|
1247
1244
|
items = input.required();
|
|
1248
1245
|
allParsedItems = computed(() => {
|
|
1249
1246
|
const items = this.items();
|
|
@@ -1276,11 +1273,6 @@ class RdtMenuComponent extends RdtMenuBaseComponent {
|
|
|
1276
1273
|
const trigger = this.trigger();
|
|
1277
1274
|
trigger.tabIndex.set(0);
|
|
1278
1275
|
});
|
|
1279
|
-
triggerDataTestIdEffect = effect(() => {
|
|
1280
|
-
const trigger = this.trigger();
|
|
1281
|
-
const dataTestId = this.dataTestId();
|
|
1282
|
-
trigger.dataTestId.set(dataTestId);
|
|
1283
|
-
});
|
|
1284
1276
|
triggerAriaEffect = effect(() => {
|
|
1285
1277
|
const trigger = this.trigger();
|
|
1286
1278
|
const expandedChild = this.expandedChild();
|
|
@@ -1313,7 +1305,7 @@ class RdtMenuComponent extends RdtMenuBaseComponent {
|
|
|
1313
1305
|
}
|
|
1314
1306
|
}
|
|
1315
1307
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: RdtMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1316
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: RdtMenuComponent, isStandalone: false, selector: "rdt-menu", inputs: { trigger: { classPropertyName: "trigger", publicName: "trigger", isSignal: true, isRequired: true, transformFunction: null },
|
|
1308
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: RdtMenuComponent, isStandalone: false, selector: "rdt-menu", inputs: { trigger: { classPropertyName: "trigger", publicName: "trigger", isSignal: true, isRequired: true, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
1317
1309
|
{
|
|
1318
1310
|
provide: RdtMenuBaseComponent,
|
|
1319
1311
|
useExisting: RdtMenuComponent,
|