Refactor OverlayEventBus location

pull/1047/head
Cagatay Civici 2021-03-03 13:30:19 +03:00
parent 2b788c11d4
commit 1b83d9319b
18 changed files with 36 additions and 17 deletions

View File

@ -18,6 +18,7 @@ let globalDependencies = {
'primevue/paginator': 'primevue.paginator', 'primevue/paginator': 'primevue.paginator',
'primevue/confirmationeventbus': 'primevue.confirmationeventbus', 'primevue/confirmationeventbus': 'primevue.confirmationeventbus',
'primevue/toasteventbus': 'primevue.toasteventbus', 'primevue/toasteventbus': 'primevue.toasteventbus',
'primevue/overlayeventbus': 'primevue.overlayeventbus',
'primevue/useconfirm': 'primevue.useconfirm', 'primevue/useconfirm': 'primevue.useconfirm',
'primevue/usetoast': 'primevue.usetoast', 'primevue/usetoast': 'primevue.usetoast',
'primevue/progressbar': 'primevue.progressbar', 'primevue/progressbar': 'primevue.progressbar',
@ -113,6 +114,7 @@ function addServices() {
addEntry('useconfirm', 'UseConfirm.js', 'useconfirm'); addEntry('useconfirm', 'UseConfirm.js', 'useconfirm');
addEntry('toastservice', 'ToastService.js', 'toastservice'); addEntry('toastservice', 'ToastService.js', 'toastservice');
addEntry('toasteventbus', 'ToastEventBus.js', 'toasteventbus'); addEntry('toasteventbus', 'ToastEventBus.js', 'toasteventbus');
addEntry('overlayeventbus', 'OverlayEventBus.js', 'overlayeventbus');
addEntry('usetoast', 'UseToast.js', 'usetoast'); addEntry('usetoast', 'UseToast.js', 'usetoast');
addEntry('terminalservice', 'TerminalService.js', 'terminalservice'); addEntry('terminalservice', 'TerminalService.js', 'terminalservice');
} }

View File

@ -43,7 +43,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,UniqueComponentId,ObjectUtils,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,UniqueComponentId,ObjectUtils,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import Button from 'primevue/button'; import Button from 'primevue/button';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';

View File

@ -133,7 +133,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import InputText from 'primevue/inputtext'; import InputText from 'primevue/inputtext';
import Button from 'primevue/button'; import Button from 'primevue/button';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';

View File

@ -28,7 +28,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import CascadeSelectSub from './CascadeSelectSub.vue'; import CascadeSelectSub from './CascadeSelectSub.vue';
export default { export default {

View File

@ -24,7 +24,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
export default { export default {
emits: ['update:modelValue'], emits: ['update:modelValue'],

View File

@ -17,7 +17,8 @@
<script> <script>
import ConfirmationEventBus from 'primevue/confirmationeventbus'; import ConfirmationEventBus from 'primevue/confirmationeventbus';
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import Button from 'primevue/button'; import Button from 'primevue/button';
export default { export default {

View File

@ -31,7 +31,8 @@
</template> </template>
<script> <script>
import {DomHandler,ObjectUtils,OverlayEventBus} from 'primevue/utils'; import {DomHandler,ObjectUtils} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import RowRadioButton from './RowRadioButton.vue'; import RowRadioButton from './RowRadioButton.vue';
import RowCheckbox from './RowCheckbox.vue'; import RowCheckbox from './RowCheckbox.vue';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';

View File

@ -58,7 +58,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import {FilterService} from 'primevue/api'; import {FilterService} from 'primevue/api';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';

View File

@ -21,7 +21,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import Menuitem from './Menuitem.vue'; import Menuitem from './Menuitem.vue';
export default { export default {

View File

@ -93,7 +93,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,ObjectUtils,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import {FilterService} from 'primevue/api'; import {FilterService} from 'primevue/api';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';

View File

@ -0,0 +1,3 @@
import {EventBus} from 'primevue/utils';
export default EventBus();

View File

@ -0,0 +1,5 @@
{
"main": "./overlayeventbus.cjs.js",
"module": "./overlayeventbus.esm.js",
"unpkg": "./overlayeventbus.min.js"
}

View File

@ -14,7 +14,8 @@
</template> </template>
<script> <script>
import {UniqueComponentId,DomHandler,ConnectedOverlayScrollHandler,OverlayEventBus} from 'primevue/utils'; import {UniqueComponentId,DomHandler,ConnectedOverlayScrollHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';
export default { export default {

View File

@ -20,7 +20,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import InputText from 'primevue/inputtext'; import InputText from 'primevue/inputtext';
export default { export default {

View File

@ -9,7 +9,8 @@
</template> </template>
<script> <script>
import {ConnectedOverlayScrollHandler,DomHandler,OverlayEventBus} from 'primevue/utils'; import {ConnectedOverlayScrollHandler,DomHandler} from 'primevue/utils';
import OverlayEventBus from 'primevue/overlayeventbus';
import TieredMenuSub from './TieredMenuSub.vue'; import TieredMenuSub from './TieredMenuSub.vue';
export default { export default {

View File

@ -1,3 +0,0 @@
import EventBus from './EventBus.js';
export default EventBus();

View File

@ -3,6 +3,5 @@ import DomHandler from './DomHandler';
import ObjectUtils from './ObjectUtils'; import ObjectUtils from './ObjectUtils';
import UniqueComponentId from './UniqueComponentId'; import UniqueComponentId from './UniqueComponentId';
import EventBus from './EventBus'; import EventBus from './EventBus';
import OverlayEventBus from './OverlayEventBus';
export {ConnectedOverlayScrollHandler,DomHandler,ObjectUtils,UniqueComponentId,EventBus,OverlayEventBus}; export {ConnectedOverlayScrollHandler,DomHandler,ObjectUtils,UniqueComponentId,EventBus};

View File

@ -21,6 +21,7 @@ module.exports = {
'primevue/message': path.resolve(__dirname, 'src/components/message/Message.vue'), 'primevue/message': path.resolve(__dirname, 'src/components/message/Message.vue'),
'primevue/confirmationeventbus': path.resolve(__dirname, 'src/components/confirmationeventbus/ConfirmationEventBus.js'), 'primevue/confirmationeventbus': path.resolve(__dirname, 'src/components/confirmationeventbus/ConfirmationEventBus.js'),
'primevue/toasteventbus': path.resolve(__dirname, 'src/components/toasteventbus/ToastEventBus.js'), 'primevue/toasteventbus': path.resolve(__dirname, 'src/components/toasteventbus/ToastEventBus.js'),
'primevue/overlayeventbus': path.resolve(__dirname, 'src/components/overlayeventbus/OverlayEventBus.js'),
'primevue/terminalservice': path.resolve(__dirname, 'src/components/terminalservice/TerminalService.js') 'primevue/terminalservice': path.resolve(__dirname, 'src/components/terminalservice/TerminalService.js')
}, },
}, },