diff --git a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.html b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.html index 7101c3a059..5b50d5d749 100644 --- a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.html +++ b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.html @@ -40,6 +40,8 @@ [(ngModel)]="schema" [options]="schemas" optionLabel="name" + class="guardian-dropdown" + panelStyleClass="guardian-dropdown-panel" >
@@ -57,9 +59,17 @@
{{ schema.name }}
-
- + +
+ +
+
-
- -
-
-
-
- -
-
-
- {{ title }} -
-
-
- Create -
-
-
-
-
- -
- - -
-
- - -
- - -
-
- -
- Add Document -
-
- - -
-
- {{ schema.name }} -
-
- -
-
- - -
-
-
-
-
-
+ \ No newline at end of file diff --git a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.scss b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.scss index 39b2a62f5b..bb37910dc6 100644 --- a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.scss +++ b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.scss @@ -1,5 +1,5 @@ .mat-button-base:not([started]) { - background-color: rgba(0,0,0,.12); + background-color: rgba(0, 0, 0, .12); } .mat-dialog-content { @@ -117,7 +117,7 @@ form { } .selected-artifact-label { - color: rgba(0,0,0,.6); + color: rgba(0, 0, 0, .6); font-size: 14px; position: absolute; top: -10px; @@ -135,33 +135,25 @@ form { } .delete-artifact { - position: relative; - height: 52px; - width: 52px; - border-radius: 6px; - cursor: pointer; - margin-left: 8px; - position: absolute; - right: -10px; - top: -26px; - background: #ffffff; - box-shadow: -5px 0px 0px 0px #ffffff; + right: -2px; + top: -12px; + z-index: 1; } -.delete-artifact:hover { - background: #f1f1f1; -} - -.delete-artifact i, -.delete-artifact svg{ - position: absolute; - color: #f44336; - top: 12px; - left: 12px; - width: 28px; - height: 28px; - font-size: 28px; +.artifact-form { + &::before { + content: ""; + display: block; + position: absolute; + right: -2px; + top: -18px; + width: 40px; + height: 40px; + pointer-events: none; + background: #ffffff; + z-index: 0; + } } .artifact-form { @@ -172,82 +164,91 @@ form { } .artifact-form-label { + color: var(--color-primary) !important; position: absolute; - color: #0c77ff; font-size: 20px; font-weight: 500; padding: 10px; background: #fff; left: 50%; - top: -22px; + top: -27px; transform: translate(-50%, 0px); } ::ng-deep { - .p-dialog-title { - font-family: Poppins, sans-serif; - font-size: 24px; - font-style: normal; - font-weight: 600; - } + .p-dialog-title { + font-family: Poppins, sans-serif; + font-size: 24px; + font-style: normal; + font-weight: 600; + } - .p-dialog { - box-shadow: none; - } + .p-dialog { + box-shadow: none; + } - .p-dialog-header { - border-top-left-radius: 16px !important; - border-top-right-radius: 16px !important; - } + .p-dialog-header { + border-top-left-radius: 16px !important; + border-top-right-radius: 16px !important; + } - .p-dialog-content { - border-bottom-left-radius: 16px; - border-bottom-right-radius: 16px; - } + .p-dialog-content { + border-bottom-left-radius: 16px; + border-bottom-right-radius: 16px; + } } .form-input-container { - display: flex; - flex-direction: column; - margin-bottom: 24px; - - .p-field-label { - color: var(--color-grey-black-1, #181818); - font-family: Inter, sans-serif; - font-size: 12px; - font-style: normal; - font-weight: 500; - line-height: 14px; - margin-bottom: 6px; - } - - .p-field-input { - border-radius: 8px; - border: 1px solid var(--color-grey-3, #E1E7EF); - background: var(--color-grey-white, #FFF); - outline: none !important; - box-shadow: unset !important; - padding: 12px 0 12px 16px; - align-items: center; - align-self: stretch; - transition: border 0.25s ease-in-out; - box-sizing: border-box; - resize: vertical; - - color: var(--color-grey-black-1, #181818); - font-family: Inter, sans-serif; - font-size: 14px; - font-style: normal; - font-weight: 400; - line-height: 16px; - } + display: flex; + flex-direction: column; + margin-bottom: 24px; + + .p-field-label { + color: var(--color-grey-black-1, #181818); + font-family: Inter, sans-serif; + font-size: 12px; + font-style: normal; + font-weight: 500; + line-height: 14px; + margin-bottom: 6px; + } + + .p-field-input { + border-radius: 8px; + border: 1px solid var(--color-grey-3, #E1E7EF); + background: var(--color-grey-white, #FFF); + outline: none !important; + box-shadow: unset !important; + padding: 12px 0 12px 16px; + align-items: center; + align-self: stretch; + transition: border 0.25s ease-in-out; + box-sizing: border-box; + resize: vertical; + + color: var(--color-grey-black-1, #181818); + font-family: Inter, sans-serif; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 16px; + } } .dialog-footer { - padding-top: 24px; - display: flex; - align-items: center; - justify-content: flex-end; - column-gap: 16px; -} + padding-top: 24px; + display: flex; + align-items: center; + justify-content: flex-end; + column-gap: 16px; +} + +.disabled-button { + opacity: 0.6; + pointer-events: auto; + cursor: not-allowed; + background: var(--color-grey-1) !important; + border: 1px solid var(--color-grey-3) !important; + color: var(--color-grey-5) !important; +} \ No newline at end of file diff --git a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.ts b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.ts index 31949f9491..f1dd6e3e6d 100644 --- a/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.ts +++ b/frontend/src/app/modules/tag-engine/tags-create-dialog/tags-create-dialog.component.ts @@ -93,4 +93,8 @@ export class TagCreateDialog { } return true; } + + get noSchemas(): boolean { + return !this.schemas?.length; + } }