2020-03-27 13:19:43 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
import Context from '@baserow/modules/core/components/Context'
|
|
|
|
import Modal from '@baserow/modules/core/components/Modal'
|
|
|
|
import Editable from '@baserow/modules/core/components/Editable'
|
|
|
|
import Dropdown from '@baserow/modules/core/components/Dropdown'
|
2024-12-25 08:40:24 +00:00
|
|
|
import DropdownSection from '@baserow/modules/core/components/DropdownSection'
|
2020-03-27 13:19:43 +00:00
|
|
|
import DropdownItem from '@baserow/modules/core/components/DropdownItem'
|
2022-04-19 07:24:47 +00:00
|
|
|
import Picker from '@baserow/modules/core/components/Picker'
|
2022-07-04 15:18:45 +00:00
|
|
|
import ProgressBar from '@baserow/modules/core/components/ProgressBar'
|
2020-03-27 13:19:43 +00:00
|
|
|
import Checkbox from '@baserow/modules/core/components/Checkbox'
|
2021-11-21 18:55:27 +00:00
|
|
|
import Radio from '@baserow/modules/core/components/Radio'
|
2024-04-26 17:23:19 +00:00
|
|
|
import RadioGroup from '@baserow/modules/core/components/RadioGroup'
|
2020-03-27 13:19:43 +00:00
|
|
|
import Scrollbars from '@baserow/modules/core/components/Scrollbars'
|
|
|
|
import Error from '@baserow/modules/core/components/Error'
|
2020-11-02 16:47:20 +00:00
|
|
|
import SwitchInput from '@baserow/modules/core/components/SwitchInput'
|
|
|
|
import Copied from '@baserow/modules/core/components/Copied'
|
2022-01-12 13:15:30 +00:00
|
|
|
import MarkdownIt from '@baserow/modules/core/components/MarkdownIt'
|
2022-01-20 15:50:31 +00:00
|
|
|
import DownloadLink from '@baserow/modules/core/components/DownloadLink'
|
2022-03-29 12:25:01 +00:00
|
|
|
import FormElement from '@baserow/modules/core/components/FormElement'
|
2022-06-21 07:48:49 +00:00
|
|
|
import Alert from '@baserow/modules/core/components/Alert'
|
2022-09-21 12:02:51 +00:00
|
|
|
import Tabs from '@baserow/modules/core/components/Tabs'
|
|
|
|
import Tab from '@baserow/modules/core/components/Tab'
|
2022-11-24 12:44:55 +00:00
|
|
|
import List from '@baserow/modules/core/components/List'
|
2022-12-29 13:59:10 +00:00
|
|
|
import HelpIcon from '@baserow/modules/core/components/HelpIcon'
|
2023-05-11 15:27:17 +00:00
|
|
|
import Button from '@baserow/modules/core/components/Button'
|
2024-04-15 11:29:17 +00:00
|
|
|
import ButtonText from '@baserow/modules/core/components/ButtonText'
|
|
|
|
import ButtonAdd from '@baserow/modules/core/components/ButtonAdd'
|
|
|
|
import ButtonIcon from '@baserow/modules/core/components/ButtonIcon'
|
|
|
|
import ButtonFloating from '@baserow/modules/core/components/ButtonFloating'
|
2023-06-22 14:23:00 +00:00
|
|
|
import Avatar from '@baserow/modules/core/components/Avatar'
|
2024-04-15 11:29:17 +00:00
|
|
|
import Chips from '@baserow/modules/core/components/Chips'
|
2023-06-22 14:23:00 +00:00
|
|
|
import Presentation from '@baserow/modules/core/components/Presentation'
|
|
|
|
import FormInput from '@baserow/modules/core/components/FormInput'
|
2024-04-23 12:12:46 +00:00
|
|
|
import ImageInput from '@baserow/modules/core/components/ImageInput'
|
2024-07-05 09:35:08 +00:00
|
|
|
import FormTextarea from '@baserow/modules/core/components/FormTextarea'
|
2023-11-29 16:20:10 +00:00
|
|
|
import CallToAction from '@baserow/modules/core/components/CallToAction.vue'
|
2023-12-08 08:12:38 +00:00
|
|
|
import FormGroup from '@baserow/modules/core/components/FormGroup'
|
|
|
|
import FormRow from '@baserow/modules/core/components/FormRow'
|
2024-03-15 14:10:47 +00:00
|
|
|
import Logo from '@baserow/modules/core/components/Logo'
|
2024-05-02 14:25:42 +00:00
|
|
|
import ReadOnlyForm from '@baserow/modules/core/components/ReadOnlyForm'
|
2024-07-05 15:41:24 +00:00
|
|
|
import FormSection from '@baserow/modules/core/components/FormSection'
|
2025-01-31 06:07:11 +00:00
|
|
|
import SegmentControl from '@baserow/modules/core/components/SegmentControl'
|
2020-03-27 13:19:43 +00:00
|
|
|
|
|
|
|
import lowercase from '@baserow/modules/core/filters/lowercase'
|
2020-11-02 16:47:20 +00:00
|
|
|
import uppercase from '@baserow/modules/core/filters/uppercase'
|
2021-02-04 16:16:33 +00:00
|
|
|
import nameAbbreviation from '@baserow/modules/core/filters/nameAbbreviation'
|
2020-03-27 13:19:43 +00:00
|
|
|
|
|
|
|
import scroll from '@baserow/modules/core/directives/scroll'
|
2020-05-23 13:52:15 +00:00
|
|
|
import preventParentScroll from '@baserow/modules/core/directives/preventParentScroll'
|
2020-11-30 18:52:39 +00:00
|
|
|
import tooltip from '@baserow/modules/core/directives/tooltip'
|
2021-05-18 09:56:49 +00:00
|
|
|
import sortable from '@baserow/modules/core/directives/sortable'
|
2021-05-25 16:05:59 +00:00
|
|
|
import autoOverflowScroll from '@baserow/modules/core/directives/autoOverflowScroll'
|
2021-07-11 18:02:37 +00:00
|
|
|
import userFileUpload from '@baserow/modules/core/directives/userFileUpload'
|
2021-11-23 16:48:51 +00:00
|
|
|
import autoScroll from '@baserow/modules/core/directives/autoScroll'
|
2022-10-31 18:35:57 +00:00
|
|
|
import clickOutside from '@baserow/modules/core/directives/clickOutside'
|
2023-01-17 10:51:11 +00:00
|
|
|
import Badge from '@baserow/modules/core/components/Badge'
|
2024-10-10 07:07:56 +00:00
|
|
|
import BadgeCollaborator from '@baserow/modules/core/components/BadgeCollaborator'
|
2023-09-21 10:07:04 +00:00
|
|
|
import Expandable from '@baserow/modules/core/components/Expandable.vue'
|
2023-05-11 15:27:17 +00:00
|
|
|
import RadioButton from '@baserow/modules/core/components/RadioButton'
|
2023-06-21 08:41:45 +00:00
|
|
|
import Thumbnail from '@baserow/modules/core/components/Thumbnail'
|
2023-12-22 10:06:35 +00:00
|
|
|
import ColorInput from '@baserow/modules/core/components/ColorInput'
|
2024-02-28 20:20:30 +00:00
|
|
|
import SelectSearch from '@baserow/modules/core/components/SelectSearch'
|
2025-03-18 18:41:04 +04:00
|
|
|
import SwitchButton from '@baserow/modules/core/components/SwitchButton'
|
2020-03-27 13:19:43 +00:00
|
|
|
|
2023-04-28 10:56:33 +00:00
|
|
|
function setupVue(Vue) {
|
|
|
|
Vue.component('Context', Context)
|
|
|
|
Vue.component('Modal', Modal)
|
|
|
|
Vue.component('Editable', Editable)
|
|
|
|
Vue.component('Dropdown', Dropdown)
|
2024-12-25 08:40:24 +00:00
|
|
|
Vue.component('DropdownSection', DropdownSection)
|
2023-04-28 10:56:33 +00:00
|
|
|
Vue.component('DropdownItem', DropdownItem)
|
|
|
|
Vue.component('Checkbox', Checkbox)
|
|
|
|
Vue.component('Radio', Radio)
|
2024-04-26 17:23:19 +00:00
|
|
|
Vue.component('RadioGroup', RadioGroup)
|
2023-04-28 10:56:33 +00:00
|
|
|
Vue.component('Scrollbars', Scrollbars)
|
|
|
|
Vue.component('Alert', Alert)
|
|
|
|
Vue.component('Error', Error)
|
|
|
|
Vue.component('SwitchInput', SwitchInput)
|
|
|
|
Vue.component('Copied', Copied)
|
|
|
|
Vue.component('MarkdownIt', MarkdownIt)
|
|
|
|
Vue.component('DownloadLink', DownloadLink)
|
|
|
|
Vue.component('FormElement', FormElement)
|
|
|
|
Vue.component('Picker', Picker)
|
|
|
|
Vue.component('ProgressBar', ProgressBar)
|
|
|
|
Vue.component('Tab', Tab)
|
|
|
|
Vue.component('Tabs', Tabs)
|
|
|
|
Vue.component('List', List)
|
|
|
|
Vue.component('HelpIcon', HelpIcon)
|
|
|
|
Vue.component('Badge', Badge)
|
2024-10-10 07:07:56 +00:00
|
|
|
Vue.component('BadgeCollaborator', BadgeCollaborator)
|
2023-09-21 10:07:04 +00:00
|
|
|
Vue.component('Expandable', Expandable)
|
2023-05-11 15:27:17 +00:00
|
|
|
Vue.component('Button', Button)
|
2024-04-15 11:29:17 +00:00
|
|
|
Vue.component('ButtonText', ButtonText)
|
|
|
|
Vue.component('ButtonFloating', ButtonFloating)
|
|
|
|
Vue.component('ButtonAdd', ButtonAdd)
|
|
|
|
Vue.component('ButtonIcon', ButtonIcon)
|
|
|
|
Vue.component('Chips', Chips)
|
2023-05-11 15:27:17 +00:00
|
|
|
Vue.component('RadioButton', RadioButton)
|
2023-06-21 08:41:45 +00:00
|
|
|
Vue.component('Thumbnail', Thumbnail)
|
2023-06-22 14:23:00 +00:00
|
|
|
Vue.component('Avatar', Avatar)
|
|
|
|
Vue.component('Presentation', Presentation)
|
|
|
|
Vue.component('FormInput', FormInput)
|
2024-07-05 09:35:08 +00:00
|
|
|
Vue.component('FormTextarea', FormTextarea)
|
2023-11-29 16:20:10 +00:00
|
|
|
Vue.component('CallToAction', CallToAction)
|
2023-12-08 08:12:38 +00:00
|
|
|
Vue.component('FormGroup', FormGroup)
|
|
|
|
Vue.component('FormRow', FormRow)
|
2023-12-22 10:06:35 +00:00
|
|
|
Vue.component('ColorInput', ColorInput)
|
2024-04-23 12:12:46 +00:00
|
|
|
Vue.component('ImageInput', ImageInput)
|
2024-02-28 20:20:30 +00:00
|
|
|
Vue.component('SelectSearch', SelectSearch)
|
2024-03-15 14:10:47 +00:00
|
|
|
Vue.component('Logo', Logo)
|
2024-05-02 14:25:42 +00:00
|
|
|
Vue.component('ReadOnlyForm', ReadOnlyForm)
|
2024-07-05 15:41:24 +00:00
|
|
|
Vue.component('FormSection', FormSection)
|
2025-01-31 06:07:11 +00:00
|
|
|
Vue.component('SegmentControl', SegmentControl)
|
2025-03-18 18:41:04 +04:00
|
|
|
Vue.component('SwitchButton', SwitchButton)
|
2020-03-27 13:19:43 +00:00
|
|
|
|
2023-04-28 10:56:33 +00:00
|
|
|
Vue.filter('lowercase', lowercase)
|
|
|
|
Vue.filter('uppercase', uppercase)
|
|
|
|
Vue.filter('nameAbbreviation', nameAbbreviation)
|
2020-03-27 13:19:43 +00:00
|
|
|
|
2023-04-28 10:56:33 +00:00
|
|
|
Vue.directive('scroll', scroll)
|
|
|
|
Vue.directive('preventParentScroll', preventParentScroll)
|
|
|
|
Vue.directive('tooltip', tooltip)
|
|
|
|
Vue.directive('sortable', sortable)
|
|
|
|
Vue.directive('autoOverflowScroll', autoOverflowScroll)
|
|
|
|
Vue.directive('userFileUpload', userFileUpload)
|
|
|
|
Vue.directive('autoScroll', autoScroll)
|
|
|
|
Vue.directive('clickOutside', clickOutside)
|
2023-03-08 09:13:08 +00:00
|
|
|
|
2023-04-28 10:56:33 +00:00
|
|
|
Vue.prototype.$super = function (options) {
|
|
|
|
return new Proxy(options, {
|
|
|
|
get: (options, name) => {
|
|
|
|
if (options.methods && name in options.methods) {
|
|
|
|
return options.methods[name].bind(this)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
2023-03-08 09:13:08 +00:00
|
|
|
}
|
2023-04-28 10:56:33 +00:00
|
|
|
|
|
|
|
setupVue(Vue)
|
|
|
|
|
|
|
|
export { setupVue }
|