aloha-vue 1.2.55 → 1.2.57
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 +1 -1
- package/src/AMenu2/AMenu2.js +103 -105
- package/src/styles/components/AMenu2.scss +11 -3
package/package.json
CHANGED
package/src/AMenu2/AMenu2.js
CHANGED
|
@@ -356,129 +356,127 @@ export default {
|
|
|
356
356
|
};
|
|
357
357
|
},
|
|
358
358
|
render() {
|
|
359
|
-
return
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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: "
|
|
397
|
+
class: "a_menu_2__navbar_top_sub",
|
|
376
398
|
}, [
|
|
377
|
-
h(
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
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: "
|
|
395
|
-
style: this.styleSearchPanelMain,
|
|
439
|
+
class: "a_menu_2__panels",
|
|
396
440
|
}, [
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
|
435
|
-
panelItems: this.dataProParent.
|
|
454
|
+
paneIndex,
|
|
455
|
+
panelItems: this.dataProParent.children[key],
|
|
436
456
|
panelParentsOpen: this.panelParentsOpen,
|
|
437
|
-
|
|
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
|
};
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
.a_menu_2 {
|
|
15
15
|
--a_menu_2_width: var(--a_menu_2_width_expanded);
|
|
16
16
|
--a_menu_2_top: 0;
|
|
17
|
-
--
|
|
17
|
+
--a_menu_2_navbar_top_height: 65px;
|
|
18
|
+
--a_menu_2_navbar_top_padding: .5rem;
|
|
19
|
+
--a_menu_2_navbar_top_margin_bottom: .5rem;
|
|
18
20
|
--a_menu_2_background: var(--a_color_white);
|
|
19
21
|
--a_menu_2_border_color: var(--a_color_gray_300);
|
|
20
22
|
--a_menu_2_panel_child_offset: 100%;
|
|
@@ -23,6 +25,8 @@
|
|
|
23
25
|
--a_menu_2_panel_color: var(--a_color_gray_600);
|
|
24
26
|
--a_menu_2_link_color: var(--a_color_gray_900);
|
|
25
27
|
--a_menu_2_listitem_padding: .3rem;
|
|
28
|
+
--a_menu_2_listitem_panel_secondary_padding_x: .6rem;
|
|
29
|
+
--a_menu_2_listitem_panel_secondary_padding_y: .3rem;
|
|
26
30
|
--a_menu_2_link_padding_x: .7rem;
|
|
27
31
|
--a_menu_2_link_padding_y: .7rem;
|
|
28
32
|
--a_menu_2_link_selected_bg: var(--a_color_gray_200);
|
|
@@ -202,8 +206,9 @@
|
|
|
202
206
|
.a_menu_2__navbar_top {
|
|
203
207
|
flex-shrink: 0;
|
|
204
208
|
display: flex;
|
|
205
|
-
padding:
|
|
206
|
-
height: var(--
|
|
209
|
+
padding: var(--a_menu_2_navbar_top_padding);
|
|
210
|
+
height: var(--a_menu_2_navbar_top_height);
|
|
211
|
+
margin-bottom: var(--a_menu_2_navbar_top_margin_bottom);
|
|
207
212
|
}
|
|
208
213
|
// search
|
|
209
214
|
.a_menu_2__panel_search {
|
|
@@ -406,6 +411,9 @@
|
|
|
406
411
|
border-top: var(--a_menu_2_submenu_border_width) solid var(--a_menu_2_submenu_open_bg);
|
|
407
412
|
border-top-left-radius: var(--a_menu_2_submenu_border_radius);
|
|
408
413
|
}
|
|
414
|
+
.a_menu_2__listitem {
|
|
415
|
+
padding: var(--a_menu_2_listitem_panel_secondary_padding_y) var(--a_menu_2_listitem_panel_secondary_padding_x);
|
|
416
|
+
}
|
|
409
417
|
}
|
|
410
418
|
.a_menu_2_sub_open,
|
|
411
419
|
.a_menu_2_close {
|