mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Removed form.component ViewEncapsulation
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
:host ::ng-deep {
|
||||||
|
// For proper scoping, do not include the .css file suffix here
|
||||||
|
@import "../../form.component";
|
||||||
|
}
|
||||||
|
|
||||||
|
:host {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host /deep/ .custom-select {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
}
|
@@ -131,7 +131,7 @@ export function dsDynamicFormControlMapFn(model: DynamicFormControlModel): Type<
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-dynamic-form-control',
|
selector: 'ds-dynamic-form-control',
|
||||||
styleUrls: ['./ds-dynamic-form.component.scss', '../../form.component.scss'],
|
styleUrls: ['./ds-dynamic-form-control-container.component.scss'],
|
||||||
templateUrl: './ds-dynamic-form-control-container.component.html',
|
templateUrl: './ds-dynamic-form-control-container.component.html',
|
||||||
changeDetection: ChangeDetectionStrategy.Default
|
changeDetection: ChangeDetectionStrategy.Default
|
||||||
})
|
})
|
||||||
|
@@ -1,5 +0,0 @@
|
|||||||
:host {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
@@ -1,20 +1,12 @@
|
|||||||
import {
|
import { Component, ContentChildren, EventEmitter, Input, Output, QueryList, ViewChildren } from '@angular/core';
|
||||||
Component,
|
|
||||||
ContentChildren,
|
|
||||||
EventEmitter,
|
|
||||||
Input,
|
|
||||||
Output,
|
|
||||||
QueryList,
|
|
||||||
ViewChildren
|
|
||||||
} from '@angular/core';
|
|
||||||
import { FormGroup } from '@angular/forms';
|
import { FormGroup } from '@angular/forms';
|
||||||
import {
|
import {
|
||||||
DynamicFormComponent, DynamicFormControlContainerComponent,
|
DynamicFormComponent,
|
||||||
|
DynamicFormControlContainerComponent,
|
||||||
DynamicFormControlEvent,
|
DynamicFormControlEvent,
|
||||||
DynamicFormControlModel,
|
DynamicFormControlModel,
|
||||||
DynamicFormLayout,
|
DynamicFormLayout,
|
||||||
DynamicFormLayoutService,
|
DynamicFormLayoutService,
|
||||||
DynamicFormService,
|
|
||||||
DynamicTemplateDirective,
|
DynamicTemplateDirective,
|
||||||
} from '@ng-dynamic-forms/core';
|
} from '@ng-dynamic-forms/core';
|
||||||
import { DsDynamicFormControlContainerComponent } from './ds-dynamic-form-control-container.component';
|
import { DsDynamicFormControlContainerComponent } from './ds-dynamic-form-control-container.component';
|
||||||
@@ -22,7 +14,6 @@ import { FormBuilderService } from '../form-builder.service';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-dynamic-form',
|
selector: 'ds-dynamic-form',
|
||||||
styleUrls: ['../../form.component.scss'],
|
|
||||||
templateUrl: './ds-dynamic-form.component.html'
|
templateUrl: './ds-dynamic-form.component.html'
|
||||||
})
|
})
|
||||||
export class DsDynamicFormComponent extends DynamicFormComponent {
|
export class DsDynamicFormComponent extends DynamicFormComponent {
|
||||||
|
@@ -31,8 +31,7 @@ import { FormEntry, FormError } from './form.reducer';
|
|||||||
exportAs: 'formComponent',
|
exportAs: 'formComponent',
|
||||||
selector: 'ds-form',
|
selector: 'ds-form',
|
||||||
styleUrls: ['form.component.scss'],
|
styleUrls: ['form.component.scss'],
|
||||||
templateUrl: 'form.component.html',
|
templateUrl: 'form.component.html'
|
||||||
encapsulation: ViewEncapsulation.ShadowDom
|
|
||||||
})
|
})
|
||||||
export class FormComponent implements OnDestroy, OnInit {
|
export class FormComponent implements OnDestroy, OnInit {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user