2019-08-14 09:48:44 +00:00
|
|
|
/* eslint no-plusplus: 0 */
|
2020-05-31 10:46:22 +00:00
|
|
|
import AvatarUploader from './widgets/forms/AvatarUploader.vue';
|
2019-11-30 12:03:42 +00:00
|
|
|
import Bar from './widgets/chart/BarChart';
|
2021-04-07 06:13:16 +00:00
|
|
|
import Button from './ui/WootButton';
|
2019-11-30 12:03:42 +00:00
|
|
|
import Code from './Code';
|
2020-05-30 11:58:00 +00:00
|
|
|
import ColorPicker from './widgets/ColorPicker';
|
2021-06-04 07:47:44 +00:00
|
|
|
import ConfirmDeleteModal from './widgets/modal/ConfirmDeleteModal.vue';
|
2021-07-14 04:50:06 +00:00
|
|
|
import DeleteModal from './widgets/modal/DeleteModal.vue';
|
2021-05-06 14:31:26 +00:00
|
|
|
import DropdownItem from 'shared/components/ui/dropdown/DropdownItem';
|
|
|
|
import DropdownMenu from 'shared/components/ui/dropdown/DropdownMenu';
|
2021-07-14 04:50:06 +00:00
|
|
|
import HorizontalBar from './widgets/chart/HorizontalBarChart';
|
2020-05-31 10:46:22 +00:00
|
|
|
import Input from './widgets/forms/Input.vue';
|
2021-05-05 17:23:23 +00:00
|
|
|
import Label from './ui/Label';
|
2019-11-30 12:03:42 +00:00
|
|
|
import LoadingState from './widgets/LoadingState';
|
2019-08-14 09:48:44 +00:00
|
|
|
import Modal from './Modal';
|
2019-11-30 12:03:42 +00:00
|
|
|
import ModalHeader from './ModalHeader';
|
|
|
|
import ReportStatsCard from './widgets/ReportStatsCard';
|
2019-12-12 07:23:15 +00:00
|
|
|
import SidemenuIcon from './SidemenuIcon';
|
2020-05-17 15:37:45 +00:00
|
|
|
import Spinner from 'shared/components/Spinner';
|
2019-08-14 09:48:44 +00:00
|
|
|
import SubmitButton from './buttons/FormSubmitButton';
|
|
|
|
import Tabs from './ui/Tabs/Tabs';
|
|
|
|
import TabsItem from './ui/Tabs/TabsItem';
|
2020-05-31 10:46:22 +00:00
|
|
|
import Thumbnail from './widgets/Thumbnail.vue';
|
2022-03-01 08:44:23 +00:00
|
|
|
import ConfirmModal from './widgets/modal/ConfirmationModal.vue';
|
2019-08-14 09:48:44 +00:00
|
|
|
|
|
|
|
const WootUIKit = {
|
2020-05-31 10:46:22 +00:00
|
|
|
AvatarUploader,
|
2019-11-30 12:03:42 +00:00
|
|
|
Bar,
|
2020-08-17 05:55:13 +00:00
|
|
|
Button,
|
2019-11-30 12:03:42 +00:00
|
|
|
Code,
|
2020-05-30 11:58:00 +00:00
|
|
|
ColorPicker,
|
2021-07-14 04:50:06 +00:00
|
|
|
ConfirmDeleteModal,
|
2020-05-17 15:37:45 +00:00
|
|
|
DeleteModal,
|
2021-05-06 14:31:26 +00:00
|
|
|
DropdownItem,
|
|
|
|
DropdownMenu,
|
2021-07-14 04:50:06 +00:00
|
|
|
HorizontalBar,
|
2020-05-31 10:46:22 +00:00
|
|
|
Input,
|
2020-06-25 15:34:03 +00:00
|
|
|
Label,
|
2021-07-14 04:50:06 +00:00
|
|
|
LoadingState,
|
2019-08-14 09:48:44 +00:00
|
|
|
Modal,
|
2019-11-30 12:03:42 +00:00
|
|
|
ModalHeader,
|
|
|
|
ReportStatsCard,
|
2019-12-12 07:23:15 +00:00
|
|
|
SidemenuIcon,
|
2019-08-14 09:48:44 +00:00
|
|
|
Spinner,
|
|
|
|
SubmitButton,
|
|
|
|
Tabs,
|
|
|
|
TabsItem,
|
2020-05-31 10:46:22 +00:00
|
|
|
Thumbnail,
|
2022-03-01 08:44:23 +00:00
|
|
|
ConfirmModal,
|
2019-08-14 09:48:44 +00:00
|
|
|
install(Vue) {
|
|
|
|
const keys = Object.keys(this);
|
|
|
|
keys.pop(); // remove 'install' from keys
|
|
|
|
let i = keys.length;
|
|
|
|
while (i--) {
|
|
|
|
Vue.component(`woot${keys[i]}`, this[keys[i]]);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
|
|
window.Vue.use(WootUIKit);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default WootUIKit;
|