@frollo/frollo-web-ui 8.5.4 → 9.0.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/cjs/index.js +29797 -28753
- package/esm/{_rollupPluginBabelHelpers-DpC_oIQV.js → _rollupPluginBabelHelpers-DODWUb5N.js} +307 -345
- package/esm/fw-accordion.js +59 -56
- package/esm/fw-alert.js +68 -0
- package/esm/fw-bar-chart.js +4 -4
- package/esm/fw-button-CnQvA7oM.js +296 -0
- package/esm/fw-button.js +2 -4
- package/esm/{fw-card-bsYbpPmW.js → fw-card-D45R4kN-.js} +33 -9
- package/esm/fw-card.js +3 -1
- package/esm/fw-checkbox.js +39 -20
- package/esm/fw-date-picker.js +110 -78
- package/esm/fw-drawer.js +119 -83
- package/esm/{fw-dropdown-CbgOvgOt.js → fw-dropdown-58wyuzsW.js} +80 -61
- package/esm/fw-dropdown.js +5 -5
- package/esm/fw-icons.js +34 -0
- package/esm/{fw-image-Dl96Dc27.js → fw-image-D-OHafdw.js} +30 -13
- package/esm/fw-image.js +4 -4
- package/esm/{fw-input-XeI-IKly.js → fw-input-C2-cZ-BY.js} +65 -43
- package/esm/fw-input.js +2 -2
- package/esm/fw-loading-bar-DecYSBC_.js +45 -0
- package/esm/fw-loading.js +34 -15
- package/esm/fw-media-picker.js +43 -31
- package/esm/fw-modal.js +102 -48
- package/esm/fw-navigation-menu.js +180 -52
- package/esm/fw-popover-B4bsfuxm.js +620 -0
- package/esm/fw-popover.js +6 -293
- package/esm/fw-progress-bar.js +3 -2
- package/esm/fw-provider-list.js +58 -34
- package/esm/fw-sidebar-menu.js +22 -13
- package/esm/fw-slider.js +4 -4
- package/esm/fw-switch.js +147 -0
- package/esm/{fw-table-row-Db7951fr.js → fw-table-row-C61Bi8KB.js} +57 -55
- package/esm/fw-table.js +8 -7
- package/esm/fw-tabs.js +7 -7
- package/esm/{fw-tag-V0jMl-It.js → fw-tag-FWH6KttB.js} +37 -26
- package/esm/fw-tag.js +4 -6
- package/esm/fw-toast.js +14 -15
- package/esm/fw-transactions-card.js +8 -8
- package/esm/get-root-colours-DCjlYelc.js +62 -0
- package/esm/{index-CzZMBMV_.js → index-BsEH8YYr.js} +433 -130
- package/esm/index.js +76 -68
- package/esm/{uniqueId-DK6xzFd8.js → uniqueId-DZdGzBh8.js} +1 -1
- package/frollo-web-ui.esm.js +30139 -29045
- package/icons/arrow-connect.svg +3 -0
- package/icons/arrow-left.svg +3 -0
- package/icons/arrow-out-square.svg +3 -0
- package/icons/arrow-right.svg +3 -0
- package/icons/circle-exclamation.svg +5 -0
- package/icons/clock.svg +10 -0
- package/icons/default-provider.svg +5 -0
- package/icons/desktop.svg +8 -0
- package/icons/error.svg +3 -0
- package/icons/folder-arrow-down.svg +3 -0
- package/icons/index.ts +35 -3
- package/icons/loading.svg +0 -1
- package/icons/manual-account.svg +3 -0
- package/icons/mobile.svg +3 -0
- package/icons/paper-plane.svg +3 -0
- package/icons/pending.svg +10 -0
- package/icons/success-hill.svg +5 -0
- package/icons/user-plus.svg +3 -0
- package/index.d.ts +807 -571
- package/package.json +23 -29
- package/styles/tailwind.css +52 -0
- package/styles/typography.scss +24 -7
- package/styles/web-components.scss +2 -2
- package/tailwind.config.js +128 -22
- package/types/components/fw-accordion/fw-accordion.vue.d.ts +20 -20
- package/types/components/fw-alert/fw-alert.vue.d.ts +43 -0
- package/types/components/fw-alert/index.d.ts +2 -0
- package/types/components/fw-alert/index.types.d.ts +4 -0
- package/types/components/fw-bar-chart/fw-bar-chart.vue.d.ts +8 -8
- package/types/components/fw-button/fw-button.vue.d.ts +15 -17
- package/types/components/fw-button/index.d.ts +2 -0
- package/types/components/fw-button/index.types.d.ts +1 -3
- package/types/components/fw-card/fw-card.vue.d.ts +3 -2
- package/types/components/fw-checkbox/fw-checkbox.vue.d.ts +8 -5
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +14 -19
- package/types/components/fw-date-picker/index.types.d.ts +5 -4
- package/types/components/fw-drawer/fw-drawer.vue.d.ts +26 -10
- package/types/components/fw-drawer/index.types.d.ts +1 -1
- package/types/components/fw-dropdown/fw-dropdown.vue.d.ts +11 -9
- package/types/components/fw-icons/index.d.ts +2 -0
- package/types/components/fw-image/fw-image.vue.d.ts +7 -5
- package/types/components/fw-input/fw-input.vue.d.ts +11 -17
- package/types/components/fw-input/index.types.d.ts +1 -1
- package/types/components/fw-loading/fw-loading-bar.vue.d.ts +5 -2
- package/types/components/fw-loading/fw-loading-dots.vue.d.ts +2 -0
- package/types/components/fw-loading/index.d.ts +2 -1
- package/types/components/fw-modal/fw-modal.vue.d.ts +51 -11
- package/types/components/fw-modal/index.types.d.ts +1 -1
- package/types/components/fw-navigation-menu/fw-navigation-menu.vue.d.ts +77 -6
- package/types/components/fw-navigation-menu/index.types.d.ts +11 -0
- package/types/components/fw-popover/fw-popover.vue.d.ts +10 -5
- package/types/components/fw-provider-list/fw-provider-list.vue.d.ts +8 -5
- package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +20 -3
- package/types/components/fw-sidebar-menu/index.types.d.ts +9 -0
- package/types/components/fw-switch/fw-switch.vue.d.ts +101 -0
- package/types/components/fw-switch/index.d.ts +2 -0
- package/types/components/fw-switch/index.types.d.ts +8 -0
- package/types/components/fw-table/fw-table.vue.d.ts +7 -7
- package/types/components/fw-table/index.types.d.ts +0 -3
- package/types/components/fw-tabs/fw-tabs.vue.d.ts +1 -1
- package/types/components/fw-tabs/index.types.d.ts +1 -1
- package/types/components/fw-tag/fw-tag.vue.d.ts +2 -2
- package/types/components/fw-tag/index.types.d.ts +3 -3
- package/types/components/fw-toast/fw-toast.vue.d.ts +2 -2
- package/types/components/index.d.ts +4 -3
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +3 -0
- package/types/helpers/index.d.ts +2 -0
- package/types/helpers/vue-component-to-html.d.ts +2 -0
- package/types/icons/index.d.ts +18 -2
- package/types/index-types.esm.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.esm.d.ts +1 -0
- package/types/services/toast.d.ts +1 -1
- package/web-components/index.js +30134 -29048
- package/esm/check--YD4Ts6g.js +0 -17
- package/esm/fw-animations.js +0 -123
- package/esm/fw-button-DNozvo7B.js +0 -286
- package/esm/fw-loading-bar-DThRjdw1.js +0 -22
- package/esm/fw-loading-spinner-BFpFFRJm.js +0 -20
- package/esm/fw-period-selector.js +0 -90
- package/esm/get-root-colours-DYEoJPEb.js +0 -37
- package/icons/icons.stories.ts +0 -28
- package/styles/tailwind.scss +0 -68
- package/types/components/fw-animations/fw-email-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/fw-success-pulse.vue.d.ts +0 -24
- package/types/components/fw-animations/index.d.ts +0 -4
- package/types/components/fw-period-selector/fw-period-selector.vue.d.ts +0 -56
- package/types/components/fw-period-selector/index.d.ts +0 -2
- package/types/components/fw-period-selector/index.types.d.ts +0 -1
- /package/icons/{arrows-rotate.svg → arrow-rotate.svg} +0 -0
- /package/types/components/{fw-animations/fw-loading-spinner.vue.d.ts → fw-icons/fw-success-animation.vue.d.ts} +0 -0
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { defineComponent, ref, createElementVNode, resolveComponent,
|
|
2
|
-
import { s as script$1 } from './fw-button-
|
|
1
|
+
import { defineComponent, ref, watch, createElementVNode, resolveComponent, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, Fragment, renderList, withCtx, createTextVNode, toDisplayString, createVNode, Transition } from 'vue';
|
|
2
|
+
import { s as script$1 } from './fw-button-CnQvA7oM.js';
|
|
3
|
+
import { _ as __default__ } from './fw-popover-B4bsfuxm.js';
|
|
4
|
+
import { k as render$1 } from './index-BsEH8YYr.js';
|
|
3
5
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
4
|
-
import './
|
|
5
|
-
import './index-
|
|
6
|
-
import './
|
|
6
|
+
import './_rollupPluginBabelHelpers-DODWUb5N.js';
|
|
7
|
+
import './index-BVcOAKar.js';
|
|
8
|
+
import './uniqueId-DZdGzBh8.js';
|
|
7
9
|
|
|
8
10
|
var script = defineComponent({
|
|
9
11
|
name: 'FwNavigationMenu',
|
|
10
|
-
emits: ['action'],
|
|
11
12
|
components: {
|
|
12
|
-
FwButton: script$1
|
|
13
|
+
FwButton: script$1,
|
|
14
|
+
FwPopover: __default__,
|
|
15
|
+
UserSvg: render$1
|
|
13
16
|
},
|
|
14
17
|
props: {
|
|
15
18
|
/**
|
|
16
19
|
* An array of menu items
|
|
17
|
-
* `{ to?: string | object; href?: string; label: string; }`
|
|
20
|
+
* `{ to?: string | object; href?: string; label: string; external?: boolean; }`
|
|
18
21
|
*/
|
|
19
22
|
menuItems: {
|
|
20
23
|
type: Array
|
|
21
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* An array of menu items
|
|
27
|
+
* `{ to?: string | object; href?: string; label: string; external?: boolean; }`
|
|
28
|
+
*/
|
|
29
|
+
additionalMenuItems: {
|
|
30
|
+
type: Array
|
|
31
|
+
},
|
|
22
32
|
/**
|
|
23
33
|
* The label for the action button.
|
|
24
34
|
* Also emits the `action` event.
|
|
@@ -31,16 +41,50 @@ var script = defineComponent({
|
|
|
31
41
|
*/
|
|
32
42
|
containerClass: {
|
|
33
43
|
type: String,
|
|
34
|
-
"default": '
|
|
44
|
+
"default": 'w-full'
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Whether menu items are enabled or disabled.
|
|
48
|
+
*/
|
|
49
|
+
menuEnabled: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* Whether the route is an authenticated route.
|
|
55
|
+
*/
|
|
56
|
+
authenticated: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
"default": false
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Padding for the inner menu, should match the sidebar menu width.
|
|
62
|
+
*/
|
|
63
|
+
paddingClasses: {
|
|
64
|
+
type: String
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Whether the background is transparent
|
|
68
|
+
*/
|
|
69
|
+
transparent: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
"default": false
|
|
35
72
|
}
|
|
36
73
|
},
|
|
74
|
+
emits: ['action'],
|
|
37
75
|
setup: function setup(_props, ctx) {
|
|
38
|
-
var mobileMenuClass = ref(
|
|
39
|
-
"min-h-screen top-0 left-0 pt-20 absolute w-full flex flex-col justify-between px-2 bg-white shadow-md pb-3 space-y-1");
|
|
76
|
+
var mobileMenuClass = ref("min-h-screen top-0 right-0 pt-20 absolute w-full px-2 bg-primary pb-3 space-y-1 z-[51]");
|
|
40
77
|
var isMobileMenuOpen = ref(false);
|
|
41
78
|
var toggleMobileMenu = function toggleMobileMenu() {
|
|
42
79
|
return isMobileMenuOpen.value = !isMobileMenuOpen.value;
|
|
43
80
|
};
|
|
81
|
+
watch(isMobileMenuOpen, function (newValue) {
|
|
82
|
+
var _document$querySelect, _document$querySelect2;
|
|
83
|
+
if (newValue == true) (_document$querySelect = document.querySelector('html')) === null || _document$querySelect === void 0 || _document$querySelect.classList.add('overflow-hidden');
|
|
84
|
+
if (newValue == false) (_document$querySelect2 = document.querySelector('html')) === null || _document$querySelect2 === void 0 || _document$querySelect2.classList.remove('overflow-hidden');
|
|
85
|
+
}, {
|
|
86
|
+
immediate: true
|
|
87
|
+
});
|
|
44
88
|
var actionClicked = function actionClicked() {
|
|
45
89
|
return ctx.emit('action');
|
|
46
90
|
};
|
|
@@ -54,25 +98,26 @@ var script = defineComponent({
|
|
|
54
98
|
});
|
|
55
99
|
|
|
56
100
|
var _hoisted_1 = {
|
|
57
|
-
"class": "fw-nav-menu relative z-50 h-20 shadow-md"
|
|
58
|
-
};
|
|
59
|
-
var _hoisted_2 = {
|
|
60
101
|
key: 0,
|
|
61
|
-
"class": "flex-shrink-0
|
|
102
|
+
"class": "hidden lg:flex flex-shrink-0 items-center"
|
|
62
103
|
};
|
|
104
|
+
var _hoisted_2 = /*#__PURE__*/createElementVNode("div", {
|
|
105
|
+
id: "menu-teleport",
|
|
106
|
+
"class": "hidden lg:flex items-center gap-x-2"
|
|
107
|
+
}, null, -1);
|
|
63
108
|
var _hoisted_3 = {
|
|
64
|
-
|
|
65
|
-
"class": "container hidden sm:flex items-center justify-start sm:ml-6"
|
|
109
|
+
"class": "flex space-x-1"
|
|
66
110
|
};
|
|
67
111
|
var _hoisted_4 = {
|
|
68
|
-
|
|
112
|
+
key: 2,
|
|
113
|
+
"class": "hidden lg:flex items-center justify-center lg:ml-2"
|
|
69
114
|
};
|
|
70
115
|
var _hoisted_5 = {
|
|
71
|
-
|
|
72
|
-
"class": "hidden sm:flex items-center justify-start sm:ml-6"
|
|
116
|
+
"class": "flex flex-col min-w-[180px] text-left"
|
|
73
117
|
};
|
|
74
118
|
var _hoisted_6 = {
|
|
75
|
-
|
|
119
|
+
key: 3,
|
|
120
|
+
"class": "flex items-center lg:hidden z-[53]"
|
|
76
121
|
};
|
|
77
122
|
var _hoisted_7 = /*#__PURE__*/createElementVNode("span", {
|
|
78
123
|
"class": "sr-only"
|
|
@@ -86,22 +131,49 @@ var _hoisted_8 = {
|
|
|
86
131
|
"aria-hidden": "true"
|
|
87
132
|
};
|
|
88
133
|
var _hoisted_9 = ["d"];
|
|
89
|
-
var _hoisted_10 = {
|
|
134
|
+
var _hoisted_10 = /*#__PURE__*/createElementVNode("div", {
|
|
135
|
+
id: "menu-search-teleport",
|
|
136
|
+
"class": "absolute top-0 left-0 w-full z-[54]"
|
|
137
|
+
}, null, -1);
|
|
138
|
+
var _hoisted_11 = {
|
|
139
|
+
key: 0,
|
|
140
|
+
"class": "flex-none lg:hidden items-start flex-shrink-0 pl-4"
|
|
141
|
+
};
|
|
142
|
+
var _hoisted_12 = {
|
|
143
|
+
key: 1,
|
|
144
|
+
"class": "w-full flex flex-col space-y-1 pt-6"
|
|
145
|
+
};
|
|
146
|
+
var _hoisted_13 = /*#__PURE__*/createElementVNode("div", {
|
|
147
|
+
"class": "w-[50px] relative bg-brand-border3 h-px !mt-6 ml-2"
|
|
148
|
+
}, null, -1);
|
|
149
|
+
var _hoisted_14 = {
|
|
150
|
+
"class": "flex flex-col justify-between pt-6 h-full"
|
|
151
|
+
};
|
|
152
|
+
var _hoisted_15 = {
|
|
153
|
+
key: 0,
|
|
90
154
|
"class": "w-full flex flex-col space-y-1"
|
|
91
155
|
};
|
|
92
156
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
93
157
|
var _ctx$menuItems;
|
|
94
158
|
var _component_FwButton = resolveComponent("FwButton");
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
159
|
+
var _component_UserSvg = resolveComponent("UserSvg");
|
|
160
|
+
var _component_FwPopover = resolveComponent("FwPopover");
|
|
161
|
+
return openBlock(), createElementBlock("nav", {
|
|
162
|
+
"class": normalizeClass(["fw-nav-menu z-50 h-[72px] bg-white shadow-bottom", [_ctx.transparent ? 'lg:bg-transparent lg:shadow-none' : 'lg:bg-brand-appBg lg:shadow-bottom', _ctx.isMobileMenuOpen ? 'bg-transparent' : '']])
|
|
163
|
+
}, [createElementVNode("div", {
|
|
164
|
+
"class": normalizeClass(["px-6 lg:py-3 flex-1 h-full flex items-stretch justify-between mx-auto", [_ctx.containerClass, !_ctx.menuEnabled ? 'hidden lg:flex' : '']])
|
|
165
|
+
}, [_ctx.$slots.logo ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "logo")])) : createCommentVNode("", true), _ctx.menuEnabled && _ctx.menuItems && ((_ctx$menuItems = _ctx.menuItems) === null || _ctx$menuItems === void 0 ? void 0 : _ctx$menuItems.length) > 0 ? (openBlock(), createElementBlock("div", {
|
|
166
|
+
key: 1,
|
|
167
|
+
"class": normalizeClass(["container hidden lg:flex items-center justify-between", _ctx.paddingClasses])
|
|
168
|
+
}, [_hoisted_2, createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
98
169
|
return openBlock(), createBlock(_component_FwButton, {
|
|
99
170
|
key: i,
|
|
100
|
-
variant: "
|
|
171
|
+
variant: "transparent",
|
|
101
172
|
href: item.href,
|
|
102
173
|
to: item.to,
|
|
103
174
|
external: item.external,
|
|
104
|
-
size: "
|
|
175
|
+
size: "lg",
|
|
176
|
+
rounded: false,
|
|
105
177
|
"aria-current": "page",
|
|
106
178
|
onClick: item.onClick
|
|
107
179
|
}, {
|
|
@@ -110,19 +182,47 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
182
|
}),
|
|
111
183
|
_: 2
|
|
112
184
|
}, 1032, ["href", "to", "external", "onClick"]);
|
|
113
|
-
}), 128))])])) : createCommentVNode("", true), _ctx.actionLabel ? (openBlock(), createElementBlock("div",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"aria-label": _ctx.actionLabel
|
|
185
|
+
}), 128))])], 2)) : createCommentVNode("", true), _ctx.menuEnabled && _ctx.actionLabel && _ctx.authenticated ? (openBlock(), createElementBlock("div", _hoisted_4, [createVNode(_component_FwPopover, {
|
|
186
|
+
placement: "bottom-start",
|
|
187
|
+
"show-on-top": "",
|
|
188
|
+
trigger: "click"
|
|
118
189
|
}, {
|
|
190
|
+
content: withCtx(function () {
|
|
191
|
+
return [createElementVNode("div", _hoisted_5, [createVNode(_component_FwButton, {
|
|
192
|
+
size: "lg",
|
|
193
|
+
variant: "text",
|
|
194
|
+
rounded: false,
|
|
195
|
+
"aria-label": _ctx.actionLabel,
|
|
196
|
+
onClick: _ctx.actionClicked
|
|
197
|
+
}, {
|
|
198
|
+
"default": withCtx(function () {
|
|
199
|
+
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
200
|
+
}),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["aria-label", "onClick"])])];
|
|
203
|
+
}),
|
|
119
204
|
"default": withCtx(function () {
|
|
120
|
-
return [
|
|
205
|
+
return [createVNode(_component_FwButton, {
|
|
206
|
+
variant: "secondary",
|
|
207
|
+
tabindex: "0",
|
|
208
|
+
size: "sm",
|
|
209
|
+
"class": "bg-brand-bg2 rounded-full w-12 h-12"
|
|
210
|
+
}, {
|
|
211
|
+
"default": withCtx(function () {
|
|
212
|
+
return [createVNode(_component_UserSvg, {
|
|
213
|
+
name: "user",
|
|
214
|
+
"class": "w-full"
|
|
215
|
+
})];
|
|
216
|
+
}),
|
|
217
|
+
_: 1
|
|
218
|
+
})];
|
|
121
219
|
}),
|
|
122
220
|
_: 1
|
|
123
|
-
}
|
|
124
|
-
variant:
|
|
221
|
+
})])) : createCommentVNode("", true), _ctx.menuEnabled ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(_component_FwButton, {
|
|
222
|
+
variant: _ctx.isMobileMenuOpen ? 'primary' : 'tertiary',
|
|
125
223
|
size: "sm",
|
|
224
|
+
rounded: false,
|
|
225
|
+
"class": normalizeClass(["bg-transparent border-0", _ctx.isMobileMenuOpen ? '' : 'text-body']),
|
|
126
226
|
onClick: _ctx.toggleMobileMenu
|
|
127
227
|
}, {
|
|
128
228
|
"default": withCtx(function () {
|
|
@@ -134,47 +234,75 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
234
|
}, null, 8, _hoisted_9)]))];
|
|
135
235
|
}),
|
|
136
236
|
_: 1
|
|
137
|
-
}, 8, ["onClick"])])], 2),
|
|
138
|
-
|
|
237
|
+
}, 8, ["variant", "class", "onClick"])])) : createCommentVNode("", true)], 2), _hoisted_10, _ctx.menuEnabled ? (openBlock(), createBlock(Transition, {
|
|
238
|
+
key: 0,
|
|
239
|
+
name: "slideInRight"
|
|
139
240
|
}, {
|
|
140
241
|
"default": withCtx(function () {
|
|
141
242
|
return [_ctx.menuItems && _ctx.menuItems.length > 0 && _ctx.isMobileMenuOpen ? (openBlock(), createElementBlock("div", {
|
|
142
243
|
key: 0,
|
|
143
|
-
"class": normalizeClass(["fw-nav-menu--mobile", _ctx.mobileMenuClass])
|
|
144
|
-
}, [
|
|
244
|
+
"class": normalizeClass(["fw-nav-menu--mobile pl-6 pb-12", _ctx.mobileMenuClass])
|
|
245
|
+
}, [_ctx.$slots.mobileLogo ? (openBlock(), createElementBlock("div", _hoisted_11, [renderSlot(_ctx.$slots, "mobileLogo")])) : createCommentVNode("", true), _ctx.additionalMenuItems ? (openBlock(), createElementBlock("div", _hoisted_12, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.additionalMenuItems, function (item, i) {
|
|
246
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
247
|
+
key: i
|
|
248
|
+
}, [!item.disabled ? (openBlock(), createBlock(_component_FwButton, {
|
|
249
|
+
key: i,
|
|
250
|
+
"class": "w-full rounded-md !text-left !pl-2",
|
|
251
|
+
variant: "primary",
|
|
252
|
+
href: item.href,
|
|
253
|
+
to: item.to,
|
|
254
|
+
external: item.external,
|
|
255
|
+
size: "lg",
|
|
256
|
+
"aria-current": "page",
|
|
257
|
+
onClick: function onClick($event) {
|
|
258
|
+
return item.onClick, _ctx.isMobileMenuOpen = false;
|
|
259
|
+
}
|
|
260
|
+
}, {
|
|
261
|
+
"default": withCtx(function () {
|
|
262
|
+
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
263
|
+
}),
|
|
264
|
+
_: 2
|
|
265
|
+
}, 1032, ["href", "to", "external", "onClick"])) : createCommentVNode("", true)], 64);
|
|
266
|
+
}), 128)), _hoisted_13])) : createCommentVNode("", true), createElementVNode("div", _hoisted_14, [_ctx.menuEnabled ? (openBlock(), createElementBlock("div", _hoisted_15, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, function (item, i) {
|
|
145
267
|
return openBlock(), createBlock(_component_FwButton, {
|
|
146
268
|
key: i,
|
|
147
|
-
"class": "w-full rounded-md",
|
|
148
|
-
variant: "
|
|
269
|
+
"class": "w-full rounded-md !text-left !pl-2",
|
|
270
|
+
variant: "primary",
|
|
149
271
|
href: item.href,
|
|
150
272
|
to: item.to,
|
|
151
273
|
external: item.external,
|
|
152
|
-
size: "
|
|
274
|
+
size: "xl",
|
|
153
275
|
"aria-current": "page",
|
|
154
|
-
onClick:
|
|
276
|
+
onClick: function onClick($event) {
|
|
277
|
+
return item.onClick, _ctx.isMobileMenuOpen = false;
|
|
278
|
+
}
|
|
155
279
|
}, {
|
|
156
280
|
"default": withCtx(function () {
|
|
157
281
|
return [createTextVNode(toDisplayString(item.label), 1)];
|
|
158
282
|
}),
|
|
159
283
|
_: 2
|
|
160
284
|
}, 1032, ["href", "to", "external", "onClick"]);
|
|
161
|
-
}), 128))]), _ctx.actionLabel ? (openBlock(), createBlock(_component_FwButton, {
|
|
162
|
-
key:
|
|
163
|
-
|
|
164
|
-
|
|
285
|
+
}), 128))])) : createCommentVNode("", true), _ctx.actionLabel && _ctx.authenticated ? (openBlock(), createBlock(_component_FwButton, {
|
|
286
|
+
key: 1,
|
|
287
|
+
variant: "primary",
|
|
288
|
+
size: "xl",
|
|
289
|
+
"class": "w-full rounded-md !text-left !pl-2",
|
|
290
|
+
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
291
|
+
return _ctx.actionClicked();
|
|
292
|
+
})
|
|
165
293
|
}, {
|
|
166
294
|
"default": withCtx(function () {
|
|
167
295
|
return [createTextVNode(toDisplayString(_ctx.actionLabel), 1)];
|
|
168
296
|
}),
|
|
169
297
|
_: 1
|
|
170
|
-
}
|
|
298
|
+
})) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)];
|
|
171
299
|
}),
|
|
172
|
-
_:
|
|
173
|
-
})]);
|
|
300
|
+
_: 3
|
|
301
|
+
})) : createCommentVNode("", true)], 2);
|
|
174
302
|
}
|
|
175
303
|
|
|
176
|
-
var css_248z = ".fw-nav-menu--mobile{z-index
|
|
177
|
-
var stylesheet = ".fw-nav-menu--mobile{z-index
|
|
304
|
+
var css_248z = ".fw-nav-menu--mobile{z-index:52}.fw-nav-menu--mobile,.slideInRight-enter-active{-webkit-transition:right .3s ease-in;-moz-transition:right .3s ease-in;transition:right .3s ease-in}.slideInRight-enter-active{-webkit-animation:slideInRight .3s;-moz-animation:slideInRight .3s;animation:slideInRight .3s}.slideInRight-leave-active{animation:slideInRight .3s reverse;-webkit-transition:right .3s ease-in-out;-moz-transition:right .3s ease-in-out;transition:right .3s ease-in-out}@-webkit-keyframes slideInRight{0%{right:100%}to{right:0}}@-moz-keyframes slideInRight{0%{right:100%}to{right:0}}@keyframes slideInRight{0%{right:100%}to{right:0}}";
|
|
305
|
+
var stylesheet = ".fw-nav-menu--mobile{z-index:52}.fw-nav-menu--mobile,.slideInRight-enter-active{-webkit-transition:right .3s ease-in;-moz-transition:right .3s ease-in;transition:right .3s ease-in}.slideInRight-enter-active{-webkit-animation:slideInRight .3s;-moz-animation:slideInRight .3s;animation:slideInRight .3s}.slideInRight-leave-active{animation:slideInRight .3s reverse;-webkit-transition:right .3s ease-in-out;-moz-transition:right .3s ease-in-out;transition:right .3s ease-in-out}@-webkit-keyframes slideInRight{0%{right:100%}to{right:0}}@-moz-keyframes slideInRight{0%{right:100%}to{right:0}}@keyframes slideInRight{0%{right:100%}to{right:0}}";
|
|
178
306
|
styleInject(css_248z);
|
|
179
307
|
|
|
180
308
|
script.render = render;
|