Skip to content

Commit

Permalink
removed default input directive
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 29, 2019
1 parent 69c8949 commit a3d2df8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 92 deletions.
38 changes: 26 additions & 12 deletions backend/src/main/resources/metadata-sources-ui-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,23 @@
"name": {
"title": "label.organization-name",
"description": "tooltip.organization-name",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"displayName": {
"title": "label.organization-display-name",
"description": "tooltip.organization-display-name",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"url": {
"title": "label.organization-url",
"description": "tooltip.organization-url",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"dependencies": {
Expand Down Expand Up @@ -101,44 +107,52 @@
"displayName": {
"title": "label.display-name",
"description": "tooltip.mdui-display-name",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"informationUrl": {
"title": "label.information-url",
"description": "tooltip.mdui-information-url",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"privacyStatementUrl": {
"title": "label.privacy-statement-url",
"description": "tooltip.mdui-privacy-statement-url",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"title": "label.description",
"description": "tooltip.mdui-description",
"type": "string",
"widget": {
"id": "textarea"
}
},
"minLength": 1,
"maxLength": 255
},
"logoUrl": {
"title": "label.logo-url",
"description": "tooltip.mdui-logo-url",
"type": "string"
"type": "string",
"minLength": 1,
"maxLength": 255
},
"logoHeight": {
"title": "label.logo-height",
"description": "tooltip.mdui-logo-height",
"min": 0,
"type": "integer",
"default": 0
"type": "integer"
},
"logoWidth": {
"title": "label.logo-width",
"description": "tooltip.mdui-logo-width",
"min": 0,
"type": "integer",
"default": 0
"type": "integer"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/shared/constant.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const DEFAULT_FIELD_MAX_LENGTH = 255;
export const DEFAULT_FIELD_MAX_LENGTH = 255;
60 changes: 0 additions & 60 deletions ui/src/app/shared/directive/input-defaults.directive.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions ui/src/app/shared/directive/input-defaults.directive.ts

This file was deleted.

3 changes: 0 additions & 3 deletions ui/src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HighlightPipe } from './pipe/highlight.pipe';
import { AutoCompleteComponent } from './autocomplete/autocomplete.component';
import { ValidationClassDirective } from './validation/validation-class.directive';
import { InputDefaultsDirective } from './directive/input-defaults.directive';
import { ValidFormIconComponent } from './component/valid-form-icon.component';
import { PrettyXml } from './pipe/pretty-xml.pipe';
import { ToggleSwitchComponent } from './switch/switch.component';
Expand All @@ -27,7 +26,6 @@ import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
AutoCompleteComponent,
ToggleSwitchComponent,
ValidationClassDirective,
InputDefaultsDirective,
ValidFormIconComponent,
PrettyXml,
CustomDatePipe,
Expand All @@ -41,7 +39,6 @@ import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
CommonModule,
ReactiveFormsModule,
FormsModule,
InputDefaultsDirective,
ValidFormIconComponent,
ValidationClassDirective,
ContenteditableDirective,
Expand Down

0 comments on commit a3d2df8

Please sign in to comment.