From 9043c702072acd3c54b2c604cabc3685e3efd752 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Mon, 22 Jul 2019 17:10:15 +0300 Subject: [PATCH] New Component: ProgressSpinner --- exports/progressspinner.d.ts | 1 + exports/progressspinner.js | 2 + src/AppMenu.vue | 1 + .../progressspinner/ProgressSpinner.d.ts | 7 + .../progressspinner/ProgressSpinner.vue | 109 ++++++++++++++ src/main.js | 2 + src/router.js | 5 + .../progressspinner/ProgressSpinnerDemo.vue | 30 ++++ .../progressspinner/ProgressSpinnerDoc.vue | 134 ++++++++++++++++++ 9 files changed, 291 insertions(+) create mode 100644 exports/progressspinner.d.ts create mode 100644 exports/progressspinner.js create mode 100644 src/components/progressspinner/ProgressSpinner.d.ts create mode 100644 src/components/progressspinner/ProgressSpinner.vue create mode 100644 src/views/progressspinner/ProgressSpinnerDemo.vue create mode 100644 src/views/progressspinner/ProgressSpinnerDoc.vue diff --git a/exports/progressspinner.d.ts b/exports/progressspinner.d.ts new file mode 100644 index 000000000..c30cab455 --- /dev/null +++ b/exports/progressspinner.d.ts @@ -0,0 +1 @@ +export * from './components/progressspinner/ProgressSpinner'; \ No newline at end of file diff --git a/exports/progressspinner.js b/exports/progressspinner.js new file mode 100644 index 000000000..315b3da28 --- /dev/null +++ b/exports/progressspinner.js @@ -0,0 +1,2 @@ +'use strict'; +module.exports = require('./components/progressspinner/ProgressSpinner.vue'); \ No newline at end of file diff --git a/src/AppMenu.vue b/src/AppMenu.vue index f52eb0330..cf39e3006 100644 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -171,6 +171,7 @@
● Inplace ● ProgressBar + ● ProgressSpinner
diff --git a/src/components/progressspinner/ProgressSpinner.d.ts b/src/components/progressspinner/ProgressSpinner.d.ts new file mode 100644 index 000000000..d4217b672 --- /dev/null +++ b/src/components/progressspinner/ProgressSpinner.d.ts @@ -0,0 +1,7 @@ +import Vue from 'vue'; + +export declare class ProgressSpinner extends Vue { + strokeWidth?: string; + fill?: string; + animationDuration?: string; +} \ No newline at end of file diff --git a/src/components/progressspinner/ProgressSpinner.vue b/src/components/progressspinner/ProgressSpinner.vue new file mode 100644 index 000000000..4f65a3f06 --- /dev/null +++ b/src/components/progressspinner/ProgressSpinner.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/src/main.js b/src/main.js index c4a8abe9f..b10b77705 100644 --- a/src/main.js +++ b/src/main.js @@ -35,6 +35,7 @@ import Panel from './components/panel/Panel'; import Password from './components/password/Password'; import PickList from './components/picklist/PickList'; import ProgressBar from './components/progressbar/ProgressBar'; +import ProgressSpinner from './components/progressspinner/ProgressSpinner'; import Rating from './components/rating/Rating'; import RadioButton from './components/radiobutton/RadioButton'; import SelectButton from './components/selectbutton/SelectButton'; @@ -100,6 +101,7 @@ Vue.component('Panel', Panel); Vue.component('Password', Password); Vue.component('PickList', PickList); Vue.component('ProgressBar', ProgressBar); +Vue.component('ProgressSpinner', ProgressSpinner); Vue.component('RadioButton', RadioButton); Vue.component('Rating', Rating); Vue.component('SelectButton', SelectButton); diff --git a/src/router.js b/src/router.js index c8526b23f..85b12443c 100644 --- a/src/router.js +++ b/src/router.js @@ -285,6 +285,11 @@ export default new Router({ path: '/progressbar', name: 'progressbar', component: () => import('./views/progressbar/ProgressBarDemo.vue') + }, + { + path: '/progressspinner', + name: 'progressspinner', + component: () => import('./views/progressspinner/ProgressSpinnerDemo.vue') }, { path: '/radiobutton', diff --git a/src/views/progressspinner/ProgressSpinnerDemo.vue b/src/views/progressspinner/ProgressSpinnerDemo.vue new file mode 100644 index 000000000..afe9ba416 --- /dev/null +++ b/src/views/progressspinner/ProgressSpinnerDemo.vue @@ -0,0 +1,30 @@ + + + \ No newline at end of file diff --git a/src/views/progressspinner/ProgressSpinnerDoc.vue b/src/views/progressspinner/ProgressSpinnerDoc.vue new file mode 100644 index 000000000..aa4597816 --- /dev/null +++ b/src/views/progressspinner/ProgressSpinnerDoc.vue @@ -0,0 +1,134 @@ + \ No newline at end of file