Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit 99c4306

Browse files
feat: Search Menu Auto Completion
1 parent ad3de57 commit 99c4306

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2208
-352
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"javascript",
55
"vue"
66
],
7-
"debug.node.autoAttach": "on",
7+
"vetur.grammar.customBlocks": {
8+
"docs": "md",
9+
"tip": "md",
10+
"title": "md"
11+
},
12+
"debug.node.autoAttach": "off",
813
"eslint.alwaysShowStatus": true,
914
"eslint.enable": true,
1015
"eslint.packageManager": "yarn",

babel.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (process.env.VUE_CLI_BUILD_TARGET === "app") {
99
presets: ["@vue/app"]
1010
};
1111
return;
12-
};
12+
}
1313

1414
const uiPresets = [
1515
[
@@ -23,5 +23,6 @@ const uiPresets = [
2323
];
2424
const presets = mode === "prod" ? uiPresets : appPresets;
2525
module.exports = {
26-
presets
26+
presets,
27+
plugins: ["@babel/plugin-syntax-dynamic-import"]
2728
};

cypress.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

demo/Overview.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<div>
3+
<ul>
4+
<li>
5+
<router-link to="/pages/popover-default">Popover Default</router-link>
6+
</li>
7+
<li>
8+
<router-link to="/pages/combobox-default">
9+
Combobox
10+
</router-link>
11+
</li>
12+
</ul>
13+
</div>
14+
</template>
15+
16+
<script>
17+
export default {};
18+
</script>

demo/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Vue from "vue";
2+
import router from "./router";
3+
import VueRouter from "vue-router";
4+
import FundamentalVue from "./../src/index";
5+
import FullscreenLayout from "./layouts/FullscreenLayout.vue";
6+
import "./main.scss";
7+
8+
Vue.use(VueRouter);
9+
Vue.use(FundamentalVue, {
10+
log: {
11+
welcome: true,
12+
registerComponent: true
13+
}
14+
});
15+
16+
new Vue({
17+
router,
18+
el: "#app",
19+
render: h => h(FullscreenLayout)
20+
});

demo/layouts/FullscreenLayout.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<template>
2+
<router-view />
3+
</template>
4+
5+
<script>
6+
export default {
7+
name: "FullscreenLayout"
8+
};
9+
</script>

demo/main.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$fd-support-css-var-fallback: false;
2+
$fd-icons-path : "./../node_modules/fiori-fundamentals/scss/icons/";
3+
$fd-scss-font-path : "./../node_modules/fiori-fundamentals/scss/fonts/";
4+
5+
@import "./../node_modules/fiori-fundamentals/scss/all";

demo/pages/combobox-default.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<div>
3+
<p id="selected-value">{{ value || "none" }}</p>
4+
<fd-combobox v-model="value" placeholder="Pick your Fruit of the day">
5+
<fd-menu-item id="item-1" value="Apple-v">Apple</fd-menu-item>
6+
<fd-menu-item id="item-2" value="Banana-v">Banana</fd-menu-item>
7+
<fd-menu-item id="item-3" value="Cherry-v">Cherry</fd-menu-item>
8+
</fd-combobox>
9+
</div>
10+
</template>
11+
12+
<script>
13+
export default {
14+
data() {
15+
return { value: null };
16+
}
17+
};
18+
</script>

demo/pages/popover-default.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<div style="width: 1000px; height: 1000px; padding: 100px;">
3+
<fd-popover>
4+
<template #control="{toggle}">
5+
<FdButton @click="toggle">Toggle</FdButton>
6+
</template>
7+
<template #default>
8+
<div>content</div>
9+
</template>
10+
</fd-popover>
11+
</div>
12+
</template>
13+
14+
<script>
15+
export default {
16+
};
17+
</script>

demo/router.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import VueRouter from "vue-router";
2+
3+
export default new VueRouter({
4+
mode: "history",
5+
routes: [
6+
{
7+
path: "/",
8+
component: () => import("./Overview.vue")
9+
},
10+
{
11+
path: "/pages/popover-default",
12+
component: () => import("./pages/popover-default.vue")
13+
},
14+
{
15+
path: "/pages/combobox-default",
16+
component: () => import("./pages/combobox-default.vue")
17+
}
18+
]
19+
});

0 commit comments

Comments
 (0)