aloha-vue 1.2.56 → 1.2.58

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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.56",
17
+ "version": "1.2.58",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -356,129 +356,127 @@ export default {
356
356
  };
357
357
  },
358
358
  render() {
359
- return [
360
- h("nav", {
361
- ref: "menuRef",
362
- id: this.menuId,
363
- class: [
364
- "a_menu_2",
365
- {
366
- a_menu_2_sub_open: this.isSubMenuOpen,
367
- a_menu_2_open: this.isMenuOpen,
368
- a_menu_2_close: !this.isMenuOpen,
369
- a_menu_2_mobile: this.isMobileWidth,
370
- },
371
- ],
372
- ...this.attributesMenuClick,
359
+ return h("nav", {
360
+ ref: "menuRef",
361
+ id: this.menuId,
362
+ class: [
363
+ "a_menu_2",
364
+ {
365
+ a_menu_2_sub_open: this.isSubMenuOpen,
366
+ a_menu_2_open: this.isMenuOpen,
367
+ a_menu_2_close: !this.isMenuOpen,
368
+ a_menu_2_mobile: this.isMobileWidth,
369
+ },
370
+ ],
371
+ ...this.attributesMenuClick,
372
+ }, [
373
+ h("div", {
374
+ class: "a_menu_2__navbar_top",
375
+ }, [
376
+ h(AMenuButtonToggle, {
377
+ buttonToggleProps: this.buttonToggleProps,
378
+ canChangeBodyClass: this.canChangeBodyClass,
379
+ class: this.buttonToggleClass,
380
+ insideMenu: true,
381
+ menuId: this.menuId,
382
+ }),
383
+ this.$slots.menuSearch && this.$slots.menuSearch(),
384
+ this.hasSearch && h(AInput, {
385
+ id: this.searchInputId,
386
+ class: "a_menu_2__navbar_top__search",
387
+ modelValue: this.modelSearch,
388
+ label: "_A_MENU_2_SEARCH_",
389
+ "onUpdate:modelValue": this.updateModelSearch,
390
+ }),
391
+ ]),
392
+ h("div", {
393
+ class: "a_menu_2__panels__main",
394
+ style: this.styleSearchPanelMain,
373
395
  }, [
374
396
  h("div", {
375
- class: "a_menu_2__navbar_top",
397
+ class: "a_menu_2__navbar_top_sub",
376
398
  }, [
377
- h(AMenuButtonToggle, {
378
- buttonToggleProps: this.buttonToggleProps,
379
- canChangeBodyClass: this.canChangeBodyClass,
380
- class: this.buttonToggleClass,
381
- insideMenu: true,
382
- menuId: this.menuId,
399
+ h(ATranslation, {
400
+ class: "a_menu_2__navbar_top_sub__text",
401
+ tag: "strong",
402
+ text: "_A_MENU_2_MAIN_MENU_",
383
403
  }),
384
- this.$slots.menuSearch && this.$slots.menuSearch(),
385
- this.hasSearch && h(AInput, {
386
- id: this.searchInputId,
387
- class: "a_menu_2__navbar_top__search",
388
- modelValue: this.modelSearch,
389
- label: "_A_MENU_2_SEARCH_",
390
- "onUpdate:modelValue": this.updateModelSearch,
404
+ this.hasSearch && h(AButton, {
405
+ role: "button",
406
+ tabindex: 0,
407
+ tag: "a",
408
+ class: "a_menu_2__navbar_top_sub__search a_menu_2__link a_menu_2__link_btn",
409
+ iconLeft: "Search",
410
+ iconClass: "a_menu_2__link__icon",
411
+ title: "_A_MENU_2_OPEN_SEARCH_",
412
+ textScreenReader: "_A_MENU_2_OPEN_SEARCH_",
413
+ onClick: this.clickOnSearchBtn,
414
+ onKeydown: this.keydownOnSearchBtn,
391
415
  }),
392
416
  ]),
417
+ h(AVerticalScroll, {
418
+ class: {
419
+ a_menu_2__vertical_scroll_hidden: this.isLeastOnePanelOpenAndMenuClosed
420
+ },
421
+ disabled: this.isMenuOpen || this.isLeastOnePanelOpenAndMenuClosed,
422
+ }, () => [
423
+ h(AMenuPanel, {
424
+ attributesBlockerClick: this.attributesBlockerClick,
425
+ dataKeyById: this.dataKeyById,
426
+ dataProParentChildren: this.dataProParent.children,
427
+ isBreadcrumbsTruncated: this.isBreadcrumbsTruncated,
428
+ isPanelMain: true,
429
+ isSearchActive: this.isSearchActive,
430
+ keyGroup: this.keyGroup,
431
+ keyIcon: this.keyIcon,
432
+ menuId: this.menuId,
433
+ paneIndex: "00",
434
+ panelItems: this.dataProParent.main,
435
+ panelParentsOpen: this.panelParentsOpen,
436
+ }, this.$slots),
437
+ ]),
393
438
  h("div", {
394
- class: "a_menu_2__panels__main",
395
- style: this.styleSearchPanelMain,
439
+ class: "a_menu_2__panels",
396
440
  }, [
397
- h("div", {
398
- class: "a_menu_2__navbar_top_sub",
399
- }, [
400
- h(ATranslation, {
401
- class: "a_menu_2__navbar_top_sub__text",
402
- tag: "strong",
403
- text: "_A_MENU_2_MAIN_MENU_",
404
- }),
405
- this.hasSearch && h(AButton, {
406
- role: "button",
407
- tabindex: 0,
408
- tag: "a",
409
- class: "a_menu_2__navbar_top_sub__search a_menu_2__link a_menu_2__link_btn",
410
- iconLeft: "Search",
411
- iconClass: "a_menu_2__link__icon",
412
- title: "_A_MENU_2_OPEN_SEARCH_",
413
- textScreenReader: "_A_MENU_2_OPEN_SEARCH_",
414
- onClick: this.clickOnSearchBtn,
415
- onKeydown: this.keydownOnSearchBtn,
416
- }),
417
- ]),
418
- h(AVerticalScroll, {
419
- class: {
420
- a_menu_2__vertical_scroll_hidden: this.isLeastOnePanelOpenAndMenuClosed
421
- },
422
- disabled: this.isMenuOpen || this.isLeastOnePanelOpenAndMenuClosed,
423
- }, () => [
424
- h(AMenuPanel, {
425
- attributesBlockerClick: this.attributesBlockerClick,
441
+ Object.keys(this.dataProParent.children).map((key, paneIndex) => {
442
+ return h(AMenuPanel, {
443
+ key,
444
+ attributesBlockerClick: {},
445
+ breadcrumbsLinkClass: this.breadcrumbsLinkClass,
446
+ breadcrumbsTruncatedDropdownProps: this.breadcrumbsTruncatedDropdownProps,
426
447
  dataKeyById: this.dataKeyById,
427
448
  dataProParentChildren: this.dataProParent.children,
428
449
  isBreadcrumbsTruncated: this.isBreadcrumbsTruncated,
429
- isPanelMain: true,
430
450
  isSearchActive: this.isSearchActive,
431
451
  keyGroup: this.keyGroup,
432
452
  keyIcon: this.keyIcon,
433
453
  menuId: this.menuId,
434
- paneIndex: "00",
435
- panelItems: this.dataProParent.main,
454
+ paneIndex,
455
+ panelItems: this.dataProParent.children[key],
436
456
  panelParentsOpen: this.panelParentsOpen,
437
- }, this.$slots),
438
- ]),
439
- h("div", {
440
- class: "a_menu_2__panels",
441
- }, [
442
- Object.keys(this.dataProParent.children).map((key, paneIndex) => {
443
- return h(AMenuPanel, {
444
- key,
445
- attributesBlockerClick: {},
446
- breadcrumbsLinkClass: this.breadcrumbsLinkClass,
447
- breadcrumbsTruncatedDropdownProps: this.breadcrumbsTruncatedDropdownProps,
448
- dataKeyById: this.dataKeyById,
449
- dataProParentChildren: this.dataProParent.children,
450
- isBreadcrumbsTruncated: this.isBreadcrumbsTruncated,
451
- isSearchActive: this.isSearchActive,
452
- keyGroup: this.keyGroup,
453
- keyIcon: this.keyIcon,
454
- menuId: this.menuId,
455
- paneIndex,
456
- panelItems: this.dataProParent.children[key],
457
- panelParentsOpen: this.panelParentsOpen,
458
- parentId: key,
459
- }, this.$slots);
460
- }),
461
- ]),
462
- ]),
463
- h(AMenuSearchPanel, {
464
- breadcrumbsLinkClass: this.breadcrumbsLinkClass,
465
- breadcrumbsTruncatedDropdownProps: this.breadcrumbsTruncatedDropdownProps,
466
- dataProParentChildren: this.dataProParent.children,
467
- isSearchActive: this.isSearchActive,
468
- isSearchBreadcrumbsTruncated: this.isSearchBreadcrumbsTruncated,
469
- itemsWithSearch: this.itemsWithSearch,
470
- menuId: this.menuId,
471
- modelSearch: this.modelSearch,
472
- }, this.$slots),
473
-
474
- this.isBackdrop && h(Teleport, {
475
- to: "body",
476
- }, [
477
- h("div", {
478
- class: "a_menu_2__backdrop a_backdrop a_backdrop_fade",
457
+ parentId: key,
458
+ }, this.$slots);
479
459
  }),
480
460
  ]),
481
461
  ]),
482
- ];
462
+ h(AMenuSearchPanel, {
463
+ breadcrumbsLinkClass: this.breadcrumbsLinkClass,
464
+ breadcrumbsTruncatedDropdownProps: this.breadcrumbsTruncatedDropdownProps,
465
+ dataProParentChildren: this.dataProParent.children,
466
+ isSearchActive: this.isSearchActive,
467
+ isSearchBreadcrumbsTruncated: this.isSearchBreadcrumbsTruncated,
468
+ itemsWithSearch: this.itemsWithSearch,
469
+ menuId: this.menuId,
470
+ modelSearch: this.modelSearch,
471
+ }, this.$slots),
472
+
473
+ this.isBackdrop && h(Teleport, {
474
+ to: "body",
475
+ }, [
476
+ h("div", {
477
+ class: "a_menu_2__backdrop a_backdrop a_backdrop_fade",
478
+ }),
479
+ ]),
480
+ ]);
483
481
  },
484
482
  };
@@ -346,7 +346,7 @@
346
346
  position: relative;
347
347
  display: flex;
348
348
  flex-direction: column;
349
- height: calc(100% - var(--a_menu_2_navbar_top));
349
+ height: calc(100% - var(--a_menu_2_navbar_top_height));
350
350
  .a_vertical_scroll {
351
351
  height: calc(100% - var(--a_menu_2_breadcrumb_min_height) + 20px);
352
352
  margin-top: -20px;