-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(models-manager): create mamanger modal + add archive, download, …
…merge and delete features (some bugs remain)
- Loading branch information
1 parent
71d6a5e
commit d7f20ff
Showing
14 changed files
with
439 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.generic-modal { | ||
position: absolute; | ||
z-index: 2; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
font-size: 0.9rem; | ||
color: $color-primary; | ||
background-color: rgba(47, 55, 74, 0.75); | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
&__content { | ||
position: relative; | ||
background-color: $color-white; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
&__btn-close { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
color: $color-tertiary-dark; | ||
} | ||
|
||
&__title { | ||
width: 100%; | ||
padding: $spacing-unit * 2; | ||
font-size: 1.3rem; | ||
font-weight: bold; | ||
text-align: center; | ||
} | ||
|
||
&__text { | ||
flex-grow: 1; | ||
width: 100%; | ||
padding: $spacing-unit; | ||
overflow-y: auto; | ||
} | ||
|
||
&__actions { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: $spacing-unit * 2; | ||
width: 100%; | ||
padding: $spacing-unit * 2; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<div class="generic-modal"> | ||
<div | ||
class="generic-modal__content" | ||
:style="{ | ||
width: contentWidth, | ||
height: contentHeight | ||
}" | ||
> | ||
<BIMDataButton | ||
class="generic-modal__content__btn-close" | ||
ghost | ||
rounded | ||
icon | ||
@click="$emit('close')" | ||
> | ||
<BIMDataIcon name="close" size="xxs" /> | ||
</BIMDataButton> | ||
<div class="generic-modal__content__title"> | ||
<slot name="header"></slot> | ||
</div> | ||
<div class="generic-modal__content__text"> | ||
<slot name="body"></slot> | ||
</div> | ||
<div class="generic-modal__content__actions"> | ||
<slot name="footer"></slot> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// Components | ||
import BIMDataButton from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataButton.js"; | ||
import BIMDataIcon from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataIcon.js"; | ||
export default { | ||
components: { | ||
BIMDataButton, | ||
BIMDataIcon | ||
}, | ||
props: { | ||
contentWidth: { | ||
type: String, | ||
default: "50%" | ||
}, | ||
contentHeight: { | ||
type: String, | ||
default: "50%" | ||
} | ||
}, | ||
emits: ["close"] | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss" src="./GenericModal.scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/components/specific/models/models-manager-table/ModelsManagerTable.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<template> | ||
<GenericTable | ||
class="models-manager-table" | ||
:columns="columns" | ||
:rows="models" | ||
:paginated="true" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/components/specific/models/project-models-manager/ProjectModelsManager.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ponents/specific/models/project-models-manager/models-delete-modal/ModelsDeleteModal.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.models-delete-modal { | ||
&__message { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
&__list { | ||
margin-right: auto; | ||
|
||
&__item { | ||
margin: $spacing-unit/3 0; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.